/* Layout: an editorial publication that cuts to black for the films.
   Ivory sections are read (intro, credential, approach, about); dark sections are watched (reel, work, case study, closing). */
:root {
  color-scheme: light;
  /* editorial theme */
  --ivory: #F6F4EE;
  --charcoal: #171717;
  --ink-2: #62615D;
  --blue: #315CFF;
  --rule: #DEDDD6;
  /* cinematic theme */
  --night: #101010;
  --night-2: #181817;
  --cream: #F5F2EB;
  --cream-2: #B7B5AF;
  --blue-2: #7D96FF;
  --night-rule: #2C2B28;

  --serif: "Cormorant Garamond", "Tiro Devanagari Hindi", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", "Mukta", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1520px;
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(.2, .7, .1, 1);

  /* default surface = editorial */
  --bg: var(--ivory); --fg: var(--charcoal); --muted: var(--ink-2); --accent: var(--blue); --line: var(--rule);
}
.light { --bg: var(--ivory); --fg: var(--charcoal); --muted: var(--ink-2); --accent: var(--blue); --line: var(--rule); color-scheme: light; }
.dark  { --bg: var(--night); --fg: var(--cream); --muted: var(--cream-2); --accent: var(--blue-2); --line: var(--night-rule); color-scheme: dark; }
.light, .dark { background: var(--bg); color: var(--fg); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ivory); color: var(--charcoal); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; text-align: inherit; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--charcoal); color: var(--ivory); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* ---------- type ---------- */
h1, h2, h3 { text-wrap: balance; }
.hero-title { font: 500 clamp(54px, 8.6vw, 156px)/.9 var(--serif); letter-spacing: -.022em; margin: 0; }
.h1 { font: 500 clamp(42px, 5.4vw, 92px)/.98 var(--serif); letter-spacing: -.018em; margin: 0; }
.h2 { font: 500 clamp(32px, 3.4vw, 54px)/1.04 var(--serif); letter-spacing: -.012em; margin: 0; }
.hero-title em, .h1 em, .contact-title em { font-weight: 500; color: var(--accent); }
.label { font: 600 12.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.label b { color: var(--fg); font-weight: 700; }
.label.accent { color: var(--accent); }
.lede { font: 400 clamp(18px, 1.4vw, 21px)/1.6 var(--sans); color: var(--fg); max-width: 44ch; margin: 0; }
.body { font-size: 17px; line-height: 1.7; max-width: 52ch; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 15px; line-height: 1.6; }

/* ---------- glass: frosted layers used sparingly (nav, labels on footage, reel control, small utilities) ---------- */
:root {
  --glass-dark: rgba(20, 20, 19, .46); --glass-dark-line: rgba(245, 242, 235, .14);
  --glass-light: rgba(246, 244, 238, .66); --glass-light-line: rgba(23, 23, 23, .09);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .10); /* the thin top highlight of a pane of glass */
  --glass-blur: blur(20px) saturate(1.35);
  --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 60%); /* restrained reflection, top-lit */
  --glass-t: .25s; /* every glass hover eases over 250ms */
}
/* charcoal glass on dark sections and footage; white glass on ivory sections (.glass-light) */
.glass { background: var(--glass-sheen), var(--glass-dark); border: 1px solid var(--glass-dark-line); color: var(--cream);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-hi), 0 10px 30px -18px rgba(0, 0, 0, .55); }
.glass-light { background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .38)); border: 1px solid var(--glass-light-line); color: var(--charcoal);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 12px 30px -20px rgba(23, 23, 23, .35); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .scrub-tc, .case-close { background: rgba(20, 20, 19, .88); }
  .glass-light { background: rgba(255, 255, 255, .94); }
  .dark .copy { background: rgba(245, 242, 235, .08); } }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border-radius: 999px;
  font: 600 11.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 10px var(--blue-2); }

