/* ==========================================================================
   Clancy Scheck portfolio: styles
   Tokens, fonts, buttons, placeholders, stats strip and video cards are
   copied from the Crossroad Travel Co. repo so both sites stay in sync.
   Mobile-first.
   ========================================================================== */

/* Fonts (Clancy's picks): Gloock for name and headings, Lora for body,
   Cormorant Garamond for labels, nav and buttons, La Belle Aurore for the slogan. All from Google Fonts. */

:root { font-weight: 700;
  /* The eight Crossroad colors */
  --sage: #5B6B53;
  --riad-green: #2F3B2F;
  --forest: #3B5240;          /* a lighter, greener tone of Riad Green: dark green, not black */
  --forest-soft: #4E6852;     /* softer tone of the title green, for captions and secondary text */
  --riad-pink: #D49A8A;
  --plaster: #ECE7D7;
  --adobe: #B0886F;
  --terracotta: #B55C34;
  --sand: #C9AE8C;
  --lagoon: #4C6C69;

  /* Crossroad tones */
  --paper: #FBF8F1;
  --limewash: #F5F1E6;
  --card-stock: #E4DDCB;
  --hairline: #C6C5B5;
  --riad-green-deep: #2E3228;
  --terracotta-kasbah: #9F5330;
  --terracotta-ground: #89492C;

  --pink-deep: #886458;
  --riad-pink-sun: #E0B6AB;
  --riad-pink-ground: #A17669;
  --lagoon-karst: #3C5552;

  /* Color roles (Clancy's picks). Light areas: Limewash background, Riad Green text.
     Dark areas (cards, alternate sections, bands) are Pink deep with Limewash text; see .on-dark below.
     Riad Pink is a button fill only: it is too light for small text on Limewash. */
  --bg: var(--limewash);
  --text: var(--forest);
  --heading: var(--forest);
  --number: var(--riad-pink);       /* same pink as the buttons (Clancy's choice) */
  --muted: var(--pink-deep);        /* small secondary lines: deeper pink that matches the cards and reads clearly */
  --label: var(--pink-deep);
  --link: var(--pink-deep);
  --line: rgba(47, 59, 47, .22);
  --surface: var(--pink-deep);
  --band: var(--pink-deep);
  --btn-bg: var(--riad-pink);
  --btn-bg-hover: var(--riad-pink-sun);
  --btn-ink: var(--riad-green);

  --font-serif: "Gloock", Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --font-caps: "Cormorant Garamond", Georgia, serif;
  --font-script: "La Belle Aurore", cursive;
  --font-typewriter: var(--font-caps);

  --gutter: 16px;
  --max: 1180px;
  --header-h: 60px;
}

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

/* Dark areas: Pink deep surfaces with Limewash text, labels and links */
.section--alt, .case-card, .studio-card, .work-card, .also-card, .skill-group,
.edu__ideas li, .sas__quote, .creative, .contact, .site-footer, .explore-card, .numbers-band, .stats-bar--page {
  --text: var(--limewash);
  --heading: var(--limewash);
  --muted: var(--limewash);
  --label: var(--limewash);
  --link: var(--limewash);
  --line: rgba(245, 241, 230, .35);
  color: var(--text);
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--heading); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-synthesis: none; }
button { font: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--riad-green); color: var(--paper); padding: 8px 14px;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
/* Narrow text column, left-aligned with the wide layout */
.container--narrow > * { max-width: 780px; }
.section { padding: 64px 0; }
.section--tight { padding: 16px 0 40px; }
.section--alt { background: var(--surface); }
.page-top { padding-top: calc(var(--header-h) + 32px); }
@media (min-width: 768px) { .section { padding: 88px 0; } }

/* ---------- Placeholders & draft tags (from Crossroad) ---------- */

.placeholder-chip {
  display: inline-block;
  font-family: var(--font-typewriter);
  font-size: 13px; line-height: 1.4; letter-spacing: 0; text-transform: none;
  color: var(--heading); background: var(--paper);
  border: 1.5px dashed var(--pink-deep); border-radius: 4px;
  padding: 4px 8px; vertical-align: middle; text-align: left;
}
.placeholder-chip__label {
  font-family: var(--font-caps); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--label); margin-right: 4px;
}
.placeholder-box {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 160px;
  padding: 12px; text-align: center;
  background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(91, 74, 60, .06) 10px 20px), var(--card-stock);
}
.draft-tag {
  display: inline-block; margin-left: .4em; padding: 0 5px;
  font-family: var(--font-caps); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; line-height: 16px; text-transform: uppercase; vertical-align: middle;
  color: var(--label); border: 1px solid currentColor; border-radius: 3px; opacity: .8;
}

/* ---------- Buttons (from Crossroad) ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-caps); font-size: 15px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: var(--btn-ink); background: var(--btn-bg);
  padding: 16px 28px; border: 1.5px solid var(--btn-bg); border-radius: 2px;
  cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.btn:hover { color: var(--btn-ink); background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--heading); border-color: var(--paper); }
.btn--outline { background: transparent; color: var(--heading); border-color: var(--heading); }
.btn--outline:hover { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }

/* ---------- Type ---------- */

.section-head { margin-bottom: 32px; }
.section-title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2.3rem, 7vw, 3.4rem); line-height: 1.05;
  color: var(--heading);
}
.section-sub { font-weight: 700;
  margin: 10px 0 0;
  font-family: var(--font-caps); font-size: 16px; line-height: 1.7;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-caps); font-size: 17px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--label); margin: 0 0 12px;
}
.eyebrow--center { display: block; text-align: center; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gutter);
  background: var(--limewash);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header__name {
  font-family: var(--font-script); font-size: 30px; font-weight: 400; line-height: 1; padding-top: 6px;
  color: var(--heading); text-decoration: none; white-space: nowrap;
}
.site-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 14px; }
.site-nav a { font-weight: 700;
  display: inline-block; padding: 8px 2px;
  font-family: var(--font-caps); font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--heading); text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }
.site-header--over { background: transparent; border-color: transparent; }
.site-header--over .site-header__name, .site-header--over .site-nav a { color: var(--paper); }

/* ---------- Hero over a full-bleed photo ---------- */

