/* ============================================================
   Srinidhi VJ — Portfolio  ·  Option C
   Warm editorial base + selective liquid-glass accents.
   Palette & type discipline informed by award-site analysis:
   one warm ink at many opacities, serif for voice, mono for data.
   Dependency-free.
   ============================================================ */

:root {
  /* Warm editorial ground (not pure black) */
  --bg: #161412;
  --bg-soft: #1d1a17;
  --ink: #f5efe6;            /* warm cream foreground */
  --ink-80: rgba(245, 239, 230, 0.80);
  --ink-60: rgba(245, 239, 230, 0.60);
  --ink-40: rgba(245, 239, 230, 0.40);
  --ink-24: rgba(245, 239, 230, 0.24);
  --ink-12: rgba(245, 239, 230, 0.12);
  --ink-06: rgba(245, 239, 230, 0.06);
  --accent: #e0a872;         /* warm amber */

  /* Clear glass — crisp, reflective, minimal blur (not frosted) */
  --glass-bg: rgba(245, 239, 230, 0.035);
  --glass-stroke: rgba(255, 255, 255, 0.28);
  --glass-inset:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.05),
    inset 0 -8px 24px rgba(255,255,255,0.04);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --maxw: 1280px;
  --pad: clamp(1.25rem, 5vw, 4.5rem);

  --step--1: clamp(0.78rem, 0.74rem + 0.15vw, 0.86rem);
  --step-0:  clamp(0.98rem, 0.93rem + 0.22vw, 1.1rem);
  --step-1:  clamp(1.35rem, 1.1rem + 1.1vw, 2rem);
  --step-2:  clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --step-3:  clamp(2.6rem, 1.6rem + 4.5vw, 5.5rem);
  --display: clamp(3.2rem, 1.6rem + 9vw, 9rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
body.is-loading { overflow: hidden; height: 100vh; }
body.no-scroll { overflow: hidden; }
::selection { background: var(--accent); color: #161412; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--accent); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: -0.01em; }

/* ---------- Texture + ambient warmth ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 78% -5%, rgba(224,168,114,0.10), transparent 60%),
    radial-gradient(50vw 40vw at 0% 100%, rgba(224,168,114,0.06), transparent 60%);
}

/* ---------- Clear glass ---------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(6px) saturate(115%) brightness(1.06);
  -webkit-backdrop-filter: blur(6px) saturate(115%) brightness(1.06);
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--glass-inset), 0 10px 40px rgba(0,0,0,0.28);
  overflow: hidden;
}
/* top specular sweep — the glassy reflection */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.06) 18%, transparent 42%);
  mix-blend-mode: screen;
}
/* moving glare driven by pointer (--gx/--gy) */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(140px circle at var(--gx,50%) var(--gy,0%), rgba(255,255,255,0.35), transparent 60%);
  transition: opacity .4s var(--ease); mix-blend-mode: screen;
}
.glass:hover::after { opacity: 1; }
.glass > * { position: relative; z-index: 1; }
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .glass { background: rgba(30,27,24,0.85); }
}

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9990; background: var(--bg);
  display: flex; align-items: flex-end; justify-content: space-between; padding: var(--pad); overflow: hidden;
}
.loader__row { display: flex; flex-direction: column; gap: 0.3rem; font-size: var(--step--1); color: var(--ink-60); }
.loader__count { display: flex; align-items: flex-end; font-family: var(--serif); font-size: var(--display); line-height: 0.8; color: var(--ink); }
.loader__count i { font-style: normal; font-size: 0.26em; margin-bottom: 0.5em; color: var(--accent); }
.no-js .loader { display: none; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; padding: clamp(0.8rem,2vw,1.3rem) var(--pad); pointer-events: none; }
.nav__pill { pointer-events: auto; position: relative; display: flex; align-items: center; gap: clamp(1rem,3vw,2.4rem); padding: 0.55rem 0.55rem 0.55rem 1.4rem; border-radius: 100px; transition: transform .5s var(--ease); }
.nav.is-hidden .nav__pill { transform: translateY(-160%); }
.nav__brand { font-family: var(--serif); font-size: 1.3rem; }
.nav__brand span { font-style: italic; margin-left: 0.3em; color: var(--ink-60); }
.nav__links { display: flex; gap: clamp(1rem,2.5vw,1.9rem); font-size: var(--step--1); color: var(--ink-60); }
.nav__links a { position: relative; transition: color .3s var(--ease); }
.nav__links a::after { content:""; position:absolute; left:0; bottom:-4px; width:0; height:1px; background: var(--accent); transition: width .35s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--step--1); color: var(--ink); padding: 0.5rem 1rem; border-radius: 100px; border: 1px solid var(--glass-stroke); }
.nav__dot { width: 7px; height: 7px; border-radius: 50%; background: #6ec98a; box-shadow: 0 0 0 0 rgba(110,201,138,0.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(110,201,138,0.5)} 70%{box-shadow:0 0 0 7px rgba(110,201,138,0)} 100%{box-shadow:0 0 0 0 rgba(110,201,138,0)} }

/* Hamburger toggle — hidden on desktop */
.nav__toggle { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-stroke); flex: 0 0 auto; position: relative; }
.nav__toggle span { position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s var(--ease); }
.nav__toggle span:nth-child(1) { transform: translate(-50%, -4px); }
.nav__toggle span:nth-child(2) { transform: translate(-50%, 4px); }
.nav.menu-open .nav__toggle span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.nav.menu-open .nav__toggle span:nth-child(2) { transform: translate(-50%, 0) rotate(-45deg); }