/* ---------- nav: a floating glass bar that takes the tone of the section beneath it ---------- */
.nav { position: fixed; z-index: 40; top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 2 * max(16px, env(safe-area-inset-left, 0px))), 1240px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 9px 9px 22px; border-radius: 16px;
  background: rgba(20, 20, 19, .28); border: 1px solid var(--glass-dark-line); color: var(--cream);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-hi);
  transition: background .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease); }
.nav.solid { background: var(--glass-sheen), var(--glass-dark); box-shadow: var(--glass-hi), 0 18px 40px -24px rgba(0, 0, 0, .7); }
.nav.on-light { background: var(--glass-light); border-color: var(--glass-light-line); color: var(--charcoal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 18px 40px -26px rgba(23, 23, 23, .35); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav, .nav.solid { background: rgba(20, 20, 19, .9); } .nav.on-light { background: rgba(246, 244, 238, .94); } }
.mark { font: 600 22px/1 var(--serif); letter-spacing: -.01em; }
.nav nav { display: flex; align-items: center; gap: 4px; font: 500 14.5px/1 var(--sans); }
.nav nav a { padding: 10px 14px; border-radius: 10px; color: var(--cream-2); transition: color var(--glass-t), background var(--glass-t); }
.nav nav a:hover { color: var(--cream); background: rgba(245, 242, 235, .08); }
.nav nav .nav-cta { margin-left: 6px; color: var(--night); background: var(--cream); }
.nav nav .nav-cta:hover { background: var(--blue-2); color: var(--night); }
.nav.on-light nav a { color: var(--ink-2); }
.nav.on-light nav a:hover { color: var(--charcoal); background: rgba(23, 23, 23, .05); }
.nav.on-light nav .nav-cta { color: var(--ivory); background: var(--charcoal); }
.nav.on-light nav .nav-cta:hover { background: var(--blue); color: #fff; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 15px/1 var(--sans); transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--fg); color: var(--bg); }
.dark .btn-solid { color: var(--night); } /* charcoal on the lighter cinematic blue keeps contrast */
.btn-line { border: 1px solid var(--fg); }
.btn-line:hover { background: var(--fg); color: var(--bg); }
/* the showreel button over the dark opening: a pane of charcoal glass rather than a bare outline */
.btn-glass { border-color: var(--glass-dark-line); }
.btn-glass:hover { background: var(--glass-sheen), rgba(245, 242, 235, .14); color: var(--cream); border-color: rgba(245, 242, 235, .3); }
.btn-glass .i-play { border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; margin: 0 4px 0 0; }
.link { display: inline-block; margin-top: 26px; font: 600 15px/1.4 var(--sans); color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link:hover { color: var(--fg); }

/* ---------- opening (dark) ---------- */
.hero { padding-top: calc(clamp(120px, 14vw, 190px) + env(safe-area-inset-top, 0px)); padding-bottom: clamp(48px, 6vw, 96px); }
.hero-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: clamp(36px, 5vw, 64px); }
.hero-meta .label { margin: 0; }
.hero-title { max-width: 20ch; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 6vw, 120px); align-items: end; margin-top: clamp(40px, 5vw, 72px); }
.hero-foot .lede { grid-column: 2; grid-row: 1; }
.hero-foot .actions { grid-column: 1; grid-row: 1; display: flex; flex-wrap: wrap; gap: 12px; align-self: end; }

/* ---------- the cinema: the reel opens from the text column to the full screen width as you scroll (always 16:9) ---------- */
.cinema { margin: clamp(48px, 6vw, 88px) auto 0; max-width: 100%;
  width: var(--cw, min(calc(100% - 2 * var(--gutter)), calc(var(--max) - 2 * var(--gutter)))); }
.reel-frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #000; overflow: hidden; border-radius: var(--cr, 4px);
  box-shadow: 0 50px 120px -60px rgba(125, 150, 255, .35); }
