/* ==========================================================================
   YantraSetu Research — production site
   Day / night theme, editorial deep-tech system
   ========================================================================== */

:root {
  --bg: #f8f5ff;
  --bg-2: #efe9ff;
  --bg-3: #fbf9ff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --ink: #241b4d;
  --ink-2: #312566;
  --muted: #6f638f;
  --line: rgba(36, 27, 77, 0.14);
  --line-strong: rgba(36, 27, 77, 0.24);
  --violet: #6d4aff;
  --violet-2: #8b5cf6;
  --lav: #b8a5ff;
  --copper: #b87333;
  --copper-2: #a0522d;
  --copper-soft: #d9a36e;
  --crit: #bd4a55;
  --ok: #1f8a70;
  --shadow: 0 24px 70px rgba(36, 27, 77, 0.1);
  --shadow-soft: 0 12px 34px rgba(36, 27, 77, 0.07);
  --film: #08050f;
  --film-2: #130b26;
  --header-h: 78px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 44px);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --team-photo: 260px;
}

[data-theme="night"] {
  color-scheme: dark;
  --bg: #08050f;
  --bg-2: #0d081b;
  --bg-3: #100a20;
  --panel: rgba(21, 14, 40, 0.76);
  --panel-strong: #15102a;
  --ink: #f4f0ff;
  --ink-2: #e8e1fb;
  --muted: #aaa0ce;
  --line: rgba(216, 204, 255, 0.16);
  --line-strong: rgba(216, 204, 255, 0.28);
  --violet: #a98bff;
  --violet-2: #8b5cf6;
  --lav: #cbbcff;
  --copper: #e1a86d;
  --copper-2: #f2c892;
  --copper-soft: #ecc79b;
  --crit: #ff8f8a;
  --ok: #7fe3c7;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.34);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(820px 600px at 74% 4%, rgba(184, 165, 255, 0.22), transparent 64%),
    radial-gradient(760px 600px at 8% 84%, rgba(139, 92, 246, 0.09), transparent 66%),
    radial-gradient(700px 520px at 92% 86%, rgba(184, 115, 51, 0.06), transparent 64%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[data-theme="night"] body {
  background:
    radial-gradient(920px 680px at 76% 2%, rgba(118, 84, 238, 0.2), transparent 64%),
    radial-gradient(780px 620px at 4% 86%, rgba(70, 42, 160, 0.2), transparent 68%),
    radial-gradient(720px 540px at 96% 80%, rgba(225, 168, 109, 0.07), transparent 64%),
    var(--bg);
}

h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
::selection { background: rgba(169, 139, 255, 0.35); color: #fff; }
[data-theme="day"] ::selection { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 4px;
}

.container {
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* Header ------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid transparent;
  background: rgba(248, 245, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
[data-theme="night"] .site-header {
  background: rgba(8, 5, 15, 0.8);
}
.site-header::after {
  content: "";
  position: absolute;
  right: 0; bottom: -1px; left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,115,51,.35) 22%, rgba(109,74,255,.26) 74%, transparent);
  pointer-events: none;
}
.header-inner {
  display: flex;
  min-height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  color: var(--violet);
  overflow: visible;
}
.brand-dot { fill: var(--copper); stroke: var(--bg); stroke-width: .9; filter: drop-shadow(0 0 5px rgba(184,115,51,.7)); }
.brand-dot-static { display: none; fill: var(--copper); }
.brand-text { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.055em;
  color: var(--ink);
}
.brand-setu { color: var(--copper); }
.brand-sub {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-panel { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-actions { display: none; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  position: relative;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color .2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  right: 0; bottom: -8px; left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--copper), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.theme-toggle:hover { border-color: var(--copper); color: var(--copper-2); }
.theme-toggle-icon { width: 17px; height: 17px; }
.theme-toggle-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { display: none; }
[data-theme="night"] .theme-toggle .icon-sun { display: none; }
[data-theme="night"] .theme-toggle .icon-moon { display: block; }

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: transform .2s var(--ease), border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  border-color: var(--copper);
  background: linear-gradient(135deg, var(--copper-soft), var(--copper));
  color: #1b1026;
  box-shadow: 0 12px 28px rgba(184, 115, 51, 0.2);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(184, 115, 51, 0.28); }
.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--copper); color: var(--copper-2); background: rgba(184,115,51,.06); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 0.82rem; }
.btn svg { width: 15px; height: 15px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; margin: 3px 0; background: currentColor; transition: transform .25s var(--ease), opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* Shared typography -------------------------------------------------------- */

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--copper-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--copper), transparent);
}
.display,
h1, h2, h3 { font-family: var(--font-display); }
h1, h2 { font-weight: 800; letter-spacing: -0.055em; line-height: 1.02; }
h1 { font-size: clamp(3.2rem, 6.6vw, 6.5rem); }
h2 { font-size: clamp(2.2rem, 3.6vw, 3.7rem); }
h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; }
.lede { color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.14rem); line-height: 1.75; }
.section { position: relative; padding: clamp(76px, 9vw, 128px) 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.section--tight { padding: clamp(30px, 4vw, 48px) 0; }
.section--soft { background: linear-gradient(180deg, transparent, rgba(184,165,255,.08) 24%, rgba(184,165,255,.08) 76%, transparent); }
[data-theme="night"] .section--soft { background: linear-gradient(180deg, transparent, rgba(169,139,255,.055) 24%, rgba(169,139,255,.055) 76%, transparent); }
.section-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 60px); }
.section-head h2 { margin-top: 15px; }
.section-head p { max-width: 650px; margin-top: 18px; color: var(--muted); font-size: 1.03rem; line-height: 1.75; }
.section-head--wide { max-width: 940px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head--center p { margin-inline: auto; }

/* Hero --------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0 clamp(58px, 7vw, 88px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(109, 74, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 74, 255, 0.075) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 54% 44%, black 6%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 54% 44%, black 6%, transparent 76%);
}
[data-theme="night"] .hero-grid {
  background-image:
    linear-gradient(rgba(169, 139, 255, 0.095) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 139, 255, 0.095) 1px, transparent 1px);
}
.hero-aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .7;
}
.hero-aura-a { top: 4%; right: 2%; width: 440px; height: 440px; background: rgba(169,139,255,.18); }
.hero-aura-b { bottom: -16%; left: 2%; width: 460px; height: 460px; background: rgba(184,115,51,.09); }
.hero-bridge {
  position: absolute;
  right: -6%;
  bottom: 7%;
  width: 64%;
  height: 44%;
  opacity: .38;
  color: var(--copper);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(38px, 5vw, 76px);
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 { max-width: 720px; }
.hero h1 .accent {
  display: block;
  color: var(--copper);
  background: linear-gradient(100deg, var(--copper-soft), var(--copper) 48%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lede { max-width: 590px; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 14px;
  margin-top: 28px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .61rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.proof-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px rgba(109,74,255,.6); }
.proof-sep { width: 1px; height: 11px; background: var(--line-strong); }

/* Film player -------------------------------------------------------------- */

.film-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(220, 205, 255, .18);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(43, 31, 82, .48), rgba(9, 6, 18, .94));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .4), inset 0 1px rgba(255,255,255,.06);
}
[data-theme="day"] .film-shell { box-shadow: var(--shadow); }
.film-chrome {
  display: flex;
  background: rgba(8, 5, 15, 0.62);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 17px;
  border-bottom: 1px solid rgba(220,205,255,.12);
  color: #bfb2dd;
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.film-chrome span { display: inline-flex; align-items: center; gap: 7px; }
.film-live { color: #e7c395; }
.film-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 8px var(--copper); }
.film-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #05030a;
}
.film-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #05030a;
}
.film-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(18px, 3.2vw, 34px);
  background:
    linear-gradient(180deg, transparent 28%, rgba(5,3,10,.18) 58%, rgba(5,3,10,.82)),
    linear-gradient(90deg, rgba(5,3,10,.3), transparent 62%);
  transition: opacity .3s ease, visibility .3s ease;
}
.film-cover.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.film-play {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
}
.film-play-ring {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(12, 8, 24, .4);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .045);
  transition: transform .25s var(--ease), background .2s ease;
}
.film-play:hover .film-play-ring { transform: scale(1.06); background: rgba(225,168,109,.2); }
.film-play-ring svg { width: 22px; height: 22px; margin-left: 3px; }
.film-play-copy { display: flex; flex-direction: column; gap: 3px; }
.film-play-copy b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.03em; }
.film-play-copy small { color: #cfc4e8; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.film-foot {
  display: flex;
  background: rgba(8, 5, 15, 0.56);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 17px;
  border-top: 1px solid rgba(220,205,255,.12);
  color: #a99dcc;
  font-family: var(--font-mono);
  font-size: .52rem;
  letter-spacing: .07em;
  line-height: 1.5;
  text-transform: uppercase;
}
.film-foot a { color: #e7c395; }
.film-foot a:hover { text-decoration: underline; }

/* Cards / problem / features ---------------------------------------------- */

.problem-grid,
.feature-grid,
.industry-grid {
  display: grid;
  gap: 16px;
}
.problem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.industry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.7vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .35s var(--ease), border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.card-index {
  color: var(--copper-2);
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
}
.problem-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.problem-icon,
.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(184, 165, 255, .09);
  color: var(--violet);
}
.problem-icon { margin-top: 22px; }
.problem-icon svg,
.feature-icon svg { width: 23px; height: 23px; }
.problem-card h3 { margin-top: 20px; font-size: 1.18rem; }
.problem-card p { margin-top: 8px; color: var(--muted); font-size: .88rem; line-height: 1.68; }
.problem-close {
  max-width: 760px;
  margin-top: 26px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -.035em;
}
.problem-close em { color: var(--copper-2); font-style: normal; }

