@charset "UTF-8";
/* =========================================================================
   ankitaggarwal.in — Deep Blue, White & Gold
   Layers: tokens → reset → base → layout → chrome → components → utilities

   GROUNDS — four, each with a fixed job. No two adjacent blocks share one.
     --white   default reading sections, the ones carrying the most text
     --tint    card sections, so white cards lift off the ground
     --warm    the ledger only, which makes it the page's featured block
     --blue    hero and footer, bookending the page

   GOLD — never text on a light ground (#FFC93C is ~1.6:1 on white).
   It is a fill, a rule, or an active state; --gold-deep is the text variant.
   ========================================================================= */

/* ------------------------------------------------------------------ 1. TOKENS */
:root {
  /* Grounds */
  --white:  #FFFFFF;
  --tint:   #EFF4F8;   /* pale blue */
  --warm:   #FDF7E8;   /* warm cream — ledger */
  --blue:   #123A5E;   /* hero */
  --blue-2: #0F3350;   /* footer, a shade deeper */

  /* Ink on light grounds */
  --ink:      #10314E;  /* headings — deep blue */
  --ink-body: #2C3E4F;
  --muted:    #4E6070;  /* 6.5:1 white · 5.9:1 tint · 6.1:1 warm */
  --soft:     #5A6C7C;  /* 5.5:1 white · 5.0:1 tint · 5.1:1 warm */
  --link:     #1C6BA8;  /* blue accent for eyebrows and links */

  /* Gold */
  --gold:      #FFC93C;  /* fills, rules, active state — 7.7:1 on blue */
  --gold-deep: #8A6410;  /* gold as TEXT on a light ground — 5.0:1+ */
  --on-gold:   #10314E;  /* 8.7:1 on gold */

  /* Ink on the blue ground */
  --on-blue:     #FFFFFF;   /* 11.7:1 */
  --on-blue-mut: #B9CEDE;   /*  7.2:1 */
  --blue-line:   rgba(255, 255, 255, 0.20);

  --rule:      rgba(16, 49, 78, 0.14);
  --rule-2:    rgba(16, 49, 78, 0.07);
  --warm-rule: #F0E4C6;
  --leader:    rgba(16, 49, 78, 0.30);

  /* Type */
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-xs:  0.75rem;
  --t-sm:  0.8125rem;
  --t-cap: 0.875rem;
  --t-base: 1.0625rem;
  --t-lg:  clamp(1.125rem, 0.4vw + 1.05rem, 1.25rem);
  --t-h4:  clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
  --t-h3:  clamp(1.5rem, 1vw + 1.25rem, 2rem);
  --t-h2:  clamp(2rem, 2vw + 1.5rem, 2.875rem);
  --t-h1:  clamp(2.75rem, 5vw + 1rem, 5rem);

  /* Space — 8px base */
  --s-1: 0.5rem;  --s-2: 1rem;   --s-3: 1.5rem;  --s-4: 2rem;
  --s-5: 3rem;    --s-6: 4rem;   --s-7: 6rem;    --s-8: 8rem;

  --wrap: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --nav-h: 68px;
  --r: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------------------------ 2. RESET */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }

/* ------------------------------------------------------------------ 3. BASE */
body {
  background: var(--white);
  color: var(--ink-body);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; color: var(--ink); letter-spacing: -0.015em; }
h1 { font-size: var(--t-h1); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); }

p { max-width: 68ch; }
strong { font-weight: 600; color: var(--ink); }

::selection { background: var(--gold); color: var(--on-gold); }

:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: var(--r); }
.hero :focus-visible, .site-foot :focus-visible, .lightbox :focus-visible { outline-color: var(--gold); }

.skip {
  position: absolute; left: var(--s-2); top: -100px; z-index: 999;
  background: var(--gold); color: var(--on-gold);
  padding: var(--s-1) var(--s-2); font-family: var(--mono); font-size: var(--t-sm);
  transition: top 0.2s var(--ease);
}
.skip:focus { top: var(--s-2); }

