/* ==========================================================================
   SM Vision Works — Global Styles
   Light, editorial, silver — drawn from the SM Vision Works logo.
   ========================================================================== */

:root {
  --bg: #faf9f6;
  --bg-2: #f3f2ee;
  --paper: #ffffff;
  --border: rgba(24, 24, 26, 0.08);
  --border-strong: rgba(24, 24, 26, 0.16);
  --text: #18181a;
  --ink: #232325;
  --muted: #5c5c62;
  --dim: #9a9aa0;
  --silver: #b4b4b9;
  --metal: linear-gradient(100deg, #1a2fa8 0%, #2f5bff 35%, #6d8bff 50%, #2f5bff 65%, #1a2fa8 100%);
  --pearl: linear-gradient(145deg, #ffffff 0%, #eeeef0 45%, #d6d6da 100%);
  --shadow-sm: 0 1px 2px rgba(20, 20, 22, .04), 0 4px 14px -6px rgba(20, 20, 22, .08);
  --shadow: 0 1px 2px rgba(20, 20, 22, .04), 0 24px 60px -30px rgba(20, 20, 22, .22);
  --shadow-lg: 0 2px 4px rgba(20, 20, 22, .04), 0 40px 90px -40px rgba(20, 20, 22, .35);
  --radius: 14px;
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, monospace;
  --accent: #2f5bff;
  --accent-soft: rgba(47, 91, 255, .1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--ink); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--silver); border-radius: 10px; border: 3px solid var(--bg); }

/* Background texture ----------------------------------------------------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(47,91,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,91,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 70%);
}
.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: .8; pointer-events: none; z-index: -1;
  animation: orbFloat 20s ease-in-out infinite alternate;
}
.orb.cyan { background: #dfe7ff; }
.orb.violet { background: #e6e8f2; }
.orb.pink { background: #e9eef5; }
@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -30px) scale(1.12); }
}

/* Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: 100px 0; overflow-x: clip; }
.section-tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; width: fit-content;
  font-size: .72rem; font-weight: 400; letter-spacing: .38em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2s infinite; }


h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; color: var(--text); }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 500; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 500; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: 300; color: var(--muted); max-width: 640px; }
.grad-text {
  background: var(--metal); background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s ease-in-out infinite;
}
h1 .grad-text, h2 .grad-text, h3 .grad-text { padding-right: .06em; }
@keyframes sheen { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }
.muted { color: var(--muted); }

.section-head { display: grid; gap: 18px; margin-bottom: 52px; max-width: 780px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px; border-radius: 100px; font-weight: 400; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -14px rgba(20,20,22,.6); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { background: var(--accent); box-shadow: 0 18px 40px -14px rgba(47,91,255,.7); }
.btn-ghost { border: 1px solid var(--border-strong); background: rgba(255,255,255,.6); backdrop-filter: blur(8px); color: var(--text); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header / Nav ----------------------------------------------------------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 1001; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 22px 0; transition: padding .3s, background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 14px 0; background: rgba(250, 249, 246, .85); backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 16px; }
.logo-mark { height: 50px; width: auto; flex-shrink: 0; }
.logo-text {
  padding-left: 16px; border-left: 1px solid var(--border-strong);
  font-weight: 300; font-size: .7rem; letter-spacing: .42em; text-transform: uppercase; color: var(--muted); line-height: 1.6;
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  position: relative; padding: 12px 18px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 15px 26px; font-size: .8rem !important; }
.menu-toggle { display: none; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border-strong); position: relative; background: rgba(255,255,255,.6); }
.menu-toggle span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-toggle span:nth-child(3) { top: 30px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: rgba(250, 249, 246, .97); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 100px 32px 40px;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 500; letter-spacing: -0.03em; padding: 6px 0;
  display: flex; align-items: baseline; gap: 18px; color: var(--dim); border-bottom: 1px solid var(--border);
  transform: translateY(30px); opacity: 0; transition: transform .5s var(--ease), opacity .5s, color .25s;
}
.mobile-menu a span { font-family: var(--font-body); font-size: .7rem; letter-spacing: .2em; color: var(--muted); }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--text); }
.menu-open .mobile-menu a { transform: none; opacity: 1; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: .15s; }
.menu-open .mobile-menu a:nth-child(5) { transition-delay: .2s; }

/* Loader ----------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 2000; background: var(--bg);
  display: grid; place-items: center; transition: opacity .7s var(--ease), visibility .7s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; justify-items: center; gap: 26px; }
.loader-inner img { width: 190px; animation: loaderIn 1.2s var(--ease) both; }
.loader-bar { width: 140px; height: 1px; background: var(--border-strong); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 40%; background: var(--ink); animation: loadSlide 1.2s var(--ease) infinite; }
@keyframes loaderIn { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loadSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* Hero ------------------------------------------------------------------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 150px 0 110px; overflow: hidden; }
#neural-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero-copy { display: grid; gap: 30px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { to { transform: none; } }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator.grad-text { background: none; animation: none; }
.rotator > span {
  grid-area: 1 / 1; opacity: 0; transform: translateY(40%); transition: opacity .6s, transform .6s var(--ease);
  background: var(--metal); background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s ease-in-out infinite; padding-right: .08em;
}
.rotator > span.on { opacity: 1; transform: none; }
.rotator > span.off { opacity: 0; transform: translateY(-40%); }

.hero-meta { display: flex; flex-wrap: wrap; border-top: 1px solid var(--border); }
.hero-meta div { display: grid; gap: 2px; padding: 20px 34px 0 0; margin-right: 34px; border-right: 1px solid var(--border); }
.hero-meta div:last-child { border-right: 0; margin-right: 0; }
.hero-meta strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.hero-meta span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }

/* Orbit visual */
.orbit-wrap { position: relative; aspect-ratio: 1; width: 100%; max-width: 500px; margin-left: auto; }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--border); }
.orbit.o2 { inset: 16%; border-color: var(--border-strong); border-style: dashed; }
.orbit.o3 { inset: 32%; }
.orbit-spin { position: absolute; inset: 0; animation: spin 60s linear infinite; }
.orbit-spin.rev { inset: 16%; animation-duration: 42s; animation-direction: reverse; }
.orbit-node {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: var(--paper); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.orbit-node svg { width: 22px; height: 22px; }
.orbit-node .counter { position: absolute; inset: 0; animation: spin 60s linear infinite reverse; display: grid; place-items: center; }
.orbit-spin.rev .orbit-node .counter { animation: spin 42s linear infinite; }
.orbit-node .tip {
  position: absolute; top: 112%; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: .56rem; letter-spacing: .24em; color: var(--dim);
}
.orbit-core {
  position: absolute; inset: 31%; border-radius: 50%; display: grid; place-items: center;
  background: var(--pearl); border: 1px solid #fff;
  box-shadow: 0 30px 70px -20px rgba(20,20,22,.3), inset 0 2px 6px #fff, inset 0 -14px 30px rgba(20,20,22,.06);
  animation: corePulse 6s ease-in-out infinite;
}
.orbit-core img { width: 62%; height: auto; }
@keyframes corePulse { 50% { box-shadow: 0 40px 90px -20px rgba(20,20,22,.4), inset 0 2px 6px #fff, inset 0 -14px 30px rgba(20,20,22,.08); } }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px; font-size: .58rem; letter-spacing: .4em; color: var(--dim);
}
.scroll-hint i { width: 1px; height: 46px; background: var(--border-strong); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 16px; background: var(--ink); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-16px); } 100% { transform: translateY(46px); } }

