/* ============================================================
   AKSHAT TAMBI — NEO
   Product-page redesign. Huge imagery, minimal copy.
   Clean system type, generous whitespace, light/dark sections.
   Reuses r-motion.js hooks (reveal / nav / theme / clock / count).
   ============================================================ */

:root{
  /* ---- light ---- */
  --bg:        #ffffff;
  --bg-2:      #f5f5f7;   /* recessed gray */
  --bg-3:      #fafafc;
  --night:     #000000;   /* dramatic dark sections */
  --night-2:   #101012;
  --ink:       #1d1d1f;
  --ink-2:     #424245;
  --muted:     #6e6e73;
  --faint:     #86868b;
  --accent:    #0071e3;   /* link blue */
  --accent-h:  #0077ed;
  --on-dark:   #f5f5f7;
  --on-dark-mut:#a1a1a6;
  --accent-d:  #2997ff;   /* blue on dark */
  --line:      rgba(0,0,0,.12);
  --line-2:    rgba(0,0,0,.07);
  --on-dark-line: rgba(255,255,255,.16);

  /* ---- Jarvis (chatbot.js) glass tokens ---- */
  --card:      #ffffff;
  --paper:     #ffffff;
  --paper-2:   #f5f5f7;
  --ink-soft:  #424245;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Geist Mono", Menlo, monospace;

  --maxw: 1280px;
  --gutter: clamp(22px, 5vw, 80px);
  --ease: cubic-bezier(.28,.11,.32,1);
  --radius: 28px;
}