.hero {
  position: relative; overflow: hidden;
  min-height: min(82vh, 760px);
  display: flex; align-items: flex-end;
  color: var(--paper);
  background: var(--sand);
}
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46, 50, 40, .45) 0%, rgba(46, 50, 40, .15) 35%, rgba(46, 50, 40, .7) 100%);
}
.hero__content { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: 44px; }
.hero__name {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2.8rem, 11vw, 5.8rem); line-height: .98; letter-spacing: .005em;
}
.hero__title { font-weight: 700;
  margin: 14px 0 4px;
  font-family: var(--font-caps); font-size: clamp(14px, 3.6vw, 18px);
  letter-spacing: .1em; text-transform: uppercase;
}
.hero__slogan { font-family: var(--font-script); font-size: clamp(22px, 5vw, 28px); line-height: 1.4; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.where-to-look { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.where-to-look__label { font-weight: 700; font-family: var(--font-caps); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.where-to-look ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.where-to-look a { color: var(--paper); font-size: 16px; }
.where-to-look a:hover { color: var(--limewash); }

/* ---------- By the numbers (Crossroad stats strip) ---------- */

.stats-bar { padding: 48px 0; background: var(--limewash); }
.stats-bar--page { --number: var(--riad-pink); padding: 40px 0; margin-top: 16px; background: var(--forest); }
.stats-bar__list {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); row-gap: 36px;
  text-align: center;
}
.stats-bar__item { padding: 0 12px; }
.stats-bar__item:nth-child(even) { border-left: 1px solid var(--line); }
.stats-bar__count { font-variant-numeric: lining-nums tabular-nums; }
.stats-bar__number {
  display: block;
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(40px, 9vw, 58px); line-height: 1;
  color: var(--number);
}
.stats-bar__label { font-weight: 700;
  display: block; margin-top: 12px;
  font-family: var(--font-caps); font-size: 15px; line-height: 1.5;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--heading);
}
.stats-bar__context {
  display: block; margin-top: 6px;
  font-size: 17px; line-height: 1.4; color: var(--muted);
}
@media (min-width: 900px) {
  .stats-bar__list { grid-template-columns: repeat(4, 1fr); }
  .stats-bar__list:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
  .stats-bar__item + .stats-bar__item { border-left: 1px solid var(--line); }
}
@media (max-width: 899px) {
  .stats-bar__list:has(> :nth-child(3):last-child) { grid-template-columns: 1fr; }
  .stats-bar__list:has(> :nth-child(3):last-child) .stats-bar__item { border-left: 0; }
}

/* Receipts strip */
/* Receipts: a paper receipt with torn top and bottom edges */
.receipt-wrap { margin-top: 0; display: flex; justify-content: center; filter: drop-shadow(0 14px 22px rgba(59, 82, 64, .18)); }
.receipt {
  --paper-edge: 10px;
  position: relative; width: 100%; max-width: 560px;
  padding: 40px 32px 34px;
  background: #FFFDF8; color: var(--forest);
  /* zigzag edges */
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--paper-edge) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--paper-edge) 51% repeat-x;
          mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--paper-edge) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--paper-edge) 51% repeat-x;
  font-variant-numeric: lining-nums tabular-nums;
}
.receipt__head { text-align: center; padding-bottom: 18px; border-bottom: 1.5px dashed rgba(59, 82, 64, .45); }
.receipt__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1.05; color: var(--heading);
}
.receipt__sub { margin: 6px 0 4px; color: var(--muted); }
.receipt__from { margin: 0; font-family: var(--font-caps); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.receipt__lines { list-style: none; margin: 0; padding: 14px 0; }
.receipt__lines--totals { border-top: 1.5px dashed rgba(59, 82, 64, .45); border-bottom: 1.5px dashed rgba(59, 82, 64, .45); }
.receipt__line {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: 8px;
  padding: 9px 0;
}
.receipt__item { font-size: 16px; line-height: 1.35; }
.receipt__dots { border-bottom: 2px dotted rgba(59, 82, 64, .35); transform: translateY(-4px); min-width: 16px; }
.receipt__figure { font-family: var(--font-serif); font-size: 24px; line-height: 1; color: var(--number); white-space: nowrap; }
.receipt__meta {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px;
  margin-top: 4px; font-size: 14px; color: var(--muted);
}
.receipt__proof { font-family: var(--font-caps); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.receipt__proof--todo .placeholder-chip { font-size: 11px; }
.receipt__line--total .receipt__item { font-family: var(--font-caps); font-weight: 700; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.receipt__line--total .receipt__figure { font-size: 30px; }
.receipt__foot { margin: 18px 0 14px; text-align: center; font-family: var(--font-script); font-size: 24px; color: var(--heading); }
.receipt__barcode {
  height: 42px; margin: 0 auto; max-width: 260px; opacity: .8;
  background: repeating-linear-gradient(90deg,
    var(--forest) 0 2px, transparent 2px 4px, var(--forest) 4px 5px, transparent 5px 8px,
    var(--forest) 8px 11px, transparent 11px 12px, var(--forest) 12px 13px, transparent 13px 16px);
}
@media (max-width: 480px) {
  .receipt { padding: 34px 20px 28px; }
  .receipt__figure { font-size: 24px; }
  .receipt__line--total .receipt__figure { font-size: 27px; }
}

/* ---------- Problem / solution / outcome ---------- */

.pso { margin: 0; display: grid; gap: 14px; }
.pso dt {
  font-family: var(--font-caps); font-size: 13.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--label);
}
.pso dd { margin: 2px 0 0; }
.pso__outcome dt { color: var(--label); }
.pso__outcome dd { font-weight: 600; color: var(--heading); }
.pso--compact dd { font-size: 16px; line-height: 1.45; }
.pso--page { padding: 24px 0 8px; gap: 18px; }
.pso--page dd { font-size: 17px; }
@media (min-width: 900px) {
  .pso--page { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .pso--page > div { border-top: 2px solid var(--line); padding-top: 12px; }
  .pso--page .pso__outcome { border-top-color: var(--lagoon); }
}

/* ---------- Case-study cards ---------- */

.case-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }
.case-card, .studio-card, .work-card, .also-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.is-linked { cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.is-linked:hover { border-color: var(--heading); }
.case-card__org, .work-card__kind, .work-card__meta { font-weight: 700; margin: 0; font-family: var(--font-caps); font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case-card__title, .studio-card__title, .work-card__title {
  font-size: 28px; line-height: 1.1; color: var(--heading);
}
.case-card__title a, .studio-card__title a, .work-card__title a { color: inherit; text-decoration: none; }
.case-card__title a:hover, .studio-card__title a:hover, .work-card__title a:hover { text-decoration: underline; }
.case-card__more { font-weight: 700; margin-top: auto; font-family: var(--font-caps); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.section-more { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.section-more a { font-weight: 700; font-family: var(--font-caps); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }

/* Tags */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-weight: 700;
  display: inline-block; padding: 3px 9px;
  font-family: var(--font-caps); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--label); background: transparent;
  border: 1px solid var(--line); border-radius: 20px; text-decoration: none;
}
a.tag:hover { border-color: var(--heading); color: var(--heading); }

/* Badges: coursework, solo or team */
.badge {
  display: inline-block; margin-right: 6px; padding: 2px 8px;
  font-family: var(--font-caps); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 2px; color: var(--pink-deep); background: var(--limewash); border: 1px solid var(--limewash);
}
.badge--solo { background: var(--riad-pink); border-color: var(--riad-pink); color: var(--riad-green); }
.badge--team { background: var(--forest); border-color: var(--forest); color: var(--limewash); }

/* ---------- Creative work (Crossroad video cards) ---------- */

/* Lagoon (deep tone) instead of Crossroad's Adobe: light text on Adobe fails contrast */
.creative { padding: 64px 0; background: var(--band); color: var(--limewash); }
@media (min-width: 768px) { .creative { padding: 88px 0; } }
.creative .section-title { color: var(--limewash); }
.creative .section-sub { color: var(--limewash); }
.creative__note { margin: 32px 0 0; font-size: 16px; }
.creative__note a { color: var(--limewash); }
.road-videos { display: grid; grid-template-columns: 1fr; gap: 32px 16px; }
@media (min-width: 360px) { .road-videos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .road-videos { grid-template-columns: repeat(3, 1fr); gap: 40px 20px; } }
@media (min-width: 1100px) { .road-videos { grid-template-columns: repeat(6, 1fr); gap: 32px 16px; } }
.road-video { margin: 0; }
.road-video__media {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: 4px; background: var(--card-stock);
}
.road-video__media--wide { aspect-ratio: 16 / 9; }
.road-video__media img, .road-video__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.road-video__media .placeholder-box { position: absolute; inset: 0; }
.road-video__full { position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-end; padding: 12px; text-decoration: none; }
.road-video__full > span {
  padding: 6px 12px; border-radius: 4px 16px 16px 4px;
  background: rgba(46, 50, 40, .78); color: var(--limewash);
  font-family: var(--font-caps); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.road-video__full:hover > span { background: var(--pink-deep); }
.road-video__play {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(245, 241, 230, .9); color: var(--pink-deep);
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6);
  cursor: pointer;
}
.road-video__play svg { width: 20px; height: 20px; }
.road-video__play .icon-pause { display: none; }
.road-video__play[aria-pressed="true"] .icon-play { display: none; }
.road-video__play[aria-pressed="true"] .icon-pause { display: block; }
.road-video figcaption { padding-top: 12px; }
.road-video__title { font-weight: 700; display: block; font-family: var(--font-caps); font-size: 16px; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
.road-video__source { display: block; font-size: 16px; opacity: .9; }
.road-video__strategy { display: block; margin-top: 4px; font-style: italic; font-size: 17px; line-height: 1.35; }
.road-video__stat { display: block; margin-top: 8px; padding-left: 10px; border-left: 2px solid currentColor; font-family: var(--font-caps); font-size: 13.5px; font-weight: 700; letter-spacing: .1em; line-height: 1.6; text-transform: uppercase; }
.road-video__why { display: block; margin-top: 6px; font-size: 17px; line-height: 1.45; }

/* ---------- Studio projects ---------- */

.studio-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .studio-grid { grid-template-columns: repeat(3, 1fr); } }
.studio-more { margin-top: 20px; }
.studio-more[hidden] { display: none; }
.studio-card__label { margin: 0; }
.studio-card__blurb { margin: 0; font-size: 16px; line-height: 1.45; }
.studio-card .tags { margin-top: auto; }
.studio-toggle { margin: 28px 0 0; }

/* ---------- Skills ---------- */

.skills { display: grid; gap: 12px; }
.skill-group { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.skill-group summary {
  cursor: pointer; padding: 16px 20px; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.skill-group summary::-webkit-details-marker { display: none; }
.skill-group summary::after { content: "+"; font-size: 28px; line-height: 1; color: var(--label); }
.skill-group[open] summary::after { content: "–"; }
.skill-group summary h3 { font-size: 24px; color: var(--heading); }
.skill-group__body { padding: 0 20px 18px; }
.skill-group__tools, .skill-group__proof, .skill-group__note { font-size: 16px; margin: 0 0 10px; }
.skill-group__tools .eyebrow, .skill-group__proof .eyebrow { margin: 0 8px 0 0; }
.skill-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.4; }
.skill-table th, .skill-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }
.skill-table thead th { border-top: 0; font-family: var(--font-caps); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.skill-table tbody th { font-weight: 600; color: var(--heading); width: 36%; }
@media (max-width: 600px) {
  .skill-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .skill-table tr { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
  .skill-table th, .skill-table td { display: block; width: auto; border: 0; padding: 0; }
  .skill-table tbody th { width: auto; }
}
.workplace-tools { margin: 24px 0 0; font-size: 16px; }
.workplace-tools .eyebrow { margin: 0 8px 0 0; }

/* ---------- Education ---------- */

.edu__school { font-family: var(--font-serif); font-size: 24px; font-weight: 600; color: var(--heading); margin: 0; }
.edu__degree { margin: 0 0 28px; color: var(--muted); }
.edu__ideas { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 20px; counter-reset: idea; }
@media (min-width: 900px) { .edu__ideas { grid-template-columns: repeat(3, 1fr); } }
.edu__ideas li { counter-increment: idea; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 22px; }
.edu__ideas li::before { content: "0" counter(idea); display: block; font-family: var(--font-serif); font-size: 22px; font-weight: 600; line-height: 1; color: var(--label); margin-bottom: 8px; }
.edu__ideas h3 { font-size: 24px; line-height: 1.15; color: var(--heading); margin-bottom: 10px; }
.edu__ideas p { font-size: 16px; line-height: 1.45; }
.edu__proof { margin: 0; }
.edu__proof .eyebrow { margin: 0 6px 0 0; }
.edu__honors { margin: 0 0 40px; padding-left: 20px; }
.sas { display: grid; gap: 28px; padding-top: 32px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .sas { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.sas h3 { font-size: 30px; line-height: 1.1; color: var(--heading); margin-bottom: 16px; }
.sas .eyebrow { margin: 0 6px 0 0; }
.sas__quote { margin: 0 0 1em; padding: 18px 22px; background: var(--surface); border-left: 3px solid var(--riad-pink); }
.sas__quote p { font-style: italic; font-size: 16px; }
.sas__quote footer { font-weight: 700; font-family: var(--font-caps); font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.sas__media { max-width: 340px; width: 100%; justify-self: center; }

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


/* ---------- Contact card + footer ---------- */

.contact { padding: 72px 0; background: var(--band); color: var(--limewash); text-align: center; }
.contact .section-title { color: var(--limewash); }
.contact__note { margin: 12px 0 24px; font-size: 16px; }
.highlight-reel {
  margin: 0 auto 40px; max-width: 900px;
  font-style: italic; font-size: 17px; line-height: 1.6; color: var(--limewash);
}
.contact-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.contact-links a { color: var(--limewash); font-size: 17px; }
.contact-links a:hover { color: var(--riad-pink); }
.site-footer { padding: 22px 0; background: var(--band); border-top: 1px solid var(--line); color: var(--limewash); font-size: 16px; text-align: center; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--limewash); }
.contact :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .creative :focus-visible, .section--alt :focus-visible, .case-card :focus-visible, .studio-card :focus-visible, .work-card :focus-visible, .skill-group :focus-visible { outline-color: var(--limewash); }

/* ---------- Work page ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.filter { font-weight: 700;
  padding: 9px 14px; cursor: pointer;
  font-family: var(--font-caps); font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--forest); background: transparent;
  border: 1px solid var(--pink-deep); border-radius: 20px;
}
.filter:hover { background: rgba(136, 100, 88, .1); }
.filter[aria-pressed="true"] { background: var(--pink-deep); color: var(--limewash); border-color: var(--pink-deep); }
.filter-status { font-size: 16px; color: var(--muted); margin: 8px 0 28px; }
.work-group { margin-bottom: 40px; }
.work-group[hidden] { display: none; }
.work-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .work-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .work-list { grid-template-columns: repeat(3, 1fr); } }
.work-item[hidden] { display: none; }
.work-card { height: 100%; }
.work-card__line { margin: 0; font-size: 16px; line-height: 1.45; }
.work-card .tags { margin-top: auto; }

/* ---------- Project page ---------- */

.crumbs { font-weight: 700; margin: 0 0 14px; font-family: var(--font-caps); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.project-head__title { font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: 1.04; color: var(--heading); }
.project-head__line { margin: 12px 0 12px; }
.project-head__meta { font-weight: 700; font-family: var(--font-caps); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.8; }
.prose h2 { font-size: 30px; color: var(--heading); margin: 28px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.process { padding-left: 22px; }
.process li { margin-bottom: 10px; }
.credit { font-style: italic; color: var(--muted); }
.gallery { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); align-items: start; } }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--line); background: var(--paper); }
.gallery__item .placeholder-box { min-height: 220px; border-radius: 4px; }
.gallery__item--vertical .road-video__media { max-width: 340px; }
.gallery__item figcaption { margin-top: 8px; font-size: 16px; color: var(--muted); }
.deck-links { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.deck-links a { font-weight: 700; font-family: var(--font-caps); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.tools { margin: 24px 0 0; font-size: 16px; }
.tools .eyebrow { margin: 0 8px 0 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
@media (min-width: 700px) { .timeline li { grid-template-columns: 190px 1fr; gap: 20px; } }
.timeline__when { font-weight: 600; font-size: 16px; color: var(--label); padding-top: 3px; }
.timeline__what strong { color: var(--heading); font-weight: 600; margin-right: 4px; }
.also-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .also-grid { grid-template-columns: repeat(2, 1fr); } }
.also-card h3 { font-size: 24px; color: var(--heading); }
.also-card p { margin: 0; font-size: 16px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; padding-top: 48px; padding-bottom: 64px; }
.pager a { text-decoration: none; font-size: 17px; color: var(--heading); line-height: 1.25; }
.pager a:hover { text-decoration: underline; }
.pager .eyebrow { display: block; margin-bottom: 4px; }
.pager__all { font-weight: 700; font-family: var(--font-caps); font-size: 14px !important; letter-spacing: .1em; text-transform: uppercase; padding-bottom: 4px; }
.pager__next { text-align: right; }
@media (max-width: 560px) {
  .pager { grid-template-columns: 1fr 1fr; }
  .pager__all { grid-column: 1 / -1; grid-row: 2; text-align: center; }
}

/* Work page group headings */
.group-title {
  margin: 0 0 18px; font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.7rem, 4.5vw, 2.3rem); line-height: 1.1; color: var(--heading);
}

/* ---------- By the numbers: dark green band, receipt beside the stats ---------- */
.numbers-band { --number: var(--riad-pink); padding: 64px 0 72px; background: var(--forest); }
@media (min-width: 768px) { .numbers-band { padding: 88px 0 96px; } }
.numbers-band__inner { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .numbers-band__inner { grid-template-columns: 1.15fr 1fr; gap: 56px; } }
.numbers-band .stats-bar__list { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
.numbers-band .stats-bar__item { border-left: 0; }
.numbers-band .stats-bar__item:nth-child(even) { border-left: 1px solid var(--line); }
.numbers-band .stats-bar__label, .numbers-band .stats-bar__context { color: var(--limewash); }
.numbers-band .receipt-wrap { filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .28)); }
/* The receipt is light paper, so it keeps dark text inside the green band */
.receipt {
  --text: var(--forest); --heading: var(--forest); --muted: var(--pink-deep);
  --label: var(--pink-deep); --link: var(--pink-deep); --line: rgba(59, 82, 64, .25);
  --number: var(--pink-deep);
  color: var(--text);
}
.receipt__lines:last-of-type { padding-bottom: 0; }

/* ---------- Explore more: link cards to the deeper pages ---------- */
.explore-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .explore-grid { grid-template-columns: repeat(3, 1fr); } }
.explore-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 10px;
}
.explore-card h3 { font-size: 28px; line-height: 1.1; color: var(--heading); }
.explore-card h3 a { color: inherit; text-decoration: none; }
.explore-card h3 a:hover { text-decoration: underline; }
.explore-card p { margin: 0; }
.section-cta { margin: 28px 0 0; }
.page-intro { max-width: 780px; margin: -8px 0 32px; }

/* ---------- Phone menu ---------- */
.menu-btn {
  display: none; padding: 8px 14px; cursor: pointer;
  font-family: var(--font-caps); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--heading); background: transparent; border: 1px solid currentColor; border-radius: 2px;
}
.site-header--over .menu-btn { color: var(--paper); }
@media (max-width: 1000px) {
  .menu-btn { display: inline-block; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--limewash); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a, .site-header--over .site-nav a { display: block; padding: 12px 0; font-size: 17px; color: var(--heading); }
}
/* Open phone menu over the hero: make the header bar solid to match the list */
.site-header:has(.site-nav.is-open) { background: var(--limewash); border-color: var(--line); }
.site-header:has(.site-nav.is-open) .site-header__name,
.site-header:has(.site-nav.is-open) .menu-btn { color: var(--heading); }

/* ---------- About: a page of its own, portrait freestanding and touching the bottom edge ---------- */
.about-page { padding-top: 72px; overflow: hidden; }
.about { display: grid; gap: 24px; align-items: end; }
.about__text { align-self: center; padding-bottom: 24px; }
.about__text .section-head { margin-bottom: 20px; }
.about__photo { justify-self: center; line-height: 0; }
.about__photo img { display: block; width: auto; height: min(70vh, 560px); max-width: 100%; object-fit: contain; object-position: bottom; }
@media (min-width: 860px) {
  .about-page { min-height: calc(100vh - var(--header-h)); display: flex; align-items: flex-end; padding-top: 48px; }
  .about-page > .container { width: 100%; }
  .about { grid-template-columns: 3fr 2fr; gap: 40px; }
  .about__photo img { height: min(82vh, 760px); }
  .about__text { padding-bottom: 72px; }
}

/* ---------- By the numbers: title centered over the stats, stats centered against the receipt ---------- */
.numbers-band__inner { align-items: center; }
.numbers-band__stats .section-head { text-align: center; }

/* Desktop header: CCS and the menu items centered as one evenly spaced row */
@media (min-width: 1001px) {
  .site-header { justify-content: center; gap: clamp(28px, 3.4vw, 52px); }
  .site-nav { gap: clamp(28px, 3.4vw, 52px); }
  .site-nav a { padding: 8px 0; }
}

/* Desktop header, full width: CCS and every menu item spread evenly, with the same space at both ends */
@media (min-width: 1001px) {
  .site-header { justify-content: space-evenly; gap: 0; padding: 0; }
  .site-nav-wrap, .site-nav { display: contents; }
  .site-nav li { list-style: none; }
}

/* ---------- Receipt: realistic thermal paper ---------- */
.numbers-band .receipt-wrap { transform: rotate(-1.4deg); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .18)) drop-shadow(0 22px 28px rgba(0, 0, 0, .3)); }
.receipt {
  position: relative; isolation: isolate;
  padding: 44px 34px 40px;
  /* fold creases, yellowed edges, faint ring stain, then the paper itself */
  background:
    linear-gradient(180deg, transparent 37.6%, rgba(90, 80, 60, .10) 38%, rgba(255, 255, 255, .55) 38.4%, transparent 39%),
    linear-gradient(180deg, transparent 70.6%, rgba(90, 80, 60, .08) 71%, rgba(255, 255, 255, .5) 71.4%, transparent 72%),
    linear-gradient(90deg, transparent 49.7%, rgba(90, 80, 60, .05) 50%, transparent 50.4%),
    radial-gradient(circle at 86% 88%, transparent 46px, rgba(150, 110, 60, .10) 48px, rgba(150, 110, 60, .05) 52px, transparent 55px),
    radial-gradient(120% 90% at 50% 50%, transparent 62%, rgba(196, 170, 120, .22) 100%),
    linear-gradient(180deg, #FBF7EC, #F7F1E2);
  -webkit-mask:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='12' viewBox='0 0 100 12' preserveAspectRatio='none'><polygon points='0,12 0,7 6,3 11,8 17,2 23,7 28,4 34,10 40,3 45,6 51,1 57,8 62,4 68,9 74,2 79,6 85,3 91,9 96,4 100,7 100,12' fill='black'/></svg>") top left / 100px 12px repeat-x,
    linear-gradient(#000, #000) center / 100% calc(100% - 22px) no-repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='12' viewBox='0 0 100 12' preserveAspectRatio='none'><polygon points='0,0 0,5 5,9 12,4 18,10 24,5 30,8 35,2 41,9 47,6 53,11 58,4 64,8 70,3 76,10 82,5 87,9 93,3 100,6 100,0' fill='black'/></svg>") bottom left / 100px 12px repeat-x;
          mask:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='12' viewBox='0 0 100 12' preserveAspectRatio='none'><polygon points='0,12 0,7 6,3 11,8 17,2 23,7 28,4 34,10 40,3 45,6 51,1 57,8 62,4 68,9 74,2 79,6 85,3 91,9 96,4 100,7 100,12' fill='black'/></svg>") top left / 100px 12px repeat-x,
    linear-gradient(#000, #000) center / 100% calc(100% - 22px) no-repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='12' viewBox='0 0 100 12' preserveAspectRatio='none'><polygon points='0,0 0,5 5,9 12,4 18,10 24,5 30,8 35,2 41,9 47,6 53,11 58,4 64,8 70,3 76,10 82,5 87,9 93,3 100,6 100,0' fill='black'/></svg>") bottom left / 100px 12px repeat-x;
}
/* paper grain and slightly uneven ink */
.receipt::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .32 0 0 0 0 .27 0 0 0 0 .2 0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply; opacity: .45;
}
.receipt > * { position: relative; z-index: 2; }
.receipt__item, .receipt__meta, .receipt__sub, .receipt__from { text-shadow: 0 0 .4px rgba(59, 82, 64, .35); }
.receipt__lines, .receipt__head { border-color: rgba(59, 82, 64, .4); }

/* Behind the numbers: fit on one laptop screen (copy unchanged, layout tightened; tags still show on the Work page) */
@media (min-width: 900px) {
  #work { padding: 44px 0 40px; }
  #work .section-head { margin-bottom: 18px; }
  #work .section-sub { margin-top: 6px; }
  #work .case-grid { gap: 18px; }
  #work .case-card { padding: 20px 20px 18px; gap: 8px; }
  #work .case-card__title { font-size: 25px; }
  #work .pso--compact { gap: 8px; }
  #work .pso--compact dd { font-size: 15px; line-height: 1.45; }
  #work .pso dt { font-size: 12.5px; }
  #work .case-card .tags { display: none; }
  #work .section-more { margin-top: 16px; }
}
@media (min-width: 900px) {
  #work { padding: 30px 0 26px; }
  #work .section-title { font-size: clamp(2.1rem, 4vw, 2.9rem); }
  #work .case-card { padding: 18px 20px 16px; gap: 6px; }
  #work .pso--compact { gap: 6px; }
  #work .pso--compact dd { font-size: 14.5px; line-height: 1.42; }
}

/* Experience page: educational projects keep their own card style */
.group-sub { margin: -8px 0 18px; max-width: 780px; color: var(--muted); }
.work-list--studio .studio-card { height: 100%; }

/* What I've Learned: projects from coursework, as a short list of links */
.edu__projects { margin: 8px 0 28px; }
.edu__projects h3 { font-size: 24px; color: var(--heading); margin-bottom: 8px; }
.edu__projects ul { margin: 0; padding-left: 20px; }
.edu__projects li { margin-bottom: 6px; }
.edu__projects-meta { color: var(--muted); }
.edu__projects-more { margin: 10px 0 0; }

/* Creative work: photo bar under the videos */
.photo-bar { margin-top: 48px; }
.photo-bar__title { font-size: 26px; color: var(--limewash); }
.photo-bar__line { margin: 6px 0 16px; }
.photo-bar__list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.photo-bar__item { aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: var(--card-stock); scroll-snap-align: start; }
.photo-bar__item img { width: 100%; height: 100%; object-fit: cover; }
.photo-bar__item .placeholder-box { min-height: 0; }
.photo-bar__item .placeholder-chip { font-size: 11px; }

/* Placeholder chips are always light with dark text, wherever they sit (incl. dark sections) */
.placeholder-chip { color: var(--forest); background: var(--paper); }
.placeholder-chip__label { color: var(--pink-deep); }

@media (min-width: 1000px) { .photo-bar__list { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; } }

/* Creative work: Crossroad button under the first reels, JOY Bar nudged up */
.creative__cta { margin: 24px 0 0; }
.photo-bar { margin-top: 36px; }

/* Rounded (pill) buttons everywhere */
.btn, .menu-btn { border-radius: 999px; }

/* Creative work: tighter, so the section is shorter */
.creative { padding: 52px 0 56px; }
@media (min-width: 768px) { .creative { padding: 64px 0 64px; } }
.creative .section-head { margin-bottom: 22px; }
.creative .road-video figcaption { padding-top: 10px; }
.creative__cta { margin: 14px 0 0; }
.photo-bar { margin-top: 22px; }
.photo-bar__line { margin: 4px 0 12px; }
.photo-bar__item { aspect-ratio: 1 / 1; }

/* Wide screens: the Crossroad button floats in the space under the first two reels (positioned by setupCreativeCta) */
.creative__cta.is-floating { position: relative; height: 0; margin: 0; }
.creative__cta.is-floating .btn { position: absolute; left: 0; }

/* Hero fills the whole screen (svh keeps it exact on phones with browser bars) */
.hero { min-height: 100vh; min-height: 100svh; }

/* Receipt lines with two links (Breakdown + View proof) */
.receipt__links { display: inline-flex; gap: 14px; }

/* ---------- Zivian pages: role growth, case-study body, method diagram, tool groups ---------- */
.phases__title { font-family: var(--font-caps); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--label); margin: 40px 0 14px; font-weight: 700; }
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .phases { grid-template-columns: repeat(3, 1fr); } }
.phase { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-top: 3px solid var(--number); background: var(--surface); color: var(--bg); border-radius: 4px; }
.phase__when { font-family: var(--font-caps); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--bg); opacity: .85; }
.phase__name { font-family: var(--font-serif); font-size: 24px; line-height: 1.2; color: var(--bg); }
.phase__line { font-size: 16px; line-height: 1.5; color: var(--bg); }
.steps { padding-left: 24px; }
.steps li { margin-bottom: 12px; padding-left: 4px; }
.steps li::marker { font-weight: 700; color: var(--muted); }
.case-body strong { color: var(--heading); }
.case-body .process li { margin-bottom: 12px; }
.visuals-title { font-size: 30px; color: var(--heading); margin: 0 0 18px; }
.method { margin: 0; }
.method__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: none; }
@media (min-width: 800px) { .method__steps { grid-template-columns: repeat(3, 1fr); gap: 44px; } }
.method__step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
@media (min-width: 800px) {
  .method__step:not(:last-child)::after { content: "→"; position: absolute; right: -34px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--muted); }
}
.method__num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-bg); color: var(--btn-ink); font-weight: 700; font-size: 16px; }
.method__name { font-family: var(--font-serif); font-size: 24px; color: var(--heading); }
.method__line { font-size: 16px; line-height: 1.5; }
.method figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); font-style: italic; }
.tool-groups { margin: 0; display: grid; gap: 0; }
.tool-groups > div { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .tool-groups > div { grid-template-columns: 300px 1fr; gap: 20px; } }
.tool-groups dt { font-family: var(--font-caps); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--label); padding-top: 2px; }
.tool-groups dd { margin: 0; font-size: 17px; }

