/* ==========================================================================
   ODMETech — landing page
   Dependency-free. Sections are ordered as in index.html.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0d0f12;
  --bg-raise: #121519;
  --surface: #161a1f;
  --surface-2: #1b2026;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #eef1f4;
  --text-2: #b8bfc8;
  --muted: #8a939e;

  --accent: #4d94ff;
  --accent-strong: #2a6fe0;
  --accent-hover: #3b82f0;
  --accent-soft: rgba(77, 148, 255, 0.14);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --section-y: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --hero-interval: 7000ms;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img[data-fit="contain"] { object-fit: contain; }
img[data-fit="cover"] { object-fit: cover; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-strong); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.text-muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent-strong); color: #fff; padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--accent); }

.section-title {
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 600;
  text-wrap: balance;
}
.section-lead { font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 36em; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-2); }
.btn-arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 15px; font-weight: 600; color: var(--text);
  padding-bottom: 4px; border-bottom: 1px solid var(--line-strong);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.text-link:hover { border-color: var(--accent); color: #fff; }

.icon-btn {
  width: 48px; height: 48px; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 2px; cursor: pointer;
  color: var(--text); transition: border-color .25s var(--ease), background-color .25s var(--ease), opacity .25s;
}
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
.icon-btn:hover:not(:disabled) { border-color: var(--text-2); background: rgba(255,255,255,.03); }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, body.nav-open .site-header {
  background: rgba(13, 15, 18, 0.94);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 40px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand-mark { width: 30px; height: 30px; }
.brand-mark-accent { fill: var(--accent); }
.brand-word { font-size: 18px; letter-spacing: 0.02em; white-space: nowrap; line-height: 1; }
.brand-word strong { font-weight: 700; }
.brand-word span { font-weight: 400; color: var(--text-2); }

.site-nav { margin-left: auto; }
.nav-list { display: flex; gap: 34px; }
.nav-list a {
  position: relative; font-size: 14px; color: var(--text-2); padding-block: 8px;
  transition: color .25s var(--ease);
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-list a:hover, .nav-list a.is-active { color: var(--text); }
.nav-list a.is-active::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: auto; margin-right: -10px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.nav-toggle-bar {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav-toggle-bar:first-child { top: 17px; }
.nav-toggle-bar:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0; margin: 0;
    background: var(--bg);
    padding: 32px var(--gutter) 40px;
    display: flex; flex-direction: column; justify-content: space-between;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
  }
  body.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { display: block; font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 500; letter-spacing: -0.02em; color: var(--text); padding-block: 18px; }
  .nav-list a::after { display: none; }
  .nav-cta-mobile { display: inline-flex; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(32px, 5vw, 56px);
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 620px at 68% 46%, #18202b 0%, rgba(13,15,18,0) 70%),
    var(--bg);
}
.hero::before { /* engineering grid */
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 62% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 62% 45%, #000 20%, transparent 75%);
}
.hero::after { /* readability scrim */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(13,15,18,.86) 30%, rgba(13,15,18,0) 62%),
    linear-gradient(0deg, var(--bg) 0%, rgba(13,15,18,0) 28%);
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  position: absolute; top: 50%; right: -6vw;
  width: min(78vw, 1500px); height: auto; aspect-ratio: 16 / 10;
  transform: translateY(-46%) scale(1.04);
  transition: transform 8s linear;
}
.hero-slide.is-active img { transform: translateY(-46%) scale(1); }

