/* ═══════════════════════════════════════════════
   Digiscope LLP — "Signal"
   Dual-theme design system
   ═══════════════════════════════════════════════ */

:root[data-theme="dark"] {
  --bg:          #060c16;
  --bg-2:        #0a1220;
  --bg-3:        #0d1727;
  --surface:     rgba(255, 255, 255, 0.045);
  --surface-2:   rgba(255, 255, 255, 0.075);
  --border:      rgba(255, 255, 255, 0.10);
  --border-lit:  rgba(47, 212, 200, 0.42);
  --text:        #e8eef8;
  --text-2:      #93a6c2;
  --muted:       #6d82a1;
  --accent:      #2fd4c8;
  --accent-2:    #4d9bff;
  --brand:       #2d5fa8;
  --glow:        rgba(47, 212, 200, 0.30);
  --glow-2:      rgba(77, 155, 255, 0.22);
  --shadow:      0 24px 60px rgba(0, 0, 0, 0.55);
  --grid-line:   rgba(255, 255, 255, 0.035);
  --scope-bg:    rgba(4, 10, 20, 0.72);
  --on-accent:   #04121a;
}

:root[data-theme="light"] {
  --bg:          #f4f7fc;
  --bg-2:        #ffffff;
  --bg-3:        #eaf0f8;
  --surface:     #ffffff;
  --surface-2:   #f2f6fc;
  --border:      #dce5f1;
  --border-lit:  rgba(13, 139, 145, 0.45);
  --text:        #0c2140;
  --text-2:      #47597a;
  --muted:       #6b7c96;
  --accent:      #0d8b91;
  --accent-2:    #1b4179;
  --brand:       #1b4179;
  --glow:        rgba(13, 139, 145, 0.18);
  --glow-2:      rgba(27, 65, 121, 0.12);
  --shadow:      0 18px 44px rgba(16, 42, 80, 0.10);
  --grid-line:   rgba(13, 36, 69, 0.045);
  --scope-bg:    #ffffff;
  --on-accent:   #ffffff;
}

:root {
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;
  --f-head: 'Space Grotesk', 'Inter', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad: clamp(3.5rem, 8vw, 7rem);
}

/* ── base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

img { display: block; max-width: 100%; height: auto; }
svg { width: 100%; height: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: min(1180px, 90%); margin-inline: auto; }
.mono { font-family: var(--f-mono); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--on-accent);
  padding: .7rem 1.2rem; border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── type ── */
h1, h2, h3 { font-family: var(--f-head); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(3rem, 8.5vw, 5.6rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }

.grad {
  background: linear-gradient(105deg, var(--accent) 0%, var(--accent-2) 65%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  display: inline-block; font-family: var(--f-mono); font-size: .74rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .9rem; font-weight: 500;
}

.s-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.s-sub { color: var(--text-2); margin-top: .9rem; font-size: 1.02rem; }
.s-sub strong { color: var(--text); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .85rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: transform .22s cubic-bezier(.34,1.4,.5,1), box-shadow .22s ease,
              background .22s ease, border-color .22s ease, color .22s ease;
}
.btn-sm { padding: .55rem 1.25rem; font-size: .86rem; }
.btn-block { width: 100%; }
.arr { transition: transform .22s ease; }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(105deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  box-shadow: 0 8px 26px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px var(--glow); }

.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--border-lit); background: var(--surface-2); transform: translateY(-2px); }

/* ═══════════ NAV ═══════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border);
  transition: background .4s ease, border-color .4s ease;
}
.nav-inner { display: flex; align-items: center; gap: 1.25rem; height: 68px; }

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: 40px; }
.brand-text {
  font-family: var(--f-head); font-weight: 700; letter-spacing: .08em; font-size: .95rem;
}
.brand-text em { font-style: normal; color: var(--accent); margin-left: .3em; font-weight: 500; }

.nav-links { display: flex; gap: 1.55rem; margin-left: auto; }
.nav-links a {
  position: relative; color: var(--text-2); text-decoration: none;
  font-size: .89rem; font-weight: 500; padding: .3rem 0; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--accent); transition: width .26s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: .7rem; margin-left: 1rem; }

.theme-toggle {
  width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; color: var(--text-2); transition: all .24s ease; position: relative;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--border-lit); transform: rotate(18deg); }
.theme-toggle svg {
  width: 18px; height: 18px; position: absolute;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .3s ease, transform .4s ease;
}
[data-theme="dark"] .ico-sun  { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .ico-moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme="light"] .ico-sun  { opacity: 0; transform: rotate(90deg) scale(.4); }
[data-theme="light"] .ico-moon { opacity: 1; transform: rotate(0) scale(1); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px 4px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════ HERO ═══════════ */
.hero { position: relative; overflow: hidden; padding-top: clamp(2.5rem, 6vw, 5rem); }