/* Experience: short cards with no page */
.mini-roles { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; font-size: 16px; line-height: 1.5; }
.mini-roles strong { color: var(--heading); }
.mini-roles__role { display: block; font-size: 14px; color: var(--muted); font-style: italic; }

/* What I've Learned: one card per concentration, labeled instead of numbered */
.edu__ideas li::before { content: none; }
.edu__label { font-family: var(--font-caps); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--label); margin: 0 0 8px; }

/* Semester at Sea: photo set in place of the video */
.sas__photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sas__photos figure { margin: 0; }
.sas__photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; display: block; }
.sas__photos figcaption { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.sas__frame { overflow: hidden; border-radius: 4px; }
.sas__frame img { border-radius: 0; object-position: var(--focus, 50% 50%); transform: scale(var(--zoom, 1)); transform-origin: var(--focus, 50% 50%); }

.toolkit-title { margin-top: 48px; }

/* Full toolbox at the bottom of /work */
.section--rule { border-top: 1px solid var(--line); }
.skill-group summary h4 { font-family: var(--font-serif); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--heading); margin: 0; }

/* =====================================================================
   Toolbox (homepage): a Riad Pink metal toolbox seen from above.
   Closed: two lid halves with stickers. Click: the halves swing out to the
   sides and the two compartments (Tools, Skills) show inside.
   ===================================================================== */
