/* Team Morgan · engineering-grade consultancy.
   Graphite + paper sections, one electric violet (#5B3DF5). Archivo (width axis) + JetBrains Mono. */

:root {
  --ink: oklch(0.175 0.012 285);
  --ink-2: oklch(0.215 0.015 285);
  --ink-grid: oklch(0.245 0.02 285);
  --ink-line: oklch(0.34 0.022 285);
  --on-ink: oklch(0.965 0.006 285);
  --on-ink-muted: oklch(0.76 0.014 285);

  --paper: oklch(0.975 0.004 285);
  --paper-2: oklch(0.948 0.008 285);
  --paper-grid: oklch(0.925 0.01 285);
  --text: oklch(0.2 0.015 285);
  --muted: oklch(0.45 0.016 285);
  --line: oklch(0.86 0.012 285);

  --accent: #5B3DF5;
  --accent-hi: oklch(0.6 0.22 283);
  --accent-soft: oklch(0.78 0.12 285);
  --accent-deep: oklch(0.4 0.2 280);
  --on-accent: oklch(0.985 0.008 285);

  --f: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 11vw, 148px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f);
  font-size: clamp(16px, 0.25vw + 15px, 18px);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .cta :focus-visible, .footer :focus-visible, .header :focus-visible { outline-color: var(--accent-soft); }