/* ------------------------------------------------------------------ 4. LAYOUT */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); background: var(--white); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* Card sections. The tint is what lets a white card read as raised without a
   shadow — which is why card-heavy sections get it and text sections do not. */
.section--tint { background: var(--tint); }

/* Two white sections in a row need a hairline; a change of ground does not. */
.section + .section { border-top: 1px solid var(--rule-2); }
.section--tint + .section, .section + .section--tint { border-top: 0; }

/* Section head: mono eyebrow + gold rule. The structural rhythm of the page. */
.eyebrow {
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--link);
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: var(--s-2);
}
.eyebrow::after { content: ""; flex: 1; height: 2px; background: var(--gold); }

.sec-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
/* :not(.eyebrow) matters — .sec-head > p is (0,1,1) and would otherwise
   outrank the .eyebrow class (0,1,0) and restyle the eyebrow as body copy. */
.sec-head > p:not(.eyebrow) { margin-top: var(--s-2); color: var(--muted); font-size: var(--t-lg); }

.grid { display: grid; gap: var(--s-4); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* ------------------------------------------------------------------ 5. BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: var(--t-sm); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  padding: 0.75rem 1.4rem; border-radius: var(--r);
  border: 1px solid transparent; transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.btn--primary:hover { background: #F0B722; border-color: #F0B722; color: var(--on-gold); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.hero .btn--ghost { border-color: var(--on-blue); color: var(--on-blue); }
.hero .btn--ghost:hover { background: var(--on-blue); color: var(--blue); border-color: var(--on-blue); }
.btn svg { width: 1em; height: 1em; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
  font-family: var(--mono); font-size: var(--t-sm); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--link);
  border-bottom: 2px solid var(--gold); padding-bottom: 2px;
  transition: gap 0.2s var(--ease);
}
.link-arrow:hover { gap: 0.85rem; color: var(--ink); }
.hero .link-arrow, .site-foot .link-arrow { color: var(--gold); }

/* ------------------------------------------------------------------ 6. NAV */
.site-nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: var(--white); color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.site-nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.wordmark {
  font-family: var(--mono); font-size: var(--t-cap); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); white-space: nowrap;
}
.wordmark b { color: var(--gold-deep); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav-links a {
  font-family: var(--mono); font-size: var(--t-sm); letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; color: var(--muted);
  padding: 0.4rem 0; position: relative; transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--gold);
}
/* .nav-links a sets a muted colour; buttons must win it back. */
.nav-links .btn { padding: 0.55rem 1.1rem; }
.nav-links .btn--primary { color: var(--on-gold); }
.nav-links .btn--primary:hover { color: var(--on-gold); }
.nav-links .btn--ghost { color: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); margin-right: -10px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 3px solid var(--gold);
    box-shadow: 0 18px 30px -22px rgba(16, 49, 78, 0.5);
    padding: var(--s-2) var(--gutter) var(--s-4);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 0.95rem 0; border-bottom: 1px solid var(--rule-2); font-size: var(--t-cap); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--link); }
  .nav-links .btn { margin-top: var(--s-3); justify-content: center; border-bottom: 0; }
}

/* ------------------------------------------------------------------ 7. HERO */
.hero { background: var(--blue); color: var(--on-blue-mut); position: relative; }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(3.5rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.hero-kicker {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: var(--s-3);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
}
.hero-kicker span::before { content: "／"; margin-right: 0.75rem; opacity: 0.5; }
.hero-kicker span:first-child::before { content: none; margin: 0; }

.hero h1, .hero h2, .hero h3 { color: var(--on-blue); }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--gold); }
.hero .eyebrow { color: var(--gold); }

.hero-role {
  font-family: var(--display); font-size: var(--t-h4); font-style: italic;
  font-weight: 400; color: var(--on-blue); margin-top: var(--s-2); line-height: 1.35;
}
.hero-lede { margin-top: var(--s-3); font-size: var(--t-lg); color: var(--on-blue-mut); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--s-4); }
.badge {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--blue-line); color: var(--on-blue-mut);
  padding: 0.35rem 0.7rem; border-radius: var(--r);
}
.badge b { color: var(--gold); font-weight: 500; }

