/* =========================================================
   ASTROVASTU — Brand & Digital Build (portfolio project page)
   Portfolio chrome: paper + ink + four playful accents.
   Project world: AstroVastu's own brown / gold / cream palette.
   ========================================================= */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/CormorantGaramond-Variable.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/CormorantGaramond-Italic-Variable.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/BricolageGrotesque-Variable.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
}
@font-face {
  font-family: "Tiro Devanagari Hindi";
  src: url("assets/fonts/TiroDevanagariHindi-Regular.woff2") format("woff2");
  font-weight: 400; font-display: swap;
  unicode-range: U+0900-097F, U+200C-200D;
}

:root {
  /* AstroVastu identity */
  --av-deep: #3A1A0C;
  --av-brown: #5A2A12;
  --av-rust: #8A3F12;
  --av-gold: #E2A833;
  --av-gold-2: #C98E23;
  --av-gold-soft: #F3DDA8;
  --av-beige: #EFE1C6;
  --av-cream: #FBF4E6;
  --av-ink: #2E1A10;
  --av-muted: #6E5443;
  --av-line: rgba(90, 42, 18, 0.16);

  /* Portfolio chrome */
  --p-paper: #F7F5F0;
  --p-ink: #1C1B19;
  --p-muted: #5E5B55;
  --p-tomato: #F2603F;
  --p-cobalt: #3157E8;
  --p-mint: #22A57D;
  --p-sun: #FFC23D;

  --f-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --f-sans: "Bricolage Grotesque", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-hindi: "Tiro Devanagari Hindi", "Noto Serif Devanagari", "Mangal", serif;

  --wrap: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --sec-y: clamp(4.5rem, 9vw, 8rem);
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --shadow: 0 1px 2px rgba(58, 26, 12, .08), 0 18px 40px -24px rgba(58, 26, 12, .45);
  --bar-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 12px + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--p-paper);
  color: var(--av-ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.hi { font-family: var(--f-hindi); }

:focus-visible { outline: 2px solid var(--p-cobalt); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 300;
  background: var(--p-ink); color: #fff; padding: .6rem 1rem; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); }

/* ---------- Buttons & small parts ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.35rem; border-radius: 999px;
  font-weight: 650; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--av-gold); color: var(--av-deep); box-shadow: 0 10px 24px -14px rgba(226, 168, 51, .9); }
.btn--gold:hover { background: #EDB843; }
.btn--brown { background: var(--av-brown); color: var(--av-cream); }
.btn--brown:hover { background: var(--av-deep); }
.btn--ghost { background: transparent; border-color: var(--av-line); color: var(--av-brown); }
.btn--ghost:hover { border-color: var(--av-brown); }

.eyebrow {
  font-size: .8rem; font-weight: 650; letter-spacing: .22em; text-transform: uppercase;
  color: var(--av-gold);
}
.tag {
  display: inline-block; padding: .4rem .8rem; border-radius: 999px;
  border: 1px solid rgba(226, 168, 51, .45); color: var(--av-gold-soft);
  font-size: .82rem;
}
.mini-k { font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--av-muted); }

/* ---------- Image buttons (zoomable) ---------- */
.zoom {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; border-radius: var(--r-lg); overflow: hidden;
}
.zoom img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.zoom:hover img { transform: scale(1.02); }
.zoom--doc, .zoom--card { border-radius: var(--r-md); }
.zoom--doc img { border-radius: 6px; }
.zoom--doc:hover img, .zoom--card:hover img { transform: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Portfolio bar
   ========================================================= */
.pbar {
  position: sticky; top: 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(247, 245, 240, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 27, 25, .08);
  color: var(--p-ink);
}
.pbar__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--bar-h); display: flex; align-items: center; gap: 1rem;
}
.pbar__brand { white-space: nowrap; min-width: 0; display: flex; align-items: center; gap: .65rem; font-weight: 650; font-size: .95rem; margin-right: auto; }
.pbar__muted { color: var(--p-muted); font-weight: 400; margin-left: .3rem; }
.pbar__dots { display: inline-grid; grid-template-columns: repeat(2, 7px); gap: 3px; }
.pbar__dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.pbar__dots i:nth-child(1) { background: var(--p-tomato); }
.pbar__dots i:nth-child(2) { background: var(--p-sun); }
.pbar__dots i:nth-child(3) { background: var(--p-cobalt); }
.pbar__dots i:nth-child(4) { background: var(--p-mint); }

.pnav { position: relative; }
.pnav__list { display: flex; gap: .15rem; }
.pnav__list a {
  display: block; padding: .42rem .75rem; border-radius: 999px;
  font-size: .88rem; color: var(--p-muted); text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.pnav__list a:hover { background: rgba(28, 27, 25, .06); color: var(--p-ink); }
.pnav__list a.is-active { background: var(--p-ink); color: #fff; }
.pnav__toggle {
  display: none; padding: .42rem .9rem; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid rgba(28, 27, 25, .16); font-size: .88rem;
}
.pbar__live {
  white-space: nowrap;
  padding: .45rem .9rem; border-radius: 999px; text-decoration: none;
  font-size: .88rem; font-weight: 650; color: var(--p-ink);
  background: var(--p-sun);
  transition: transform .2s ease;
}
.pbar__live:hover { transform: translateY(-1px); }

/* =========================================================
   Shared section patterns
   ========================================================= */
.sec { padding-block: var(--sec-y); }
.sec--cream { background: var(--av-cream); }
.sec--beige { background: var(--av-beige); }
.sec--deep { background: var(--av-deep); color: var(--av-cream); }
.sec--portfolio { background: var(--p-paper); color: var(--p-ink); }

.sec__head { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.sec__head--center { margin-inline: auto; text-align: center; }
.sec__head--row {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap;
}
.sec__head--row > div { max-width: 42rem; }

.sec__num {
  font-size: .8rem; font-weight: 650; letter-spacing: .2em; text-transform: uppercase;
  color: var(--av-rust); margin-bottom: .9rem;
}
.sec--deep .sec__num { color: var(--av-gold); }

.sec__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--av-deep);
  text-wrap: balance;
}
.sec--deep .sec__title { color: var(--av-cream); }
.sec__sub { margin-top: 1rem; color: var(--av-muted); font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 38rem; }
.sec--deep .sec__sub { color: rgba(251, 244, 230, .75); }
.sec__head--center .sec__sub { margin-inline: auto; font-family: var(--f-display); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.35; }

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem); align-items: center;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 20%, #5A2A12 0%, var(--av-deep) 55%, #2A1208 100%);
  color: var(--av-cream);
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.hero__glow {
  position: absolute; right: -10%; top: -20%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 168, 51, .22), rgba(226, 168, 51, 0) 62%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero__title {
  margin-top: 1.2rem;
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  font-size: 13.4cqi;
  line-height: .92;
  color: var(--av-gold);
  background: linear-gradient(180deg, #F5CE6E 0%, var(--av-gold) 55%, var(--av-gold-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__copy { container-type: inline-size; min-width: 0; }
.hero__lede {
  margin-top: 1.4rem; max-width: 30rem;
  font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25;
  color: var(--av-cream);
}
.hero__deliv { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .4rem 0; }
.hero__deliv li {
  font-size: .8rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--av-gold-soft);
}
.hero__deliv li:not(:last-child)::after { content: "·"; margin: 0 .7rem; color: var(--av-gold); }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.hero__logo { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.hero__logo::before {
  content: ""; position: absolute; inset: -14px; border-radius: 36px;
  border: 1px solid rgba(226, 168, 51, .35); pointer-events: none;
}
.hero__logo .zoom { border-radius: 26px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); }

.snapshot {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1fr 1.2fr 2.2fr 1fr 1.3fr;
  background: rgba(251, 244, 230, .06);
  border: 1px solid rgba(226, 168, 51, .28);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.snapshot > div { padding: 1.1rem 1.25rem; }
.snapshot > div + div { border-left: 1px solid rgba(226, 168, 51, .2); }
.snapshot dt { font-size: .72rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--av-gold); }
.snapshot dd { margin-top: .3rem; font-size: .95rem; color: var(--av-cream); line-height: 1.4; }

/* =========================================================
   01 IDENTITY
   ========================================================= */
.identity__art { max-width: 520px; width: 100%; justify-self: center; }
.zoom--frame {
  border-radius: 26px;
  box-shadow: 0 0 0 10px var(--av-beige), 0 0 0 11px var(--av-line), var(--shadow);
}
.sec__quote {
  margin-top: 1.4rem;
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.32; color: var(--av-brown);
  padding-left: 1.1rem; border-left: 2px solid var(--av-gold);
}
.identity__uses { margin-top: 2rem; }
.identity__uses ul { margin-top: .7rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.identity__uses li span {
  display: inline-block; padding: .4rem .8rem; border-radius: 999px;
  background: var(--av-beige); border: 1px solid var(--av-line); font-size: .9rem; color: var(--av-brown);
}
.swatches { margin-top: 2rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.swatches span {
  display: flex; align-items: flex-end;
  aspect-ratio: 1 / 1.1; border-radius: 12px; background: var(--c);
  border: 1px solid var(--av-line); padding: .5rem;
}
.swatches em { font-style: normal; font-size: .72rem; font-weight: 600; color: var(--av-cream); line-height: 1.15; }
.swatches span:nth-child(n+3) em { color: var(--av-deep); }

/* =========================================================
   02 COLLATERAL
   ========================================================= */
.sec__title--bi { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .45em; }
.sec__title--bi .hi { color: var(--av-rust); font-size: .86em; line-height: 1.3; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.cardshot { display: flex; flex-direction: column; gap: .9rem; }
.cardshot__label { display: flex; align-items: baseline; gap: .7rem; }
.cardshot__lang { font-family: var(--f-display); font-weight: 600; font-size: 1.8rem; color: var(--av-deep); line-height: 1; }
.cardshot__lang.hi { font-family: var(--f-hindi); font-weight: 400; font-size: 1.6rem; }
.cardshot__label span:last-child { font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--av-muted); }
.zoom--card { box-shadow: var(--shadow); transition: transform .35s ease, box-shadow .35s ease; }
.zoom--card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 2px 4px rgba(58, 26, 12, .08), 0 30px 50px -26px rgba(58, 26, 12, .55); }

/* =========================================================
   03 PROFILE
   ========================================================= */
.split--profile { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
.doc { max-width: 520px; width: 100%; justify-self: center; }
.zoom--doc { background: #fff; padding: 10px; border: 1px solid var(--av-line); box-shadow: var(--shadow); transition: transform .35s ease; }
.zoom--doc:hover { transform: translateY(-4px); }
.facts { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.facts li {
  background: var(--av-beige); border-radius: var(--r-md); padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: .2rem;
  border-top: 3px solid var(--av-gold);
}
.facts__k { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; line-height: 1.15; color: var(--av-deep); }
.facts__v { font-size: .88rem; color: var(--av-muted); }
.profile__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }

/* =========================================================
   04 DIGITAL
   ========================================================= */
.devices {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 250px);
  gap: clamp(1.25rem, 3vw, 2.5rem); align-items: end;
}
.browser {
  background: #24110A; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(226, 168, 51, .25);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.browser__bar { display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; background: #2F170C; }
.browser__dots { display: inline-flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(251, 244, 230, .22); display: block; }
.browser__url {
  flex: 1; max-width: 360px; margin-inline: auto;
  text-align: center; font-size: .8rem; color: rgba(251, 244, 230, .7);
  background: rgba(0, 0, 0, .25); border-radius: 999px; padding: .25rem .8rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.viewport { position: relative; overflow: hidden; background: var(--av-brown); }
.viewport--desktop { aspect-ratio: 16 / 10; }
.viewport--mobile { aspect-ratio: 390 / 780; border-radius: 26px; }
.viewport iframe {
  position: absolute; left: 0; top: 0; border: 0;
  transform-origin: 0 0;
  transform: scale(var(--s, .5));
  pointer-events: none;
  background: transparent;
}
.viewport--desktop iframe { width: 1280px; height: 800px; }
.viewport--mobile iframe { width: 390px; height: 780px; }
.viewport__fallback {
  position: absolute; inset: 0; display: grid; place-content: center; gap: .6rem; text-align: center;
  padding: 1rem; color: rgba(251, 244, 230, .8); font-size: .92rem;
}
.viewport__fallback a { color: var(--av-gold); font-weight: 650; }
.viewport__hit { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.viewport__hit:focus-visible { outline-offset: -4px; }

.phone {
  position: relative;
  background: #1A0C06; border-radius: 36px; padding: 10px;
  border: 1px solid rgba(226, 168, 51, .3);
  box-shadow: 0 40px 70px -35px rgba(0, 0, 0, .85);
}
.phone__notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 18px; border-radius: 999px; background: #1A0C06; z-index: 3;
}

.structure {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; gap: 1px;
  background: rgba(226, 168, 51, .22);
  border: 1px solid rgba(226, 168, 51, .22);
  border-radius: var(--r-lg); overflow: hidden;
}
.structure__col { background: var(--av-deep); padding: clamp(1.25rem, 2.6vw, 1.9rem); }
.structure__k { font-size: .76rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--av-gold); margin-bottom: 1rem; }
.pagenav { display: flex; flex-wrap: wrap; gap: 6px; counter-reset: pg; }
.pagenav li {
  counter-increment: pg;
  padding: .35rem .75rem; border-radius: 999px;
  border: 1px solid rgba(251, 244, 230, .22); font-size: .88rem; color: var(--av-cream);
}
.pagenav li::before { content: counter(pg); color: var(--av-gold); font-size: .72rem; margin-right: .45rem; }
.servicelist li {
  font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; line-height: 1.25; color: var(--av-cream);
  padding: .35rem 0; border-bottom: 1px solid rgba(251, 244, 230, .1);
}
.servicelist li:last-child { border-bottom: 0; }
.commlist li { position: relative; padding: .28rem 0 .28rem 1.2rem; font-size: .95rem; color: rgba(251, 244, 230, .85); }
.commlist li::before {
  content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 6px;
  background: var(--av-gold); transform: rotate(45deg);
}

/* =========================================================
   05 VISUAL
   ========================================================= */
.split--visual { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
.poster { max-width: 500px; width: 100%; justify-self: center; }
.note {
  margin-top: 1.4rem; padding: .9rem 1rem; border-radius: var(--r-md);
  background: var(--av-beige); border-left: 3px solid var(--av-gold);
  font-size: .9rem; color: var(--av-muted); max-width: 34rem;
}
.visual__copy .btn { margin-top: 1.6rem; }

/* =========================================================
   BUILD STORY
   ========================================================= */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative; }
.flow::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 2.05rem; height: 1px;
  background: repeating-linear-gradient(90deg, var(--av-gold-2) 0 6px, transparent 6px 12px);
}
.flow__step {
  position: relative;
  background: var(--av-cream); border: 1px solid var(--av-line);
  border-radius: var(--r-lg); padding: 1.2rem 1.15rem 1.4rem;
  display: flex; flex-direction: column; gap: .35rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.flow__step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.flow__n {
  width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--av-gold); color: var(--av-deep); font-size: .78rem; font-weight: 700;
  margin-bottom: .6rem;
}
.flow__t { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; line-height: 1.05; color: var(--av-deep); }
.flow__d { font-size: .9rem; color: var(--av-muted); line-height: 1.4; }

/* =========================================================
   WHAT THIS DEMONSTRATES — portfolio voice
   ========================================================= */
.ptitle {
  font-family: var(--f-sans); font-weight: 800;
  font-variation-settings: "wdth" 78; font-stretch: 78%;
  font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: .95; letter-spacing: -0.01em;
  color: var(--p-ink); text-wrap: balance;
}
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cap {
  position: relative; border-radius: var(--r-xl); padding: 1.5rem 1.4rem 1.6rem;
  background: #fff; border: 1px solid rgba(28, 27, 25, .1);
  min-height: 14rem; display: flex; flex-direction: column; justify-content: flex-start;
  padding-top: 5.4rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.cap:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: 0 24px 40px -28px rgba(28, 27, 25, .5); }
.cap::before {
  content: ""; position: absolute; top: 1.4rem; left: 1.4rem;
  width: 2.6rem; height: 2.6rem; border-radius: 14px; background: var(--k);
}
.cap--1 { --k: var(--p-tomato); }
.cap--2 { --k: var(--p-cobalt); }
.cap--3 { --k: var(--p-sun); }
.cap--4 { --k: var(--p-mint); }
.cap--4::before { border-radius: 50%; }
.cap--2::before { border-radius: 4px; }
.cap h3 {
  font-family: var(--f-sans); font-weight: 760;
  font-variation-settings: "wdth" 82; font-stretch: 82%;
  font-size: 1.45rem; line-height: 1.05; color: var(--p-ink);
}
.cap p { margin-top: .5rem; font-size: .95rem; color: var(--p-muted); line-height: 1.45; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.cta {
  background: radial-gradient(90% 120% at 50% 0%, #5A2A12 0%, var(--av-deep) 60%, #2A1208 100%);
  color: var(--av-cream); text-align: center;
  padding-block: clamp(5rem, 11vw, 9rem);
}
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.cta__logo { width: 96px; height: 96px; border-radius: 20px; box-shadow: 0 0 0 6px rgba(226, 168, 51, .18); margin-bottom: .6rem; }
.cta__title {
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(2.3rem, 9.5vw, 6.6rem); line-height: .95; color: var(--av-gold); max-width: 100%;
}
.cta__sub { font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--av-cream); margin-bottom: 1rem; }

/* =========================================================
   Footer
   ========================================================= */
.pfoot { background: var(--p-ink); color: rgba(255, 255, 255, .7); font-size: .88rem; }
.pfoot__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
}
.pfoot a { color: var(--p-sun); text-decoration: none; font-weight: 650; }
.pfoot a:hover { text-decoration: underline; }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  border: 0; padding: 0; margin: auto; background: transparent;
  width: 100vw; height: 100vh; height: 100dvh; max-width: 100vw; max-height: 100vh;
}
.lightbox::backdrop { background: rgba(26, 12, 6, .94); }
.lightbox__inner {
  width: 100%; height: 100%; display: grid; place-items: center;
  padding: calc(3.5rem + env(safe-area-inset-top, 0px)) 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
}
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: .8rem; max-width: 100%; max-height: 100%; }
.lightbox__figure img {
  max-width: min(100%, 1200px); max-height: calc(100dvh - 8rem);
  width: auto; height: auto; object-fit: contain; border-radius: 8px;
}
.lightbox__figure figcaption { color: rgba(251, 244, 230, .85); font-size: .92rem; text-align: center; }
.lightbox__close {
  position: fixed; top: calc(.9rem + env(safe-area-inset-top, 0px)); right: 1rem;
  background: var(--av-gold); color: var(--av-deep); border: 0; border-radius: 999px;
  padding: .5rem 1rem; font-weight: 650; cursor: pointer;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1040px) {
  .snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snapshot > div + div { border-left: 0; }
  .snapshot > div { border-top: 1px solid rgba(226, 168, 51, .2); }
  .snapshot > div:nth-child(1), .snapshot > div:nth-child(2) { border-top: 0; }
  .snapshot > div:nth-child(even) { border-left: 1px solid rgba(226, 168, 51, .2); }
  .snapshot__wide { grid-column: 1 / -1; border-left: 0 !important; }
  .snapshot > div:nth-child(4) { border-left: 0; }
  .snapshot > div:nth-child(5) { border-left: 1px solid rgba(226, 168, 51, .2); }

  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow::before { display: none; }
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .structure { grid-template-columns: 1fr 1fr; }
  .structure__col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .pnav__toggle { display: inline-block; }
  .pnav__list {
    position: absolute; right: 0; top: calc(100% + 10px); display: none;
    flex-direction: column; gap: 2px; min-width: 190px; padding: .4rem;
    background: #fff; border: 1px solid rgba(28, 27, 25, .1); border-radius: 14px;
    box-shadow: 0 20px 40px -20px rgba(28, 27, 25, .35);
  }
  .pnav.is-open .pnav__list { display: flex; }
  .pnav__list a { padding: .6rem .85rem; border-radius: 10px; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__logo { max-width: 360px; order: -1; }
  .split, .split--profile, .split--visual { grid-template-columns: 1fr; }
  .identity__art { max-width: 400px; }
  .split--visual .poster { order: 2; }
  .devices { grid-template-columns: minmax(0, 1fr) minmax(0, 180px); }
}

@media (max-width: 700px) {
  .cards { grid-template-columns: 1fr; }
  .devices { grid-template-columns: 1fr; }
  .phone { max-width: 230px; width: 100%; justify-self: center; }
  .structure { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 10px; }
  .flow__step { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: .9rem; }
  .flow__n { margin-bottom: 0; }
  .flow__d { flex-basis: 100%; padding-left: 3.1rem; }
  .caps { grid-template-columns: 1fr; }
  .cap { min-height: 11rem; }
  .facts { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --bar-h: 56px; }
  body { font-size: 1rem; }
  .pbar__muted { display: none; }
  .pbar__brand { font-size: .88rem; }
  .pbar__inner { gap: .6rem; }
  .pbar__live { padding: .42rem .7rem; }
  .snapshot { grid-template-columns: 1fr; }
  .snapshot > div { border-left: 0 !important; border-top: 1px solid rgba(226, 168, 51, .2) !important; }
  .snapshot > div:first-child { border-top: 0 !important; }
  .swatches em { font-size: .62rem; }
}

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