.feature-card { min-height: 265px; }
.feature-card h3 { margin-top: 24px; font-size: 1.14rem; }
.feature-card p { margin-top: 9px; color: var(--muted); font-size: .86rem; line-height: 1.68; }
.feature-card .feature-tag {
  display: inline-block;
  margin-top: 20px;
  color: var(--copper-2);
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* Steps -------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}
.step {
  position: relative;
  padding: 28px 26px 10px 0;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: 0; padding-right: 0; }
.step::before {
  content: "";
  position: absolute;
  top: -4px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 5px var(--bg), 0 0 16px rgba(184,115,51,.32);
}
[data-theme="night"] .step::before { box-shadow: 0 0 0 5px var(--bg), 0 0 16px rgba(225,168,109,.4); }
.step-num { color: var(--copper-2); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; }
.step h3 { margin: 18px 0 9px; font-size: 1.18rem; }
.step p { max-width: 230px; color: var(--muted); font-size: .84rem; line-height: 1.65; }

/* Stats / proof ------------------------------------------------------------ */

.proof-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof-item { padding: 28px 24px 28px 0; border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; padding-right: 0; }
.proof-item b { display: block; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.055em; line-height: 1; }
.proof-item span { display: block; margin-top: 9px; color: var(--muted); font-family: var(--font-mono); font-size: .59rem; letter-spacing: .08em; line-height: 1.55; text-transform: uppercase; }

