/* ============================================================
   Suganthavasan J — Portfolio
   Built on the SJ Design System (dark-only, hairline, white CTA).
   This file holds only layout/composition; all color + type
   values come from the imported DS tokens.
   ============================================================ */

:root {
  --page-pad: 80px;
  --content-max: 1280px;
  --rhythm: 96px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-sans);
  font-feature-settings: var(--font-features);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.shell { width: 100%; max-width: var(--content-max); margin: 0 auto; padding-inline: var(--page-pad); }

.display {
  font-feature-settings: var(--font-features-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.eyebrow {
  font-size: 13px; font-weight: var(--weight-medium);
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--mute);
}

/* ---- accent dot used in section/category eyebrows ---- */
.dot { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.dot--yellow { background: var(--accent-yellow); }
.dot--red    { background: var(--accent-red); }
.dot--blue   { background: var(--accent-blue); }
.dot--green  { background: var(--accent-green); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 68px;
  display: flex; align-items: center;
  background: rgba(7, 8, 10, 0.62);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}
.nav__in { display: flex; align-items: center; gap: 40px; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__mark { width: 26px; height: 22px; color: var(--ink); }
.brand__mark svg { width: 100%; height: 100%; }
.brand__name { font-size: 16px; font-weight: var(--weight-medium); letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: 28px; margin-left: 8px; }
.nav__links a { color: var(--mute); font-size: 14px; font-weight: var(--weight-medium); transition: color .12s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }

/* hamburger button (hidden on desktop) */
.nav__burger { display: none; margin-left: 14px; width: 42px; height: 42px; flex: none;
  background: transparent; border: 1px solid var(--hairline); border-radius: 8px; cursor: pointer;
  align-items: center; justify-content: center; transition: border-color .12s ease, background .12s ease; }
.nav__burger:hover { border-color: var(--hairline-strong); background: var(--surface-elevated); }
.nav__burger-box { position: relative; width: 18px; height: 12px; display: block; }
.nav__burger-box span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .18s ease, opacity .14s ease, top .18s ease; }
.nav__burger-box span:nth-child(1) { top: 0; }
.nav__burger-box span:nth-child(2) { top: 5px; }
.nav__burger-box span:nth-child(3) { top: 10px; }
.nav__burger.is-active .nav__burger-box span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav__burger.is-active .nav__burger-box span:nth-child(2) { opacity: 0; }
.nav__burger.is-active .nav__burger-box span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* mobile drawer + backdrop (inert on desktop) */
.nav__backdrop { display: none; position: fixed; inset: 68px 0 0 0; z-index: 40;
  background: rgba(4,5,7,0.6); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.nav__drawer { display: none; position: fixed; top: 68px; right: 0; z-index: 45;
  width: min(86vw, 320px); height: calc(100vh - 68px); height: calc(100dvh - 68px);
  flex-direction: column; gap: 6px; padding: 22px 22px 28px;
  background: var(--surface); border-left: 1px solid var(--hairline);
  transform: translateX(100%); transition: transform .22s cubic-bezier(.4,0,.2,1); overflow-y: auto; }
.nav__drawer-links { display: flex; flex-direction: column; }
.nav__drawer-links a { color: var(--body); font-size: 16px; font-weight: var(--weight-medium);
  padding: 14px 6px; border-bottom: 1px solid var(--hairline); transition: color .12s ease; }
.nav__drawer-links a:hover { color: var(--ink); }
.nav__drawer-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.nav__drawer-actions .btn { width: 100%; justify-content: center; padding-block: 13px; }
.nav.is-open .nav__backdrop { opacity: 1; pointer-events: auto; }
.nav.is-open .nav__drawer { transform: translateX(0); }

/* Send-Hi switch (replaces figma emoji toggle, per SJ no-emoji rule) */
.sayhi { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: var(--weight-medium); color: var(--mute); cursor: pointer; user-select: none; }
.switch { position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--surface-elevated); border: 1px solid var(--hairline); transition: background .14s ease, border-color .14s ease; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--mute); transition: transform .14s ease, background .14s ease; }
.sayhi[aria-pressed="true"] .switch { background: var(--surface-card); border-color: var(--hairline-strong); }
.sayhi[aria-pressed="true"] .switch::after { transform: translateX(18px); background: var(--ink); }
.sayhi[aria-pressed="true"] { color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: var(--weight-medium); letter-spacing: 0.2px; line-height: 1; cursor: pointer; border: 1px solid transparent; transition: background .12s ease, border-color .12s ease, color .12s ease, transform .12s ease; white-space: nowrap; }

/* primary CTA */
.btn--primary { background: var(--primary); color: var(--on-primary); padding: 12px 22px; border-radius: 2px; }
.btn--primary:hover { background: var(--primary-pressed); }
.btn--primary:active { transform: translateY(1px); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--hairline-strong); padding: 12px 22px; }
.btn--outline:hover { background: var(--surface-elevated); border-color: var(--on-dark-mute); }
.btn .arr { width: 13px; height: 13px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero__pin { position: relative; min-height: 100vh; min-height: 100svh; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: center; padding: 150px 0 96px; }
@media (prefers-reduced-motion: reduce) {
  .hero__rev { transform: none !important; }
}
.hero__stripe {
  position: absolute; top: 0; left: 0; right: 0; height: 420px;
  background: var(--hero-stripe);
  opacity: 0.5;
  filter: blur(8px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  pointer-events: none;
}
.hero__stripe::before, .hero__stripe::after {
  content: ""; position: absolute; inset: -40% -10%;
  background: linear-gradient(115deg, transparent 38%, rgba(7,8,10,0.0) 40%, rgba(7,8,10,0.55) 41%, transparent 43%);
}
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,10,0.30) 0%, rgba(7,8,10,0.65) 60%, var(--canvas) 100%); pointer-events: none; }
.hero__grid { position: absolute; top: 0; right: 6%; width: 360px; height: 100%; border-inline: 1px dashed rgba(255,255,255,0.10); pointer-events: none; }
.hero__grid::after { content: ""; position: absolute; left: -50vw; right: -50vw; bottom: 0; border-top: 1px dashed rgba(255,255,255,0.10); }