.hero-inner { position: relative; display: grid; gap: clamp(48px, 8vh, 96px); }
.hero-copy { max-width: 760px; }
.hero-title {
  font-size: clamp(2.9rem, 7.4vw, 7rem);
  line-height: 0.96; letter-spacing: -0.045em; font-weight: 600;
  margin-bottom: 28px;
}
.hero-title .line { display: block; }
.hero-title .line-muted { color: var(--muted); }
.hero-lead { font-size: clamp(1.05rem, 1.45vw, 1.3rem); color: var(--text-2); max-width: 31em; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-controls { display: flex; align-items: flex-end; gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.hero-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 20px; flex: 1; }
.hero-tab {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline;
  background: none; border: 0; padding: 0 0 4px; text-align: left; cursor: pointer; color: var(--muted);
  transition: color .3s var(--ease);
}
.hero-tab:hover, .hero-tab.is-active { color: var(--text); }
.hero-tab-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; }
.hero-tab-label { font-size: 14px; font-weight: 500; }
.hero-tab-bar { grid-column: 1 / -1; display: block; height: 2px; background: var(--line-strong); margin-top: 10px; overflow: hidden; }
.hero-tab-bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hero-tab.is-active .hero-tab-bar i { transform: scaleX(1); }
.hero.is-auto .hero-tab.is-active .hero-tab-bar i { animation: hero-progress var(--hero-interval) linear forwards; }
.hero.is-held .hero-tab.is-active .hero-tab-bar i { animation-play-state: paused; }
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-pause { width: 40px; height: 40px; flex: none; }
.hero-pause svg { width: 14px; height: 14px; }
.hero-pause .icon-play { display: none; }
.hero-pause[aria-pressed="true"] .icon-pause { display: none; }
.hero-pause[aria-pressed="true"] .icon-play { display: block; }

@media (max-width: 760px) {
  .hero { align-items: flex-end; }
  .hero-slide img { top: calc(var(--header-h) - 10px); right: auto; left: 50%; width: 170vw; max-width: none; transform: translateX(-46%) scale(1.04); }
  .hero-slide.is-active img { transform: translateX(-46%) scale(1); }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) 42%, rgba(13,15,18,.7) 60%, rgba(13,15,18,0) 80%); }
  .hero-tabs { gap: 12px; }
  .hero-tab-label { font-size: 13px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Intro ---------- */
.intro { padding-block: clamp(72px, 9vw, 132px); border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 24px 48px; align-items: start; }
.intro-statement { font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.22; letter-spacing: -0.025em; font-weight: 500; text-wrap: pretty; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; flex-wrap: wrap; }
.section-lead--aside { max-width: 30em; }

/* ---------- Capabilities carousel ---------- */
.carousel-controls { display: flex; align-items: center; gap: 12px; }
.carousel-count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: .08em; margin-right: 4px; }
.carousel-count [data-current] { color: var(--text); }
.carousel-progress { width: 96px; height: 1px; background: var(--line-strong); margin-right: 12px; }
.carousel-progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(.333); transform-origin: left; transition: transform .45s var(--ease); }

.cap-track {
  --track-inset: max(var(--gutter), calc((100vw - var(--container)) / 2));
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 640px); gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--track-inset);
  padding-inline: var(--track-inset); padding-bottom: 4px;
  scrollbar-width: none; cursor: grab;
}
.cap-track::-webkit-scrollbar { display: none; }
.cap-track:focus-visible { outline-offset: -2px; }
.cap-track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.cap-track.is-dragging * { pointer-events: none; }

