/* Babita Taneja · editorial report direction, brand palette (deep teal, champagne gold, ivory) */

@font-face { font-family: 'Instrument Serif'; src: url(../fonts/instrument-serif.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url(../fonts/hanken-grotesk.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ground: #f3f2ee;   /* bone paper */
  --pale: #e8e6df;     /* tile tone, one step down */
  --pale-2: #dddad1;   /* band tone, one more */
  --ink: #0f2a2d;      /* deep teal ink */
  --soft: #4b6062;     /* secondary text */
  --teal: #0f3d41;     /* solid block */
  --teal-2: #134a4e;   /* alternate row */
  --on-teal: #f3f2ee;
  --on-teal-soft: #b9c7c3;
  --gold: #c9a86a;     /* champagne: the accent, on the action and one statement */
  --gold-strong: #b8955a;

  --display: 'Instrument Serif', 'Times New Roman', serif;
  --text: 'Hanken Grotesk', system-ui, sans-serif;

  /* five steps */
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
  --step-giant: clamp(4.5rem, 2rem + 9vw, 11.5rem);

  --m: clamp(16px, 2.6vw, 40px);  /* page margin */
  --axis: 42vw;                   /* the column line */
  --gap: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; background: var(--ground); color: var(--ink); font: 400 var(--step-body)/1.5 var(--text); font-kerning: normal; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; background: var(--ink); color: var(--ground); padding: 12px 16px; z-index: 10; }
.skip:focus { top: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  background: var(--gold); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--step-body);
  transition: background-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--gold-strong); } }

h1, h2, .step, .num, .contact-line, .wordmark text { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 0.92; }
h1, h2, h3, .step { text-wrap: balance; }
[id] { scroll-margin-top: 12px; }

/* ---------------------------------------------------------------- hero board */
.board {
  min-height: 100svh; padding: max(var(--gap), env(safe-area-inset-top)) max(var(--gap), env(safe-area-inset-right)) var(--gap) max(var(--gap), env(safe-area-inset-left)); display: grid; gap: var(--gap);
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 60px 1.3fr 1fr;
  grid-template-areas: "bar bar bar bar" "name name map map" "years years pair pair";
}
.tile { background: var(--pale); position: relative; overflow: hidden; }
.board-bar { grid-area: bar; display: grid; grid-template-columns: 60px 1fr auto; gap: var(--gap); }
.mark { background: var(--teal); color: var(--gold); display: grid; place-items: center; font: 400 28px/1 var(--display); text-decoration: none; letter-spacing: -0.02em; }
.links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); white-space: nowrap; /* begin at the centre line when there is room, never squeeze the links */ padding-left: max(24px, min(calc(50vw - 60px - 3 * var(--gap)), calc(100% - 480px))); }
.links a { text-decoration: none; text-underline-offset: 0.25em; }
.links a:hover { text-decoration: underline; }
.board-bar .action { min-height: 60px; padding: 0 28px; background: var(--gold); }
@media (hover: hover) and (pointer: fine) { .board-bar .action:hover { background: var(--gold-strong); } }

.name { grid-area: name; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; }
.name h1 { font-size: clamp(4rem, 13vw, 13rem); letter-spacing: -0.035em; line-height: 0.86; }
.name h1 span { display: block; }
.role { font-size: var(--step-lead); line-height: 1.25; }

