/* ============================================================
   VIONARK — Section-specific layouts
   ============================================================ */

/* ===== HERO (Surface · 0m) ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 14vh 8vh;
}
.hero__eyebrow { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.hero h1 {
  font-size: var(--t-hero);
  font-weight: 200;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.hero h1 .em { font-weight: 600; }
.hero__sub {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 52ch;
  font-size: var(--t-lead);
  font-weight: 300;
  color: var(--text);
}
.hero__sub .nowrap { white-space: nowrap; }
.hero__cta { margin-top: clamp(2rem, 4vw, 3rem); display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }

/* trust strip pinned near the bottom of the hero */
.hero__trust {
  margin-top: clamp(3rem, 8vh, 6rem);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero__trust b { color: var(--blue-bright); font-weight: 500; }
.hero__trust .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }

/* scroll cue */
.scroll-cue {
  position: absolute;
  left: var(--gutter); bottom: clamp(1.4rem, 3vh, 2.2rem);
  display: flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue__line { position: relative; width: 1px; height: 42px; background: var(--hairline); overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: linear-gradient(180deg, transparent, var(--blue-bright));
  animation: cueFall 2.2s var(--ease-in-out) infinite;
}
@keyframes cueFall { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* ===== Generic two-column "feature" layout ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ===== THESIS / WHO WE ARE ===== */
.thesis__statements { display: grid; gap: 2rem; }
.statement { padding-left: 1.4rem; border-left: 1px solid var(--hairline); }
.statement__k {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 0.6rem;
}
.statement p { font-size: var(--t-body); color: var(--text); }
.statement p .em { color: var(--white); }

/* lineage card (BAGC) */
.lineage {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: linear-gradient(110deg, rgba(74,143,255,0.06), rgba(14,21,38,0.4));
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
}
.lineage__mark { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.lineage__mark b { display:block; color: var(--white); font-size: 1.4rem; letter-spacing: 0.04em; font-family: var(--font-display); font-weight: 700; margin-top: 0.2rem; }
.lineage p { font-size: var(--t-body); color: var(--text); }
.lineage p .em { color: var(--white); }
@media (max-width: 640px){ .lineage { grid-template-columns: 1fr; } }

/* ===== PILLARS GRID ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.8rem, 1.4vw, 1.2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pillars { grid-template-columns: 1fr; } }
.pillar { min-height: 300px; display: flex; flex-direction: column; }
.pillar .card__body { flex: 1; }
.pillar__icon {
  width: 40px; height: 40px; margin-bottom: 1.2rem;
  display: grid; place-items: center;
  border: 1px solid var(--panel-edge); border-radius: var(--radius-sm);
  color: var(--blue);
}
.pillar--flagship .pillar__icon { color: var(--amber); }

/* ===== CV DEMO — "It sees twice" ===== */
.cvdemo { margin-top: clamp(2.5rem, 5vw, 4rem); }
.cvdemo__stage {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: start;
}
.cvdemo__stage > * { min-width: 0; }
@media (max-width: 920px) { .cvdemo__stage { grid-template-columns: 1fr; } }

/* the scene viewport (canvas-based scan) */
.cvscene {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1020;
}
.cvscene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cvscene__hud {
  position: absolute; inset: 0; pointer-events: none;
  font-family: var(--font-mono); color: var(--white);
}
.cvscene__tag {
  position: absolute; top: 12px; left: 14px;
  font-size: 0.6rem; letter-spacing: 0.14em; color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.cvscene__live {
  position: absolute; top: 12px; right: 14px;
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.6rem; letter-spacing: 0.12em; color: var(--alert);
}
.cvscene__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--alert); box-shadow: 0 0 8px var(--alert); animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
.cvscene__corner { position: absolute; width: 18px; height: 18px; border: 1px solid rgba(255,255,255,0.25); }
.cvscene__corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.cvscene__corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.cvscene__corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.cvscene__corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

/* the pipeline / readout panel */
.cvpanel { display: flex; flex-direction: column; gap: 0.8rem; }
.cvstep {
  position: relative;
  padding: 1rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: rgba(12,20,38,0.5);
  opacity: 0.4;
  transition: opacity 0.4s, border-color 0.4s, background 0.4s, transform 0.4s var(--ease-out);
}
.cvstep.is-active { opacity: 1; border-color: var(--blue); background: rgba(20,40,80,0.45); }
.cvstep.is-done { opacity: 0.85; }
.cvstep.vlm.is-active { border-color: var(--amber); background: rgba(40,32,12,0.4); }
.cvstep__k { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.cvstep.vlm .cvstep__k { color: var(--amber); }
.cvstep__t { margin-top: 0.35rem; font-size: 1.02rem; color: var(--white); font-weight: 400; }
.cvstep__d { margin-top: 0.3rem; font-size: 0.8rem; color: var(--muted); }

/* verified alert */
.cvalert {
  margin-top: 0.2rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(61,220,132,0.4);
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, rgba(20,50,38,0.5), rgba(12,20,38,0.4));
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s, transform 0.5s var(--ease-out);
}
.cvalert.is-shown { opacity: 1; transform: none; }
.cvalert__head { display: flex; align-items: center; justify-content: space-between; }
.cvalert__status { display:flex; align-items:center; gap:0.5rem; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--confirm); }
.cvalert__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--confirm); box-shadow: 0 0 8px var(--confirm); }
.cvalert__badge { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: #04060d; background: var(--amber); padding: 0.25em 0.55em; border-radius: 4px; }
.cvalert__quote { margin-top: 0.8rem; font-size: 1.05rem; color: var(--white); font-weight: 300; }
.cvalert__meta { margin-top: 0.7rem; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--muted); }
.cvdemo__foot { margin-top: 1.6rem; display:flex; gap: 2rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.cvdemo__foot b { color: var(--blue-bright); }

/* ===== AGENT LOOP — Perceive · Reason · Act ===== */
.loop { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 820px){ .loop { grid-template-columns: 1fr; } }
.loop__col { padding: clamp(1.4rem, 2.6vw, 2.2rem); background: rgba(10,16,30,0.6); }
.loop__k { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); }
.loop__t { margin-top: 0.6rem; font-size: var(--t-h3); color: var(--white); font-weight: 300; }
.loop__list { margin-top: 1.2rem; display: grid; gap: 0.65rem; }
.loop__list li { display: flex; align-items: center; gap: 0.7rem; font-size: var(--t-small); color: var(--text); font-family: var(--font-mono); letter-spacing: 0.04em; }
.loop__list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 6px var(--blue-glow); flex: none; }
.loop__col--act .loop__list li::before { background: var(--amber); box-shadow: 0 0 6px var(--amber-glow); }
.loop__note { margin-top: 1.6rem; text-align: center; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }

/* ===== THE MOMENT / MARKET ===== */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 2.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 860px){ .stats-row { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; } }
@media (max-width: 440px){ .stats-row { grid-template-columns: 1fr; } }

/* timeline */
.timeline { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 90px 1fr; gap: clamp(1rem,2vw,2rem); padding-block: 1.1rem; border-top: 1px solid var(--hairline); }
.tl-item:last-child { border-bottom: 1px solid var(--hairline); }
.tl-year { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--blue); padding-top: 0.15rem; }
.tl-item--now .tl-year { color: var(--amber); }
.tl-body h4 { font-size: var(--t-h3); font-weight: 400; color: var(--white); }
.tl-body p { margin-top: 0.3rem; color: var(--muted); font-size: var(--t-small); }

/* ===== SOVEREIGN TIERS (abyss) ===== */
.tiers { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: clamp(0.8rem,1.6vw,1.2rem); }
.tier {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  padding: clamp(1.3rem, 2.4vw, 2rem);
  border: 1px solid var(--panel-edge); border-radius: var(--radius);
  background: var(--panel-soft);
  overflow: hidden;
  transition: border-color 0.4s, background 0.4s;
}
.tier:hover { border-color: var(--blue); }
.tier__depth { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--blue-bright); writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; }
.tier__main h4 { font-size: var(--t-h3); font-weight: 400; color: var(--white); }
.tier__main p { margin-top: 0.4rem; color: var(--muted); font-size: var(--t-small); max-width: 60ch; }
.tier__tag { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); border: 1px solid var(--hairline); padding: 0.4em 0.7em; border-radius: 4px; white-space: nowrap; }
.tier--deepest { border-color: rgba(232,178,78,0.3); background: linear-gradient(110deg, rgba(40,30,12,0.4), rgba(8,12,24,0.6)); }
.tier--deepest .tier__depth, .tier--deepest .tier__tag { color: var(--amber); border-color: rgba(232,178,78,0.3); }
@media (max-width: 720px){ .tier { grid-template-columns: 40px 1fr; } .tier__tag { grid-column: 2; justify-self: start; margin-top: 0.6rem; } }

