/* =========================================================
   Thom Grisi · Product Design Portfolio
   Visual direction: WSJ minimalist — hedcut byline, hairline
   rules, restrained color, serif headlines on cream newsprint.
   Hero headline:
   "Solving complex Enterprise problems through Human-Centered
   Design, Accelerated by A.I."
   ========================================================= */

:root {
  color-scheme: light;

  /* ---- Paper & ink ---- */
  --paper:        #f9f4ea;   /* lighter newsprint cream */
  --paper-deep:   #efe9d9;   /* shadow paper */
  --paper-card:   #fcf8ef;
  --ink:          #14130f;   /* off-black, near pure */
  --ink-2:        #2a2620;
  --muted:        #5a5447;
  --muted-2:      #8a8170;
  --rule:         #1a1814;   /* hairline divider — used sparingly */
  --rule-soft:    #d8d0bb;   /* secondary hairlines */
  --rule-hair:    #e6dfca;   /* tertiary, almost-invisible rules */
  --accent:       #0a4d3c;   /* deep editorial green — italic emphasis only */
  --accent-deep:  #06382b;

  /* ---- Type families ---- */
  --serif: "GT Sectra", "Spectral", "Source Serif Pro", ui-serif, Georgia,
           "Hoefler Text", "New York", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* ---- Type scale — modern, ~1.25 ratio, tight jumps ----
     Body 16 / Lead 18 / Deck 20 / H3 22 / H2 28-30 / H1 32-36 / Display 38-44
     Avoids dramatic display sizes that disconnect from body. */
  --t-folio:    10px;
  --t-caption:  12px;
  --t-meta:     13px;
  --t-body-sm:  14px;
  --t-body:     16px;
  --t-lead:     18px;
  --t-deck:     20px;
  --t-h3:       22px;
  --t-h2:       clamp(24px, 2.4vw, 30px);
  --t-h1:       clamp(28px, 2.8vw, 36px);
  --t-cover:    clamp(32px, 3.4vw, 44px);

  /* ---- Geometry ---- */
  --col-max:    1280px;
  --col-prose:  62ch;
  --gutter:     32px;
  --gutter-lg:  48px;
  --masthead-h: 64px;   /* approx scrolled masthead height; sticky offsets derive from this */
  --col1:       clamp(360px, 36vw, 500px);  /* shared first column (portrait + wordmark); nav and hero text align to its right edge */

  /* ---- Motion ---- */
  --ease-settle: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-strong: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-xs:   180ms;
  --dur-sm:   320ms;
  --dur-md:   520ms;
  --dur-lg:   780ms;
  --dur-xl:  1100ms;

  /* ---- Hero wordmark sizing ----
     Single source of truth for the wordmark font-size and the
     derived render width. Capped at 75px so the wordmark width
     (≈420px) leaves enough room for the headline column inside
     the centered col-max (1280px) container. */
  --wm-rest: clamp(48px, min(5vw, 10vh), 75px);
  /* "Thom Grisi" in this serif at weight 700 renders ~5.6× font-size */
  --wm-width: calc(var(--wm-rest) * 5.6);
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--paper);
  overflow-x: clip;             /* prevent rogue horizontal scroll without breaking position: sticky */
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-width: 0;
}
img { max-width: 100%; }

main, header, footer { position: relative; z-index: 2; }

a { color: var(--ink); text-decoration: none; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img { display: block; max-width: 100%; height: auto; }

/* Defensive: long headlines and inline metadata wrap, not overflow */
h1, h2, h3 { overflow-wrap: break-word; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: 16px; top: -64px;
  z-index: 1000; background: var(--ink); color: var(--paper);
  padding: 8px 14px; font-size: 13px; font-family: var(--mono);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.skip-link:focus, .skip-link:focus-visible {
  top: 16px; outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ===========================================================
   MASTHEAD — WSJ-style nameplate with thin rule beneath
   =========================================================== */
/* Masthead uses a discrete compact state after the first scroll threshold.
   No layout property is animated. */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  contain: layout style;
}
.masthead.is-scrolled {
  background-color: rgba(249, 244, 234, 0.92);
  border-bottom-color: var(--rule);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
}
.masthead-inner {
  padding-top: 20px;
  padding-bottom: 32px;
}
.masthead-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--wm-rest);
  line-height: 1;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
  position: relative;
}
.masthead-name .wordmark { display: inline-block; }
.masthead-name .role {
  /* Role tagline fades in with scroll. Absolutely positioned so it
     takes no layout space at rest — that way the nav can sit right
     beside the wordmark without the role's ghost width pushing it. */
  position: absolute;
  left: calc(100% + 8px);
  bottom: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
}
.masthead-name .role .sep {
  color: var(--rule-soft);
  margin-right: 6px;
  font-family: var(--serif);
  font-size: 16px;
}
.masthead-name:hover .wordmark { color: var(--accent-deep); }
.masthead.is-scrolled .masthead-inner { padding-top: 14px; padding-bottom: 14px; }
.masthead.is-scrolled .masthead-name { font-size: 18px; }
.masthead.is-scrolled .masthead-name .role { opacity: 1; }
/* Inner container — uses the same max-width + auto margins as .wrap so
   the logo aligns to the editorial grid's left edge. Padding-top is
   defined above (scroll-interpolated); only horizontal padding here. */
