/* Visual Spaces — site styles. Light body; .dark scopes the hero bands, mock-ups, CTA and footer. */

:root {
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --line: rgba(10, 12, 16, 0.09);
  --line-2: rgba(10, 12, 16, 0.16);
  --text: #0b0d12;
  --text-2: #2f3440;
  --muted: #5b6270;
  --dim: #8a909c;
  --accent-ink: #d95600;
  --statement-dim: #b4b9c2;
  --input-bg: #ffffff;
  --placeholder: #a3a8b1;
  --ghost-hover: rgba(10, 12, 16, 0.05);
  --ghost-border-hover: rgba(10, 12, 16, 0.35);
  --card-shadow: 0 1px 2px rgba(10, 12, 16, 0.04), 0 12px 32px -18px rgba(10, 12, 16, 0.18);
  --ok-ink: #047857;
  --err-ink: #b91c1c;
  --orange: #ff6a00;
  --orange-2: #ff8a3d;
  --blue: #4a63d6;
  --blue-2: #6f84ec;
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --wide: "Michroma", "Inter", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: light;
}

.dark, .nav {
  --bg: #07080a;
  --bg-2: #0c0e12;
  --surface: #12151b;
  --surface-2: #181c24;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f5f7;
  --text-2: #c4c9d2;
  --muted: #9aa1ad;
  --dim: #6b7280;
  --accent-ink: #ff6a00;
  --statement-dim: #474d58;
  --input-bg: rgba(7, 8, 10, 0.6);
  --placeholder: #4b515c;
  --ghost-hover: rgba(255, 255, 255, 0.07);
  --ghost-border-hover: rgba(255, 255, 255, 0.4);
  --card-shadow: none;
  --ok-ink: #6ee7b7;
  --err-ink: #fca5a5;
  color-scheme: dark;
}
.dark { background: var(--bg); color: var(--text); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--orange); color: #000; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

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

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.03em; line-height: 1.04; }
.display { font-size: clamp(44px, 8.4vw, 116px); letter-spacing: -0.045em; line-height: 0.96; }
.h1 { font-size: clamp(40px, 6.2vw, 84px); letter-spacing: -0.04em; }
.h2 { font-size: clamp(32px, 4.4vw, 60px); }
.h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.2; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); line-height: 1.55; max-width: 640px; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--wide);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.grad-text {
  background: linear-gradient(100deg, #fff 10%, var(--orange-2) 55%, var(--orange) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px;
  border-radius: 999px;
  font: 500 15px/1 var(--font);
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--orange); color: #0a0a0a; }
.btn-primary:hover { background: var(--orange-2); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--ghost-border-hover); background: var(--ghost-hover); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 8, 10, 0.55);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.nav.light, .nav.open {
  --bg: #ffffff; --line: rgba(10, 12, 16, 0.09); --line-2: rgba(10, 12, 16, 0.16);
  --text: #0b0d12; --muted: #5b6270; --ghost-hover: rgba(10, 12, 16, 0.05);
  color-scheme: light;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
}
.nav-logo .logo-on-light { display: none; }
.nav.light .logo-on-dark, .nav.open .logo-on-dark { display: none; }
.nav.light .logo-on-light, .nav.open .logo-on-light { display: block; }
.nav-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo img { height: 20px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 14.5px; color: var(--muted); padding: 8px 14px; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--ghost-hover); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform 0.3s var(--ease), background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu { display: none; }