.hero-portrait { position: relative; }
.hero-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
/* Offset gold frame, but only behind a real photograph — pairing it with the
   dashed empty state reads as clutter rather than intent. */
.hero-portrait:not(:has(.portrait-empty))::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 2px solid var(--gold); border-radius: var(--r); z-index: -1;
}
.portrait-empty {
  aspect-ratio: 4 / 5; border: 1px dashed var(--blue-line); border-radius: var(--r);
  display: grid; place-content: center; gap: 0.5rem; text-align: center; padding: var(--s-3);
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--on-blue-mut);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 320px; order: -1; }
}

/* ------------------------------------------------------ 8. LEDGER — signature */
/* Metrics as a commercial schedule: mono tabular figures, dotted leaders,
   hairline rules. Drawn from the price lists and dealer P&Ls of the trade.
   On a light ground it sits in the warm cream panel — the one warm note on
   the page, which is what makes it the block worth stopping on. */
.ledger {
  background: var(--warm); border: 1px solid var(--warm-rule);
  border-top: 3px solid var(--gold); border-radius: 0 0 var(--r) var(--r);
  padding: var(--s-2) var(--s-3) var(--s-3);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.ledger-cap {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-deep); padding-top: var(--s-1);
}
.ledger-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem); margin-top: var(--s-1); }

.led {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--warm-rule);
}
.led-label {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--soft); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.led-lead { flex: 1; min-width: 1.5rem; border-bottom: 1px dotted var(--leader); transform: translateY(-0.28em); }
.led-val {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: clamp(1.125rem, 1.2vw + 0.9rem, 1.5rem); font-weight: 500;
  color: var(--ink); white-space: nowrap; letter-spacing: -0.01em;
}
.led-val small { font-size: 0.6em; letter-spacing: 0.08em; color: var(--soft); margin-left: 0.35em; }

/* In the hero the ledger has the blue to sit on, so it drops the panel. */
.hero .ledger { background: transparent; border: 0; border-top: 2px solid var(--gold); padding: 0; border-radius: 0; }
.hero .ledger-cap { color: var(--gold); }
.hero .led { border-bottom-color: var(--blue-line); }
.hero .led-label { color: var(--on-blue-mut); }
.hero .led-lead { border-bottom-color: rgba(255, 255, 255, 0.30); }
.hero .led-val { color: var(--gold); }
.hero .led-val small { color: var(--on-blue-mut); }

@media (max-width: 720px) { .ledger-rows { grid-template-columns: 1fr; } }

/* Below this width a leader line has nowhere to go. Stack the label over the
   figure and drop the dots — the rule and the tabular figure carry it. */
@media (max-width: 560px) {
  .led { flex-wrap: wrap; gap: 0.15rem 0.75rem; }
  .led-label { white-space: normal; flex: 1 1 100%; overflow: visible; }
  .led-lead { display: none; }
  .led-val { flex: 0 0 auto; }
}

/* ------------------------------------------------------------------ 9. PILLARS */
/* Alternating ink and gold heads — the gold ones are not decoration, they mark
   the two pillars that link through to a page of their own. */
.pillar { border-top: 3px solid var(--ink); padding-top: var(--s-3); }
.pillar-no {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.16em;
  color: var(--link); text-transform: uppercase; margin-bottom: var(--s-1); display: block;
}
.pillar h3 { font-size: var(--t-h4); margin-bottom: var(--s-1); }
.pillar p { color: var(--muted); font-size: var(--t-base); }
.pillar p + p { margin-top: var(--s-2); }
.pillar:has(.pillar-cta) { border-top-color: var(--gold); }

/* Four-up variant: the heading is the label, so it drops a size and the body
   text tightens to keep four columns readable at 1140px. */
.pillar--compact { display: flex; flex-direction: column; }
.pillar--compact h3 { font-size: var(--t-lg); line-height: 1.25; text-wrap: balance; }
.pillar--compact p { font-size: var(--t-cap); line-height: 1.6; }
/* Pin the link to the card foot so the row of links aligns despite copy of
   different lengths. Needs two classes to outrank .pillar p + p. */