/* Industries --------------------------------------------------------------- */

.industry-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(184, 115, 51, 0.08);
  color: var(--copper-2);
}
.industry-icon svg { width: 24px; height: 24px; }
.industry-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
}
.industry-card .industry-icon { color: var(--copper-2); }
.industry-card h3 { margin-top: 22px; font-size: 1.08rem; }
.industry-card p { margin-top: 8px; color: var(--muted); font-size: .84rem; line-height: 1.65; }
.industry-card .industry-meta { margin-top: 22px; color: var(--muted); font-family: var(--font-mono); font-size: .52rem; letter-spacing: .1em; text-transform: uppercase; }

/* Research ----------------------------------------------------------------- */

.research-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: start;
  gap: clamp(36px, 6vw, 90px);
}
.research-copy h2 { max-width: 600px; }
.research-copy p { margin-top: 20px; color: var(--muted); font-size: .99rem; line-height: 1.75; }
.research-copy p + p { margin-top: 14px; }
.research-note {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .06em;
  line-height: 1.65;
  text-transform: uppercase;
}
.research-note b { color: var(--copper-2); font-weight: 500; }
.lineage-list { display: grid; gap: 10px; }
.lineage-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.lineage-item .lineage-label { color: var(--copper-2); font-family: var(--font-mono); font-size: .56rem; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; }
.lineage-item h3 { font-size: 1.05rem; }
.lineage-item p { margin-top: 6px; color: var(--muted); font-size: .83rem; line-height: 1.65; }
.lineage-item .status { display: inline-flex; margin-top: 12px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: var(--font-mono); font-size: .5rem; letter-spacing: .08em; text-transform: uppercase; }