.tbx-section { overflow: hidden; }
.tbx { --metal: linear-gradient(90deg, #c88b7b 0%, #d6a090 22%, #e2b2a4 48%, #d49a8a 70%, #c58676 100%);
  --metal-in: linear-gradient(90deg, #b9796a, #c88b7b 40%, #c08171);
  position: relative; max-width: 1040px; margin: 0 auto; perspective: 2200px; }
.tbx__box { position: relative; width: 50%; margin: 0 auto; transform-style: preserve-3d; border-radius: 12px;
  background: var(--metal); padding: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.12), 0 28px 40px -18px rgba(70,40,32,.55), 0 6px 12px rgba(70,40,32,.18); }

/* inside: two deep compartments */
.tbx__inside { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 560px; }
.tbx__comp { position: relative; padding: 16px 14px 18px; border-radius: 6px;
  background: linear-gradient(180deg, #a87c70 0%, #b88b7e 30%, #b48779 100%);
  box-shadow: inset 0 14px 20px -8px rgba(60,30,24,.55), inset 0 -8px 14px -10px rgba(60,30,24,.45), inset 6px 0 12px -8px rgba(60,30,24,.5), inset -6px 0 12px -8px rgba(60,30,24,.5); }
.tbx__comp-title { display: inline-block; margin: 0 0 12px; padding: 3px 14px; border-radius: 3px; background: #fbf8ef; color: var(--forest);
  font-family: var(--font-caps); font-weight: 700; font-size: 14px; letter-spacing: .26em; text-transform: uppercase;
  box-shadow: 0 2px 3px rgba(60,30,24,.35); transform: rotate(-1.5deg); outline: none; }
.tbx__comp--skills .tbx__comp-title { transform: rotate(1.2deg); }
.tbx__bin { padding: 10px 0 12px; border-top: 2px solid rgba(255,235,225,.28); box-shadow: 0 -1px 0 rgba(60,30,24,.25); }
.tbx__bin:first-of-type { border-top: 0; box-shadow: none; padding-top: 0; }
.tbx__bin-title { margin: 0 0 7px; font-family: var(--font-caps); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #fbf3ee; text-shadow: 0 1px 1px rgba(60,30,24,.45); }
.tbx__items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tbx__items li { padding: 3px 10px; border-radius: 999px; font-size: 13.5px; line-height: 1.35; color: var(--forest);
  background: #fbf8ef; border: 2px solid #fff; box-shadow: 0 1.5px 2px rgba(60,30,24,.35); }
.tbx__items li:nth-child(4n+2) { background: #e4ddcb; transform: rotate(-1deg); }
.tbx__items li:nth-child(4n+3) { background: #f2d3ca; transform: rotate(.8deg); }
.tbx__items li:nth-child(4n) { background: #dfe3d2; }

/* lids */
.tbx__lid { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; transform-style: preserve-3d;
  transition: transform 1.15s cubic-bezier(.62,.02,.24,1), opacity .4s ease; }
.tbx__lid--l { left: 0; transform-origin: 0 50%; }
.tbx__lid--r { right: 0; transform-origin: 100% 50%; transition-delay: .07s; }
.tbx__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.tbx__face--out { background: var(--metal);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), inset 0 2px 0 rgba(255,255,255,.35); }
.tbx__lid--l .tbx__face--out { border-radius: 12px 0 0 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), inset -2px 0 0 rgba(90,50,40,.35); }
.tbx__lid--r .tbx__face--out { border-radius: 0 12px 12px 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), inset 2px 0 0 rgba(90,50,40,.35); }
/* pressed ridges and grain on the metal */
.tbx__face--out::before { content: ""; position: absolute; inset: 22px 26px; border-radius: 8px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.22), 0 0 0 2px rgba(110,60,48,.16); }
.tbx__face::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .32; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.tbx__face--in { transform: rotateY(180deg); background: var(--metal-in); display: grid; place-items: center;
  box-shadow: inset 0 0 0 10px rgba(255,255,255,.08), inset 0 0 30px rgba(70,35,28,.35); }
.tbx__lid--l .tbx__face--in { border-radius: 0 12px 12px 0; }
.tbx__lid--r .tbx__face--in { border-radius: 12px 0 0 12px; }
.tbx__note { padding: 14px 18px; background: #fbf8ef; color: var(--forest); font-family: var(--font-serif); font-size: 22px; line-height: 1.15; text-align: center;
  box-shadow: 0 3px 6px rgba(60,30,24,.35); transform: rotate(-3deg); }
.tbx__lid--r .tbx__note { transform: rotate(2.5deg); }

/* handle, lying along the seam */
.tbx__handle { position: absolute; z-index: 3; left: 50%; top: 18%; bottom: 18%; width: 16px; margin-left: -8px; border-radius: 9px;
  background: linear-gradient(90deg, #7d564b, #a17669 45%, #6f4b41); box-shadow: 0 3px 5px rgba(60,30,24,.4), inset 0 1px 0 rgba(255,255,255,.25);
  transition: opacity .3s ease; }
.tbx__handle::before, .tbx__handle::after { content: ""; position: absolute; left: -7px; width: 30px; height: 18px; border-radius: 4px;
  background: linear-gradient(180deg, #b98a7c, #8a6458); box-shadow: 0 2px 3px rgba(60,30,24,.4); }
.tbx__handle::before { top: -6px; } .tbx__handle::after { bottom: -6px; }

/* stickers */
.tbx__sticker { position: absolute; z-index: 1; display: grid; place-items: center; filter: drop-shadow(0 2px 2px rgba(60,30,24,.35)); }
.tbx__sticker--label { left: 12%; right: 10%; top: 34%; padding: 18px 14px 16px; background: #fbf8ef; border: 3px solid #fff; border-radius: 6px; transform: rotate(-4deg); text-align: center; }
.tbx__label-small { display: block; font-family: var(--font-caps); font-weight: 700; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--pink-deep); }
.tbx__label-big { display: block; font-family: var(--font-serif); font-size: clamp(34px, 4.2vw, 50px); line-height: 1; color: var(--forest); margin-top: 4px; }
.tbx__sticker--star svg, .tbx__sticker--heart svg { width: 100%; height: 100%; display: block; stroke: #fff; stroke-width: 1.6; paint-order: stroke; }
.tbx__sticker--star { width: 46px; height: 46px; }
.tbx__sticker--star svg { fill: #f2d3ca; }
.tbx__sticker--star.s1 { top: 9%; left: 14%; transform: rotate(-12deg); }
.tbx__sticker--star.s2 { bottom: 12%; right: 16%; width: 30px; height: 30px; transform: rotate(18deg); }
.tbx__sticker--star.s2 svg { fill: var(--sand); }
.tbx__sticker--star.s3 { top: 46%; left: 14%; width: 34px; height: 34px; transform: rotate(10deg); }
.tbx__sticker--star.s3 svg { fill: #fbf8ef; }
.tbx__sticker--heart { width: 40px; height: 40px; bottom: 14%; left: 18%; transform: rotate(-10deg); }
.tbx__sticker--heart svg { fill: var(--forest); }
.tbx__sticker--ccs { top: 10%; right: 14%; width: 92px; height: 92px; border-radius: 50%; background: var(--forest); border: 3px solid #fff; color: #fbf8ef; font-family: var(--font-script); font-size: 34px; transform: rotate(8deg); }
.tbx__sticker--slogan { top: 33%; right: 10%; left: 26%; padding: 10px 12px; border-radius: 999px; background: #e4ddcb; border: 3px solid #fff; color: var(--forest); font-family: var(--font-script); font-size: 24px; white-space: nowrap; transform: rotate(-5deg); }
.tbx__sticker--open { bottom: 12%; right: 18%; width: 104px; height: 104px; border-radius: 50%; background: var(--pink-deep); border: 3px solid #fff; color: #fbf8ef;
  font-family: var(--font-caps); font-weight: 700; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; text-align: center; transform: rotate(-8deg); }

/* the whole closed lid is the open button */
.tbx__toggle { position: absolute; inset: 0; z-index: 4; width: 100%; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 12px; }
.tbx__toggle:focus-visible { outline: 3px solid var(--forest); outline-offset: 6px; }
.tbx__toggle[hidden] { display: none; }
.tbx__close { margin-left: 18px; background: none; border: 0; padding: 6px 0; cursor: pointer; font-family: var(--font-caps); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.tbx__close[hidden] { display: none; }
.tbx__cta { margin-top: 44px; text-align: center; }

/* inside is hidden behind the lids until opened */
.tbx__inside { transition: opacity .5s ease .35s; }
.tbx:not(.is-open) .tbx__inside { opacity: .0; }

/* open (desktop): halves swing out flat beside the box */
.tbx.is-open .tbx__lid--l { transform: rotateY(-180deg); }
.tbx.is-open .tbx__lid--r { transform: rotateY(180deg); }
.tbx.is-open .tbx__handle { opacity: 0; }

/* scrolls into view: a small hop, and the Open me sticker pulses */
@media (prefers-reduced-motion: no-preference) {
  .tbx.is-seen:not(.is-open) .tbx__box { animation: tbx-hop .9s cubic-bezier(.3,.7,.4,1) .15s 1; }
  .tbx:not(.is-open) .tbx__sticker--open { animation: tbx-pulse 2.4s ease-in-out infinite; }
  .tbx:not(.is-open) .tbx__box:hover .tbx__lid--l { transform: rotateY(-7deg); }
  .tbx:not(.is-open) .tbx__box:hover .tbx__lid--r { transform: rotateY(7deg); }
  .tbx.is-open .tbx__items li { animation: tbx-in .45s ease both; animation-delay: .7s; }
}
@keyframes tbx-hop { 0%,100% { transform: translateY(0); } 35% { transform: translateY(-14px) rotate(-.6deg); } 60% { transform: translateY(0); } 78% { transform: translateY(-4px); } }
@keyframes tbx-pulse { 0%,100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(-8deg) scale(1.07); } }
@keyframes tbx-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .tbx__lid, .tbx__inside, .tbx__handle { transition: none; } }

/* tablet and phone: the box fills the width; the lids swing up and fade instead of landing beside it */
@media (max-width: 899px) {
  .tbx__box { width: 100%; max-width: 560px; }
  .tbx:not(.is-open) .tbx__box { height: 560px; overflow: hidden; }
  .tbx.is-open .tbx__lid--l { transform: rotateY(-100deg); opacity: 0; pointer-events: none; }
  .tbx.is-open .tbx__lid--r { transform: rotateY(100deg); opacity: 0; pointer-events: none; }
  .tbx__lid { transition: transform .9s cubic-bezier(.62,.02,.24,1), opacity .5s ease .45s; }
}
@media (max-width: 560px) {
  .tbx__inside { grid-template-columns: 1fr; min-height: 0; }
  .tbx:not(.is-open) .tbx__box { height: 480px; }
  .tbx__sticker--ccs { width: 64px; height: 64px; font-size: 24px; }
  .tbx__sticker--open { width: 76px; height: 76px; font-size: 12px; }
  .tbx__sticker--slogan { font-size: 17px; left: 14%; right: 6%; }
  .tbx__sticker--label { left: 8%; right: 6%; padding: 12px 8px; }
  .tbx__label-small { font-size: 11px; letter-spacing: .12em; }
  .tbx__label-big { font-size: 30px; }
  .tbx__face--out::before { inset: 14px 14px; }
}
/* toolbox: wider box on laptops; lids swing up and out past upright (seen from above) */
@media (min-width: 900px) {
  .tbx__box { width: 70%; max-width: 720px; }
  .tbx__inside { min-height: 0; }
  .tbx.is-open .tbx__lid--l { transform: rotateY(-116deg); }
  .tbx.is-open .tbx__lid--r { transform: rotateY(116deg); }
}
@media (min-width: 900px) {
  .tbx__comp { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; align-content: start; }
  .tbx__comp-title { grid-column: 1 / -1; justify-self: start; }
  .tbx__bin:nth-of-type(-n+2) { border-top: 0; box-shadow: none; padding-top: 0; }
  .tbx__items { gap: 5px; }
  .tbx__items li { font-size: 13px; padding: 2px 9px; }
}
@media (max-width: 560px) { .tbx__sticker--slogan { font-size: 15px; left: 8%; right: 9%; padding: 8px 6px; } }
/* deeper compartment floor so the small cream labels pass contrast */
.tbx__comp { background: linear-gradient(180deg, #7a5348 0%, #885f54 30%, #865d52 100%); }
/* clicks always reach the open button: lids and handle never catch the mouse, and the button sits in front in 3D */
.tbx__lid, .tbx__handle, .tbx__sticker { pointer-events: none; }
.tbx__toggle { transform: translateZ(120px); }
.tbx__handle { transform: translateZ(90px); }

/* =====================================================================
   Toolbox v3: matte Riad Green metal, modeled on a real stamped-steel
   toolbox seen from above. The inside stays pink.
   ===================================================================== */
.tbx__box { padding: 14px; border-radius: 10px;
  background: radial-gradient(130% 80% at 18% 8%, rgba(255,255,255,.05), transparent 60%), linear-gradient(155deg, #405a46, #34493a 55%, #2e4033);
  box-shadow:
    inset 1.5px 1.5px 0 rgba(255,255,255,.14), inset -2px -2px 0 rgba(0,0,0,.35),
    0 6px 0 -1px #243128,                     /* a sliver of the front wall */
    0 7px 2px -1px rgba(0,0,0,.25),
    24px 32px 36px -14px rgba(25,35,28,.5),  /* soft cast shadow, light from the top left */
    6px 10px 16px rgba(25,35,28,.16); }
.tbx__lid { top: 8px; bottom: 8px; width: calc(50% - 9px); }
.tbx__lid--l { left: 8px; } .tbx__lid--r { right: 8px; }
.tbx__face--out,
.tbx__lid--l .tbx__face--out, .tbx__lid--r .tbx__face--out {
  background:
    radial-gradient(150% 70% at 22% 6%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(162deg, #43614b 0%, #3b5240 46%, #33483a 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.4), inset 2px 2px 0 rgba(255,255,255,.12), inset -2px -3px 0 rgba(0,0,0,.3), inset 0 0 14px rgba(0,0,0,.16),
    2px 3px 4px rgba(0,0,0,.35); }
.tbx__lid--l .tbx__face--out { border-radius: 8px 3px 3px 8px; }
.tbx__lid--r .tbx__face--out { border-radius: 3px 8px 8px 3px; }
/* folded flange along the seam */
.tbx__lid--l .tbx__face--out { background-image:
    linear-gradient(90deg, transparent calc(100% - 15px), rgba(255,255,255,.11) calc(100% - 14px), rgba(255,255,255,.02) calc(100% - 9px), rgba(0,0,0,.38) calc(100% - 1px)),
    radial-gradient(150% 70% at 22% 6%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(162deg, #43614b 0%, #3b5240 46%, #33483a 100%); }
.tbx__lid--r .tbx__face--out { background-image:
    linear-gradient(270deg, transparent calc(100% - 15px), rgba(0,0,0,.22) calc(100% - 14px), rgba(255,255,255,.08) calc(100% - 9px), rgba(255,255,255,.14) calc(100% - 1px)),
    radial-gradient(150% 70% at 22% 6%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(162deg, #43614b 0%, #3b5240 46%, #33483a 100%); }
/* stamped panel pressed into each lid */
.tbx__face--out::before { inset: 22px 26px 22px 22px; border-radius: 12px;
  box-shadow: inset 1px 1px 1px rgba(0,0,0,.4), inset -1px -1px 0 rgba(255,255,255,.07), 1px 1px 0 rgba(255,255,255,.09), -1px -1px 0 rgba(0,0,0,.28); }
.tbx__lid--r .tbx__face--out::before { inset: 22px 22px 22px 26px; }
.tbx__face::after { opacity: .28; mix-blend-mode: multiply; }

.tbx__seam { position: absolute; z-index: 3; left: 50%; top: 8px; bottom: 8px; width: 3px; margin-left: -1.5px; background: #1c271f;
  transform: translateZ(60px); transition: opacity .3s ease; }
.tbx__hw { position: absolute; inset: 0; z-index: 3; pointer-events: none; transform: translateZ(90px); transition: opacity .3s ease; }
.tbx.is-open .tbx__seam, .tbx.is-open .tbx__hw { opacity: 0; }
/* two wire handle halves lying side by side on the seam */
.tbx__rod { position: absolute; top: 25%; bottom: 29%; width: 10px; border-radius: 6px;
  background: linear-gradient(90deg, #26362b 0%, #4f6b54 40%, #5c7a61 52%, #33473a 100%);
  box-shadow: 3px 5px 5px rgba(0,0,0,.42); }
.tbx__rod--l { left: calc(50% - 15px); } .tbx__rod--r { left: calc(50% + 5px); }
/* clasp mounts on each lid, with the wire bending into them */
.tbx__clasp { position: absolute; width: 30px; height: 46px; border-radius: 9px;
  background: linear-gradient(150deg, #4a6750, #36493b);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.16), inset -1px -1px 0 rgba(0,0,0,.35), 2px 3px 4px rgba(0,0,0,.4); }
.tbx__clasp::before { content: ""; position: absolute; top: 9px; left: 9px; width: 12px; height: 18px; border-radius: 5px; background: #24332a; box-shadow: inset 1px 2px 2px rgba(0,0,0,.6); }
.tbx__clasp::after { content: ""; position: absolute; top: 13px; width: 30px; height: 10px; border-radius: 5px;
  background: linear-gradient(180deg, #26362b, #56735b 45%, #33473a); box-shadow: 2px 4px 4px rgba(0,0,0,.4); }
.tbx__clasp--tl, .tbx__clasp--bl { left: calc(50% - 64px); }
.tbx__clasp--tr, .tbx__clasp--br { left: calc(50% + 34px); }
.tbx__clasp--tl::after, .tbx__clasp--bl::after { left: 20px; }
.tbx__clasp--tr::after, .tbx__clasp--br::after { right: 20px; }
.tbx__clasp--tl, .tbx__clasp--tr { top: calc(25% - 18px); }
.tbx__clasp--bl, .tbx__clasp--br { top: calc(71% - 28px); }

/* stickers: matte die-cut paper with a tight, real shadow */
.tbx__sticker { filter: drop-shadow(1px 2px 1.2px rgba(0,0,0,.5)); }
.tbx__sticker svg { display: block; width: 100%; height: 100%; }
.tbx__sticker--sas { top: 6%; left: 11%; width: 108px; height: 108px; transform: rotate(-8deg); }
.tbx__sticker--puffy { top: 26%; left: 12%; width: 50px; height: 50px; transform: rotate(-14deg); filter: drop-shadow(2px 3px 2px rgba(0,0,0,.5)); }
.tbx__sticker--label { top: 41%; left: 11%; right: 17%; }
.tbx__sticker--uo { top: 68%; left: 17%; width: 86px; height: 86px; transform: rotate(9deg); }
.tbx__sticker--ccs { top: 6%; right: 13%; }
.tbx__sticker--milan { top: 29%; right: 12%; padding: 10px 18px 8px; background: #fbf8ef; border: 3px solid #fff; border-radius: 4px; transform: rotate(5deg); text-align: center; color: var(--riad-green-deep); line-height: 1; }
.tbx__milan-i { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--font-serif); font-size: 26px; }
.tbx__milan-i svg { width: 24px; height: 24px; fill: #b0452f; }
.tbx__milan-city { display: block; margin-top: 2px; font-family: var(--font-serif); font-size: 26px; letter-spacing: .04em; text-transform: uppercase; }
.tbx__sticker--slogan { top: 50%; left: 22%; right: 9%; }
.tbx__sticker--open { top: auto; bottom: 9%; right: 15%; width: 108px; height: 108px; font-size: 13.5px; letter-spacing: .16em; line-height: 1.25; padding: 0 12px; }
@media (max-width: 560px) {
  .tbx__clasp--tl, .tbx__clasp--bl { left: calc(50% - 52px); }
  .tbx__clasp--tr, .tbx__clasp--br { left: calc(50% + 22px); }
  .tbx__clasp { width: 26px; height: 40px; }
  .tbx__clasp::after { width: 20px; }
  .tbx__clasp--tl::after, .tbx__clasp--bl::after { left: 16px; } .tbx__clasp--tr::after, .tbx__clasp--br::after { right: 16px; }
  .tbx__sticker--sas { width: 72px; height: 72px; left: 9%; }
  .tbx__sticker--puffy { width: 34px; height: 34px; top: 25%; left: 12%; }
  .tbx__sticker--uo { width: 60px; height: 60px; }
  .tbx__sticker--milan { padding: 7px 10px 6px; right: 14%; }
  .tbx__milan-i, .tbx__milan-city { font-size: 18px; } .tbx__milan-i svg { width: 17px; height: 17px; }
  .tbx__sticker--slogan { left: 20%; right: 8%; }
  .tbx__sticker--open { width: 76px; height: 76px; font-size: 10.5px; letter-spacing: .1em; padding: 0 8px; }
  .tbx__sticker--label { left: 8%; right: 14%; }
}
/* toolbox v3 tuning */
.tbx__rod { width: 12px; background: linear-gradient(90deg, #22302606 0%, #26362b 8%, #5a775f 42%, #6c8a70 52%, #3a4f40 82%, #26362b 100%); box-shadow: 4px 6px 6px rgba(0,0,0,.45), 1px 1px 1px rgba(0,0,0,.4); }
.tbx__rod--l { left: calc(50% - 17px); } .tbx__rod--r { left: calc(50% + 5px); }
.tbx__clasp::after { background: linear-gradient(180deg, #26362b, #6a886f 45%, #3a4f40); }
.tbx__sticker--ccs { background: var(--riad-pink); color: var(--riad-green-deep); }
.tbx__sticker--puffy { width: 58px; height: 58px; }
@media (max-width: 560px) { .tbx__sticker--slogan { font-size: 13px; left: 24%; right: 12%; padding: 7px 4px; } }

/* =====================================================================
   Toolbox v4: real-looking stickers (bubbles, scuffs, a peeled corner,
   a small tear), letter-sticker title. Sizes are in em so they scale
   with the lid (16px on laptops, smaller on phones).
   ===================================================================== */
.tbx__face--out { font-size: 16px; }
.stk { position: absolute; z-index: 1; display: block; filter: drop-shadow(.6px 1.4px .9px rgba(0,0,0,.5)) drop-shadow(0 0 .4px rgba(0,0,0,.35)); }
.stk__art { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.stk__art > svg, .stk__art > img { display: block; width: 100%; height: 100%; }
/* air bubbles + rubbed, slightly whitened wear */
.stk__wear { position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(ellipse 7% 5% at 28% 34%, rgba(255,255,255,.55), rgba(255,255,255,.12) 60%, transparent 72%),
    radial-gradient(ellipse 4% 3% at 31% 37%, rgba(0,0,0,.14), transparent 70%),
    radial-gradient(ellipse 5% 4% at 72% 70%, rgba(255,255,255,.5), rgba(255,255,255,.1) 60%, transparent 72%),
    radial-gradient(ellipse 3% 2.4% at 64% 22%, rgba(255,255,255,.45), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -2.2 1.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
  opacity: .55; mix-blend-mode: screen; }
/* peeled corner: the corner is lifted and folded back to show the white paper */
.stk--peel .stk__art { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.1em), calc(100% - 1.1em) 100%, 0 100%); }
.stk--peel::after { content: ""; position: absolute; right: 0; bottom: 0; width: 1.1em; height: 1.1em;
  background: linear-gradient(135deg, #f6f4ee 0%, #dcd8cf 55%, #c9c4b8 100%); clip-path: polygon(0 0, 100% 0, 0 100%);
  box-shadow: 1px 1px 2px rgba(0,0,0,.35); }
/* small tear on one edge */
.stk--tear .stk__art { clip-path: polygon(0 0, 58% 0, 61% .55em, 64% .1em, 67% .5em, 69% 0, 100% 0, 100% 100%, 0 100%); }

/* letter stickers: TAKE A LOOK IN MY TOOLBOX */
.tbx__title { position: absolute; z-index: 2; top: 35%; left: 7%; right: 15%; display: flex; flex-direction: column; align-items: flex-start; gap: .35em; }
.tbx__word { display: flex; flex-wrap: wrap; gap: .14em; align-items: center; }
.tbx__space { width: .45em; }
.lt { display: inline-grid; place-items: center; min-width: 1.15em; height: 1.4em; padding: 0 .16em; background: var(--limewash); color: var(--forest);
  font-family: var(--font-serif); font-size: 1.05em; line-height: 1; border-radius: .14em;
  filter: drop-shadow(.6px 1.3px .8px rgba(0,0,0,.5));
  background-image: radial-gradient(ellipse 18% 12% at 30% 28%, rgba(255,255,255,.8), transparent 70%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .42 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"); }
.tbx__word--lg .lt { font-size: 2.35em; min-width: 1em; height: 1.22em; padding: 0 .1em; }
.lt--0 { transform: rotate(-4deg); }
.lt--1 { transform: rotate(3deg) translateY(.06em); font-family: var(--font-caps); font-weight: 700; text-transform: uppercase; }
.lt--2 { transform: rotate(-1.5deg) translateY(-.05em); background-color: #ece5d3; }
.lt--3 { transform: rotate(5deg); font-family: var(--font-body); font-style: italic; }
.lt--4 { transform: rotate(-2.5deg) translateY(.08em); color: var(--pink-deep); }
.tbx__word--lg .lt--1 { text-transform: none; }

/* placements: left lid */
.stk--patch { top: 3.5%; left: 6%; width: 7.6em; height: 7.6em; transform: rotate(-7deg); filter: drop-shadow(1.5px 2.5px 2px rgba(0,0,0,.55)); }
.stk--patch .stk__art { border-radius: 50%; }
.stk--puffy { top: 4%; left: 52%; width: 3.6em; height: 3.6em; transform: rotate(-14deg); filter: drop-shadow(2px 3px 2px rgba(0,0,0,.5)); }
.stk--camera { top: 17%; left: 38%; width: 8.4em; height: 5.25em; transform: rotate(6deg); }
.stk--duck { top: 60%; left: 7%; width: 6.2em; height: 5.7em; transform: rotate(-8deg); }
.stk--duck .stk__art { overflow: visible; }
.stk--oregon { top: 59%; left: 44%; width: 7.6em; height: 6.1em; transform: rotate(7deg); }
.stk--chicago { top: 79%; left: 12%; width: 8.4em; height: 6.8em; transform: rotate(-4deg); }
.stk--chicago .stk__art, .stk--route .stk__art { border-radius: .8em; }
.stk--chicago .stk__art { border: 3px solid #fff; border-radius: .9em; }
/* placements: right lid */
.stk--route { top: 3.5%; left: 13%; right: 5%; height: auto; transform: rotate(2.5deg); }
.stk--route .stk__art { border: 3px solid #fff; border-radius: 1em; height: auto; }
.stk--route .stk__art > svg { height: auto; }
.stk--crossroad { top: 34%; left: 15%; width: 7.4em; height: 7.4em; transform: rotate(-9deg); }
.stk--crossroad .stk__art { border-radius: 50%; border: 3px solid #fff; background: #fff; }
.stk--milan { top: 36%; right: 9%; width: auto; height: auto; transform: rotate(6deg); }
.stk--milan .stk__art { padding: .6em 1em .5em; background: #fbf8ef; border: 3px solid #fff; border-radius: .25em; text-align: center; color: var(--riad-green-deep); line-height: 1; }
.tbx__milan-i, .tbx__milan-city { font-size: 1.55em; }
.tbx__milan-i svg { width: .9em; height: .9em; }
.stk--zivian { top: 56%; right: 13%; width: 3.6em; height: 4.4em; transform: rotate(-5deg); }
.stk--zivian .stk__art { background: #fff; border-radius: .5em; padding: .45em .55em; }
.stk--zivian .stk__art > img { object-fit: contain; }
.stk--slogan { top: 63%; left: 14%; width: auto; height: auto; transform: rotate(-6deg); }
.stk--slogan .stk__art { padding: .55em 1em; border-radius: 999px; background: #e4ddcb; border: 3px solid #fff; color: var(--forest); font-family: var(--font-script); font-size: 1.3em; white-space: nowrap; }
.stk--open { bottom: 7%; right: 12%; width: 6.8em; height: 6.8em; transform: rotate(-8deg); }
.stk--open .stk__art { display: grid; place-items: center; border-radius: 50%; background: var(--pink-deep); border: 3px solid #fff; color: #fbf8ef; text-align: center;
  font-family: var(--font-caps); font-weight: 700; font-size: .84em; letter-spacing: .16em; text-transform: uppercase; line-height: 1.25; padding: 0 .8em; }
@media (prefers-reduced-motion: no-preference) {
  .tbx:not(.is-open) .stk--open { animation: tbx-pulse2 2.4s ease-in-out infinite; }
}
@keyframes tbx-pulse2 { 0%,100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(-8deg) scale(1.06); } }
/* phones: everything on the lid scales down together */
@media (max-width: 560px) { .tbx__face--out { font-size: 8.6px; } .stk--patch, .stk--chicago, .stk--route .stk__art, .stk--crossroad .stk__art, .stk--milan .stk__art, .stk--slogan .stk__art, .stk--open .stk__art { border-width: 2px; } }
@media (min-width: 561px) and (max-width: 899px) { .tbx__face--out { font-size: 13px; } }
/* v4 tuning */
.stk__wear { opacity: .3; }
.tbx__title { right: 9%; }
.tbx__word--lg { flex-wrap: nowrap; }
.tbx__word--lg .lt { font-size: 2.1em; }
.stk--oregon .stk__art, .stk--camera .stk__art { overflow: visible; }
.stk--slogan { left: 24%; top: 64%; }
@media (max-width: 899px), (hover: none) { .tbx__hw, .tbx__seam { transform: translateZ(2px); } }
@media (max-width: 560px) {
  .tbx__rod { width: 8px; } .tbx__rod--l { left: calc(50% - 11px); } .tbx__rod--r { left: calc(50% + 3px); }
  .tbx__clasp { width: 18px; height: 28px; border-radius: 6px; }
  .tbx__clasp::before { top: 6px; left: 5px; width: 8px; height: 11px; border-radius: 3px; }
  .tbx__clasp::after { top: 9px; width: 14px; height: 6px; }
  .tbx__clasp--tl, .tbx__clasp--bl { left: calc(50% - 36px); } .tbx__clasp--tr, .tbx__clasp--br { left: calc(50% + 18px); }
  .tbx__clasp--tl::after, .tbx__clasp--bl::after { left: 12px; } .tbx__clasp--tr::after, .tbx__clasp--br::after { right: 12px; }
  .tbx__clasp--tl, .tbx__clasp--tr { top: calc(25% - 10px); } .tbx__clasp--bl, .tbx__clasp--br { top: calc(71% - 18px); }
  .stk--oregon { left: 40%; } .stk--camera { left: 32%; }
}

/* ---------- Toolbox v5 ---------- */
/* stickers: keep the air bubbles, drop the speckle */
.stk__wear { opacity: 1; mix-blend-mode: normal;
  background:
    radial-gradient(ellipse 6% 4.5% at 28% 34%, rgba(255,255,255,.5), rgba(255,255,255,.1) 60%, transparent 72%),
    radial-gradient(ellipse 3.5% 2.6% at 30.5% 36.5%, rgba(0,0,0,.12), transparent 70%),
    radial-gradient(ellipse 4.5% 3.4% at 72% 70%, rgba(255,255,255,.45), rgba(255,255,255,.08) 60%, transparent 72%); }
/* natural creases: a bright ridge with a soft shadow beside it */
.stk--crease-a .stk__wear { background-image:
    linear-gradient(118deg, transparent 47.6%, rgba(255,255,255,.5) 48.6%, rgba(255,255,255,.12) 49.6%, rgba(0,0,0,.16) 50.4%, transparent 51.8%),
    radial-gradient(ellipse 6% 4.5% at 28% 34%, rgba(255,255,255,.5), rgba(255,255,255,.1) 60%, transparent 72%),
    radial-gradient(ellipse 4.5% 3.4% at 72% 70%, rgba(255,255,255,.45), rgba(255,255,255,.08) 60%, transparent 72%); }
.stk--crease-b .stk__wear { background-image:
    linear-gradient(64deg, transparent 58.4%, rgba(255,255,255,.45) 59.4%, rgba(0,0,0,.14) 60.6%, transparent 62%),
    linear-gradient(160deg, transparent 22%, rgba(255,255,255,.3) 22.8%, rgba(0,0,0,.1) 23.6%, transparent 24.6%),
    radial-gradient(ellipse 5% 4% at 70% 30%, rgba(255,255,255,.45), transparent 72%); }
.stk--crease-c .stk__wear { background-image:
    linear-gradient(98deg, transparent 63%, rgba(255,255,255,.42) 63.8%, rgba(0,0,0,.14) 64.8%, transparent 66%),
    radial-gradient(ellipse 4% 6% at 22% 50%, rgba(255,255,255,.4), transparent 72%); }

/* the metal: scratches, scuffs and chipped paint */
.tbx__wear { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tbx__face--out::after { opacity: .36; }

/* title: limewash letters straight on the lid, and the toolbox tiles, centered on the left lid */
.tbx__title { left: 0; right: 0; top: 35.5%; align-items: center; gap: .55em; }
.tbx__word--lg { justify-content: center; }
.tbx__line { display: flex; align-items: baseline; justify-content: center; }
.vl { display: inline-block; font-family: var(--font-serif); font-size: 1.62em; line-height: 1; color: var(--limewash);
  text-shadow: 0 1px 0 rgba(0,0,0,.45), .5px 1.2px 1px rgba(0,0,0,.35); }
.vl--1 { transform: translateY(.02em) rotate(-1deg); } .vl--2 { transform: rotate(1.2deg); } .vl--3 { transform: translateY(-.03em) rotate(-.6deg); }
.tbx__line .tbx__space { width: .4em; }

/* new stickers + adjusted spots so nothing overlaps */
.stk--clap { top: 80%; left: 58%; width: 6.6em; height: 5.5em; transform: rotate(5deg); }
.stk--clap .stk__art { overflow: visible; }
.stk--bell { top: 52%; left: 12%; width: 5em; height: 4.2em; transform: rotate(-6deg); }
.stk--bell .stk__art { overflow: visible; }
.stk--stamp { top: auto; bottom: 5%; left: 12%; width: 5.4em; height: 6.75em; transform: rotate(-5deg); }
.stk--slogan { top: 66%; left: 22%; }
.stk--zivian { top: 52%; right: 14%; }
.stk--chicago { left: 8%; }
@media (max-width: 560px) { .stk--clap { left: 56%; } .stk--slogan { left: 18%; } }
.stk--camera { top: 18.5%; left: 44%; } .stk--bell { top: 54%; } .stk--slogan { top: 64.5%; }
.stk--bell { top: 50.5%; left: 10%; }
.stk--bell { top: 53.5%; left: 9%; } .stk--slogan { top: 66%; }
.stk--bell { top: 52.3%; } .stk--slogan { top: 64.6%; } .stk--open { bottom: 5.5%; }
.stk--crossroad { top: 33%; width: 7em; height: 7em; } .stk--bell { top: 53%; width: 4.4em; height: 3.7em; }
.stk--crossroad { top: 34.2%; }
@media (max-width: 560px) {
  .tbx__face--out { font-size: 8px; }
  .stk--camera { top: 19%; left: 30%; }
  .stk--duck { left: 3%; top: 61%; } .stk--oregon { left: 48%; top: 58.5%; }
  .stk--crossroad { left: 4%; top: 34.5%; } .stk--milan { right: 3%; top: 37%; }
  .stk--clap { left: 58%; }
}
@media (max-width: 560px) { .stk--oregon { left: 42%; top: 58%; } }

/* ---------- Toolbox v6: more stickers, some folding over the edges ---------- */
.stk--gh, .stk--vn, .stk--ma, .stk--th { width: 4em; height: 2.67em; }
.stk--gh .stk__art, .stk--vn .stk__art, .stk--ma .stk__art, .stk--th .stk__art { border-radius: 50%; }
.stk--flag-it, .stk--flag-gh, .stk--flag-vn { width: 4.2em; height: 2.8em; }
.stk--flag-it .stk__art, .stk--flag-gh .stk__art, .stk--flag-vn .stk__art { border: 2.5px solid #fff; border-radius: .2em; }
.stk--lolla { width: 7em; height: 3.27em; } .stk--lolla .stk__art { border-radius: 999px; border: 3px solid #fff; }
.stk--wander { width: 7.4em; height: 4em; } .stk--wander .stk__art { border-radius: .5em; border: 3px solid #fff; }
.stk--film { width: 3.6em; height: 5.1em; } .stk--film .stk__art { overflow: visible; }
.stk--gh { top: 26.5%; left: 7%; transform: rotate(-10deg); }
.stk--flag-it { top: 50%; }
.stk--vn { left: 70%; }
.stk--flag-gh { top: 70.5%; left: 37%; transform: rotate(4deg); }
.stk--film { left: 42%; }
.stk--ma { top: 31%; right: 31%; transform: rotate(6deg); }
.stk--flag-vn { top: 45.5%; left: 42%; transform: rotate(-5deg); }
.stk--lolla { top: 46%; }
.stk--th { top: 76%; left: 42%; transform: rotate(-6deg); }
.stk--wander { left: 30%; }
.stk--over-l { left: -.9em; } .stk--over-r { right: -1.2em; } .stk--over-t { top: -.85em; } .stk--over-b { bottom: -1em; top: auto; }
.stk--over-l .stk__art::after, .stk--over-r .stk__art::after, .stk--over-t .stk__art::after, .stk--over-b .stk__art::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.stk--over-l .stk__art::after { background: linear-gradient(90deg, rgba(0,0,0,.42) 0, rgba(0,0,0,.25) calc(.9em - 2px), rgba(255,255,255,.6) .9em, rgba(0,0,0,.12) calc(.9em + 3px), transparent calc(.9em + 7px)); }
.stk--over-r .stk__art::after { background: linear-gradient(270deg, rgba(0,0,0,.42) 0, rgba(0,0,0,.25) calc(1.2em - 2px), rgba(255,255,255,.6) 1.2em, rgba(0,0,0,.12) calc(1.2em + 3px), transparent calc(1.2em + 7px)); }
.stk--over-t .stk__art::after { background: linear-gradient(180deg, rgba(0,0,0,.42) 0, rgba(0,0,0,.25) calc(.85em - 2px), rgba(255,255,255,.6) .85em, rgba(0,0,0,.12) calc(.85em + 3px), transparent calc(.85em + 7px)); }
.stk--over-b .stk__art::after { background: linear-gradient(0deg, rgba(0,0,0,.42) 0, rgba(0,0,0,.25) calc(1em - 2px), rgba(255,255,255,.6) 1em, rgba(0,0,0,.12) calc(1em + 3px), transparent calc(1em + 7px)); }

/* handle halves + clasps live on their own lid now (they swing with it) */
.tbx__hw { position: absolute; inset: 0; z-index: 3; pointer-events: none; transform: translateZ(3px) !important; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: opacity .35s ease; }
.tbx.is-open .tbx__hw { opacity: 0; }
.tbx__hw .tbx__rod, .tbx__hw .tbx__clasp { left: auto; right: auto; }
.tbx__hw--l .tbx__rod { right: 4px; } .tbx__hw--r .tbx__rod { left: 4px; }
.tbx__hw--l .tbx__clasp { right: 33px; } .tbx__hw--r .tbx__clasp { left: 33px; }
.tbx__hw--l .tbx__clasp::after { left: 20px; right: auto; } .tbx__hw--r .tbx__clasp::after { right: 20px; left: auto; }
.tbx__clasp--t { top: calc(25% - 18px); } .tbx__clasp--b { top: calc(71% - 28px); }
@media (max-width: 560px) {
  .tbx__hw--l .tbx__rod { right: 2px; } .tbx__hw--r .tbx__rod { left: 2px; }
  .tbx__hw--l .tbx__clasp { right: 17px; } .tbx__hw--r .tbx__clasp { left: 17px; }
  .tbx__hw--l .tbx__clasp::after { left: 12px; } .tbx__hw--r .tbx__clasp::after { right: 12px; }
  .tbx__clasp--t { top: calc(25% - 10px); } .tbx__clasp--b { top: calc(71% - 18px); }
}
@media (max-width: 560px) { .stk--crossroad { left: 15%; } }
/* Lollapalooza logo sticker (square die-cut), folding over the right edge */
.stk--lolla { width: 6.2em; height: 5.75em; top: 45%; }
.stk--lolla .stk__art { border-radius: .9em; border: 0; background: #fff; padding: .35em; }
.stk--lolla .stk__art > img { object-fit: contain; }
.stk--zivian { top: 49.5%; right: 16%; left: auto; }
.stk--zivian { top: 48%; }

/* =====================================================================
   Toolbox v7: real lip geometry, folded stickers, logo + mini stickers
   ===================================================================== */
/* Lip geometry (the fold script reads these, so folds land on the lip at every size) */
.tbx__lid { --fi-t: 22px; --fi-o: 22px; --fi-seam: 26px; --lip: 6px; --side: 7px; }
@media (max-width: 560px) { .tbx__lid { --fi-t: 13px; --fi-o: 12px; --fi-seam: 15px; --lip: 4px; --side: 5px; } }
/* raised frame, sloped lip face, recessed panel (light from the top left) */
.tbx__lid--l .tbx__face--out::before, .tbx__lid--r .tbx__face--out::before {
  border-radius: 5px; border: var(--lip) solid; box-sizing: border-box;
  border-top-color: rgba(18,28,21,.34); border-left-color: rgba(18,28,21,.26);
  border-bottom-color: rgba(255,255,255,.1); border-right-color: rgba(255,255,255,.07);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), inset 0 0 0 1px rgba(0,0,0,.22), inset 0 3px 6px rgba(0,0,0,.18); }
.tbx__lid--l .tbx__face--out::before { inset: var(--fi-t) var(--fi-seam) var(--fi-t) var(--fi-o); }
.tbx__lid--r .tbx__face--out::before { inset: var(--fi-t) var(--fi-o) var(--fi-t) var(--fi-seam); }

/* folded stickers: their own layer on each lid, above the flat stickers, below the handle */
.tbx__folds { position: absolute; inset: 0; z-index: 2; pointer-events: none; transform: translateZ(1px); backface-visibility: hidden; -webkit-backface-visibility: hidden; font-size: 16px; transition: opacity .35s ease; }
@media (max-width: 560px) { .tbx__folds { font-size: 8px; } }
@media (min-width: 561px) and (max-width: 899px) { .tbx__folds { font-size: 13px; } }
.tbx.is-open .tbx__folds { opacity: 0; }
.fst { position: absolute; inset: 0; pointer-events: none; }
.fst__segs { position: absolute; inset: 0; }
.fseg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.fseg__stk { position: absolute; display: block; pointer-events: auto; }
.fseg__stk .stk__art { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.fseg__stk .stk__art > svg, .fseg__stk .stk__art > img { display: block; width: 100%; height: 100%; }
/* each surface casts its own shadow, so the shadow breaks at the fold */
.fseg--panel { filter: drop-shadow(.8px 1.8px 1.1px rgba(0,0,0,.5)); }
.fseg--frame { filter: drop-shadow(.5px 1.1px .7px rgba(0,0,0,.42)); }
.fseg--lip-t, .fseg--lip-l { filter: brightness(.78) drop-shadow(.2px .5px .4px rgba(0,0,0,.3)); }
.fseg--lip-b, .fseg--lip-r { filter: brightness(1.1) drop-shadow(.2px .5px .4px rgba(0,0,0,.3)); }
.fseg--wrap { filter: brightness(.55); }
.fst__crease { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
@media (hover: hover) {
  .tbx:not(.is-open) .fst:hover .fseg--panel { filter: drop-shadow(1.2px 2.8px 2px rgba(0,0,0,.55)); }
  .tbx:not(.is-open) .fst:hover .fseg--frame { filter: drop-shadow(.9px 2px 1.4px rgba(0,0,0,.5)); }
}
/* the art of each folded sticker */
.fst--patch .stk__art { border-radius: 50%; }
.fst--flagit .stk__art { border: 2.5px solid #fff; border-radius: .2em; }
.fst--film .stk__art { overflow: visible; }
.fst--route .stk__art { border: 3px solid #fff; border-radius: 1em; }
.fst--lolla .stk__art { border-radius: .9em; background: #fff; padding: .35em; }
.fst--lolla .stk__art > img { object-fit: contain; }
.fst--wander .stk__art { border: 3px solid #fff; border-radius: .5em; }

/* logo stickers: a thick white die-cut outline that follows the shape, a soft shadow, and a gloss sweep */
.stk--logo { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(1.5px 1.5px 0 #fff) drop-shadow(-1.5px -1.5px 0 #fff) drop-shadow(.7px 1.6px 1.1px rgba(0,0,0,.5)); }
.stk--logo .stk__art { overflow: visible; }
.stk--logo .stk__art > img { object-fit: contain; }
.stk__sheen { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,0) 28%, rgba(255,255,255,.32) 40%, rgba(255,255,255,0) 50%),
    radial-gradient(ellipse 6% 4.5% at 28% 34%, rgba(255,255,255,.5), transparent 72%), radial-gradient(ellipse 4.5% 3.4% at 72% 70%, rgba(255,255,255,.45), transparent 72%);
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.stk--dg { top: 26%; left: 6%; width: 4.4em; height: 4.4em; transform: rotate(-9deg); }
.stk--akpsi { top: 67.5%; left: 62%; width: 4.8em; height: 3.8em; transform: rotate(6deg); }
.stk--play { top: 31%; right: 26%; width: 4.8em; height: 3.2em; transform: rotate(-6deg); }
.stk--postcard { top: 70.5%; left: 3%; width: 8.4em; height: 5.6em; transform: rotate(8deg); }
.stk--matchbook { top: 68%; left: 36%; width: 2.8em; height: 3.8em; transform: rotate(-10deg); }
.stk--afsp { top: 55.5%; right: 22%; width: 4.2em; height: 4.2em; transform: rotate(10deg); }

/* mini stickers: about a third of the size, thinner white edge, lighter shadow */
.stk--mini { width: 2.5em; height: 2.5em; filter: drop-shadow(1.2px 0 0 #fff) drop-shadow(-1.2px 0 0 #fff) drop-shadow(0 1.2px 0 #fff) drop-shadow(0 -1.2px 0 #fff) drop-shadow(.4px .9px .6px rgba(0,0,0,.35)); }
.stk--mini .stk__art { overflow: visible; }
.stk--m1 { top: 12%; left: 38%; transform: rotate(10deg); }
.stk--m2 { top: 30%; left: 27%; transform: rotate(-12deg); }
.stk--m3 { top: 54.5%; left: 30%; }
.stk--m4 { top: 29.5%; left: 5%; transform: rotate(-6deg); }
.stk--m5 { top: 60%; right: 6%; transform: rotate(8deg); }
.stk--m6 { top: 47%; left: 5%; transform: rotate(-10deg); }
.stk--m7 { top: 27.5%; right: 4%; transform: rotate(12deg); }

/* clicks reach the box from anywhere; the open button stays for keyboards and screen readers */
.tbx__toggle { inset: auto; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); transform: none; }
.tbx__box:has(.tbx__toggle:focus-visible) { outline: 3px solid var(--forest); outline-offset: 6px; }
.tbx__face--out .stk { pointer-events: auto; cursor: pointer; }

/* hover: a flat sticker lifts a little, with a bigger shadow and a corner starting to peel */
@media (hover: hover) {
  .tbx:not(.is-open) .tbx__face--out .stk { transition: scale .2s ease, filter .2s ease; }
  .tbx:not(.is-open) .tbx__face--out .stk:hover { scale: 1.05; z-index: 6; filter: drop-shadow(.6px 1.4px .9px rgba(0,0,0,.5)) drop-shadow(2px 6px 6px rgba(0,0,0,.3)); }
  .tbx:not(.is-open) .tbx__face--out .stk--logo:hover { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(1.5px 1.5px 0 #fff) drop-shadow(-1.5px -1.5px 0 #fff) drop-shadow(2px 6px 6px rgba(0,0,0,.38)); }
  .tbx:not(.is-open) .tbx__face--out .stk--mini:hover { filter: drop-shadow(1.2px 0 0 #fff) drop-shadow(-1.2px 0 0 #fff) drop-shadow(0 1.2px 0 #fff) drop-shadow(0 -1.2px 0 #fff) drop-shadow(1.5px 4px 4px rgba(0,0,0,.32)); }
  .tbx:not(.is-open) .tbx__face--out .stk:hover::before { content: ""; position: absolute; right: -1px; bottom: -1px; width: .9em; height: .9em; z-index: 2;
    background: linear-gradient(135deg, #f4f1ea 0%, #d8d3c8 60%, #c2bcae 100%); clip-path: polygon(100% 0, 100% 100%, 0 100%); box-shadow: -1px -1px 2px rgba(0,0,0,.3); }
}
/* stronger lip + fold contrast so the bend reads at normal size */
.tbx__lid--l .tbx__face--out::before, .tbx__lid--r .tbx__face--out::before {
  border-top-color: rgba(14,22,17,.46); border-left-color: rgba(14,22,17,.36); border-bottom-color: rgba(255,255,255,.15); border-right-color: rgba(255,255,255,.11); }
.fseg--lip-t, .fseg--lip-l { filter: brightness(.68) drop-shadow(.2px .5px .4px rgba(0,0,0,.3)); }
.fseg--lip-b, .fseg--lip-r { filter: brightness(1.18) drop-shadow(.2px .5px .4px rgba(0,0,0,.3)); }
.fseg--wrap { filter: brightness(.48); }

/* v8: Zivian and the bell swap places; logo sizes match each image's real shape */
.stk--bell { top: 48%; right: 16%; left: auto; width: 4.4em; height: 3.7em; }
.stk--zivian { top: 53%; left: 9%; right: auto; width: 3.6em; height: 4.4em; }
.stk--dg { width: 4.6em; height: 3.66em; }
.stk--akpsi { width: 5.2em; height: 4.06em; }
.stk--play { width: 5.6em; height: 2.6em; }
.stk--postcard { width: 8.6em; height: 5.42em; }
.stk--matchbook { width: 3.8em; height: 2.45em; }
.stk--afsp { width: 4.2em; height: 4.2em; }
.stk--dg .stk__art > img, .stk--play .stk__art > img, .stk--postcard .stk__art > img, .stk--matchbook .stk__art > img { object-fit: fill; }
.stk--postcard { top: 73.5%; left: 16%; width: 7.6em; height: 4.79em; } .stk--matchbook { top: 70.5%; left: 44%; }
.stk--postcard { top: 68.6%; } .stk--matchbook { top: 66.2%; left: 47%; } .stk--akpsi { top: 73.5%; left: 57%; }
.stk--slogan { z-index: 3; } .stk--postcard { top: 70.5%; } .stk--matchbook { top: 69%; left: 48%; }
.stk--slogan { top: 57.5%; left: 20%; } .stk--postcard { top: 67%; left: 15%; } .stk--matchbook { top: 65.5%; left: 47%; z-index: 2; }
.stk--afsp { top: 64.5%; right: 6%; } .stk--m5 { top: 50.5%; right: 37%; }
.stk--matchbook { top: 69.5%; left: 43%; z-index: 2; }
/* v9: slogan takes the patch's old spot (top left); Delta Gamma + anchor move up */
.stk--slogan { top: 4.5%; left: 5%; right: auto; z-index: 1; }
.stk--dg { top: 21.5%; }
.stk--m2 { top: 24.5%; }
.stk--puffy { left: 68%; top: 3.5%; }
@media (max-width: 560px) { .stk--camera { left: 38%; top: 18%; } .stk--dg { left: 4%; } }

/* Behind the numbers: fills the screen, with more breathing room between Problem / Solution / Outcome */
@media (min-width: 900px) {
  #work { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 96px; padding-bottom: 72px; box-sizing: border-box; }
  #work .section-head { margin-bottom: 40px; }
  #work .case-grid { gap: 28px; }
  #work .case-card { padding: 30px 28px 26px; display: flex; flex-direction: column; }
  #work .case-card__title { margin-bottom: 22px; }
  #work .pso--compact { gap: 22px; }
  #work .pso--compact > div { padding-top: 16px; border-top: 1px solid rgba(245,241,230,.22); }
  #work .pso--compact > div:first-child { padding-top: 0; border-top: 0; }
  #work .pso dt { margin-bottom: 6px; }
  #work .pso--compact dd { font-size: 16px; line-height: 1.55; }
  #work .case-card__more { margin-top: auto; padding-top: 26px; }
  #work .section-more { margin-top: 34px; }
}
/* less space between Explore more and Let's connect */
#explore { padding-bottom: 36px; }
#explore + .contact, .contact { padding-top: 40px; }
/* Crossroad button: top right, in line with the Creative work heading */
.creative__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.creative__head .section-head { margin-bottom: 22px; }
.creative__head .creative__cta { margin: 0 0 26px; }
/* align the button's bottom with the bottom of the "Creative work" heading */
.creative__head { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: end; margin-bottom: 22px; }
.creative__head .section-head { display: contents; }
.creative__head .section-title { grid-column: 1; grid-row: 1; margin-bottom: 0; }
.creative__head .creative__cta { grid-column: 2; grid-row: 1; margin: 0; align-self: end; }
.creative__head .section-sub { grid-column: 1 / -1; grid-row: 2; }
@media (max-width: 640px) { .creative__head { grid-template-columns: 1fr; } .creative__head .creative__cta { grid-column: 1; grid-row: 3; margin-top: 14px; justify-self: start; } }
.creative__head .creative__cta { margin-bottom: calc(clamp(2.3rem, 7vw, 3.4rem) * .15); }
@media (max-width: 640px) { .creative__head .creative__cta { margin-bottom: 0; } }
/* button top lines up with the top of the lowercase letters (v, w) in "Creative work" */
.creative__head .section-title { align-self: start; }
.creative__head .creative__cta { align-self: start; margin: calc(clamp(2.3rem, 7vw, 3.4rem) * .393) 0 0; }
@media (max-width: 640px) { .creative__head .creative__cta { margin: 14px 0 0; } }
/* the button no longer adds height to the heading row, so the subtitle and videos stay put */
@media (min-width: 641px) {
  .creative__head .creative__cta { position: relative; height: 0; align-self: start; margin: 0; }
  .creative__head .creative__cta .btn { position: absolute; right: 0; top: calc(clamp(2.3rem, 7vw, 3.4rem) * .393); white-space: nowrap; }
}
.contact .section-title { margin-bottom: 20px; }

/* =====================================================================
   Toolbox fits one screen on laptops: everything scales from one width
   (--tw), so the lid composition and the compartments shrink together.
   ===================================================================== */
@media (min-width: 900px) {
  .tbx-section { padding-top: 56px; padding-bottom: 56px; }
  .tbx { --tw: min(720px, 70vw, calc((100svh - 270px) * 1.015)); }
  .tbx__box { width: var(--tw); max-width: none; font-size: calc(var(--tw) / 45); padding: .875em; }
  .tbx__face--out, .tbx__folds { font-size: calc(var(--tw) / 45); }
  .tbx__inside { gap: .625em; }
  .tbx__comp { padding: 1em .875em 1.125em; column-gap: .75em; }
  .tbx__comp-title { font-size: .875em; padding: .19em .875em; margin-bottom: .75em; }
  .tbx__bin { padding: .625em 0 .75em; }
  .tbx__bin-title { font-size: .8125em; margin: 0 0 .44em; }
  .tbx__items { gap: .31em; }
  .tbx__items li { font-size: .8125em; padding: .125em .5625em; }
  .tbx__note { font-size: 1.375em; }
  .tbx__cta { margin-top: 28px; }
}
/* toolbox takes up almost a full screen (the button can sit below the fold) */
@media (min-width: 900px) {
  .tbx-section { padding-top: 40px; }
  .tbx { --tw: min(860px, 72vw, calc((100svh - 130px) * 1.04)); }
}
/* the toolbox gets its own screen; the button sits just below the fold */
@media (min-width: 900px) {
  .tbx-section { padding-top: 0; }
  .tbx { min-height: calc(100svh - 60px); display: flex; align-items: center; justify-content: center; }
  .tbx__cta { margin-top: 12px; }
}
/* handle clasps: wire and slot centered, so the top and bottom clasps mirror each other */
.tbx__clasp::before { top: 14px; }
.tbx__clasp::after { top: 18px; }
@media (max-width: 560px) {
  .tbx__clasp::before { top: 8.5px; }
  .tbx__clasp::after { top: 11px; }
}
/* center the handle on the lid: same distance from the top and bottom */
.tbx__rod { top: 27%; bottom: 27%; }
.tbx__clasp--t { top: calc(27% - 18px); }
.tbx__clasp--b { top: calc(73% - 28px); }
@media (max-width: 560px) { .tbx__clasp--t { top: calc(27% - 10px); } .tbx__clasp--b { top: calc(73% - 18px); } }
/* About lands exactly under the header (no 8px gap), so the whole section shows */
#about { scroll-margin-top: -8px; }