/* ===== USE CASES ===== */
.usecases { margin-top: clamp(2.5rem, 5vw, 4rem); }
.uc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.4vw, 2rem); }
@media (max-width: 820px){ .uc-grid { grid-template-columns: 1fr; } }
.uc-col__k { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; }
.uc-col--gov .uc-col__k { color: var(--blue); }
.uc-col--ent .uc-col__k { color: var(--amber); }
.uc-col h3 { margin-top: 0.5rem; font-size: var(--t-h3); font-weight: 300; color: var(--white); }
.uc-list { margin-top: 1.4rem; }
.uc-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.95rem; border-top: 1px solid var(--hairline);
  font-size: var(--t-small); color: var(--text);
}
.uc-list li:last-child { border-bottom: 1px solid var(--hairline); }
.uc-list .uc-tag { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--hairline); padding: 0.3em 0.55em; border-radius: 4px; white-space: nowrap; }

/* trusted-by row */
.trusted { margin-top: clamp(2.5rem, 5vw, 4rem); }
.trusted__k { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.2rem; }
.trusted__row { display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 4vw, 3.5rem); align-items: center; }
.trusted__name { font-size: clamp(1rem, 1.8vw, 1.4rem); color: var(--muted); font-weight: 300; transition: color 0.3s; }
.trusted__name:hover { color: var(--white); }

/* ===== CONTACT / CLOSING ===== */
.closing { position: relative; min-height: 90vh; display: flex; align-items: center; }
.closing h2 { font-size: var(--t-hero); font-weight: 200; max-width: 16ch; }
.closing h2 .em { font-weight: 600; }
.closing__sub { margin-top: 2rem; font-size: var(--t-lead); color: var(--text); font-weight: 300; max-width: 46ch; }
.closing__cta { margin-top: 2.6rem; display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }

/* footer grid */
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 760px){ .foot-grid { grid-template-columns: 1fr; gap: 2rem; } }
.foot-col h5 { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; font-weight: 500; }
.foot-col p, .foot-col a { font-size: var(--t-small); color: var(--muted); display: block; margin-bottom: 0.4rem; }
.foot-col a:hover { color: var(--white); }
.foot-brand img { height: 30px; margin-bottom: 1.2rem; }
.foot-brand p { font-size: var(--t-small); color: var(--muted); max-width: 38ch; }
.foot-bottom { margin-top: clamp(2.5rem,5vw,4rem); padding-top: 1.6rem; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

/* ===== Section atmospheric label (depth marker on left) ===== */
.depth-mark {
  position: absolute; left: var(--gutter); top: clamp(2rem,5vh,4rem);
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--faint); writing-mode: vertical-rl;
}

/* reveal hook — elements start hidden, GSAP brings them in.
   When JS is off or reduced-motion, a fallback makes them visible. */
.reveal { opacity: 0; }
.no-js .reveal, .reduce .reveal { opacity: 1; }

/* ===== Mobile refinements ===== */
@media (max-width: 768px) {
  /* vertical depth markers can crowd narrow screens */
  .depth-mark { display: none; }
  .hero { padding-block: 12vh 6vh; min-height: 92svh; }
  .hero__trust { gap: 0.6rem 1rem; }
  .scroll-cue { display: none; }
  .cvdemo__foot { gap: 0.6rem 1.4rem; }
  /* let the CV scene breathe and the pipeline stack below it */
  .cvscene { aspect-ratio: 16 / 11; }
}
@media (max-width: 480px) {
  .closing { min-height: 80vh; }
  .loop__col { padding: 1.3rem; }
  .lineage { padding: 1.4rem; }
}