@media (max-width: 820px) {
  .nav__pill { width: 100%; justify-content: space-between; overflow: visible; }
  .nav__toggle { display: block; }
  /* links become a dropdown panel under the pill */
  .nav__links {
    position: absolute; top: calc(100% + 0.6rem); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 0.5rem;
    border-radius: 18px; background: rgba(22,20,18,0.82);
    backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--glass-stroke); box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease);
  }
  .nav.menu-open .nav__links { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__links a { padding: 0.95rem 1rem; font-size: var(--step-0); border-radius: 12px; }
  .nav__links a::after { display: none; }
  .nav__links a:hover, .nav__links a:active { background: rgba(255,255,255,0.06); color: var(--ink); }
  .nav__status { display: none; }
}

/* ---------- Layout ---------- */
main { position: relative; z-index: 1; }
.block { max-width: var(--maxw); margin: 0 auto; padding: clamp(4.5rem,11vh,8rem) var(--pad); }
.block__head { margin-bottom: clamp(2rem,5vw,3.5rem); display: flex; flex-direction: column; gap: 0.8rem; }
.kicker { display: inline-block; font-size: var(--step--1); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-40); }
.block__title { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); line-height: 1.0; letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.hero { position: relative; max-width: var(--maxw); margin: 0 auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 6rem var(--pad) 3rem; }
.hero__eyebrow { font-size: var(--step--1); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-60); margin-bottom: clamp(1rem,2.5vw,1.6rem); }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: var(--display); line-height: 0.92; letter-spacing: -0.025em; margin-bottom: clamp(1.4rem,3.5vw,2.2rem); }
.hero__lead { max-width: 38ch; font-size: var(--step-1); font-family: var(--serif); color: var(--ink-80); line-height: 1.32; margin-bottom: clamp(1.8rem,4vw,2.6rem); }
.hero__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: clamp(2.4rem,6vw,4rem); }