.masthead-inner {
  /* Same centered max-width container as the rest of the site
     (matches .wrap). Col 1 = wordmark width, col 2 = nav. */
  max-width: var(--col-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: grid;
  grid-template-columns: var(--col1) minmax(0, 1fr);
  column-gap: clamp(40px, 4.5vw, 72px);
  align-items: baseline;
}
.masthead-name {
  grid-column: 1;
  justify-self: start;
}
.masthead-nav {
  grid-column: 2;
  justify-self: start;
  align-self: baseline;
}

.masthead-nav {
  display: flex; gap: 22px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.masthead-nav a {
  position: relative;
  color: var(--ink);
  padding: 2px 0;
}
.masthead-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-sm) var(--ease-settle);
}
.masthead-nav a:hover::after { transform: scaleX(1); }

/* ===========================================================
   LAYOUT — 12-col grid, asymmetric placement
   =========================================================== */
.wrap {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 0;
}

/* Folio (page-mark) used as small page-corner indicators */
.folio {
  font-family: var(--mono);
  font-size: var(--t-folio);
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}
.folio .pp { color: var(--accent); }

/* ===========================================================
   COVER HERO — full bleed, oversized serif, image at right
   =========================================================== */
/* Cover — full-bleed transparent portrait on the LEFT,
   editorial stack (eyebrow / headline / supporting) on the RIGHT.
   Grid bypasses .wrap so the portrait extends to the left viewport edge. */
.cover {
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.cover-grid {
  /* Same centered max-width container as .wrap. */
  max-width: var(--col-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: grid;
  grid-template-columns: var(--col1) minmax(0, 1fr);
  grid-template-areas: "portrait text";
  align-items: start;
  column-gap: clamp(40px, 4.5vw, 72px);
  /* Cover-grid height = portrait height + 80px buffer.
     Portrait fills col 1 (width = --wm-width) at the image's natural
     1.265 aspect ratio, so portrait height = --wm-width * 1.265.
     Adding 80px ensures the chyron (which sits right below cover)
     lands within 80px of the portrait bottom. */
  min-height: calc(var(--col1) * 1.3411 + 64px);
}
.cover-portrait { grid-area: portrait; }
.cover-text { grid-area: text; }
/* Portrait sits in left column of cover-grid, below the wordmark.
   Fills the column width so it visually matches the wordmark above. */
.cover-portrait {
  position: relative;
  margin: 0;
  background: transparent;
  border: 0;
}
.cover-portrait picture {
  display: block;
  width: 100%;
}
.cover-portrait picture img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 500 / 670.56;
  object-fit: cover;
  object-position: center top;
}
.cover-byline {
  position: absolute;
  bottom: 20px;
  left: 20px;
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  padding: 8px 12px;
  border: 1px solid var(--rule);
}

.cover-text {
  display: flex;
  flex-direction: column;
  /* Top-aligned so the eyebrow sits directly under the nav row. */
  justify-content: flex-start;
  padding: 8px 0 clamp(56px, 6vw, 88px);
  gap: clamp(20px, 2.4vw, 32px);
}
.cover-text-inner {
  width: 100%;
  /* No max-width here — the cover-grid column already constrains
     the text. Let the headline use the full column width. */
  display: flex;
  flex-direction: column;
  /* Gap matches the ~24px rhythm used in case-card info blocks */
  gap: clamp(20px, 2vw, 28px);
}
.cover-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.cover-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--ink);
  flex-shrink: 0;
}
.cover-title {
  font-family: var(--serif);
  font-weight: 500;
  /* Sized so the longest line "Solving complex Enterprise problems"
     fits on one line in the narrower text col (since col 1 is now
     wider to contain the big wordmark + matching-width portrait). */
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  max-width: none;
  overflow-wrap: break-word;
}
.cover-title .accent {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}
.cover-supporting {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 58ch;
}

