/* Lettie Malan Assaf — portfolio
   Drawing-set system: hairline sheet, Figtree + IBM Plex Mono, printed crop marks. */

:root {
  --paper: #FBFBF9;
  --white: #FFFFFF;
  --ink: #1E2226;
  --ink-2: #3B434B;
  --label: #4F5862;
  --label-2: #5A636C;
  --rule: #CBD1D6;
  --rule-light: #DDE1E4;
  --link-hover: #3F5F80;
  --sans: Figtree, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: 56px;
  --cell-pad: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--link-hover); }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }

.mono { font-family: var(--mono); letter-spacing: 0.06em; }

/* ---------- Sheet ---------- */

.sheet {
  max-width: 1232px;
  margin: 0 auto;
  border: 1px solid var(--rule);
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 48px);
}

/* full-width rows that run edge to edge of the sheet */
.site-header,
.site-footer {
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  border-bottom: 1px solid var(--rule-light);
}
.site-header .name { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-family: var(--sans); font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: uppercase; }
.site-header .name svg { flex: none; }
.site-header .kind,
.site-header nav a { font-size: 14px; }
.site-header nav { display: flex; gap: 32px; justify-content: flex-end; }

.site-footer {
  margin-top: auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  border-top: 1px solid var(--rule-light);
  color: var(--label);
}
.site-footer > * {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 16px;
  border-right: 1px solid var(--rule-light);
}
.site-footer > :first-child { padding-left: var(--gutter); color: var(--ink); }
.site-footer .footer-name { gap: 8px; }
.site-footer .footer-name svg { flex: none; }
.site-footer > :last-child { border-right: 0; padding-right: var(--gutter); justify-content: space-between; color: var(--ink); }

/* ---------- Section headings ---------- */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.section-head h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; }

.caption { font-family: var(--mono); font-size: 10px; line-height: 1.5; letter-spacing: 0.06em; color: var(--label); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 675px);
  gap: 40px;
  margin-top: 56px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.22em; color: var(--label-2); }
.hero h1 { font-size: 44px; line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; }
.hero-copy p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.hero figure { display: flex; flex-direction: column; gap: 18px; }
.hero figure svg { width: 100%; height: auto; display: block; }
.hero figcaption { text-align: center; padding-right: 24%; font-size: 11px; }

/* diagram strokes */
.ink { fill: none; stroke: var(--ink); stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.dot { fill: var(--paper); stroke: var(--ink); stroke-width: 1.1; vector-effect: non-scaling-stroke; }

/* ---------- Case studies ---------- */

.work { margin-top: 120px; display: flex; flex-direction: column; gap: 40px; }
.work .section-head { margin-bottom: 16px; }

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  border: 1px solid var(--rule);
}