.btn { display: inline-flex; align-items: center; font-size: var(--step-0); padding: 0.85rem 1.7rem; border-radius: 100px; transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
.btn--solid { background: var(--ink); color: #161412; }
.btn--solid:hover { transform: translateY(-3px); background: var(--accent); }
.btn.glass { color: var(--ink); }
.btn.glass:hover { transform: translateY(-3px); border-color: var(--ink-40); }

.ticker { overflow: hidden; border-top: 1px solid var(--ink-12); border-bottom: 1px solid var(--ink-12); padding: 0.8rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; align-items: center; gap: 1.6rem; width: max-content; will-change: transform; }
.ticker__track span { font-family: var(--serif); font-style: italic; font-size: var(--step-1); color: var(--ink); white-space: nowrap; }
.ticker__track i { color: var(--accent); font-style: normal; }

/* ---------- Selected Work (projects) ---------- */
.projects { list-style: none; display: flex; flex-direction: column; gap: clamp(2.5rem,6vw,4.5rem); }
.project { display: block; width: 100%; text-align: left; }
.project__media { display: block; position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 16 / 9; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); position: relative; z-index: 0; }
.project:hover .project__media img { transform: scale(1.04); }
.project__row { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 1rem 1.5rem; padding: 1.1rem 0.2rem; border-bottom: 1px solid var(--ink-12); transition: border-color .4s var(--ease); }
.project:hover .project__row { border-color: var(--ink-40); }
.project__title { font-family: var(--serif); font-size: var(--step-2); line-height: 1; }
.project__meta { display: flex; gap: 1.2rem; color: var(--ink-40); font-size: var(--step--1); }
.project__cta { color: var(--ink-60); font-size: var(--step--1); transition: color .3s var(--ease); }
.project__cta i { color: var(--accent); display: inline-block; transition: transform .4s var(--ease); }
.project:hover .project__cta { color: var(--ink); }
.project:hover .project__cta i { transform: translate(4px,-4px); }
@media (max-width: 700px) {
  .project__row { grid-template-columns: 1fr; gap: 0.5rem; }
  .project__meta { gap: 1rem; }
}

/* ---------- Graphics grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem,1.6vw,1.2rem); grid-auto-flow: dense; }
.tile { display: block; width: 100%; text-align: left; padding: 0; cursor: pointer; position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--ink-12); background: var(--bg-soft); aspect-ratio: 4 / 3; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .4s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.9rem 1rem; font-size: var(--step--1); color: var(--ink); background: linear-gradient(transparent, rgba(0,0,0,0.55)); opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); text-align: left; }
.tile:hover .tile__cap { opacity: 1; transform: translateY(0); }
.tile--tall { grid-row: span 2; aspect-ratio: 3 / 4; }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .grid { grid-template-columns: 1fr; } .tile--tall { grid-row: auto; } }

/* ---------- Capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem,4vw,3rem) clamp(2rem,5vw,4rem); }
.cap { padding-top: 1.3rem; border-top: 1px solid var(--ink-12); }
.cap__num { font-size: var(--step--1); color: var(--ink-40); display: block; margin-bottom: 0.8rem; }
.cap__title { font-family: var(--serif); font-weight: 400; font-size: var(--step-1); margin-bottom: 0.7rem; }
.cap__desc { color: var(--ink-60); font-size: var(--step-0); max-width: 42ch; margin-bottom: 1.1rem; }
.cap__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cap__tags li { font-size: 0.74rem; padding: 0.35rem 0.8rem; border-radius: 100px; border: 1px solid var(--ink-12); color: var(--ink-60); }
@media (max-width: 720px) { .caps { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about__statement { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); line-height: 1.22; letter-spacing: -0.01em; max-width: 26ch; margin: 0.5rem 0 clamp(2.5rem,6vw,4rem); }
.roles { list-style: none; border-top: 1px solid var(--ink-12); }
.role { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 1.5rem; padding: clamp(1.1rem,2.5vw,1.6rem) 0; border-bottom: 1px solid var(--ink-12); transition: padding .4s var(--ease); }
.role:hover { padding-left: 0.7rem; }
.role__tag { font-size: var(--step--1); color: var(--ink-40); text-transform: uppercase; }
.role--now .role__tag { color: #161412; background: var(--accent); padding: 0.2rem 0.55rem; border-radius: 6px; width: fit-content; }
.role__title { font-family: var(--serif); font-size: var(--step-1); }
.role__org { color: var(--ink-60); font-size: var(--step-0); }
@media (max-width: 600px) { .role { grid-template-columns: 56px 1fr; } .role__org { display: none; } }

/* ---------- Collaborate ---------- */
.collab__big { font-family: var(--serif); font-weight: 400; font-size: var(--step-3); line-height: 1.0; letter-spacing: -0.02em; max-width: 16ch; margin: 0.5rem 0 clamp(2.5rem,6vw,4rem); }
.email { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.4rem 1rem; padding: clamp(1.6rem,4vw,2.6rem) clamp(1.4rem,3.5vw,2.6rem); border-radius: 18px; margin-bottom: clamp(2rem,4vw,3rem); transition: transform .45s var(--ease), border-color .45s var(--ease); }
.email:hover { transform: translateY(-3px); border-color: var(--ink-40); }
.email__label { grid-column: 1; font-size: var(--step--1); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-40); }
.email__addr { grid-column: 1; font-family: var(--serif); font-size: var(--step-2); line-height: 1; word-break: break-word; }
.email__arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: var(--step-2); color: var(--ink-40); transition: transform .4s var(--ease), color .4s var(--ease); }
.email:hover .email__arrow { transform: translate(6px,-6px); color: var(--accent); }
.collab__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; padding-top: clamp(1.5rem,3vw,2rem); border-top: 1px solid var(--ink-12); }
.collab__h { display: block; font-size: 0.74rem; color: var(--ink-40); margin-bottom: 0.6rem; }
.collab__col p { font-size: var(--step-0); color: var(--ink-80); }
.collab__social { display: flex; flex-direction: column; gap: 0.4rem; }
.collab__social a { width: fit-content; padding: 0.35rem 0; transition: color .3s var(--ease); }
.collab__social a:hover { color: var(--accent); }
@media (max-width: 700px) { .collab__grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Footer ---------- */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem var(--pad) 3rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: var(--step--1); color: var(--ink-40); border-top: 1px solid var(--ink-12); }