.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 25%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 25%, #000 30%, transparent 78%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.orb-a { width: 560px; height: 560px; background: var(--glow);   top: -180px; right: -120px; }
.orb-b { width: 480px; height: 480px; background: var(--glow-2); bottom: 40px; left: -180px; }

.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
}

.badge {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--surface); border: 1px solid var(--border);
  padding: .45rem 1rem .45rem .8rem; border-radius: 999px;
  color: var(--text-2); margin-bottom: 1.6rem;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--glow); animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 var(--glow); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.lede { color: var(--text-2); font-size: clamp(1rem, 1.5vw, 1.14rem); max-width: 33rem; margin: 1.4rem 0 2.2rem; }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-bottom: 2.8rem; }

.stats { display: flex; gap: clamp(1.5rem, 4vw, 3.2rem); flex-wrap: wrap; }
.stats div { position: relative; padding-left: 1rem; }
.stats div::before {
  content: ''; position: absolute; left: 0; top: .35rem; bottom: .35rem;
  width: 2px; background: linear-gradient(var(--accent), transparent);
}
.stats dt { font-family: var(--f-head); font-size: 1.85rem; font-weight: 700; line-height: 1; color: var(--text); }
.stats dd { font-size: .78rem; color: var(--muted); margin-top: .35rem; max-width: 9rem; }