/* Page hero (inner pages) */
.page-hero { padding: 170px 0 56px; overflow: hidden; }
.page-hero .container { display: grid; gap: 22px; }
.breadcrumb { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); max-width: 980px; }

/* Marquee ---------------------------------------------------------------- */
.marquee { border-block: 1px solid var(--border); padding: 28px 0; overflow: hidden; background: rgba(255,255,255,.55); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 48px; font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 500; letter-spacing: -0.02em; color: var(--dim); white-space: nowrap; transition: color .3s; }
.marquee-item:hover { color: var(--text); }
.marquee-item::after { content: ""; width: 8px; height: 8px; border: 1px solid var(--silver); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cards ------------------------------------------------------------------ */
.card {
  position: relative; border-radius: var(--radius); padding: 38px;
  background: var(--paper); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden; isolation: isolate;
  transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card.spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 91, 255, .06), transparent 55%);
}
.card.spotlight::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 91, 255, .75), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card.spotlight:hover { box-shadow: var(--shadow); }
.card.spotlight:hover::before, .card.spotlight:hover::after { opacity: 1; }

.icon-box {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid rgba(47,91,255,.18); margin-bottom: 26px;
}
.icon-box svg { width: 24px; height: 24px; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.c-cyan, .c-violet, .c-pink, .c-lime, .c-amber { color: var(--accent); }

/* Bento grid (home) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento .card { display: flex; flex-direction: column; min-height: 290px; }
.bento .b-lg { grid-column: span 3; min-height: 350px; }
.bento .b-md { grid-column: span 2; }
.bento .card h3 { margin-bottom: 12px; font-size: 1.3rem; }
.bento .b-lg h3 { font-size: 1.65rem; }
.bento .card p { color: var(--muted); font-size: .98rem; font-weight: 300; }
.bento .card .more { margin-top: auto; padding-top: 26px; display: inline-flex; align-items: center; gap: 10px; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text); }
.bento .card .more svg { width: 15px; transition: transform .3s var(--ease); }
.bento .card:hover .more svg { transform: translateX(5px); }
.card-num { position: absolute; top: 30px; right: 32px; font-family: var(--font-display); font-size: 1.25rem; color: var(--dim); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { font-size: .62rem; padding: 6px 13px; border-radius: 100px; border: 1px solid var(--border-strong); color: var(--muted); letter-spacing: .16em; text-transform: uppercase; background: rgba(255,255,255,.6); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.stat { background: var(--paper); padding: 46px 34px; display: grid; gap: 10px; }
.stat strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -0.04em; }
.stat span { color: var(--muted); font-size: .9rem; font-weight: 300; }

/* Process */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.process::before { content: ""; position: absolute; top: 32px; left: 5%; right: 5%; height: 1px; background: linear-gradient(90deg, transparent, var(--silver), transparent); }
.step { position: relative; display: grid; gap: 14px; align-content: start; }
.step-dot {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: var(--paper); border: 1px solid var(--border-strong); font-family: var(--font-display); font-size: 1.3rem; color: var(--text);
  transition: background .4s, color .4s, transform .4s var(--ease), box-shadow .4s;
}
.step:hover .step-dot { background: var(--accent); color: #fff; transform: scale(1.06); box-shadow: 0 14px 30px -12px rgba(20,20,22,.5); }
.step h4 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .94rem; font-weight: 300; }

/* Code window (light editor) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.terminal { border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 15px 20px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-left: 10px; font-family: var(--font-code); font-size: .72rem; color: var(--dim); }
.terminal pre { padding: 26px; font-family: var(--font-code); font-size: .8rem; line-height: 1.85; min-height: 370px; white-space: pre-wrap; word-break: break-word; color: #3a3a3f; }
.terminal .k { color: #7c3aed; } .terminal .s { color: #0f8a5f; } .terminal .c { color: #9ca3af; } .terminal .f { color: #2f5bff; } .terminal .n { color: #d9480f; }
.caret { display: inline-block; width: 7px; height: 1.1em; background: var(--accent); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.check-list { list-style: none; display: grid; gap: 20px; margin-top: 34px; }
.check-list li { display: flex; gap: 16px; align-items: flex-start; color: var(--muted); font-weight: 300; }
.check-list li strong { color: var(--text); font-weight: 500; }
.check-list svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; color: var(--ink); }

/* Avatar stack (home team teaser) */
.avatar-stack { display: flex; flex-wrap: wrap; justify-content: center; padding-left: 14px; }
.avatar-stack span {
  width: 66px; height: 66px; margin-left: -14px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; color: var(--ink);
  background: var(--pearl); border: 3px solid var(--paper); box-shadow: 0 8px 20px -10px rgba(20,20,22,.35);
  transition: transform .4s var(--ease); position: relative;
}
.avatar-stack span:hover { transform: translateY(-8px); z-index: 2; }
.avatar-stack span { overflow: hidden; }
.avatar-stack img { width: 100%; height: 100%; object-fit: cover; }

/* CTA -------------------------------------------------------------------- */
.cta-box {
  position: relative; border-radius: 32px; padding: clamp(44px, 6vw, 76px) clamp(22px, 5vw, 64px); text-align: center; overflow: hidden; isolation: isolate;
  border: 1px solid var(--border);
  background: radial-gradient(ellipse at 20% 0%, #ffffff, transparent 60%), radial-gradient(ellipse at 100% 100%, #e3e3e7, transparent 55%), var(--bg-2);
  box-shadow: var(--shadow);
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../images/logo-silver.png") center / min(560px, 90%) no-repeat; opacity: .12;
}
.cta-box .eyebrow { margin: 0 auto; }
.cta-box h2 { max-width: 860px; margin: 0 auto 22px; }
.cta-box .lead { margin: 0 auto 30px; }
.cta-box .btn-row { justify-content: center; }

/* Footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 28px; margin-top: 0; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; }
.footer-grid h5 { font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--dim); margin-bottom: 22px; font-weight: 400; }
.footer-grid ul { list-style: none; display: grid; gap: 12px; }
.footer-grid ul a { color: var(--muted); font-size: .95rem; font-weight: 300; transition: color .2s; }
.footer-grid ul a:hover { color: var(--text); }
.footer-logo { width: 140px; height: auto; }
.footer-brand p { color: var(--muted); font-size: .95rem; font-weight: 300; margin: 18px 0 22px; max-width: 340px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); background: var(--paper); transition: background .3s, color .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.footer-big {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 8vw, 7rem); line-height: 1; letter-spacing: -0.04em;
  margin: 44px 0 20px; text-align: center; user-select: none; white-space: nowrap;
  background: linear-gradient(180deg, rgba(24,24,26,.16), rgba(24,24,26,0)); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--border); color: var(--dim); font-size: .8rem; letter-spacing: .06em; }
.newsletter { display: flex; gap: 8px; padding: 6px; border-radius: 100px; border: 1px solid var(--border-strong); background: var(--paper); }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0 14px; font-size: .9rem; }
.newsletter button { padding: 11px 18px; font-size: .64rem; }

.back-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .3s, color .3s;
}
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { background: var(--ink); color: #fff; }
.back-top svg { width: 19px; height: 19px; }

/* Reveal animations ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

/* ==========================================================================
   Services page
   ========================================================================== */
.explorer { display: grid; grid-template-columns: 340px 1fr; gap: 30px; align-items: start; }
.explorer-tabs { display: grid; gap: 4px; position: sticky; top: 110px; }
.explorer-tab {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; text-align: left;
  border: 1px solid transparent; color: var(--muted); transition: all .3s var(--ease); font-size: .98rem;
}
.explorer-tab .n { margin-left: auto; font-family: var(--font-display); font-size: 1.05rem; color: var(--dim); }
.explorer-tab svg { width: 20px; height: 20px; flex-shrink: 0; }
.explorer-tab:hover { background: rgba(255,255,255,.7); color: var(--text); }
.explorer-tab.active { background: var(--paper); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-sm); }
.explorer-tab.active .n { color: var(--text); }
.explorer-panel { display: none; }
.explorer-panel.active { display: block; animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(20px); } }
.explorer-panel .card { padding: clamp(28px, 4vw, 56px); }
.panel-head { display: flex; gap: 24px; align-items: center; margin-bottom: 26px; }
.panel-head .icon-box { margin: 0; width: 76px; height: 76px; flex-shrink: 0; }
.panel-head .icon-box svg { width: 32px; height: 32px; }
.panel-head h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.panel-head span { font-size: .64rem; color: var(--dim); letter-spacing: .3em; }
.panel-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 36px; padding-top: 34px; border-top: 1px solid var(--border); }
.panel-cols h5 { font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; font-weight: 400; }
.bullet-list { list-style: none; display: grid; gap: 12px; }
.bullet-list li { display: flex; gap: 14px; color: var(--muted); font-size: .96rem; font-weight: 300; }
.bullet-list li::before { content: ""; width: 6px; height: 6px; margin-top: 10px; background: var(--accent); border-radius: 1px; flex-shrink: 0; }
.deliverables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.deliverables div { padding: 20px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.deliverables strong { display: block; font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; margin-bottom: 4px; }
.deliverables span { color: var(--muted); font-size: .84rem; font-weight: 300; }

.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model { display: flex; flex-direction: column; gap: 16px; }
.model.featured { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-lg); }
.model.featured h3 { color: #fff; }
.model.featured p, .model.featured .bullet-list li { color: rgba(255,255,255,.72); }
.model.featured .bullet-list li::before { background: #fff; }
.model.featured .dur { color: rgba(255,255,255,.6); }
.model.featured .btn-primary { background: #fff; color: var(--ink); }
.model.featured.spotlight::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.08), transparent 55%); }
.model.featured.spotlight::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.6), transparent 60%); }
.model .tag { align-self: flex-start; font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; padding: 6px 14px; border-radius: 100px; background: var(--pearl); color: var(--ink); }
.model h3 { font-size: 1.9rem; }
.model .dur { font-size: .64rem; letter-spacing: .28em; color: var(--dim); }
.model p { color: var(--muted); font-weight: 300; }
.model .bullet-list { margin: 8px 0 22px; }
.model .btn { margin-top: auto; justify-content: center; }

.stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.stack-item {
  padding: 20px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--paper);
  display: grid; gap: 4px; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.stack-item:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.stack-item strong { font-family: var(--font-display); font-size: 1rem; font-weight: 500; }
.stack-item span { font-size: .58rem; color: var(--dim); letter-spacing: .22em; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-btn {
  padding: 10px 20px; border-radius: 100px; border: 1px solid var(--border-strong); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.6);
  transition: all .3s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--ink); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.is-hidden { display: none !important; }

/* ==========================================================================
   About page
   ========================================================================== */
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mvv .card h3 { margin-bottom: 14px; font-size: 1.6rem; }
.mvv .card p { color: var(--muted); font-weight: 300; }
.big-quote {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.25; font-weight: 500; letter-spacing: -0.02em;
  max-width: 1080px;
}
.big-quote .w { opacity: .14; transition: opacity .4s; }
.big-quote .w.lit { opacity: 1; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { padding: 32px 4px; border-top: 1px solid var(--border-strong); display: grid; gap: 12px; align-content: start; position: relative; }
.value::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width .6s var(--ease); }
.value:hover::before { width: 100%; }
.value .n { font-family: var(--font-display); font-size: 1.2rem; color: var(--dim); }
.value h4 { font-size: 1.35rem; }
.value p { color: var(--muted); font-size: .95rem; font-weight: 300; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; text-align: left;
  border: 1px solid var(--border); background: var(--paper); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .4s, border-color .4s;
  transform-style: preserve-3d; will-change: transform;
}
.member:hover { box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.member:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.member-visual {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #ffffff, transparent 65%), var(--bg-2);
}
.member-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(24,24,26,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(24,24,26,.05) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(circle at center, #000 10%, transparent 70%);
}
.member-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 2; transition: transform .8s var(--ease); }
.member:hover .member-visual img { transform: scale(1.05); }
.modal-card .member-visual img { transform: none; }
.monogram {
  position: relative; z-index: 1; width: 56%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.04em; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--ink);
  background: var(--pearl); border: 1px solid #fff;
  box-shadow: 0 24px 50px -20px rgba(20,20,22,.4), inset 0 2px 4px #fff, inset 0 -12px 24px rgba(20,20,22,.07);
  transition: transform .6s var(--ease);
}
.member:hover .monogram { transform: scale(1.06); }
.monogram::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid var(--border-strong);
  border-top-color: var(--accent); animation: spin 14s linear infinite;
}
.member-dept {
  position: absolute; top: 16px; left: 16px; z-index: 3; font-size: .56rem; letter-spacing: .24em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 100px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); border: 1px solid var(--border); color: var(--muted);
}
.member-info { padding: 22px 24px 26px; display: grid; gap: 6px; border-top: 1px solid var(--border); }
.member-info h4 { font-size: 1.15rem; }
.member-info .role { color: var(--muted); font-size: .84rem; font-weight: 400; line-height: 1.45; }
.member-info .view { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); transition: color .3s; }
.member-info .view svg { width: 14px; transition: transform .3s var(--ease); }
.member:hover .view { color: var(--text); }
.member:hover .view svg { transform: translateX(4px); }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 20px;
  background: rgba(243, 242, 238, .72); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-card {
  position: relative; width: 100%; max-width: 860px; max-height: 90vh; overflow: auto; border-radius: 28px;
  background: var(--paper); border: 1px solid var(--border); display: grid; grid-template-columns: 320px 1fr;
  transform: translateY(30px) scale(.97); transition: transform .45s var(--ease);
  box-shadow: var(--shadow-lg);
}
.modal.open .modal-card { transform: none; }
.modal-card .member-visual { aspect-ratio: auto; min-height: 100%; border-right: 1px solid var(--border); }
.modal-card .member-dept { display: none; }
.modal-body { padding: 48px 44px; display: grid; gap: 16px; align-content: start; }
.modal-body .role { color: var(--muted); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; }
.modal-body h3 { font-size: 2.1rem; }
.modal-body p { color: var(--muted); font-weight: 300; }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 5; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-strong); display: grid; place-items: center; background: var(--paper); transition: background .3s, color .3s, transform .3s var(--ease);
}
.modal-close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.modal-close svg { width: 17px; height: 17px; }
.modal-nav { display: flex; gap: 10px; margin-top: 14px; }
.modal-nav button { padding: 11px 18px; border-radius: 100px; border: 1px solid var(--border-strong); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: all .3s; }
.modal-nav button:hover { color: #fff; background: var(--ink); border-color: var(--ink); }

/* ==========================================================================
   Clients page
   ========================================================================== */
.segments { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.segments .card h3 { margin-bottom: 10px; font-size: 1.35rem; }
.segments .card p { color: var(--muted); font-size: .95rem; font-weight: 300; }

.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.industry { background: var(--paper); padding: 36px 30px; display: grid; gap: 14px; align-content: start; transition: background .4s; position: relative; }
.industry:hover { background: var(--bg); }
.industry svg { width: 30px; height: 30px; transition: transform .5s var(--ease); }
.industry:hover svg { transform: translateY(-4px); }
.industry h4 { font-size: 1.1rem; }
.industry p { color: var(--muted); font-size: .9rem; font-weight: 300; }

.showcase { display: grid; gap: 26px; }
.case { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; padding: 0; min-height: 400px; }
.case:nth-child(even) .case-visual { order: 2; }
.case-visual { position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #ffffff, transparent 65%), var(--bg-2); min-height: 280px; }
.case-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(24,24,26,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(24,24,26,.04) 1px, transparent 1px);
  background-size: 30px 30px; mask-image: radial-gradient(circle, #000 20%, transparent 75%);
}
.case-visual svg.art { width: 66%; max-width: 300px; height: auto; position: relative; }
.case-body { padding: clamp(30px, 4vw, 56px); display: grid; gap: 18px; align-content: center; }
.case-body .kicker { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.case-body h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.case-body p { color: var(--muted); font-weight: 300; }
.case-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.case-flow div { padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); }
.case-flow b { display: block; font-size: .58rem; letter-spacing: .24em; color: var(--dim); text-transform: uppercase; margin-bottom: 4px; font-weight: 400; }
.case-flow span { font-size: .88rem; }

.journey { display: grid; gap: 0; position: relative; max-width: 860px; margin: 0 auto; }
.journey::before { content: ""; position: absolute; left: 28px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--silver), var(--border)); }
.j-step { display: grid; grid-template-columns: 56px 1fr; gap: 30px; padding: 22px 0; }
.j-step .dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--border-strong); font-family: var(--font-display); font-size: 1.2rem; position: relative; z-index: 1; transition: background .4s, color .4s; }
.j-step:hover .dot { background: var(--accent); color: #fff; }
.j-step h4 { font-size: 1.3rem; margin: 12px 0 8px; }
.j-step p { color: var(--muted); font-weight: 300; }

.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise-grid .card h4 { font-size: 1.2rem; margin-bottom: 10px; }
.promise-grid .card p { color: var(--muted); font-size: .95rem; font-weight: 300; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 28px; align-items: start; }
.form-card { padding: clamp(28px, 4vw, 52px); }
.form-steps { display: flex; gap: 8px; margin-bottom: 36px; }
.form-steps i { flex: 1; height: 2px; border-radius: 2px; background: var(--border-strong); transition: background .4s; }
.form-steps i.done { background: var(--accent); }
.fstep { display: none; }
.fstep.active { display: grid; gap: 24px; animation: panelIn .5s var(--ease); }
.fstep h3 { font-size: 1.6rem; }
.fstep .hint { color: var(--muted); font-size: .94rem; font-weight: 300; margin-top: -12px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 15px 18px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border-strong);
  outline: 0; transition: border-color .3s, box-shadow .3s, background .3s; font-size: .98rem; font-weight: 300;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: #fff; }
.field.error input, .field.error textarea { border-color: #b4574b; }
.field .err { font-size: .8rem; color: #b4574b; display: none; }
.field.error .err { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.select-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.select-chips label { cursor: pointer; position: relative; }
.select-chips input { position: absolute; opacity: 0; pointer-events: none; }
.select-chips span {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 19px; border-radius: 100px; border: 1px solid var(--border-strong);
  font-size: .9rem; font-weight: 300; color: var(--muted); background: var(--paper); transition: all .25s var(--ease);
}
.select-chips span:hover { border-color: var(--ink); color: var(--text); }
.select-chips input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.select-chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.range-wrap { display: grid; gap: 12px; }
.range-val { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; line-height: 1.1; color: var(--accent); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--p, 30%), var(--border-strong) var(--p, 30%)); outline: 0; border: 0; padding: 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); box-shadow: 0 4px 12px rgba(20,20,22,.2); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); box-shadow: 0 4px 12px rgba(20,20,22,.2); cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; font-size: .6rem; letter-spacing: .24em; color: var(--dim); }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-error { font-size: .9rem; color: #b4574b; background: rgba(180,87,75,.08); border: 1px solid rgba(180,87,75,.25); padding: 12px 16px; border-radius: 10px; }
.form-error a { text-decoration: underline; }
.form-error[hidden] { display: none; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.success { text-align: center; display: none; gap: 20px; justify-items: center; padding: 30px 0; }
.success.show { display: grid; animation: panelIn .6s var(--ease); }
.success h3 { font-size: 1.9rem; }
.success a.grad-text { font-style: normal; }
.success-icon { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); box-shadow: var(--shadow-lg); }
.success-icon svg { width: 42px; height: 42px; color: #fff; }
.success-icon path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.info-stack { display: grid; gap: 16px; }
.info-item { display: flex; gap: 20px; align-items: flex-start; padding: 28px; }
.info-item .icon-box { margin: 0; width: 52px; height: 52px; flex-shrink: 0; }
.info-item .icon-box svg { width: 21px; height: 21px; }
.info-item h4 { font-size: 1.05rem; margin-bottom: 4px; }
.info-item p, .info-item a { color: var(--muted); font-size: .95rem; font-weight: 300; }
.info-item a:hover { color: var(--text); }
.status-dot { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: #3f6b4d; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5a9a6c; box-shadow: 0 0 0 4px rgba(90,154,108,.15); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.clock { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }

.faq { max-width: 900px; margin: 0 auto; display: grid; border-top: 1px solid var(--border-strong); }
.faq-item { border-bottom: 1px solid var(--border-strong); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 6px; text-align: left; font-family: var(--font-display); font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 500; }
.faq-q i { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); position: relative; flex-shrink: 0; transition: transform .4s var(--ease), background .3s, color .3s; }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.faq-q i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq-item.open .faq-q i { background: var(--ink); color: #fff; border-color: var(--ink); }
.faq-item.open .faq-q i::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 6px 28px; color: var(--muted); font-weight: 300; max-width: 760px; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* Portfolio (clients page) ----------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
.work { display: grid; gap: 26px; align-content: start; }
.work-media { position: relative; display: block; padding: 0 44px 40px 0; }
.browser {
  border-radius: 12px; overflow: hidden; background: var(--paper); border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span {
  margin-left: 10px; flex: 1; font-family: var(--font-code); font-size: .64rem; color: var(--muted); letter-spacing: .04em;
  padding: 4px 12px; border-radius: 6px; background: var(--paper); border: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 26%; min-width: 96px; padding: 5px; border-radius: 20px;
  background: #18181a; box-shadow: 0 30px 60px -20px rgba(20,20,22,.55); transition: transform .6s var(--ease);
}
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 15px; }
.work-media:hover .browser { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-media:hover .phone { transform: translate(6px, -12px) rotate(2deg); }
.work-body { display: grid; gap: 10px; padding-right: 44px; }
.work-body .kicker { font-family: var(--font-code); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.work-body h3 { font-size: 1.55rem; }
.work-body p { color: var(--muted); font-weight: 300; }
.work-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-family: var(--font-code); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); width: fit-content; border-bottom: 1px solid var(--border-strong); padding-bottom: 4px; transition: color .3s, border-color .3s; }
.work-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.work-link:hover { color: var(--accent); border-color: var(--accent); }
.work-link:hover svg { transform: translate(3px, -3px); }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.work-grid.compact { grid-template-columns: repeat(2, 1fr); gap: 44px 28px; }
.work-grid.compact .work-media { padding: 0 30px 30px 0; }
.work-grid.compact .phone { width: 28%; min-width: 72px; border-radius: 14px; padding: 4px; }
.work-grid.compact .phone img { border-radius: 10px; }
.work-grid.compact .work-body { padding-right: 0; }
.work-grid.compact .work-body h3 { font-size: 1.25rem; }
.work-grid.compact .work-body p { font-size: .94rem; }
@media (max-width: 860px) {
  .work-grid, .work-grid.compact { grid-template-columns: 1fr; gap: 56px; }
  .work-media { padding: 0 28px 34px 0; }
  .work-body { padding-right: 0; }
}

/* Nationwide reach (clients page) */
.reach {
  margin-top: 80px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: clamp(28px, 4vw, 52px); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.reach-head { display: grid; gap: 16px; }
.reach-head h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.reach-head p { color: var(--muted); font-weight: 300; }
.reach-stats { display: flex; gap: 36px; margin-top: 10px; flex-wrap: wrap; }
.reach-stats div { display: grid; gap: 2px; }
.reach-stats strong { font-family: var(--font-display); font-size: 2.6rem; font-weight: 500; line-height: 1; color: var(--accent); letter-spacing: -0.04em; }
.reach-stats span { font-family: var(--font-code); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.reach-list { list-style: none; display: grid; }
.reach-list li {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "prov n" "towns n"; gap: 2px 16px; align-items: center;
  padding: 18px 4px; border-bottom: 1px solid var(--border); position: relative; padding-left: 26px;
}
.reach-list li:first-child { border-top: 1px solid var(--border); }
.reach-list li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.reach-list .prov { grid-area: prov; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; }
.reach-list .towns { grid-area: towns; color: var(--muted); font-size: .9rem; font-weight: 300; }
.reach-list .n { grid-area: n; font-family: var(--font-code); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 100px; }
.footer-contact { list-style: none; display: grid; gap: 6px; margin: -8px 0 22px; font-size: .92rem; }
.footer-contact a { color: var(--text); transition: color .2s; }
.footer-contact a:hover { color: var(--accent); }
@media (max-width: 860px) { .reach { grid-template-columns: 1fr; gap: 30px; } }

/* Prototypes */
.proto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proto { padding: 0; display: flex; flex-direction: column; }
.proto-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-2); }
.proto-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.proto:hover .proto-media img { transform: scale(1.06); }
.proto-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--font-code); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 100px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); color: var(--accent); border: 1px solid rgba(47,91,255,.2);
  display: inline-flex; align-items: center; gap: 7px;
}
.proto-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.proto-body { padding: 26px 28px 30px; display: grid; gap: 10px; }
.proto-body .kicker { font-family: var(--font-code); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.proto-body h3 { font-size: 1.4rem; }
.proto-body p { color: var(--muted); font-weight: 300; font-size: .96rem; }
.proto-body .chip-row { margin-top: 6px; }
.proto-cta { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 30px; border-radius: var(--radius); border: 1px dashed rgba(47,91,255,.35); background: var(--accent-soft); }
.proto-cta p { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
@media (max-width: 980px) { .proto-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .proto-grid { grid-template-columns: 1fr; } }

/* Funder logos (TIA + DSTI) */
.partner-logos { display: inline-flex; align-items: center; gap: 18px; }
.partner-logos img { width: auto; display: block; }
.partner-logos .logo-tia { height: 50px; }
.partner-logos .logo-dsti { height: 46px; padding-left: 18px; border-left: 1px solid var(--border-strong); }
.backed-by { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 20px; border-radius: 14px; border: 1px solid var(--border); background: #fff; width: fit-content; box-shadow: var(--shadow-sm); }
.backed-by .label { font-family: var(--font-code); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* Recognition band (home) */
.recognition { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.recog-card { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; padding: 30px 30px 32px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.recog-card > .partner-logos, .recog-icon, .recog-photo { height: 180px; width: 100%; justify-content: center; padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.recog-card > .partner-logos .logo-tia { height: 50px; }
.recog-card > .partner-logos .logo-dsti { height: 42px; }
.recog-card > .partner-logos .logo-sua { height: 44px; }
.recog-card > .partner-logos .logo-saiw { height: 34px; padding-left: 16px; border-left: 1px solid var(--border-strong); }
.recog-card .work-link { margin-top: 10px; }
.funded-note { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--border-strong); font-size: .86rem; font-weight: 500; color: var(--ink) !important; }
.funded-note img { height: 30px; width: auto; flex-shrink: 0; }
.recog-icon { display: grid; place-items: center; background: var(--accent-soft) !important; border-color: rgba(47,91,255,.18) !important; color: var(--accent); }
.recog-icon svg { width: 40px; height: 40px; }
.recog-photo { display: block; padding: 0 !important; overflow: hidden; }
.recog-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform .8s var(--ease); }
.recog-card:hover .recog-photo img { transform: scale(1.05); }
.recog-logos { display: flex; align-items: center; gap: 16px; margin: 4px 0 2px; }
.recog-logos img { height: 26px; width: auto; }
.recog-logos img + img { padding-left: 16px; border-left: 1px solid var(--border-strong); height: 22px; }
.recog-card .kicker { font-family: var(--font-code); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.recog-card h3 { font-size: 1.25rem; margin: 6px 0 6px; }
.recog-card p { color: var(--muted); font-size: .94rem; font-weight: 300; }
.proto-badge.live { color: #1f7a45; border-color: rgba(31,122,69,.25); }
.proto-badge.live::before { background: #2fb467; }
.proto-award { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: #fff8e6; border: 1px solid #f3dca0; color: #7a5a12; font-size: .88rem; font-weight: 500; }
.proto-award b { font-weight: 600; }
.proto-awards { list-style: none; display: grid; gap: 8px; }
.proto-awards li { display: flex; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 10px; background: #fff8e6; border: 1px solid #f3dca0; }
.proto-awards img { height: 26px; width: 74px; object-fit: contain; flex-shrink: 0; }
.proto-awards span { font-size: .84rem; color: #6b5212; line-height: 1.4; }
.proto-awards b { display: block; font-family: var(--font-code); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #9a6b00; }
.proto-badge.award { color: #9a6b00; border-color: #f3dca0; }
.proto-badge.award::before { background: #e0a100; }
.proto-award svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
@media (max-width: 980px) { .recognition { grid-template-columns: 1fr; } }

.segment-chips { margin-top: 4px; }
.segment-chips .chip { font-size: .7rem; padding: 8px 14px; color: var(--text); }

/* Service panel photos */
.panel-media { position: relative; margin: 0 0 30px; border-radius: 12px; overflow: hidden; aspect-ratio: 21 / 8; background: var(--bg-2); }
.panel-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.panel-media figcaption {
  position: absolute; left: 12px; bottom: 12px; font-family: var(--font-code); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 100px; background: rgba(255,255,255,.92); color: var(--accent); border: 1px solid rgba(47,91,255,.2);
}
/* Wide 9th card on the home services grid */
.bento .b-wide { grid-column: 1 / -1; flex-direction: row; padding: 0; min-height: 300px; }
.b-wide .bw-text { flex: 1; padding: 38px; display: flex; flex-direction: column; position: relative; }
.b-wide .bw-media { flex: 0 0 46%; overflow: hidden; }
.b-wide .bw-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.b-wide:hover .bw-media img { transform: scale(1.05); }
@media (max-width: 720px) {
  .panel-media { aspect-ratio: 16 / 9; }
  .bento .b-wide { flex-direction: column-reverse; }
  .b-wide .bw-media { flex-basis: auto; height: 200px; }
  .b-wide .bw-text { padding: 28px; }
}

/* Mono "system" labels — the main tech signal ------------------------------ */
.eyebrow, .nav-links a, .btn, .breadcrumb, .chip, .hero-meta span, .orbit-node .tip, .scroll-hint,
.bento .card .more, .card-num, .step-dot, .terminal-bar span, .footer-grid h5, .footer-bottom, .filter-btn,
.explorer-tab .n, .panel-head span, .panel-cols h5, .model .tag, .model .dur, .stack-item span, .value .n,
.member-dept, .member-info .view, .modal-body .role, .modal-nav button, .case-body .kicker, .case-flow b,
.j-step .dot, .field label, .range-labels, .clock, .mobile-menu a span, .logo-text, .newsletter button {
  font-family: var(--font-code);
}
.eyebrow { letter-spacing: .2em; font-size: .7rem; color: var(--accent); }
.nav-links a { letter-spacing: .1em; font-size: .86rem; }
.btn { letter-spacing: .08em; font-size: .76rem; font-weight: 500; }
.breadcrumb, .chip, .hero-meta span, .filter-btn, .field label, .member-dept, .member-info .view, .modal-body .role,
.modal-nav button, .case-body .kicker, .case-flow b, .panel-head span, .panel-cols h5, .footer-grid h5,
.model .tag, .model .dur, .stack-item span, .range-labels, .orbit-node .tip, .scroll-hint { letter-spacing: .12em; }
.card-num, .step-dot, .j-step .dot, .value .n, .explorer-tab .n { font-size: .8rem; letter-spacing: .04em; }
.card-num::before, .value .n::before { content: "// "; color: var(--accent); }
.clock { font-size: 1.5rem; font-weight: 500; color: var(--accent); }
.logo-text { font-weight: 400; letter-spacing: .3em; font-size: .72rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  section { padding: 72px 0; }
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .orbit-wrap { max-width: 420px; margin: 20px auto 0; }
  .bento .b-lg, .bento .b-md { grid-column: span 3; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; gap: 30px; }
  .process::before { top: 0; bottom: 0; left: 32px; right: auto; width: 1px; height: auto; background: linear-gradient(var(--silver), var(--border)); }
  .step { grid-template-columns: 64px 1fr; column-gap: 24px; }
  .step-dot { grid-row: span 2; }
  .explorer { grid-template-columns: 1fr; }
  .explorer-tabs { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
  .explorer-tabs::-webkit-scrollbar { display: none; }
  .explorer-tab { white-space: nowrap; }
  .models, .mvv, .promise-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .case, .case:nth-child(even) { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-visual { order: 0; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-card .member-visual { aspect-ratio: 16 / 9; min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .modal-card .monogram { width: 32%; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .logo-text { display: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .member-info { padding: 16px; }
  .member-info h4 { font-size: 1.3rem; }
  .member-info .role { font-size: .78rem; }
  .bento { grid-template-columns: 1fr; }
  .bento .b-lg, .bento .b-md { grid-column: auto; min-height: 0; }
  .panel-cols, .row-2, .deliverables, .case-flow { grid-template-columns: 1fr; }
  .panel-head { gap: 16px; }
  .panel-head .icon-box { width: 60px; height: 60px; }
  .industries, .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .hero-meta div { padding-right: 16px; margin-right: 16px; }
  .hero-meta strong { font-size: 1.3rem; }
  .card { padding: 28px; }
  .stat { padding: 30px 22px; }
  .modal-body { padding: 30px 24px; }
  .modal-body h3 { font-size: 2.2rem; }
  .page-hero { padding: 128px 0 32px; }
  .scroll-hint { display: none; }
  .orbit-node { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .orbit-node svg { width: 18px; height: 18px; }
  .orbit-node .tip { display: none; }
}
@media (max-width: 420px) {
  .member-info { padding: 14px; }
  .member-info h4 { font-size: 1.02rem; }
  .member-info .view { display: none; }
  .member-dept { display: none; }
  .hero-meta div { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Phone readability: no label under ~11.5px, comfortable tap targets */
@media (max-width: 720px) {
  .chip, .kicker, .proto-badge, .member-dept, .member-info .view, .panel-media figcaption, .model .dur, .model .tag,
  .panel-cols h5, .panel-head span, .field label, .case-flow b, .breadcrumb, .hero-meta span, .footer-grid h5,
  .stack-item span, .range-labels, .reach-stats span, .reach-list .n, .work-body .kicker, .proto-body .kicker,
  .recog-card .kicker, .backed-by .label, .eyebrow, .filter-btn, .footer-bottom { font-size: .72rem !important; }
  .btn, .newsletter button, .work-link, .modal-nav button { font-size: .78rem !important; }
  .footer-grid ul a, .breadcrumb a { display: inline-block; padding: 9px 0; }
  .footer-grid ul { gap: 0; }
  .footer-contact a { display: inline-block; padding: 8px 0; }
  .work-link { padding: 10px 0 6px; }
  .newsletter button { padding: 12px 16px; }
  .info-item a { display: inline-block; padding: 9px 0; font-size: 1rem; }
}