.cinema .reel-cap { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.reel-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-variant-numeric: tabular-nums; }
.hero-chip { padding: 8px 16px 8px 13px; letter-spacing: .1em; }
.hero-chip b { color: var(--cream); font-weight: 700; }
.hero-chip span { color: var(--cream-2); }
/* the reel's floating glass control: play/pause and running timecode */
.reel-ctrl { position: absolute; z-index: 2; left: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px); display: flex; align-items: center; gap: 14px;
  padding: 6px 16px 6px 6px; border-radius: 999px; font: 600 11.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.reel-play { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(245, 242, 235, .92); color: var(--night);
  transition: transform .25s var(--ease), background .25s; }
.reel-play:hover { transform: scale(1.06); background: #fff; }
.i-pause, .i-play { display: block; width: 12px; height: 12px; }
.i-pause { border-left: 4px solid currentColor; border-right: 4px solid currentColor; width: 4px; }
.i-play { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.rc-k { color: var(--cream-2); }
.rc-tc { color: var(--cream); min-width: 11ch; }
.reel-sound { display: inline-flex; align-items: center; gap: 8px; margin-left: 2px; padding: 9px 13px; border-radius: 999px; color: var(--cream);
  font: inherit; letter-spacing: inherit; text-transform: inherit; background: rgba(245, 242, 235, .1); border: 1px solid var(--glass-dark-line);
  transition: background var(--glass-t), color var(--glass-t); }
.reel-sound:hover { background: rgba(245, 242, 235, .2); }
.reel-sound.on { background: var(--blue-2); color: var(--night); border-color: transparent; }
.snd-i .w { opacity: .35; }
.reel-sound.on .snd-i .w { opacity: 1; }
.rec { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #E2523F; margin-right: 9px; vertical-align: 1px; animation: rec 1.6s steps(2) infinite; }
@keyframes rec { 50% { opacity: .25; } }

/* ---------- proof (ivory) ---------- */
.proof { padding-top: var(--section); padding-bottom: var(--section); }
.proof-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.proof-copy .body { margin-top: 20px; }
.proof-shot { margin: 0; width: 100%; max-width: 860px; justify-self: end; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(23, 23, 23, .25); }
.proof-shot img { width: 100%; height: auto; } /* the screenshot keeps its own proportions */
/* worked with: the employers and clients from the CV, set as a quiet line of names */
.clients { margin-top: clamp(64px, 8vw, 112px); padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px 32px; align-items: baseline; }
.clients .label { margin: 0; }
.client-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font: 500 clamp(19px, 1.6vw, 24px)/1.4 var(--serif); color: var(--fg); }
.client-list li:not(:last-child)::after { content: "·"; margin: 0 14px; color: var(--muted); }
.proof-shot { position: relative; }

/* ---------- section heads ---------- */
.work, .approach { padding-top: var(--section); padding-bottom: var(--section); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 6vw, 120px); align-items: end;
  margin-bottom: clamp(48px, 6vw, 96px); }
.section-head > * { min-width: 0; }

/* ---------- work grid (dark) ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(48px, 5vw, 80px); }
.group-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; margin: clamp(16px, 2vw, 32px) 0 -16px; }
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group-label:first-child { margin-top: 0; }
.card { grid-column: span 6; min-width: 0; display: block; width: 100%; align-self: start; cursor: pointer; }
.card.size-xl { grid-column: 1 / -1; }
.card.size-l { grid-column: span 7; }
.card.size-m { grid-column: span 5; }
.card.size-s { grid-column: span 3; }
.frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: #000; border-radius: 2px; }
/* scrub: moving across a film scrubs its preview like a timeline */
.scrub { position: absolute; top: 0; bottom: 0; left: var(--x, 0); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.6);
  opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 2; }