/* device visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.device-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow); max-width: 340px;
}
.device-glow {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at 50% 42%, var(--glow) 0%, transparent 58%);
  mix-blend-mode: screen;
}
[data-theme="light"] .device-glow { mix-blend-mode: multiply; opacity: .5; }
[data-theme="dark"]  .only-light { display: none; }
[data-theme="light"] .only-dark  { display: none; }

.chip {
  position: absolute; z-index: 3;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-lit); color: var(--text);
  padding: .35rem .8rem; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  animation: float 6s ease-in-out infinite;
}
.chip-1 { top: 12%;  left: -6%;  animation-delay: 0s; }
.chip-2 { top: 46%;  right: -8%; animation-delay: -2s; }
.chip-3 { bottom: 16%; left: 2%;  animation-delay: -4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* live scope strip */
.hero-scope { position: relative; border-top: 1px solid var(--border); background: var(--bg-2); }
.hero-scope canvas { display: block; width: 100%; height: 150px; }
.scope-tag {
  position: absolute; top: .9rem; left: max(5vw, calc((100% - 1180px) / 2));
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .18em;
  color: var(--muted); display: inline-flex; align-items: center; gap: .5rem;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ═══════════ SECTIONS ═══════════ */
.section { padding-block: var(--pad); position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }

.grid { display: grid; gap: 1.15rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.9rem 1.6rem;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.card p { color: var(--text-2); font-size: .93rem; margin-top: .55rem; }
.card-lift:hover, .card:hover { border-color: var(--border-lit); transform: translateY(-4px); }

.hex-ico {
  width: 46px; height: 52px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  color: var(--on-accent);
}
.hex-ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ── split ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-copy p { color: var(--text-2); margin-top: 1rem; }
.split-copy p strong { color: var(--text); }
.split-media { position: relative; }
.split-media img { border-radius: var(--r-lg); width: 100%; box-shadow: var(--shadow); }
.media-frame {
  position: absolute; inset: -10px -10px auto auto; width: 55%; height: 55%;
  border-top: 1px solid var(--border-lit); border-right: 1px solid var(--border-lit);
  border-radius: 0 var(--r-lg) 0 0; pointer-events: none;
}

.checks { list-style: none; margin-top: 1.6rem; display: grid; gap: .8rem; }
.checks li { position: relative; padding-left: 2.1rem; color: var(--text-2); font-size: .95rem; }
.checks li strong { color: var(--text); }
.checks li::before {
  content: ''; position: absolute; left: 0; top: .3rem; width: 1.3rem; height: 1.3rem;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.checks li::after {
  content: ''; position: absolute; left: .42rem; top: .62rem;
  width: .46rem; height: .24rem; border-left: 2px solid var(--on-accent);
  border-bottom: 2px solid var(--on-accent); transform: rotate(-45deg);
}

/* ═══════════ MODE CARDS ═══════════ */
.modes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }

.mode-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: transform .32s ease, border-color .32s ease, box-shadow .32s ease;
}
.mode-card:hover {
  transform: translateY(-6px); border-color: var(--border-lit); box-shadow: 0 18px 44px var(--glow);
}

/* Each render ships a dark- and a light-background variant, so the shot needs
   no backdrop or vignette of its own — CSS just picks the matching one. */
.mc-shot { position: relative; overflow: hidden; }
.mc-shot img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.mode-card:hover .mc-shot img { transform: scale(1.05); }

.mc-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.mc-top { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-bottom: .6rem; }
.mc-band {
  font-size: .7rem; color: var(--accent); white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: .22rem .6rem; border-radius: 999px;
}
.mc-body > p { color: var(--text-2); font-size: .9rem; flex: 1; }

.mc-meta { margin-top: 1.1rem; display: grid; gap: .55rem; }
.mc-meta div { display: flex; justify-content: space-between; gap: .8rem; border-top: 1px dashed var(--border); padding-top: .55rem; }
.mc-meta dt { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.mc-meta dd { font-size: .8rem; color: var(--text); text-align: right; font-weight: 500; }

/* ═══════════ STEPS ═══════════ */
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem; margin-bottom: clamp(3rem, 6vw, 5rem);
}
.step { position: relative; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.step::before {
  content: ''; position: absolute; top: -1px; left: 0; width: 34%; height: 2px;
  background: var(--accent); box-shadow: 0 0 12px var(--glow);
}
.step-n { display: block; font-size: .78rem; color: var(--accent); letter-spacing: .16em; margin-bottom: .7rem; }
.step p { color: var(--text-2); font-size: .9rem; margin-top: .5rem; }

.who { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.split-rev .split-media { order: 2; }
.split-rev .split-copy { order: 1; }

/* The 'in use' poster is a ringed circle on white — clip away the corners
   so it floats on either theme instead of sitting on a white card. */
.who .split-media img {
  clip-path: circle(49.5% at 50% 50%);
  border-radius: 0; box-shadow: none;
  max-width: 420px; margin-inline: auto;
}
.who .media-frame { display: none; }

/* ── honeycomb ── */
.hexgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; }
.hex {
  width: 100%; max-width: 172px; margin-inline: auto;
  aspect-ratio: 1 / 1.12; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .55rem; text-align: center;
  padding: .9rem .7rem;
  background: var(--surface-2);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  font-size: .76rem; font-weight: 600; line-height: 1.3; color: var(--text);
  transition: background .3s ease, transform .3s ease, color .3s ease;
}
.hex svg {
  width: 26px; height: 26px; flex: none;
  fill: none; stroke: var(--accent); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .3s ease;
}
.hex:nth-child(even) { transform: translateY(22px); }
.hex:hover { background: linear-gradient(150deg, var(--accent), var(--accent-2)); color: var(--on-accent); }
.hex:hover svg { stroke: var(--on-accent); }
.hex:nth-child(even):hover { transform: translateY(15px); }
.hex:nth-child(odd):hover { transform: translateY(-7px); }

/* ═══════════ TIMELINE ═══════════ */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; position: relative; }
.timeline::before {
  content: ''; position: absolute; top: 7px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--border) 70%);
}
.tl { padding-top: 2.4rem; position: relative; }
.tl-dot {
  position: absolute; top: 0; left: 0; width: 15px; height: 15px;
  background: var(--bg-2); border: 2px solid var(--border); border-radius: 50%;
}
.tl.is-now .tl-dot {
  border-color: var(--accent); background: var(--accent);
  box-shadow: 0 0 0 5px var(--glow);
}
.tl-when { display: block; font-size: .68rem; letter-spacing: .16em; color: var(--accent); margin-bottom: .5rem; }
.tl p { color: var(--text-2); font-size: .89rem; margin-top: .45rem; }