/* Team --------------------------------------------------------------------- */

.team-preview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.mini-person { min-width: 0; }
.mini-photo { aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.mini-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; filter: saturate(.82) contrast(1.03); transition: transform .6s var(--ease); }
.mini-person:hover .mini-photo img { transform: scale(1.03); }
.mini-person .mini-role { display: block; margin-top: 12px; color: var(--copper-2); font-family: var(--font-mono); font-size: .5rem; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; }
.mini-person h3 { margin-top: 5px; font-size: .9rem; letter-spacing: -.02em; line-height: 1.35; }
.team-preview-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.team-link { flex: none; margin-bottom: 7px; }

/* Team page full */
.team-block { margin-top: clamp(52px, 7vw, 86px); }
.team-block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.team-block-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.6rem); }
.team-block-head span { color: var(--muted); font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; line-height: 1.6; text-transform: uppercase; }
.team-grid { display: grid; gap: 18px; }
.team-grid.is-advisors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-grid.is-founders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.person-card {
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), border-color .25s ease;
}
.person-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.person-photo {
  width: var(--team-photo);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--bg-2);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; filter: saturate(.8) contrast(1.04); }
.person-body { max-width: 360px; margin: 24px auto 2px; }
.person-role { color: var(--copper-2); font-family: var(--font-mono); font-size: .56rem; letter-spacing: .09em; line-height: 1.5; text-transform: uppercase; }
.person-body h3 { margin: 8px 0 9px; font-size: 1.28rem; }
.person-body p { color: var(--muted); font-size: .83rem; line-height: 1.68; }
.person-link { display: inline-flex; margin-top: 14px; color: var(--muted); font-family: var(--font-mono); font-size: .54rem; letter-spacing: .08em; text-transform: uppercase; }
.person-link:hover { color: var(--copper-2); }
.team-note { max-width: 760px; margin-top: 26px; color: var(--muted); font-family: var(--font-mono); font-size: .58rem; letter-spacing: .05em; line-height: 1.7; text-transform: uppercase; }

/* CTA band ----------------------------------------------------------------- */

.cta-band { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 104px) 0; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 82% 30%, rgba(169,139,255,.2), transparent 68%),
    radial-gradient(500px 380px at 12% 80%, rgba(225,168,109,.1), transparent 70%),
    var(--bg-2);
  pointer-events: none;
}
[data-theme="night"] .cta-band::before { background:
    radial-gradient(700px 420px at 82% 30%, rgba(109,74,255,.22), transparent 68%),
    radial-gradient(500px 380px at 12% 80%, rgba(225,168,109,.08), transparent 70%),
    var(--bg-2); }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-inner h2 { max-width: 760px; font-size: clamp(2.2rem, 4.6vw, 4.2rem); }
.cta-inner p { max-width: 620px; margin-top: 17px; color: var(--muted); font-size: .98rem; line-height: 1.7; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 11px; flex: none; }

/* Contact ------------------------------------------------------------------ */

