/* ==========================================================================
   Taylor Petersen — portfolio
   Bold & editorial: Archivo (heavy, uppercase headlines and text)
   with Instrument Serif italic for emphasis. Black, white, one red-orange.
   ========================================================================== */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #0d0d0d;
  --ink-2: #3d3d3a;
  --muted: #76746e;
  --line: #d9d6ce;
  --accent: #a3174f;
  --accent-ink: #84113f;
  --accent-soft: #f6e0e9;
  --accent-bright: #ec5b93;
  --good: #22a447;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 600; margin: 0;
  letter-spacing: -.02em; line-height: .95; text-wrap: balance; color: inherit;
}
h1 em, h2 em, h3 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: -.01em; color: var(--accent);
}
p { margin: 0 0 1em; }

.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 12px; font-weight: 700; font-size: 14px;
}
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tk { color: var(--accent-ink); background: var(--accent-soft); padding: 0 .3em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 13px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--accent); }

/* ---------- Today bar ---------- */
.today { background: var(--ink); color: #fff; font-size: 13px; }
.today .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.today__date { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75); }
.today__date b { font-weight: 700; color: #fff; }
.today .ele-trigger { color: #fff; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .02em; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(34,164,71,.25); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(246,245,241,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; }
.brand {
  font: 700 20px/1 var(--display); font-stretch: 112%; letter-spacing: -.01em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand__dot { color: var(--accent); }
.brand__short { display: none; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 12px; position: relative;
}
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.nav__cta { background: var(--ink); color: #fff; margin-left: 8px; padding: 10px 16px; }
.nav a.nav__cta::after { display: none; }
.nav a.nav__cta:hover { background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 14px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
  padding: 17px 24px; text-decoration: none; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn::after { content: "→"; font-weight: 400; transition: transform .2s ease; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover::after { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section + .section { border-top: 2px solid var(--ink); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(40px, 6.4vw, 96px); text-transform: uppercase; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 34ch; font-size: 17px; }

/* ---------- Home hero ---------- */
.mast { padding-block: clamp(40px, 6vw, 80px) 0; }
.mast h1 {
  font-size: clamp(46px, 8.6vw, 140px); line-height: .88; letter-spacing: -.035em;
  text-transform: uppercase; max-width: 16ch;
}
.mast h1 em { font-size: 1.04em; }
.mast__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px);
  align-items: end; margin-top: clamp(32px, 5vw, 64px);
}
.mast__lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 34em; margin-bottom: 30px; }
.mast__photo { position: relative; }
.mast__photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 62% 25%; }
.mast__badge {
  position: absolute; left: 0; bottom: 0; background: var(--accent); color: #fff;
  padding: 16px 20px; font: 700 13px/1.35 var(--sans); letter-spacing: .06em; text-transform: uppercase;
}
.mast__badge b { display: block; font: 700 34px/1 var(--display); letter-spacing: -.02em; text-transform: none; }

/* Ticker */
.ticker { background: var(--ink); color: #fff; overflow: hidden; border-block: 2px solid var(--ink); margin-top: clamp(48px, 7vw, 96px); }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker__track span {
  display: inline-flex; align-items: center; gap: 28px; padding: 18px 14px;
  font: 600 clamp(18px, 2vw, 26px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
}
.ticker__track span::after { content: "●"; color: var(--accent); font-size: .6em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Strength rows ---------- */
.pillars { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.pillars li {
  display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 40px;
  padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); align-items: start;
}
.pillars__num { font: 800 15px/1.6 var(--sans); color: var(--accent); letter-spacing: .08em; }
.pillars h3 { font-size: clamp(24px, 2.6vw, 38px); text-transform: uppercase; }
.pillars p { margin: 0; color: var(--ink-2); font-size: 17px; }

.bigquote {
  margin: clamp(48px, 7vw, 96px) 0 0; max-width: 22em;
  font: italic 400 clamp(30px, 4.2vw, 60px)/1.08 var(--serif); letter-spacing: -.01em;
}
.bigquote cite { display: block; margin-top: 18px; font: 700 13px/1.5 var(--sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.bigquote cite::before { content: "— "; color: var(--accent); }

/* ---------- Project showcase ---------- */
.projects { display: grid; gap: clamp(56px, 8vw, 112px); }
.project { display: block; text-decoration: none; color: inherit; }
.project:hover { color: inherit; }
.project__head { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 16px 24px; align-items: end; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.project__num { font: 800 15px/1 var(--sans); color: var(--accent); letter-spacing: .08em; padding-bottom: 6px; }
.project h3 { font-size: clamp(32px, 5.2vw, 76px); text-transform: uppercase; transition: color .25s ease; }
.project:hover h3 { color: var(--accent); }
.project__tags { font: 700 12.5px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 6px; text-align: right; }
.project__img { overflow: hidden; background: #fff; margin-top: 20px; }
.project__img img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.project__img--contain img { object-fit: contain; }
.project:hover .project__img img { transform: scale(1.025); }
.project__foot { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto auto; gap: 16px 40px; align-items: baseline; padding-top: 18px; }
.project__foot p { margin: 0; color: var(--ink-2); grid-column: 2; max-width: 40em; }
.project__stat { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.project__stat strong { font: 700 32px/1 var(--display); color: var(--ink); letter-spacing: -.02em; }
.project__go { font: 800 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.project__go::after { content: " →"; color: var(--accent); }

/* ---------- More projects ---------- */
.mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.mini figure { margin: 0; }
.mini img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #fff; }
.mini figcaption { margin-top: 14px; border-top: 2px solid var(--ink); padding-top: 12px; }
.mini h3 { font-size: 20px; line-height: 1.05; text-transform: uppercase; }
.mini p { margin: 6px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.mini q { display: block; margin-top: 6px; font-style: italic; color: var(--ink-2); }
.mini__link { display: block; text-decoration: none; color: inherit; }
.mini__link:hover { color: inherit; }
.mini__link:hover h3 { color: var(--accent); }
.mini__link img { transition: transform .5s ease; }
.mini__link:hover img { transform: scale(1.02); }
.card__more { display: inline-block; margin-top: 10px; font: 800 12.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.card__more::after { content: ""; }

/* ---------- Inverted (dark) band ---------- */
.invert { background: var(--ink); color: #fff; }
.invert + .section, .section + .invert { border-top: 0; }
.invert .eyebrow { color: #fff; }
.invert p { color: rgba(255,255,255,.78); }
.invert .btn--ghost { color: #fff; border-color: #fff; }
.invert .btn--ghost:hover { background: #fff; color: var(--ink); }
.invert .bigquote cite { color: rgba(255,255,255,.7); }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split h2 { font-size: clamp(40px, 5.6vw, 84px); text-transform: uppercase; margin-bottom: 28px; }
.split .bigquote { font-size: clamp(24px, 2.6vw, 34px); margin-top: 36px; }

/* ---------- Generic quote ---------- */
.quote {
  margin: 0; padding: 0 0 0 22px; border-left: 4px solid var(--accent);
  font: italic 400 clamp(24px, 2.6vw, 34px)/1.15 var(--serif); color: inherit;
}
.quote cite { display: block; margin-top: 12px; font: 700 12.5px/1.5 var(--sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Page heroes (About / Contact) ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px); border-bottom: 2px solid var(--ink); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero h1 { font-size: clamp(48px, 8vw, 128px); line-height: .88; letter-spacing: -.035em; text-transform: uppercase; margin-bottom: 28px; }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 36em; margin-bottom: 30px; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero + section:not(.section) { padding-top: clamp(32px, 4vw, 56px); }

/* ---------- Case study pages ---------- */
.back { display: inline-flex; font: 800 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; margin-bottom: 32px; }
.case-head { padding-block: clamp(40px, 6vw, 80px) 36px; }
.case-head h1 { font-size: clamp(44px, 7.6vw, 120px); line-height: .9; letter-spacing: -.035em; text-transform: uppercase; max-width: 14ch; margin-bottom: 28px; }
.case-head .lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); max-width: 40em; margin: 0; }

.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px 32px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding-block: 22px; margin: 0 0 clamp(32px, 5vw, 56px); }
.meta dt { font: 800 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.meta dd { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 500; }

.hero-img { margin: 0 0 clamp(48px, 7vw, 96px); background: #fff; }
.hero-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.hero-img--cover { margin-inline: calc(50% - 50vw); }
.hero-img--cover img { aspect-ratio: 21 / 9; object-fit: cover; }

.case-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(36px, 7vw, 112px); align-items: start; }
.prose { max-width: 68ch; counter-reset: step; }
.prose h2 { font-size: clamp(30px, 3.4vw, 46px); text-transform: uppercase; margin: 56px 0 18px; counter-increment: step; }
.prose h2::before { content: "0" counter(step); display: block; font: 800 14px/1 var(--sans); letter-spacing: .1em; color: var(--accent); margin-bottom: 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); font-size: 18px; line-height: 1.65; }
.prose .quote { margin: 40px 0; }

.aside { position: sticky; top: 96px; display: grid; gap: 20px; }
.panel { background: var(--surface); border: 2px solid var(--ink); padding: 24px; }
.panel h3 { font: 800 12.5px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 16px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.stats li + li { border-top: 1px solid var(--line); padding-top: 18px; }
.stats strong { display: block; font: 700 44px/1 var(--display); letter-spacing: -.03em; }
.stats span { font-size: 14px; color: var(--ink-2); line-height: 1.45; display: block; margin-top: 6px; }
.panel .quote { font-size: 22px; border-left-width: 3px; padding-left: 14px; }
.panel .quote cite { font-size: 11.5px; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(56px, 8vw, 104px); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.45; border-top: 1px solid var(--line); padding-top: 10px; }

.next {
  display: flex; justify-content: space-between; align-items: end; gap: 20px;
  margin-top: clamp(64px, 9vw, 120px); padding: 32px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  text-decoration: none;
}
.next:hover { color: var(--ink); }
.next small { display: block; font: 800 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.next span span { display: block; font: 600 clamp(30px, 5vw, 72px)/.92 var(--display); text-transform: uppercase; letter-spacing: -.03em; }
.next:hover span span { color: var(--accent); }
.next b { font-size: clamp(36px, 5vw, 64px); font-weight: 400; line-height: 1; transition: transform .25s ease; }
.next:hover b { transform: translateX(8px); color: var(--accent); }

/* ---------- About page ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline time { font: 700 13px/1.6 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.timeline b { display: block; font: 600 clamp(20px, 2vw, 26px)/1.15 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.timeline span { color: var(--ink-2); font-size: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 36px; padding: 0; }
.chips li { border: 2px solid var(--ink); padding: 8px 14px; font: 700 14px/1.2 var(--sans); }
.skill-group h3 { font: 800 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }

.facts { margin: 0; display: grid; gap: 16px; }
.facts dt { font: 800 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 16px; font-weight: 500; line-height: 1.45; }

.recs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.rec { margin: 0; display: flex; flex-direction: column; padding: 32px 28px; }
.rec + .rec { border-left: 1px solid var(--line); }
.rec blockquote { margin: 0 0 24px; font: italic 400 clamp(22px, 2vw, 27px)/1.2 var(--serif); }
.rec blockquote::before { content: "“"; display: block; font: 700 64px/.6 var(--display); color: var(--accent); margin-bottom: 14px; font-style: normal; }
.rec figcaption { margin-top: auto; font-size: 14px; line-height: 1.45; color: var(--muted); }
.rec figcaption b { display: block; font: 800 14px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.form { background: var(--surface); border: 2px solid var(--ink); padding: clamp(22px, 4vw, 40px); }
.field { margin-bottom: 20px; }
.field label { display: block; font: 800 12.5px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font: 400 17px/1.5 var(--sans); color: var(--ink);
  background: var(--bg); border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  padding: 12px 14px; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--accent); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-note { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.form-status { margin: 16px 0 0; padding: 12px 14px; background: var(--accent-soft); border-left: 4px solid var(--accent); font-size: 15px; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list b { display: block; font: 800 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list a, .contact-list span { font-size: 17px; font-weight: 600; word-break: break-word; }

/* ---------- 404 ---------- */
.lost { text-align: center; max-width: 820px; margin: 0 auto; padding-block: clamp(48px, 8vw, 104px); }
.lost .code { font: 700 clamp(110px, 22vw, 260px)/.8 var(--display); letter-spacing: -.06em; margin: 0 0 20px; }
.lost .code span { color: var(--accent); font-family: var(--serif); font-style: italic; font-weight: 400; }
.lost h1 { font-size: clamp(32px, 5vw, 64px); text-transform: uppercase; margin-bottom: 18px; }
.lost p { color: var(--ink-2); }
.lost img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 40% 55%; margin: 32px 0; }
.lost .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
main { padding-bottom: clamp(64px, 9vw, 128px); }
main:has(> .invert:last-child) { padding-bottom: 0; }
.site-footer { background: var(--ink); color: #fff; border-top: 1px solid rgba(255,255,255,.14); padding-block: clamp(48px, 7vw, 88px) calc(20px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.footer__cta { display: inline-block; text-decoration: none; font: 600 clamp(36px, 6vw, 88px)/.92 var(--display); text-transform: uppercase; letter-spacing: -.03em; }
.footer__cta em { font-family: var(--serif); font-weight: 400; font-style: italic; text-transform: none; color: var(--accent); }
.footer__cta span { display: inline-block; margin-left: .2em; color: var(--accent); transition: transform .25s ease; }
.footer__cta:hover { color: #fff; }
.footer__cta:hover span { transform: translateX(10px); }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 72px); padding-top: 20px; border-top: 1px solid rgba(255,255,255,.25); font-size: 14px; color: rgba(255,255,255,.7); }
.footer__row nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__row a { text-decoration: none; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: #fff; }
.footer__row a:hover { color: var(--accent); }
.footer__mark { margin: clamp(28px, 4vw, 48px) 0 0; font: 700 calc((min(100vw, 1320px) - 2 * var(--gutter)) / 11.4)/.8 var(--display); font-stretch: 112%; letter-spacing: -.05em; text-transform: uppercase; white-space: nowrap; color: #fff; }
.footer__mark span { color: var(--accent); }

/* ==========================================================================
   The elephant
   ========================================================================== */
.ele-trigger {
  appearance: none; border: 0; background: none; padding: 2px; cursor: pointer;
  color: var(--ink-2); display: inline-flex; vertical-align: middle;
}
.ele-trigger svg { width: 22px; height: auto; transition: transform .25s ease, color .25s ease; }
.ele-trigger:hover svg, .ele-trigger:focus-visible svg { transform: rotate(-10deg) scale(1.2); color: var(--accent); }

.parade {
  position: fixed; left: 0; z-index: 80;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 4px);
  width: clamp(96px, 12vw, 140px);
  pointer-events: none; will-change: transform;
}
.parade svg { width: 100%; height: auto; display: block; color: var(--ink); overflow: visible; animation: bob .46s ease-in-out infinite alternate; }
.parade .leg { transform-box: fill-box; transform-origin: 50% 0; }
.parade .leg-a { animation: step .46s ease-in-out infinite alternate; }
.parade .leg-b { animation: step .46s ease-in-out infinite alternate-reverse; }
.parade .trunk { transform-box: fill-box; transform-origin: 0 0; animation: sway .92s ease-in-out infinite alternate; }
.parade .tail { transform-box: fill-box; transform-origin: 100% 0; animation: sway .6s ease-in-out infinite alternate-reverse; }
.parade.trumpet .trunk { animation: toot .9s ease-out forwards; }
@keyframes step { from { transform: rotate(-13deg); } to { transform: rotate(13deg); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@keyframes sway { from { transform: rotate(-6deg); } to { transform: rotate(8deg); } }
@keyframes toot { 0% { transform: rotate(0); } 40%, 100% { transform: rotate(-62deg); } }

.parade__bubble {
  position: absolute; bottom: 92%; left: 62%; white-space: nowrap;
  background: var(--accent); color: #fff;
  padding: 7px 12px; font: 800 13px var(--sans); letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; transform: scale(.6); transform-origin: 0 100%;
  transition: opacity .2s ease, transform .25s cubic-bezier(.3,1.6,.5,1);
}
.parade.trumpet .parade__bubble { opacity: 1; transform: scale(1); }

.footprint {
  position: fixed; z-index: 79; pointer-events: none;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 3px);
  width: 15px; height: 8px; border-radius: 50%;
  background: rgba(13,13,13,.55);
  animation: inkfade 5.5s ease-in forwards;
}
@keyframes inkfade { 0% { opacity: .8; } 100% { opacity: 0; } }

.bulletin {
  position: fixed; left: 50%; z-index: 90;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  transform: translate(-50%, 180%);
  width: min(440px, calc(100vw - 32px));
  background: var(--surface); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  padding: 16px 44px 16px 18px;
  transition: transform .45s cubic-bezier(.2,1.3,.4,1);
}
.bulletin.is-in { transform: translate(-50%, 0); }
.bulletin b { display: block; font: 800 12.5px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 4px; }
.bulletin p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.bulletin button { position: absolute; top: 8px; right: 10px; appearance: none; background: none; border: 0; cursor: pointer; font-size: 22px; line-height: 1; color: var(--muted); padding: 4px 6px; }

@media (prefers-reduced-motion: reduce) {
  .parade svg, .parade .leg, .parade .trunk, .parade .tail, .ticker__track { animation: none !important; }
  .bulletin, .project__img img, .mini__link img, .btn, .nav a::after { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .case-body { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
  .mini { grid-template-columns: 1fr 1fr; }
  .recs { grid-template-columns: 1fr; }
  .rec + .rec { border-left: 0; border-top: 1px solid var(--line); }
  .pillars li { grid-template-columns: 60px minmax(0, 1fr); }
  .pillars li p { grid-column: 2; }
  .project__head, .project__foot { grid-template-columns: 60px minmax(0, 1fr); }
  .project__tags { grid-column: 2; text-align: left; padding-bottom: 0; }
  .project__foot p, .project__stat, .project__go { grid-column: 2; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .today .status { display: none; }
  .brand { font-size: 16px; }
  .nav a { padding: 9px 8px; font-size: 12.5px; letter-spacing: .06em; }
  .nav a.nav__cta { margin-left: 4px; padding: 9px 12px; }
  .mast__grid, .hero .wrap, .split, .contact-grid, .aside, .field-row { grid-template-columns: 1fr; }
  .mast__photo { order: -1; }
  .section-head h2 { font-size: clamp(28px, 8.4vw, 48px); }
  .case-head h1, .hero h1 { font-size: clamp(32px, 9.6vw, 60px); }
  .project h3 { font-size: clamp(26px, 8vw, 40px); }
  .hero__photo { max-width: 460px; }
  .hero__photo img { aspect-ratio: 5 / 4; object-position: 60% 25%; }
  .pillars li, .project__head, .project__foot { grid-template-columns: 1fr; gap: 10px; }
  .pillars li p, .project__tags, .project__foot p, .project__stat, .project__go { grid-column: 1; }
  .project__num { padding-bottom: 0; }
  .project__img img { aspect-ratio: 4 / 3; }
  .hero-img--cover img { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 14px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .split img { aspect-ratio: 5 / 4; }
  .mini { gap: 26px 14px; }
  .mini h3 { font-size: 16px; }
  .next b { display: none; }
}

@media (max-width: 480px) {
  .site-header .wrap { gap: 8px; }
  .brand { font-size: 20px; }
  .brand__full { display: none; }
  .brand__short { display: inline; }
  .nav a { font-size: 11.5px; letter-spacing: .05em; padding: 8px 6px; }
  .nav a::after { left: 6px; right: 6px; }
  .nav a.nav__cta { padding: 8px 10px; margin-left: 2px; }
}

/* ==========================================================================
   The journey: a scroll story from Seattle to Austin
   ========================================================================== */
.journey { border-top: 2px solid var(--ink); }
.journey__intro { padding-block: clamp(64px, 9vw, 128px) clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.journey__intro h2 { font-size: clamp(42px, 6.6vw, 104px); text-transform: uppercase; }
.journey__intro p { color: var(--ink-2); font-size: 18px; }
.journey__hint { display: inline-flex; align-items: center; gap: 10px; font: 800 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.journey__hint::after { content: "↓"; color: var(--accent); font-size: 16px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

.journey__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 2px solid var(--ink); }

/* The sticky "departures board" */
.jpanel {
  --c: #1e5b4f;
  position: sticky; top: 66px; height: calc(100vh - 66px); height: calc(100svh - 66px);
  background: var(--c); color: #fff; overflow: hidden;
  display: flex; flex-direction: column; padding: clamp(24px, 3vw, 44px);
  transition: background-color .7s ease;
}
.jpanel::before { /* soft grid, like a map */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.jpanel > * { position: relative; }
.jpanel__top { display: flex; justify-content: space-between; gap: 12px; font: 700 12.5px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.jpanel__main { margin-block: auto; }
.jpanel__code { font: 700 clamp(84px, 13vw, 200px)/.8 var(--display); font-stretch: 112%; letter-spacing: -.05em; opacity: .16; margin: 0 0 -.18em; }
.jpanel__city { font: 700 clamp(44px, 6.4vw, 104px)/.88 var(--display); letter-spacing: -.035em; text-transform: uppercase; margin: 0; }
.jpanel__country { font: italic 400 clamp(24px, 2.6vw, 38px)/1.1 var(--serif); margin: 8px 0 0; }
.jpanel__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 20px; font: 600 13.5px/1.4 var(--sans); letter-spacing: .04em; opacity: .85; }
.jpanel__swap { transition: opacity .35s ease, transform .35s ease; }
.jpanel.is-swapping .jpanel__swap { opacity: 0; transform: translateY(14px); }

/* Flight arc between this stop and the next */
.jarc { width: 100%; height: auto; margin-top: 18px; overflow: visible; }
.jarc path { fill: none; stroke: rgba(255,255,255,.4); stroke-width: 2; stroke-dasharray: 6 8; }
.jarc .jarc__done { stroke: #fff; stroke-dasharray: none; }
.jarc text { fill: #fff; font: 800 15px var(--sans); letter-spacing: .1em; }
.jarc .jarc__plane { font-size: 22px; }

/* Route with the elephant walking it */
.jroute { position: relative; margin-top: 26px; padding-top: 34px; }
.jroute__line { position: absolute; left: 0; right: 0; top: 44px; height: 2px; background: rgba(255,255,255,.3); }
.jroute__fill { position: absolute; left: 0; top: 44px; height: 2px; background: #fff; width: 0; }
.jroute ol { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; }
.jroute li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 800 11px/1 var(--sans); letter-spacing: .08em; opacity: .55; transition: opacity .3s ease; width: 0; }
.jroute li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); border: 2px solid #fff; transition: background .3s ease, transform .3s ease; }
.jroute li.is-past { opacity: .85; }
.jroute li.is-past::before { background: #fff; }
.jroute li.is-here { opacity: 1; }
.jroute li.is-here::before { background: #fff; transform: scale(1.4); }
.jroute__ele { position: absolute; top: 0; left: 0; width: 46px; transform: translateX(-50%); color: #fff; transition: left .12s linear; }
.jroute__ele svg { width: 100%; height: auto; display: block; }
.jpanel.is-moving .jroute__ele svg .leg-a { animation: step .46s ease-in-out infinite alternate; }
.jpanel.is-moving .jroute__ele svg .leg-b { animation: step .46s ease-in-out infinite alternate-reverse; }
.jroute__ele svg .leg { transform-box: fill-box; transform-origin: 50% 0; }

/* Chapters */
.jchapters { min-width: 0; }
.chapter { --c: #1e5b4f; min-height: 92vh; padding: clamp(48px, 7vw, 104px) clamp(24px, 4vw, 64px); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.chapter:last-child { border-bottom: 0; }
.chapter__when { display: inline-flex; align-items: center; gap: 10px; font: 800 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin-bottom: 18px; }
.chapter__when::before { content: ""; width: 28px; height: 4px; background: var(--c); }
.chapter h3 { font-size: clamp(34px, 4.2vw, 64px); text-transform: uppercase; margin-bottom: 22px; }
.chapter h3 em { color: var(--c); }
.chapter p { color: var(--ink-2); font-size: 18px; line-height: 1.65; max-width: 36em; }
.chapter__img { margin: 26px 0 0; }
.chapter__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; }
.chapter__img--contain img { object-fit: contain; }
.chapter__img figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.chapter__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chapter__link { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--c); color: var(--c); padding: 11px 16px; font: 800 12.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background .2s ease, color .2s ease; }
.chapter__link::after { content: "→"; }
.chapter__link:hover { background: var(--c); color: #fff; }
.chapter .quote { border-left-color: var(--c); margin-top: 28px; font-size: clamp(22px, 2.2vw, 30px); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Netherlands: creative business in motion */
.cb { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; max-width: 520px; }
.cb__tile { border: 2px solid var(--ink); background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 14px; min-height: 140px; }
.cb__tile b { font: 800 14px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; margin-top: auto; }
.cb__ico { height: 56px; display: flex; align-items: flex-end; gap: 6px; }
.cb__grid { display: grid; grid-template-columns: repeat(3, 14px); gap: 4px; align-content: end; }
.cb__grid i { width: 14px; height: 14px; background: var(--line); }
.is-in .cb__grid i { animation: cell 3s ease-in-out infinite; }
.cb__grid i:nth-child(2) { animation-delay: .2s; } .cb__grid i:nth-child(4) { animation-delay: .4s; } .cb__grid i:nth-child(6) { animation-delay: .6s; } .cb__grid i:nth-child(8) { animation-delay: .8s; } .cb__grid i:nth-child(9) { animation-delay: 1s; } .cb__grid i:nth-child(3) { animation-delay: 1.2s; }
@keyframes cell { 0%, 100% { background: var(--line); } 30%, 60% { background: var(--c); } }
.cb__stack { display: flex; flex-direction: column-reverse; gap: 4px; }
.cb__stack i { width: 46px; height: 12px; background: var(--c); transform: scaleX(0); transform-origin: left; }
.is-in .cb__stack i { animation: build 3.2s ease infinite; }
.cb__stack i:nth-child(2) { animation-delay: .25s; width: 38px; } .cb__stack i:nth-child(3) { animation-delay: .5s; width: 30px; }
@keyframes build { 0% { transform: scaleX(0); } 25%, 80% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.cb__spark { font: 700 52px/1 var(--display); color: var(--c); display: inline-block; }
.is-in .cb__spark { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cb__bars i { width: 12px; background: var(--c); height: 20%; }
.is-in .cb__bars i { animation: bar 2.4s ease-in-out infinite alternate; }
.cb__bars i:nth-child(1) { --h: 40%; } .cb__bars i:nth-child(2) { --h: 75%; animation-delay: .2s; } .cb__bars i:nth-child(3) { --h: 55%; animation-delay: .4s; } .cb__bars i:nth-child(4) { --h: 100%; animation-delay: .6s; }
@keyframes bar { from { height: 15%; } to { height: var(--h); } }

/* Helsinki: northern lights */
.aurora { position: relative; overflow: hidden; margin-top: 26px; aspect-ratio: 16 / 9; background: #0b1530; display: grid; place-items: end start; padding: 22px; color: #fff; }
.aurora::before, .aurora::after { content: ""; position: absolute; inset: -40%; background: radial-gradient(ellipse 40% 22% at 30% 45%, rgba(64,255,170,.55), transparent 70%), radial-gradient(ellipse 35% 18% at 65% 35%, rgba(120,110,255,.5), transparent 70%); filter: blur(10px); }
.is-in .aurora::before { animation: drift 9s ease-in-out infinite alternate; }
.aurora::after { background: radial-gradient(ellipse 45% 16% at 55% 55%, rgba(40,200,255,.4), transparent 70%); }
.is-in .aurora::after { animation: drift 12s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(-6%, 3%) rotate(-4deg); } to { transform: translate(6%, -4%) rotate(5deg); } }
.aurora b { position: relative; font: 700 clamp(26px, 3vw, 40px)/.95 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.aurora b span { display: block; font: italic 400 .7em/1.2 var(--serif); text-transform: none; letter-spacing: 0; color: #9ff5d1; }

/* The elephant's note at the end */
.ele-note { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 34px; padding: 20px; border: 2px dashed var(--c); max-width: 36em; }
.ele-note svg { width: 64px; height: auto; color: var(--c); }
.ele-note p { margin: 0; font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .jpanel, .jpanel__swap, .jroute__ele { transition: none; }
  .is-in .cb__grid i, .is-in .cb__stack i, .is-in .cb__spark, .is-in .cb__bars i, .is-in .aurora::before, .is-in .aurora::after, .journey__hint::after, .jpanel.is-moving .jroute__ele svg .leg { animation: none !important; }
  .cb__stack i { transform: none; } .cb__bars i { height: var(--h); }
}

@media (max-width: 900px) {
  .journey__intro { grid-template-columns: 1fr; }
  .journey__stage { grid-template-columns: 1fr; }
  .jpanel { top: 66px; height: auto; z-index: 5; padding: 14px var(--gutter) 12px; border-bottom: 2px solid var(--ink); }
  .jpanel::before, .jpanel__code, .jarc, .jpanel__meta, .jpanel__top span:last-child { display: none; }
  .jpanel__main { margin: 6px 0 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .jpanel__city { font-size: clamp(26px, 7vw, 40px); }
  .jpanel__country { font-size: 18px; margin: 0; }
  .jroute { margin-top: 8px; padding-top: 30px; }
  .jroute__line, .jroute__fill { top: 40px; }
  .jroute__ele { width: 36px; }
  .jroute li { font-size: 9.5px; letter-spacing: .04em; gap: 8px; }
  .jroute li::before { width: 10px; height: 10px; }
  .chapter { min-height: auto; padding: 56px var(--gutter); }
}
@media (max-width: 480px) {
  .jroute li span { display: none; }
}

/* ==========================================================================
   Motion everywhere: city scenes, color wash, route line, reveals
   ========================================================================== */

/* The journey washes the whole screen in each city's color */
.journey { --j: #1e5b4f; background: var(--bg); background: color-mix(in srgb, var(--j) 9%, var(--bg)); transition: background-color .9s ease; }
.journey__intro h2 em { color: var(--j); transition: color .9s ease; }

/* A route line that draws itself down the story */
.jchapters { position: relative; }
.jtrack { position: absolute; top: 0; bottom: 0; left: clamp(14px, 2vw, 30px); width: 3px; background: rgba(13,13,13,.12); pointer-events: none; }
.jtrack__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--j); transition: background-color .9s ease; }
.jtrack__fill::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--j); transform: translateX(-50%); box-shadow: 0 0 0 5px color-mix(in srgb, var(--j) 25%, transparent); }
.chapter { padding-left: clamp(44px, 5.5vw, 88px); }

/* City scenes */
.scene {
  --sp: 0; position: relative; overflow: hidden; margin: 0 0 32px; aspect-ratio: 600 / 220;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--c) 7%, #fff), color-mix(in srgb, var(--c) 20%, #fff));
  border: 2px solid var(--ink); color: var(--c);
}
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.scene .sc-far { transform: translateX(calc(var(--sp) * -18px)); }
.scene .sc-mid { transform: translateX(calc(var(--sp) * -42px)); }
.scene .sc-near { transform: translateX(calc(var(--sp) * -80px)); }
.scene .sc-ground { fill: var(--ink); }
.scene__label { position: absolute; left: 14px; top: 10px; font: 800 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: rgba(255,255,255,.75); padding: 6px 8px; }
.scene__ele { position: absolute; bottom: 8%; left: calc(4% + var(--sp) * 78%); width: 11%; min-width: 44px; color: var(--ink); z-index: 2; }
.scene__ele svg { position: static; width: 100%; height: auto; }
.scene__ele .leg { transform-box: fill-box; transform-origin: 50% 0; }
html.is-scrolling .scene__ele .leg-a { animation: step .46s ease-in-out infinite alternate; }
html.is-scrolling .scene__ele .leg-b { animation: step .46s ease-in-out infinite alternate-reverse; }
.scene__fx { position: absolute; inset: 0; pointer-events: none; }

/* Weather and life in each city */
.fx-rain i { position: absolute; top: -12%; width: 1.5px; height: 14%; background: color-mix(in srgb, var(--c) 55%, #fff); animation: rain linear infinite; }
@keyframes rain { to { transform: translate(-14px, 900%); } }
.fx-snow i { position: absolute; top: -6%; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); animation: snow linear infinite; }
@keyframes snow { 50% { transform: translate(12px, 900%); } to { transform: translate(-6px, 1800%); } }
.fx-caps i { position: absolute; bottom: 10%; width: 18px; height: 6px; background: var(--ink); animation: cap ease-out infinite; }
.fx-caps i::after { content: ""; position: absolute; left: 6px; top: 5px; width: 6px; height: 6px; background: var(--ink); }
@keyframes cap { 0% { transform: translateY(0) rotate(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(-260%) rotate(200deg); opacity: 1; } 100% { transform: translateY(-300%) rotate(260deg); opacity: 0; } }

.sc-bike { animation: ride 9s linear infinite; }
@keyframes ride { from { transform: translateX(-120px); } to { transform: translateX(720px); } }
.sc-bike .wheel { transform-box: fill-box; transform-origin: center; animation: spin 1s linear infinite; }
.sc-bus { animation: drive 11s linear infinite; }
@keyframes drive { from { transform: translateX(720px); } to { transform: translateX(-140px); } }
.sc-eye { transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite; }
.sc-sun { transform-box: fill-box; transform-origin: center; animation: spin 24s linear infinite; }
.sc-water { animation: waves 4s linear infinite; }
@keyframes waves { to { transform: translateX(-40px); } }
.sc-light { animation: flicker 3s ease-in-out infinite; }
@keyframes flicker { 50% { opacity: .35; } }

/* Headlines rise in word by word */
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.words .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.2,.75,.2,1); transition-delay: calc(var(--i) * 55ms); }
.words.is-in .w > span { transform: none; }

/* Images wipe open */
.wipe img, img.wipe { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.65,0,.25,1); }
.wipe.is-in img, img.wipe.is-in { clip-path: inset(0); }

/* Gentle parallax on portraits */
.drift { overflow: hidden; }
.drift img { transform: translateY(var(--drift, 0px)) scale(1.08); will-change: transform; }

/* Staggered reveals */
.reveal { transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  .scene .sc-far, .scene .sc-mid, .scene .sc-near { transform: none; }
  .fx-rain i, .fx-snow i, .fx-caps i, .sc-bike, .sc-bike .wheel, .sc-bus, .sc-eye, .sc-sun, .sc-water, .sc-light { animation: none !important; }
  .fx-rain, .fx-snow, .fx-caps { display: none; }
  .words .w > span { transform: none; transition: none; }
  .wipe img, img.wipe { clip-path: none; transition: none; }
  .drift img { transform: none; }
}

@media (max-width: 900px) {
  .jtrack { left: 10px; }
  .chapter { padding-left: 34px; }
}

/* ==========================================================================
   Immersive hero: the trip starts here
   ========================================================================== */
.mast { min-height: calc(100vh - 102px); min-height: calc(100svh - 102px); display: flex; flex-direction: column; padding-top: clamp(28px, 4vw, 56px); }
.mast__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; margin-top: 0; flex: 1; }
.mast h1 { font-size: clamp(38px, 4.5vw, 78px); max-width: 16ch; margin-bottom: 22px; }
.mast__lead { margin-bottom: 28px; }

.voyage { position: relative; background: var(--ink); color: #fff; padding: 20px 20px 0; overflow: hidden; }
.voyage__top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 700 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.voyage__top span:first-child { color: var(--accent); }
.voyage__map { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.voyage__legs path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: .9; animation: draw .9s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.voyage__cities circle { fill: #fff; }
.voyage__cities .pulse { fill: none; stroke: var(--accent); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.voyage__cities text { fill: #fff; font: 700 13px var(--sans); letter-spacing: .1em; }
.voyage__cities text.sub { fill: rgba(255,255,255,.6); font: 500 10.5px var(--sans); letter-spacing: .04em; }
.voyage__plane { opacity: 0; transition: opacity .4s ease; }
.voyage.is-flying .voyage__plane { opacity: 1; }
.voyage__ground { position: relative; height: 54px; margin: 0 -20px; border-top: 2px solid rgba(255,255,255,.18); }
.voyage__ele { position: absolute; bottom: 4px; left: 0; width: 52px; color: #fff; animation: trek 18s linear infinite; }
.voyage__ele svg { width: 100%; height: auto; display: block; }
.voyage__ele .leg { transform-box: fill-box; transform-origin: 50% 0; }
.voyage__ele .leg-a { animation: step .46s ease-in-out infinite alternate; }
.voyage__ele .leg-b { animation: step .46s ease-in-out infinite alternate-reverse; }
@keyframes trek { from { left: -60px; } to { left: 100%; } }
.voyage__photo { position: absolute; left: 41%; bottom: 66px; width: 25%; border: 3px solid #fff; background: #fff; }
.voyage__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 25%; }
.voyage__photo .mast__badge { left: -3px; right: -3px; bottom: -3px; padding: 8px 10px; font-size: 10px; letter-spacing: .06em; }
.voyage__photo .mast__badge b { font-size: 20px; }

.mast__cue { align-self: center; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; margin-top: clamp(24px, 4vw, 44px); text-decoration: none; font: 700 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.mast__cue i { width: 2px; height: 46px; background: rgba(13,13,13,.15); position: relative; overflow: hidden; }
.mast__cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--accent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { to { top: 100%; } }
.mast .ticker { margin-top: clamp(20px, 3vw, 32px); }

@media (prefers-reduced-motion: reduce) {
  .voyage__legs path { animation: none; stroke-dashoffset: 0; }
  .voyage__cities .pulse, .voyage__ele, .voyage__ele .leg, .mast__cue i::after { animation: none !important; }
  .voyage__ele { left: 6%; }
}
@media (max-width: 900px) {
  .mast { min-height: 0; }
  .mast__grid { grid-template-columns: 1fr; }
  .voyage__photo { width: 22%; left: 42%; }
}
@media (max-width: 760px) {
  .voyage { order: 0; }
  .mast__copy { order: -1; }
  .voyage__photo { position: relative; right: auto; bottom: auto; width: 46%; margin: 4px 0 16px auto; }
}

/* On black, the maroon accent switches to a brighter pink of the same hue */
.ticker__track span::after,
.footer__cta em, .footer__cta span, .footer__mark span, .footer__row a:hover,
.voyage__top span:first-child { color: var(--accent-bright); }
.voyage__cities .pulse { stroke: var(--accent-bright); }
.voyage__plane circle { fill: var(--accent-bright); }
.mast__badge { background: var(--accent); }

/* ==========================================================================
   v3: full-width hero map + full-screen city backgrounds
   ========================================================================== */

/* ---------- Hero: the flight map is the whole background ---------- */
.mast--map { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding-top: 0; min-height: calc(100vh - 102px); min-height: calc(100svh - 102px); }
.mast__map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mast__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(13,13,13,.94) 0%, rgba(13,13,13,.78) 34%, rgba(13,13,13,.15) 62%, rgba(13,13,13,0) 100%), linear-gradient(to top, rgba(13,13,13,.85), transparent 30%); }
.mast__inner { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 32px; padding-top: clamp(32px, 5vw, 72px); }
.mast--map .eyebrow { color: rgba(255,255,255,.85); }
.mast--map h1 { color: #fff; }
.mast--map h1 em { color: var(--accent-bright); }
.mast--map .mast__lead { color: rgba(255,255,255,.78); }
.mast__stops { margin: 22px 0 0; font: 700 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-bright); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.mast--map .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.mast--map .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.mast__portrait { justify-self: end; align-self: end; margin: 0; width: min(200px, 50%); border: 4px solid #fff; background: #fff; transform: rotate(3deg); box-shadow: 0 24px 50px rgba(0,0,0,.45); position: relative; }
.mast__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 25%; }
.mast__portrait .mast__badge { position: absolute; left: -4px; right: -4px; bottom: -4px; padding: 10px 12px; font-size: 10.5px; }
.mast__portrait .mast__badge b { font-size: 24px; }
.mast--map .voyage__legs path { stroke: rgba(255,255,255,.85); stroke-width: 2.2; }
.mast--map .voyage__cities text { fill: #fff; font: 700 10.5px var(--sans); letter-spacing: .14em; }
.mast--map .voyage__cities text.name { fill: rgba(255,255,255,.6); font: italic 400 17px var(--serif); letter-spacing: 0; }
.mast--map .voyage__plane { opacity: 0; transition: opacity .4s ease; }
.mast--map.is-flying .voyage__plane { opacity: 1; }
.mast--map .mast__cue { position: relative; z-index: 1; color: #fff; }
.mast--map .mast__cue i { background: rgba(255,255,255,.2); }
.mast--map .mast__cue i::after { background: var(--accent-bright); }
.mast__walk { position: relative; z-index: 1; height: 50px; margin-top: 10px; }
.mast__walk .voyage__ele { width: 54px; color: #fff; }
.mast--map .ticker { margin-top: 0; border-top: 1px solid rgba(255,255,255,.18); position: relative; z-index: 1; }

/* ---------- Journey: each city is the whole screen ---------- */
.journey { background: var(--bg); }
.journey__stage { display: grid; grid-template-columns: 1fr; border-top: 0; }
.jbg, .jchapters { grid-area: 1 / 1; }
.jbg {
  --c: #1e5b4f; --sp: .5; --ground: 40px;
  position: sticky; top: 66px; align-self: start; height: calc(100vh - 66px); height: calc(100svh - 66px);
  overflow: hidden; color: #fff; z-index: 0;
}
.jbg__sky { position: absolute; inset: 0; background: var(--c); background: linear-gradient(to bottom, color-mix(in srgb, var(--c) 82%, #000) 0%, var(--c) 42%, color-mix(in srgb, var(--c) 45%, #fff) 100%); transition: background .9s ease; }
.jbg__scenes { position: absolute; left: 0; right: 0; bottom: 0; height: 64%; }
.jscene { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; color: color-mix(in srgb, var(--c) 30%, #0d0d0d); }
.jscene.is-on { opacity: 1; }
.jscene svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.jscene .sc-far { transform: translateX(calc((var(--sp) - .5) * -40px)); }
.jscene .sc-mid { transform: translateX(calc((var(--sp) - .5) * -90px)); }
.jscene .sc-near { transform: translateX(calc((var(--sp) - .5) * -170px)); }
.jscene .sc-ground { fill: #0d0d0d; }
.jscene .sc-far path[fill="#fff"] { fill: #fff; }

.jbg__fx { position: absolute; inset: 0; pointer-events: none; }
.jbg__fx > div { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.jbg__fx > div.is-on { opacity: 1; }
.jbg__fx .fx-rain i { background: rgba(255,255,255,.55); width: 1.5px; height: 7%; }
.jbg__fx .fx-snow i { width: 7px; height: 7px; }
.jbg__fx .fx-caps i { bottom: 12%; }

.jbg__ele { position: absolute; bottom: var(--ground); left: 3%; width: clamp(64px, 7vw, 110px); color: #0d0d0d; z-index: 3; transition: left .15s linear; }
.jbg__ele svg { width: 100%; height: auto; display: block; }
.jbg__ele .leg { transform-box: fill-box; transform-origin: 50% 0; }
html.is-scrolling .jbg__ele .leg-a { animation: step .46s ease-in-out infinite alternate; }
html.is-scrolling .jbg__ele .leg-b { animation: step .46s ease-in-out infinite alternate-reverse; }

/* Work from each period floats over the scene */
.jbg__work { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; z-index: 2; }
.jwork { position: absolute; inset: 0; opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.jwork.is-on { opacity: 1; transform: none; }
.jwork figure { position: absolute; margin: 0; background: #fff; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.jwork figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.jwork figure:nth-child(1) { left: 7%; top: 47%; width: 34%; transform: rotate(-5deg) translateY(calc((var(--sp) - .5) * -50px)); }
.jwork figure:nth-child(2) { left: 46%; top: 40%; width: 30%; transform: rotate(4deg) translateY(calc((var(--sp) - .5) * -90px)); }
.jwork figure:nth-child(3) { left: 30%; top: 64%; width: 26%; transform: rotate(-2deg) translateY(calc((var(--sp) - .5) * -130px)); }

.jbg__info { position: absolute; left: var(--gutter); top: clamp(24px, 4vh, 48px); width: min(46%, 560px); z-index: 4; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.jbg__info .jpanel__city { font-size: clamp(48px, 6.6vw, 112px); }
.jbg__info .jroute { margin-top: 22px; }

/* Chapter cards scroll over the scenery */
.jchapters { position: relative; z-index: 1; padding-left: 54%; padding-right: var(--gutter); }
.jtrack { left: calc(54% - 30px); background: rgba(255,255,255,.35); }
.chapter { min-height: 100vh; min-height: 100svh; padding: 18vh 0; border-bottom: 0; display: flex; align-items: center; }
.chapter__card { background: var(--bg); border: 2px solid var(--ink); padding: clamp(24px, 3vw, 40px); box-shadow: 12px 12px 0 rgba(13,13,13,.35); max-width: 600px; width: 100%; }
.chapter__card h3 { font-size: clamp(30px, 3.2vw, 50px); }

@media (prefers-reduced-motion: reduce) {
  .jscene .sc-far, .jscene .sc-mid, .jscene .sc-near, .jwork figure { transform: none !important; }
  .jbg__fx { display: none; }
  .mast--map .voyage__plane { opacity: 1; }
}

@media (max-width: 900px) {
  .mast__inner { grid-template-columns: 1fr; }
  .mast__shade { background: linear-gradient(to bottom, rgba(13,13,13,.92) 0%, rgba(13,13,13,.8) 55%, rgba(13,13,13,.5) 100%); }
  .mast__portrait { justify-self: start; width: 46%; margin: 8px 0 0; }
  .jbg__work { display: none; }
  .jbg__info { width: auto; right: var(--gutter); }
  .jbg__info .jpanel__main { display: block; }
  .jbg__info .jpanel__city { font-size: clamp(40px, 12vw, 72px); }
  .jbg__info .jpanel__country { font-size: 22px; margin-top: 4px; }
  .jbg__info .jpanel__meta { display: flex; }
  .jbg__info .jpanel__top span:last-child { display: inline; }
  .jbg__scenes { height: 46%; }
  .jchapters { padding: 0 var(--gutter); }
  .jtrack { display: none; }
  .chapter { padding: 44vh 0 10vh; min-height: 0; align-items: flex-start; }
  .chapter + .chapter { padding-top: 50vh; }
  .chapter__card { box-shadow: 8px 8px 0 rgba(13,13,13,.35); }
}
@media (max-width: 760px) {
  .mast__map { width: 210%; left: -110%; top: auto; bottom: 90px; height: 60%; opacity: .75; }
  .jbg__fx .fx-snow i { opacity: .75; }
}

/* Travel photos */
.aurora--photo { background-size: cover; background-position: center 35%; aspect-ratio: 4 / 3; }
.aurora--photo::before, .aurora--photo::after { mix-blend-mode: screen; opacity: .55; }
.aurora--photo b { text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.snaps { margin-top: 26px; }
.snaps__title { font: 700 12.5px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin: 0 0 12px; }
.snaps__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.snaps__grid figure { margin: 0; overflow: hidden; background: #fff; }
.snaps__grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s ease; }
.snaps__grid figure:hover img { transform: scale(1.06); }
.jwork figure.is-tall img { aspect-ratio: 4 / 5; }
@media (max-width: 480px) { .snaps__grid { gap: 6px; } }

/* Smaller photos in the journey */
.chapter__card .chapter__img { max-width: 340px; }
.chapter__card .chapter__img img[style*="4/5"] { max-height: 360px; }
.chapter__card .snaps__grid { max-width: 420px; gap: 6px; }
.chapter__card .aurora { max-width: 420px; }
.chapter__card .cb { max-width: 420px; }
.cb__tile { min-height: 110px; padding: 12px; }
.jwork figure:nth-child(1) { width: 24%; }
.jwork figure:nth-child(2) { width: 22%; }
.jwork figure:nth-child(3) { width: 19%; }
.jwork figure { padding: 5px; }
@media (max-width: 900px) {
  .chapter__card .chapter__img, .chapter__card .snaps__grid, .chapter__card .aurora, .chapter__card .cb { max-width: 100%; }
  .chapter__card .chapter__img { max-width: 280px; }
}

/* Utrecht: tulips along the canal, petals on the breeze */
.sc-tulip { transform-box: fill-box; transform-origin: 50% 100%; animation: tulip 3.2s ease-in-out infinite alternate; }
@keyframes tulip { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }
.fx-petals i { position: absolute; top: -4%; width: 9px; height: 13px; border-radius: 60% 60% 50% 50% / 70% 70% 40% 40%; opacity: .9; animation: petal linear infinite; }
@keyframes petal {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-30px, 260%) rotate(80deg); }
  50% { transform: translate(18px, 520%) rotate(160deg); }
  75% { transform: translate(-22px, 780%) rotate(250deg); }
  100% { transform: translate(10px, 1100%) rotate(340deg); }
}
.jbg__fx .fx-petals i { width: 10px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .sc-tulip, .fx-petals i { animation: none !important; } }

/* Softer tulips: background detail, not a focal point */
.sc-tulips { opacity: .38; }
.sc-tulip { animation-duration: 5.5s; }
@keyframes tulip { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.fx-petals i { opacity: .4; }
.jbg__fx .fx-petals i { width: 7px; height: 10px; }

/* Elephant fun fact pop-up */
.efact {
  position: fixed; right: 20px; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); z-index: 95;
  width: min(340px, calc(100vw - 32px));
  background: var(--surface); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--accent);
  transform-origin: 85% 100%;
  opacity: 0; transform: translateY(30px) scale(.5) rotate(4deg); pointer-events: none;
  transition: opacity .25s ease, transform .55s cubic-bezier(.2,1.5,.4,1);
}
.efact.is-in { opacity: 1; transform: translateY(0) scale(1) rotate(-1.5deg); pointer-events: auto; }
.efact__img { margin: 0; position: relative; }
.efact__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.efact__img figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(13,13,13,.75); color: #fff; font: 600 12px/1.3 var(--sans); padding: 5px 8px; }
.efact__body { padding: 16px 18px 18px; }
.efact__kicker { display: block; font: 800 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.efact__fact { margin: 0 0 10px; font: italic 400 21px/1.2 var(--serif); color: var(--ink); }
.efact__me { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.efact__x { position: absolute; top: 8px; right: 8px; z-index: 1; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); font: 400 22px/1 var(--sans); cursor: pointer; }
.efact__x:hover { background: var(--accent); color: #fff; }
@media (max-width: 480px) { .efact { right: 16px; left: 16px; width: auto; bottom: 16px; } .efact__fact { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .efact { transition: opacity .2s ease; transform: none; } .efact.is-in { transform: none; } }
.is-clickable { cursor: pointer; pointer-events: auto; }
.is-clickable:hover svg { transform: scale(1.08) rotate(-4deg); transition: transform .2s ease; }
.jbg { pointer-events: none; }
.jbg__ele { pointer-events: auto; }
.jchapters { pointer-events: none; }
.chapter__card { pointer-events: auto; }

/* ==========================================================================
   Avida analytics: "Improving digital visibility"
   Emphasis form: March 2026 in the accent, August 2025 in warm gray.
   ========================================================================== */
:root { --before: #8f8b83; }
.seo { margin-top: clamp(64px, 9vw, 120px); padding-top: clamp(40px, 5vw, 64px); border-top: 2px solid var(--ink); }
.seo__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.seo__head h2 { font-size: clamp(36px, 5vw, 72px); text-transform: uppercase; margin-bottom: 18px; }
.seo__lead { font-size: 18px; color: var(--ink-2); margin: 0; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); margin-bottom: clamp(36px, 5vw, 56px); }
.kpi { padding: 22px 20px 20px 0; display: flex; flex-direction: column; gap: 6px; }
.kpi + .kpi { border-left: 1px solid var(--line); padding-left: 20px; }
.kpi__label { font: 700 12px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.kpi__value { font: 700 clamp(40px, 4.6vw, 64px)/1 var(--sans); letter-spacing: -.03em; color: var(--accent); }
.kpi__delta { font-size: 14px; color: var(--ink-2); }

.seo__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-bottom: clamp(36px, 5vw, 56px); }
.seo__approach h3, .seo__card h3 { font: 700 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 11px 0 11px 28px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.chart { margin: 0; background: var(--surface); border: 2px solid var(--ink); padding: clamp(18px, 2.4vw, 28px); }
.chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-bottom: 10px; }
.chart figcaption b { font: 700 16px/1.3 var(--sans); }
.chart figcaption span { font-size: 13px; color: var(--muted); }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw--before { background: var(--before); }
.sw--after { background: var(--accent); }
.pairs { display: grid; gap: 18px; }
.pair__name { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; font: 600 14px/1.3 var(--sans); }
.pair__name span { color: var(--ink); font-weight: 700; }
.pair__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 54px; align-items: center; gap: 10px; }
.pair__row + .pair__row { margin-top: 2px; }
.pair__tag { font-size: 12px; color: var(--muted); }
.pair__val { font-size: 13px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.pair__track, .formtest__track { position: relative; height: 14px; }
.bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 0 4px 4px 0; transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.75,.2,1); outline-offset: 2px; }
.bar--before { background: var(--before); }
.bar--after { background: var(--accent); transition-delay: .15s; }
.is-in .bar, .seo.is-in .bar { transform: scaleX(1); }
.bar[data-tip]:hover::after, .bar[data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; left: 100%; top: 50%; transform: translate(8px, -50%);
  white-space: nowrap; background: var(--ink); color: #fff; font: 600 12px/1 var(--sans); padding: 7px 9px; border-radius: 4px; z-index: 2; pointer-events: none;
}
.bar[data-tip]::before { content: ""; position: absolute; inset: -6px 0; }

.seo__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; }
.seo__card { margin: 0; background: var(--surface); border: 2px solid var(--ink); padding: 22px; display: flex; flex-direction: column; }
.seo__card figcaption, .seo__card p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.seo__card figcaption { margin-top: auto; padding-top: 12px; }
.rank { width: 100%; max-width: 280px; height: auto; display: block; margin: 0 auto; }
.rank__top { fill: var(--accent-soft); }
.rank__band { font: 700 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; fill: var(--accent-ink); }
.rank__axis { stroke: var(--line); stroke-width: 1; }
.rank__ticks text { font: 500 11px var(--sans); fill: var(--muted); }
.rank__path { stroke: var(--accent); stroke-width: 2; fill: none; }
.rank__before { fill: var(--before); stroke: var(--surface); stroke-width: 2; }
.rank__after { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.rank__label { font: 600 13px var(--sans); fill: var(--ink-2); }
.rank__label--after { fill: var(--ink); font-weight: 700; }
.seo__card--note { background: var(--accent-soft); }
.seo__ctr { font: 700 34px/1 var(--sans) !important; color: var(--ink) !important; margin: 4px 0 14px !important; letter-spacing: -.02em; }
.seo__ctr span { color: var(--before); }
.seo__when { font: 700 12px/1.4 var(--sans) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink) !important; margin: -6px 0 14px !important; }
.formtest { display: grid; gap: 8px; margin-bottom: 4px; }
.formtest__row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 20px; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); }
.formtest__row b { font: 700 18px var(--sans); color: var(--ink); text-align: right; }
.formtest__track { height: 22px; }

.datatable { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin-bottom: 24px; }
.datatable summary { cursor: pointer; font: 700 13px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.datatable summary:hover { color: var(--accent); }
.datatable__scroll { overflow-x: auto; margin-top: 14px; }
.datatable table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; }
.datatable th, .datatable td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.datatable thead th { font: 700 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.datatable td { font-variant-numeric: tabular-nums; }
.datatable tbody th { font-weight: 600; }
.seo__take { font-size: 17px; line-height: 1.6; max-width: 820px; color: var(--ink-2); margin: 0; }
.seo__take b { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .bar { transform: scaleX(1); transition: none; } }
@media (max-width: 1000px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; padding-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .seo__grid { grid-template-columns: 1fr; }
  .seo__cards { grid-template-columns: 1fr 1fr; }
  .seo__card--note { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 640px) {
  .seo__cards { grid-template-columns: 1fr; }
  .kpi { padding-right: 10px; }
  .kpi + .kpi { padding-left: 12px; }
  .kpi:nth-child(3) { padding-left: 0; }
  .bar[data-tip]:hover::after, .bar[data-tip]:focus-visible::after { left: 0; top: auto; bottom: 100%; transform: translateY(-6px); }
}
.kpi__value { white-space: nowrap; }
@media (max-width: 640px) { .kpi__value { font-size: clamp(28px, 8.4vw, 40px); } }

/* Avida growth chart: one series, percentage change on a shared 0–200% axis */
.growth { display: grid; gap: 14px; margin-top: 18px; }
.growth__row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 56px; align-items: center; gap: 12px; }
.growth__name { font: 600 14px/1.3 var(--sans); }
.growth__row b { font: 700 16px var(--sans); text-align: right; }
.growth__track { position: relative; height: 18px; background: linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / 25% 100%; }
.growth__axis { display: flex; justify-content: space-between; margin-left: 152px; margin-right: 68px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; border-top: 1px solid var(--line); padding-top: 6px; }
.formtest__row { grid-template-columns: 52px minmax(0, 1fr); }
.formtest__pct { font: 700 34px/1 var(--sans) !important; color: var(--accent) !important; margin: 8px 0 0 !important; letter-spacing: -.02em; }
@media (max-width: 640px) {
  .growth__row { grid-template-columns: 1fr 52px; gap: 4px 10px; }
  .growth__name { grid-column: 1 / -1; }
  .growth__axis { margin-left: 0; margin-right: 62px; }
}

/* Photos inside case-study text */
.prose-fig { margin: 28px 0 32px; }
.prose-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--ink); }
.prose-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Selected work: images always fill their frame; quieter text */
.project__img { background: var(--ink); }
.project__img img, .project__img--contain img { object-fit: cover; aspect-ratio: 16 / 7; }
.project h3 { font-size: clamp(24px, 3vw, 44px); }
.project__head { padding-bottom: 12px; }
.project__num { font-size: 13px; }
.project__tags { font-size: 11px; }
.project__img { margin-top: 14px; }
.project__foot { padding-top: 12px; }
.project__foot p { font-size: 15px; line-height: 1.5; }
.project__stat { font-size: 13px; }
.project__stat strong { font-size: 24px; }
.project__go { font-size: 12px; }
.projects { gap: clamp(44px, 6vw, 80px); }
@media (max-width: 760px) {
  .project__img img, .project__img--contain img { aspect-ratio: 4 / 3; }
  .project h3 { font-size: clamp(22px, 6.6vw, 32px); }
}

/* Selected work: two-by-two grid, smaller images */
.projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.project__head { grid-template-columns: 1fr; gap: 6px; align-items: start; padding-bottom: 10px; }
.project__num { padding-bottom: 0; }
.project h3 { font-size: clamp(22px, 2.2vw, 32px); }
.project__tags { text-align: left; padding-bottom: 0; grid-column: auto; }
.project__img img, .project__img--contain img { aspect-ratio: 3 / 2; }
.project__foot { grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; }
.project__foot p { grid-column: 1 / -1; }
.project__stat, .project__go { grid-column: auto; }
@media (max-width: 760px) {
  .projects { grid-template-columns: 1fr; }
  .project__img img, .project__img--contain img { aspect-ratio: 3 / 2; }
}

/* More projects: square, slightly smaller, always filling the frame */
.mini { gap: 28px clamp(20px, 2.6vw, 36px); }
.mini img { aspect-ratio: 1 / 1; object-fit: cover; }
.mini figure { max-width: 260px; }
@media (max-width: 1000px) { .mini figure { max-width: none; } }
@media (max-width: 760px) {
  .projects { grid-template-columns: minmax(0, 1fr); }
  .project h3 { overflow-wrap: break-word; }
  .mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .project__foot { grid-template-columns: minmax(0, 1fr); }
  .project__stat { white-space: normal; }
}

/* Austin: pitch win callout */
.win { margin: 26px 0 0; padding: 20px 20px 18px; border-left: 3px solid var(--accent, #a3174f); background: rgba(163, 23, 79, .06); border-radius: 0 10px 10px 0; }
.win__tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent, #a3174f); }
.win h4 { margin: 6px 0 8px; font-size: 20px; font-weight: 600; line-height: 1.2; }
.win p { margin: 0; }
.win .chapter__img { margin-top: 16px; }

/* More projects: three tiles on wider screens */
@media (min-width: 1001px) { .mini { grid-template-columns: repeat(3, minmax(0, 260px)); } }

/* Selected work: fifth card spans the full row */
.project--wide { grid-column: 1 / -1; }
.project--wide .project__img img, .project--wide .project__img--contain img { aspect-ratio: 2 / 1; }

/* Art & Beauty: full-bleed banner hero, no white letterboxing */
.hero-img--banner { background: #5b1010; }
.hero-img--banner img { aspect-ratio: 2 / 1; object-fit: cover; }

/* Art & Beauty: photo-booth polaroids */
.polaroids { margin-top: clamp(56px, 8vw, 96px); }
.polaroids__board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); padding: 28px 4px 12px; }
.polaroid { position: relative; margin: 0; padding: 10px 10px 0; background: #fffdf8; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 14px 30px -12px rgba(60, 20, 30, .35); transform: rotate(var(--tilt, -3deg)); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.polaroid:nth-child(2) { --tilt: 2.5deg; margin-top: 22px; }
.polaroid:nth-child(3) { --tilt: -1.5deg; margin-top: 6px; }
.polaroid:nth-child(4) { --tilt: 3.5deg; margin-top: 28px; }
.polaroid::before { content: ""; position: absolute; top: -12px; left: 50%; width: 76px; height: 24px; transform: translateX(-50%) rotate(-4deg); background: rgba(236, 91, 147, .35); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.polaroid:nth-child(even)::before { transform: translateX(-50%) rotate(5deg); background: rgba(163, 23, 79, .22); }
.polaroid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
.polaroid figcaption { padding: 12px 4px 16px; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 21px; line-height: 1.1; text-align: center; color: #3a2a2e; }
.polaroid:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); z-index: 2; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 24px 40px -14px rgba(60, 20, 30, .45); }
@media (max-width: 760px) {
  .polaroids__board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .polaroid { padding: 7px 7px 0; }
  .polaroid figcaption { font-size: 17px; padding: 9px 2px 12px; }
}
@media (prefers-reduced-motion: reduce) { .polaroid { transition: none; } }

.polaroids { margin: 0 0 clamp(56px, 8vw, 96px); }

/* Art & Beauty: identity gallery */
.gallery--tight { margin-top: 18px; }
.gallery--feature { grid-template-columns: 9fr 16fr; align-items: start; }
.gallery--feature img { aspect-ratio: auto; height: auto; object-fit: contain; background: none; }
@media (max-width: 760px) { .gallery--feature { grid-template-columns: minmax(0, 1fr); } }

/* Art & Beauty: "At a glance" spacing when the sidebar stacks */
@media (max-width: 1000px) {
  .case-body--event { row-gap: clamp(32px, 5vw, 48px); }
  .case-body--event .aside { grid-template-columns: 1fr; }
  .case-body--event .panel { padding: clamp(22px, 3vw, 32px); }
  .case-body--event .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .case-body--event .stats li { padding: 0 clamp(16px, 3vw, 32px); }
  .case-body--event .stats li:first-child { padding-left: 0; }
  .case-body--event .stats li + li { border-top: 0; padding-top: 0; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .case-body--event .stats { grid-template-columns: 1fr; gap: 18px; }
  .case-body--event .stats li { padding: 0; }
  .case-body--event .stats li + li { border-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
}
.polaroids { margin: clamp(56px, 8vw, 96px) 0; }

/* Art & Beauty: Instagram post on a phone */
.ig { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; margin: clamp(56px, 8vw, 104px) 0; padding: clamp(32px, 5vw, 64px); background: linear-gradient(135deg, #5b1010, #8c3a3f); color: #f8eee9; }
.ig__phone { position: relative; width: 100%; max-width: 320px; margin-inline: auto; padding: 12px; border-radius: 44px; background: #111; box-shadow: 0 0 0 2px #2b2b2b inset, 0 30px 60px -20px rgba(0,0,0,.6); transform: rotate(-3deg); cursor: grab; touch-action: pan-y; user-select: none; }
.ig__phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 84px; height: 22px; transform: translateX(-50%); border-radius: 20px; background: #111; z-index: 3; }
.ig__screen { overflow: hidden; border-radius: 33px; background: #fff; padding-top: 34px; }
.ig__bar { display: grid; }
.ig__bar img { grid-area: 1 / 1; width: 100%; display: block; opacity: 0; transition: opacity .45s ease; }
.ig__bar img.is-on { opacity: 1; }
.ig__post { overflow: hidden; }
.ig__track { display: flex; width: 200%; transition: transform .6s cubic-bezier(.65,0,.25,1); }
.ig__track img { width: 50%; display: block; aspect-ratio: 719 / 900; object-fit: cover; pointer-events: none; }
.ig__copy .eyebrow { color: #f3c6d6; }
.ig__copy h2 { margin: 10px 0 16px; font-weight: 600; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; color: #fff; }
.ig__copy p { color: rgba(248,238,233,.86); max-width: 52ch; }
.ig__ctrl { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 13px; color: rgba(248,238,233,.7); }
.ig__ctrl button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); background: transparent; color: #fff; font: 600 14px/1 var(--sans); cursor: pointer; }
.ig__ctrl button[aria-pressed="true"] { background: #fff; color: #5b1010; border-color: #fff; }
.ig__ctrl span { margin-left: 6px; }
@media (max-width: 760px) {
  .ig { grid-template-columns: 1fr; margin-inline: -16px; padding: 40px 20px; }
  .ig__phone { max-width: 270px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .ig__track, .ig__bar img { transition: none; } }
.ig__copy .eyebrow::before { background: #ec5b93; }

/* About: places I've called home */
.homes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.home figure { margin: 0; overflow: hidden; }
.home img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.home:hover img { transform: scale(1.04); }
.home > div { border-top: 2px solid var(--ink); margin-top: 14px; padding-top: 12px; }
.home__code { font: 700 12px/1 var(--sans); letter-spacing: .14em; color: var(--accent); }
.home h3 { margin: 6px 0 6px; font-size: 22px; font-weight: 600; text-transform: uppercase; }
.home p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 1000px) { .homes { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 560px) { .homes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* About: a little more about me */
.homes-sec { padding-bottom: 0; }
.more-me__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.ele-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); background: var(--accent-soft); }
.ele-card figure { margin: 0; }
.ele-card img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.ele-card__body { padding: clamp(24px, 3vw, 40px); align-self: center; }
.ele-card h3, .give-card h3 { margin: 10px 0 12px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; line-height: 1.15; }
.ele-card p:not(.eyebrow), .give-card p:not(.eyebrow) { color: var(--ink-2); line-height: 1.6; }
.ele-card__link { display: inline-block; margin-top: 8px; font: 700 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.give-card { border: 2px solid var(--ink); padding: clamp(24px, 3vw, 40px); background: var(--surface); }
.give-card__meta { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted) !important; margin-top: 0; }
@media (max-width: 1000px) { .more-me__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ele-card { grid-template-columns: 1fr; } .ele-card img { min-height: 0; aspect-ratio: 4 / 3; } }

/* About: closing line */
.closer { padding-block: clamp(56px, 8vw, 104px); border-top: 2px solid var(--ink); }
.closer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.closer__line { margin: 0; font-size: clamp(30px, 4.4vw, 60px); font-weight: 600; line-height: 1.05; max-width: 18ch; }
.closer__line em { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; color: var(--accent); }

/* Home: skills under What I bring */
.skillset { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(28px, 3vw, 40px); border-top: 2px solid var(--ink); }
.skillset__title { margin: 0 0 clamp(20px, 2.4vw, 32px); font-size: clamp(26px, 2.8vw, 36px); font-weight: 600; text-transform: uppercase; }
.skillset__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.skillset h4 { margin: 0 0 14px; font: 800 12.5px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.skillset .chips { margin: 0; }
.skillset .chips li { font-size: 13px; padding: 7px 12px; }
@media (max-width: 1000px) { .skillset__grid { grid-template-columns: 1fr; } }

.btn--down::after { content: "↓"; }
.btn--down:hover::after { transform: translateY(3px); }

/* Home: link to experience after the journey */
.journey-end { padding-block: clamp(40px, 6vw, 72px); border-bottom: 2px solid var(--ink); }
.journey-end__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.journey-end__line { margin: 0; font-size: clamp(24px, 3vw, 40px); font-weight: 600; line-height: 1.1; }
.journey-end__line em { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; color: var(--accent); }

/* ==========================================================================
   LUXE LAYER: quieter, more refined finish
   Ivory paper, deep wine + champagne, serif display type, hairline rules,
   pill chips, softer shadows, slower motion. Everything above still applies;
   this block only refines it.
   ========================================================================== */
:root {
  --bg: #f8f4ee;
  --surface: #fffdf9;
  --ink: #1f1a17;
  --ink-2: #4a423d;
  --muted: #8a8079;
  --line: #e6ddd2;
  --hair: #d8ccbd;
  --accent: #7d1a3a;
  --accent-ink: #651430;
  --accent-soft: #f4e8e8;
  --gold: #b08d57;
  --gold-soft: #e9dcc6;
}
::selection { background: var(--accent); color: #fff; }
body { color: var(--ink); font-weight: 400; line-height: 1.72; letter-spacing: .005em; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .045; mix-blend-mode: multiply;
  background-image: 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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Hairlines instead of heavy rules */
  .jpanel { border-bottom-width: 1px; border-bottom-color: var(--hair); }
.cb__tile { border-width: 1px; border-color: var(--hair); }
.chapter__card { border-width: 1px; border-color: var(--hair); }
.chart { border-width: 1px; border-color: var(--hair); }
.chips li { border-width: 1px; border-color: var(--hair); }
.closer { border-top-width: 1px; border-top-color: var(--hair); }
.form { border-width: 1px; border-color: var(--hair); }
.give-card { border-width: 1px; border-color: var(--hair); }
.hero { border-bottom-width: 1px; border-bottom-color: var(--hair); }
.home > div { border-top-width: 1px; border-top-color: var(--hair); }
.journey { border-top-width: 1px; border-top-color: var(--hair); }
.journey-end { border-bottom-width: 1px; border-bottom-color: var(--hair); }
.journey__stage { border-top-width: 1px; border-top-color: var(--hair); }
.kpis { border-bottom-width: 1px; border-bottom-color: var(--hair); }
.kpis { border-top-width: 1px; border-top-color: var(--hair); }
.meta { border-bottom-width: 1px; border-bottom-color: var(--hair); }
.meta { border-top-width: 1px; border-top-color: var(--hair); }
.mini figcaption { border-top-width: 1px; border-top-color: var(--hair); }
.panel { border-width: 1px; border-color: var(--hair); }
.pillars { border-top-width: 1px; border-top-color: var(--hair); }
.project__head { border-bottom-width: 1px; border-bottom-color: var(--hair); }
.prose-fig img { border-width: 1px; border-color: var(--hair); }
.recs { border-bottom-width: 1px; border-bottom-color: var(--hair); }
.recs { border-top-width: 1px; border-top-color: var(--hair); }
.section + .section { border-top-width: 1px; border-top-color: var(--hair); }
.seo { border-top-width: 1px; border-top-color: var(--hair); }
.seo__card { border-width: 1px; border-color: var(--hair); }
.skillset { border-top-width: 1px; border-top-color: var(--hair); }
.timeline { border-top-width: 1px; border-top-color: var(--hair); }
.site-header { border-bottom: 1px solid var(--hair); background: rgba(248,244,238,.9); }
.section + .section { border-top: 1px solid var(--line); }

/* Serif display type everywhere a headline appears */
#main h1, #main h2, #main h3,
.jpanel__city, .footer__cta, .footer__mark, .closer__line, .journey-end__line {
  font-family: var(--serif); font-weight: 400; font-stretch: 100%;
  text-transform: none; letter-spacing: -.012em; line-height: 1.02;
}
#main h1 em, #main h2 em, #main h3 em, .footer__cta em, .closer__line em, .journey-end__line em { color: var(--accent); font-style: italic; }
#main h1 { letter-spacing: -.02em; line-height: .98; }
.section-head h2 { font-size: clamp(44px, 6vw, 92px); }
.mast h1 { font-size: clamp(44px, 5.2vw, 88px); }
.hero h1 { font-size: clamp(52px, 8vw, 128px); }
.project h3 { font-size: clamp(28px, 2.8vw, 40px); }
.pillars h3, .home h3 { font-size: clamp(26px, 2.6vw, 34px); }
.jpanel__city { font-size: clamp(52px, 7vw, 116px); line-height: .95; }
.chapter__card h3 { font-size: clamp(34px, 3.4vw, 54px); }
.footer__cta { font-size: clamp(42px, 6.4vw, 96px); }
.footer__mark { font-size: calc((min(100vw, 1320px) - 2 * var(--gutter)) / 7.6); letter-spacing: -.02em; line-height: .9; }

/* Small labels stay sans: refined, wide-tracked caps */
#main .panel h3, .skillset h4, .eyebrow, .chapter__when, .home__code, .project__tags, .project__num, .pillars__num, .give-card__meta {
  font-family: var(--sans); font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
}
#main .panel h3 { font-size: 11.5px; line-height: 1.4; color: var(--gold); }
.eyebrow { font-size: 11.5px; color: var(--ink-2); }
.eyebrow::before { width: 36px; height: 1px; background: var(--gold); }
.skillset h4 { font-size: 11.5px; color: var(--gold); }
.chapter__when, .home__code { color: var(--gold); }

/* Header + brand */
.today { background: #17120f; letter-spacing: .04em; }
.brand { font: 500 14px/1 var(--sans); font-stretch: 100%; letter-spacing: .32em; }
.brand__dot { color: var(--gold); }
.nav a { font-size: 12px; font-weight: 500; letter-spacing: .2em; }
.nav a::after { height: 1px; background: var(--gold); }
.nav a.nav__cta { background: var(--accent); padding: 12px 20px; letter-spacing: .2em; }
.nav a.nav__cta:hover { background: var(--ink); }
.status::before { background: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,87,.28); }

/* Buttons: slimmer, wider-tracked, wine */
.btn { font: 500 12px/1 var(--sans); letter-spacing: .24em; padding: 19px 30px; gap: 14px;
  background: var(--accent); border: 1px solid var(--accent); transition: background .45s ease, border-color .45s ease, color .45s ease; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(31,26,23,.45); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fffdf9; color: var(--ink); border-color: #fffdf9; }
.btn--light:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn::after { transition: transform .45s cubic-bezier(.2,.7,.2,1); }

/* Chips become soft pills */
.chips li { border-radius: 999px; background: var(--surface); font-weight: 500; letter-spacing: .02em; padding: 8px 16px; }

/* Cards and panels: paper, hairline, soft depth */
.panel, .give-card, .seo__card, .form { background: var(--surface); }
.chapter__card { background: rgba(255,253,249,.97); box-shadow: 0 40px 80px -40px rgba(31,26,23,.45), 0 2px 6px rgba(31,26,23,.06); }
.stats strong { font-family: var(--serif); font-weight: 400; font-size: 54px; letter-spacing: -.01em; }
.project__img img, .home img, .gallery img { transition-duration: 1.1s; }
.project__stat strong { font-family: var(--serif); font-weight: 400; }
.quote { font-family: var(--serif); }

/* Footer: deep ink with champagne accents */
.site-footer { background: #17120f; }
.footer__cta em, .footer__cta span, .footer__mark span { color: var(--gold); }
.footer__mark { color: rgba(255,253,249,.92); }

/* Roomier rhythm */
.section { padding-block: clamp(80px, 11vw, 152px); }
@media (max-width: 560px) {
  .brand { letter-spacing: .14em; }
  .nav a { font-size: 11px; letter-spacing: .1em; padding: 10px 6px; }
  .nav a::after { left: 6px; right: 6px; }
  .nav a.nav__cta { margin-left: 4px; padding: 11px 10px; letter-spacing: .12em; }
  .btn { letter-spacing: .18em; padding: 18px 22px; }
}

/* Legibility pass: every text color meets WCAG AA against its background */
:root { --muted: #6b625b; --gold-ink: #7c5f32; --gold-light: #d9b77e; }
#main .panel h3, .skillset h4, .chapter__when, .home__code, .brand__dot { color: var(--gold-ink); }
.footer__cta em, .footer__cta span, .footer__mark span { color: var(--gold-light); }
.mast h1 em, #main .mast h1 em { color: #ec5b93; }
.chapter__link { color: color-mix(in srgb, var(--c) 62%, #1f1a17); border-color: color-mix(in srgb, var(--c) 62%, #1f1a17); }
/* Journey panel: soft shade behind the white city/route text so it reads on every sky */
.jbg__sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(18,10,8,.55) 0%, rgba(18,10,8,.38) 38%, rgba(18,10,8,0) 70%); }
.jbg__info { text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 18px rgba(0,0,0,.3); }
.jbg__info .jpanel__top, .jbg__info .jpanel__meta { opacity: 1; }
.jbg__info .jroute li { opacity: .9; }
.jbg__info .jroute li.is-past, .jbg__info .jroute li.is-here { opacity: 1; }
/* Tablet: let the project stat wrap so two-column cards never overflow */
@media (max-width: 1000px) {
  .project__foot { grid-template-columns: minmax(0, 1fr) auto; }
  .project__stat { white-space: normal; min-width: 0; }
}

/* About: giving back photo */
.give-card { display: flex; flex-direction: column; }
.give-card__img { margin: calc(-1 * clamp(24px, 3vw, 40px)) calc(-1 * clamp(24px, 3vw, 40px)) 22px; }
.give-card__img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; }
.give-card__img figcaption { padding: 10px clamp(24px, 3vw, 40px) 0; font-size: 13px; color: var(--muted); }
@media (max-width: 1000px) { .give-card__img img { aspect-ratio: 16 / 9; } }

/* About: both "more about me" cards share one layout, stacked */
.more-me__grid { grid-template-columns: minmax(0, 1fr); }
.ele-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.ele-card__fig { display: flex; flex-direction: column; }
.ele-card__fig img { flex: 1; min-height: 300px; }
.ele-card__fig figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); background: var(--surface); }
.ele-card--give { background: var(--surface); border: 1px solid var(--hair); }
.ele-card--give .give-card__meta { margin: 0 0 12px; }
@media (max-width: 560px) { .ele-card__fig img { min-height: 0; aspect-ratio: 4 / 3; } }
.ele-card figure img, .ele-card__fig img { height: auto; min-height: 0; flex: none; aspect-ratio: 4 / 3; }
.ele-card { align-items: stretch; }
@media (max-width: 560px) { .ele-card { grid-template-columns: minmax(0, 1fr); } }

/* Golden Bubble case study */
.gb-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); margin: 0 0 clamp(48px, 7vw, 96px); }
.gb-hero figure { margin: 0; overflow: hidden; }
.gb-hero img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; }
.gb-keys { font-family: var(--serif); font-size: 26px; line-height: 1.25; margin: 0; color: var(--ink); }
.gb-step { margin-top: clamp(56px, 8vw, 104px); }
.gb-boards { grid-template-columns: minmax(0, 1fr) minmax(0, 1.17fr); align-items: start; }
.gb-boards img { aspect-ratio: auto; height: auto; object-fit: contain; border: 1px solid var(--line); }
.gb-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 18px; }
.gb-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; }
.gb-pair figure { margin: 0; }
.gb-pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.gb-pair figcaption { margin-top: 10px; font: 500 11.5px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); }
.gb-pair__arrow { font-family: var(--serif); font-size: 32px; color: var(--accent); }
.gb-masonry { columns: 3; column-gap: clamp(10px, 1.4vw, 18px); margin-top: 18px; }
.gb-masonry figure { margin: 0 0 clamp(10px, 1.4vw, 18px); break-inside: avoid; overflow: hidden; }
.gb-masonry img { width: 100%; display: block; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.gb-masonry figure:hover img { transform: scale(1.03); }
@media (max-width: 1000px) { .gb-pairs { grid-template-columns: minmax(0, 1fr); } .gb-boards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .gb-masonry { columns: 2; } .gb-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gb-hero figure:last-child { display: none; } }
.gb-concept { background: var(--surface); border: 1px solid var(--hair); padding: clamp(24px, 3vw, 40px); align-self: stretch; }
.gb-concept__kicker { margin: 0 0 14px; font: 500 11.5px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); }
.gb-concept h3 { margin: 0; font-size: clamp(36px, 3.6vw, 52px); }
.gb-concept__tag { margin: 4px 0 22px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); color: var(--accent); }
.gb-concept dl { margin: 0; display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; }
.gb-concept dt { font: 500 11.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.gb-concept dd { margin: 0; color: var(--ink-2); line-height: 1.65; }