.hero__in { position: relative; text-align: center; }
.hero__name { margin-bottom: 22px; }
.hero__head { font-size: 56px; line-height: 1.18; font-weight: var(--weight-medium); color: var(--ink); max-width: 22ch; margin-inline: auto; }
.hero__head .ln { display: block; }
/* scroll-linked word reveal: words rest dim, fill to white as you scroll */
.hero__head .w:not(.grad-sunset) { color: var(--stone); transition: color .4s ease; }
.hero__head .w:not(.grad-sunset).is-lit { color: var(--ink); }
.grad-sunset.w { opacity: 0.28; transition: opacity .4s ease; }
.grad-sunset.w.is-lit { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero__head .w:not(.grad-sunset) { color: var(--ink); }
  .grad-sunset.w { opacity: 1; }
}
.hero__at { display: inline-flex; align-items: center; gap: 14px; vertical-align: middle; }
.hero__co { height: 54px; width: auto; display: block; }

/* ---- Figma-style selection frame + handles ---- */
.hero__in { --fx: clamp(18px, 6vw, 96px); }
.hero__frame { position: absolute; inset: -70px var(--fx) -52px; border: 1px solid rgba(255,255,255,0.18); pointer-events: none; z-index: 0;
  opacity: 0; transform: scale(0.975); transform-origin: center;
  transition: opacity .5s ease, transform .5s cubic-bezier(.16,.84,.34,1); transition-delay: 1.05s; }
.hero.is-in .hero__frame { opacity: 1; transform: scale(1); }
.hero__handle { position: absolute; width: 11px; height: 11px; background: #F6A02A; border: 1.5px solid var(--canvas); border-radius: 2px; }
.hero__handle--tl { top: -6px; left: -6px; }
.hero__handle--tr { top: -6px; right: -6px; }
.hero__handle--bl { bottom: -6px; left: -6px; }
.hero__handle--br { bottom: -6px; right: -6px; }
@media (prefers-reduced-motion: reduce) {
  .hero__frame { opacity: 1; transform: none; transition: none; }
}

/* ---- tool tags (full pill SVGs from Figma) ---- */
.htag { position: absolute; z-index: 3; --tag-w: 252px; will-change: transform; }
.htag img { display: block; width: var(--tag-w); height: auto; filter: drop-shadow(0 10px 26px rgba(0,0,0,0.45)); }

/* Play — top-right, pulled further left so it shares Edit's column (irregular placement) */
.htag--play { top: -86px; right: calc(var(--fx) + 96px); transform: translate(var(--dx,0px), var(--dy,0px)); }
/* Learn — lower-left (pill bottom, cursor up-right) */
.htag--learn { left: calc(var(--fx) - 38px); bottom: 104px; --tag-w: 240px; transform: translate(var(--dx,0px), var(--dy,0px)); }
/* Edit — bottom-right (pill bottom, cursor up-left) */
.htag--edit { bottom: -86px; right: calc(var(--fx) + 24px); transform: translate(var(--dx,0px), var(--dy,0px)); }
/* idle float so the tags feel alive */
.htag img { animation: tagFloat 5s ease-in-out infinite; }
.htag--learn img { animation-duration: 5.6s; animation-delay: .4s; }
.htag--edit img { animation-duration: 6.2s; animation-delay: .8s; }
@keyframes tagFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(-.6deg); } }
@media (prefers-reduced-motion: reduce) { .htag img { animation: none; } }

/* hover: 3D tilt toward the cursor + lift (pauses idle float) */
.htag { cursor: default; perspective: 700px; }
.htag img { transition: filter .18s ease; transform-style: preserve-3d; }
.htag:hover img { animation: none;
  transform: rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(22px) scale(1.02);
  filter: drop-shadow(0 18px 32px rgba(0,0,0,0.55)) brightness(1.08);
  transition: transform .12s ease-out, filter .22s ease; }

/* tags hidden until armed, fade/scale in after the headline */
.htag { opacity: 0; transform-origin: center; }
.hero.is-in .htag { animation: htagPop .55s cubic-bezier(.2,.9,.3,1.2) forwards; }
.hero.is-in .htag--play { animation-delay: 1.74s; }
.hero.is-in .htag--learn { animation-delay: 1.84s; }
.hero.is-in .htag--edit { animation-delay: 1.94s; }
@keyframes htagPop { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero .htag { opacity: 1; animation: none; }
}

/* web vs tablet pill art: show the right one per breakpoint */
.htag .htag-img--tab { display: none; }

/* tablet & mobile: 2 tags (Play + Learn) using the compact tab pills */
@media (max-width: 860px) {
  .hero__in { --fx: 22px; }
  .hero__frame { inset: -54px var(--fx) -40px; }
  .htag .htag-img--web { display: none; }
  .htag .htag-img--tab { display: block; }
  .htag--edit { display: none; }
  .htag--play { top: -64px; right: calc(var(--fx) + 10px); --tag-w: 210px; }
  /* Learn moves from the left edge down to the bottom-left so it stays inside frame */
  .htag--learn { left: calc(var(--fx) - 10px); bottom: -64px; top: auto; --tag-w: 200px; }
}
@media (max-width: 560px) {
  .hero__in { --fx: 14px; }
  .hero__frame { inset: -44px var(--fx) -32px; }
  .htag--play { top: -56px; right: var(--fx); --tag-w: 184px; }
  .htag--learn { left: calc(var(--fx) - 6px); bottom: -56px; --tag-w: 176px; }
}