/* "Selected work ↓" CTA — green-bordered serif pill, hover invert */
.cover-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  align-self: flex-start;
  padding: 10px 20px;
  margin-top: 6px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0;
  text-decoration: none;
}
.cover-cta:hover {
  background: var(--accent);
  color: var(--paper);
}
.cover-cta .arrow {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1;
  transition: transform var(--dur-sm) var(--ease-settle);
}
.cover-cta:hover .arrow { transform: translateY(2px); }

/* Chyron — scrolling status + skills ticker beneath the hero */
.chyron {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}
.chyron-track {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  white-space: nowrap;
}
.chyron-item,
.chyron-status {
  display: inline-block;
  padding: 0 22px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.chyron-status {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.chyron-status::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.chyron-sep {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--rule-soft);
  border-radius: 50%;
  flex-shrink: 0;
}
.chyron-status::before { animation: none; }

/* Note: previously this file had a second .cover-title block and a
   .word-stagger reveal pattern from an earlier iteration. They've
   been removed — the current .cover-title rule lives at the top of
   the cover section. */

.cover-dek {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-deck);
  line-height: 1.44;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  margin: 0;
  max-width: 52ch;
}

/* ===========================================================
   WORK INTRO — small label that anchors the three stories
   =========================================================== */
.work-intro {
  padding: 56px 0 20px;
  border-bottom: 1px solid var(--rule-soft);
}
.work-intro-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  align-items: baseline;
  row-gap: 12px;
}
.work-intro .label {
  grid-column: 1 / span 3;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
}
.work-intro .title {
  grid-column: 4 / span 9;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-h3);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--muted);
  margin: 0;
  max-width: 50ch;
}

/* ===========================================================
   FEATURE STORY — homepage lead spread per case study
   =========================================================== */
.story {
  padding: clamp(56px, 6vw, 96px) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.story-head {
  display: block;
  margin-bottom: 32px;
}
.story-meta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
  text-transform: uppercase;
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.story-meta .case-no { color: var(--accent); }
.story-meta .pipe {
  color: var(--rule-soft);
  font-weight: 400;
  padding: 0 4px;
}
.story-meta .dim {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.16em;
}
.story-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--t-h1);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  max-width: 30ch;
  overflow-wrap: break-word;
}
.story-title a { color: inherit; }
.story-title a:hover { color: var(--accent-deep); }
.story-title em {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.story-body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 40px;
  align-items: start;
}
.story-image {
  grid-column: 1 / span 7;
  position: relative;
}
.story-image img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  display: block;
}
.story-image figcaption {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--muted);
  max-width: 64ch;
}

/* Right column: structured info blocks (Problem, Role, Impact, Focus, CTA) */
.story-info {
  grid-column: 9 / span 4;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.story-info .block { display: block; }
.story-info .block-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule-soft);
}
.story-info .block-body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink-2);
}
.story-info .block-body.tags {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1.6;
}
.story-cta {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
}
.story-cta:hover { color: var(--accent-deep); }
.story-cta .arrow {
  display: inline-block;
  transition: transform var(--dur-sm) var(--ease-settle);
}
.story-cta:hover .arrow { transform: translateX(4px); }

/* ===========================================================
   ESSAY — generic editorial section (philosophy, about, etc.)
   =========================================================== */
.essay {
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}
.essay-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  margin-bottom: 40px;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-soft);
}
.essay-head .kicker {
  grid-column: 1 / span 3;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
}
.essay-head .title {
  grid-column: 4 / span 9;
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--t-h2);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  max-width: 26ch;
}
.essay-body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
}
.essay-lead {
  grid-column: 1 / span 4;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-lead);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.essay-cols {
  grid-column: 5 / span 8;
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink-2);
}
.essay-cols p {
  margin: 0 0 16px;
}
.essay-cols.two-up {
  column-count: 2;
  column-gap: var(--gutter);
}
/* Drop cap — restrained ink, WSJ-style */
.dropcap::first-letter {
  font-family: var(--serif);
  float: left;
  font-weight: 500;
  font-size: 48px;
  line-height: 0.85;
  padding: 4px 8px 0 0;
  color: var(--ink);
}

/* Principle list — three-column editorial */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--gutter);
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
}
.principles li {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.principles .n {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
  text-transform: uppercase;
}
.principles h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 12px 0 10px;
  color: var(--ink);
}
.principles p {
  font-size: var(--t-body-sm);
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ===========================================================
   CASE STUDY PAGE — cover, glance, workstreams
   =========================================================== */
.cs-cover {
  padding: 56px 0 72px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.cs-cover-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-transform: uppercase;
  flex-wrap: wrap;
}
.cs-cover-meta .case { color: var(--ink); }
.cs-cover-meta .case .dim { color: var(--muted); font-weight: 500; letter-spacing: 0.14em; }
.cs-cover-meta a {
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.cs-cover-meta a:hover { color: var(--ink); }

.cs-cover h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--t-h1);
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0 0 28px;
  color: var(--ink);
  max-width: 28ch;
  overflow-wrap: break-word;
  hyphens: manual;
}
.cs-cover h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.cs-cover .lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-deck);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0;
}

