/* Lobeja — studio landing
   Direction: quiet international product studio (not SI AI-agency funnel)
   Type: Instrument Sans + Source Serif 4 + IBM Plex Mono
   Palette: slate ink, cool paper, brand blue sparse */

:root {
  --ink: #0f1724;
  --ink-2: #243044;
  --paper: #f4f5f7;
  --paper-2: #eaecef;
  --surface: #ffffff;
  --line: #d8dde6;
  --muted: #5c6b7e;
  --brand: #137dc5;
  --brand-deep: #0e5f9a;
  --radius: 2px;
  --font: "Instrument Sans", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1080px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  cursor: pointer;
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ink:hover {
  background: var(--ink-2);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--paper);
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* —— Header: light, quiet —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--max));
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-mark {
  height: 40px;
  width: auto;
}

.nav {
  display: none;
  gap: 1.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
}

.nav a:hover {
  color: var(--brand-deep);
}

.lang-switch {
  display: none;
  align-items: center;
  gap: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.lang-switch a {
  padding: 0.35rem 0.45rem;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: var(--radius);
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch a.is-active {
  color: var(--ink);
  background: var(--paper-2);
}

.header-cta {
  display: none;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span:first-child {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  box-shadow: 0 6px 0 var(--ink), 0 -6px 0 var(--ink);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  background: var(--paper);
  padding: 1.5rem 1.25rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 40;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 0.85rem 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.mobile-nav .btn {
  margin-top: 1rem;
  width: 100%;
}

.lang-switch--mobile {
  display: flex;
  margin: 0.75rem 0 0.25rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  gap: 0.25rem;
}

.lang-switch--mobile a {
  border-bottom: 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.8rem;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .lang-switch {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* —— Hero: brand + thesis + full-bleed product surface —— */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(100vh, 900px);
  padding: 5.5rem 0 0;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid var(--ink);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 15% 20%, rgba(19, 125, 197, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(255, 255, 255, 0.05), transparent 45%),
    linear-gradient(180deg, #0f1724 0%, #121c2e 45%, #0a1018 100%);
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-top {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  padding-bottom: 2.5rem;
  animation: hero-rise 0.85s var(--ease) both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo {
  display: block;
  height: clamp(48px, 7vw, 72px);
  width: auto;
  margin: 0 0 1.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #fff;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.55;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Product stage — edge-to-edge, not an inset card */
.hero-stage {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: stage-rise 1s var(--ease) 0.15s both;
}

@keyframes stage-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stage-panel {
  background: #0c1320;
  padding: 1rem 1.15rem 1.2rem;
  min-height: 0;
}

.stage-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.stage-live {
  color: #5ec8ff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.stage-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ec8ff;
  animation: live-blink 1.8s ease infinite;
}

@keyframes live-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.stage-msgs {
  display: grid;
  gap: 0.55rem;
}

.msg {
  margin: 0;
  padding: 0.65rem 0.8rem;
  font-size: 0.88rem;
  line-height: 1.4;
  max-width: 92%;
  opacity: 0;
  animation: msg-in 0.55s var(--ease) forwards;
}

.msg--in {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 2px 10px 10px 10px;
  justify-self: start;
}

.msg--out {
  background: color-mix(in srgb, var(--brand) 55%, #0c1320);
  color: #fff;
  border-radius: 10px 2px 10px 10px;
  justify-self: end;
}

.msg--sys {
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: #7dd3fc;
  background: rgba(19, 125, 197, 0.12);
  border: 1px solid rgba(19, 125, 197, 0.28);
  border-radius: 2px;
  padding: 0.55rem 0.75rem;
}

.msg--1 {
  animation-delay: 0.5s;
}
.msg--2 {
  animation-delay: 1.1s;
}
.msg--3 {
  animation-delay: 1.7s;
}
.msg--4 {
  animation-delay: 2.3s;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stage-ops {
  display: grid;
  gap: 0;
}

.ops-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
  opacity: 0;
  animation: msg-in 0.5s var(--ease) forwards;
}

.ops-row:last-child {
  border-bottom: 0;
}

.ops-label {
  color: rgba(255, 255, 255, 0.55);
}

.ops-val {
  color: #fff;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.ops-row--1 {
  animation-delay: 0.7s;
}
.ops-row--2 {
  animation-delay: 1s;
}
.ops-row--3 {
  animation-delay: 1.3s;
}
.ops-row--4 {
  animation-delay: 1.6s;
}

.flow-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
}

.flow-track i {
  display: block;
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
}

.flow-track i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  border: 3px solid transparent;
  border-left-color: rgba(255, 255, 255, 0.35);
}

.flow-note {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.45;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 6rem;
  }

  .hero-stage {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: auto auto;
  }

  .stage-panel--inbox {
    grid-row: 1 / 3;
    min-height: 320px;
  }

  .stage-panel--ops {
    min-height: 200px;
  }
}

@media (min-width: 1024px) {
  .hero-top {
    padding-bottom: 3rem;
  }

  .hero-stage {
    grid-template-columns: 1.4fr 1fr 0.95fr;
    grid-template-rows: 1fr;
  }

  .stage-panel--inbox {
    grid-row: auto;
    min-height: 340px;
    padding: 1.25rem 1.5rem 1.4rem;
  }

  .stage-panel--ops,
  .stage-panel--flow {
    padding: 1.25rem 1.35rem;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .hero-top {
    padding-bottom: 1.75rem;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .stage-panel--flow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .msg,
  .ops-row,
  .stage-live::before,
  .hero-top,
  .hero-stage {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* —— Manifesto —— */
.manifesto {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.manifesto-grid {
  display: grid;
  gap: 1.5rem;
}

.manifesto-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.manifesto-body p {
  margin: 0 0 1.5rem;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  letter-spacing: -0.02em;
  max-width: 42rem;
}

.manifesto-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.manifesto-points span {
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 768px) {
  .manifesto-grid {
    grid-template-columns: 7rem 1fr;
    gap: 2.5rem;
  }
}

/* —— Trust strip: spectrum + local security —— */
.trust-strip {
  padding: 3.25rem 0;
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid var(--ink);
}

.trust-strip-grid {
  display: grid;
  gap: 2rem;
}

.trust-strip h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.trust-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 32rem;
}

@media (min-width: 768px) {
  .trust-strip-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* —— Block heads —— */
.block-head {
  margin-bottom: 2.25rem;
  max-width: 36rem;
}

.block-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.block-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* —— Work (editorial rows, not cards) —— */
.work {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line);
}

.work-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.work-row {
  display: grid;
  gap: 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.work-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-domain {
  color: var(--brand-deep);
  font-weight: 500;
}

.work-copy h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.work-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.block-head--spaced {
  margin-top: 3.5rem;
}

.work-list--complex .work-row {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.work-list--complex .work-domain {
  color: var(--ink);
}

@media (min-width: 768px) {
  .work-row {
    grid-template-columns: 11rem 1fr;
    gap: 2rem;
    align-items: start;
  }

  .work-list--complex .work-row {
    grid-template-columns: 12.5rem 1fr;
  }
}

/* —— Capabilities —— */
.capabilities {
  padding: 4.5rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.cap-list {
  display: grid;
  gap: 2rem;
}

.cap-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.cap-item p {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
}

@media (min-width: 768px) {
  .capabilities-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
  }

  .capabilities .block-head {
    margin-bottom: 0;
  }

  .cap-list {
    gap: 1.75rem;
  }
}

/* —— Catalog (definition index) —— */
.catalog {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line);
}

.catalog-table {
  display: grid;
  gap: 2.5rem;
}

.catalog-group h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-deep);
  font-weight: 500;
}

.catalog-group dl {
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.catalog-group dl > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.catalog-group dt {
  font-weight: 600;
  font-size: 0.98rem;
}

.catalog-group dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .catalog-group dl > div {
    grid-template-columns: 1fr 1.2fr;
    gap: 1rem;
    align-items: baseline;
  }
}

@media (min-width: 900px) {
  .catalog-table {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
  }
}

/* —— Collaboration (individual, no price table) —— */
.engagement {
  padding: 4.5rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.collab {
  max-width: 40rem;
}

.collab-lead {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--ink-2);
}

.collab-points {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  border-top: 1px solid var(--line);
}

.collab-points li {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.collab-points strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.collab-points span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .collab-points li {
    grid-template-columns: 11rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}

/* —— Process —— */
.process {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line);
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  counter-reset: step;
}

.process-steps li {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  padding-left: 2.5rem;
  position: relative;
}

.process-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brand-deep);
}

.process-steps time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.process-steps strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.process-steps span {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 32rem;
}

@media (min-width: 768px) {
  .process-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
  }

  .process .block-head {
    margin-bottom: 0;
  }
}

/* —— Stack —— */
.stack-section {
  padding: 3.5rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.stack-line {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--muted);
  letter-spacing: 0.01em;
  max-width: 48rem;
}

/* —— FAQ —— */
.faq {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line);
}

.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 600;
  letter-spacing: -0.015em;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.1rem;
  font-weight: 400;
  color: var(--muted);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .faq-layout {
    display: grid;
    grid-template-columns: 12rem 1fr;
    gap: 3rem;
    align-items: start;
  }

  .faq .block-head {
    margin-bottom: 0;
  }
}

/* —— Contact —— */
.contact {
  padding: 4.5rem 0 5rem;
  background: var(--ink);
  color: #fff;
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-intro h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.contact-intro > p {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 28rem;
}

.contact-direct a {
  display: inline-block;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 0.75rem;
}

.contact-direct a:hover {
  border-color: #fff;
}

.contact-direct p {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff99' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}

.field select option {
  color: var(--ink);
  background: #fff;
}

.contact-form .btn-ink {
  background: #fff;
  color: var(--ink);
  justify-self: start;
  margin-top: 0.25rem;
}

.contact-form .btn-ink:hover {
  background: var(--paper);
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.form-success,
.form-error {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
}

.form-success p,
.form-error p {
  margin: 0;
}

.form-error a {
  text-decoration: underline;
}

.contact-form.is-submitting {
  opacity: 0.7;
  pointer-events: none;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

/* —— Footer —— */
.site-footer {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-inner .logo-mark {
  height: 28px;
}

.footer-inner nav {
  display: flex;
  gap: 1.25rem;
}

.footer-inner a:hover {
  color: var(--ink);
}

/* —— Reveal motion —— */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-content,
  .schematic-wire,
  .schematic-node {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