/* ---------- Film ---------- */
.films { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem,2vw,1.6rem); }
.filmcard { position: relative; border-radius: 16px; overflow: hidden; padding: 0; }
.filmcard video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; position: relative; z-index: 0; }
.filmcard--sq video { aspect-ratio: 1 / 1; }
.filmcard__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.2rem; background: linear-gradient(transparent, rgba(0,0,0,0.6)); }
.filmcard__title { font-family: var(--serif); font-size: var(--step-1); line-height: 1; }
.filmcard__meta { font-size: var(--step--1); color: var(--ink-60); }
.filmcard::after { content: "▶"; position: absolute; z-index: 2; top: 1rem; right: 1.1rem; width: 40px; height: 40px; display: grid; place-items: center; font-size: 0.8rem; color: #161412; background: rgba(245,239,230,0.92); border-radius: 50%; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.filmcard.is-playing::after { opacity: 0; transform: scale(0.6); }
@media (max-width: 720px) { .films { grid-template-columns: 1fr; } }

/* ---------- Disciplines (animated showcase) ---------- */
.discs { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem,2vw,1.6rem); }
.disc { display: grid; grid-template-rows: auto 1fr; border-radius: 18px; overflow: hidden; padding: 0; transition: transform .5s var(--ease); }
.disc:hover { transform: translateY(-4px); }
.disc__viz { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background:
  radial-gradient(120% 120% at 20% 0%, rgba(224,168,114,0.10), transparent 55%), var(--bg-soft); border-bottom: 1px solid var(--ink-12); }
.disc__info { display: flex; flex-direction: column; gap: 0.5rem; padding: clamp(1.2rem,2.5vw,1.8rem); }
.disc__num { font-size: var(--step--1); color: var(--ink-40); }
.disc__title { font-family: var(--serif); font-size: var(--step-1); line-height: 1; }
.disc__desc { color: var(--ink-60); font-size: var(--step-0); max-width: 38ch; }
.disc__cta { margin-top: 0.4rem; font-size: var(--step--1); color: var(--ink-80); }
.disc__cta i { color: var(--accent); font-style: normal; display: inline-block; transition: transform .4s var(--ease); }
.disc:hover .disc__cta i { transform: translate(4px,-4px); }
@media (max-width: 720px) { .discs { grid-template-columns: 1fr; } }