.cap-card {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .4s var(--ease);
}
.cap-card:hover { border-color: var(--line-strong); }
.cap-visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line); }
.cap-visual img { width: 100%; height: 100%; transition: transform 1.2s var(--ease); -webkit-user-drag: none; }
.cap-card:hover .cap-visual img { transform: scale(1.03); }
.cap-card--mfg .cap-visual { background: radial-gradient(90% 90% at 55% 40%, #1d2733 0%, #111418 75%); }
.cap-card--eng .cap-visual {
  background-color: #0f151c;
  background-image:
    linear-gradient(rgba(77,148,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,148,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cap-card--eng .cap-visual img { padding: 6%; }
.cap-card--src .cap-visual { background-color: #14171b; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.3px); background-size: 18px 18px; }
.cap-card--src .cap-visual img { padding: 4% 6%; }

.cap-body { padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; }
.cap-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .14em; }
.cap-title { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; }
.cap-text { color: var(--text-2); }
.cap-points { margin-top: 10px; border-top: 1px solid var(--line); }
.cap-points li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text-2);
}
.cap-points li::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--accent); flex: none; }

/* ---------- Manufacturing feature ---------- */
.manufacturing { background: var(--bg-raise); border-block: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; align-items: center; }
.feature-media {
  grid-column: 1 / span 7; aspect-ratio: 16 / 11; overflow: hidden;
  background: radial-gradient(80% 80% at 50% 45%, #1c242f 0%, #0f1215 80%);
  border: 1px solid var(--line);
}
.feature-media img { width: 100%; height: 100%; }
.feature-copy { grid-column: 9 / span 4; }
.feature-copy .section-title { margin-bottom: 28px; }
.spec-list { margin: 40px 0; border-top: 1px solid var(--line); }
.spec-list div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.spec-list dd { font-size: 16px; }
@media (max-width: 1100px) {
  .feature-media { grid-column: 1 / -1; }
  .feature-copy { grid-column: 1 / -1; max-width: 640px; }
}

/* ---------- Engineering process ---------- */
.process-rail {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong); margin-bottom: 28px;
  counter-reset: step;
}
.process-rail li {
  position: relative; padding-top: 18px; font-size: 14px; color: var(--text-2);
  display: flex; gap: 12px; align-items: baseline;
}
.process-rail li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--accent); }
.process-rail span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.process-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.process-item { grid-column: span 5; display: flex; flex-direction: column; gap: 18px; }
.process-item--wide { grid-column: span 7; }
.process-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.process-item--wide .process-media { aspect-ratio: 16 / 10.5; }
.process-media img { width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.process-item:hover .process-media img { transform: scale(1.025); }
.process-media--blueprint {
  background-color: #0f151c;
  background-image:
    linear-gradient(rgba(77,148,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,148,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.process-media--lit { background: radial-gradient(85% 85% at 50% 45%, #1c242f 0%, #111418 80%); }
.process-item figcaption { color: var(--text-2); font-size: 15px; max-width: 38em; }
.process-item figcaption strong { color: var(--text); font-weight: 600; margin-right: 6px; }
.process-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .12em; margin-right: 12px; }
@media (max-width: 860px) {
  .process-rail { display: none; }
  .process-item, .process-item--wide { grid-column: 1 / -1; }
  .process-item--wide .process-media { aspect-ratio: 4 / 3; }
}

/* ---------- Industries ---------- */
.industries { background: var(--bg-raise); border-block: 1px solid var(--line); }
.industries-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 112px); align-items: start; }
.industries-aside .section-title { margin-bottom: 24px; }
.industries-media {
  margin-top: 48px; aspect-ratio: 19 / 16; overflow: hidden;
  background: radial-gradient(80% 80% at 50% 45%, #1a212b 0%, #0f1215 80%); border: 1px solid var(--line);
}
.industries-media img { width: 100%; height: 100%; }
.industry-list { border-top: 1px solid var(--line-strong); }
.industry {
  display: grid; grid-template-columns: 56px 1fr; gap: 28px; align-items: start;
  padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line);
}
.industry-icon { width: 48px; height: 48px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; }
.industry h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 10px; }
.industry p { color: var(--text-2); max-width: 34em; }
@media (min-width: 1001px) { .industries-aside { position: sticky; top: calc(var(--header-h) + 40px); } }
@media (max-width: 1000px) { .industries-grid { grid-template-columns: 1fr; } .industries-media { max-width: 560px; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 32px clamp(48px, 7vw, 112px); margin-bottom: clamp(56px, 7vw, 96px); }
.about-copy { display: grid; gap: 24px; align-content: end; }
.about-copy p:not(.section-lead) { color: var(--muted); max-width: 36em; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.principles li { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.principle-num { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .14em; margin-bottom: 36px; }
.principles h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 10px; }
.principles p { color: var(--text-2); font-size: 15px; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principle-num { margin-bottom: 16px; }
}

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); background: radial-gradient(900px 500px at 15% 0%, rgba(77,148,255,.07), transparent 70%), var(--bg); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px clamp(48px, 7vw, 112px); }
.contact-title { font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: 1; letter-spacing: -0.04em; font-weight: 600; margin-bottom: 24px; text-wrap: balance; }
.contact-details { margin-top: 48px; border-top: 1px solid var(--line); }
.contact-details div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-details dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-details a[href]:hover { color: var(--accent); }
.is-placeholder { color: var(--muted); font-style: italic; }

.contact-form { display: grid; gap: 22px; align-self: start; background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 48px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 10px; }
.field label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.req { color: var(--accent); }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 14px 16px; font-size: 16px; line-height: 1.5;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: #5f6873; }
.field input:hover, .field textarea:hover { border-color: rgba(255,255,255,.26); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #e0695c; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--muted); max-width: 26em; }
/* Mailboxes */
.channel-list { margin-top: 48px; border-top: 1px solid var(--line); }
.channel { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.channel-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.channel-email { font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 500; letter-spacing: -0.01em; color: var(--text); overflow-wrap: anywhere; }
a.channel-email { transition: color .25s var(--ease); }
a.channel-email:hover { color: var(--accent); }
.channel-status { margin-top: 14px; font-size: 13px; color: var(--muted); }
.channel-list + .channel-status + .contact-details, .channel-list + .contact-details { margin-top: 0; border-top: 0; }

/* Form: mode banner, select, hints, errors */
.form-mode {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border: 1px dashed rgba(77,148,255,.45); background: rgba(77,148,255,.06);
  font-size: 14px; color: var(--text-2);
}
.form-mode[hidden], .field-error[hidden], .form-status[hidden], .channel-status[hidden] { display: none; }
.form-mode-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: translateY(-70%) rotate(45deg);
}
.field select {
  width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 14px 48px 14px 16px; font-size: 16px; line-height: 1.5; color: var(--text);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field select:hover { border-color: rgba(255,255,255,.26); }
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field select:has(option[value=""]:checked) { color: #8a939e; }
.field select option { color: var(--text); background: var(--surface); }
.field-hint { font-size: 13px; color: var(--muted); min-height: 0; }
.field-hint:empty { display: none; }
.field-error { font-size: 13px; color: #f08a7e; display: flex; gap: 8px; align-items: baseline; }
.field-error::before { content: "!"; font-family: var(--font-mono); font-weight: 700; }
.field [aria-invalid="true"] { border-color: #e0695c; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(224,105,92,.18); border-color: #e0695c; }

/* Honeypot (kept off-screen, not display:none, so bots still see it) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Submit loading state */
.form-submit .spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite;
}
.contact-form.is-busy .form-submit .spinner { display: inline-block; }
.contact-form.is-busy .form-submit .btn-arrow { display: none; }
.form-submit:disabled { cursor: progress; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Result panel */
.form-status {
  border: 1px solid var(--line-strong); border-left-width: 2px;
  background: var(--bg); padding: 16px 18px; font-size: 15px; color: var(--text-2);
  display: grid; gap: 6px;
}
.form-status:focus { outline: none; }
.form-status strong { color: var(--text); }
.form-status--test, .form-status--handoff { border-left-color: var(--accent); }
.form-status .text-link { justify-self: start; margin-top: 6px; }
.form-status--success { border-left-color: #4fbf8a; }
.form-status--error { border-left-color: #e0695c; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 6fr 3fr 3fr; gap: 48px; padding-bottom: clamp(48px, 6vw, 80px); }
.footer-brand p { margin-top: 24px; color: var(--muted); max-width: 26em; font-size: 15px; }
.footer-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-nav ul, .footer-contact ul { display: grid; gap: 10px; font-size: 15px; color: var(--text-2); }
.footer-nav a:hover, .footer-contact a[href]:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-block: 28px; font-size: 13px; color: var(--muted);
}
.footer-bottom .text-link { font-size: 13px; color: var(--text-2); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll (JS only) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Hero entrance */
.js .hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .18s; }
.js .hero-copy > :nth-child(4) { animation-delay: .26s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js .hero-copy > * { opacity: 1; transform: none; }
  .hero-slide img, .hero-slide.is-active img { transition: none; }
}