.pillar .pillar-cta { margin-top: auto; padding-top: var(--s-2); }

/* ------------------------------------------------------- 10. ACHIEVEMENT CARDS */
.ach {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r);
  padding: clamp(1.5rem, 2.5vw, 2rem); position: relative;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.ach::before { content: ""; position: absolute; inset: -1px -1px auto -1px; height: 3px; background: var(--gold); border-radius: var(--r) var(--r) 0 0; }
.ach:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -18px rgba(16, 49, 78, 0.55); }
.ach-org {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--soft);
}
.ach-figure {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem); font-weight: 500;
  color: var(--ink); line-height: 1; letter-spacing: -0.02em;
}
.ach h3 { font-size: var(--t-lg); font-family: var(--sans); font-weight: 600; letter-spacing: 0; line-height: 1.4; }
/* Same trap: .ach p is (0,1,1) and outranks .ach-org and .ach-figure (0,1,0),
   which would flatten the card's whole hierarchy to body copy. */
.ach p:not(.ach-org):not(.ach-figure) { color: var(--muted); font-size: var(--t-cap); line-height: 1.6; }

/* ------------------------------------------------------------- 11. TIMELINE */
/* Each role is a full-width band rather than a narrow column beside a rail —
   the logo anchors it and the bullets run in two columns, so the entry uses
   the measure it has instead of leaving half the page empty. */
.tl { display: grid; }
.tl-item { padding-block: clamp(1.75rem, 3vw, 2.5rem); border-top: 1px solid var(--rule); }
.tl-item--current { border-top: 3px solid var(--gold); }
.tl-item:last-child { border-bottom: 1px solid var(--rule); }

.tl-head { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-3); }
.tl-logo {
  width: 66px; height: 66px; flex: none; overflow: hidden;
  border: 1px solid var(--rule); border-radius: var(--r); background: var(--white);
  display: grid; place-items: center;
}
.tl-logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
/* Monogram fallback until a real logo file is dropped in. */
.tl-logo span {
  font-family: var(--display); font-size: 1.3rem; font-weight: 600;
  color: var(--ink); letter-spacing: 0.02em;
}
.tl-id { flex: 1 1 300px; min-width: 0; }

.tl-when {
  font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: var(--t-xs);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); margin-bottom: 0.3rem;
}
.tl-item--current .tl-when { color: var(--gold-deep); }
.tl-org { font-family: var(--display); font-size: var(--t-h4); font-weight: 600; color: var(--ink); line-height: 1.2; }
.tl-role { font-family: var(--sans); font-size: var(--t-base); font-weight: 500; color: var(--muted); margin-top: 0.15rem; }

.tl-points { display: grid; gap: 0.85rem var(--s-4); }
@media (min-width: 900px) { .tl-points { grid-template-columns: 1fr 1fr; } }
.tl-points li {
  position: relative; padding-left: 1.45rem; color: var(--muted);
  font-size: var(--t-cap); line-height: 1.6; max-width: 60ch;
}
/* A solid gold square, not a hairline dash — the marker has to be findable
   when the eye is scanning two columns at once. */