.scrub-tc { position: absolute; left: 12px; bottom: 12px; z-index: 2; font: 600 12px/1 var(--sans); letter-spacing: .08em; font-variant-numeric: tabular-nums;
  color: #fff; background: var(--glass-dark); border: 1px solid var(--glass-dark-line); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  padding: 7px 10px; border-radius: 999px; opacity: 0; transition: opacity var(--glass-t); pointer-events: none; }
/* small glass labels sitting on the footage: category · runtime (and the PMO credential on Jewar) */
.on-frame { position: absolute; z-index: 2; top: clamp(10px, 1.4vw, 18px); left: clamp(10px, 1.4vw, 18px); padding: 6px 11px; font-size: 11px;
  transition: opacity var(--glass-t) var(--ease), transform var(--glass-t) var(--ease); }
.on-frame.end { left: auto; right: clamp(10px, 1.4vw, 18px); }
.on-frame .sep { width: 1px; height: 10px; background: rgba(245, 242, 235, .35); }
.card.scrubbing .on-frame { opacity: 0; transform: translateY(-4px); } /* out of the way while the footage is scrubbed */
.meta .hi { text-transform: none; letter-spacing: 0; font: 500 15px/1.3 var(--serif); color: var(--muted); }
.card.scrubbing .scrub, .card.scrubbing .scrub-tc { opacity: 1; }
.frame img, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .5s var(--ease), filter .5s var(--ease); }
.frame img { filter: brightness(.9); }
.frame video { opacity: 0; }
.card.playing .frame video { opacity: 1; }
.card:hover .frame img, .card:focus-visible .frame img { filter: brightness(1); }
.info { padding-top: 22px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; font: 600 12.5px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.meta .hl { color: var(--accent); }
.card h3 { margin: 0; font: 500 clamp(30px, 2.7vw, 44px)/1.04 var(--serif); letter-spacing: -.01em; transition: color .25s; }
.card.size-s h3 { font-size: clamp(26px, 2vw, 32px); }
.card .sub { margin: 10px 0 0; color: var(--muted); font-size: 16.5px; line-height: 1.6; max-width: 54ch; }
.card .more { display: inline-block; margin-top: 16px; font: 600 14.5px/1.3 var(--sans); color: var(--accent); }
.card:hover h3, .card:focus-visible h3 { color: var(--accent); }
.card.size-xl .info { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 8px clamp(32px, 6vw, 120px); align-items: start; }
.card.size-xl .meta { grid-column: 1 / -1; }
.card.size-xl h3 { font-size: clamp(40px, 4.6vw, 76px); line-height: .98; }
.card.size-xl .sub { margin-top: 6px; font-size: 17.5px; }

/* ---------- contact sheet (dark): one filmstrip per film ---------- */
.index { margin-top: var(--section); padding-top: var(--section); border-top: 1px solid var(--line); }
.index-list { display: grid; border-top: 1px solid var(--line); }
/* title line on top, the strip below at the full content width so each frame reads */
.index-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 24px;
  width: 100%; padding: 28px 0 32px; border-bottom: 1px solid var(--line); }
.index-row .strip-wrap { grid-column: 1 / -1; grid-row: 2; display: block; min-width: 0; }
.index-row .t { display: block; font: 500 clamp(22px, 1.8vw, 28px)/1.1 var(--serif); transition: color .25s; }
.index-row .k { display: block; margin-top: 8px; font: 600 12px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.index-row:hover .t, .index-row:focus-visible .t { color: var(--accent); }
.strip { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 135; max-width: 100%; border-radius: 2px;
  filter: brightness(.82) saturate(.9); transition: filter .5s var(--ease); }
.index-row:hover .strip, .index-row:focus-visible .strip { filter: none; }
.index-row .s { font: 500 13.5px/1.5 var(--sans); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.index-row .s b { font: 500 24px/1 var(--serif); color: var(--fg); margin-right: 6px; }
.index-row .t { font-size: clamp(26px, 2.2vw, 34px); }
.index-note { margin-top: 18px; }

/* ---------- approach (ivory) ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0 0 clamp(64px, 7vw, 112px); }
.numbers div { border-top: 1px solid var(--fg); padding-top: 18px; }
.numbers dt { font: 600 12.5px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.numbers dd { margin: 10px 0 0; font: 500 clamp(48px, 5.4vw, 88px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.numbers dd small { font-size: .42em; color: var(--muted); }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 112px); }
.pillars li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; padding: 30px 0 38px; border-top: 1px solid var(--line); }
.pillars li:last-child { grid-column: 1 / -1; }
.pnum { grid-row: span 2; font: 600 15px/1.9 var(--sans); color: var(--accent); font-variant-numeric: tabular-nums; }
.pillars h3 { margin: 0 0 10px; font: 500 clamp(28px, 2.4vw, 38px)/1.08 var(--serif); }
.pillars p { margin: 0; color: var(--muted); max-width: 58ch; }

/* ---------- about (ivory) ---------- */
.about { padding-top: 0; padding-bottom: var(--section); }
.about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 112px); align-items: start;
  padding-top: var(--section); border-top: 1px solid var(--line); }