/* Hero anchor figure on case study pages — full bleed */
.cs-hero-img {
  margin: 0;
  padding: 56px 0;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule);
}
.cs-hero-img .frame {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.cs-hero-img img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--paper-card);
}
.cs-hero-img figcaption {
  max-width: var(--col-max);
  margin: 16px auto 0;
  padding: 0 var(--gutter);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-caption);
  line-height: 1.45;
  color: var(--muted);
  max-width: min(var(--col-max), 80ch);
}
@media (prefers-reduced-motion: no-preference) {
  .cs-hero-img img {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity var(--dur-xl) var(--ease-strong),
      transform var(--dur-xl) var(--ease-strong);
    will-change: opacity, transform;
  }
  .cs-hero-img.is-visible img {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

/* Glance — at-a-glance data table */
.glance {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--rule);
}
.glance dl {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 160px 1fr;
  row-gap: 16px;
  column-gap: var(--gutter);
}
.glance dt {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-transform: uppercase;
  padding-top: 4px;
}
.glance dd {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink-2);
}

/* Workstream — feature article inside a case study */
.workstream {
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}
.workstream-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  margin-bottom: 40px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.workstream-head .n {
  grid-column: 1 / span 2;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-transform: uppercase;
}
.workstream-head .title {
  grid-column: 3 / span 10;
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--t-h2);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  max-width: 26ch;
}
.workstream-head .sub {
  grid-column: 3 / span 10;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-lead);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--muted);
  margin: 14px 0 0;
  max-width: 48ch;
}

.workstream-body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 48px;
}
.workstream-prose {
  grid-column: 3 / span 7;
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--ink-2);
}
.workstream-prose p { margin: 0 0 18px; max-width: 64ch; }
.workstream-prose p strong { color: var(--ink); font-weight: 600; }
.workstream-prose h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--t-h3);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 32px 0 12px;
}

/* Pull quote — large italic with em-rule above */
.pullquote {
  grid-column: 2 / span 10;
  margin: 24px 0;
  padding: 32px 0 28px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pullquote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: 36ch;
}
.pullquote cite {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-transform: uppercase;
  font-style: normal;
}
.pullquote cite::before { content: "From "; color: var(--muted); }

/* Figure — workstream image, sometimes paired */
.fig {
  grid-column: 1 / span 12;
  margin: 0;
}
.fig.right { grid-column: 7 / span 6; }
.fig.left  { grid-column: 1 / span 6; }
.fig.center { grid-column: 3 / span 8; }
.fig img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--paper-card);
}
.fig figcaption {
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-caption);
  line-height: 1.45;
  color: var(--muted);
  max-width: 60ch;
}

/* Paired figures (two-up) */
.fig-pair {
  grid-column: 1 / span 12;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--gutter);
}
.fig-pair .fig { grid-column: auto; }

/* Triptych (three-up) */
.fig-trio {
  grid-column: 1 / span 12;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: var(--gutter);
}
.fig-trio .fig { grid-column: auto; }

/* Schedule flow strip — small filmstrip */
.filmstrip {
  grid-column: 1 / span 12;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  column-gap: 8px;
}
.filmstrip .fig { grid-column: auto; }
.filmstrip .fig img { aspect-ratio: 4 / 3; object-fit: cover; }
.filmstrip .fig figcaption { font-size: 10px; letter-spacing: 0.04em; margin-top: 6px; }

/* ===========================================================
   CLOSING / SIGN-OFF
   =========================================================== */
.signoff {
  padding: 80px 0 72px;
  background: var(--paper-deep);
}
.signoff .grid { align-items: end; }
.signoff .kicker {
  grid-column: 1 / span 12;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}