.cta :focus-visible { outline-color: var(--on-accent); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px;
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Surfaces ---------- */
.dark { background: var(--ink); color: var(--on-ink); }
.light { background: var(--paper); }
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--ink-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

/* ---------- Type ---------- */
.display {
  font-size: clamp(2.45rem, 5vw, 4.5rem);
  font-variation-settings: "wdth" 116;
  font-weight: 640;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.display-md { font-size: clamp(2.2rem, 5.2vw, 4.4rem); line-height: 1.02; max-width: 18ch; }
.display .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.display .line > span { display: inline-block; }
.accent-dot { color: var(--accent-hi); }
.h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-variation-settings: "wdth" 112;
  font-weight: 620;
  line-height: 1.06;
  letter-spacing: -0.028em;
  max-width: 22ch;
}
.lede { font-size: clamp(1.06rem, 0.6vw + 0.95rem, 1.3rem); line-height: 1.55; max-width: 56ch; color: var(--on-ink-muted); margin-top: clamp(20px, 2.4vw, 32px); }
.dark .lede { line-height: 1.62; }

.mono-label, .index {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.dark .mono-label, .dark .index, .footer .mono-label { color: var(--on-ink-muted); }
.index { display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(20px, 2.5vw, 32px); }
.index span {
  display: inline-block; padding: 3px 7px; line-height: 1.2;
  border: 1px solid currentColor; color: var(--accent);
}
.dark .index span { color: var(--accent-soft); }
.index-on-accent { color: color-mix(in oklch, var(--on-accent) 80%, transparent); }
.index-on-accent span { color: var(--on-accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 600 0.98rem/1 var(--f); font-variation-settings: "wdth" 108;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn .arrow { transition: transform 0.35s var(--ease); flex: none; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { border-color: var(--ink-line); color: var(--on-ink); }
.btn-ghost:hover { border-color: var(--on-ink-muted); }
.btn-invert { background: var(--on-accent); color: var(--ink); }
.btn-invert:hover { background: var(--ink); color: var(--on-accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: clamp(28px, 3.4vw, 44px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--on-ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.header.scrolled { border-bottom-color: var(--ink-line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.logo .mark { width: 30px; height: 30px; flex: none; }
.wordmark {
  font-weight: 650; font-size: 1.14rem; letter-spacing: -0.02em;
  font-variation-settings: "wdth" 122;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) {
  position: relative; padding: 10px 14px; text-decoration: none;
  font-size: 0.95rem; color: var(--on-ink-muted); transition: color 0.2s;
}
.nav > a:not(.btn):hover, .nav > a[aria-current="page"] { color: var(--on-ink); }
.nav > a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent-hi);
}
.nav .btn { margin-left: 12px; }
.menu-btn { display: none; }

@media (max-width: 820px) {
  .menu-btn {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; color: var(--on-ink);
  }
  .menu-btn span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease); }
  .menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--ink); border-bottom: 1px solid var(--ink-line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .menu-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav > a:not(.btn) { padding: 16px 0; font-size: 1.15rem; border-bottom: 1px solid var(--ink-grid); color: var(--on-ink); }
  .nav > a[aria-current="page"]::after { left: auto; right: 0; top: 50%; bottom: auto; width: 8px; height: 8px; transform: translateY(-50%); }
  .nav .btn { margin: 20px 0 0; justify-content: center; min-height: 50px; }
  .menu-open { overflow: hidden; }
  .menu-open::before {
    content: ""; position: fixed; inset: 0; z-index: 40; background: color-mix(in oklch, var(--ink) 60%, transparent);
  }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero .lede { max-width: 46ch; }
.hero-diagram { margin: 0; }
.hero-diagram figcaption { margin-top: 14px; }
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-diagram { max-width: 560px; }
}

/* Diagram */
.diagram { width: 100%; height: auto; overflow: visible; }
.diagram .edge { fill: none; stroke: var(--ink-line); stroke-width: 1.5; }
.diagram .flow {
  fill: none; stroke: var(--accent-soft); stroke-width: 2; stroke-linecap: square;
  stroke-dasharray: 10 400; stroke-dashoffset: 410; opacity: 0;
}
.diagram.live .flow { opacity: 1; transition: opacity 0.6s; }
@media (prefers-reduced-motion: no-preference) {
  .diagram.live .flow { animation: flow 3.2s linear infinite; }
  .diagram.live .flow.f2 { animation-delay: -1.1s; animation-duration: 3.8s; }
  .diagram.live .flow.f3 { animation-delay: -2.2s; animation-duration: 2.9s; }
}
@media (prefers-reduced-motion: reduce) { .diagram .flow { display: none; } }
@keyframes flow { to { stroke-dashoffset: 0; } }
.diagram .node rect { fill: var(--ink-2); stroke: var(--ink-line); stroke-width: 1; }
.diagram .node text {
  fill: var(--on-ink); font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em;
  text-anchor: middle; font-weight: 500;
}
.diagram .node.core rect { fill: var(--accent); stroke: var(--accent); }
.diagram .node.core text { fill: var(--on-accent); }
.diagram .ticks text { fill: var(--ink-line); font-family: var(--mono); font-size: 11px; }
.motion .diagram .edge, .motion .diagram .node { visibility: hidden; }

/* ---------- Sections ---------- */
.section { padding: var(--sec) 0; }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); }

/* Services spec list (home) */
.spec-list { border-top: 1px solid var(--text); isolation: isolate; }
.spec { border-bottom: 1px solid var(--line); }
.spec a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.3fr) 32px;
  grid-template-areas: "no title body go" "no title tags go";
  gap: 6px clamp(20px, 3vw, 48px);
  padding: clamp(24px, 3vw, 36px) 0;
  text-decoration: none; position: relative;
}
.spec a::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -0.5); z-index: -1;
  background: var(--paper-2); opacity: 0; transition: opacity 0.3s var(--ease);
}
.spec a:hover::before { opacity: 1; }
.spec-no { grid-area: no; font-family: var(--mono); font-size: 0.85rem; color: var(--accent); padding-top: 6px; }
.spec-title {
  grid-area: title; font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 600; line-height: 1.15;
  letter-spacing: -0.02em; font-variation-settings: "wdth" 110;
}
.spec-body { grid-area: body; color: var(--muted); max-width: 52ch; }
.spec-tags { grid-area: tags; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); margin-top: 8px; }
.spec-go { grid-area: go; align-self: start; padding-top: 8px; color: var(--accent); }
.spec-go .arrow { width: 20px; height: 20px; transition: transform 0.35s var(--ease); }
.spec a:hover .spec-go .arrow { transform: translateX(5px); }
@media (max-width: 760px) {
  .spec a { grid-template-columns: 40px minmax(0, 1fr) 24px; grid-template-areas: "no title go" "no body body" "no tags tags"; }
  .spec-body { margin-top: 8px; }
}