.tl-points li::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 8px; height: 8px; background: var(--gold); border-radius: 1px;
}
.tl-points b { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------- 12. CHIP SETS */
.chipset { display: grid; gap: var(--s-3); }
.chipset-row { border-top: 1px solid var(--rule); padding-top: var(--s-2); display: grid; grid-template-columns: minmax(0, 200px) 1fr; gap: var(--s-2) var(--s-3); align-items: start; }
.chipset-row > h3 {
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--link); padding-top: 0.4rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  font-size: var(--t-sm); color: var(--ink-body);
  border: 1px solid var(--rule); border-radius: var(--r);
  padding: 0.35rem 0.7rem; background: var(--white);
}
@media (max-width: 700px) { .chipset-row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- 13. CAROUSEL */
.carousel { position: relative; }
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); flex-wrap: wrap; }
.carousel-nav { display: flex; align-items: center; gap: 0.5rem; }
.car-btn {
  width: 42px; height: 42px; border: 1px solid var(--rule); border-radius: var(--r);
  display: grid; place-content: center; color: var(--ink); background: var(--white);
  transition: all 0.2s var(--ease);
}
.car-btn:hover:not(:disabled) { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.car-btn:disabled { opacity: 0.3; cursor: default; }
.car-btn svg { width: 16px; height: 16px; }

.car-count {
  font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: var(--t-sm);
  letter-spacing: 0.1em; color: var(--soft); margin-right: 0.35rem;
}

/* Flex, not grid: grid tracks sized with minmax(0, …) shrink to fit the
   scroll port instead of overflowing it, so the carousel would never scroll.
   flex-shrink: 0 is what makes the track genuinely wider than its container. */
.car-track {
  display: flex; gap: var(--s-3);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 2px;
  overscroll-behavior-x: contain;
}
.car-track::-webkit-scrollbar { display: none; }
/* stretch equalises card heights across a page of slides. Stated explicitly
   because it only works while the slides have no definite cross size — see
   the note on .proj. */
.car-track { align-items: stretch; }
.car-track > * { flex: 0 0 calc((100% - 2 * var(--s-3)) / 3); scroll-snap-align: start; }
.carousel[data-per="2"] .car-track > * { flex-basis: calc((100% - var(--s-3)) / 2); }
.carousel[data-per="1"] .car-track > * { flex-basis: 100%; }

/* Set by the carousel when every slide already fits: no controls, no dots. */
.carousel.is-static .carousel-nav,
.carousel.is-static .car-dots { display: none; }

.car-dots { display: flex; gap: 0.4rem; margin-top: var(--s-3); flex-wrap: wrap; }
.car-dot { position: relative; overflow: hidden; width: 22px; height: 3px; background: var(--rule); border-radius: 2px; transition: background 0.2s var(--ease); }
.car-dot[aria-current="true"] { background: var(--gold); }

/* --- autoplay controls --- */
.car-play svg { width: 15px; height: 15px; }

/* While rotating, the active dot fills left to right, so the countdown to the
   next slide is something you can see coming rather than a surprise jump. The
   fill is the dot's own width — no extra chrome. */
.carousel.is-playing .car-dot[aria-current="true"] { background: var(--rule); }
.carousel.is-playing .car-dot[aria-current="true"]::after {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  transform-origin: left center;
  animation: car-progress var(--auto-ms, 5000ms) linear forwards;
}
@keyframes car-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  /* Autoplay is already switched off in JS under reduced motion; this makes
     sure the dot never animates even if the class lingers. */
  .carousel.is-playing .car-dot[aria-current="true"]::after { animation: none; transform: scaleX(1); }
}

@media (max-width: 1000px) { .car-track > * { flex-basis: calc((100% - var(--s-3)) / 2); } }
@media (max-width: 700px)  { .car-track > *, .carousel[data-per="2"] .car-track > * { flex-basis: 88%; } }

/* ------------------------------------------------------------ 14. PROJECT CARD */
/* No height: 100% here. A definite cross size disables the flex track's
   stretch, which left cards in the same carousel ending at different heights
   (398 / 322 / 344px). Letting the height stay auto lets stretch equalise them. */
.proj {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.proj:hover { border-color: var(--gold); box-shadow: 0 14px 26px -20px rgba(16, 49, 78, 0.5); }

.proj-shot { aspect-ratio: 16 / 9; background: var(--tint); border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.proj-shot img { width: 100%; height: 100%; object-fit: cover; }
.section--tint .proj-shot { background: var(--warm); }
.shot-empty {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 0.4rem; text-align: center; padding: var(--s-2);
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--soft);
  background-image: repeating-linear-gradient(-45deg, transparent 0 9px, var(--rule-2) 9px 10px);
}

.proj-body { padding: var(--s-3); display: flex; flex-direction: column; gap: 0.85rem; flex: 1; }
.proj-tag {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--link);
}
.proj h3 { font-family: var(--sans); font-size: var(--t-lg); font-weight: 600; letter-spacing: 0; line-height: 1.35; }