.signoff .title {
  grid-column: 1 / span 10;
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--t-h2);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 32px;
  max-width: 28ch;
}
.signoff .title em { font-style: italic; font-weight: 400; color: var(--accent); }
.signoff .body {
  grid-column: 1 / span 7;
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--ink-2);
}
.signoff .body p { margin: 0 0 14px; max-width: 60ch; }
.signoff .stats {
  grid-column: 9 / span 4;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 24px;
}
.signoff .stats .stat {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.signoff .stats .v {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.signoff .stats .l {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 8px 0 0;
}
.signoff .next {
  grid-column: 1 / span 12;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.signoff .next a {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
}
.signoff .next a:hover { color: var(--accent-deep); }
.signoff .next a .arrow { transition: transform var(--dur-sm) var(--ease-settle); }
.signoff .next a:hover .arrow { transform: translateX(4px); }

/* ===========================================================
   CONTACT / COLOPHON
   =========================================================== */
.colophon {
  padding: 96px 0 72px;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--rule);
}
.colophon .grid { row-gap: 48px; }
.colophon .label {
  grid-column: 1 / span 4;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--paper-deep);
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(246, 241, 230, 0.18);
}
.colophon h2 {
  grid-column: 1 / span 12;
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--t-h1);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  max-width: 20ch;
  color: var(--paper);
}
.colophon h2 em { font-style: italic; font-weight: 400; color: #cfb678; }
.colophon .links {
  grid-column: 1 / span 12;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
}
.colophon .link-label {
  grid-column: span 2;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #a59c89;
  text-transform: uppercase;
  padding-top: 8px;
}
.colophon .link-value {
  grid-column: span 10;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.015em;
  color: var(--paper);
  border-bottom: 1px solid rgba(246, 241, 230, 0.18);
  padding-bottom: 14px;
  margin: 0 0 24px;
}
.colophon .link-value a {
  color: inherit;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.colophon .link-value a:hover { border-bottom-color: currentColor; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  background: var(--ink);
  color: #837a66;
  padding: 32px 0 48px;
  border-top: 1px solid rgba(246, 241, 230, 0.12);
}
.footer .row {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer a { color: #c2b89e; }
.footer a:hover { color: var(--paper); }

/* ===========================================================
   MOTION — reveal-on-scroll, view transitions
   =========================================================== */

/* Cross-document view transitions */
@view-transition { navigation: auto; }
@supports (view-transition-name: none) {
  .vt-brp   { view-transition-name: cs-anchor-brp; }
  .vt-ml    { view-transition-name: cs-anchor-ml; }
  .vt-amex  { view-transition-name: cs-anchor-amex; }
}
::view-transition-group(*) {
  animation-duration: var(--dur-md);
  animation-timing-function: var(--ease-settle);
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*) { animation: none; }
}

/* Reveal: ink-appearing-on-paper. Opacity only; no translate. */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transition: opacity var(--dur-lg) var(--ease-strong);
    will-change: opacity;
  }
  .reveal.is-visible { opacity: 1; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation-name: ink-in;
      animation-fill-mode: both;
      animation-timing-function: var(--ease-strong);
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
  @keyframes ink-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

/* ===========================================================
   RESPONSIVE
   - ≥1100px: full 12-col grid (defined above)
   - 800–1099px: 12-col grid with looser spans (less cramped)
   - <800px: single column
   - <520px: minor padding tightening + nav adjustments
   =========================================================== */

/* Tablet landscape and small laptops — keep grid, loosen spans */
@media (max-width: 1099px) {
  :root { --gutter: 24px; }

  /* Cover-grid inherits the desktop layout (portrait left, text right)
     and its dimensions are derived from --wm-width on :root. */

  /* Case card at tablet: image goes wider, info column stays narrow */
  .story-image { grid-column: 1 / span 12; }
  .story-info  { grid-column: 1 / span 12; flex-direction: row; flex-wrap: wrap; gap: 28px 32px; }
  .story-info .block { flex: 1 1 calc(50% - 16px); min-width: 240px; }
  .story-info .block-cta { flex-basis: 100%; }

  .workstream-prose { grid-column: 2 / span 10; }
  .pullquote { grid-column: 2 / span 10; }
  .fig.center { grid-column: 2 / span 10; }

  .essay-head .kicker { grid-column: 1 / span 4; }
  .essay-head .title  { grid-column: 5 / span 8; }
  .essay-lead { grid-column: 1 / span 5; }
  .essay-cols { grid-column: 6 / span 7; }

  .principles { grid-template-columns: repeat(3, 1fr); column-gap: 24px; }
  .filmstrip  { grid-template-columns: repeat(4, 1fr); row-gap: 16px; }
  .glance dl  { grid-template-columns: 140px 1fr; }
}

/* Phone — single column with stacked hedcut byline */
@media (max-width: 767px) {
  :root { --gutter: 20px; --col1: var(--wm-width); }

  /* Mobile: skip the shrinking-nav choreography. Masthead is always
     compact and visible (no scroll-tied size or padding changes). */
  .masthead-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 18px;
    padding: 12px var(--gutter);
    /* Reset desktop's right-padding push — at mobile the layout
       stacks vertically, no portrait to clear on the right. */
  }
  .masthead-name  {
    font-size: 17px;
    gap: 6px;
  }
  .masthead-name .role { display: none; }
  .masthead-nav   {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 9px;
    letter-spacing: 0.16em;
    justify-self: auto;
  }
  .masthead {
    background: rgba(249, 244, 234, 0.92);
    backdrop-filter: saturate(150%) blur(10px);
    -webkit-backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid var(--rule);
  }

  /* Mobile cover — text first, hedcut below as 88px avatar with name */
  .cover { border-bottom: 1px solid var(--rule); }
  .cover-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "portrait";
    row-gap: 0;
    min-height: auto;
  }
  .cover-text {
    padding: 32px var(--gutter) 24px;
    gap: 20px;
  }
  .cover-text-inner { gap: 20px; max-width: none; }
  .cover-eyebrow { gap: 10px; letter-spacing: 0.22em; }
  .cover-eyebrow::before { width: 16px; }
  .cover-title { max-width: none; }
  .cover-supporting { font-size: 16px; }
  .cover-portrait {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px var(--gutter) 28px;
    border-left: 0;
    border-top: 1px solid var(--rule-soft);
    overflow: visible;
    background: transparent;
  }
  .cover-portrait picture,
  .cover-portrait picture img {
    width: 80px;
    height: auto;
    flex-shrink: 0;
  }
  .cover-portrait img { object-fit: contain; object-position: center; height: auto; aspect-ratio: auto; }
  .cover-byline {
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 12px;
  }
  .chyron { padding: 12px 0; }
  .chyron-item, .chyron-status { font-size: 11px; padding: 0 14px; }

  .work-intro { padding: 56px 0 16px; }
  .work-intro-grid { grid-template-columns: 1fr; row-gap: 14px; }
  .work-intro .label, .work-intro .title { grid-column: 1 / -1; }

  .story, .essay, .workstream { padding: 56px 0; }
  .signoff { padding: 64px 0 56px; }
  .colophon { padding: 72px 0 56px; }

  .story-head, .story-body,
  .essay-head, .essay-body,
  .workstream-head, .workstream-body {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }
  .story-meta, .story-title,
  .story-image, .story-info,
  .essay-head .kicker, .essay-head .title,
  .essay-lead, .essay-cols,
  .workstream-head .n, .workstream-head .title, .workstream-head .sub,
  .workstream-prose,
  .fig, .fig.left, .fig.right, .fig.center,
  .pullquote,
  .signoff .kicker, .signoff .title, .signoff .body, .signoff .stats, .signoff .next,
  .colophon .label, .colophon h2 {
    grid-column: 1 / -1;
  }
  .story-title { max-width: none; }
  .story-info { flex-direction: column; gap: 24px; }
  .story-cta { align-self: flex-start; }
  .essay-cols.two-up { column-count: 1; }
  .principles { grid-template-columns: 1fr; row-gap: 24px; }
  .fig-pair, .fig-trio { grid-template-columns: 1fr; row-gap: 20px; }
  .filmstrip { grid-template-columns: repeat(2, 1fr); row-gap: 12px; column-gap: 12px; }
  .signoff .stats { grid-template-columns: repeat(3, 1fr); column-gap: 16px; row-gap: 20px; }
  .signoff .next  { flex-direction: column; align-items: flex-start; gap: 12px; }

  .glance dl { grid-template-columns: 1fr; row-gap: 6px; }
  .glance dl dt { padding-top: 12px; }
  .glance dl dd { padding-bottom: 12px; border-bottom: 1px solid var(--rule-soft); }
  .glance dl dd:last-of-type { border-bottom: 0; }

  .colophon .links { grid-template-columns: 1fr; row-gap: 20px; }
  .colophon .link-label, .colophon .link-value { grid-column: 1 / -1; }

  .cs-cover { padding: 40px 0 56px; }
  .cs-cover-meta { font-size: 9px; }
  .cs-hero-img { padding: 32px 0; }

  .pullquote p { font-size: 19px; }

  .footer .row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Mobile small */
@media (max-width: 519px) {
  :root { --gutter: 16px; }
  .masthead-nav { gap: 14px; }
  .signoff .stats { grid-template-columns: 1fr; }
  .workstream-prose h3 { margin-top: 24px; }
  .signoff .next a {
    white-space: normal;
    word-break: break-word;
  }
}

/* ===========================================================
   SECTION DISPLAY HEAD — "Selected work" / "About"
   Large italic-serif magazine section heading.
   =========================================================== */
.section-display {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

/* ===========================================================
   SELECTED WORK — compact case cards (Print spread)
   =========================================================== */
.work {
  padding: clamp(56px, 6vw, 88px) 0 clamp(40px, 5vw, 64px);
}
.work .section-display { margin-bottom: 8px; }

.work-card {
  padding: clamp(36px, 4vw, 56px) 0;
  border-top: 1px solid var(--rule);
}
.work-card:last-child { border-bottom: 1px solid var(--rule); }

.work-card-meta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 26px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.work-card-meta .case-no { color: var(--accent); }
.work-card-meta .pipe { color: var(--rule-soft); font-weight: 400; padding: 0 4px; }
.work-card-meta .dim { color: var(--muted); font-weight: 500; letter-spacing: 0.16em; }

.work-card-body {
  display: grid;
  grid-template-columns: 5fr 7fr;
  column-gap: var(--gutter-lg);
  align-items: start;
}
.work-card-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.work-card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  max-width: 22ch;
}
.work-card-title a { color: inherit; }
.work-card-title a:hover { color: var(--accent-deep); }
.work-card-title em { color: var(--accent); font-style: italic; font-weight: 500; }
.work-card-tags {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 46ch;
}
.work-card-cta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.work-card-cta:hover { color: var(--accent-deep); }
.work-card-cta .arrow { transition: transform var(--dur-sm) var(--ease-settle); }
.work-card-cta:hover .arrow { transform: translateX(4px); }

.work-card-figure { margin: 0; }
.work-card-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  display: block;
}

/* ===========================================================
   ABOUT — tabbed (Recent experience / AI / Skills)
   =========================================================== */
.about {
  padding: 0 0 clamp(56px, 6vw, 88px);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 32px;
  align-items: start;
}
.about-aside {
  grid-column: 1 / span 3;
  position: sticky;
  top: calc(var(--masthead-h) + 16px);
}
.about-aside .section-display { margin-bottom: 28px; }
.about-tabs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.about-tab {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 2px 0;
  margin: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: left;
}
.about-tab:hover { color: var(--ink); }
.about-tab[aria-selected="true"] { color: var(--accent); }

/* All panels share one grid cell so the container is always as tall as the
   tallest panel. Inactive panels are hidden with visibility + inert (set in
   JS) so they keep their space but leave the a11y tree and focus order —
   this is what stops the page bottom from jumping on tab change. */
.about-panels { grid-column: 5 / span 8; display: grid; }
.about-panel { grid-area: 1 / 1; min-width: 0; }
.about-panel[aria-hidden="true"] { visibility: hidden; }
.about-panel-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

/* Experience table */
.exp-scroll { overflow-x: auto; }
.exp-tbl {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: var(--t-body-sm);
  line-height: 1.5;
}
.exp-tbl th[scope="col"] {
  text-align: left;
  font-size: var(--t-folio);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: bottom;
}
.exp-tbl td,
.exp-tbl th[scope="row"] {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--rule-hair);
  vertical-align: top;
  text-align: left;
  color: var(--ink-2);
  font-weight: 400;
}
.exp-tbl tbody tr:last-child td,
.exp-tbl tbody tr:last-child th { border-bottom: 0; }
.exp-tbl .c-n { width: 42px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.exp-tbl .c-yr { width: 96px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.exp-tbl .exp-co {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  white-space: nowrap;
}
.about-resume-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.about-resume-link:hover { color: var(--accent-deep); }
.about-resume-link .arrow { transition: transform var(--dur-sm) var(--ease-settle); }
.about-resume-link:hover .arrow { transform: translateX(4px); }

/* AI + Skills lists */
.about-list { margin: 0; }
.about-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  column-gap: var(--gutter);
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-hair);
}
.about-row:first-child { padding-top: 0; }
.about-row:last-child { border-bottom: 0; }
.about-row dt {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--t-lead);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
}
.about-row dd {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-body-sm);
  line-height: 1.6;
  color: var(--ink-2);
}