/* Timeline (home) */
.timeline { position: relative; }
.timeline-rail { position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--ink-line); }
.timeline-rail i { position: absolute; inset: 0; background: var(--accent-hi); transform-origin: left center; transform: scaleX(1); }
.phases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.phase { position: relative; padding-top: 44px; }
.phase::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 13px; height: 13px;
  background: var(--ink); border: 1.5px solid var(--accent-soft); transform: rotate(45deg);
}
.phase-no { font-family: var(--mono); font-size: 0.75rem; color: var(--accent-soft); letter-spacing: 0.06em; }
.phase h3 { font-size: 1.3rem; font-variation-settings: "wdth" 112; letter-spacing: -0.02em; margin: 6px 0 12px; }
.phase p { color: var(--on-ink-muted); font-size: 0.95rem; line-height: 1.6; }
.phase .out {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--ink-line);
  color: var(--on-ink); font-size: 0.92rem; font-weight: 500;
}
.phase .out span { display: block; font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-ink-muted); font-weight: 400; margin-bottom: 4px; }
@media (max-width: 900px) {
  .timeline-rail { top: 0; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; }
  .timeline-rail i { transform-origin: center top; }
  .phases { grid-template-columns: 1fr; gap: 40px; }
  .phase { padding: 0 0 0 44px; }
  .phase::before { top: 3px; left: 0; }
}

/* Audience split */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--text); }
.audience { padding: clamp(28px, 3.5vw, 48px) clamp(0px, 3vw, 48px) 0 0; }
.audience + .audience { border-left: 1px solid var(--line); padding-left: clamp(24px, 3.5vw, 48px); }
.audience h3 { font-size: clamp(1.3rem, 1.8vw, 1.65rem); line-height: 1.2; letter-spacing: -0.02em; font-variation-settings: "wdth" 108; margin: 14px 0 24px; max-width: 26ch; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .audience + .audience { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; margin-top: 32px; }
}

.ticks-list li { position: relative; padding: 10px 0 10px 26px; border-top: 1px solid var(--line); }
.ticks-list li:last-child { border-bottom: 1px solid var(--line); }
.ticks-list li::before {
  content: ""; position: absolute; left: 2px; top: calc(10px + 0.8em - 4px); width: 8px; height: 8px;
  border: 1.5px solid var(--accent); transform: rotate(45deg);
}

/* CTA band: drenched violet */
.cta { background: var(--accent); color: var(--on-accent); position: relative; isolation: isolate; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in oklch, var(--on-accent) 12%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--on-accent) 12%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.cta-in { padding-top: clamp(72px, 10vw, 136px); padding-bottom: clamp(72px, 10vw, 136px); }
.cta-title {
  font-size: clamp(2.2rem, 5.6vw, 4.8rem); line-height: 1; letter-spacing: -0.035em;
  font-variation-settings: "wdth" 116; font-weight: 640; max-width: 16ch;
}
.cta-copy { margin-top: 24px; max-width: 52ch; font-size: 1.1rem; color: color-mix(in oklch, var(--on-accent) 88%, transparent); }
.cta-mail { font-family: var(--mono); font-size: 0.95rem; color: var(--on-accent); text-underline-offset: 5px; padding: 12px 4px; overflow-wrap: anywhere; }