.about-photo { margin: 0; position: sticky; top: 96px; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; border-radius: 2px; }
.about-copy .lede { margin-top: 24px; max-width: 48ch; }
/* software + AI, in the opening under the name: the first thing a reader sees after who and what */
/* name chip and location share the first line; the toolbelt runs full width beneath them */
.hero-meta:has(.hero-id) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 24px; }
.hero-id { display: contents; }
.hero-chip { grid-column: 1; grid-row: 1; justify-self: start; }
.hero-where { grid-column: 2; grid-row: 1; display: grid; justify-items: end; gap: 10px; }
.hero-where .label { margin: 0; }
/* availability: a quiet live dot, linking to contact */
.avail { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px 7px 11px; border-radius: 999px; font: 600 12.5px/1 var(--sans); letter-spacing: .04em;
  color: var(--cream); border: 1px solid rgba(74, 222, 128, .28); background: rgba(74, 222, 128, .08); transition: background var(--glass-t), border-color var(--glass-t); }
.avail:hover { background: rgba(74, 222, 128, .16); border-color: rgba(74, 222, 128, .5); }
.avail i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; }
.avail i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #4ADE80; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
/* language switch in the nav */
.lang-btn { padding: 9px 12px; border-radius: 10px; font: 600 14px/1 var(--sans); color: var(--cream-2); border: 1px solid var(--glass-dark-line); transition: color var(--glass-t), background var(--glass-t); }
.lang-btn:hover { color: var(--cream); background: rgba(245, 242, 235, .08); }
.nav.on-light .lang-btn { color: var(--ink-2); border-color: var(--glass-light-line); }
.nav.on-light .lang-btn:hover { color: var(--charcoal); background: rgba(23, 23, 23, .05); }

