/* ==========================================================================
   Anand Nagrick — v-017 Director
   Same DNA as v-016: GT Walsheim Thin display type, scroll-driven panel
   colours, cyan/green name mark, uppercase tracked labels, icon-trio dividers.
   ========================================================================== */

@font-face {
  font-family: "GT Walsheim Pro Thin";
  src: url("../fonts/6eb423bcd4953053bb2671f139d18075.woff2") format("woff2"),
       url("../fonts/6eb423bcd4953053bb2671f139d18075.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "GT Walsheim Pro Ultra Light";
  src: url("../fonts/bbfe44cfa96f2acd5d84ae2f1111745d.woff2") format("woff2"),
       url("../fonts/bbfe44cfa96f2acd5d84ae2f1111745d.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "GT Walsheim Pro Regular";
  src: url("../fonts/4417812509ea84242dcf790e829ca350.woff2") format("woff2"),
       url("../fonts/4417812509ea84242dcf790e829ca350.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "GT Walsheim Pro Medium";
  src: url("../fonts/GTWalsheimProMedium.woff2") format("woff2"),
       url("../fonts/GTWalsheimProMedium.woff") format("woff");
  font-display: swap;
}

:root {
  --cyan: #0FCCCF;
  --green: #25AF67;
  --wash-1: #2FD8D3;
  --wash-2: #5B4FE8;
  --wash-3: #FF4F45;
  --wash-4: #22C577;

  /* theme tokens, swapped by body.color-* as panels scroll past */
  --bg: #1F1F1F;
  --fg: #9A9A9A;      /* body copy: AA on every dark panel */
  --fg-strong: #E6E6E6;
  --display: #C1C1C1;
  --line: rgba(255,255,255,0.12);
  --card: rgba(255,255,255,0.035);

  --thin: "GT Walsheim Pro Thin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ultra: "GT Walsheim Pro Ultra Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --regular: "GT Walsheim Pro Regular", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --medium: "GT Walsheim Pro Medium", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 50px);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--regular);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  transition: background-color 1s ease, color 1s ease;
}

/* panel colours — same palette as v-016 */
body.color-offblack  { --bg: #1F1F1F; }
body.color-darkgrey  { --bg: #2C2C2C; --fg: #A3A3A3; }
body.color-nearblack { --bg: #181818; }
body.color-offwhite  {
  --bg: #C5C5C5;
  --fg: #3A3A3A;
  --fg-strong: #161616;
  --display: #1F1F1F;
  --line: rgba(0,0,0,0.16);
  --card: rgba(255,255,255,0.28);
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 2px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  background: var(--fg-strong); color: var(--bg); padding: 8px 14px;
  font-family: var(--medium); font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
}
.skip:focus { left: 16px; }

/* ---------- fixed chrome ---------- */
/* soft fade so the fixed footer text never sits on top of body copy */
body::after {
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 120px; z-index: 40; pointer-events: none;
  background: linear-gradient(transparent, var(--bg) 65%);
}

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px var(--gutter);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.portrait img { width: 44px; }
.namemark {
  text-decoration: none;
  font-family: var(--medium); font-size: 15px; line-height: 20px;
  text-transform: uppercase; letter-spacing: .2em;
}
.namemark .a { color: var(--cyan); }
.namemark .d { color: var(--green); }

.site-footer-left, .site-footer-right {
  position: fixed; bottom: 0; z-index: 50; padding: 32px var(--gutter);
  font-size: 15px; letter-spacing: .05em;
}
.site-footer-left { left: 0; }
.site-footer-right { right: 0; }
.site-footer-left a, .site-footer-right a { color: var(--fg); text-decoration: none; transition: color .2s; }
.site-footer-left a:hover, .site-footer-right a:hover { color: var(--fg-strong); }
.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); margin-right: 10px; vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(37,175,103,.6); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(37,175,103,0); } 100% { box-shadow: 0 0 0 0 rgba(37,175,103,0); } }
@media (prefers-reduced-motion: reduce) { .status-dot { animation: none; } }

/* ---------- panels ---------- */
.panel {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 120px var(--gutter);
}
@supports (min-height: 100dvh) { .panel { min-height: 100dvh; } }
.panel { padding-bottom: 150px; }
.panel--auto { min-height: 0; padding-top: 80px; padding-bottom: 150px; }
.hero { padding-bottom: 120px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
.center { text-align: center; }

/* ---------- type ---------- */
.label, .label-sm {
  display: block;
  font-family: var(--medium); font-weight: 500;
  font-size: 14px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg);
}
.label-sm { font-size: 11px; }
.label--accent { color: var(--cyan); }
body.color-offwhite .label--accent { color: #0A6E70; }

.bigtype {
  font-family: var(--thin);
  font-size: clamp(2.6rem, 4.32vw + 0.8rem, 6rem);
  line-height: 1.02; letter-spacing: -0.03em;
  color: var(--display);
  font-weight: normal;
}
.bigtype em { font-style: normal; color: var(--fg-strong); }
.midtype {
  font-family: var(--thin);
  font-size: clamp(1.9rem, 2.6vw + 1rem, 3.6rem);
  line-height: 1.08; letter-spacing: -0.02em;
  color: var(--display); font-weight: normal;
}
.lede {
  font-family: var(--thin);
  font-size: clamp(1.35rem, 1vw + 1rem, 2.1rem);
  line-height: 1.3; letter-spacing: -0.01em;
  color: var(--fg-strong);
}
.lede a { text-decoration: none; border-bottom: 1px solid var(--line); }
.lede a:hover { border-color: currentColor; }
.body-lg { font-size: 19px; line-height: 1.55; }

.divider { width: 150px; margin: 34px auto 0; opacity: .9; }
body.color-offwhite .divider-dark { display: block; }

/* ---------- hero ---------- */
.hero { overflow: hidden; text-align: center; }
.hero .label { margin-bottom: 28px; }
.hero .bigtype { max-width: 14ch; margin: 0 auto; }
.hero .lede { max-width: 34ch; margin: 36px auto 0; color: var(--fg); }
.hero .lede strong { font-weight: normal; color: var(--fg-strong); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--medium); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; padding: 16px 24px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--fg-strong);
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { border-color: var(--fg-strong); }
.btn--solid { background: var(--fg-strong); color: var(--bg); border-color: var(--fg-strong); }
.btn--solid:hover { background: transparent; color: var(--fg-strong); }
.scroll-cue { position: absolute; bottom: 36px; left: 0; right: 0; text-align: center; font-size: 15px; letter-spacing: .05em; z-index: 1; }

#hue-wash-bg, #hue-wash-shapes {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
}
.hue-wash {
  position: absolute; inset: -30%; filter: blur(90px); opacity: .4; will-change: transform;
  background: conic-gradient(from 0deg, var(--wash-1), var(--wash-2), var(--wash-3), var(--wash-4), var(--wash-1));
  animation: hue-spin 50s linear infinite;
}
.hue-wash-scrim { position: absolute; inset: 0; background: rgba(10,10,10,.36); }
@keyframes hue-spin { to { transform: rotate(360deg); } }
.hw-shape { position: absolute; fill: none; stroke-width: 2.5; }
.hw-tri  { width: 70px; top: 14%; left: 9%;  stroke: var(--wash-1); opacity: .6;  animation: drift-a 16s ease-in-out infinite; }
.hw-circ { width: 90px; top: 58%; left: 80%; stroke: var(--wash-2); opacity: .55; animation: drift-b 19s ease-in-out infinite; }
.hw-dia  { width: 60px; top: 70%; left: 18%; stroke: var(--wash-3); opacity: .55; animation: drift-c 13s ease-in-out infinite; }
/* slow looping paths: big enough to read as motion, slow enough not to distract from the headline */
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(60px, -30px) rotate(40deg); }
  50%      { transform: translate(90px, 40px) rotate(90deg); }
  75%      { transform: translate(20px, 60px) rotate(140deg); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30%      { transform: translate(-70px, -50px) scale(1.15); }
  60%      { transform: translate(-30px, 50px) scale(.9); }
}
@keyframes drift-c {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%      { transform: translate(50px, -60px) rotate(-45deg); }
  66%      { transform: translate(-30px, -30px) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) { .hue-wash, .hw-shape { animation: none; } }

/* ---------- intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.intro-copy p + p { margin-top: 1.1em; }
.intro-copy .lede { color: var(--fg); }
.intro-copy .lede strong { font-weight: normal; color: var(--fg-strong); }
.intro-head { width: 100%; max-width: 400px; justify-self: center; }
.intro-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 1fr 1.5fr; gap: 80px; }
}

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line); margin-top: 64px;
}
.stat { padding: 28px 18px 8px 0; border-bottom: 1px solid var(--line); }
.stat-num {
  display: block; font-family: var(--thin); font-size: clamp(2.6rem, 3vw + 1.2rem, 4.4rem);
  line-height: 1; letter-spacing: -0.03em; color: var(--fg-strong); margin-bottom: 12px;
}
.stat-num sup { font-size: .45em; vertical-align: .9em; color: var(--cyan); margin-left: 2px; }
.stat p { font-size: 15px; line-height: 1.45; max-width: 26ch; padding-bottom: 20px; }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0; border-right: 1px solid var(--line); padding: 32px 28px 12px; }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
}

/* ---------- section heads ---------- */
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head .label { margin-bottom: 18px; }
.section-head p { margin-top: 20px; font-size: 19px; max-width: 60ch; }

/* ---------- what I bring ---------- */
.pillars { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { background: var(--bg); padding: 36px 30px 34px; transition: background 1s ease; }
.pillar-icon { width: 34px; height: 34px; margin-bottom: 26px; fill: none; stroke-width: 1.6; }
.pillar:nth-child(3n+1) .pillar-icon { stroke: var(--wash-1); }
.pillar:nth-child(3n+2) .pillar-icon { stroke: var(--wash-4); }
.pillar:nth-child(3n)   .pillar-icon { stroke: var(--wash-3); }
.pillar h3 {
  font-family: var(--thin); font-weight: normal; font-size: 1.85rem; line-height: 1.12;
  letter-spacing: -0.015em; color: var(--fg-strong); margin-bottom: 14px;
}
.pillar p { font-size: 16px; }
.pillar ul { list-style: none; margin-top: 18px; }
.pillar li { font-size: 14px; padding: 7px 0; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

/* ---------- timeline ---------- */
.timeline { list-style: none; position: relative; }
.tl-item {
  display: grid; grid-template-columns: 1fr; gap: 10px 48px;
  padding: 34px 0; border-top: 1px solid var(--line);
}
.tl-year { font-family: var(--thin); font-size: 3rem; line-height: 1; letter-spacing: -0.03em; color: var(--display); }
.tl-item .label-sm { margin-top: 10px; }
.tl-title { font-family: var(--thin); font-size: 2rem; line-height: 1.2; color: var(--fg-strong); margin-bottom: 12px; }
.tl-item ul { list-style: none; }
.tl-item li { position: relative; padding-left: 30px; margin: 9px 0; }
/* short dash bullets in the logo colours, one colour per year (darkened for the offwhite panel) */
.tl-item li::before { content: ""; position: absolute; left: 0; top: .78em; width: 16px; height: 3px; border-radius: 2px; background: var(--tl-dash, #0E8F91); }
.tl-item:nth-child(4n+1) { --tl-dash: #0E8F91; }
.tl-item:nth-child(4n+2) { --tl-dash: #1E8A52; }
.tl-item:nth-child(4n+3) { --tl-dash: #4B4AD6; }
.tl-item:nth-child(4n+4) { --tl-dash: #B82626; }
@media (min-width: 900px) { .tl-item { grid-template-columns: 220px 1fr; } }

.pull {
  margin-top: 64px; padding: 44px 0 0; border-top: 1px solid var(--line);
  display: grid; gap: 24px;
}
.pull blockquote { font-family: var(--thin); font-size: clamp(1.5rem, 1.4vw + 1rem, 2.4rem); line-height: 1.25; color: var(--fg-strong); max-width: 30ch; }
@media (min-width: 900px) { .pull { grid-template-columns: 220px 1fr; gap: 48px; } }

/* ---------- work ---------- */
.work-title { margin-bottom: 40px; }
.work-row { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; margin-bottom: 120px; }
.work-row:last-child { margin-bottom: 0; }
.work-media { border-radius: 4px; overflow: hidden; }
.video { position: relative; aspect-ratio: 16 / 9; background: #111; border-radius: 4px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.work-meta dl > div { padding: 18px 0; border-top: 1px solid var(--line); }
.work-meta dt { margin-bottom: 8px; }
.work-meta dd { font-size: 17px; }
.work-meta .links a { display: inline-block; margin-right: 20px; color: var(--fg-strong); text-decoration: none; border-bottom: 1px solid var(--line); }
.work-meta .links a:hover { border-color: currentColor; }
.work-note { font-size: 14px; margin-top: 18px; font-style: normal; }
@media (min-width: 1000px) {
  .work-row { grid-template-columns: 1.55fr 1fr; gap: 64px; }
  .work-row--flip .work-media { order: 2; }
  .work-row--flip { grid-template-columns: 1fr 1.25fr; }
}
.archive-link { display: inline-block; margin-top: 30px; }
.archive-link img { width: 170px; transition: transform .6s ease; }
.archive-link:hover img { transform: rotate(-20deg); }
@media (prefers-reduced-motion: reduce) { .archive-link img { transition: none; } }

/* ---------- how I lead ---------- */
.lead-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
.lead-step figure { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; margin-bottom: 26px; background: #9a9a9a; }
.lead-step figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s, transform .8s; }
.lead-step:hover figure img { filter: grayscale(0); transform: scale(1.03); }
.lead-step h3 { font-family: var(--thin); font-weight: normal; font-size: 2rem; color: var(--fg-strong); margin: 8px 0 12px; letter-spacing: -0.015em; }
.lead-step .tags { margin-top: 16px; font-family: var(--medium); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; line-height: 2; }
@media (min-width: 900px) { .lead-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.rituals { margin-top: 80px; border-top: 1px solid var(--line); padding-top: 40px; display: grid; gap: 28px; }
.ritual-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.ritual-list li {
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 15px; color: var(--fg-strong);
}
.quality { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; list-style: none; counter-reset: q; }
.quality li { counter-increment: q; background: var(--card); padding: 16px 16px 18px; border-radius: 4px; color: var(--fg-strong); font-size: 16px; }
.quality li::before { content: "0" counter(q); display: block; font-family: var(--medium); font-size: 11px; letter-spacing: .2em; color: var(--fg); margin-bottom: 18px; }
@media (min-width: 900px) { .rituals { grid-template-columns: 220px 1fr; gap: 48px; } }

/* ---------- career ---------- */
.career { list-style: none; border-top: 1px solid var(--line); }
.career li { display: grid; grid-template-columns: 1fr; gap: 4px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.career .when { font-size: 14px; letter-spacing: .05em; }
.career .who { font-family: var(--thin); font-size: 1.6rem; line-height: 1.2; color: var(--fg-strong); }
.career .what { font-size: 15px; }
@media (min-width: 900px) { .career li { grid-template-columns: 160px 1.1fr 1.4fr; align-items: baseline; } }
.clients { margin: 72px auto 0; width: 100%; opacity: .85; }
.clients-note { text-align: center; max-width: 60ch; margin: 24px auto 0; }

/* ---------- testimonials ---------- */
.quotes { position: relative; }
.quote-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.quote-track::-webkit-scrollbar { display: none; }
.quote-card { scroll-snap-align: start; padding: 0 2px; }
.quote-card img { width: 64px; margin-bottom: 30px; opacity: .8; }
.quote-card blockquote p {
  font-family: var(--thin); font-size: clamp(1.35rem, 1.1vw + 1rem, 2.1rem); line-height: 1.3;
  color: var(--fg-strong); max-width: 36ch;
}
.quote-card blockquote p + p { margin-top: .7em; }
.quote-card figcaption { margin-top: 34px; }
.quote-card figcaption .label { color: var(--fg-strong); }
.quote-card figcaption .label-sm { margin-top: 6px; }
.quote-nav { display: flex; align-items: center; gap: 18px; margin-top: 48px; }
.quote-nav button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--fg-strong); cursor: pointer; font-size: 18px; transition: border-color .2s;
}
.quote-nav button:hover { border-color: var(--fg-strong); }
.quote-count { font-size: 14px; letter-spacing: .1em; }

/* ---------- contact ---------- */
.contact-panel .bigtype { margin: 0 auto; }
.contact-panel .lede { max-width: 36ch; margin: 30px auto 0; color: var(--fg); }
.contact-panel .cta-row { margin-top: 40px; }
.final-note { margin-top: 70px; font-size: 16px; letter-spacing: .05em; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- small screens ---------- */
@media (max-width: 700px) {
  body { font-size: 16px; -webkit-tap-highlight-color: transparent; }

  /* header: bigger tap areas without changing the look */
  .site-header { padding: 8px 16px; }
  .portrait { padding: 6px 6px 6px 0; }
  .portrait img { width: 36px; }
  .namemark { font-size: 13px; letter-spacing: .16em; padding: 14px 0; }

  /* footer: one full-width bar, the whole bar is the tap target */
  .site-footer-right { display: none; }
  .site-footer-left {
    right: 0; padding: 0; font-size: 14px;
    background: var(--bg); border-top: 1px solid var(--line); transition: background 1s;
  }
  .site-footer-left a { display: block; padding: 14px 16px; }
  body::after { height: 100px; }

  .panel { padding: 96px 16px 130px; }
  .panel--auto { padding-top: 64px; padding-bottom: 130px; }
  .hero { padding-bottom: 110px; }
  .scroll-cue { display: none; }

  /* hero shapes: smaller so they don't crowd the headline */
  .hw-tri { width: 46px; top: 12%; left: 4%; }
  .hw-circ { width: 56px; top: 70%; left: 82%; }
  .hw-dia { width: 40px; top: 80%; left: 10%; }
  .hue-wash { filter: blur(60px); }

  /* keep small uppercase text readable */
  .label-sm, .lead-step .tags, .btn { font-size: 12px; }
  .label { font-size: 13px; letter-spacing: .16em; }

  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 17px; }
  .intro-head { max-width: 220px; }
  .intro-grid { gap: 32px; }
  .stats { margin-top: 48px; }
  .stat { padding-right: 12px; }
  .stat p { font-size: 14px; }
  .pillar { padding: 28px 20px; }
  .pillar h3 { font-size: 1.6rem; }
  .tl-year { font-size: 2.4rem; }
  .tl-title { font-size: 1.6rem; }
  .tl-item li { padding-left: 26px; }
  .work-row { margin-bottom: 80px; gap: 28px; }
  .work-title { margin-bottom: 24px; }
  .work-meta .links a { padding: 10px 0; }
  .lead-grid { gap: 48px; }
  .rituals { margin-top: 56px; }
  .ritual-list li { font-size: 14px; padding: 9px 14px; }
  .quality { grid-template-columns: repeat(2, 1fr); }
  .career .who { font-size: 1.4rem; }
  .clients { margin-top: 48px; }
  .quote-nav { margin-top: 32px; }
  .final-note { font-size: 14px; }
}