/* hero lines: entrance rise/fade + scroll parallax (drift up & fade out) */
.hero__rev { opacity: 1; transform: translateY(var(--py, 0)); will-change: transform, opacity; }
.hero.is-in .hero__rev, .hero:not(.is-armed) .hero__rev { opacity: var(--po, 1); }
.hero.is-armed .hero__rev { opacity: 0; transform: translateY(28px); transition: none; }
.hero.is-in .hero__rev { transition: opacity .8s cubic-bezier(.16,.84,.34,1), transform .8s cubic-bezier(.16,.84,.34,1); }
.hero.is-in .hero__rev--1 { transition-delay: .05s; }
.hero.is-in .hero__rev--2 { transition-delay: .16s; }
.hero.is-in .hero__rev--3 { transition-delay: .27s; }
.hero.is-in .hero__rev--4 { transition-delay: .38s; }
.hero.is-in .hero__rev--5 { transition-delay: .50s; }
/* once the entrance has played, drop the transition so scroll parallax tracks instantly */
.hero.is-settled .hero__rev { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .hero.is-armed .hero__rev, .hero.is-in .hero__rev { opacity: 1; transform: none; transition: none; }
}

/* section reveal: fade + rise as it enters the viewport */
[data-reveal] { opacity: 0; transform: translateY(34px);
  transition: opacity .7s cubic-bezier(.16,.84,.34,1), transform .7s cubic-bezier(.16,.84,.34,1); will-change: opacity, transform; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
.chips { display: inline-flex; align-items: center; }
.chip { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.85); }
.chip + .chip { margin-left: -12px; }
.chip--e9 { background: #e10000; }
.chip--cab9 { background: linear-gradient(180deg, #232323, #0c0c0c); }
.chip--sj { background: linear-gradient(180deg, #1c1c1c, #0a0a0a); }
.chip--sj img { width: 34px; height: 34px; display: block; }
.chip svg { color: #fff; }
.hero__sub { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--on-dark-mute); font-size: 22px; font-weight: var(--weight-medium); }
.hero__sub em { color: var(--ink); font-style: italic; }

/* ============================================================
   TRUSTED BRANDS
   ============================================================ */
.brands { background: var(--canvas); border-block: 1px solid var(--hairline); padding-block: 56px; }
.brands__h { font-size: 34px; font-weight: var(--weight-medium); color: var(--ink); margin-bottom: 30px; }
.brands__strip { position: relative; overflow: hidden; border: 1px solid var(--hairline); }
.brands__fade { position: absolute; top: 0; bottom: 0; width: 140px; z-index: 3; pointer-events: none; }
.brands__fade--l { left: 0; background: linear-gradient(to right, var(--canvas), transparent); }
.brands__fade--r { right: 0; background: linear-gradient(to left, var(--canvas), transparent); }
.brands__track { display: flex; align-items: stretch; width: max-content; will-change: transform; }
.brand-item { flex: 0 0 200px; height: 104px; border-right: 1px solid var(--hairline); display: flex; align-items: center; justify-content: center; padding: 0 26px; transition: background .16s ease; }
.brand-item:last-child { border-right: 0; }
.brand-item:hover { background: rgba(255,255,255,0.02); }
.brand-logo { max-width: 100%; width: auto; object-fit: contain; }
.brand-logo--cequens { filter: brightness(1.5); }
.brand-logo { max-width: 100%; width: auto; object-fit: contain; opacity: 0.6; filter: grayscale(1); }
.brand-logo--cequens { filter: grayscale(1) brightness(1.5); }

/* ============================================================
   FEATURED WORK
   ============================================================ */
.work { padding-block: var(--rhythm); }
.work__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.work__head h2 { font-size: 40px; font-weight: var(--weight-medium); color: var(--ink); }

/* tabs (PillTabGroup) */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--hairline); margin-bottom: 28px; }
.tab { appearance: none; background: transparent; border: 0; border-right: 1px solid var(--hairline); color: var(--mute); font-family: inherit; font-size: 15px; font-weight: var(--weight-medium); padding: 18px 14px; cursor: pointer; transition: background .12s ease, color .12s ease; text-align: center; }
.tab:last-child { border-right: 0; }
.tab:hover { color: var(--ink); background: var(--surface); }
.tab.is-active { color: var(--ink); background: var(--surface-card); }
.tab .swatch { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 9px; vertical-align: middle; }

/* capability cards */
.cards { display: flex; flex-direction: column; gap: 18px; }
.cap {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--hairline);
  background: var(--surface);
  overflow: hidden;
  scroll-margin-top: 96px;
}
.cap.rev .cap__media { order: -1; }
.cap__body { display: flex; flex-direction: column; }
.cap__tag { display: flex; align-items: center; gap: 12px; padding: 20px 48px; border-bottom: 1px dashed var(--hairline-strong); }
.cap__tag span { font-size: 19px; font-weight: var(--weight-medium); color: var(--ink); }
.cap__inner { padding: 44px 48px; display: flex; flex-direction: column; gap: 30px; flex: 1; }
.cap h3 { font-size: 42px; line-height: 1.18; font-weight: var(--weight-medium); color: var(--ink); letter-spacing: -0.01em; max-width: 14ch; }
.cap__desc { font-size: 16px; line-height: 1.55; color: var(--on-dark-mute); max-width: 46ch; }
.cap__link { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-style: italic; font-weight: var(--weight-medium); text-decoration: underline; text-underline-offset: 3px; width: fit-content; transition: gap .14s ease; }
.cap__link .lk { width: 18px; height: 14px; }
.cap__link:hover { gap: 16px; }
.cap__list { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.cap__list li { display: flex; align-items: center; gap: 14px; font-size: 17px; color: var(--ink); }
.cap__list .sq { width: 6px; height: 6px; flex: none; }

.cap__media { position: relative; min-height: 520px; overflow: hidden; background: var(--surface-card); }
.cap__media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.cap__glow { position: absolute; inset: 0; pointer-events: none; }
.cap__glow::before { content: ""; position: absolute; width: 52%; aspect-ratio: 1; left: 50%; top: -16%; transform: translateX(-50%); border-radius: 50%; filter: blur(40px); opacity: 0.12; }
.cap--yellow .cap__glow::before { background: var(--accent-yellow); }
.cap--red    .cap__glow::before { background: var(--accent-red); }
.cap--blue   .cap__glow::before { background: var(--accent-blue); }
.cap--green  .cap__glow::before { background: var(--accent-green); }
.cap--yellow .cap__tag .dot { background: var(--accent-yellow); }
.cap__media .ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.16); }
.cap__media .ring.r1 { inset: 12% 18% auto 18%; aspect-ratio: 1; }
.cap__media .ring.r2 { inset: auto -10% -28% -10%; aspect-ratio: 1; }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding-block: var(--rhythm); border-top: 1px solid var(--hairline); }
.cta__box { max-width: 880px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.cta h2 { font-size: 46px; line-height: 1.22; font-weight: var(--weight-medium); color: var(--ink); }
.cta__form { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--hairline-strong); background: var(--surface); }
.cta__field { flex: 1; display: flex; align-items: center; gap: 14px; padding-left: 14px; }
.cta__field .ic { width: 22px; height: 22px; color: var(--accent-red); flex: none; }
.cta__form input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--ink); font-family: inherit; font-size: 18px; font-weight: var(--weight-medium); }
.cta__form input::placeholder { color: var(--ash); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--surface); border-top: 1px solid var(--hairline); padding-block: 64px 40px; }
.foot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot__brand { display: flex; flex-direction: column; gap: 18px; max-width: 260px; }
.foot__brand .brand__mark { width: 30px; height: 26px; }
.foot__brand .brand__name { font-size: 18px; }
.foot__tag { font-size: 14px; line-height: 1.6; color: var(--mute); }
.foot__col h4 { font-size: 13px; font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ash); margin-bottom: 22px; }
.foot__col ul { display: flex; flex-direction: column; gap: 14px; }
.foot__col a { color: var(--mute); font-size: 15px; transition: color .12s ease; }
.foot__col a:hover { color: var(--ink); }
.foot__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.foot__bar span, .foot__bar a { font-size: 14px; color: var(--mute); }
.foot__legal { display: flex; gap: 40px; }
.foot__legal a:hover { color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  :root { --page-pad: 40px; }
  .hero__head { font-size: 44px; }
  .cap { grid-template-columns: 1fr; }
  .cap.rev .cap__media { order: 0; }
  .cap__media { min-height: 360px; }
  .cap__list { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr 1fr; }
}
/* collapse nav into hamburger */
@media (max-width: 900px) {
  .nav__links, .nav__right { display: none; }
  .nav__burger { display: inline-flex; margin-left: auto; }
  .nav__backdrop, .nav__drawer { display: flex; }
}
@media (max-width: 720px) {
  :root { --page-pad: 22px; }
  .hero__head { font-size: 34px; }
  .hero__sub { font-size: 18px; }
  .brands__strip { gap: 12px; }
  .brand-item { flex-basis: 150px; height: 82px; padding: 0 16px; }
  .brands__fade { width: 56px; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .tab:nth-child(2n) { border-right: 0; }
  .work__head h2, .cta h2 { font-size: 30px; }
  .cap h3 { font-size: 30px; }
  .cap__inner, .cap__tag { padding-inline: 26px; }
  .foot__top { grid-template-columns: 1fr; }
  .sayhi span.lbl { display: none; }
}

/* ============================================================
   ADDITIONS — logo, whatsapp CTA, headline highlight, brand glow
   ============================================================ */

/* ---- Logo: mark by default, expands to wordmark on hover ---- */
.brand { gap: 0; }
.logo { display: inline-flex; align-items: center; height: 30px; }
.logo__mark { height: 30px; width: auto; display: block; }
.logo__word {
  height: 19px; width: auto; display: block;
  max-width: 0; opacity: 0; margin-left: 0; overflow: hidden;
  transition: max-width .4s cubic-bezier(.2,.7,.2,1), opacity .3s ease, margin-left .4s cubic-bezier(.2,.7,.2,1);
}
.brand:hover .logo__word, .brand:focus-visible .logo__word { max-width: 260px; opacity: 1; margin-left: 12px; }
.logo__full { height: 32px; width: auto; display: block; }
.nav .logo__full { height: 30px; }
.nav-logo { height: 34px; width: auto; display: block; }
.brand--foot { display: inline-flex; }
.brand--foot .logo__full { height: 34px; }

/* ---- Sunset-gradient role text ---- */
.grad-sunset {
  background: linear-gradient(96deg, #ffb24d 0%, #ff7e5f 42%, #ff5f6d 70%, #d76cff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-right: 0.05em;
}

/* ---- Capability title icon tiles ---- */
.cap__ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.cap__ic svg { width: 19px; height: 19px; }
.cap__ic--yellow { background: var(--accent-yellow-soft); }
.cap__ic--red { background: var(--accent-red-soft); }
.cap__ic--blue { background: var(--accent-blue-soft); }
.cap__ic--green { background: var(--accent-green-soft); }
.cap__tag .cap__ic--yellow { color: var(--accent-yellow); }
.cap__tag .cap__ic--red { color: var(--accent-red); }
.cap__tag .cap__ic--blue { color: var(--accent-blue); }
.cap__tag .cap__ic--green { color: var(--accent-green); }

/* ---- WhatsApp / ghost CTA (replaces the Say-Hi toggle) ---- */
.btn--ghost { background: transparent; color: var(--mute); border-color: transparent; padding: 12px 14px; }
.btn--ghost:hover { color: var(--ink); background: var(--surface-elevated); }
.wa { gap: 9px; }
.wa__ic { width: 18px; height: 18px; color: #25d366; flex: none; }

/* ---- Hero headline highlight + single-line role ---- */
.hl {
  background-image: linear-gradient(transparent 60%, rgba(255, 197, 51, 0.34) 0);
  padding: 0 0.06em; border-radius: 2px;
}
.ln--role { white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 12px; }
@media (max-width: 560px) { .ln--role { white-space: normal; } }

/* ---- Trusted Brands: one-by-one auto-glow (JS-driven, 5s each) + hover ---- */
.brand-logo { transition: filter .6s ease, transform .6s ease; }
.brand-item.is-glowing .brand-logo { filter: brightness(1.15); transform: translateY(-2px); }
.brand-item.is-glowing .brand-logo--cequens { filter: brightness(1.6); }
.brand-item:hover .brand-logo { filter: brightness(1.15); transform: translateY(-2px); }
.brand-item:hover .brand-logo--cequens { filter: brightness(1.6); }

/* ============================================================
   FEATURED WORK — Raycast-style horizontal rail + glass toggle
   ============================================================ */
.work__head2 { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 34px; }
.work__intro h2 { font-size: 40px; font-weight: var(--weight-medium); color: var(--ink); letter-spacing: -0.01em; }
.work__sub { margin-top: 12px; font-size: 19px; line-height: 1.5; font-weight: var(--weight-medium); color: var(--on-dark-mute); max-width: 46ch; }

/* ============================================================
   ACHIEVEMENTS BENTO — ported 1:1 from Figma (colors, inset
   shadows, gradients, PNGs preserved)
   ============================================================ */
.ach-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }
.ach-col { display: flex; flex-direction: column; gap: 16px; flex: none; }

.ach-card { position: relative; width: 100%; overflow: hidden; border-radius: 12px;
  background: #000; box-shadow: inset 0 2px 40.7px rgba(255,255,255,0.15); }

.ach-label { position: absolute; left: 15px; font-size: 16px; font-weight: var(--weight-medium); color: var(--ink); white-space: nowrap; z-index: 2; }
.ach-num { position: absolute; left: 11px; top: 120px; font-size: 67.81px; font-weight: 700; line-height: 1; color: var(--ink);
  font-feature-settings: "ss03","ss02"; z-index: 2; }
.ach-plus { font-size: 0.72em; vertical-align: super; }

.ach-fade { position: absolute; left: 0; right: 0; height: 81px; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, #000 0%, transparent 100%); }
.ach-fade--top { top: 0; background: linear-gradient(180deg, #000 0%, transparent 100%); height: 73px; }
.ach-fade--bot { bottom: 0; }

/* Project Completed — graph illustration */
.ach-graph { position: absolute; left: 0; top: 14px; width: 236px; height: 90px; z-index: 0; animation: fiGlow 2.4s ease-in-out infinite; }

/* Video Editing / Motion Graphics screenshots */
.ve-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.ach-card--motion { background: linear-gradient(195deg, #ff383c -18.59%, #480103 118.92%); box-shadow: inset 0 22px 25.7px -15px rgba(240,169,240,0.56); }
.mo-shot { position: absolute; left: 28px; top: 25px; width: 304.12px; height: 233px; border-radius: 11.62px; z-index: 0; object-fit: cover; }

/* Fade the raster bento visuals in once loaded, instead of popping in */
.ve-shot, .mo-shot, .bbub-composed, .gd-illustration { opacity: 0; transition: opacity .55s ease; }
.ve-shot.is-loaded, .mo-shot.is-loaded, .bbub-composed.is-loaded, .gd-illustration.is-loaded { opacity: 1; }

/* Fast Iteration */
.fi-bolt { position: absolute; right: 6px; top: 6px; width: 108px; height: 149px; opacity: 0.92;
  animation: fiGlow 2.4s ease-in-out infinite; }
@keyframes fiGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255,56,60,0.55)) drop-shadow(0 0 22px rgba(255,56,60,0.35)); opacity: 0.94; }
  50% { filter: drop-shadow(0 0 34px rgba(255,56,60,1)) drop-shadow(0 0 60px rgba(255,56,60,0.75)); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .fi-bolt { animation: none; } }

/* Awards — laurel wings illustration; one award shown at a time, cross-faded */
.ach-card--awards { display: flex; align-items: center; justify-content: center; }
.award-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; animation: fiGlow 2.4s ease-in-out infinite; }
.award { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; z-index: 2;
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) translateY(6px); opacity: 0;
  transition: opacity .55s ease, transform .55s ease; pointer-events: none; }
.award.is-active { opacity: 1; transform: translate(-50%, -50%) translateY(0); }
.award b { font-family: "TASA Orbiter Display", Inter, sans-serif; font-size: 20px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.award span { font-size: 8px; color: rgba(255,255,255,0.4); }

/* Brands & Startups — single composed graphic (avatars + glow + click-cue arrows baked in) */
.bbub-composed { position: absolute; left: 15px; top: 40px; width: 206px; height: auto; z-index: 2; }

/* Graphic Design — illustration */
.gd-illustration { position: absolute; left: 0; top: 0; width: 236px; height: auto; z-index: 0; }

/* UI/UX Design — wireframe by default, full-color mock revealed on hover */
.uiux-shot { position: absolute; inset: 0; z-index: 1; opacity: 0;
  background: url(assets/bento/uiux-wireframe.png) center / 100% 100% no-repeat;
  transition: opacity 0.55s ease; }
.uiux-shot.is-loaded { opacity: 1; }
.uiux-shot--hover { background-image: url(assets/bento/uiux-vivid.webp); opacity: 0; z-index: 1; }
.ach-card--uiux:hover .uiux-shot--hover, .ach-card--uiux:focus-within .uiux-shot--hover { opacity: 1; }

/* Testimonial */
.ach-card--quote { margin: 0; display: flex; flex-direction: column; padding: 24px 18px 34px; }
.q-mark { position: absolute; opacity: 0.1; }
.q-mark--tl { left: 0; top: 0; width: 129px; height: 92px; }
.q-mark--br { right: 0; bottom: 0; width: 70px; height: 50px; }
.q-track { position: relative; z-index: 1; flex: 1; }
.q-slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1); }
.q-slide.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.q-slide.is-leaving { transform: translateY(-10px); }
.ach-card--quote blockquote { position: relative; z-index: 1; margin: 0; font-size: 14px; font-weight: 600;
  line-height: 1.55; color: rgba(255,255,255,0.8); }
.ach-card--quote blockquote b { font-weight: 600; color: #ff5b5e;
  text-shadow: 0 0 10px rgba(255,91,94,0.5), 0 0 22px rgba(255,91,94,0.28); }
.ach-card--quote figcaption { position: relative; z-index: 1; margin-top: 24px; display: flex; flex-direction: column; gap: 1px; }
.ach-card--quote figcaption b { font-size: 14px; font-weight: var(--weight-medium); color: var(--ink); opacity: 0.8; }
.ach-card--quote figcaption span { font-size: 10px; font-weight: var(--weight-medium); color: var(--ink); opacity: 0.5; }

.q-dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.q-dot { width: 6px; height: 6px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,0.2);
  cursor: pointer; transition: background 0.3s ease, transform 0.3s ease; }
.q-dot.is-active { background: #ff5b5e; transform: scale(1.3); box-shadow: 0 0 8px rgba(255,91,94,0.6); }

@media (max-width: 900px) {
  .ach-grid { padding-inline: var(--page-pad); }
}

/* glass segmented toggle */
.seg { position: relative; display: inline-flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--hairline);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.seg__pill { position: absolute; top: 5px; left: 0; height: calc(100% - 10px); width: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.95); z-index: 0;
  transition: transform .3s cubic-bezier(.4,.7,.2,1), width .3s cubic-bezier(.4,.7,.2,1); }
.seg__tab { position: relative; z-index: 1; appearance: none; border: 0; background: transparent;
  font-family: inherit; font-size: 14px; font-weight: var(--weight-medium); color: var(--mute);
  padding: 9px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .2s ease; }
.seg__tab:hover { color: var(--ink); }
.seg__tab.is-active { color: #0a0a0a; }

/* full-bleed scroll rail */
.rail-wrap { position: relative; width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.rail-wrap::before, .rail-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(40px, 9vw, 150px); z-index: 3; pointer-events: none; }
.rail-wrap::before { left: 0; background: linear-gradient(90deg, var(--canvas) 18%, transparent); }
.rail-wrap::after { right: 0; background: linear-gradient(270deg, var(--canvas) 18%, transparent); }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: max(var(--page-pad), calc((100vw - var(--content-max)) / 2 + var(--page-pad)));
  scroll-padding-inline-start: max(var(--page-pad), calc((100vw - var(--content-max)) / 2 + var(--page-pad)));
  padding-block: 6px 12px; -ms-overflow-style: none; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }

.wcard { scroll-snap-align: start; flex: 0 0 auto; width: 356px; height: 522px;
  border: 1px solid var(--hairline); border-radius: 0; overflow: hidden;
  display: flex; flex-direction: column; padding: 24px 24px 0; position: relative;
  text-decoration: none; background: #0c0c0c; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.wcard:hover { transform: translateY(-4px); }
.wcard--yellow:hover { border-color: color-mix(in oklab, var(--accent-yellow) 55%, var(--hairline)); box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent-yellow) 30%, transparent), 0 10px 38px color-mix(in oklab, var(--accent-yellow) 20%, transparent); }
.wcard--red:hover { border-color: color-mix(in oklab, var(--accent-red) 55%, var(--hairline)); box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent-red) 30%, transparent), 0 10px 38px color-mix(in oklab, var(--accent-red) 20%, transparent); }
.wcard--blue:hover { border-color: color-mix(in oklab, var(--accent-blue) 55%, var(--hairline)); box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent-blue) 30%, transparent), 0 10px 38px color-mix(in oklab, var(--accent-blue) 20%, transparent); }
.wcard--green:hover { border-color: color-mix(in oklab, var(--accent-green) 55%, var(--hairline)); box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent-green) 30%, transparent), 0 10px 38px color-mix(in oklab, var(--accent-green) 20%, transparent); }
.wcard--more:hover { border-color: var(--hairline-strong); box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 10px 38px rgba(255,255,255,0.06); }
.wcard:focus-visible { outline: 2px solid var(--hairline-strong); outline-offset: 2px; }
.wcard--yellow { background: linear-gradient(168deg, color-mix(in oklab, var(--accent-yellow) 16%, #0b0b0b), #0a0a0a 62%); }
.wcard--red    { background: linear-gradient(168deg, color-mix(in oklab, var(--accent-red) 18%, #0b0b0b), #0a0a0a 62%); }
.wcard--blue   { background: linear-gradient(168deg, color-mix(in oklab, var(--accent-blue) 18%, #0b0b0b), #0a0a0a 62%); }
.wcard--green  { background: linear-gradient(168deg, color-mix(in oklab, var(--accent-green) 16%, #0b0b0b), #0a0a0a 62%); }

.wcard__head { display: flex; align-items: center; gap: 12px; }
.wcard__head .cap__ic { width: 34px; height: 34px; }
.wcard__ic { width: 42px; height: 42px; flex: none; display: block; border-radius: 10px; }

/* full-bleed graphic cards */
.wcard--img { padding: 0; background: #000; }
.wcard__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.wcard__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,6,7,0.72) 0%, rgba(6,6,7,0.22) 26%, transparent 48%); }
.wcard__overlay { position: relative; z-index: 2; padding: 24px; }
.wcard--img .wcard__desc { color: rgba(255,255,255,0.78); }
.wcard__title { font-size: 18px; font-weight: var(--weight-medium); color: var(--ink); white-space: nowrap; }
.wcard__go { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .15s ease; }
.wcard:hover .wcard__go { background: rgba(255, 255, 255, 0.16); }
.wcard__go svg { width: 13px; height: 13px; }
.wcard__desc { margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--on-dark-mute); max-width: 30ch; }

.wcard__media { position: relative; margin: 20px -24px 0; flex: 1; overflow: hidden; background: rgba(255,255,255,0.015); }
.wcard__media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.wcard__art { position: absolute; inset: 0; }
.wcard__art svg { width: 100%; height: 100%; display: block; }
.wcard__fade { position: absolute; inset: 0 0 auto 0; height: 56px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,8,8,0.55), transparent); }

/* "browse all" terminal card */
.wcard--more { background: radial-gradient(130% 80% at 50% 0%, rgba(255,255,255,0.05), #0a0a0a 60%);
  justify-content: flex-end; padding: 28px; }
.wcard__moreInner { display: flex; flex-direction: column; gap: 8px; }
.wcard__moreEye { font-size: 12px; font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ash); }
.wcard__moreTitle { font-size: 26px; font-weight: var(--weight-medium); color: var(--ink); line-height: 1.2; }
.wcard__moreLink { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; color: var(--mute); font-size: 15px; font-weight: var(--weight-medium); transition: gap .15s ease, color .15s ease; }
.wcard__moreLink svg { width: 14px; height: 14px; }
.wcard--more:hover .wcard__moreLink { color: var(--ink); gap: 12px; }

@media (max-width: 720px) {
  .work__head2 { margin-bottom: 26px; }
  .work__intro h2 { font-size: 30px; }
  .seg__tab { padding: 8px 14px; font-size: 13px; }
  .wcard { width: 78vw; max-width: 340px; height: 470px; }
}

/* ============================================================
   EXPERIENCE — pinned timeline scrubber + live details panel
   ============================================================ */
.exph { background: var(--canvas); border-top: 1px solid var(--hairline); position: relative; }
.exph[data-exph-section] { height: 560vh; }
.exph__sticky { position: sticky; top: 0; height: 100vh; min-height: 680px;
  display: flex; flex-direction: column; justify-content: center; gap: 26px; padding-block: 46px; overflow: hidden; }
.exph__head { max-width: 640px; }
.exph__head .eyebrow { margin-bottom: 14px; }
.exph__head h2 { font-size: 40px; line-height: 1.08; font-weight: var(--weight-medium); color: var(--ink); letter-spacing: -0.015em; }
.exph__lead { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--mute); }

.exph__stage { position: relative; width: 100%; }
.exph__split { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: stretch; }

/* ---- LEFT: vertical date scrubber ---- */
.exph__timeline { position: relative; height: 440px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent); }
.exph__ruler { position: absolute; left: 172px; top: 0; bottom: 0; width: 16px;
  background: repeating-linear-gradient(180deg, var(--hairline-strong) 0 1px, transparent 1px 13px); opacity: 0.45; }
.exph__spine { position: absolute; left: 150px; top: 0; height: 100%; width: 60px; overflow: visible; }
.exph__spine-path { fill: none; stroke: url(#spineG); stroke-width: 2.5; vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px var(--accent-green)) drop-shadow(0 0 12px color-mix(in oklab, var(--accent-green) 65%, transparent)); }
.exph__dates { position: absolute; left: 0; top: 0; width: 120px; list-style: none; margin: 0; padding: 0; will-change: transform; }
.exph__date { height: 56px; display: flex; align-items: center; justify-content: flex-end; }
.exph__date-pill { flex: none; font-size: 12.5px; font-weight: var(--weight-medium); letter-spacing: 0.02em; color: var(--ash);
  padding: 7px 14px; border: 1px solid transparent; border-radius: 999px; background: transparent; white-space: nowrap;
  transition: color .3s ease, border-color .3s ease, background .3s ease, transform .3s ease; }
.exph__date.is-active .exph__date-pill { color: var(--accent-green); border-color: color-mix(in oklab, var(--accent-green) 55%, transparent);
  background: color-mix(in oklab, var(--accent-green) 9%, var(--surface-card)); font-size: 15px; padding: 9px 18px; transform: scale(1.04);
  text-shadow: 0 0 10px color-mix(in oklab, var(--accent-green) 60%, transparent);
  box-shadow: 0 0 20px -2px color-mix(in oklab, var(--accent-green) 35%, transparent), 0 0 0 1px color-mix(in oklab, var(--accent-green) 25%, transparent); }
.exph__cursor { position: absolute; left: 182px; top: 50%; width: 58px; height: 58px; transform: translateY(-50%); z-index: 2;
  border-radius: 50%; background: var(--canvas);
  border: 2px solid color-mix(in oklab, var(--accent-green) 80%, transparent);
  display: grid; place-items: center; color: var(--accent-green);
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent-green) 10%, transparent), 0 0 28px color-mix(in oklab, var(--accent-green) 55%, transparent), inset 0 0 16px color-mix(in oklab, var(--accent-green) 22%, transparent); }
.exph__cursor svg { width: 22px; height: 22px; transform: rotate(90deg); }

/* ---- RIGHT: details of work ---- */
.exph__sticky > .shell, .exph__sticky > .exph__stage { position: relative; z-index: 1; }
.exph__aurora { position: absolute; left: -6%; right: -6%; bottom: -12%; height: 74%; z-index: 0; pointer-events: none;
  background: radial-gradient(52% 82% at 66% 100%, var(--glow-c, var(--accent-green)), transparent 72%);
  filter: blur(54px); transition: background .6s ease;
  animation: exphAurora 12s ease-in-out infinite alternate; }
.exph__aurora::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(44% 70% at 38% 100%, var(--glow-c, var(--accent-green)), transparent 70%);
  filter: blur(42px); mix-blend-mode: screen;
  animation: exphAurora2 16s ease-in-out infinite alternate; }
@keyframes exphAurora { 0% { transform: translateX(-8%) translateY(3%) scale(1); opacity: 0.42; } 50% { opacity: 0.62; } 100% { transform: translateX(10%) translateY(-3%) scale(1.18); opacity: 0.5; } }
@keyframes exphAurora2 { 0% { transform: translateX(13%) scale(1.12); opacity: 0.6; } 50% { opacity: 0.88; } 100% { transform: translateX(-10%) scale(1); opacity: 0.72; } }
@media (prefers-reduced-motion: reduce) { .exph__aurora, .exph__aurora::before { animation: none; } }

.exph__details { position: relative; min-height: 440px; }
.ed { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s ease, transform .4s ease; }
.ed.is-active { opacity: 1; transform: none; pointer-events: auto; }
.ed__kind { display: block; font-size: 13px; font-weight: var(--weight-medium); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ash); margin-bottom: 22px; }
.ed__date { display: block; font-size: 15px; font-weight: var(--weight-medium); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ed-accent, var(--accent-green)); margin-bottom: 20px; }
.ed__co { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.16; padding-bottom: 0.08em; font-weight: var(--weight-semibold); letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--ink) 18%, var(--mute) 72%, color-mix(in oklab, var(--mute) 45%, transparent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 34px color-mix(in oklab, var(--ink) 20%, transparent)); }
.ed__role { display: block; margin-top: 18px; font-size: 21px; line-height: 1.35; color: var(--body); }
.ed__arrow { color: var(--ash); margin: 0 6px; }
.ed__growth { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 15px; font-weight: var(--weight-medium);
  color: var(--accent-green); text-shadow: 0 0 14px color-mix(in oklab, var(--accent-green) 55%, transparent); }
.ed__growth-ic { width: 21px; height: 21px; flex: none; filter: drop-shadow(0 0 7px color-mix(in oklab, var(--accent-green) 75%, transparent)); }
.ed__desc { margin-top: 26px; font-size: 17px; line-height: 1.7; color: var(--mute); max-width: 42ch; }

/* progress bar */
.exph__bar { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.exph__count { font-size: 13px; letter-spacing: 0.1em; color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.exph__count b { color: var(--ink); font-weight: var(--weight-semibold); }
.exph__progress { position: relative; flex: 1; height: 2px; background: var(--hairline-strong); border-radius: 2px; overflow: hidden; }
.exph__progress-fill { position: absolute; inset: 0 auto 0 0; width: 9%; background: var(--accent-green); border-radius: 2px; transition: width .2s ease; }
.exph__hint { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); white-space: nowrap; }

/* fallback: no pin on touch / small / reduced-motion — stacked detail cards */
/* tablet / mobile: keep the pinned scroll, hide the vertical scrubber,
   show the details panel full-width with scroll-driven cross-fade */
@media (max-width: 860px) {
  .exph__split { grid-template-columns: 1fr; gap: 0; }
  .exph__timeline { display: none; }
  .exph__details { min-height: 56vh; }
  .ed { justify-content: center; }
  .exph__aurora { height: 80%; opacity: 0.6; }
}
/* only fully un-pin when the user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .exph[data-exph-section] { height: auto !important; }
  .exph__sticky { position: static; height: auto; min-height: 0; padding-block: 64px; }
  .exph__timeline { display: none; }
  .exph__split { grid-template-columns: 1fr; gap: 0; }
  .exph__details { min-height: 0; }
  .exph__aurora, .exph__bar { display: none; }
  .ed { position: relative; inset: auto; opacity: 1; transform: none; pointer-events: auto; justify-content: flex-start;
    border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); padding: 24px; margin-bottom: 14px; }
  .ed__co { font-size: 28px; }
  .ed__desc { max-width: none; }
}
@media (max-width: 560px) {
  .exph__head h2 { font-size: 30px; }
  .ed__co { font-size: clamp(34px, 11vw, 46px); }
  .ed__role { font-size: 18px; }
  .ed__desc { font-size: 15px; max-width: none; }
  .cta-band__in { flex-direction: column; align-items: flex-start; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1; justify-content: center; }
}

/* CTA band */
.cta-band { background: var(--surface); border-block: 1px solid var(--hairline); padding-block: 56px; }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band__copy h2 { font-size: 32px; font-weight: var(--weight-medium); color: var(--ink); letter-spacing: -0.01em; }
.cta-band__copy p { margin-top: 8px; font-size: 16px; color: var(--mute); }
.cta-band__actions { display: flex; align-items: center; gap: 14px; }

@media (max-width: 900px) {
  .exph__head h2 { font-size: 38px; }
}
