/* Portfolio V1. Built from the Figma file "Portfolio design system".
   Breakpoints follow the three Figma frames: desktop 1440, tablet 900, phone 390. */

:root {
  /* Color tokens (Figma variables) */
  --ink: #22242b;          /* text/primary, bg/inverse */
  --secondary: #40434e;    /* text/secondary, text/muted */
  --white: #ffffff;        /* bg/page, bg/card, text/inverse */
  --clay: #7b6960;         /* accent/clay */
  --brown: #554841;        /* accent/brown */
  --taupe: #a5a293;        /* accent/taupe */
  --link: #1559b0;         /* text/link */
  --mint: #dcf1e8;         /* bg/mint */
  --surface: #f0f1f3;      /* bg/surface */
  --image: #d4d6dc;        /* bg/image, border/subtle */
  --negative: #b42318;     /* status/negative */
  --positive: #1e7b4a;     /* status/positive */

  /* Type scale: desktop */
  --h1: 56px;
  --h2: 30px;
  --h3: 20px;
  --lg: 18px;
  --pad: 32px;

  --serif: "Bodoni Moda", "Bodoni 72", Didot, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (max-width: 1099px) {
  :root { --h1: 48px; --h2: 28px; --h3: 20px; --lg: 18px; }
}
@media (max-width: 600px) {
  :root { --h1: 40px; --h2: 26px; --h3: 19px; --lg: 17px; --pad: 20px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.on-dark :focus-visible, .dark-band :focus-visible { outline-color: var(--white); }
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Type styles ---------- */
.h1 { font-weight: 800; font-size: var(--h1); line-height: 0.95; letter-spacing: -0.03em; }
.h2 { font-weight: 800; font-size: var(--h2); line-height: 1.05; letter-spacing: -0.02em; }
.h3 { font-weight: 600; font-size: var(--h3); line-height: 1.2; letter-spacing: -0.01em; }
.lg { font-size: var(--lg); line-height: 1.4; }
.lg-italic { font-size: var(--lg); line-height: 1.35; font-style: italic; }
.small { font-size: 13px; line-height: 1.4; }
.bold, strong { font-weight: 600; }
.muted { color: var(--secondary); }
.brown { color: var(--brown); }
.clay { color: var(--clay); }
.pre { white-space: pre-wrap; }

/* ---------- Layout ---------- */
.wrap {
  box-sizing: content-box;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-top: 120px; }
.intro { display: flex; flex-direction: column; gap: 16px; }
.intro .h2 { max-width: 1000px; }
.intro .lg { max-width: 760px; }

.row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--gap, 40px); padding-top: var(--pt, 0); }
.row.end { align-items: flex-end; }
.row.center { align-items: center; }
.col { flex: 1 1 0; min-width: min(var(--min, 280px), 100%); display: flex; flex-direction: column; gap: var(--g, 0); }
.stack { display: flex; flex-direction: column; gap: var(--g, 12px); }

/* ---------- Inner-page header ---------- */
.site-header { position: relative; background: var(--ink); color: var(--white); }
.site-header .bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  row-gap: 12px; padding-block: 18px;
}
.logo { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; letter-spacing: 0.06em; }
.logo:hover { text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; }