.project-visual {
  background: var(--white);
  padding: var(--cell-pad) var(--cell-pad) 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

/* title block */
.title-block { border-left: 1px solid var(--rule); display: flex; flex-direction: column; }
.title-block > div { padding: 18px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.title-block .k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; color: var(--label); }
.title-block .project-name { font-size: 21px; font-weight: 600; line-height: 1.2; }
.title-block .tagline { font-size: 15px; font-style: italic; line-height: 1.45; color: var(--ink-2); }
.title-block .v { font-size: 14px; line-height: 1.55; }
.title-block .cta { flex-grow: 1; border-bottom: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }
.title-block .cta.muted { color: var(--label); }

/* printed crop marks: 12px ticks, 6px off each corner, on the image's edge row/column */
.crop { position: relative; }
.crop::after {
  content: "";
  position: absolute;
  inset: -18px;
  pointer-events: none;
  background:
    linear-gradient(var(--rule), var(--rule)) left 0 top 18px / 12px 1px,
    linear-gradient(var(--rule), var(--rule)) left 18px top 0 / 1px 12px,
    linear-gradient(var(--rule), var(--rule)) right 0 top 18px / 12px 1px,
    linear-gradient(var(--rule), var(--rule)) right 18px top 0 / 1px 12px,
    linear-gradient(var(--rule), var(--rule)) left 0 bottom 18px / 12px 1px,
    linear-gradient(var(--rule), var(--rule)) left 18px bottom 0 / 1px 12px,
    linear-gradient(var(--rule), var(--rule)) right 0 bottom 18px / 12px 1px,
    linear-gradient(var(--rule), var(--rule)) right 18px bottom 0 / 1px 12px;
  background-repeat: no-repeat;
}
.edge { outline: 1px solid var(--rule); outline-offset: -1px; }

/* 01 — All Inbox: the live landing page hero, rebuilt so its type stays crisp */
.ai-hero {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 764 / 468;
  overflow: hidden;
  background: #FBF5EF;
  color: #3B2621;
}
.ai-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.ai-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(251,245,239,0.94) 0%, rgba(251,245,239,0.86) 34%, rgba(251,245,239,0.35) 56%, rgba(251,245,239,0) 66%);
}
.ai-hero .ai-logo { position: absolute; z-index: 2; left: 5.2cqw; top: 3.7cqw; font-family: 'Crimson Pro', Georgia, serif; font-weight: 600; font-size: 2.5cqw; }
.ai-hero .ai-copy { position: absolute; z-index: 2; left: 5.2cqw; top: 50%; transform: translateY(-50%); width: 43cqw; display: flex; flex-direction: column; gap: 2.1cqw; }
.ai-hero .ai-h { font-family: 'Crimson Pro', Georgia, serif; font-weight: 600; font-size: 6cqw; line-height: 0.98; letter-spacing: -0.03em; }
.ai-hero .ai-p { font-family: 'Hanken Grotesk', sans-serif; font-size: 1.7cqw; line-height: 1.55; }
.ai-hero .ai-btn { align-self: flex-start; padding: 1.2cqw 2.4cqw; border-radius: 999px; background: #1F3D5C; color: #FBF5EF; font-family: 'Hanken Grotesk', sans-serif; font-weight: 600; font-size: 1.6cqw; }
@container (max-width: 520px) {
  .ai-hero .ai-p { display: none; }
  .ai-hero .ai-h { font-size: 7cqw; }
  .ai-hero .ai-btn { font-size: 2.6cqw; }
}

/* 02 — Project Costs: the developer worksheet, mounted, over the swimlane (crop marks sit on the swimlane) */
.combo { position: relative; aspect-ratio: 764 / 330; }
.combo .combo-lane { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
.combo-lane svg { display: block; width: 100%; height: auto; }
.combo-screen { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); width: 57.5%; padding: 8px; background: #F1F2F0; border: 1px solid var(--rule); }
.combo-screen img { display: block; width: 100%; height: auto; }

/* 03 — MixLife: desktop + mobile at equal height */
.pair { display: flex; align-items: flex-start; gap: 7%; }
.pair figure { display: flex; flex-direction: column; gap: 22px; }
.pair .desktop { flex: 1.389 1 0; }
.pair .mobile { flex: 0.46 1 0; }
.pair .mobile .crop > img { background: #FFFFFF; }
.pair.framed .mobile { flex: 0.52 1 0; }   /* the live phone (585 x 1125) matches the desktop screen's height */

/* 04 — YouTube Learning: crop marks on the screen; the magnifier breaks the frame */
.ytl { aspect-ratio: 1290 / 780; margin-bottom: 12.5%; }
.ytl img { position: absolute; left: -6.512%; top: -9.615%; width: 113.876%; max-width: none; }

/* ---------- About ---------- */

.about { margin-top: 140px; }
.about-intro { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; margin-top: 56px; align-items: start; }
.portrait { display: flex; flex-direction: column; gap: 12px; }
.portrait .mount { width: 200px; height: 200px; padding: 12px; background: #F1F2F0; border: 1px solid var(--rule); }
.portrait .mount div { position: relative; width: 176px; height: 176px; overflow: hidden; }
.portrait img { width: 176px; height: 176px; filter: url(#tinted); }
.about-lede { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.statement { font-size: 34px; line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; }
.about-lede p:not(.statement) { font-size: 18px; line-height: 1.65; color: var(--ink-2); }

/* highlights: a ruled, numbered table on the same two columns */
.highlights { margin-top: 64px; }
.highlights-head { padding: 0 0 12px; border-bottom: 1px solid var(--rule); font-size: 11px; font-weight: 400; letter-spacing: 0.08em; color: var(--label); }
.highlights ol { list-style: none; margin: 0; padding: 0; font-size: 17px; line-height: 1.6; }
.highlights li { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; padding: 18px 0; border-bottom: 1px solid var(--rule-light); }
.highlights .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--label); padding-top: 4px; }

.about-close { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; margin-top: 40px; }
.about-close > div { grid-column: 2; display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.about-close p { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.about-close a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; margin-top: 6px; }

.day-off { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 72px; margin-top: 72px; align-items: center; }
.day-off figure { display: flex; flex-direction: column; gap: 16px; }
.trees img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }   /* her watercolor trees; paper normalised to white so it vanishes into ours */
.day-off figcaption { text-align: center; font-size: 11px; }
.day-off h3 { font-size: 24px; font-weight: 600; margin-bottom: 16px; }
.day-off p { font-size: 17px; line-height: 1.65; color: var(--ink-2); }

/* ---------- Contact ---------- */

.contact {
  margin: 140px 0;
  padding-top: 56px;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px 80px;
  align-items: start;
}
.contact h2 { grid-column: 1 / -1; font-size: 52px; line-height: 1.05; font-weight: 500; letter-spacing: -0.02em; }
.contact-copy { display: flex; flex-direction: column; gap: 20px; }
.contact p { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 640px; }
.contact p.cta { color: var(--ink); }
.contact-links { border-top: 1px solid var(--rule-light); }
.contact-links a { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--rule-light); font-size: 18px; font-weight: 500; }
.contact-links a span:last-child { font-family: var(--mono); font-size: 12px; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 640px; }
  .project { grid-template-columns: 1fr; overflow: hidden; }
  /* cells tile in a grid; their right/bottom rules overlap the project border by 1px */
  .title-block { border-left: 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 -1px -1px 0; }
  .title-block > div { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .title-block > .wide { grid-column: 1 / -1; }
  .title-block .cta { justify-content: center; }
  .about-intro, .about-close, .highlights li { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
  .day-off { grid-template-columns: 1fr; gap: 40px; }
  .contact { grid-template-columns: 1fr; gap: 28px; }
  .contact-links { margin-top: 12px; }
}

@media (max-width: 700px) {
  :root { --gutter: 20px; --cell-pad: 28px; }
  body { padding: 12px; }
  .site-header { grid-template-columns: 1fr auto; }
  .site-header .kind { display: none; }
  .site-header { column-gap: 12px; }
  .site-header nav { gap: 12px; }
  .site-header .name { gap: 6px; font-size: 13px; white-space: nowrap; }
  .site-header .name svg { width: 18px; height: 18px; }
  .site-header nav a { font-size: 12px; }
  .hero { margin-top: 40px; }
  .hero h1 { font-size: 32px; }
  .hero figcaption { padding-right: 0; }
  .work, .about { margin-top: 88px; }
  .title-block { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .title-block .cta { grid-column: 1 / -1; }
  .pair { gap: 9%; }
  .about-intro { grid-template-columns: 1fr; gap: 32px; }
  .highlights li { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
  .about-close { grid-template-columns: 1fr; }
  .about-close > div { grid-column: auto; }
  .statement { font-size: 26px; }
  .contact { margin: 88px 0; }
  .contact h2 { font-size: 38px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer > * { min-height: 52px; padding: 0 var(--gutter); }
  .site-footer > :nth-child(2) { border-right: 0; }
  .site-footer > :nth-child(-n+2) { border-bottom: 1px solid var(--rule-light); }
}

/* ======================================================================
   Case-study pages — original structure and hierarchy, drawing-set system
   ====================================================================== */

.cs { display: flex; flex-direction: column; }

.cs-head { margin-top: 64px; display: flex; flex-direction: column; }
.cs-head .eyebrow { font-family: var(--mono); font-weight: 400; letter-spacing: 0.08em; margin-bottom: 20px; }
.cs-head h1 { font-size: 40px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.cs-h2 { font-size: 30px; line-height: 1.2; font-weight: 400; margin-top: 8px; }
.cs-meta { font-size: 18px; line-height: 1.4; color: var(--label-2); margin-top: 10px; }

.cs-hero { margin-top: 64px; padding: 18px 0; }
.cs-hero.right { align-self: flex-end; width: 80%; }
.cs-hero.left { align-self: flex-start; width: 80%; }
.cs-hero.center { align-self: center; width: 80%; }
.cs-hero.full { width: 100%; }
.sl-scroll svg { display: block; width: 100%; height: auto; }
.cs-swimlane { margin: 18px 0; }
.sl-hint { display: none; }

.cs h2 { font-size: 28px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.cs-intro, .cs-section { margin-top: 112px; display: flex; flex-direction: column; gap: 22px; }
.cs-intro h2 { margin-bottom: 18px; }
.cs-section h2 { margin-bottom: 14px; }
.cs-section .row h2 { margin-top: 94px; }   /* + the column's 18px gap = the 112px between sections */
.cs-intro .summary { font-size: 18px; line-height: 1.6; }
.cs-intro .row { column-gap: 72px; }

.cs-section, .cs-intro { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.cs-section > p, .cs-section > .lead, .cs-section > h3, .cs-section > ul, .cs-section > ol { max-width: 760px; }
.cs h3 { font-size: 20px; line-height: 1.35; font-weight: 400; color: var(--ink); margin-top: 22px; }
.cs .lead { font-size: 16px; font-weight: 600; color: var(--ink); }
.cs strong { color: var(--ink); font-weight: 600; }
.cs ul, .cs ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.cs .note { font-size: 13px; font-style: italic; color: var(--label); }

.row { display: grid; column-gap: 64px; row-gap: 32px; align-items: start; }
.row > div { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.row p + p { margin-top: 0; }

/* left-ruled label/value blocks (role & team, challenges, hypotheses) */
.ruled { border-left: 1px solid var(--ink); padding-left: 16px; display: flex; flex-direction: column; gap: 16px; }
.ruled p { color: var(--ink); }
.profiles { border-left-color: var(--rule); }

/* quotes: left-ruled like .ruled; the opening mark hangs, the source is a mono label */
blockquote { margin: 26px 0; max-width: 820px; padding: 4px 0 4px 24px; border-left: 1px solid var(--ink); }
blockquote p { font-size: 24px; line-height: 1.42; color: var(--ink); text-indent: -0.42em; }
blockquote cite { display: block; margin-top: 18px; font: 400 12px/1.2 'IBM Plex Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; font-style: normal; color: var(--label); }

/* screens/illustrations: no cell, printed crop marks + hairline edge */
.shot { margin: 18px 0; width: 100%; }
.shot img { width: 100%; height: auto; }
.row > div > .shot:first-child,
.row > div > .phonepair:first-child,
.row > div > h3:first-child { margin-top: 0; }
/* flat illustrations start level with the first line of text, not the top of its line box */
.row > div > .flat:first-child { margin-top: 6px; }
.row > div > .sec-start { margin-top: 94px; }   /* + the column's 18px gap = the 112px between sections */
.flat { margin: 18px 0; }
/* phone UI in its device frame, with crop marks; the plan lies on top on a photo mount, tilted like a print on the desk */
.phonepair { display: flex; align-items: flex-start; gap: 7%; margin: 18px 0; }   /* flex weights = 10 x each image's aspect ratio (summing past 1 so the pair fills the column), so heights match */
.phonepair .crop { min-width: 0; }
.phonepair img { display: block; width: 100%; height: auto; }
.mount-frame { padding: 12px; background: #F1F2F0; border: 1px solid var(--rule); }
.mount-frame img { display: block; width: 100%; height: auto; }
.photo { margin: 0; }   /* a mounted photograph */
.flat img { width: 100%; height: auto; }
.quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin: 18px 0; }
.quad figure { margin: 0; }
.quad img { width: 100%; height: auto; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin: 18px 0; align-items: start; }
.trio figure { display: flex; flex-direction: column; gap: 22px; }
.trio img { width: 100%; height: auto; }
.trio figcaption { font-family: var(--mono); font-size: 12px; line-height: 1.5; letter-spacing: 0.02em; color: var(--label); }
.drawing { margin: 0; width: 100%; }
.drawing img { width: 100%; height: auto; mix-blend-mode: multiply; }

.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 16px; }
.stats3 > div { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--rule); }
.stats3 h3 { margin: 0; font-size: 19px; font-weight: 500; }
.stat { display: flex; align-items: center; gap: 16px; }
.stat .num { font-size: 40px; line-height: 1; font-weight: 500; color: var(--ink); }
.stat .label { font-size: 15px; line-height: 1.4; }

.cs .contact { margin-top: 140px; }
.cs .nf-list { list-style: none; margin: 0 0 96px; padding: 0; max-width: 520px; border-top: 1px solid var(--rule); }   /* 404 page */
.nf-list li { border-bottom: 1px solid var(--rule); }
.nf-list a { display: block; padding: 14px 0; color: var(--ink); text-decoration: none; }
.nf-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.row.overhang > div:last-child { height: 0; }   /* an aside taller than its text hangs into the next section's empty column */
.m-only { display: none; }   /* phone-only content (shown once the layout stacks); .d-only is its desktop twin */
.split-parts { flex-direction: column; gap: 28px; }

@media (max-width: 900px) {
  .row { grid-template-columns: 1fr !important; }
  .row.overhang > div:last-child { height: auto; }
  .m-only { display: block; }
  .split-parts.m-only { display: flex; }
  .d-only, .row > .d-only { display: none; }   /* .row > div sets display: flex, so the row case needs the extra weight */
  blockquote p { font-size: 20px; }
  .row > div > .sec-start { margin-top: 62px; }
  .cs-hero.right, .cs-hero.left, .cs-hero.center { width: 100%; }
  .trio { grid-template-columns: 1fr; gap: 40px; }
  .quad { grid-template-columns: 1fr; gap: 40px; }
  .stats3 { grid-template-columns: 1fr; }
  .stats3 > div { border-top: 0; padding-top: 0; }   /* stacked, the rules read as half-made cells */
}
@media (max-width: 700px) {
  .cs-head h1 { font-size: 34px; }
  .cs-h2 { font-size: 24px; }
  .cs-intro, .cs-section { margin-top: 80px; }
  .cs-section .row h2 { margin-top: 62px; }
}

/* role & team as a title-block table: its own layout at every width (the home title-block's grid rules would
   double the borders and leave an empty third cell). Stacked beside the intro; side by side once the intro stacks. */
.title-block.cs-facts { display: flex; flex-direction: column; margin: 0; border: 1px solid var(--rule); }
.title-block.cs-facts > div { border-right: 0; border-bottom: 1px solid var(--rule); }
.title-block.cs-facts > div:last-child { border-bottom: 0; }
.cs-facts .v { color: var(--ink); }
@media (max-width: 900px) {
  .title-block.cs-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .title-block.cs-facts > div { border-bottom: 0; border-right: 1px solid var(--rule); }
  .title-block.cs-facts > div:last-child { border-right: 0; }
}

/* smallest phones: keep the header on one line */
@media (max-width: 360px) {
  .site-header .name { font-size: 12px; gap: 5px; }
  .site-header .name svg { width: 16px; height: 16px; }
  .site-header nav { gap: 9px; }
  .site-header nav a { font-size: 11px; letter-spacing: 0.02em; }
}

/* phones: the case-study swimlane keeps a readable size and scrolls sideways */
@media (max-width: 700px) {
  .sl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sl-scroll svg { width: 900px; max-width: none; }
  .sl-hint { display: block; margin-top: 12px; text-align: right; }
}

/* YouTube Learning user journey (journey.py): one framed sheet; four steps across, 2 x 2 on phones */
.journey-sheet { margin: 22px 0 8px; }
.j-frame { background: #FFFFFF; padding: 40px 36px 44px; }
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.journey .j-step { display: flex; flex-direction: column; min-width: 0; }
.journey .j-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.journey .j-num { flex: none; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid var(--ink); border-radius: 50%; font-size: 13px; font-weight: 600; color: var(--ink); }
.journey .j-name { margin: 0; font-size: 17px; font-weight: 600; line-height: 26px; color: var(--ink); }
.journey svg { display: block; width: 100%; height: auto; }
.journey .j-goal { margin: 14px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.journey .j-label { margin: 16px 0 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.journey .j-pains { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.journey .j-pains li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.4; color: var(--ink); }
.journey .j-pains li::before { content: "!"; position: absolute; left: 0; top: 0; font-weight: 700; }
@media (max-width: 900px) {
  .j-frame { padding: 24px 16px 28px; }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 18px; }
}

/* MPHONE: generated by _tools/case/mphone.py */
.mphone { --mp-p: calc(100cqw / 874); --mp-u: calc(100cqw * 813 / 874 / 390); --mp-view: calc(1498 * 100cqw / 874); }
.mphone { position: relative; aspect-ratio: 874 / 1680; container-type: inline-size; }
.mphone .mp-screen { position: absolute; left: calc(28 * var(--mp-p)); right: calc(29 * var(--mp-p)); top: calc(28 * var(--mp-p)); bottom: calc(29 * var(--mp-p)); border-radius: calc(88 * var(--mp-p)); background: #FFFFFF; }
.mphone .mp-frame { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }   /* on top: its screen is transparent, its bezel masks the edges */
.mphone .mp-url { position: absolute; left: calc(76 * var(--mp-p)); right: calc(76 * var(--mp-p)); top: calc(92 * var(--mp-p)); height: calc(46 * var(--mp-p)); border-radius: calc(23 * var(--mp-p)); background: #EEEFF1; font: 500 calc(24 * var(--mp-p))/calc(46 * var(--mp-p)) Figtree, sans-serif; color: #3A3D42; text-align: center; }
.mphone .mp-view { position: absolute; left: calc(30 * var(--mp-p)); right: calc(31 * var(--mp-p)); top: calc(152 * var(--mp-p)); bottom: calc(31 * var(--mp-p)); overflow: hidden; clip-path: inset(0 round 0 0 calc(86 * var(--mp-p)) calc(86 * var(--mp-p))); }
.mphone .mp-page { background: #FFFFFF; font: 400 calc(16 * var(--mp-u))/1.5 Jost, Futura, sans-serif; color: #1A1A1A; animation: mp-scroll 56s ease-in-out infinite; will-change: transform; }
.mphone:hover .mp-page { animation-play-state: paused; }
@keyframes mp-scroll {
  0%, 5% { transform: translateY(0); }
  84%, 92% { transform: translateY(calc(-100% + var(--mp-view))); }
  100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .mphone .mp-page { animation: none; } }
.mphone .mp-page p { margin: 0; }
.mphone .mp-page img { display: block; }
.mphone .mp-head { padding: calc(14 * var(--mp-u)) calc(18 * var(--mp-u)) calc(12 * var(--mp-u)); }
.mphone .mp-brand { display: flex; align-items: center; gap: calc(7 * var(--mp-u)); font-weight: 600; font-size: calc(22 * var(--mp-u)); letter-spacing: calc(-0.2 * var(--mp-u)); }
.mphone .mp-brand img { width: calc(30 * var(--mp-u)); height: calc(30 * var(--mp-u)); }
.mphone .mp-nav { display: flex; justify-content: space-between; margin-top: calc(14 * var(--mp-u)); font-size: calc(15 * var(--mp-u)); color: #333333; }
.mphone .mp-hero { width: 100%; height: calc(360 * var(--mp-u)); object-fit: cover; }
.mphone .mp-pad { padding: 0 calc(18 * var(--mp-u)); }
.mphone .mp-h1 { margin: calc(26 * var(--mp-u)) 0 calc(16 * var(--mp-u)) !important; font-size: calc(34 * var(--mp-u)); line-height: 1.15; text-align: center; }
.mphone .mp-lede { font-size: calc(17 * var(--mp-u)); line-height: 1.55; color: #6B6B6B; }
.mphone .mp-when { margin-top: calc(18 * var(--mp-u)) !important; font-size: calc(21 * var(--mp-u)); }
.mphone .mp-price { margin-top: calc(8 * var(--mp-u)) !important; font-size: calc(21 * var(--mp-u)); color: #1A1A1A; }
.mphone .mp-price s { color: #6B6B6B; font-style: italic; }
.mphone .mp-price b { color: #00BC9A; font-weight: 500; }
.mphone .mp-price span { display: block; font-size: calc(15 * var(--mp-u)); color: #333333; }
.mphone .mp-btn { display: block; margin-top: calc(18 * var(--mp-u)); padding: calc(11 * var(--mp-u)) 0; border-radius: calc(4 * var(--mp-u)); background: #00BC9A; color: #FFFFFF; font-size: calc(17 * var(--mp-u)); font-weight: 500; text-align: center; }
.mphone .mp-fine { margin-top: calc(8 * var(--mp-u)) !important; font-size: calc(12 * var(--mp-u)); color: #6B6B6B; }
.mphone .mp-instr { margin-top: calc(40 * var(--mp-u)); }
.mphone .mp-photo { width: 100%; height: calc(330 * var(--mp-u)); object-fit: cover; border-radius: calc(6 * var(--mp-u)); }
.mphone .mp-eyebrow { margin-top: calc(16 * var(--mp-u)) !important; font-size: calc(13 * var(--mp-u)); letter-spacing: calc(0.6 * var(--mp-u)); color: #6B6B6B; }
.mphone .mp-h2 { font-size: calc(32 * var(--mp-u)); line-height: 1.2; }
.mphone .mp-h2c { font-size: calc(28 * var(--mp-u)); line-height: 1.2; text-align: center; }
.mphone .mp-h3 { margin-top: calc(26 * var(--mp-u)) !important; font-size: calc(20 * var(--mp-u)); font-weight: 500; }
.mphone .mp-clamp { margin-top: calc(12 * var(--mp-u)) !important; font-size: calc(16 * var(--mp-u)); line-height: 1.6; color: #444444; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.mphone .mp-more { display: inline-block; margin-top: calc(6 * var(--mp-u)); color: #00A386; font-weight: 500; font-size: calc(15 * var(--mp-u)); text-decoration: underline; text-underline-offset: calc(3 * var(--mp-u)); text-decoration-thickness: calc(1 * var(--mp-u)); }
.mphone .mp-details { margin-top: calc(44 * var(--mp-u)); padding: calc(30 * var(--mp-u)) calc(18 * var(--mp-u)) calc(34 * var(--mp-u)); background: #EEEEEE; }
.mphone .mp-facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: calc(18 * var(--mp-u)); border-top: calc(1 * var(--mp-u)) solid #D6D6D6; }
.mphone .mp-facts div { padding: calc(11 * var(--mp-u)) 0; border-bottom: calc(1 * var(--mp-u)) solid #D6D6D6; font-size: calc(17 * var(--mp-u)); }
.mphone .mp-facts span { display: block; font-size: calc(11 * var(--mp-u)); letter-spacing: calc(0.8 * var(--mp-u)); color: #6B6B6B; }
.mphone .mp-sched { margin-top: calc(10 * var(--mp-u)); }
.mphone .mp-sched div { display: flex; gap: calc(14 * var(--mp-u)); align-items: center; padding: calc(10 * var(--mp-u)) 0; border-bottom: calc(1 * var(--mp-u)) solid #D6D6D6; }
.mphone .mp-sched div > span:last-child { font-size: calc(14 * var(--mp-u)); color: #555555; line-height: 1.35; }
.mphone .mp-sched b { display: block; font-weight: 500; font-size: calc(16 * var(--mp-u)); color: #1A1A1A; }
.mphone .mp-date { flex: 0 0 calc(46 * var(--mp-u)); padding: calc(5 * var(--mp-u)) 0; border-radius: calc(4 * var(--mp-u)); background: #FFFFFF; text-align: center; font-size: calc(20 * var(--mp-u)); line-height: 1.05; }
.mphone .mp-date i { display: block; font-style: normal; font-size: calc(10 * var(--mp-u)); letter-spacing: calc(0.8 * var(--mp-u)); color: #00A386; font-weight: 500; }
.mphone .mp-note { margin-top: calc(16 * var(--mp-u)) !important; font-size: calc(14 * var(--mp-u)); color: #555555; }
.mphone .mp-links { display: flex; gap: calc(22 * var(--mp-u)); }
.mphone .mp-quote { margin-top: calc(44 * var(--mp-u)); text-align: center; }
.mphone .mp-stars { margin-top: calc(18 * var(--mp-u)) !important; font-size: calc(20 * var(--mp-u)); letter-spacing: calc(3 * var(--mp-u)); color: #F5B700; }
.mphone .mp-q { margin-top: calc(12 * var(--mp-u)) !important; font-size: calc(18 * var(--mp-u)); line-height: 1.55; color: #333333; }
.mphone .mp-who { margin-top: calc(12 * var(--mp-u)) !important; font-size: calc(15 * var(--mp-u)); font-weight: 500; }
.mphone .mp-grow { margin-top: calc(50 * var(--mp-u)); padding-top: calc(40 * var(--mp-u)); border-top: calc(1 * var(--mp-u)) solid #E6E6E6; }
.mphone .mp-why { margin-top: calc(30 * var(--mp-u)); }
.mphone .mp-why img { width: calc(92 * var(--mp-u)); height: calc(92 * var(--mp-u)); margin: 0 auto; }
.mphone .mp-why .mp-h3 { margin: calc(12 * var(--mp-u)) 0 calc(8 * var(--mp-u)) !important; text-align: center; }
.mphone .mp-why p { font-size: calc(16 * var(--mp-u)); line-height: 1.6; color: #333333; }
.mphone .mp-pilot { margin-top: calc(14 * var(--mp-u)) !important; text-align: center; font-style: italic; color: #444444 !important; }
.mphone .mp-report { margin-top: calc(30 * var(--mp-u)) !important; text-align: center; }
.mphone .mp-top { margin: calc(18 * var(--mp-u)) 0 calc(34 * var(--mp-u)) !important; text-align: center; font-size: calc(14 * var(--mp-u)); color: #00A386; }
.mphone .mp-foot { padding: calc(30 * var(--mp-u)) calc(26 * var(--mp-u)) calc(40 * var(--mp-u)); background: #181818; color: #FFFFFF; font-size: calc(17 * var(--mp-u)); }
.mphone .mp-foot p { margin-top: calc(14 * var(--mp-u)) !important; }
.mphone .mp-fbrand { display: flex; align-items: center; gap: calc(8 * var(--mp-u)); margin: 0 0 calc(8 * var(--mp-u)) !important; font-size: calc(26 * var(--mp-u)); font-weight: 500; }
.mphone .mp-fbrand img { width: calc(28 * var(--mp-u)); height: calc(28 * var(--mp-u)); }
.mphone .mp-legal { margin-top: calc(26 * var(--mp-u)) !important; font-size: calc(12 * var(--mp-u)); color: #9A9A9A; }
/* /MPHONE */