.toolbelt { grid-column: 1 / -1; grid-row: 2; }
.toolbelt { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toolbelt li { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 12px; font: 600 13.5px/1.2 var(--sans); color: var(--cream);
  border: 1px solid var(--glass-dark-line); background: var(--glass-sheen), rgba(245, 242, 235, .04); box-shadow: var(--glass-hi);
  transition: transform var(--glass-t) var(--ease), border-color var(--glass-t); }
.toolbelt li:hover { transform: translateY(-1px); border-color: rgba(125, 150, 255, .45); }
.ico { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 7px; background: var(--b, #171717); color: var(--f, #F5F2EB);
  font: 700 13px/1 var(--sans); letter-spacing: -.01em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ico-fcp { background: linear-gradient(135deg, #3a3a3e, #121214); color: #E9E6DF; }
.ico-ai { background: linear-gradient(135deg, #315CFF, #7D96FF); color: #fff; }
.toolbelt li { max-width: 100%; }
.ai-names { min-width: 0; color: var(--cream-2); }
.ai-names b { color: var(--cream); margin-right: 4px; }
.cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px clamp(32px, 5vw, 80px); margin-top: clamp(40px, 5vw, 64px); }
.cols .label { margin-bottom: 14px; }
.side .label:not(:first-child) { margin-top: 32px; }
.timeline { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline b { font: 600 16.5px/1.4 var(--sans); }
.timeline span { grid-column: 1; color: var(--muted); font-size: 15px; }
.timeline i { grid-column: 2; grid-row: 1 / span 2; font: 500 14px/1.5 var(--sans); font-style: normal; color: var(--muted); white-space: nowrap; }
.timeline li.now i { color: var(--accent); font-weight: 700; }
/* a centred rule between the current role and the ones before it */
.timeline li.sep { display: flex; align-items: center; gap: 16px; padding: 26px 0 10px; border-top: 1px solid var(--line);
  font: 600 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.timeline li.sep::before, .timeline li.sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.timeline li.sep + li { border-top: 0; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: 500 14.5px/1.3 var(--sans); transition: border-color var(--glass-t), transform var(--glass-t) var(--ease); }
.tags li:hover { border-color: rgba(49, 92, 255, .35); transform: translateY(-1px); }

/* ---------- contact (dark) ---------- */
.contact { padding-top: var(--section); }
.contact-title { font: 500 clamp(52px, 8vw, 140px)/.92 var(--serif); letter-spacing: -.02em; margin: 0; max-width: 18ch; }
.contact-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: clamp(48px, 6vw, 88px);
  padding-top: 32px; border-top: 1px solid var(--line); }
.big-wrap { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; min-width: 0; }
.big-link { font: 500 clamp(30px, 4vw, 60px)/1.05 var(--serif); border-bottom: 1px solid var(--accent); padding-bottom: 6px; overflow-wrap: anywhere; user-select: all; }
.big-link:hover { color: var(--accent); }
.contact-meta { display: grid; gap: 10px; justify-items: end; color: var(--muted); font-size: 16px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.contact-actions:empty { display: none; }
.case-full { margin: 22px 0 0; }
.contact-line { display: flex; align-items: center; gap: 12px; color: var(--fg); font-variant-numeric: tabular-nums; }
.copy { font: 600 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px;
  transition: color .2s, border-color .2s; }
.copy:hover { color: var(--fg); border-color: var(--muted); }
.dark .copy { background: rgba(245, 242, 235, .05); border-color: var(--glass-dark-line); box-shadow: var(--glass-hi); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(80px, 10vw, 140px);
  padding-top: 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot a:hover { color: var(--fg); }

/* ---------- case study (dark) ---------- */
.case { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: flex-end; background: transparent; }
.case[hidden] { display: none; }
.case-scrim { position: absolute; inset: 0; background: rgba(8, 8, 8, .8); opacity: 0; transition: opacity .4s var(--ease); }
.case-sheet { position: relative; width: min(1180px, 100%); height: 100%; overflow-y: auto; background: var(--night-2); color: var(--fg);
  transform: translateX(32px); opacity: 0; transition: transform .5s var(--ease), opacity .4s var(--ease); outline: none; overscroll-behavior: contain; }
.case.open .case-scrim { opacity: 1; }
.case.open .case-sheet { transform: none; opacity: 1; }
.case-close { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); z-index: 3;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--cream);
  background: var(--glass-dark); border: 1px solid var(--glass-dark-line); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-hi), 0 10px 30px -14px rgba(0, 0, 0, .6); transition: background .25s, color .25s; }
.case-close:hover { background: var(--cream); color: var(--night); }
.case-media { position: relative; background: #000; }
.case-media .on-frame { top: calc(18px + env(safe-area-inset-top, 0px)); left: max(clamp(20px, 4vw, 64px), env(safe-area-inset-left, 0px)); pointer-events: none; }
.case-media.playing .on-frame { opacity: 0; }
.case-media video { width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.case-body { padding: clamp(32px, 4vw, 60px) max(clamp(20px, 4vw, 64px), env(safe-area-inset-right, 0px)) calc(56px + env(safe-area-inset-bottom, 0px)) max(clamp(20px, 4vw, 64px), env(safe-area-inset-left, 0px)); }
.case-hi { font: 500 22px/1.4 var(--serif); color: var(--muted); margin: 10px 0 0; }
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 32px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-meta dt { font: 600 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.case-meta dd { margin: 6px 0 0; font: 500 26px/1.15 var(--serif); font-variant-numeric: tabular-nums; }
.case-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px clamp(24px, 4vw, 56px); }
.case-text section h3 { font: 500 28px/1.15 var(--serif); margin: 20px 0 8px; }
.case-text section p { margin: 0; color: var(--muted); }
.case-text .wide { grid-column: 1 / -1; }
.case-text .wide p { color: var(--fg); font-size: 18px; max-width: 64ch; }
.rhythm { margin-top: 44px; padding-top: 8px; border-top: 1px solid var(--line); }
.rhythm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rhythm .label { margin: 18px 0 0; }
#rhythm { width: 100%; height: 140px; margin: 14px 0 12px; cursor: pointer; touch-action: manipulation; }
.case-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--line); }
body.lock { overflow: hidden; }

/* ---------- motion: one load sequence on the hero; the rest is visible at rest ---------- */
.hero .reveal { animation: rise 1s var(--ease) both; }
.hero .reveal:nth-child(2) { animation-delay: .08s; }
.hero .reveal:nth-child(3) { animation-delay: .18s; }
@keyframes rise { from { opacity: .3; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .reveal, .rec, .avail i::after { animation: none; }
  .btn, .frame img, .frame video, .case-sheet, .case-scrim, .nav, .nav nav a, .on-frame, .scrub-tc, .reel-play, .tags li, .toolbelt li, .case-close { transition: none; }
  .btn:hover, .reel-play:hover, .tags li:hover, .toolbelt li:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .card.size-s { grid-column: span 6; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 900px) {
  .hero-foot, .section-head, .proof-grid, .about-grid, .cols, .card.size-xl .info { grid-template-columns: minmax(0, 1fr); }
  .hero-foot .lede, .hero-foot .actions { grid-column: 1; grid-row: auto; }
  .hero-foot .actions { order: 2; }
  .card.size-l, .card.size-m { grid-column: 1 / -1; }
  .proof-shot { justify-self: stretch; }
  .about-photo { position: static; max-width: 380px; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-text { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .index-row .strip { filter: none; aspect-ratio: 966 / 272; } /* phone version: the eight frames as a 4×2 grid */
  .index-row .s b { display: block; }
  .nav nav a:not(.nav-cta) { display: none; }
  .card, .card.size-s { grid-column: 1 / -1; }
  .numbers { gap: 28px 16px; }
  .hide-sm { display: none; }
  .hero-chip { white-space: normal; flex-wrap: wrap; row-gap: 4px; border-radius: 14px; }
  .hero-meta:has(.hero-id) { grid-template-columns: minmax(0, 1fr); }
  .hero-where { grid-column: 1; grid-row: 2; justify-items: start; }
  .toolbelt { grid-row: 3; }
  .nav { padding-left: 16px; }
  .on-frame.end { left: clamp(10px, 1.4vw, 18px); right: auto; top: auto; bottom: 10px; }
  .reel-ctrl { gap: 10px; padding-right: 12px; }
  .reel-ctrl .rc-k { display: none; }
  .case-media .on-frame { display: none; } /* the close button owns that corner on a phone */
  .actions .btn { flex: 1 1 auto; }
  .contact-meta { justify-items: start; }
  .clients { grid-template-columns: minmax(0, 1fr); }
  .client-list li:not(:last-child)::after { margin: 0 10px; }
  .contact-actions .btn { flex: 1 1 auto; }
  .card h3 { font-size: 30px; }
  .card.size-xl h3 { font-size: 38px; }
}

/* Hindi: Devanagari sits larger and needs more line room than the Latin faces */
html[lang="hi"] .hero-title { font-size: clamp(44px, 6.6vw, 118px); line-height: 1.12; }
html[lang="hi"] .h1, html[lang="hi"] .contact-title { line-height: 1.18; }
html[lang="hi"] .h2, html[lang="hi"] .card h3, html[lang="hi"] .pillars h3 { line-height: 1.25; }
html[lang="hi"] .label, html[lang="hi"] .chip, html[lang="hi"] .meta { letter-spacing: .02em; }
html[lang="hi"] body { line-height: 1.75; }
