/* =====================================================================
   TYPE + BUTTON SYSTEM (loaded last, so it is the one place to tune)
   Only these sizes exist on the whole site:
     title  – page titles (Work, About, project names)
     h2     – section titles and project titles on the work page
     lead   – big intro sentences
     body   – paragraphs
     ui     – buttons, menu, labels
     small  – captions, dates, hints
     tiny   – credits, initials
   Every title sits the same distance (--title-gap) above what follows.
===================================================================== */
:root {
  --fs-title: clamp(34px, 6.2vw, 88px);
  --fs-h2:    clamp(26px, 3.2vw, 42px);
  --fs-lead:  clamp(22px, 2.4vw, 30px);
  --fs-body:  18px;
  --fs-ui:    16px;
  --fs-small: 14px;
  --fs-tiny:  12px;
  --title-gap: 24px;
}

/* ---------- sizes ---------- */
body { font-size: var(--fs-body); }
.work-head h2, .page h1, .project h1, .about h1 { font-size: var(--fs-title); line-height: 1; letter-spacing: -0.015em; margin: 0 0 var(--title-gap); }
.work-head { margin-bottom: var(--title-gap); }
.work-head h2 { margin: 0; }
.project h2, .about h2, .cv h2, .page h2 { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 var(--title-gap); }
.card .card-text h3 { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 var(--title-gap); }
.project h3 { font-size: var(--fs-lead); line-height: 1.1; margin: 0 0 var(--title-gap); }

.intro, .lead { font-size: var(--fs-lead) !important; }
.intro-text p, .prose, .blurb, .about p, .page p, .intro-text { font-size: var(--fs-body); }
.a-lead, .a-body { line-height: 1.25; }

.nav a, .brand, .chip, .more, .dd-btn, .dd-item, .tablist button, .tag, .form label, .back,
.meta, .project .meta, .card .meta { font-size: var(--fs-ui); }
.legend p, .legend-name, .foot, .gallery figcaption, .shot figcaption, .lb figcaption, .award, .count { font-size: var(--fs-small); }
.prose.small, .ph, .sk.ph{ font-size: var(--fs-tiny); }