/* ═══════════ TEAM ═══════════ */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.member {
  text-align: center; padding: 1.7rem .9rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  transition: transform .3s ease, border-color .3s ease;
}
.member:hover { transform: translateY(-5px); border-color: var(--border-lit); }
.av {
  width: 58px; height: 64px; margin: 0 auto .9rem; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--brand), var(--accent));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 1.05rem;
}
.member h3 { font-size: .88rem; }
.role { display: block; font-size: .63rem; letter-spacing: .16em; color: var(--muted); margin-top: .35rem; }

/* ═══════════ CONTACT ═══════════ */
.section-contact { background: var(--bg-2); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }

.contact-info { display: grid; gap: .9rem; }
.ci-row {
  display: flex; gap: 1rem; align-items: flex-start; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.15rem 1.25rem; transition: all .26s ease;
}
a.ci-row:hover { border-color: var(--border-lit); transform: translateX(4px); }
.ci-ico {
  flex: 0 0 40px; width: 40px; height: 45px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  color: var(--on-accent);
}
.ci-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ci-row small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; font-family: var(--f-mono); }
.ci-row strong { display: block; font-size: .97rem; color: var(--text); }
.ci-row em { display: block; font-style: normal; font-size: .82rem; color: var(--text-2); margin-top: .15rem; }

.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: clamp(1.3rem, 3vw, 2rem); display: grid; gap: 1rem;
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field > span { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.field > span small { font-weight: 400; color: var(--muted); font-size: .74rem; }
.field input, .field select, .field textarea {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: .75rem .9rem; font-size: .92rem; color: var(--text);
  transition: border-color .22s ease, box-shadow .22s ease; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .75; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow);
}
.field.invalid input, .field.invalid textarea { border-color: #ef5f6b; }

.form-note { font-size: .84rem; color: var(--text-2); min-height: 1.2rem; margin-top: -.2rem; }
.form-note.ok  { color: var(--accent); }
.form-note.err { color: #ef5f6b; }

/* ═══════════ FOOTER ═══════════ */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding-block: 2.2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.f-brand { display: flex; align-items: center; gap: .8rem; }
.f-brand strong { display: block; font-family: var(--f-head); font-size: .95rem; }
.f-brand span { font-size: .8rem; color: var(--muted); font-style: italic; }
.f-meta { font-size: .78rem; color: var(--text-2); text-align: right; line-height: 1.7; }
.f-meta span { color: var(--muted); }

/* ═══════════ REVEAL ═══════════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
  .timeline::before { display: none; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .hexgrid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: .5rem 5% 1.4rem;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    clip-path: inset(0 0 100% 0); transition: clip-path .35s ease;
  }
  .nav-links.open { clip-path: inset(0 0 0 0); }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
  .nav-links a::after { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-cta { display: none; }
  .burger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; padding-block: 2rem 3rem; }
  .hero-visual { order: -1; }
  .device-frame { max-width: 240px; }
  .chip-1 { left: 0; } .chip-2 { right: 0; } .chip-3 { left: 6%; }
  h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .lede { margin-inline: 0; }

  .split, .grid-3, .steps, .contact-grid, .modes-grid { grid-template-columns: 1fr; }
  .split-rev .split-media { order: 1; }
  .split-rev .split-copy { order: 2; }
  .steps { gap: 1.6rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .f-meta { text-align: left; }
}

@media (max-width: 560px) {
  .grid-4, .team, .hexgrid { grid-template-columns: repeat(2, 1fr); }
  .f-row { grid-template-columns: 1fr; }
  .hex:nth-child(even) { transform: none; }
  .hex:nth-child(even):hover, .hex:nth-child(odd):hover { transform: translateY(-5px); }
  .stats { gap: 1.2rem; }
  .stats dt { font-size: 1.5rem; }
}