/* ---------- Page heroes ---------- */
.page-hero { padding: clamp(56px, 9vw, 128px) 0 clamp(56px, 8vw, 112px); }
.page-hero-sm { padding-bottom: clamp(40px, 5vw, 64px); }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.jump a {
  display: inline-flex; gap: 10px; align-items: center; padding: 10px 14px; min-height: 44px;
  border: 1px solid var(--ink-line); text-decoration: none; font-size: 0.92rem; transition: border-color 0.2s, background-color 0.2s;
}
.jump a:hover { border-color: var(--accent-soft); background: var(--ink-2); }
.jump span { font-family: var(--mono); font-size: 0.75rem; color: var(--accent-soft); }

/* Services detail */
.service.alt { background: var(--paper-2); }
.service-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); }
.service-head { position: relative; }
.service-no {
  font-family: var(--mono); font-size: clamp(4rem, 9vw, 8rem); line-height: 0.8; font-weight: 400;
  color: transparent; -webkit-text-stroke: 1px var(--accent); letter-spacing: -0.04em; margin-bottom: 28px;
}
.service-head .h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.service-lede { font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem); line-height: 1.5; max-width: 50ch; margin-bottom: 40px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.cols .mono-label { margin-bottom: 14px; }
.fit { margin-top: 36px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); max-width: 62ch; }
.service.alt .fit { background: var(--paper); }
.service:not(.alt) .fit { background: var(--paper-2); }
.fit .mono-label { color: var(--accent); margin-right: 8px; }
@media (min-width: 900px) { .service-head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; } }
@media (max-width: 900px) { .service-in { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cols { grid-template-columns: 1fr; } }

.phase-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--ink-line); }
.phase-strip li {
  padding: 22px 18px; font-size: 1.15rem; font-weight: 600; font-variation-settings: "wdth" 110;
  border-left: 1px solid var(--ink-line); position: relative;
}
.phase-strip li:first-child { border-left: 0; }
.phase-strip span { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--accent-soft); font-weight: 400; margin-bottom: 6px; }
.strip-note { margin-top: 24px; color: var(--on-ink-muted); max-width: 62ch; }
.strip-note a { color: var(--on-ink); text-underline-offset: 4px; }
@media (max-width: 760px) {
  .phase-strip { grid-template-columns: 1fr; }
  .phase-strip li { border-left: 0; border-top: 1px solid var(--ink-line); display: flex; gap: 16px; align-items: baseline; padding: 16px 18px; }
  .phase-strip li:first-child { border-top: 0; }
  .phase-strip span { margin: 0; }
}

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose p { font-size: 1.1rem; line-height: 1.7; max-width: 60ch; }
.prose p + p { margin-top: 1.2em; }
.prose p:first-child { font-size: clamp(1.25rem, 0.8vw + 1rem, 1.5rem); line-height: 1.45; letter-spacing: -0.01em; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink-line); }
.principles li { padding: 36px clamp(0px, 3vw, 40px) 40px 0; border-bottom: 1px solid var(--ink-line); display: grid; grid-template-columns: 48px 1fr; column-gap: 8px; }
.principles li:nth-child(even) { padding-left: clamp(24px, 3vw, 40px); border-left: 1px solid var(--ink-line); }
.p-no { grid-row: span 2; font-family: var(--mono); color: var(--accent-soft); font-size: 0.85rem; padding-top: 5px; }
.principles h3 { font-size: 1.35rem; font-variation-settings: "wdth" 110; letter-spacing: -0.02em; margin-bottom: 10px; }
.principles p { color: var(--on-ink-muted); max-width: 44ch; }
@media (max-width: 760px) {
  .principles { grid-template-columns: 1fr; }
  .principles li:nth-child(even) { padding-left: 0; border-left: 0; }
}
.focus { border-top: 1px solid var(--text); }
.focus a {
  display: flex; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; font-size: clamp(1.2rem, 1.6vw, 1.5rem); font-weight: 600; font-variation-settings: "wdth" 110; letter-spacing: -0.015em;
}
.focus span { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); font-weight: 400; }
.focus .arrow { margin-left: auto; color: var(--accent); width: 20px; height: 20px; transition: transform 0.35s var(--ease); }
.focus a:hover .arrow { transform: translateX(5px); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; gap: 24px; } }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; padding: 0; }
.field legend { margin-bottom: 10px; }
.req { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 400; margin-left: 6px; }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--paper); border: 1px solid var(--line); border-bottom: 1.5px solid var(--text);
  padding: 13px 14px; border-radius: 0; transition: border-color 0.2s, background-color 0.2s;
}
textarea { resize: vertical; min-height: 150px; }
input::placeholder, textarea::placeholder { color: color-mix(in oklch, var(--muted) 85%, transparent); }
input:hover, textarea:hover { background: var(--paper-2); }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-radius: 0; }
[aria-invalid="true"] { border-color: oklch(0.55 0.2 25) !important; }
.err { color: oklch(0.5 0.19 25); font-size: 0.88rem; min-height: 0; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px;
  border: 1px solid var(--line); font-size: 0.92rem; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip:hover span { border-color: var(--text); }
.chip input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-note { font-size: 0.88rem; color: var(--muted); max-width: 36ch; }
.form-status { font-weight: 500; }
.form-status:empty { display: none; }
.contact-aside { display: grid; gap: 40px; padding-top: 4px; }
.aside-block .mono-label { margin-bottom: 12px; }
.big-mail {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 600; font-variation-settings: "wdth" 108;
  color: var(--accent); text-underline-offset: 6px; overflow-wrap: anywhere;
}
.next-steps li { display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.next-steps li:last-child { border-bottom: 1px solid var(--line); }
.next-steps span { font-family: var(--mono); color: var(--accent); font-size: 0.85rem; padding-top: 2px; }

/* Legal */
.legal { max-width: 68ch; }
.legal > p:first-child { font-size: 1.15rem; }
.legal h2 { font-size: 1.25rem; font-variation-settings: "wdth" 110; letter-spacing: -0.01em; margin: 2.2em 0 0.6em; }
.legal a { color: var(--accent); text-underline-offset: 3px; }

/* 404 */
.notfound { min-height: 70vh; }
.route-list { margin-top: 32px; border-top: 1px solid var(--ink-line); max-width: 520px; }
.route-list a { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--ink-line); text-decoration: none; }
.route-list a:hover { color: var(--accent-soft); }
.route-list code { font-family: var(--mono); font-size: 0.85rem; color: var(--accent-soft); min-width: 96px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-ink); padding: clamp(56px, 7vw, 88px) 0 28px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--ink-line); }
.footer-brand p { margin: 16px 0 12px; color: var(--on-ink-muted); max-width: 32ch; }
.footer-mail { font-family: var(--mono); font-size: 0.9rem; color: var(--accent-soft); text-underline-offset: 4px; overflow-wrap: anywhere; }
.footer .mono-label { margin-bottom: 14px; }
.footer ul a { display: inline-block; padding: 6px 0; color: var(--on-ink-muted); text-decoration: none; transition: color 0.2s; }
.footer ul a:hover { color: var(--on-ink); }
.footer-legal {
  display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr; gap: 24px 40px; margin: 0;
  padding: 28px 0; border-bottom: 1px solid var(--ink-line);
}
.footer-legal dt { margin-bottom: 8px; }
.footer-legal dd { margin: 0; color: var(--on-ink); font-size: 0.9rem; line-height: 1.55; }
.footer-legal div:nth-child(2) dd { font-family: var(--mono); letter-spacing: 0.02em; }
.footer-legal address { font-style: normal; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px;
  font-family: var(--mono); font-size: 0.75rem; color: var(--on-ink-muted); letter-spacing: 0.02em;
}
@media (max-width: 700px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { grid-template-columns: 1fr 1fr; }
  .footer-legal div:last-child { grid-column: 1 / -1; }
}

/* ---------- Motion (hidden only when GSAP will animate) ---------- */
.motion [data-hero], .motion [data-fade], .motion [data-split], .motion [data-phase] { visibility: hidden; }