.contact-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(36px, 6vw, 86px); align-items: start; }
.contact-copy h2 { max-width: 550px; }
.contact-copy p { margin-top: 20px; color: var(--muted); font-size: .99rem; line-height: 1.72; }
.contact-details { display: grid; gap: 14px; margin-top: 32px; padding-top: 25px; border-top: 1px solid var(--line); }
.contact-details a,
.contact-details span { color: var(--ink-2); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .03em; }
.contact-details a:hover { color: var(--copper-2); }
.contact-details small { display: block; margin-bottom: 3px; color: var(--muted); font-family: var(--font-mono); font-size: .52rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-form-wrap { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow-soft); backdrop-filter: blur(12px); }
.contact-form { display: grid; gap: 15px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 7px; }
.field span { color: var(--muted); font-family: var(--font-mono); font-size: .53rem; letter-spacing: .1em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: var(--bg-3);
  color: var(--ink);
  font-size: .88rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
[data-theme="night"] .field input, [data-theme="night"] .field textarea, [data-theme="night"] .field select { background: rgba(8,5,15,.45); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(184,115,51,.12); }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 5px; }
.form-note { color: var(--muted); font-size: .68rem; line-height: 1.5; }
.form-status { min-height: 1.4em; color: var(--copper-2); font-family: var(--font-mono); font-size: .56rem; letter-spacing: .06em; text-transform: uppercase; }

/* Platform page ------------------------------------------------------------ */

.page-hero { position: relative; overflow: hidden; padding: clamp(76px, 9vw, 124px) 0 clamp(60px, 7vw, 92px); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(720px 480px at 78% 18%, rgba(169,139,255,.16), transparent 68%), radial-gradient(500px 400px at 4% 90%, rgba(225,168,109,.08), transparent 70%); pointer-events: none; }
.page-hero-inner { position: relative; z-index: 1; max-width: 900px; }
.page-hero h1 { max-width: 940px; }
.page-hero p { max-width: 680px; margin-top: 22px; }
.page-hero .page-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.page-hero--split .page-hero-inner { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: 60px; max-width: none; }
.readout-card { position: relative; width: min(100%, 390px); border: 1px solid var(--line-strong); border-radius: 50%; aspect-ratio: 1; justify-self: end; background: radial-gradient(circle at 50% 42%, rgba(169,139,255,.17), transparent 55%), var(--panel); box-shadow: var(--shadow); }
.readout-inner { position: absolute; inset: 14%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 3px; }
.readout-inner .mono { color: var(--muted); font-size: .53rem; letter-spacing: .13em; }
.readout-inner b { color: var(--copper-2); font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.7rem); letter-spacing: -.04em; line-height: 1.1; }
.readout-inner small { color: var(--muted); font-family: var(--font-mono); font-size: .53rem; letter-spacing: .08em; text-transform: uppercase; }
.readout-ring { position: absolute; inset: 6%; border: 1px dashed var(--line-strong); border-radius: 50%; }
.readout-ring::after { content: ""; position: absolute; top: 7%; right: 17%; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 12px var(--copper); }
.readout-arc { position: absolute; inset: 2%; border: 2px solid transparent; border-top-color: var(--violet); border-right-color: var(--copper); border-radius: 50%; animation: readout-spin 12s linear infinite; }