@media (max-width: 880px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-logo img { height: 17px; }
  .mobile-menu {
    display: block; overflow: hidden; max-height: 0;
    transition: max-height 0.45s var(--ease);
  }
  .nav.open .mobile-menu { max-height: 480px; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 8px var(--gutter) 28px; }
  .mobile-menu li a {
    display: block; padding: 14px 0; font: 600 26px/1.2 var(--display); letter-spacing: -0.02em;
    border-bottom: 1px solid var(--line); color: var(--text);
  }
  .mobile-menu .btn { margin-top: 22px; width: 100%; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: min(100vh, 1000px); min-height: min(100svh, 1000px);
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 8, 10, 0.55) 0%, rgba(7, 8, 10, 0) 28%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 8, 10, 0.55) 38%, rgba(7, 8, 10, 0.05) 75%),
    linear-gradient(90deg, rgba(7, 8, 10, 0.6) 0%, rgba(7, 8, 10, 0) 60%);
}
.hero-content { padding-bottom: clamp(56px, 10vh, 120px); padding-top: 140px; width: 100%; }
.hero .display { max-width: 11ch; }
.hero .lead { margin: 28px 0 38px; color: var(--text-2); }
.hero-foot {
  margin-top: clamp(48px, 9vh, 96px);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.hero-foot .tags { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-foot .tags span { display: inline-flex; align-items: center; gap: 8px; }
.hero-foot .tags span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--text), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Animated background, shown only if the hero video file fails to load */
.hero-fallback { position: absolute; inset: 0; background: radial-gradient(120% 90% at 70% 30%, #1a1208 0%, var(--bg) 60%); overflow: hidden; }
.hero-fallback::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 70% 40%, rgba(255, 106, 0, 0.32), transparent 70%),
    radial-gradient(35% 30% at 30% 65%, rgba(74, 99, 214, 0.28), transparent 70%);
  filter: blur(40px);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-fallback::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 65% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 70% at 65% 40%, #000 30%, transparent 80%);
}
@keyframes drift { from { transform: translate3d(-4%, -2%, 0) scale(1); } to { transform: translate3d(4%, 3%, 0) scale(1.12); } }
.scanline {
  position: absolute; left: 0; right: 0; height: 120px; top: -120px;
  background: linear-gradient(180deg, transparent, rgba(255, 106, 0, 0.08) 80%, rgba(255, 138, 61, 0.5) 100%);
  animation: scan 7s linear infinite; z-index: 1;
}
@keyframes scan { to { top: 100%; } }
.bbox {
  position: absolute; z-index: 2;
  border: 1px solid rgba(255, 138, 61, 0.75);
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 106, 0, 0.15) inset;
  opacity: 0; animation: bbox 9s var(--ease) infinite;
}
.bbox b {
  position: absolute; top: -26px; left: -1px;
  font: 500 10.5px/1 var(--wide); letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--orange); color: #0a0a0a; padding: 6px 8px; border-radius: 4px; white-space: nowrap;
}
.bbox.blue { border-color: rgba(111, 132, 236, 0.8); box-shadow: 0 0 30px rgba(74, 99, 214, 0.15) inset; }
.bbox.blue b { background: var(--blue-2); }
@keyframes bbox { 0%, 8% { opacity: 0; transform: scale(1.06); } 14%, 70% { opacity: 1; transform: scale(1); } 80%, 100% { opacity: 0; } }
@media (max-width: 720px) { .bbox { display: none; } }

/* ---------- Sub-page hero ---------- */
.page-hero { position: relative; padding: clamp(150px, 22vh, 220px) 0 clamp(60px, 10vh, 110px); overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -300px; top: -420px;
  background: radial-gradient(closest-side, rgba(255, 106, 0, 0.22), transparent 70%);
  filter: blur(20px);
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 80% at 80% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 80% at 80% 0%, #000, transparent 75%);
}
.page-hero .h1 { max-width: 16ch; }
.page-hero .lead { margin-top: 26px; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section.tight { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .lead { justify-self: end; }
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; } .section-head .lead { justify-self: start; } }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Statement block */
.statement { font: 600 clamp(30px, 4.6vw, 64px)/1.08 var(--display); letter-spacing: -0.035em; max-width: 20ch; }
.statement .dim { color: var(--statement-dim); }

/* Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font: 600 clamp(22px, 2.6vw, 34px)/1 var(--display); letter-spacing: -0.02em; color: var(--text-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--bg); padding: clamp(28px, 3vw, 44px); min-height: 340px; display: flex; flex-direction: column; transition: background 0.4s var(--ease); }
.step:hover { background: var(--bg-2); }
.step-num { font: 500 12px/1 var(--wide); letter-spacing: 0.2em; color: var(--dim); }
.step-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin: 36px 0 auto; background: var(--surface); border: 1px solid var(--line-2); color: var(--orange); }
.step-icon svg { width: 26px; height: 26px; }
.step h3 { margin-top: 48px; }
.step p { color: var(--muted); margin: 12px 0 0; font-size: 16px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } .step h3 { margin-top: 28px; } }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split p { color: var(--muted); }
.split .h2 { margin-bottom: 22px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); font-size: 16px; }
.checks li::before {
  content: ""; flex: 0 0 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: rgba(255, 106, 0, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23ff8a3d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}

/* Product UI mock */
.frame {
  position: relative; border-radius: 22px; padding: 10px;
  background: linear-gradient(160deg, #2c313b, #12151b 40%, #3b2410);
  box-shadow: 0 40px 100px -40px rgba(10, 12, 16, 0.55), 0 0 80px -30px rgba(255, 106, 0, 0.25);
}
.frame-inner { border-radius: 14px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--line); }
.ui-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.ui-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2f38; }
.ui-bar .ui-title { margin-left: 10px; }
.ui-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: #c4c9d2; }
.ui-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.ui-body { padding: 16px; display: grid; gap: 10px; }
.ui-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  font-size: 14px;
}
.ui-row .thumb { width: 44px; height: 44px; border-radius: 9px; background: linear-gradient(135deg, #2b2016, #13161c); position: relative; overflow: hidden; }
.ui-row .thumb::after { content: ""; position: absolute; left: 17px; top: 8px; width: 10px; height: 30px; border-radius: 4px 4px 2px 2px; background: linear-gradient(#6b4a2a, #3d2a17); }
.ui-row .name { font-weight: 500; }
.ui-row .meta { color: var(--dim); font-size: 12.5px; }
.pill { font-size: 11.5px; font-weight: 500; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }
.pill.warn { background: rgba(255, 106, 0, 0.14); color: var(--orange-2); }
.pill.info { background: rgba(111, 132, 236, 0.15); color: #a5b4fc; }
.ui-row.flag { border-color: rgba(255, 106, 0, 0.35); background: linear-gradient(90deg, rgba(255, 106, 0, 0.08), var(--surface) 60%); }
.ui-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ui-stat { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.ui-stat small { display: block; color: var(--dim); font-size: 11.5px; }
.ui-stat strong { font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; }
.frame.dark { background: linear-gradient(160deg, #2c313b, #12151b 40%, #3b2410); }
.ui-caption { position: absolute; bottom: -14px; right: 22px; font-size: 12px; color: var(--dim); background: var(--bg); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
@media (max-width: 520px) { .ui-summary { grid-template-columns: 1fr 1fr; } .ui-summary .ui-stat:last-child { display: none; } .ui-row { grid-template-columns: 36px 1fr auto; gap: 10px; } .ui-row .thumb { width: 36px; height: 36px; } .ui-row .thumb::after { left: 13px; top: 5px; height: 26px; } }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  position: relative; padding: 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
  overflow: hidden;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card h3 { margin: 22px 0 10px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 106, 0, 0.1); color: var(--accent-ink); }
.card .icon.blue { background: rgba(74, 99, 214, 0.12); color: var(--blue); }
.card .icon svg { width: 22px; height: 22px; }
.card .kicker { font: 500 11px/1 var(--wide); letter-spacing: 0.2em; color: var(--dim); text-transform: uppercase; }

/* Glow CTA band */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; border: 1px solid var(--line);
  padding: clamp(48px, 8vw, 110px) clamp(28px, 6vw, 80px);
  background: var(--bg-2);
  display: grid; grid-template-columns: 1.4fr auto; align-items: end; gap: 32px;
}
.cta-band::before {
  content: ""; position: absolute; z-index: -1; inset: auto -10% -60% 30%; height: 140%;
  background: radial-gradient(closest-side, rgba(255, 106, 0, 0.4), transparent 70%);
  filter: blur(30px);
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1; right: -60px; top: -60px; width: 340px; height: 340px;
  background: url("../img/mark.png") center/contain no-repeat; opacity: 0.08; transform: rotate(-12deg);
}
.cta-band p { color: var(--muted); margin: 18px 0 0; max-width: 520px; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Principle / quote */
.principle { text-align: center; max-width: 900px; margin: 0 auto; }
.principle .statement { margin: 0 auto; max-width: 18ch; }
.principle p { color: var(--muted); max-width: 600px; margin: 28px auto 0; }

/* Architecture diagram */
.arch { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: clamp(20px, 3vw, 40px); overflow: hidden; }
.arch svg { width: 100%; height: auto; }
.arch .arch-mobile { display: none; }
@media (max-width: 720px) { .arch .arch-desktop { display: none; } .arch .arch-mobile { display: block; } }
.arch text { font-family: var(--font); }
.flow-line { stroke-dasharray: 4 6; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }

/* Tech layers */
.layers { display: grid; gap: 0; border-top: 1px solid var(--line); }
.layer { display: grid; grid-template-columns: 90px 1fr 1.3fr; gap: 32px; padding: 44px 0; border-bottom: 1px solid var(--line); align-items: start; }
.layer .n { font: 500 12px/1.8 var(--wide); letter-spacing: 0.2em; color: var(--accent-ink); }
.layer p { color: var(--muted); margin: 0; }
.layer ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.layer li { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); }
@media (max-width: 880px) { .layer { grid-template-columns: 1fr; gap: 14px; padding: 34px 0; } }

/* Cases */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip { font: 500 14px/1 var(--font); padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; transition: all 0.2s; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 820px) { .case-grid { grid-template-columns: 1fr; } }
.case { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--card-shadow); overflow: hidden; background: var(--surface); transition: border-color 0.35s var(--ease), transform 0.35s var(--ease); display: flex; flex-direction: column; }
.case:hover { border-color: var(--line-2); transform: translateY(-3px); }
.case-media { aspect-ratio: 16 / 9; position: relative; overflow: hidden; display: grid; place-items: center;
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(255, 106, 0, 0.18), transparent 70%),
    radial-gradient(50% 70% at 10% 90%, rgba(74, 99, 214, 0.16), transparent 70%),
    var(--bg-2);
}
.case-media::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; }
.case-media .ph { position: relative; z-index: 1; font-size: 13px; color: var(--muted); border: 1px dashed var(--line-2); padding: 8px 14px; border-radius: 999px; background: var(--bg); }
.case.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.case.featured .case-media { aspect-ratio: auto; min-height: 360px; }
@media (max-width: 820px) { .case.featured { grid-template-columns: 1fr; } .case.featured .case-media { min-height: 240px; } }
.case-body { padding: 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.case-body .kicker { font: 500 11px/1 var(--wide); letter-spacing: 0.2em; color: var(--accent-ink); text-transform: uppercase; }
.case-body p { color: var(--muted); margin: 0; font-size: 16px; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; margin-top: auto; }
.case-metrics div { background: var(--bg-2); padding: 14px; }
.case-metrics strong { display: block; font: 600 22px/1.2 var(--display); color: var(--dim); }
.case-metrics small { color: var(--dim); font-size: 12px; }
.case-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text); margin-top: 6px; }
.case-link svg { width: 14px; height: 14px; }
.case[hidden] { display: none; }

/* Form */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--card-shadow); background: linear-gradient(180deg, var(--surface), var(--bg-2)); padding: clamp(24px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--text);
  background-color: var(--input-bg); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 14px 16px; transition: border-color 0.2s, box-shadow 0.2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%239aa1ad' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field select option { background: var(--surface); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.15); }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.interest { display: flex; flex-wrap: wrap; gap: 8px; }
.interest label { margin: 0; }
.interest input { position: absolute; opacity: 0; pointer-events: none; }
.interest span { display: inline-block; font-size: 14px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); cursor: pointer; transition: all 0.2s; }
.interest input:checked + span { background: rgba(255, 106, 0, 0.14); border-color: var(--orange); color: var(--text); }
.interest input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.form-foot small { color: var(--dim); font-size: 13px; max-width: 320px; }
.form-status { margin-top: 18px; font-size: 15px; padding: 14px 16px; border-radius: 12px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(52, 211, 153, 0.1); color: var(--ok-ink); border: 1px solid rgba(52, 211, 153, 0.25); }
.form-status.err { background: rgba(248, 113, 113, 0.1); color: var(--err-ink); border: 1px solid rgba(248, 113, 113, 0.25); }
/* Honeypot: display:none (not off-screen) so browser autofill never fills it and Formspree never silently drops a real submission */
.hp { display: none !important; }
.expect { list-style: none; padding: 0; margin: 40px 0 0; counter-reset: e; display: grid; gap: 0; border-top: 1px solid var(--line); }
.expect li { counter-increment: e; display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.expect li::before { content: "0" counter(e); font: 500 12px/1.9 var(--wide); letter-spacing: 0.15em; color: var(--accent-ink); }
.expect strong { display: block; font-weight: 600; margin-bottom: 4px; }
.expect span { color: var(--muted); font-size: 15.5px; }

/* Values grid (company) */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.value { background: var(--bg); padding: clamp(28px, 4vw, 56px); }
.value .n { font: 500 12px/1 var(--wide); letter-spacing: 0.2em; color: var(--accent-ink); }
.value h3 { margin: 28px 0 12px; }
.value p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }
.story { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 96px); }
.story .prose p { color: var(--text-2); font-size: 19px; margin: 0 0 22px; }
.story .prose p:first-child::first-letter { font: 600 64px/0.9 var(--display); float: left; margin: 6px 12px 0 0; color: var(--orange); }
@media (max-width: 880px) { .story { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); gap: 40px; }
.footer-brand img { height: 20px; width: auto; }
.footer-brand p { color: var(--muted); font-size: 15px; max-width: 320px; margin: 20px 0 0; }
.footer h4 { font: 500 11px/1 var(--wide); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: 15px; transition: color 0.2s; }
.footer ul a:hover { color: var(--orange-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.footer-word { font: 400 clamp(28px, 7.4vw, 108px)/0.9 var(--wide); letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07); margin-top: 72px; white-space: nowrap; text-align: center; user-select: none; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
@media (max-width: 600px) { .scroll-cue { display: none; } .hero-foot .tags { gap: 10px 18px; } }
.nav.open { background: #ffffff; }

/* Request form sections, hints and unit suffixes */
.form-grid { align-items: end; }
.form-section {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px;
  font: 600 18px/1.2 var(--display); letter-spacing: -0.015em;
  padding-top: 26px; margin-top: 8px; border-top: 1px solid var(--line);
}
.form-section:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.form-section span { font: 500 11px/1 var(--wide); letter-spacing: 0.15em; color: var(--accent-ink); }
.field .hint { display: block; font-size: 12.5px; color: var(--dim); margin: -4px 0 8px; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 84px; }
.input-suffix span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--dim); pointer-events: none; }
.field input[type=number] { -moz-appearance: textfield; }
.field input[type=number]::-webkit-inner-spin-button, .field input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
@media (min-width: 901px) { .contact-grid > :first-child { position: sticky; top: 110px; } }
@media (max-width: 900px) { .contact-grid.form-first > .form-card { order: -1; } }

/* Company slogan */
.accent { color: var(--accent-ink); }
.footer-brand .footer-slogan { color: var(--text); font: 600 19px/1.35 var(--display); letter-spacing: -0.015em; max-width: 340px; margin: 22px 0 0; }
.footer-brand .footer-slogan + p { margin-top: 10px; }