.proj-def { display: grid; gap: 0.55rem; margin-top: 0.15rem; }
.proj-def > div { display: grid; grid-template-columns: 66px 1fr; gap: 0.75rem; align-items: start; }
.proj-def dt {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--soft); padding-top: 0.22em;
}
.proj-def dd { margin: 0; font-size: var(--t-cap); line-height: 1.55; color: var(--muted); }
.proj-def .impact dd { color: var(--ink); font-weight: 500; }

.proj-stack { margin-top: auto; padding-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.proj-stack span {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em;
  border: 1px solid var(--rule); border-radius: var(--r); padding: 0.2rem 0.45rem; color: var(--soft);
}

/* -------------------------------------------------- 14b. VISUAL PROJECT CARD */
/* .proj--viz is the richer card used for the Power BI carousel. Three colour
   layers, stacked front to back: the deep blue field, the pale marks drawn on
   it, and gold for the one thing each motif is actually about. Two typefaces
   and no more: Newsreader sets the title, IBM Plex Sans everything else —
   including the labels, which elsewhere on the site use mono.

   The artwork is an ILLUSTRATION, not a screenshot and not a chart: it carries
   no readable values, so it is aria-hidden and the card's text holds every
   fact. Dropping a real screenshot into gallery.js replaces it automatically. */
.proj--viz .proj-shot {
  aspect-ratio: 16 / 9; background: var(--blue);
  border-bottom: 3px solid var(--gold);
}
.section--tint .proj--viz .proj-shot { background: var(--blue); }
.proj--viz .proj-viz { display: block; width: 100%; height: 100%; }

.proj--viz .proj-tag {
  font-family: var(--sans); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--link);
}
.proj--viz h3 {
  font-family: var(--display); font-size: var(--t-h4); font-weight: 600;
  letter-spacing: -0.015em; line-height: 1.15; color: var(--ink);
}
.proj--viz .proj-def dt {
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft);
}
.proj--viz .proj-def dd { font-family: var(--sans); }
.proj--viz .proj-stack span {
  font-family: var(--sans); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: 0.02em; color: var(--muted); background: var(--tint);
  border-color: transparent; padding: 0.25rem 0.6rem;
}

/* A quiet lift, matching .photo and .ach rather than inventing a third hover. */
.proj--viz { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); }
.proj--viz:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(16, 49, 78, 0.55); }

/* ------------------------------------------------------------- 15. PHOTO CARD */
/* .photo-frame wraps the <img> so a variant can swap the crop rule (aspect
   ratio, object-fit) without touching the card shell, caption or hover lift. */
.photo {
  position: relative; border: 1px solid var(--rule); border-radius: var(--r);
  overflow: hidden; background: var(--white); width: 100%; text-align: left; display: block;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.photo:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -20px rgba(16, 49, 78, 0.5); border-color: var(--gold); }

.photo-frame { display: block; overflow: hidden; background: var(--tint); }
.photo-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.photo:hover .photo-frame img { transform: scale(1.04); }

.photo-cap { padding: 0.75rem var(--s-2) var(--s-2); border-top: 1px solid var(--rule); }
.photo-cap b { display: block; font-family: var(--sans); font-size: var(--t-cap); font-weight: 600; color: var(--ink); }
.photo-cap span {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--soft); display: block; margin-top: 0.2rem;
}
.photo-empty {
  aspect-ratio: 4 / 3; display: grid; place-content: center; gap: 0.4rem; text-align: center; padding: var(--s-2);
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft);
  background-image: repeating-linear-gradient(-45deg, transparent 0 9px, var(--rule-2) 9px 10px);
}

/* "Document" variant — certificates and plaques. A name, a signature or an
   award title sits right at the edge of these photos, so cropping to fill is
   the wrong instinct here: the frame shows the whole document instead, matted
   on the card tint, with the gold top edge the design already uses elsewhere
   to mark something as notable (.ach, .tl-item--current). */