[data-theme="dark"]{
  --bg:        #000000;
  --bg-2:      #0a0a0a;
  --bg-3:      #0e0e10;
  --night:     #0a0a0a;
  --night-2:   #141416;
  --ink:       #f5f5f7;
  --ink-2:     #d2d2d7;
  --muted:     #a1a1a6;
  --faint:     #6e6e73;
  --accent:    #2997ff;
  --accent-h:  #47a6ff;
  --line:      rgba(255,255,255,.16);
  --line-2:    rgba(255,255,255,.09);
  --card:      #1c1c1e;
  --paper:     #000000;
  --paper-2:   #0a0a0a;
  --ink-soft:  #d2d2d7;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; scroll-behavior:smooth; }
body{
  font-family:var(--sans);
  background:var(--bg);
  color:var(--ink);
  font-size:17px;
  line-height:1.5;
  letter-spacing:-.01em;
  overflow-x:hidden;
  transition:background-color .6s var(--ease), color .6s var(--ease);
}
::selection{ background:var(--accent); color:#fff; }
a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; }
button{ font:inherit; color:inherit; background:none; border:none; cursor:pointer; }
em{ font-style:normal; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding-inline:var(--gutter); }

/* ---- type ---- */
.eyebrow{
  font-size:clamp(17px,1.5vw,21px); font-weight:600; letter-spacing:-.01em;
  color:var(--accent);
}
.kicker{
  font-family:var(--mono); font-size:12px; font-weight:500;
  letter-spacing:.04em; text-transform:uppercase; color:var(--muted);
}
h1,h2,h3{ font-weight:600; letter-spacing:-.03em; line-height:1.05; }
.display{ font-size:clamp(48px,8.5vw,112px); font-weight:600; letter-spacing:-.035em; line-height:1; }
.h-feat{ font-size:clamp(40px,6.2vw,88px); font-weight:600; letter-spacing:-.032em; line-height:1.02; }
.h-sec{ font-size:clamp(34px,4.6vw,64px); font-weight:600; letter-spacing:-.028em; line-height:1.05; }
.lead{ font-size:clamp(21px,2.3vw,30px); font-weight:500; line-height:1.32; letter-spacing:-.015em; color:var(--ink-2); }
.sub{ font-size:clamp(18px,1.7vw,23px); font-weight:400; line-height:1.4; letter-spacing:-.012em; color:var(--muted); }
.serif{ font-style:italic; font-weight:500; }   /* subtle emphasis, no display serif here */

/* ---- chevron link (Apple-style) ---- */
.clink{
  display:inline-flex; align-items:center; gap:3px;
  color:var(--accent); font-size:clamp(17px,1.5vw,21px); font-weight:400;
  letter-spacing:-.01em; transition:color .3s var(--ease);
}
.clink svg{ width:.7em; height:.7em; margin-top:.12em; transition:transform .35s var(--ease); }
.clink:hover{ color:var(--accent-h); }
.clink:hover .underline{ text-decoration:underline; text-underline-offset:3px; }
.clink:hover svg{ transform:translateX(3px); }
.clink-row{ display:flex; gap:clamp(20px,3vw,40px); flex-wrap:wrap; align-items:center; }

/* ---- pill buttons ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  background:var(--accent); color:#fff;
  font-size:17px; font-weight:400; letter-spacing:-.01em;
  padding:12px 23px; border-radius:980px; border:1px solid transparent;
  transition:background .3s var(--ease), transform .5s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space:nowrap; will-change:transform;
}
.btn:hover{ background:var(--accent-h); }
.btn.ghost{
  background:transparent; color:var(--accent); border-color:var(--accent);
}
.btn.ghost:hover{ background:var(--accent); color:#fff; }
.btn.on-dark{ background:var(--on-dark); color:#1d1d1f; }
.btn.on-dark:hover{ background:#fff; }
.btn.on-dark.ghost{ background:transparent; color:#fff; border-color:rgba(255,255,255,.5); }
.btn.on-dark.ghost:hover{ background:#fff; color:#1d1d1f; border-color:#fff; }
.btn-row{ display:flex; gap:14px; flex-wrap:wrap; }

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:200;
  display:flex; align-items:center; justify-content:space-between;
  padding:13px var(--gutter); height:54px;
  border-bottom:1px solid transparent;
  transition:background .4s var(--ease), border-color .4s var(--ease);
}
.nav.scrolled{
  background:color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter:saturate(1.8) blur(20px);
  -webkit-backdrop-filter:saturate(1.8) blur(20px);
  border-bottom-color:var(--line-2);
}
.nav-id{ display:flex; align-items:baseline; gap:9px; }
.nav-id b{ font-weight:600; font-size:18px; letter-spacing:-.02em; }
.nav-id span{ font-size:12px; color:var(--muted); letter-spacing:-.005em; }
.nav-links{ display:flex; gap:clamp(20px,2.6vw,38px); position:absolute; left:50%; transform:translateX(-50%); }
.nav-links a{ font-size:14px; color:var(--ink-2); transition:color .3s var(--ease); }
.nav-links a:hover{ color:var(--ink); }
.nav-right{ display:flex; align-items:center; gap:16px; }
.nav-clock{ font-family:var(--mono); font-size:12px; color:var(--muted); white-space:nowrap; }
.theme-toggle{
  width:32px; height:32px; display:grid; place-items:center; border-radius:50%;
  border:1px solid var(--line); color:var(--ink); transition:.35s var(--ease);
}
.theme-toggle:hover{ background:var(--ink); color:var(--bg); }
.theme-toggle svg{ width:15px; height:15px; }
.ic-sun{ display:none; } [data-theme="dark"] .ic-sun{ display:block; }
[data-theme="dark"] .ic-moon{ display:none; }
.nav .btn{ padding:7px 16px; font-size:14px; }
@media (max-width:920px){ .nav-links{ display:none; } }
@media (max-width:560px){ .nav-clock{ display:none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero{ text-align:center; padding:150px var(--gutter) 0; }
.hero .eyebrow{ display:block; margin-bottom:14px; }
.hero h1{ margin:0 auto; max-width:16ch; }
.hero h1 em{ color:var(--accent); }
.hero .sub{ max-width:30ch; margin:24px auto 0; }
.hero .clink-row{ justify-content:center; margin-top:26px; }

/* --- asymmetric editorial hero --- */
.hero-split{
  text-align:left; max-width:var(--maxw); margin:0 auto;
  padding:clamp(112px,15vw,184px) var(--gutter) clamp(40px,6vw,80px);
  display:grid; grid-template-columns:1.02fr .98fr; gap:clamp(40px,6vw,96px);
  align-items:center;
}
.hero-split .hero-copy{ min-width:0; }
.hero-split .eyebrow{ display:block; margin-bottom:22px; }
.hero-split h1{ margin:0; max-width:none; }
.hero-split .sub{ margin:26px 0 0; max-width:34ch; }
.hero-split .clink-row{ justify-content:flex-start; margin-top:34px; }
.hero-split .hero-meta{
  display:flex; flex-direction:column; gap:10px; align-items:flex-start;
  margin:36px 0 0; padding:22px 0 0; border-top:1px solid var(--line-2); max-width:none;
}
.hero-split .hero-meta .kicker{ color:var(--faint); }
.hero-art{
  position:relative; display:block; border-radius:var(--radius); overflow:hidden;
  background:var(--bg-2); aspect-ratio:4/5; will-change:transform;
  box-shadow:0 40px 90px -50px rgba(0,0,0,.45);
}
.hero-art image-slot, .hero-art img{ width:100%; height:100%; object-fit:cover; transition:transform 1.4s var(--ease); }
.hero-art:hover image-slot, .hero-art:hover img{ transform:scale(1.035); }
.hero-art-tag{
  position:absolute; left:20px; top:18px; z-index:2;
  font-family:var(--mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  color:#fff; background:rgba(0,0,0,.42); backdrop-filter:blur(6px);
  padding:6px 12px; border-radius:980px;
}

/* --- pure editorial type hero --- */
.hero-editorial{
  text-align:left; max-width:var(--maxw); margin:0 auto;
  padding:clamp(120px,16vw,210px) var(--gutter) clamp(48px,7vw,96px);
}
.hero-ed-top{
  display:flex; align-items:center; justify-content:space-between;
  gap:20px 30px; flex-wrap:wrap; margin-bottom:clamp(28px,3.4vw,48px);
}
.hero-ed-top .eyebrow{ margin:0; }
.hero-ed-top .avail{ color:var(--muted); }
.hero-ed-h{
  font-weight:600; letter-spacing:-.038em; line-height:.96;
  font-size:clamp(50px,9.4vw,132px); margin:0; text-wrap:balance;
}
.hero-ed-h .hl{ display:block; overflow:hidden; padding-bottom:.04em; }
.hero-ed-h .hl > span{ display:block; }
.hero-ed-h em{ position:relative; color:var(--accent); }
.hero-ed-h em::after{
  content:""; position:absolute; left:0; right:0; bottom:.06em; height:.055em;
  background:var(--accent); border-radius:980px; transform:scaleX(0); transform-origin:0 50%;
}
.hero-ed-foot{
  display:grid; grid-template-columns:1.1fr .9fr; gap:clamp(24px,4vw,64px);
  align-items:end; margin-top:clamp(34px,4vw,60px);
}
.hero-ed-foot .sub{ margin:0; max-width:40ch; font-size:clamp(18px,1.55vw,22px); }
.hero-ed-foot .clink-row{ justify-content:flex-end; gap:clamp(20px,2.6vw,40px); }
.hero-ed-rail{
  display:grid; grid-template-columns:repeat(4,1fr);
  margin-top:clamp(46px,5.5vw,84px); border-top:1px solid var(--line);
}
.hero-ed-rail .rail-item{
  display:flex; flex-direction:column; gap:9px;
  padding:30px 26px 6px 0; border-right:1px solid var(--line-2);
}
.hero-ed-rail .rail-item + .rail-item{ padding-left:28px; }
.hero-ed-rail .rail-item:last-child{ border-right:none; }
.hero-ed-rail .rk{
  font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--faint);
}
.hero-ed-rail .rv{ font-size:clamp(15px,1.25vw,18px); font-weight:500; letter-spacing:-.01em; color:var(--ink); }

@media (prefers-reduced-motion:no-preference){
  html.js .hero-ed-h .hl > span{ transform:translateY(112%); transition:transform 1.1s var(--ease); }
  html.js.ready .hero-ed-h .hl > span{ transform:translateY(0); }
  html.js .hero-ed-h .hl:nth-child(1) > span{ transition-delay:.05s; }
  html.js .hero-ed-h .hl:nth-child(2) > span{ transition-delay:.16s; }
  html.js .hero-ed-h em::after{ transition:transform .9s var(--ease) .9s; }
  html.js.ready .hero-ed-h em::after{ transform:scaleX(1); }
}
@media (prefers-reduced-motion:reduce){
  .hero-ed-h em::after{ transform:scaleX(1); }
}
@media (max-width:760px){
  .hero-ed-foot{ grid-template-columns:1fr; align-items:start; }
  .hero-ed-foot .clink-row{ justify-content:flex-start; }
  .hero-ed-rail{ grid-template-columns:1fr 1fr; gap:0 0; }
  .hero-ed-rail .rail-item{ padding:18px 22px 12px 0; border-bottom:1px solid var(--line-2); }
  .hero-ed-rail .rail-item:nth-child(2n+1){ padding-left:0; }
  .hero-ed-rail .rail-item:nth-child(2n){ border-right:none; padding-left:24px; }
}
@media (max-width:880px){
  .hero-split{ grid-template-columns:1fr; gap:clamp(34px,7vw,52px); padding-top:clamp(96px,18vw,140px); }
  .hero-art{ aspect-ratio:16/11; order:2; }
  .hero-split .hero-meta{ flex-flow:row wrap; gap:14px 26px; }
}
.hero-stage{
  margin:clamp(40px,6vw,80px) auto 0; max-width:1180px; padding-inline:var(--gutter);
}
.hero-stage .frame{
  border-radius:var(--radius); overflow:hidden; background:var(--bg-2);
  aspect-ratio:22/13; box-shadow:0 30px 80px -40px rgba(0,0,0,.4);
}
.hero-meta{
  max-width:var(--maxw); margin:26px auto 0; padding-inline:var(--gutter);
  display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap;
  border-top:1px solid var(--line-2); padding-top:18px;
}
.hero-meta .kicker{ color:var(--faint); }

/* ============================================================
   FEATURE SECTIONS (one project = one big idea + huge image)
   ============================================================ */
.feature{ padding:clamp(80px,11vw,150px) 0; text-align:center; }
.feature.dark{ background:var(--night); color:var(--on-dark); }
.feature.gray{ background:var(--bg-2); }
.feature .eyebrow.mut{ color:var(--accent); }
.feature.dark .eyebrow{ color:var(--accent-d); }
.feat-head{ max-width:920px; margin:0 auto; padding-inline:var(--gutter); }
.feat-head .eyebrow{ display:block; margin-bottom:14px; }
.feature.dark h2{ color:#fff; }
.feat-head .sub{ max-width:34ch; margin:20px auto 0; }
.feature.dark .sub{ color:var(--on-dark-mut); }
.feat-head .clink-row{ justify-content:center; margin-top:24px; }
.feature.dark .clink{ color:var(--accent-d); }

/* stat chips under headline */
.stat-row{
  display:flex; justify-content:center; gap:clamp(30px,5vw,72px); flex-wrap:wrap;
  margin-top:34px;
}
.stat{ text-align:center; }
.stat .sv{ display:block; font-size:clamp(32px,4vw,52px); font-weight:600; letter-spacing:-.03em; line-height:1; }
.stat .sv em{ color:var(--accent); }
.feature.dark .stat .sv em{ color:var(--accent-d); }
.stat .sl{ display:block; margin-top:8px; font-size:14px; color:var(--muted); letter-spacing:-.005em; }
.feature.dark .stat .sl{ color:var(--on-dark-mut); }

/* the huge image */
.feat-stage{ margin:clamp(46px,6vw,84px) auto 0; max-width:1180px; padding-inline:var(--gutter); }
.feat-stage.bleed{ max-width:1480px; }
.shot{
  position:relative; display:block; border-radius:var(--radius); overflow:hidden;
  background:var(--bg-2);
}
.feature.dark .shot{ background:#141416; }
.shot.ar-wide{ aspect-ratio:16/9; }
.shot.ar-tall{ aspect-ratio:5/6; }
.shot.ar-sq{ aspect-ratio:1/1; }
.shot img, .shot image-slot{
  width:100%; height:100%; object-fit:cover;
  transition:transform 1.4s var(--ease);
}
.shot:hover img, .shot:hover image-slot{ transform:scale(1.03); }
.shot-tag{
  position:absolute; left:22px; top:18px; z-index:2;
  font-family:var(--mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  color:#fff; background:rgba(0,0,0,.42); backdrop-filter:blur(6px);
  padding:6px 11px; border-radius:980px;
}
.shot-badge{
  position:absolute; right:22px; top:18px; z-index:2;
  font-size:12.5px; font-weight:500; color:#1d1d1f; background:rgba(255,255,255,.92);
  backdrop-filter:blur(6px); padding:6px 13px; border-radius:980px;
}

/* two-up image row inside a feature */
.feat-pair{
  display:grid; grid-template-columns:1fr 1fr; gap:clamp(14px,1.6vw,24px);
  max-width:1180px; margin:clamp(46px,6vw,84px) auto 0; padding-inline:var(--gutter);
}
@media (max-width:760px){ .feat-pair{ grid-template-columns:1fr; } }

/* ============================================================
   WORK — compact alternating project rows
   ============================================================ */
.work{ padding:clamp(64px,8vw,108px) 0; }
.work .feat-head{ text-align:center; margin-bottom:clamp(40px,5vw,64px); }
.prow{
  display:grid; grid-template-columns:1.04fr .96fr; gap:clamp(30px,4.5vw,72px);
  align-items:center;
}
.prow + .prow{
  margin-top:clamp(34px,4.5vw,68px); padding-top:clamp(34px,4.5vw,68px);
  border-top:1px solid var(--line-2);
}
.prow-media{
  position:relative; display:block; border-radius:var(--radius); overflow:hidden;
  aspect-ratio:5/4; background:var(--bg-2);
}
.prow.flip .prow-media{ order:2; }
.prow-media img, .prow-media image-slot{ width:100%; height:100%; object-fit:cover; transition:transform 1.4s var(--ease); }
.prow-media:hover img, .prow-media:hover image-slot{ transform:scale(1.04); }
.prow-info .eyebrow{ display:block; margin-bottom:14px; }
.prow-info h3{ font-size:clamp(30px,3.8vw,54px); font-weight:600; letter-spacing:-.03em; line-height:1.03; }
.prow-info h3 em{ color:var(--accent); }
.prow-info .sub{ margin-top:16px; max-width:38ch; }
.prow-info .stat-row{ justify-content:flex-start; gap:clamp(28px,3.6vw,52px); margin-top:28px; }
.prow-info .stat{ text-align:left; }
.prow-info .stat .sv{ font-size:clamp(26px,3vw,42px); }
.prow-info .clink-row{ justify-content:flex-start; margin-top:26px; }
@media (max-width:820px){
  .prow{ grid-template-columns:1fr; gap:24px; }
  .prow.flip .prow-media{ order:0; }
}

/* ============================================================
   LINEUP (smaller work cards)
   ============================================================ */
.lineup{ padding:clamp(70px,9vw,120px) 0; }
.lineup .feat-head{ text-align:center; }
.lineup .feat-head .sub{ margin-top:18px; }
.cards{
  display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(18px,2vw,28px);
  margin-top:clamp(44px,5vw,72px);
}
.card{
  display:flex; flex-direction:column; background:var(--bg-2); border-radius:var(--radius);
  overflow:hidden; transition:transform .5s var(--ease);
}
.card:hover{ transform:translateY(-5px); }
.card-shot{ position:relative; aspect-ratio:16/10; overflow:hidden; background:var(--bg-3); }
.card-shot img, .card-shot image-slot{ width:100%; height:100%; object-fit:cover; transition:transform 1.2s var(--ease); }
.card:hover .card-shot img, .card:hover .card-shot image-slot{ transform:scale(1.04); }
.card-body{ padding:clamp(24px,2.4vw,36px); display:flex; flex-direction:column; gap:8px; flex:1; }
.card-kicker{ font-size:13px; font-weight:600; color:var(--accent); letter-spacing:-.005em; }
.card-body h3{ font-size:clamp(24px,2.4vw,34px); }
.card-body p{ color:var(--muted); font-size:16px; line-height:1.45; max-width:38ch; }
.card-go{ margin-top:auto; padding-top:16px; }
@media (max-width:760px){ .cards{ grid-template-columns:1fr; } }

/* ---- dedicated work archive masthead ---- */
.work-masthead{
  max-width:var(--maxw); margin:0 auto; text-align:center;
  padding:clamp(120px,15vw,200px) var(--gutter) clamp(38px,5vw,60px);
}
.work-masthead .eyebrow{ display:block; margin-bottom:20px; color:var(--accent); }
.wm-title{
  font-size:clamp(50px,9vw,124px); font-weight:600; letter-spacing:-.038em; line-height:.95; margin:0;
}
.work-masthead .sub{ max-width:52ch; margin:26px auto 0; font-size:clamp(18px,1.55vw,22px); }
.wm-tags{
  display:flex; flex-wrap:wrap; justify-content:center; gap:10px 12px; margin-top:clamp(30px,3.5vw,42px);
}
.wm-tags span{
  font-family:var(--mono); font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:var(--muted);
  border:1px solid var(--line); border-radius:980px; padding:8px 15px;
}

/* ---- dedicated work archive: full-width featured card ---- */
.work-archive .card.feat{ grid-column:1 / -1; flex-direction:row; }
.work-archive .card.feat .card-shot{ flex:1 1 56%; aspect-ratio:16/11; }
.work-archive .card.feat .card-body{
  flex:1 1 44%; justify-content:center; gap:10px;
  padding:clamp(28px,3.4vw,56px);
}
.work-archive .card.feat .card-body h3{ font-size:clamp(28px,3.2vw,46px); }
.work-archive .card.feat .card-body p{ font-size:clamp(16px,1.4vw,19px); max-width:42ch; }
@media (max-width:760px){
  .work-archive .card.feat{ flex-direction:column; }
  .work-archive .card.feat .card-shot{ aspect-ratio:16/10; }
}

/* ============================================================
   PULLQUOTE / ETHOS
   ============================================================ */
.ethos{ padding:clamp(90px,12vw,170px) var(--gutter); text-align:center; }
.ethos blockquote{
  max-width:18ch; margin:0 auto; font-size:clamp(34px,5.4vw,76px);
  font-weight:600; letter-spacing:-.03em; line-height:1.06;
}
.ethos blockquote em{ color:var(--accent); }
.ethos cite{ display:block; margin-top:30px; font-style:normal; }
.ethos .kicker{ color:var(--faint); }

/* ---- rotating quotes: stacked, one at a time, apple-style crossfade ---- */
.ethos-rotator{ position:relative; display:grid; }
.ethos-rotator .eq{
  grid-area:1 / 1; margin:0; display:flex; flex-direction:column; align-items:center;
  opacity:0; transform:translateY(24px) scale(.985); filter:blur(6px);
  pointer-events:none;
}
.ethos-rotator .eq.is-active{
  opacity:1; transform:none; filter:none; pointer-events:auto;
}
@media (prefers-reduced-motion:no-preference){
  .ethos-rotator .eq{
    transition:opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  }
}
.eq-dots{
  grid-area:1 / 1; align-self:end; justify-self:center;
  display:flex; gap:10px; transform:translateY(clamp(64px,9vw,112px));
}
.eq-dots button{
  width:7px; height:7px; padding:0; border:0; border-radius:50%;
  background:var(--faint); opacity:.32; cursor:pointer;
  transition:opacity .4s var(--ease), transform .4s var(--ease), background .4s var(--ease);
}
.eq-dots button:hover{ opacity:.6; }
.eq-dots button.on{ opacity:1; background:var(--accent); transform:scale(1.35); }

/* ============================================================
   ABOUT
   ============================================================ */
.about{ padding:clamp(70px,9vw,120px) 0; background:var(--bg-2); }
.about-grid{
  display:grid; grid-template-columns:1fr 1.05fr; gap:clamp(40px,5vw,80px);
  align-items:center;
}
.about-photo{ border-radius:var(--radius); overflow:hidden; aspect-ratio:4/5; background:var(--bg-3); }
.about-photo img, .about-photo image-slot{ width:100%; height:100%; object-fit:cover; transition:transform 1.4s var(--ease); }
.about-photo:hover img, .about-photo:hover image-slot{ transform:scale(1.03); }
.about-body .eyebrow{ display:block; margin-bottom:16px; }
.about-body .lead{ color:var(--ink); }
.about-body p.sub{ margin-top:18px; max-width:42ch; }
.specs{ margin-top:34px; border-top:1px solid var(--line); }
.spec{ display:flex; justify-content:space-between; gap:24px; padding:14px 0; border-bottom:1px solid var(--line-2); }
.spec dt{ font-size:14px; color:var(--muted); }
.spec dd{ font-size:15px; font-weight:500; text-align:right; }
.spec dd em{ color:var(--accent); }
@media (max-width:820px){ .about-grid{ grid-template-columns:1fr; gap:40px; } .about-photo{ max-width:440px; } }

/* ============================================================
   RECORD (timeline)
   ============================================================ */
.record{ padding:clamp(70px,9vw,120px) 0; }
.record .feat-head{ text-align:center; margin-bottom:clamp(40px,5vw,64px); }
.ledger{ max-width:1000px; margin:0 auto; border-top:1px solid var(--line); }
.lrow{
  display:grid; grid-template-columns:.7fr 1.1fr 1.5fr; gap:24px; align-items:baseline;
  padding:26px 0; border-bottom:1px solid var(--line-2);
  transition:background .35s var(--ease);
}
.lrow:hover{ background:var(--bg-2); }
.lr-when{ font-family:var(--mono); font-size:13px; color:var(--muted); letter-spacing:.02em; }
.lr-role{ font-size:clamp(19px,1.9vw,24px); font-weight:600; letter-spacing:-.02em; }
.lr-role .co{ font-weight:400; color:var(--muted); }
.lr-desc{ font-size:15.5px; color:var(--muted); line-height:1.45; }
@media (max-width:760px){ .lrow{ grid-template-columns:1fr; gap:6px; padding:22px 0; } }

/* ============================================================
   WORDS (testimonials)
   ============================================================ */
.words{ padding:clamp(70px,9vw,120px) 0; background:var(--bg-2); }
.words .feat-head{ text-align:center; margin-bottom:clamp(44px,5vw,68px); }
.refs{ display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(18px,2vw,28px); }
.ref{
  background:var(--bg); border-radius:var(--radius); padding:clamp(30px,3vw,46px);
  display:flex; flex-direction:column; gap:24px;
}
.ref.feat{ grid-column:1 / -1; }
.ref blockquote{ font-size:clamp(21px,2.1vw,28px); font-weight:500; letter-spacing:-.018em; line-height:1.32; }
.ref.feat blockquote{ font-size:clamp(26px,3vw,40px); }
.ref blockquote em{ color:var(--accent); }
.ref figcaption{ display:flex; align-items:center; gap:14px; margin-top:auto; }
.rf-face{ width:46px; height:46px; border-radius:50%; overflow:hidden; flex:none; background:var(--bg-2); }
.rf-face img, .rf-face image-slot{ width:100%; height:100%; object-fit:cover; }
.ref figcaption b{ display:block; font-weight:600; font-size:15px; }
.ref figcaption span span{ display:block; font-size:13px; color:var(--muted); font-weight:400; }
@media (max-width:760px){ .refs{ grid-template-columns:1fr; } }

/* ============================================================
   CONTACT  (dark)
   ============================================================ */
.contact{ background:var(--night); color:var(--on-dark); padding:clamp(90px,11vw,150px) 0 0; }
.contact .wrap{ text-align:center; }
.contact .eyebrow{ display:block; color:var(--accent-d); margin-bottom:16px; }
.contact-head{ font-size:clamp(40px,6.5vw,92px); font-weight:600; letter-spacing:-.035em; line-height:1.02; color:#fff; }
.contact-head em{ color:var(--accent-d); }
.contact .sub{ color:var(--on-dark-mut); max-width:40ch; margin:22px auto 0; }
.cmail{ display:inline-flex; align-items:center; gap:.4em; font-size:clamp(24px,3vw,40px); font-weight:600; letter-spacing:-.025em; color:#fff; margin-top:34px; transition:color .3s var(--ease); }
.cmail:hover{ color:var(--accent-d); }
.cmail svg{ width:.62em; height:.62em; }
.contact-cta{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:40px; padding-bottom:clamp(70px,9vw,110px); }
.avail{ display:inline-flex; align-items:center; gap:.6em; font-family:var(--mono); font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:var(--on-dark-mut); justify-content:center; }
.pulse{ width:7px; height:7px; border-radius:50%; background:#30d158; position:relative; }
.pulse::after{ content:""; position:absolute; inset:-4px; border-radius:50%; border:1px solid #30d158; animation:pulse 2.6s var(--ease) infinite; }
@keyframes pulse{ 0%{ transform:scale(.5); opacity:.7; } 100%{ transform:scale(1.7); opacity:0; } }

/* form (kept, minimal) — hidden behind a toggle? no, inline simple */
.form-wrap{ max-width:540px; margin:0 auto; padding-bottom:clamp(80px,9vw,120px); text-align:left; }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:20px; }
.field label{ font-family:var(--mono); font-size:11px; letter-spacing:.04em; text-transform:uppercase; color:var(--on-dark-mut); }
.field input, .field textarea{ background:rgba(255,255,255,.04); border:1px solid var(--on-dark-line); border-radius:12px; color:#fff; font-family:var(--sans); font-size:16px; padding:13px 15px; resize:none; transition:border-color .3s var(--ease); }
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--accent-d); }
.field input::placeholder, .field textarea::placeholder{ color:var(--faint); }
.form button{ width:100%; }
.form-thanks{ font-family:var(--mono); font-size:12px; color:#30d158; max-height:0; overflow:hidden; opacity:0; transition:max-height .6s var(--ease), opacity .5s var(--ease), margin .5s var(--ease); }
.form.sent .form-thanks{ max-height:60px; opacity:1; margin-top:14px; }
.form.sending button{ opacity:.5; }
.form.sent button{ pointer-events:none; opacity:.4; }
.hp-field{ position:absolute; left:-9999px; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot{ background:var(--night); color:var(--on-dark); padding:60px 0 34px; border-top:1px solid var(--on-dark-line); }
.foot-grid{ display:grid; grid-template-columns:1.7fr 1fr 1fr 1fr; gap:40px; padding-bottom:50px; }
.foot-grid h5{ font-family:var(--mono); font-size:11px; letter-spacing:.04em; text-transform:uppercase; color:var(--on-dark-mut); margin-bottom:16px; font-weight:500; }
.foot-grid p{ color:var(--on-dark-mut); max-width:34ch; font-size:14.5px; line-height:1.5; }
.foot-grid a{ display:block; color:var(--on-dark); opacity:.74; margin-bottom:9px; font-size:14.5px; width:fit-content; transition:opacity .3s var(--ease); }
.foot-grid a:hover{ opacity:1; color:var(--accent-d); }
.foot-bottom{ display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; padding-top:24px; border-top:1px solid var(--on-dark-line); }
.foot-bottom span{ font-family:var(--mono); font-size:11px; letter-spacing:.02em; color:var(--on-dark-mut); }
@media (max-width:820px){ .foot-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .foot-grid{ grid-template-columns:1fr; gap:28px; } }

/* ---- reveal engine (end-state base; hidden only with js + motion ok) ---- */
[data-reveal]{ opacity:1; transform:none; }
@media (prefers-reduced-motion:no-preference){
  html.js [data-reveal]{ opacity:0; transform:translateY(26px); transition:opacity 1s var(--ease), transform 1s var(--ease); }
  html.js [data-reveal].in{ opacity:1; transform:none; }
  html.js [data-reveal-d="1"]{ transition-delay:.08s; }
  html.js [data-reveal-d="2"]{ transition-delay:.16s; }
  html.js [data-reveal-d="3"]{ transition-delay:.24s; }
}
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } [data-reveal]{ opacity:1; transform:none; } }

/* ---- subtle image scale-in as media reveals (motion-ok only) ---- */
@media (prefers-reduced-motion:no-preference){
  html.js .prow[data-reveal] .prow-media image-slot,
  html.js .prow[data-reveal] .prow-media img,
  html.js .hero-art[data-reveal] image-slot,
  html.js .hero-art[data-reveal] img{
    transform:scale(1.07); transition:transform 1.5s var(--ease);
  }
  html.js .prow[data-reveal].in .prow-media image-slot,
  html.js .prow[data-reveal].in .prow-media img,
  html.js .hero-art[data-reveal].in image-slot,
  html.js .hero-art[data-reveal].in img{ transform:none; }
  /* hover still wins once revealed */
  html.js .prow[data-reveal].in .prow-media:hover image-slot,
  html.js .prow[data-reveal].in .prow-media:hover img{ transform:scale(1.04); }
  html.js .hero-art[data-reveal].in:hover image-slot,
  html.js .hero-art[data-reveal].in:hover img{ transform:scale(1.035); }
}

.hide-mob{ display:revert; }
@media (max-width:760px){ .hide-mob{ display:none !important; } }

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.progress{
  position:fixed; top:0; left:0; right:0; height:2px; z-index:300;
  background:linear-gradient(90deg, var(--accent), var(--accent-h));
  transform:scaleX(0); transform-origin:0 50%;
  transition:transform .08s linear; pointer-events:none;
}

/* ============================================================
   CUSTOM "VIEW" CURSOR (data-cursor targets, data-cursor-el follower)
   ============================================================ */
.cursor{
  position:fixed; top:0; left:0; z-index:400; pointer-events:none;
  display:inline-flex; align-items:center; gap:.35em;
  padding:11px 17px; border-radius:980px;
  background:var(--accent); color:#fff;
  font-size:13px; font-weight:500; letter-spacing:-.01em; white-space:nowrap;
  transform:translate(-50%,-50%) scale(0); will-change:transform;
  box-shadow:0 8px 28px -8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.cursor svg{ width:13px; height:13px; }
@media (pointer:coarse){ .cursor{ display:none !important; } }
[data-cursor]{ cursor:none; }
@media (pointer:coarse){ [data-cursor]{ cursor:pointer; } }

/* ---- hero parallax frame keeps its rounded clip while transformed ---- */
.hero-stage[data-parallax]{ will-change:transform; }

/* ============================================================
   ACCESSIBILITY — skip link, focus-visible rings, motion safety
   ============================================================ */
.skip-link{
  position:fixed; top:10px; left:10px; z-index:1000;
  transform:translateY(-160%);
  background:var(--accent); color:#fff;
  font-family:var(--sans); font-size:15px; font-weight:600;
  padding:12px 20px; border-radius:12px; text-decoration:none;
  box-shadow:0 10px 30px -8px rgba(0,0,0,.45);
  transition:transform .18s var(--ease);
}
.skip-link:focus{ transform:translateY(0); outline:3px solid #fff; outline-offset:2px; }

/* Visible keyboard focus on every interactive element.
   Mouse users never see it (:focus-visible only). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible,
.btn:focus-visible,
.clink:focus-visible,
.card:focus-visible,
.prow-media:focus-visible,
.theme-toggle:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:3px;
  border-radius:6px;
}
/* On dark sections the orange ring can be low-contrast — use a light ring */
.contact a:focus-visible,
.contact button:focus-visible,
.contact input:focus-visible,
.contact textarea:focus-visible,
.foot a:focus-visible,
.btn.on-dark:focus-visible{
  outline-color:#fff;
}
main:focus{ outline:none; }
/* honour the custom cursor but never hide a real focus ring */
[data-cursor]:focus-visible{ cursor:pointer; }

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
}

/* ============================================================
   PROOF STRIP — seniority signals under the hero
   ============================================================ */
.proof{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.proof-grid{
  display:grid; grid-template-columns:repeat(4,1fr);
  max-width:var(--maxw); margin-inline:auto;
  padding-inline:var(--gutter);
}
.proof-item{
  padding:34px 26px 34px 0;
  border-right:1px solid var(--line);
  display:flex; flex-direction:column; gap:7px;
}
.proof-item:last-child{ border-right:none; padding-right:0; }
.proof-v{
  font-family:var(--sans); font-weight:600;
  font-size:clamp(28px,3vw,40px); line-height:1; letter-spacing:-.02em;
  color:var(--ink);
}
.proof-v em{ color:var(--accent); font-style:normal; }
.proof-l{
  font-family:var(--mono); font-size:12px; letter-spacing:.03em;
  text-transform:uppercase; color:var(--muted); text-wrap:balance;
}
@media (max-width:860px){
  .proof-grid{ grid-template-columns:repeat(2,1fr); }
  .proof-item:nth-child(2){ border-right:none; }
  .proof-item:nth-child(1),.proof-item:nth-child(2){ border-bottom:1px solid var(--line); }
  .proof-item{ padding:24px 20px; }
  .proof-item:nth-child(odd){ padding-left:0; }
}