/* ---------- buttons: one look for default / hover / pressed ---------- */
.dd-btn, .chip, .more, .tablist button, .fab, .scroll-cue {
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .25s var(--ease);
}
.fab, .scroll-cue { border: 0; }
.dd-btn:hover, .chip:hover, .more:hover, .tablist button:hover, .fab:hover, .scroll-cue:hover,
.dd-btn:focus-visible, .chip:focus-visible, .more:focus-visible, .tablist button:focus-visible, .fab:focus-visible, .scroll-cue:focus-visible,
.dd-btn[aria-expanded="true"], .chip[aria-pressed="true"], .tablist button[aria-selected="true"] {
  color: #fff; background: var(--brand); border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.scroll-cue:hover { transform: translateX(-50%); }
.dd-btn:active, .chip:active, .more:active, .tablist button:active, .fab:active { transform: translateY(0) scale(.97); }
.tablist button[aria-selected="true"] { transform: none; }
.dd-btn:focus-visible, .chip:focus-visible, .more:focus-visible, .tablist button:focus-visible, .fab:focus-visible, .scroll-cue:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* the small parts inside follow the text color */
.dd-btn:hover .dd-label, .dd-btn[aria-expanded="true"] .dd-label { color: rgba(255,255,255,.7); }
.dd-btn .dd-caret { border-color: currentColor; }
.chip:hover .n, .chip[aria-pressed="true"] .n { color: rgba(255,255,255,.8); }
.links .chip:hover .sq, .chip[aria-pressed="true"] .sq { background: #fff; }
.panel .chip { background: var(--surface); }

/* link buttons inside the box look like "Learn more" */
.links .more { margin-top: 0; }
.links { gap: 12px; }
/* tabs sit inside their own pill: no extra frame until hovered or selected */
.tablist button:not(:hover):not(:focus-visible):not([aria-selected="true"]) { border-color: transparent; box-shadow: none; background: transparent; }
.gallery video { display: block; }

/* greeting on the landing page keeps its original size */
.intro { font-size: clamp(17px, 1.6vw, 21px) !important; }

/* ---------- legend on the project page (wide screens only) ---------- */
.toc { display: none; }
.anchor { height: 0; }
@media (min-width: 1360px) {
  .toc {
    display: flex; flex-direction: column; gap: 28px;
    position: fixed; left: var(--gutter); top: var(--toc-top, 215px);
    width: 140px; z-index: 40;
  }
  .toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; border-left: 2px solid var(--line); }
  .toc ul button {
    display: block; width: 100%; padding: 6px 0 6px 14px; margin-left: -2px;
    font: inherit; font-size: var(--fs-small); line-height: 1.3; text-align: left;
    color: var(--muted); background: none; border: 0; border-left: 2px solid transparent; cursor: pointer;
    transition: color .2s, border-color .2s;
  }
  .toc ul button:hover, .toc ul button:focus-visible { color: var(--ink); }
  .toc ul button.on { color: var(--ink); font-weight: 600; border-left-color: var(--ink); }
  .toc .fabs { position: static; display: flex; gap: 10px; }
  .toc .fab { width: 44px; height: 44px; }
}

/* picture placeholders on project pages */
.gallery .ph { aspect-ratio: 4 / 3; padding: 16px; display: grid; place-items: center; text-align: center; color: var(--muted); border-radius: var(--radius-card); background: repeating-linear-gradient(135deg, #eceef7 0 12px, #f5f6fb 12px 24px); }
.gallery.cols-1 .ph { aspect-ratio: 16 / 9; }

.gallery.portrait .ph { aspect-ratio: 3 / 4; }
.gallery figure { min-width: 0; }
.gallery .ph span { overflow-wrap: anywhere; }

/* landing page: the legend's color bar sits on the same line as the round scroll button;
   the name of a hovered color appears just below the bar */
.legend { position: relative; }
.legend-name { position: absolute; left: 0; top: calc(100% + 6px); margin: 0; min-height: 0; white-space: nowrap; }

/* About: first sentence as big as the greeting on the landing page, the rest like normal text */
.a-lead { font-size: clamp(17px, 1.6vw, 21px) !important; line-height: 1.5 !important; letter-spacing: 0; }
.a-body, .a-row .a-text p:not(.a-lead) { font-size: var(--fs-body) !important; line-height: 1.6; }
.a-row.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
@media (max-width: 820px) { .a-row.flip { grid-template-columns: 1fr; } }

/* ---------- contact form: same text sizes and the same button look as the rest ---------- */
.page .contact-intro { font-size: var(--fs-body); line-height: 1.6; max-width: 560px; margin: 0 0 40px; }   /* same width as the form boxes */
.form label { font-size: var(--fs-ui); font-weight: 600; }
.form input, .form textarea { font-size: var(--fs-body); font-weight: 300; line-height: 1.4; }
.form button {
  font-size: var(--fs-ui); font-weight: 600; padding: 12px 22px; border-radius: 999px;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .25s var(--ease);
}
.form button:hover, .form button:focus-visible { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: var(--shadow-md); }
.form button:active { transform: translateY(0) scale(.97); }
.form button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* placeholder boxes lift on hover just like real pictures */
.gallery .ph { box-shadow: var(--shadow-md); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.gallery .ph:hover { box-shadow: var(--shadow-lg); }

/* pictures stay put on hover (no lift) */
.gallery img:hover, .gallery .ph:hover { transform: none; }

/* ---------- work search field ---------- */
.search {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 14px; min-height: 44px; min-width: 220px; flex: 1 1 220px;   /* fills the row of the filter bar */
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .2s;
}
.search:hover, .search:focus-within { border-color: var(--brand); box-shadow: var(--shadow-md); }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: var(--fs-ui); font-weight: 300; padding: 10px 0;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.search svg { flex: none; }
.search-x { border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; padding: 0 2px; cursor: pointer; }
.search-x:hover { color: var(--ink); }
.no-results { margin: 40px 0; color: var(--muted); font-size: var(--fs-body); }
.no-results[hidden] { display: none; }
@media (max-width: 560px) { .search { flex: 1 1 100%; } }

/* ---------- documentation book: looks like the preview cards (frame, arrows on hover, dots at the bottom) ---------- */
.book-hint { margin: 24px 0 14px; font-size: var(--fs-body); }
.book { margin: 0 0 40px; outline: none; }
.book-view {
  position: relative; display: grid; place-items: center; min-height: 240px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow-md); cursor: pointer;
}
.book-view[data-side="left"] { cursor: w-resize; }
.book-view[data-side="right"] { cursor: e-resize; }
.book-view img { display: block; max-width: 100%; max-height: min(82vh, 900px); width: auto; height: auto; }
.book-view img[hidden], .book-view .ph[hidden] { display: none; }
.book-view .ph { width: 100%; aspect-ratio: 4 / 3; box-shadow: none; }
.book:focus-visible .book-view { outline: 2px solid var(--ink); outline-offset: 3px; }
.book-view:hover .car-btn { opacity: 1; }
.book-dots.is-count { padding: 3px 12px; color: #fff; font-size: var(--fs-small); font-variant-numeric: tabular-nums; line-height: 1.4; }

/* subtitle under a project title (project page only) */
.project .subtitle { margin: calc(-1 * var(--title-gap) + 10px) 0 18px; font-size: var(--fs-lead); font-weight: 600; line-height: 1.2; color: var(--ink); max-width: none; }
.panel h3 { margin: 0 0 20px; }

/* portrait videos side by side */
.gallery.portrait.vid .ph { aspect-ratio: 9 / 16; }
.gallery.portrait.vid video { width: 100%; height: auto; border-radius: var(--radius-card); }

/* ---------- award box: picture and text side by side, a bit of celebration ---------- */
.panel.celebrate { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(20px, 2.6vw, 32px); }
.panel.celebrate .gallery { margin: 0; }
.panel.celebrate .prose { margin: 0; font-size: clamp(20px, 2.1vw, 27px); line-height: 1.25; font-weight: 600; letter-spacing: -0.005em; max-width: none; }
.panel.celebrate .prose::first-line { color: var(--ink); }
@media (max-width: 820px) { .panel.celebrate { grid-template-columns: 1fr; } }

/* ---------- more projects (end of a project page) ---------- */
.more-work { margin: clamp(72px, 12vh, 140px) 0 24px; }
.more-work h2 { margin: 0 0 var(--title-gap); }
.next-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); margin: 0 0 32px; padding: 0; list-style: none; }
.next-card { display: block; color: var(--ink); text-decoration: none; }
.next-cover { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-md); transition: box-shadow .35s var(--ease); }
.next-card:hover .next-cover, .next-card:focus-visible .next-cover { box-shadow: var(--shadow-lg); }
.next-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: var(--radius-card); }
.next-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.next-ph { display: flex; flex-wrap: wrap; gap: 10px; align-content: center; justify-content: center; width: 100%; height: 100%; padding: 24px; }
.next-ph i, .next-card .tags i { display: block; width: 14px; height: 14px; border-radius: 4px; background: var(--c); }
.next-ph i { width: 26px; height: 26px; border-radius: 7px; }
.next-card .meta { margin: 14px 0 4px; color: var(--muted); font-size: var(--fs-small); }
.next-card h3 { margin: 0 0 10px; font-size: var(--fs-lead); line-height: 1.05; }
.next-card .tags { display: flex; gap: 6px; }
.next-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 820px) { .next-grid { grid-template-columns: 1fr; } }
.book-view .ph { display: grid; place-items: center; padding: 16px; text-align: center; color: var(--muted); font-size: var(--fs-tiny); border-radius: var(--radius-card); background: repeating-linear-gradient(135deg, #eceef7 0 12px, #f5f6fb 12px 24px); }
.book-view .ph span { overflow-wrap: anywhere; }

/* missing pictures in a matched block take the same shape as the others */
.gallery.match .ph { aspect-ratio: var(--match-ar, 4 / 3); }
.gallery.portrait.match .ph { aspect-ratio: var(--match-ar, 3 / 4); }

/* ---------- work cards: portrait previews fit the frame, crown on the award picture ---------- */
.slide img.is-portrait { object-fit: contain; background: var(--surface); }
.cover-wrap { position: relative; min-width: 0; }
.cover-wrap .crown {
  position: absolute; z-index: 3; top: -24px; left: -16px; width: 52px; height: auto;
  transform: rotate(-18deg); pointer-events: none; filter: drop-shadow(0 3px 4px rgba(18, 20, 50, .25));
}
@media (max-width: 800px) { .cover-wrap .crown { width: 44px; top: -20px; left: -8px; } }

/* ---------- every button behaves like "Learn more": fills dark, shrinks when pressed ---------- */
.lb button { transition: background .2s, color .2s, box-shadow .2s, transform .25s var(--ease); }
.lb button:hover, .lb button:focus-visible { background: #fff; color: var(--ink); box-shadow: var(--shadow-md); }
.lb button:active { transform: translateY(0) scale(.97); }
.lb button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.scroll-cue:active { transform: translateX(-50%) translateY(0) scale(.97); }
.fabs.has-top .fab-top:active { transform: translateY(0) scale(.97); }
@media (prefers-reduced-motion: reduce) { .dd-btn, .chip, .more, .tablist button, .form button, .lb button { transition: none; } }

/* second block on About: only the text, centered */
.a-row.a-solo { display: block; text-align: center; margin-bottom: clamp(96px, 20vh, 220px); }
.a-row.a-solo .a-text p:not(.a-lead) { font-size: clamp(17px, 1.6vw, 21px) !important; line-height: 1.5 !important; max-width: 32em; margin: 0 auto; letter-spacing: 0; }   /* same size as the text next to the first picture */

/* Outside of work: no visible title; the text is centered, same size as on the first block */
.cv.away > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* no visible title: it only lives in the legend */
.cv.away > .a-body { text-align: center; }
.cv.away > .a-body { font-size: clamp(17px, 1.6vw, 21px) !important; line-height: 1.5 !important; max-width: 32em; margin: 0 auto; }

/* ---------- About: one rhythm for all spacing ----------
   --sec-gap  between sections      --head-gap  title -> what follows      --item-gap  between entries / groups */
.about { --sec-gap: clamp(96px, 16vh, 180px); --head-gap: clamp(32px, 5vh, 48px); --item-gap: clamp(56px, 9vh, 100px); }
.about .a-row.a-solo, .about .cv { margin: 0 0 var(--sec-gap); padding: 0; }
.about .a-row:first-of-type { margin-bottom: clamp(120px, 34vh, 360px); }   /* the first picture stays big, so the next block does not peek in */
.about .cv h2, .about .cv > h2.words { margin: 0 0 var(--head-gap); text-align: left; }

.about .shots { margin-top: var(--head-gap); gap: var(--item-gap); }

.about .skills { margin: 0; max-width: none; }
.about .cv:last-of-type { margin-bottom: 0; }

/* the centered paragraph gets lots of air above and below */

/* ---------- full-screen text blocks on About (edge to edge, window high) ---------- */
html, body { overflow-x: clip; }
.about { overflow-x: visible; }
.about .bleed {
  background: var(--brand); color: #fff; border-radius: 0; box-shadow: none; max-width: none;
  min-height: 100vh; min-height: 100lvh; display: grid; place-items: center; text-align: center;   /* lvh: also covers the strip that appears when the phone's address bar slides away */
  padding: clamp(80px, 14vh, 160px) clamp(24px, 10vw, 220px);
  margin-top: 0; margin-bottom: 0;
}
.about .bleed p { max-width: 34em; margin: 0 auto; font-size: clamp(17px, 1.6vw, 21px) !important; line-height: 1.5 !important; text-align: center; }
.about .bleed .w { color: rgba(255, 255, 255, .22); }
.about .bleed .w.on { color: #fff; }
.about .a-row.a-solo { padding: 0; margin-bottom: var(--sec-gap); }
.about .cv.away > .bleed { margin-bottom: var(--sec-gap); }
.about .cv.away > .bleed + .shots { margin-top: 0; }
.toc.on-dark ul { border-left-color: rgba(255, 255, 255, .25); }
.toc.on-dark ul button { color: rgba(255, 255, 255, .6); }
.toc.on-dark ul button:hover, .toc.on-dark ul button.on { color: #fff; }
.toc.on-dark ul button.on { border-left-color: #fff; }

/* ---------- My Path: experience, education and awards as one chart ---------- */
.chart { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-md); padding: clamp(20px, 3vw, 40px); }
.ch-scroll { overflow-x: auto; scrollbar-width: thin; }
.ch-plot { position: relative; min-width: 720px; }
.ch-axis, .ch-lane { display: grid; grid-template-columns: clamp(96px, 11vw, 132px) minmax(0, 1fr); align-items: start; }
.ch-axis > div { display: grid; grid-template-columns: repeat(var(--span), 1fr); }
.ch-axis span { padding-left: 6px; font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.ch-lane { margin-top: clamp(18px, 3vh, 30px); }
.ch-name { padding-top: 12px; font-weight: 600; font-size: var(--fs-ui); }
.ch-name::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 4px; background: var(--c); vertical-align: -1px; }
.ch-track {
  position: relative; height: calc(var(--h) * 54px);
  background-image: linear-gradient(to right, rgba(18, 20, 50, .12) 1px, transparent 1px);
  background-size: calc(100% / var(--span)) 100%;
  border-bottom: 1px solid rgba(18, 20, 50, .12);
}
.ch-bar {
  position: absolute; height: 46px; margin-left: 2px; padding: 0 14px; display: flex; align-items: center; overflow: hidden;
  border: 0; border-radius: 12px; background: var(--c); color: #fff; font: inherit; font-size: var(--fs-ui); font-weight: 600; text-align: left; cursor: pointer;
  clip-path: inset(0 100% 0 0 round 12px); transition: clip-path .9s var(--ease) var(--d, 0ms), opacity .2s, box-shadow .2s;
}
.ch-bar.dark-text { color: var(--ink); }
.chart.in .ch-bar { clip-path: inset(0 0 0 0 round 12px); }
.ch-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart.has-sel .ch-bar[aria-pressed="false"] { opacity: .55; }
.ch-bar[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.ch-bar:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ch-detail {
  display: grid; grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.6fr) auto; gap: clamp(16px, 3vw, 48px); align-items: start;
  margin-top: clamp(24px, 4vh, 40px); padding-top: clamp(20px, 3vh, 32px); border-top: 1px solid rgba(18, 20, 50, .15);
}
.ch-year { font-family: var(--font-title); font-size: clamp(32px, 4.6vw, 68px); line-height: .95; letter-spacing: -0.03em; }
.ch-info b { display: block; font-size: clamp(20px, 1.9vw, 26px); font-weight: 600; line-height: 1.2; }
.ch-info span { display: block; margin-top: 6px; color: var(--muted); }
.ch-info p { margin: 14px 0 0; max-width: 56ch; line-height: 1.6; }
.ch-detail .logo { width: 56px; height: 56px; background: var(--bg); }
@media (max-width: 700px) { .ch-detail { grid-template-columns: 1fr auto; } .ch-year { grid-column: 1 / -1; } .ch-info { grid-column: 1; } }
@media (prefers-reduced-motion: reduce) { .ch-bar { clip-path: none; transition: none; } }

/* one lane per chart: the title above already says which one it is */
.ch-plot.single .ch-axis { grid-template-columns: 0 minmax(0, 1fr); }
.ch-plot.single .ch-lane { grid-template-columns: minmax(0, 1fr); }
.ch-plot.single .ch-name { display: none; }
.ch-plot.single .ch-lane { margin-top: 12px; }

/* ---------- About: more air, charts and award box in one family ---------- */
.about { --sec-gap: clamp(140px, 24vh, 280px); --head-gap: clamp(40px, 6vh, 64px); }
.chart.has-sel .ch-bar[aria-pressed="false"] { opacity: .72; }
.ch-bar { overflow: visible; clip-path: inset(-8px 100% -8px -600px); }
.chart.in .ch-bar { clip-path: inset(-8px -8px -8px -600px); }
.ch-bar span { display: block; max-width: 100%; }
.ch-bar.out span { position: absolute; right: calc(100% + 12px); max-width: none; color: var(--ink); overflow: visible; }
.ch-bar.out { padding: 0; }
.award-box .ch-detail.solo { margin: 0; padding: 0; border: 0; }
.award-box { margin-bottom: 24px; }
@media (prefers-reduced-motion: reduce) { .ch-bar { clip-path: none !important; } }

/* experience: months line under the place */
.ch-info .when { margin-top: 4px; font-size: var(--fs-small); }

/* charts: own time range, full names wrap inside their bars, nothing is cut off */
.ch-scroll { padding: 12px; margin: -12px; }
.ch-axis > div { display: block; position: relative; height: 22px; }
.ch-axis span { position: absolute; top: 0; padding-left: 6px; }
.ch-track { background-image: none; height: calc(var(--h) * 66px); }
.ch-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(18, 20, 50, .12); }
.ch-bar { height: 58px; padding: 0 7px; font-size: 14px; line-height: 1.15; overflow: hidden; clip-path: inset(-8px 100% -8px -8px); }
.chart.in .ch-bar { clip-path: inset(-8px -8px -8px -8px); }
.ch-bar span { display: block; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: normal; max-width: 100%; }
@media (prefers-reduced-motion: reduce) { .ch-bar { clip-path: none !important; } }

/* no logo squares, no exact months in the text */
.ch-detail .logo, .award-box .logo, .ch-info .when { display: none !important; }
.ch-detail { grid-template-columns: minmax(150px, 280px) 1fr; }
.ch-track { margin-bottom: 30px; }
.ch-bar.narrow { height: 92px; padding: 6px 0; display: flex; align-items: center; justify-content: center; }
.ch-bar.narrow span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-size: 12.5px; }
.ch-detail { grid-template-columns: minmax(230px, 320px) 1fr; }
.ch-year { font-size: clamp(30px, 3.4vw, 52px); white-space: nowrap; }

/* narrow bars: widened a little around their real time span so the name fits */
.ch-bar.narrow { height: 58px; padding: 0 7px; display: block; }
.ch-bar.narrow span { writing-mode: horizontal-tb; transform: none; white-space: normal; font-size: 14px; }
/* awards box: silver crown on the corner, like on the work card */
.award-box.has-crown { position: relative; }
.award-box .crown { position: absolute; z-index: 3; top: -24px; left: -16px; width: 52px; height: auto; transform: rotate(-18deg); pointer-events: none; filter: drop-shadow(0 3px 4px rgba(18, 20, 50, .25)); }
.ch-info b, .ch-info span { white-space: pre-line; }
/* bars: exactly the dark blue of the boxes, the open one is marked by its ring */
.chart.has-sel .ch-bar[aria-pressed="false"] { opacity: 1; }
.ch-tick { background: rgba(18, 20, 50, .2); }
.ch-track { min-height: 104px; }
.ch-tick { background: rgba(18, 20, 50, .16); }

/* cosplay + travels: same look as the pictures on the work pages (shadow, round corners, zoom, no movement) */

@media (max-width: 700px) {   }

/* photo wall: cosplay + travels fitted together, no titles */
.hob-wall.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); margin: 0; align-items: stretch; }
.hob-wall .hob { margin: 0; min-width: 0; display: flex; }
.hob-wall .hob.p { grid-column: span 3; aspect-ratio: 3 / 4; }
.hob-wall .hob.l { grid-column: span 6; }
.hob-wall .hob.l:nth-child(8), .hob-wall .hob.l:nth-child(7) { aspect-ratio: 3 / 2; }
.hob-wall .hob img, .hob-wall .hob .ph { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.hob-wall .hob:nth-child(3) { grid-column: 7 / span 6; }
.hob-wall .hob:nth-child(6) { grid-column: 7 / span 6; }
.hob-wall .hob:nth-child(7) { grid-column: 1 / span 6; }
.hob-wall .hob:nth-child(8) { grid-column: 7 / span 6; }
.hob-wall .hob img:hover { transform: none; }
@media (max-width: 700px) {
  .hob-wall.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hob-wall .hob.p, .hob-wall .hob.l, .hob-wall .hob:nth-child(n) { grid-column: span 1; }
  .hob-wall .hob.l, .hob-wall .hob.l:nth-child(n) { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
}

/* the award box opens the project */
a.award-box { display: block; color: inherit; text-decoration: none; }
a.award-box.is-link { cursor: pointer; transition: box-shadow .35s var(--ease); }
a.award-box.is-link:hover, a.award-box.is-link:focus-visible { box-shadow: var(--shadow-lg); }
.ch-info .more { margin-top: 22px; display: inline-flex; }

/* photo wall with captions: the picture fills the space above its caption */
.hob-wall .hob { display: flex; flex-direction: column; aspect-ratio: auto !important; }
.hob-wall .hob img, .hob-wall .hob .ph { flex: 1 0 auto; width: 100%; height: auto; object-fit: cover; }
.hob-wall .hob.p img, .hob-wall .hob.p .ph { aspect-ratio: 3 / 4; }
.hob-wall .hob.l img, .hob-wall .hob.l .ph { aspect-ratio: 3 / 2; }
.hob-wall .hob figcaption { flex: none; margin-top: 10px; }
.hob-wall.gallery { gap: clamp(18px, 2.2vw, 32px); }
.hob-wall .hob figcaption { white-space: pre-line; }

/* ---------- contact: text + form where the first picture on About is, social links on the right like the text there ---------- */
.c-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 110px); align-items: center; margin: 0 0 40px; }
.c-main { min-width: 0; align-self: start; }
.c-main .contact-intro { margin: 0 0 32px; max-width: none; }
.c-main .form { margin-top: 0; max-width: none; }
.c-main .sent { margin: 0 0 24px; }
.c-side { min-width: 0; }
.c-side .c-or { margin: 0 0 16px; color: var(--ink); font-size: var(--fs-body); max-width: none; }
.c-links { margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.c-links .more { margin: 0; }
@media (min-width: 1360px) { .c-row { margin-left: 190px; } }   /* About's picture sits right of the legend: same spot */
@media (max-width: 760px) { .c-row { grid-template-columns: 1fr; gap: 36px; } .c-main { align-self: auto; } }

/* ---------- about: call to action at the end: dark full-screen block, centered ---------- */
.about .cta { margin-bottom: 0; }
.about .cta .cta-box { min-height: calc(100vh - 96px); min-height: calc(100lvh - 96px); }   /* lvh: the page is never shorter than the screen, even when the phone's address bar is hidden */
.about .cta .cta-in { display: grid; justify-items: center; }
.about .cta h2 { margin: 0; text-align: center; color: #fff; }
.about .cta .cta-sub { margin: clamp(24px, 3.5vh, 36px) auto clamp(32px, 5vh, 48px); max-width: 30em; color: rgba(255, 255, 255, .85); }
.about .cta .more { margin: 0; }
/* your own crown picture is wider than the drawn one */
.cover-wrap img.crown, .award-box img.crown { width: 64px; top: -26px; left: -18px; }

/* about: the footer is blue too, so the end of the page is one blue box (call to action + footer = one screen) */
.about-page .foot { background: var(--brand); color: #fff; max-width: none; margin: 0; border-top: 0; min-height: 96px; align-items: center;
  padding: 0 var(--gutter) 0 max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }
.about-page .foot span { color: rgba(255, 255, 255, .75); }
.about-page .about { padding-bottom: 0; }
.about-page .foot { margin-top: 0; }

/* the button on the dark call-to-action block: reversed, so it stays visible when hovered (white outline, white text) */
.about .cta-box .more { transition: background .2s, color .2s, box-shadow .2s, border-color .2s; }
.about .cta-box .more:hover, .about .cta-box .more:focus-visible { background: transparent; color: #fff; border-color: #fff; box-shadow: none; }

/* the filter bar is as wide as the picture of the cards: the search field ends where the pictures end */
@media (min-width: 801px) { #work .controls { width: calc((100% - var(--card-gap, 48px)) * 0.6); } }


/* ---------- phone: crown stays inside the screen ---------- */
@media (max-width: 800px) {
  .cover-wrap img.crown, .award-box img.crown { width: 48px; top: -20px; left: 0; }
  .cover-wrap .crown, .award-box .crown { left: 0; }
}

/* the hint under the legend says "hover" with a mouse and "tap" on a touch screen */
.legend .tap-hint { display: none; }
@media (hover: none), (max-width: 699px) { .legend .hover-hint { display: none; } .legend .tap-hint { display: inline; } .legend p > span.tap-hint::before { content: " "; } }
/* phone: a tapped colour shows its name where the hint was (the bottom edge is too tight) */
@media (hover: none), (max-width: 699px) {
  .legend.has-pick p { visibility: hidden; }
  .legend.has-pick .legend-name { top: 0; }
}

/* ---------- the big name is real text in the page (behind the flower canvas), so it is there before any script has loaded ---------- */
.hero { container-type: inline-size; }
.hero-name {
  position: absolute; left: 0; right: 0; z-index: 0; pointer-events: none; box-sizing: border-box;
  text-align: center; white-space: nowrap; font-family: var(--font-title); font-weight: var(--hero-weight, 700); color: var(--ink);
  line-height: .95; letter-spacing: 0; font-kerning: none; font-variant-ligatures: none; opacity: 0; transition: opacity .25s;   /* (no kerning / ligatures: exactly the spacing the letters always had) */
  /* the ink of the whole line spans gutter to gutter (6.704 = ink width / font size of "Danielle Urech"); js/hero.js then sets the exact size */
  font-size: calc((100vw - 2 * var(--gutter)) / 6.728);
  font-size: min(calc((100cqw - 2 * var(--gutter)) / 6.728), calc(.5 * (100svh - 118px)));
  top: calc(var(--name-y, calc(.54 * max(50svh, 100svh - 104px))) + .021em); transform: translateY(-50%);
}
.name-ready .hero-name { opacity: 1; }
.hero.no-name .hero-name { display: none; }
/* tablet: two lines (JS sets the exact size) */
@media (min-width: 700px) and (max-width: 859px) {
  .hero-name > span { display: block; }
  .hero-name { font-size: calc((100cqw - 2 * var(--gutter)) / 3.642); font-size: min(calc((100cqw - 2 * var(--gutter)) / 3.642), calc(.27 * (100svh - 118px))); }
}
/* phone: two lines, centred between the greeting and the legend */
@media (max-width: 699px) {
  .hero-name {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    inset: 0; top: 0; transform: none;
    padding-top: var(--name-top, 150px); padding-bottom: var(--name-bot, 150px);
    font-size: calc((100vw - 2 * var(--gutter)) * 0.2759);
    font-size: min(calc((100cqw - 2 * var(--gutter)) * 0.2759), 19svh);
  }
}

/* phone: "from Switzerland" stays together on the last line */
.intro span.nb { display: inline; }
@media (max-width: 699px) { .intro span.nb { white-space: nowrap; } }

/* contact form: confirmation under the button */
.form button.is-sent { color: #fff; background: var(--brand); border-color: var(--brand); cursor: default; }
.form button:disabled { cursor: default; }
.form-note { margin: 14px 0 0; font-size: var(--fs-body); line-height: 1.5; color: var(--ink); }
.form-note.is-error { color: #a12d1d; }