.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-btn img { width: 24px; height: 24px; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-menu { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }

/* Phone dropdown ("Phone menu, open") */
.menu-panel {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
  background: #21242b; color: var(--white);
  padding: 4px 20px 28px;
}
.menu-panel.open { display: block; }
.menu-panel .label { display: flex; align-items: center; height: 36px; font-style: italic; color: var(--taupe); }
.menu-panel a {
  display: flex; align-items: center; height: 48px;
  font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em;
}
.menu-panel .spacer { height: 16px; }

@media (max-width: 600px) {
  .site-header .bar { flex-wrap: nowrap; padding-block: 14px; }
  .site-header .logo { padding-block: 4px; }
  .site-header .nav { display: none; }
  .menu-btn { display: flex; margin-right: -10px; }
}
@media (min-width: 601px) { .menu-panel.open { display: none; } }

/* ---------- Home: cover ---------- */
body.home {
  min-height: 100vh;
  background: radial-gradient(ellipse 55% 65% at 50% 62%, #eef8f3 0%, #dcf1e8 50%, #bfdace 100%) no-repeat #bfdace;
}
.issue-bar { position: relative; background: var(--ink); color: var(--white); }
.issue-bar .bar {
  max-width: 1440px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 36px;
  padding: 16px 56px;
}
.issue-bar .label { font-style: italic; color: var(--taupe); }
.issue-bar .bar a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.issue-nav { display: contents; }
.issue-nav a[href="about.html"] { margin-left: auto; } /* push About + Résumé to the right */

.cover { max-width: 1440px; margin-inline: auto; padding: 28px 56px 0; }
.masthead-group { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 56px; }
.byline { font-style: italic; }
.masthead-block { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.masthead {
  font-family: var(--serif); font-weight: 400;
  font-size: min(248px, 17.222vw); line-height: 0.84; letter-spacing: 0.01em; white-space: nowrap;
}
.tagline { font-style: italic; font-size: 22px; line-height: 1.35; text-align: center; }

.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(576px, 40vw) minmax(0, 1fr);
  grid-template-areas: "story photo side";
  column-gap: 40px; align-items: start; padding-top: 28px;
}
.cover-story { grid-area: story; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 56px; }
.kicker { font-weight: 800; font-style: italic; font-size: 22px; line-height: 1.1; letter-spacing: -0.01em; color: var(--clay); }
.cover-story .deck { font-size: 16px; line-height: 1.5; }
.cover-stat { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }
.cover-stat .label { max-width: 280px; }
.cover-photo { grid-area: photo; aspect-ratio: 576 / 587; }
.cover-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
/* Cover image: the three case studies fanned out like a hand of cards, cover
   story on top. Card size follows the slot (container units). Hovering a card,
   or its story text, pulls that card to the front; hovering a card also dims
   the other two stories so the matching one stands out. */
.cover-fan { position: relative; container-type: size; }
.cover-fan .card {
  /* --a is the card's width as a share of its height: 90% of the height is the
     image area, so --a = 0.9 x the image's own width / height. */
  --h: min(80cqh, 65cqw);
  --w: calc(var(--h) * var(--a));
  position: absolute; left: 50%; top: 50%; z-index: var(--z);
  height: var(--h); width: var(--w);
  margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
  border-radius: 8px; color: var(--ink);
  transform-origin: 50% 150%;
  transform: rotate(var(--r));
}
.cover-fan .card:hover { text-decoration: none; }
.cover-fan .card-1 { --r: -13deg; --z: 3; --a: 0.7086; }  /* 992 x 1260 */
.cover-fan .card-2 { --r: 0deg; --z: 2; --a: 0.766; }    /* 800 x 940 */
.cover-fan .card-3 { --r: 13deg; --z: 1; --a: 0.8117; }  /* 1600 x (858 + 916), two stacked */
/* The link itself stays put so the pointer never falls off it; only the face lifts. */
.cover-fan .face {
  display: flex; flex-direction: column; height: var(--h); overflow: hidden; border-radius: 8px; background: var(--white);
  box-shadow: 0 2px 6px rgba(34, 36, 43, 0.14), 0 22px 44px rgba(34, 36, 43, 0.26);
  transform: translateY(var(--lift, 0px)) scale(var(--grow, 1));
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.cover-fan .art { flex: none; height: calc(var(--h) * 0.9); overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--surface); }
.cover-fan .art img { position: static; display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.cover-fan .art.stack { flex-direction: column; justify-content: flex-start; }
.cover-fan .art.stack img { flex: none; width: 100%; max-height: none; }
.cover-fan .trim { display: block; height: 100%; aspect-ratio: 992 / 1260; overflow: hidden; }
.cover-fan .trim img { max-width: none; max-height: none; width: 105.44%; margin: -1.81% 0 0 -2.72%; }
.cover-fan .label {
  flex: none; height: calc(var(--h) * 0.1); display: flex; align-items: center; gap: 0.45em; padding-inline: 6%;
  order: -1; /* label sits above the art */
  position: relative; background: var(--white); border-bottom: 1px solid var(--image);
  font-size: clamp(11px, 2.4cqw, 14px); line-height: 1; font-weight: 600; white-space: nowrap;
}
.cover-fan .label em { font-weight: 800; color: var(--clay); }

.cover-grid:has(:is(.card-1:hover, .card-1:focus-visible, .story-1:hover, .story-1:focus-within)) .card-1,
.cover-grid:has(:is(.card-2:hover, .card-2:focus-visible, .story-2:hover, .story-2:focus-within)) .card-2,
.cover-grid:has(:is(.card-3:hover, .card-3:focus-visible, .story-3:hover, .story-3:focus-within)) .card-3 {
  --z: 4; --lift: -7cqh; --grow: 1.1;
}
.cover-grid:has(:is(.card-1:hover, .card-1:focus-visible, .story-1:hover, .story-1:focus-within)) .card-1 .face,
.cover-grid:has(:is(.card-2:hover, .card-2:focus-visible, .story-2:hover, .story-2:focus-within)) .card-2 .face,
.cover-grid:has(:is(.card-3:hover, .card-3:focus-visible, .story-3:hover, .story-3:focus-within)) .card-3 .face {
  box-shadow: 0 4px 10px rgba(34, 36, 43, 0.16), 0 34px 64px rgba(34, 36, 43, 0.36);
}
.story-1, .story-2, .story-3 { transition: opacity 0.22s ease; }
.cover-grid:has(:is(.card-1:hover, .card-1:focus-visible)) :is(.story-2, .story-3),
.cover-grid:has(:is(.card-2:hover, .card-2:focus-visible)) :is(.story-1, .story-3),
.cover-grid:has(:is(.card-3:hover, .card-3:focus-visible)) :is(.story-1, .story-2) { opacity: 0.35; }
@media (prefers-reduced-motion: reduce) { .cover-fan .face, .story-1, .story-2, .story-3 { transition: none; } }
@media (max-width: 600px) {
  .cover-photo.cover-fan { aspect-ratio: 350 / 290; }
  .cover-fan .label em { display: none; }
}
.cover-side {
  grid-area: side; align-self: stretch;
  display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 48px;
  padding-bottom: 56px;
}
.side-story { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.side-story .title { font-weight: 800; font-style: italic; font-size: var(--h2); line-height: 1.05; letter-spacing: -0.02em; color: var(--clay); }
.side-story .deck { max-width: 336px; }

.text-link {
  display: inline-block; color: var(--link); font-weight: 600;
  border-bottom: 1px solid var(--link); padding-bottom: 2px;
}
.text-link:hover { text-decoration: none; border-bottom-width: 2px; padding-bottom: 1px; }

/* Desktop: the whole cover fits one screen. The masthead shrinks with the
   window height and the photo takes whatever height is left (587px at most). */
@media (min-width: 1100px) {
  .cover { display: flex; flex-direction: column; min-height: calc(100svh - 76px); padding-top: 16px; }
  .masthead-group { padding-top: 8px; }
  .masthead { font-size: clamp(96px, calc((100svh - 710px) * 1.19), min(248px, 17.222vw)); }
  .cover-grid { flex: 1; }
  .cover-story { padding-bottom: 24px; }
  .cover-side { padding-bottom: 24px; }
  .cover-photo { position: relative; aspect-ratio: auto; align-self: end; height: 100%; max-height: 587px; }
  .cover-photo img { position: absolute; inset: 0; }
}

@media (max-width: 1099px) {
  .issue-bar .bar { padding-inline: 32px; }
  .cover { padding-inline: 32px; }
  .masthead-group { align-items: flex-start; }
  .masthead { font-size: 17vw; }
  .tagline { font-size: 20px; }
  .cover-grid {
    grid-template-columns: minmax(0, 1fr) 47.6%;
    grid-template-areas: "story photo" "side side";
    row-gap: 40px; align-items: end;
  }
  .cover-story { padding-bottom: 0; }
  .cover-story .deck { font-size: 20px; line-height: 1.35; font-style: italic; }
  .cover-photo { aspect-ratio: 398 / 406; }
  .cover-side { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; gap: 40px 28px; }
  .side-story { flex: 1 1 0; min-width: 300px; align-items: flex-start; text-align: left; }
  .side-story .deck { max-width: none; }
}
@media (max-width: 600px) {
  .issue-bar .bar { height: 60px; padding: 0 10px 0 20px; justify-content: flex-end; flex-wrap: nowrap; }
  .issue-nav, .issue-bar .bar .label { display: none; }
  .cover { padding-inline: 20px; }
  .masthead-group { padding-top: 40px; }
  .masthead { font-size: 16.41vw; }
  .tagline { font-size: 18px; }
  .kicker { font-size: 20px; }
  .cover-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "story" "side"; }
  .cover-photo { aspect-ratio: 350 / 357; }
  .cover-story .deck { font-size: 18px; }
  .side-story { min-width: 100%; }
  .issue-bar .menu-btn { margin-right: 0; }
}

/* ---------- Case study hero ---------- */
.hero { padding-top: 72px; }
.hero .h1 { max-width: 1050px; }
.hero .sub { padding-top: 20px; font-weight: 600; }
.hero .deck { padding-top: 24px; max-width: 780px; }
.hero--page .lg { padding-top: 16px; }

/* ---------- Figures ---------- */
.figure-glance { padding-top: 56px; }
.figure-glance .row { --gap: 48px; }
.figure-col { flex: 1 1 560px; min-width: min(560px, 100%); }
.glance { flex: 1 1 228px; max-width: 300px; display: flex; flex-direction: column; gap: 20px; }
.glance dl { display: flex; flex-direction: column; gap: 18px; }
.glance dt { font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--secondary); margin-bottom: 4px; }
@media (max-width: 899px) { .glance { flex-basis: 100%; max-width: none; } }

.figure { display: flex; flex-direction: column; gap: 12px; }
.figure figcaption, .caption { font-size: 13px; line-height: 1.4; font-style: italic; }
.caption.center, .figure.center figcaption { text-align: center; }
.figure-box { display: flex; justify-content: center; align-items: center; padding: var(--box-pad, 32px); background: var(--surface); }
.figure-box.mint { background: var(--mint); --box-pad: 72px; }
.figure-box.mint.wide { --box-pad: 56px; }
.figure-box.card { background: var(--white); --box-pad: 40px; }
.figure-box img { width: 100%; max-width: var(--w, 100%); height: auto; }
.figure-box.slot { height: 484px; }
.figure-box.slot img { width: auto; max-width: min(480px, 100%); max-height: 100%; }
.shadow-lg { box-shadow: 0 24px 24px rgba(0, 0, 0, 0.25); }
.shadow-md { box-shadow: 0 16px 16px rgba(0, 0, 0, 0.18); }
.shot { border: 1px solid var(--image); background: var(--surface); display: flex; justify-content: center; }
.shot img { width: auto; max-width: 100%; height: auto; max-height: var(--max-h, none); }
@media (max-width: 600px) {
  .figure-box.mint, .figure-box.mint.wide { --box-pad: 24px; }
  .figure-box { --box-pad: 20px; }
  .figure-box.card { --box-pad: 0px; }
  .figure-box.slot { height: 313px; }
}

/* ---------- Stats ---------- */
.stats .row { --gap: 0 24px; }
.stats .col { --min: 260px; padding-block: 36px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.split { display: flex; align-items: flex-end; gap: 32px; }

/* ---------- Flow cards ---------- */
.flow-card { background: var(--surface); padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.flow-card .head { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; }
.badge.lg-badge { width: 28px; height: 28px; }
.badge.neg { background: var(--negative); }
.badge.pos { background: var(--positive); }
.flow-steps { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; }
.flow-steps li { display: flex; gap: 14px; }
.flow-steps .n { flex: none; width: 24px; font-weight: 600; }
.flow-steps .neg { color: var(--negative); }

/* ---------- Bars ---------- */
.bars { display: flex; flex-direction: column; gap: 18px; }
.bar-row { display: flex; flex-direction: column; gap: 6px; }
.bar-row .labels { display: flex; justify-content: space-between; gap: 12px; }
.bar-row .value { font-weight: 600; white-space: pre; }
.track { background: var(--surface); height: 18px; }
.track .fill { height: 100%; background: var(--brown); }

/* ---------- Labeled paragraph, tags, points ---------- */
.labeled { display: flex; flex-direction: column; gap: 2px; }
.labeled .label { font-weight: 600; }
.tag { align-self: flex-start; border: 1px solid var(--ink); border-radius: 2px; padding: 8px 12px; font-weight: 600; }
.pad-card { padding: 32px; }
.bullets-lg { padding-top: 10px; }
.bullets-lg li { display: flex; gap: 12px; padding-block: 14px; font-size: var(--lg); line-height: 1.4; }
.bullets-lg li > div { display: flex; flex-direction: column; gap: 4px; }
.bullets-lg .sub { font-size: 16px; line-height: 1.5; color: var(--secondary); }

/* ---------- Status lines ---------- */
.status { display: flex; align-items: flex-start; gap: 12px; }
.status .text { flex: 1 1 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 0 6px; }
.status .lead { font-weight: 600; }
.status.fixed { width: min(480px, 100%); }

/* ---------- Annotated figure ---------- */
.annot {
  display: grid; grid-template-columns: minmax(0, 300px) auto minmax(0, 300px);
  column-gap: 60px; justify-content: center; align-items: start; padding-top: var(--pt, 48px);
}
.annot-shot { grid-column: 2; grid-row: 1; position: relative; width: var(--w, 400px); }
.annot-shot > img { width: 100%; height: auto; }
.pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brown); border: 3px solid var(--white); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 600; line-height: 1;
}
.pin.l { left: 0; }
.pin.r { left: 100%; }
.notes { display: contents; }
.notes-left, .notes-right { grid-row: 1; display: flex; flex-direction: column; }
.notes-left { grid-column: 1; align-items: flex-end; gap: var(--gl, 40px); padding-top: var(--ptl, 96px); }
.notes-right { grid-column: 3; gap: var(--gr, 16px); padding-top: var(--ptr, 162px); }
.note { display: flex; align-items: flex-start; gap: 12px; width: 100%; max-width: 300px; }
.notes-left .note { flex-direction: row-reverse; text-align: right; }
.note p { flex: 1 1 0; min-width: 0; }
.note .num {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--brown); color: var(--brown);
  display: flex; align-items: center; justify-content: center; font-weight: 600; line-height: 1;
}
@media (max-width: 1099px) {
  .annot { display: flex; flex-direction: column; align-items: center; gap: 32px; }
  .annot-shot { width: min(var(--w, 400px), calc(100% - 30px)); }
  .notes { display: flex; flex-direction: column; gap: 16px; width: 100%; }
  .notes-left, .notes-right { display: contents; }
  .note, .notes-left .note { flex-direction: row; text-align: left; max-width: none; order: var(--o); }
}

/* ---------- Dark band ---------- */
.dark-band { background: var(--ink); color: var(--white); padding-block: 88px; }
.dark-band .points { --gap: 40px; --pt: 48px; }
.dark-band .points .col { --min: 240px; --g: 10px; }

/* ---------- Email illustration and buttons ---------- */
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 2px;
  background: var(--ink); color: var(--white); font-weight: 600; white-space: nowrap;
}
a.btn:hover { text-decoration: none; background: #000; }
.btn.outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.email-card { background: var(--white); border: 1px solid var(--image); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.email-card .actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.solutions { display: flex; flex-direction: column; gap: 120px; padding-top: 64px; }
.solutions .row { --gap: 40px 56px; }
.before-after { display: flex; flex-direction: column; gap: 12px; padding-top: 10px; }

/* ---------- About ---------- */
.letter { padding-top: 56px; }
.letter .row { --gap: 56px; }
/* The photo sits in a mint box, the same way case study screenshots do. */
.about-figure { flex: 0 1 400px; min-width: min(300px, 100%); display: flex; justify-content: center; padding: 48px; background: var(--mint); }
.about-photo { width: 100%; max-width: 304px; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; box-shadow: 0 24px 24px rgba(0, 0, 0, 0.25); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.about-text { flex: 1 1 0; min-width: min(360px, 100%); max-width: 680px; display: flex; flex-direction: column; gap: 20px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 8px; font-weight: 600; color: var(--link); }
.quote { padding-top: 116px; }
.quote blockquote { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.block { padding-top: var(--block-pt, 92px); }
.block .row { --gap: 24px 48px; }
.block-title { flex: none; width: 260px; display: flex; flex-direction: column; gap: 16px; }
.block-content { flex: 1 1 0; min-width: min(320px, 100%); }
.exp-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; row-gap: 4px; padding-block: 18px; }
.exp-row .role { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 600px) {
  .about-figure { flex-basis: 100%; padding: 24px; }
  .about-photo { max-width: 260px; }
  .block-title { width: 100%; }
}

/* ---------- Résumé ---------- */
.resume-hero { padding-top: 72px; }
.resume-hero .row { justify-content: space-between; --gap: 24px 24px; }
.resume-hero .col { --min: 320px; --g: 16px; }
.resume-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.resume-contact .divider { width: 1px; height: 14px; background: var(--taupe); }
.dl-link { color: var(--link); font-weight: 600; }
.jobs { display: flex; flex-direction: column; gap: 28px; }
.job { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; }
.job .company { font-weight: 400; line-height: 1.4; }
.job ul { list-style: disc; padding-top: 8px; padding-left: 24px; }
.inline-link { font-weight: 600; color: var(--brown); text-decoration: underline; text-underline-offset: 2px; }
.inline-link:hover { text-decoration-thickness: 2px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: var(--footer-pt, 120px); }
.site-footer .inner { display: flex; flex-direction: column; gap: 48px; padding-bottom: 56px; }
.site-footer .next { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-end; gap: 16px; }
.site-footer .contact { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 20px; font-size: 13px; line-height: 1.4; color: var(--secondary); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 0 20px; font-weight: 600; }

/* ---------- Print (résumé "Download PDF") ----------
   A compact layout so the résumé fits on one page, Letter or A4. */
@media print {
  @page { margin: 0.5in; }
  :root { --h2: 22pt; --h3: 11.5pt; --lg: 10pt; }
  html, body { background: #fff; }
  body { font-size: 10pt; line-height: 1.42; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .site-footer, .dl-link, .skip { display: none !important; }
  .wrap { max-width: none; padding-inline: 0; }
  .lg { line-height: 1.4; }

  .resume-hero { padding-top: 0; }
  .resume-hero .col { --g: 7px; }
  .resume-contact { gap: 2px 10px; }

  .block { --block-pt: 20px; }
  .block .row { --gap: 4px 18px; flex-wrap: nowrap; }
  .block-title { width: 96px; }
  .block-content { min-width: 0; }
  .block-content .row { flex-wrap: wrap; --gap: 4px 24px !important; }
  .block-content .col { --g: 2px !important; }
  .stack { --g: 2px !important; }

  .jobs { gap: 12px; }
  .job { gap: 1px; padding-bottom: 0; break-inside: avoid; }
  .job .company { line-height: 1.2; }
  .job ul { padding-top: 3px; padding-left: 16px; }
}