/* Pause all discipline animations until in view (perf) */
.disc__viz * { animation-play-state: paused; }
.disc.is-in .disc__viz * { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) { .disc__viz * { animation: none !important; } }

/* — Branding: mark morphs, swatches cycle, grid pulses — */
.viz-brand { display: grid; place-items: center; }
.vb-mark { width: 22%; aspect-ratio: 1; background: var(--ink); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; animation: vbMorph 6s var(--ease) infinite; box-shadow: 0 8px 30px rgba(0,0,0,0.35); }
@keyframes vbMorph {
  0%,100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg); }
  33% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(120deg); }
  66% { border-radius: 50%; transform: rotate(240deg); }
}
.vb-swatches { position: absolute; left: 8%; bottom: 10%; display: flex; gap: 6px; }
.vb-swatches i { width: 16px; height: 16px; border-radius: 4px; }
.vb-swatches i:nth-child(1) { background: #e0a872; animation: vbPop 4s ease infinite; }
.vb-swatches i:nth-child(2) { background: #c0566b; animation: vbPop 4s ease infinite .3s; }
.vb-swatches i:nth-child(3) { background: #5b7fd0; animation: vbPop 4s ease infinite .6s; }
.vb-swatches i:nth-child(4) { background: #6ec98a; animation: vbPop 4s ease infinite .9s; }
@keyframes vbPop { 0%,100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(-6px); opacity: 1; } }
.vb-grid { position: absolute; right: 8%; top: 12%; display: grid; grid-template-columns: repeat(3, 10px); gap: 6px; }
.vb-grid b { width: 10px; height: 10px; border: 1px solid var(--ink-24); border-radius: 2px; animation: vbBlink 3s ease infinite; }
.vb-grid b:nth-child(2){animation-delay:.2s} .vb-grid b:nth-child(3){animation-delay:.4s}
.vb-grid b:nth-child(4){animation-delay:.6s} .vb-grid b:nth-child(5){animation-delay:.8s} .vb-grid b:nth-child(6){animation-delay:1s}
@keyframes vbBlink { 0%,100%{background:transparent} 50%{background:var(--accent)} }

/* — Product: phone UI assembles, toggle flips, cursor moves — */
.viz-product { display: grid; place-items: center; }
.vp-phone { position: relative; width: 34%; aspect-ratio: 9/16; max-height: 78%; background: #100e0c; border: 1px solid var(--ink-24); border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; gap: 7px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.vp-bar { height: 8px; width: 40%; background: var(--ink-40); border-radius: 4px; animation: vpIn 3.6s ease infinite; }
.vp-row { height: 7px; background: var(--ink-12); border-radius: 4px; animation: vpIn 3.6s ease infinite; }
.vp-row:nth-child(3){ width: 80%; animation-delay:.2s } 
.vp-card { flex: 1; background: linear-gradient(135deg, rgba(224,168,114,0.5), rgba(224,168,114,0.12)); border-radius: 8px; animation: vpIn 3.6s ease infinite .4s; }
.vp-toggle { height: 16px; width: 30px; border-radius: 10px; background: var(--ink-24); position: relative; animation: vpToggleBg 3.2s ease infinite; }
.vp-toggle b { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); animation: vpToggle 3.2s ease infinite; }
@keyframes vpIn { 0%,100%{opacity:.4; transform: translateY(4px)} 40%,70%{opacity:1; transform:none} }
@keyframes vpToggle { 0%,40%{left:2px} 60%,100%{left:16px} }
@keyframes vpToggleBg { 0%,40%{background:var(--ink-24)} 60%,100%{background:var(--accent)} }
.vp-cursor { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); right: 26%; bottom: 24%; animation: vpCursor 3.2s var(--ease) infinite; }
@keyframes vpCursor { 0%{transform:translate(20px,20px); opacity:0} 30%{opacity:1} 55%{transform:translate(0,0)} 70%{transform:scale(.7)} 85%,100%{transform:translate(-10px,-12px); opacity:0} }

/* — Film: filmstrip scrolls, play pulses, scrubber runs — */
.viz-film { display: grid; place-items: center; overflow: hidden; }
.vf-strip { position: absolute; inset: 0; display: flex; gap: 8px; padding: 14px; align-items: center; width: max-content; animation: vfScroll 8s linear infinite; }
.vf-strip b { width: 70px; height: 56%; border-radius: 6px; flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(245,239,230,0.16), rgba(245,239,230,0.04)); border: 1px solid var(--ink-12); }
.vf-strip b:nth-child(odd) { background: linear-gradient(135deg, rgba(224,168,114,0.3), rgba(224,168,114,0.06)); }
@keyframes vfScroll { to { transform: translateX(-156px); } }
.vf-play { position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 50%; background: rgba(245,239,230,0.92); display: grid; place-items: center; animation: vfPulse 2.6s ease infinite; }
.vf-play::after { content: ""; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #161412; margin-left: 4px; }
@keyframes vfPulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(245,239,230,0.4); } 60%{ box-shadow: 0 0 0 16px rgba(245,239,230,0); } }
.vf-scrub { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 3px; background: var(--ink-12); border-radius: 3px; z-index: 1; }
.vf-scrub b { position: absolute; left: 0; top: 0; height: 100%; background: var(--accent); border-radius: 3px; animation: vfScrub 8s linear infinite; }
@keyframes vfScrub { from{ width: 0 } to{ width: 100% } }