/* ===========================================================
   LET'S TALK — dark contact footer
   =========================================================== */
.lets-talk {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 7vw, 104px) 0 56px;
  border-top: 1px solid var(--rule);
}
.lt-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: #cfb678;
  margin: 0 0 clamp(36px, 4vw, 56px);
}
.lt-links { margin: 0; }
.lt-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  column-gap: var(--gutter);
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid rgba(246, 241, 230, 0.18);
}
.lt-row:first-child { border-top: 1px solid rgba(246, 241, 230, 0.18); }
.lt-row dt {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a59c89;
  margin: 0;
}
.lt-row dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.015em;
  color: var(--paper);
}
.lt-row dd a {
  color: inherit;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}
.lt-row dd a:hover { border-bottom-color: currentColor; }
.lt-copy {
  margin: 40px 0 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #837a66;
}

/* ---- Responsive: tablet ---- */
@media (max-width: 1099px) {
  .about-aside { grid-column: 1 / span 4; }
  .about-panels { grid-column: 5 / span 8; }
}

/* ---- Responsive: phone ---- */
@media (max-width: 767px) {
  .work-card-body { grid-template-columns: 1fr; row-gap: 28px; }
  .work-card-text { order: 2; }
  .work-card-figure { order: 1; }
  .work-card-title { max-width: none; }

  .about-grid { grid-template-columns: 1fr; row-gap: 28px; }
  .about-aside { grid-column: 1 / -1; position: static; top: auto; }
  .about-panels { grid-column: 1 / -1; }
  .about-aside .section-display { margin-bottom: 20px; }
  .about-tabs { flex-direction: row; flex-wrap: wrap; gap: 18px; }
  .about-row { grid-template-columns: 1fr; row-gap: 8px; padding: 20px 0; }

  /* Experience table → stacked blocks per company */
  .exp-tbl, .exp-tbl tbody, .exp-tbl tr,
  .exp-tbl td, .exp-tbl th[scope="row"] { display: block; width: auto; }
  .exp-tbl thead { display: none; }
  .exp-tbl tr {
    padding: 20px 0;
    border-bottom: 1px solid var(--rule-hair);
  }
  .exp-tbl tbody tr:first-child { padding-top: 0; }
  .exp-tbl td, .exp-tbl th[scope="row"] { border: 0; padding: 2px 0; }
  .exp-tbl .c-n { display: none; }
  .exp-tbl .exp-co { font-size: 20px; white-space: normal; margin-bottom: 2px; }
  .exp-tbl td:nth-child(3) {
    color: var(--muted);
    font-size: var(--t-caption);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .exp-tbl td:nth-child(4) { margin-top: 6px; }
  .exp-tbl .c-yr {
    width: auto;
    text-align: left;
    margin-top: 6px;
    font-size: var(--t-caption);
    letter-spacing: 0.06em;
  }

  .lt-row { grid-template-columns: 1fr; row-gap: 6px; }
}

/* ===== Gap analysis table ===== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.gap-analysis { margin: 40px 0; }
.gap-analysis .gap-head { margin-bottom: 18px; }
.gap-analysis .gap-kicker {
  display: block;
  font-size: var(--t-meta);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.gap-analysis .gap-title {
  font-family: var(--serif);
  font-size: var(--t-h3);
  font-weight: 500;
  line-height: 1.2;
  margin: 8px 0 6px;
  max-width: var(--col-prose);
}
.gap-analysis .gap-title em { color: var(--accent); font-style: italic; }
.gap-analysis .gap-deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-lead);
  color: var(--ink-2);
  max-width: var(--col-prose);
  margin: 0;
}
.gap-scroll { overflow-x: auto; }
.gap-tbl {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 760px;
  font-family: var(--sans);
  font-size: var(--t-body-sm);
  line-height: 1.45;
}
.gap-tbl col.c-fn { width: 25%; }
.gap-tbl col.c-pri { width: 12%; }
.gap-tbl col.c-an, .gap-tbl col.c-bi, .gap-tbl col.c-no { width: 21%; }
.gap-tbl th {
  text-align: left;
  font-size: var(--t-caption);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 14px 9px 0;
  border-bottom: 1.5px solid var(--rule);
  vertical-align: bottom;
}
.gap-tbl td {
  padding: 13px 14px 13px 0;
  border-bottom: 1px solid var(--rule-hair);
  vertical-align: top;
}
.gap-tbl .gap-grp td {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 8px 0 8px 12px;
  font-size: var(--t-caption);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.gap-fn { font-weight: 700; color: var(--ink); }
.gap-fn-desc {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--t-body-sm);
  line-height: 1.45;
}
.gap-pri {
  font-size: var(--t-folio);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 9px;
  display: inline-block;
  white-space: nowrap;
}
.gap-pri.v1  { background: var(--ink); color: var(--paper); }
.gap-pri.fut { border: 1px solid var(--muted-2); color: var(--muted); }
.gap-pri.oos { border: 1px dashed var(--rule-soft); color: var(--muted-2); }
.gap-pri.none { color: var(--rule-soft); }
.gap-cell b { font-weight: 700; color: var(--ink); }
.gap-dim { color: var(--rule-soft); }
.gap-q {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: var(--t-body-sm);
}
.gap-legend {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid var(--rule-soft);
  padding-top: 14px;
  margin-top: 16px;
  font-size: var(--t-caption);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.gap-legend .item { display: inline-flex; align-items: center; gap: 8px; }
.gap-legend .ital {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-style: italic;
  font-family: var(--serif);
  color: var(--muted);
}
@media (max-width: 799px) {
  .gap-tbl { font-size: var(--t-caption); }
}