.detail-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.detail-grid h2 { max-width: 520px; }
.detail-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.detail-row { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.detail-row dt { color: var(--copper-2); font-family: var(--font-mono); font-size: .57rem; letter-spacing: .08em; line-height: 1.6; text-transform: uppercase; }
.detail-row dd { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.detail-row dd strong { color: var(--ink); font-weight: 500; }
.two-col-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.large-card { padding: clamp(24px, 3vw, 38px); border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow-soft); }
.large-card h3 { margin-top: 18px; font-size: 1.35rem; }
.large-card p { margin-top: 11px; color: var(--muted); font-size: .9rem; line-height: 1.72; }
.check-list { display: grid; gap: 11px; margin-top: 20px; }
.check-list li { position: relative; padding-left: 22px; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.check-list li::before { content: ""; position: absolute; top: .55em; left: 0; width: 7px; height: 7px; border: 1px solid var(--copper); border-radius: 50%; }

.stack-list { display: grid; gap: 12px; }
.stack-item { display: grid; grid-template-columns: 74px 1fr; gap: 20px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.stack-code { color: var(--copper-2); font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em; }
.stack-item h3 { font-size: 1rem; }
.stack-item p { margin-top: 4px; color: var(--muted); font-size: .82rem; line-height: 1.62; }

/* Legal pages -------------------------------------------------------------- */

.legal-page { padding: clamp(60px, 8vw, 104px) 0; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(36px, 7vw, 100px); align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 11px; }
.legal-nav a { color: var(--muted); font-family: var(--font-mono); font-size: .61rem; letter-spacing: .06em; text-transform: uppercase; }
.legal-nav a:hover { color: var(--copper-2); }
.legal-body { max-width: 780px; }
.legal-body h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); }
.legal-body .legal-updated { margin-top: 13px; color: var(--muted); font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.legal-body h2 { margin: 40px 0 12px; font-size: 1.35rem; letter-spacing: -.03em; }
.legal-body h3 { margin: 26px 0 8px; font-size: 1.03rem; }
.legal-body p, .legal-body li { color: var(--muted); font-size: .9rem; line-height: 1.75; }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { display: grid; gap: 7px; margin-top: 12px; }
.legal-body li { position: relative; padding-left: 18px; }
.legal-body li::before { content: "—"; position: absolute; left: 0; color: var(--copper-2); }
.legal-body a { color: var(--copper-2); text-decoration: underline; text-underline-offset: 3px; }

/* Footer ------------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-3); }
.footer-main { display: grid; grid-template-columns: 1.2fr .8fr .8fr .8fr; gap: 40px; padding: 56px 0 38px; }
.footer-brand p { max-width: 290px; margin-top: 15px; color: var(--muted); font-size: .8rem; line-height: 1.65; }
.footer-col h3 { color: var(--muted); font-family: var(--font-mono); font-size: .54rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 9px; margin-top: 15px; }
.footer-col a, .footer-col span { color: var(--ink-2); font-size: .8rem; line-height: 1.5; }
.footer-col a:hover { color: var(--copper-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 24px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: .52rem; letter-spacing: .07em; line-height: 1.7; text-transform: uppercase; }
.footer-bottom a:hover { color: var(--copper-2); }

/* Reveal / motion ---------------------------------------------------------- */

.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js [data-delay="1"] { transition-delay: .08s; }
.js [data-delay="2"] { transition-delay: .16s; }
.js [data-delay="3"] { transition-delay: .24s; }

@keyframes readout-spin { to { transform: rotate(360deg); } }

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1120px) {
  .hero-inner { gap: 38px; }
  .feature-grid, .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-preview .mini-person:nth-child(4), .team-preview .mini-person:nth-child(5) { margin-top: 8px; }
  .footer-main { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 2 / 4; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    position: absolute;
    top: calc(100% + 1px);
    right: var(--gutter);
    left: var(--gutter);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
  }
  .nav-panel.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 11px 2px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-actions { display: flex; align-items: center; gap: 10px; }
  .nav-actions .btn { flex: 1; }
  .header-actions .btn-primary { display: none; }
  .hero-inner, .research-grid, .contact-grid, .detail-grid, .page-hero--split .page-hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero .film-shell { max-width: 720px; }
  .page-hero--split .page-hero-inner { gap: 38px; }
  .readout-card { justify-self: start; width: min(100%, 360px); }
  .team-grid.is-advisors, .team-grid.is-founders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(3), .proof-item:nth-child(4) { border-top: 1px solid var(--line); }
  .proof-item:nth-child(3) { padding-left: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(3), .step:nth-child(4) { border-top: 1px solid var(--line); padding-top: 28px; }
  .step:nth-child(3)::before, .step:nth-child(4)::before { top: 20px; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .cta-actions { margin-top: 8px; }
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  :root { --header-h: 70px; --team-photo: min(260px, 64vw); }
  .header-inner { gap: 12px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1.18rem; }
  .brand-sub { font-size: .68rem; }
  .header-actions { gap: 8px; }
  .page-hero { padding-top: 62px; }
  .hero { padding-top: 52px; }
  .hero h1 { font-size: clamp(2.9rem, 15vw, 4.8rem); }
  .hero-proof { gap: 8px 10px; font-size: .55rem; }
  .proof-sep { display: none; }
  .problem-grid, .feature-grid, .industry-grid, .two-col-cards { grid-template-columns: 1fr; }
  .team-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-preview .mini-person:nth-child(5) { grid-column: 1 / 2; }
  .team-grid.is-advisors, .team-grid.is-founders { grid-template-columns: 1fr; }
  .team-block-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .person-card { padding: 18px; }
  .proof-band { grid-template-columns: 1fr 1fr; }
  .proof-item { padding: 22px 16px 22px 0; }
  .proof-item:nth-child(2n) { padding-right: 0; }
  .proof-item b { font-size: 2rem; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 24px 0 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .step::before { top: 27px; }
  .step p { max-width: none; }
  .lineage-item { grid-template-columns: 1fr; gap: 7px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 42px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 5px; }
  .field-row { grid-template-columns: 1fr; }
  .form-foot { align-items: flex-start; flex-direction: column; }
  .team-preview-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .team-link { margin-bottom: 0; }
  .film-chrome { font-size: .48rem; }
  .film-foot { align-items: flex-start; flex-direction: column; gap: 4px; }
  .film-play-copy b { font-size: 1rem; }
  .film-play-ring { width: 48px; height: 48px; }
}

@media (max-width: 420px) {
  .eyebrow { gap: 7px; font-size: .58rem; letter-spacing: .11em; }
  .eyebrow::before { width: 18px; }
  h1 { font-size: clamp(2.55rem, 12.5vw, 3.3rem); }
  .hero h1 { font-size: clamp(2.55rem, 13vw, 3.3rem); }
  .film-play-copy b { font-size: .92rem; }
  .header-actions .theme-toggle { width: 38px; height: 38px; }
  .nav-toggle { width: 38px; height: 38px; }
  .hero-actions .btn, .page-actions .btn, .cta-actions .btn { width: 100%; }
  .team-preview { grid-template-columns: 1fr; }
  .team-preview .mini-person:nth-child(5) { grid-column: auto; }
  .proof-band { grid-template-columns: 1fr; }
  .proof-item, .proof-item:nth-child(2n) { border-right: 0; border-top: 1px solid var(--line); padding: 20px 0; }
  .proof-item:first-child { border-top: 0; }
  .footer-main { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .brand-dot { display: none; }
  .brand-dot-static { display: inline; }
  .readout-arc { animation: none; }
}

/* Concept landing integration ------------------------------------------------- */
.opening { --header: var(--header-h); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.film-showcase-section { padding-top: clamp(64px, 8vw, 100px); }
.film-showcase {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(32px, 5vw, 70px);
}
.film-showcase-copy h2 { max-width: 500px; }
.film-showcase-copy .lede { max-width: 520px; margin-top: 18px; }
.film-meta { margin-top: 20px; color: var(--copper-2); font-size: .56rem; letter-spacing: .08em; }
.film-showcase-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.film-showcase .film-shell { width: 100%; max-width: 800px; justify-self: end; }

@media (max-width: 980px) {
  .film-showcase { grid-template-columns: 1fr; gap: 30px; }
  .film-showcase .film-shell { justify-self: start; max-width: 720px; }
}

/* Keep the production header toggle compact; concept.css is scoped to the landing. */
.theme-toggle { min-width: 0; }

/* Requested refinements */
.person-role { font-size: calc(0.56rem + 2.67px); }
.mini-role { font-size: calc(0.5rem + 2.67px); }

/* Footer lockup dot matches the copper dot in the main header lockup. */
.brand-dot-footer { fill: var(--copper); stroke: var(--bg); stroke-width: .9; }