/* — Graphics: bento tiles shuffle, type lines sweep — */
.viz-graphics { padding: 14px; }
.vg-bento { position: absolute; inset: 14px; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.vg-bento b { border-radius: 8px; border: 1px solid var(--ink-12); background: linear-gradient(135deg, rgba(245,239,230,0.12), rgba(245,239,230,0.03)); animation: vgFloat 5s ease-in-out infinite; }
.vg-bento b:nth-child(1) { grid-row: 1 / span 2; background: linear-gradient(135deg, rgba(224,168,114,0.32), rgba(224,168,114,0.06)); }
.vg-bento b:nth-child(2){animation-delay:.3s} .vg-bento b:nth-child(3){animation-delay:.6s} .vg-bento b:nth-child(4){animation-delay:.9s}
@keyframes vgFloat { 0%,100%{transform:translateY(0); opacity:.7} 50%{transform:translateY(-5px); opacity:1} }
.vg-lines { position: absolute; left: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 5px; width: 36%; }
.vg-lines i { height: 5px; border-radius: 3px; background: var(--ink-40); transform-origin: left; animation: vgSweep 3.2s ease infinite; }
.vg-lines i:nth-child(2){ width: 70%; animation-delay:.25s } .vg-lines i:nth-child(3){ width: 50%; animation-delay:.5s }
@keyframes vgSweep { 0%,100%{transform:scaleX(.3); opacity:.4} 50%{transform:scaleX(1); opacity:1} }

/* Work CTA banner */
.workcta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(1.5rem,3vw,2.5rem); padding: clamp(1.6rem,4vw,2.6rem) clamp(1.6rem,3.5vw,2.6rem); border-radius: 18px; transition: transform .45s var(--ease); }
.workcta:hover { transform: translateY(-3px); }
.workcta__label { font-size: var(--step--1); color: var(--ink-40); }
.workcta__title { font-family: var(--serif); font-size: var(--step-2); line-height: 1; }
.workcta__title i { color: var(--accent); font-style: normal; display: inline-block; transition: transform .4s var(--ease); }
.workcta:hover .workcta__title i { transform: translate(6px,-6px); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: translateY(0); }
.no-js [data-reveal] { opacity: 1 !important; transform: none !important; }

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