.photo--doc { border-top: 3px solid var(--gold); }
.photo--doc .photo-frame { aspect-ratio: 3 / 2; }
.photo--doc .photo-frame img {
  aspect-ratio: auto; height: 100%; object-fit: contain; padding: 14px; box-sizing: border-box;
}
.photo--doc:hover .photo-frame img { transform: none; }
.photo--doc:hover { border-top-color: var(--gold); }

/* ------------------------------------------------------------- 16. LIGHTBOX */
/* A modal for viewing photographs, so it is deliberately darker than any page
   ground — a light scrim would wash the images out. */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(9, 27, 44, 0.97);
  display: grid; grid-template-rows: 1fr auto; padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease);
}
.lightbox[data-open="true"] { opacity: 1; pointer-events: auto; }
.lightbox-stage { display: grid; place-items: center; min-height: 0; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding-top: var(--s-2); color: var(--on-blue-mut); flex-wrap: wrap; }
.lightbox-cap { font-size: var(--t-cap); }
.lightbox-cap b { display: block; color: var(--on-blue); font-weight: 600; }
.lightbox-cap span { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; }
.lightbox-close { position: absolute; top: clamp(0.5rem, 2vw, 1.25rem); right: clamp(0.5rem, 2vw, 1.25rem); width: 44px; height: 44px; color: var(--on-blue); display: grid; place-content: center; }
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox .car-btn { background: transparent; border-color: var(--blue-line); color: var(--on-blue); }
.lightbox .car-btn:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.lightbox .car-count { color: var(--on-blue-mut); }

/* --------------------------------------------------------------- 17. FOOTER */
.site-foot { background: var(--blue-2); color: var(--on-blue-mut); border-top: 3px solid var(--gold); padding-block: var(--s-6) var(--s-4); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.site-foot h2 { font-size: var(--t-h3); color: var(--on-blue); }
.site-foot h3 {
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: var(--s-2);
}
.foot-list { display: grid; gap: 0.6rem; }
.foot-list a, .foot-list span { text-decoration: none; font-size: var(--t-cap); color: var(--on-blue-mut); transition: color 0.2s var(--ease); }
.foot-list a:hover { color: var(--gold); }
.foot-base {
  margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--blue-line);
  display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: space-between;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.08em; color: var(--on-blue-mut);
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: var(--s-4); } }

/* ------------------------------------------------------------ 18. UTILITIES */
.stack-1 > * + * { margin-top: var(--s-1); }
.stack-2 > * + * { margin-top: var(--s-2); }
.stack-3 > * + * { margin-top: var(--s-3); }
.stack-4 > * + * { margin-top: var(--s-4); }
.muted { color: var(--muted); }
.mono-label { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.center { text-align: center; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.note {
  border-left: 3px solid var(--gold); padding: var(--s-2) var(--s-3);
  background: var(--warm); font-size: var(--t-cap); color: var(--muted);
}
.note b { color: var(--ink); }
.note code { font-family: var(--mono); font-size: 0.9em; color: var(--ink); }

@media (max-width: 980px) { .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .g-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- 19. MOTION */
/* Reveal only hides content once JS has confirmed it is running and able to
   put it back. Without the data-js flag the page renders fully visible. */
@media (prefers-reduced-motion: no-preference) {
  html[data-js="on"] [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  html[data-js="on"] [data-reveal].is-in { opacity: 1; transform: none; }
  html[data-js="on"] [data-reveal][data-delay="1"] { transition-delay: 0.08s; }
  html[data-js="on"] [data-reveal][data-delay="2"] { transition-delay: 0.16s; }
  html[data-js="on"] [data-reveal][data-delay="3"] { transition-delay: 0.24s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ------------------------------------------------------------- 20. PRINT */
@media print {
  .site-nav, .site-foot, .car-btn, .car-dots, .lightbox, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .section--tint, .ledger { background: #fff !important; }
  .hero h1, .hero h2, .hero-role, .hero-lede, .hero .led-label, .hero .led-val { color: #000 !important; }
  .car-track { flex-wrap: wrap; overflow: visible; }
  .car-track > * { flex-basis: 100%; }
}