.map-tile { grid-area: map; background: var(--teal); }
.shutter { position: absolute; inset: 0; }
.map { width: 100%; height: 100%; transform-origin: 50% 60%; }
.map .land path { fill: #1a5257; }
.map .marked path { fill: var(--gold); }
.map .route { fill: none; stroke: var(--on-teal); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.map .pin { fill: var(--on-teal); }
.map .pin-name { fill: var(--on-teal); font: 600 30px/1 var(--text); }
.map .pin-role { fill: var(--on-teal-soft); font: 400 24px/1 var(--text); }
.map .traveller { fill: var(--gold); }

.years { grid-area: years; background: var(--teal-2); color: var(--on-teal); padding: 24px; display: flex; align-items: flex-end; }
.years-figure { display: flex; align-items: flex-end; gap: 20px; }
.num { font-size: clamp(6rem, 40svh, 26rem); line-height: 0.78; color: var(--gold); letter-spacing: -0.04em; }
.unit { font-size: var(--step-lead); line-height: 1.2; max-width: 11em; padding-bottom: 0.3em; }
.portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.years.has-portrait .years-figure { position: relative; z-index: 1; }

.pair { grid-area: pair; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.pair .tile { padding: 24px; font-size: var(--step-lead); line-height: 1.25; }
.pair .dark { background: var(--ink); color: var(--on-teal); }
.pair .gold { background: var(--gold); color: var(--ink); }

/* ---------------------------------------------------------------- about */
.about { padding: clamp(96px, 12vw, 180px) var(--m); }
.about-row { display: grid; grid-template-columns: calc(var(--axis) - var(--m)) 1fr; }
.facts { display: grid; gap: 20px; align-content: start; max-width: 260px; font-size: var(--step-small); }
.facts dt { color: var(--soft); }
.facts dd { color: var(--ink); }
.about-text { font-size: var(--step-lead); line-height: 1.35; max-width: 34em; }
.record { margin-top: 120px; }
.record-word { font-size: var(--step-small); }
.record-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 64px; }
.record-lists li { display: flex; justify-content: space-between; gap: 16px; font-size: var(--step-small); padding: 10px 0; }
.record-lists li + li { background: none; }
.record-lists li span:last-child { color: var(--soft); text-align: right; }

/* ---------------------------------------------------------------- expertise */
.expertise { display: grid; grid-template-columns: 1fr 1fr; }
.cell { background: var(--pale); padding: clamp(32px, 4vw, 64px) var(--m); display: flex; flex-direction: column; justify-content: space-between; gap: 64px; min-height: 90svh; position: sticky; top: 0; height: 100svh; }
.cell h2 { font-size: var(--step-head); }
.cell h2 span { display: block; }
.cell h2 .l2 { text-align: right; }
.cell-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.cell-foot p { max-width: 30ch; }
.rows { background: var(--ink); color: var(--on-teal); }
.rows li { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 24px; padding: 32px 28px; min-height: 15svh; align-items: start; }
.rows li:nth-child(even) { background: var(--teal); }
.rows h3 { font: 400 var(--step-lead)/1.05 var(--display); letter-spacing: -0.01em; }
.rows p { font-size: var(--step-body); }
.rows .terms { color: var(--on-teal-soft); font-size: var(--step-small); }

/* ---------------------------------------------------------------- approach */
.approach { padding: clamp(120px, 14vw, 220px) var(--m); }
.stairs { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; row-gap: 56px; }
.stairs li { grid-column: var(--start) / span 8; }
.stairs li:nth-child(1) { --start: 1; }
.stairs li:nth-child(2) { --start: 2; }
.stairs li:nth-child(3) { --start: 3; }
.stairs li:nth-child(4) { --start: 4; }
.stairs li:nth-child(5) { --start: 5; }
.step { font-size: var(--step-head); line-height: 1; }
.step.accent { color: var(--teal); }
.stairs li p:not(.step) { margin-top: 12px; max-width: 36ch; color: var(--soft); }

/* ---------------------------------------------------------------- where to start */
.start { padding: clamp(96px, 10vw, 160px) var(--m); background: var(--pale); }
.start-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.start-head h2 { font-size: var(--step-head); max-width: 13em; }
.start-head .soft { color: var(--soft); display: block; }
.start-body { margin-top: 56px; display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 40px; align-items: start; }
.tabs { display: grid; gap: 6px; }
.tabs button {
  all: unset; box-sizing: border-box; cursor: pointer; min-height: 64px; padding: 14px 18px; background: var(--pale-2);
  font: 500 var(--step-body)/1.25 var(--text); color: var(--ink); transition: background-color 160ms ease, color 160ms ease;
}
.tabs button:hover { background: #d3cfc4; }
.tabs button[aria-selected="true"] { background: var(--teal); color: var(--on-teal); }
.tabs button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.bands { display: grid; gap: 4px; }
.bands li { display: grid; grid-template-columns: minmax(130px, 22%) 1fr; gap: 24px; align-items: center; min-height: 92px; padding: 18px 24px; background: var(--ground); }
.bands li:nth-child(even) { background: #eceae4; }
.area { font: 400 var(--step-lead)/1 var(--display); color: var(--teal); }
.what { display: grid; gap: 4px; }
.what b { font-weight: 600; font-size: var(--step-body); }
.what span { color: var(--soft); font-size: var(--step-small); }

/* ---------------------------------------------------------------- contact */
.contact { padding: 160px var(--m) 120px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; align-items: start; }
.contact-line { grid-column: 1 / span 6; font-size: var(--step-head); line-height: 1; max-width: 13em; }
.contact-portrait { grid-column: 8 / span 2; aspect-ratio: 1; background: center / cover no-repeat; max-width: 170px; }
.contact-portrait:not(.has) { visibility: hidden; }
.contact-links { grid-column: 10 / span 3; display: grid; gap: 10px; justify-items: start; }
.contact-links .q { font-weight: 600; font-size: var(--step-lead); margin-bottom: 10px; }
.contact-links a { font-size: var(--step-lead); text-underline-offset: 0.2em; text-decoration-thickness: 0.06em; padding: 4px 0; }
.contact-links .where { color: var(--soft); font-size: var(--step-small); margin-top: 10px; }

/* ---------------------------------------------------------------- footer (curtain) */
main { position: relative; z-index: 1; background: var(--ground); }
.foot {
  position: sticky; bottom: 0; z-index: 0; min-height: 100svh; background: var(--teal); color: var(--on-teal);
  display: grid; grid-template-rows: auto 1fr auto auto; padding: 40px var(--m) 24px;
}
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.foot-cols li { font-size: var(--step-body); line-height: 1.7; color: var(--on-teal-soft); }
.foot-cols li:first-child { color: var(--on-teal); }
.foot-cols a { color: var(--on-teal-soft); text-underline-offset: 0.2em; }
.foot-cols a:hover { color: var(--on-teal); }
.wordmark { grid-row: 3; width: 100%; height: auto; overflow: visible; }
.wordmark text { fill: var(--gold); font-size: 182px; }
.legal { grid-row: 4; margin-top: 20px; font-size: var(--step-small); color: var(--on-teal-soft); }

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1100px) {
  .board { grid-template-columns: 1fr 1fr; grid-template-rows: 60px 34svh auto auto; grid-template-areas: "bar bar" "name name" "map map" "pair pair" "years years"; min-height: 0; }
  .board-bar { grid-template-columns: 60px 1fr; }
  .links { display: none; }
  .board-bar .action { justify-content: flex-end; }
  .name h1 { font-size: clamp(4rem, 17vw, 11rem); }
  .map-tile { aspect-ratio: 4 / 3; }
  .pair .tile { aspect-ratio: 16 / 9; }
  .years { min-height: 40svh; }
  .num { font-size: clamp(6rem, 30vw, 20rem); }
  .cell { position: static; height: auto; min-height: 0; gap: 48px; }
  .expertise { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .contact-line { grid-column: 1 / -1; }
  .contact-portrait { grid-column: 1; }
  .contact-links { grid-column: 2; }
  .contact-portrait:not(.has) { display: none; }
  .contact-portrait:not(.has) + .contact-links { grid-column: 1 / -1; }
  .rows li { grid-template-columns: 1fr 1fr; }
  .rows li h3 { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- phone */
@media (max-width: 760px) {
  :root { --axis: 0px; }
  .board { grid-template-columns: 1fr 1fr; grid-template-rows: 56px 30svh auto auto; grid-template-areas: "bar bar" "name name" "map map" "pair pair" "years years"; min-height: 0; }
  .board-bar { grid-template-columns: 56px 1fr; }
  .links { display: none; }
  .board-bar .action { min-height: 56px; justify-content: flex-end; }
  .name { padding: 16px; gap: 10px; }
  .name h1 { font-size: 21vw; }
  .role { font-size: var(--step-body); }
  .map-tile { aspect-ratio: 4 / 3; }
  .map .pin-name { font-size: 44px; }
  .map .pin-role { display: none; }
  .map .pin { r: 12px; }
  .map [data-pin="my"] .pin-name { transform: translate(84px, 150px); }
  .pair .tile { aspect-ratio: 1; padding: 16px; font-size: var(--step-body); }
  .years { min-height: 48svh; padding: 16px; }
  .num { font-size: 34vw; }

  .about-row { grid-template-columns: 1fr; gap: 40px; }
  .about-row .facts { order: 2; grid-template-columns: 1fr 1fr; max-width: none; font-size: var(--step-small); }
  .about-row .facts div:last-child { grid-column: 1 / -1; }
  .about-text { font-size: var(--step-lead); }
  .record { margin-top: 64px; gap: 16px; }
  .record-lists { grid-template-columns: 1fr; gap: 40px; }

  .expertise { grid-template-columns: 1fr; }
  .cell { position: static; height: auto; min-height: 0; gap: 40px; }
  .cell h2 { font-size: var(--step-head); }
  .cell-foot { flex-direction: column; align-items: flex-start; }
  .rows li { grid-template-columns: 1fr; gap: 10px; padding: 28px 20px; }

  .stairs { display: grid; grid-template-columns: 1fr; row-gap: 40px; }
  .stairs li { grid-column: 1; padding-left: calc((var(--i) - 1) * 6vw); }
  .stairs li:nth-child(1) { --i: 1; } .stairs li:nth-child(2) { --i: 2; } .stairs li:nth-child(3) { --i: 3; } .stairs li:nth-child(4) { --i: 4; } .stairs li:nth-child(5) { --i: 5; }
  .step { font-size: var(--step-head); }

  .start-head { flex-direction: column; align-items: stretch; }
  .start-head .btn { width: 100%; }
  .start-body { grid-template-columns: 1fr; gap: 20px; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .tabs button { min-height: 72px; padding: 12px 14px; font-size: var(--step-small); }
  .bands li { grid-template-columns: 1fr; gap: 8px; padding: 16px; }

  .contact { grid-template-columns: 96px 1fr; column-gap: 16px; row-gap: 32px; padding: 96px var(--m) 72px; }
  .contact-line { grid-column: 1 / -1; }
  .contact-portrait { grid-column: 1; width: 96px; }
  .contact-links { grid-column: 2; }
  .contact-portrait:not(.has) { display: none; }
  .contact-portrait:not(.has) + .contact-links { grid-column: 1 / -1; }

  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .foot { min-height: 88svh; }
}

/* tap targets */
.contact-links a { min-height: 44px; display: inline-flex; align-items: center; }
.foot-cols a { display: inline-block; padding: 10px 0; margin: -10px 0; }
@media (max-width: 760px) { .foot-cols a { padding: 12px 0; } }
.bands-wrap, [role=tabpanel]:focus-visible { outline-offset: 4px; }
