/* =========================================================================
   YangMing · personal portfolio
   Apple-flavoured minimal: true black, Satoshi (SF fallback), tight display
   tracking, roomy body text, pill controls, large radii, hairline borders.
   One white accent. No light theme.
   ========================================================================= */

/* ---- Tokens -------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Apple dark-mode system colours */
  --paper: #000000;              /* systemBackground */
  --paper-raised: #0E0E0E;
  --paper-2: #171717;
  --paper-sunken: #0A0A0B;
  --ink: #FFFFFF;                /* label */
  --ink-soft: #C9C9C9;
  --muted: #8A8A8A;
  --faint: #5A5A5A;
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --accent: #FFFFFF;             /* mono: white is the only accent */
  --accent-ink: #FFFFFF;
  --accent-wash: rgba(255, 255, 255, 0.08);
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px -12px rgba(0,0,0,.8);
  --shadow-lift: 0 2px 8px rgba(0,0,0,.5), 0 20px 48px -20px rgba(0,0,0,.9);

  --sans: "General Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --display: "Satoshi", var(--sans);
  --serif: var(--sans);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 720px;
  --prose: 44rem;
  --radius: 16px;
  --radius-sm: 12px;
  --pill: 980px;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.34rem + 0.8vw, 2.1rem);
  --step-3:  clamp(2rem, 1.68rem + 1.6vw, 3.2rem);
  --step-4:  clamp(2.6rem, 2rem + 3vw, 4.8rem);
  --step-5:  clamp(3.2rem, 2.3rem + 4.4vw, 6.4rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.028em; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: 1.28rem; letter-spacing: -0.022em; }
h4 { font-size: 1.1rem; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
p a:not(.btn) { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; text-decoration-color: color-mix(in oklab, var(--accent) 45%, transparent); transition: text-decoration-color 0.3s var(--ease); }
p a:not(.btn):hover { text-decoration-color: var(--accent); }


.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); font-weight: 350; }
.muted { color: var(--muted); }

/* ---- Layout -------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.2rem, 5vw, 3rem); }
.prose { max-width: var(--prose); }
.section { padding-block: clamp(2.4rem, 4vw, 3.6rem); }
.section-tight { padding-block: clamp(1.8rem, 3vw, 2.6rem); }
main { display: block; }
.divider { height: 1px; background: var(--line-soft); border: 0; }

/* ---- Skip link ----------------------------------------------------------- */
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 200; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 8px; transition: top 0.2s ease; }
.skip-link:focus { top: 1rem; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  /* centered without transform: a transform here would become the containing
     block for the fixed mobile nav panel */
  position: fixed; top: 16px; left: 0; right: 0; margin-inline: auto; width: max-content; z-index: 100;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: rgba(10, 10, 10, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 0 8px;
  max-width: calc(100vw - 2rem);
  white-space: nowrap;
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; height: 48px; padding-inline: 1.15rem; }
main { padding-top: 84px; }
.brand { font-family: var(--display); font-size: 0.92rem; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; flex: none; }
.brand:hover { color: var(--accent-ink); }
.nav { display: flex; align-items: center; gap: clamp(0.4rem, 1.6vw, 1.7rem); }
.nav a { font-size: 0.86rem; color: var(--muted); position: relative; padding: 0.3rem 0; white-space: nowrap; display: inline-flex; align-items: center; transition: color 0.25s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px; background: var(--accent); transition: right 0.35s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { right: 0; opacity: 0.55; }
.header-actions { display: flex; align-items: center; gap: 0.4rem; }

.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.icon-btn:hover { background: var(--paper-sunken); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  /* anchored to the pill: the header's backdrop-filter makes it the containing
     block, so absolute positioning here is the predictable choice */
  .nav {
    position: absolute; top: calc(100% + 10px); left: 50%;
    width: 78vw; max-width: 320px;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0.4rem 1.2rem 0.9rem;
    transform: translate(-50%, -8px); opacity: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav.open { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
  .nav a { font-size: 1.05rem; padding: 0.85rem 0; width: 100%; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); }
  .nav a::after { display: none; }
}

/* ---- Nav dropdown (Apple-style hover panel under Passions) --------------- */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.caret { display: inline-block; flex: none; width: 0; height: 0; margin-left: 0.4em; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-top: 4px solid currentColor; opacity: 0.6; transition: transform 0.25s var(--ease); }
.has-dropdown:hover .caret, .has-dropdown:focus-within .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 190px; padding: 0.5rem; display: grid; gap: 2px;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity 0.22s var(--ease), transform 0.22s var(--ease); z-index: 130;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge over the gap */
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { padding: 0.55rem 0.9rem; border-radius: 9px; font-size: 0.9rem; color: var(--ink-soft); white-space: nowrap; }
.dropdown a::after { display: none; }
.dropdown a:hover { background: color-mix(in oklab, var(--accent) 14%, transparent); color: var(--ink); }
@media (max-width: 860px) {
  .nav-item.has-dropdown { display: block; width: 100%; }
  .caret { display: none; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; min-width: 0; padding: 0 0 0 1rem; border: none; background: transparent; box-shadow: none; }
  .dropdown a { border-bottom: 1px solid var(--line-soft); width: 100%; }
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-size: 1rem; font-weight: 500; letter-spacing: -0.01em;
  padding: 0.72em 1.35em; border-radius: var(--pill);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { transform: translateY(-1px); background: #D8D8D8; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.24); background: var(--paper-raised); transform: translateY(-1px); }
.btn-text { padding: 0; color: var(--accent-ink); font-weight: 500; }
.btn-text::after { content: ""; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---- Reveal animation ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- Page transition (fallback for browsers without view transitions) ---- */
@view-transition { navigation: auto; }
.page-fade { animation: pageIn 0.6s var(--ease) both; }
/* opacity only: a transform on <body> (even identity, while the animation fills) would
   create a containing block and break every position:fixed descendant, e.g. the wave overlay */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .page-fade { animation: none; } }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 6.5rem) clamp(3rem, 7vw, 5rem); }
.hero-name { font-size: var(--step-5); letter-spacing: -0.03em; line-height: 0.98; }
.hero-sub { margin-top: 1.4rem; font-size: var(--step-1); color: var(--ink-soft); font-weight: 350; max-width: 30ch; }
.hero-intro { margin-top: 1.8rem; max-width: 46ch; color: var(--muted); font-size: var(--step-0); }
.hero .btn-row { margin-top: 2.6rem; }
.hero-meta { margin-top: 3.4rem; display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); }
.hero-meta .item .k { font-size: 0.84rem; color: var(--muted); }
.hero-meta .item .v { font-family: var(--serif); font-size: 1.05rem; color: var(--ink-soft); margin-top: 0.25rem; }

/* ---- Section heading block ----------------------------------------------- */
.section-head { max-width: 40rem; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.section-head h2 { margin-top: 0.9rem; }
.section-head p { margin-top: 1.1rem; color: var(--muted); }
.numbered { font-family: var(--mono); color: var(--faint); font-size: 0.8rem; letter-spacing: 0.1em; }

/* ---- Cards / grids ------------------------------------------------------- */
.grid { display: grid; gap: 0.7rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
a.card:hover, .card.hoverable:hover { background: var(--paper-2); border-color: rgba(255,255,255,0.16); transform: translateY(-1px); }
.card h3 { font-size: 1.05rem; }
.card .kicker { font-size: 0.84rem; color: var(--muted); margin-bottom: 0.5rem; display: block; }
.card p { color: var(--muted); font-size: 0.95rem; margin-top: 0.35rem; }
.card .card-foot { margin-top: 1.3rem; display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.9rem; color: var(--accent-ink); font-weight: 500; }
.card .card-foot svg { width: 14px; height: 14px; transition: transform 0.35s var(--ease); }
a.card:hover .card-foot svg { transform: translateX(3px); }

/* ---- Media placeholder --------------------------------------------------- */
.media {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem; text-align: center;
  background:
    repeating-linear-gradient(135deg, var(--line-soft) 0 1px, transparent 1px 11px),
    var(--paper-sunken);
  border: 1px dashed var(--line); border-radius: 20px;
  color: var(--faint); padding: 1.5rem; overflow: hidden;
}
.media[data-ratio="16-9"] { aspect-ratio: 16 / 9; }
.media[data-ratio="4-3"] { aspect-ratio: 4 / 3; }
.media[data-ratio="3-2"] { aspect-ratio: 3 / 2; }
.media[data-ratio="1-1"] { aspect-ratio: 1 / 1; }
.media[data-ratio="3-4"] { aspect-ratio: 3 / 4; }
.media .media-icon { width: 26px; height: 26px; opacity: 0.6; }
.media .media-label { font-size: 0.84rem; }
.media .media-note { font-size: 0.8rem; max-width: 32ch; line-height: 1.4; }
.media.tall { min-height: 320px; }

/* ---- Timeline ------------------------------------------------------------ */
.timeline { position: relative; max-width: 62rem; margin-inline: auto; padding-left: clamp(2rem, 6vw, 4rem); }
.timeline-track { position: absolute; left: clamp(0.6rem, 2vw, 1.2rem); top: 0.6rem; bottom: 0.6rem; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.timeline-track .fill { position: absolute; top: 0; left: 0; right: 0; height: 0; background: linear-gradient(var(--accent), var(--accent-ink)); transition: height 0.15s linear; }

.tl-item { position: relative; padding-block: clamp(1rem, 2.4vw, 1.6rem); }
.tl-item::before { /* node */
  content: ""; position: absolute;
  left: calc(clamp(0.6rem, 2vw, 1.2rem) - clamp(2rem, 6vw, 4rem) + 1px);
  top: clamp(1.7rem, 3.6vw, 2.4rem);
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line);
  transform: translateX(-50%); transition: border-color 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease); z-index: 1;
}
.tl-item.active::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-wash); }

.tl-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-raised); overflow: hidden; transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.tl-card:hover { border-color: color-mix(in oklab, var(--accent) 26%, var(--line)); }
details.tl-card summary { list-style: none; cursor: pointer; padding: clamp(1.1rem, 2.2vw, 1.5rem) clamp(1.2rem, 2.4vw, 1.7rem); display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem; }
details.tl-card summary::-webkit-details-marker { display: none; }
.tl-when { font-size: 0.86rem; color: var(--muted); }
.tl-title { font-family: var(--serif); font-size: var(--step-1); margin-top: 0.35rem; line-height: 1.15; }
.tl-tag { font-size: 0.8rem; color: var(--faint); margin-top: 0.45rem; }
.tl-plus { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: transform 0.45s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease); margin-top: 0.2rem; }
details.tl-card[open] .tl-plus { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.tl-plus svg { width: 15px; height: 15px; }

.tl-body { padding: 0 clamp(1.2rem, 2.4vw, 1.7rem); overflow: hidden; }
.tl-body-inner { padding-bottom: clamp(1.2rem, 2.4vw, 1.6rem); display: grid; gap: 1.1rem; border-top: 1px solid var(--line-soft); padding-top: 1.2rem; }
.tl-field .lbl { font-size: 0.84rem; color: var(--muted); display: block; margin-bottom: 0.25rem; }
.tl-field p { color: var(--ink-soft); font-size: 0.98rem; }
/* JS-driven smooth open */
details.tl-card .tl-body { height: 0; transition: height 0.5s var(--ease); }
details.tl-card.no-js-open .tl-body { height: auto; }

/* ---- Immersive passion pages --------------------------------------------- */
.passion-hero { padding-block: clamp(5rem, 12vw, 9rem) clamp(2.5rem, 6vw, 4.5rem); position: relative; }
.passion-hero .idx { font-family: var(--mono); color: var(--accent-ink); letter-spacing: 0.2em; font-size: 0.8rem; }
.passion-hero h1 { font-size: var(--step-5); margin-top: 0.8rem; }
.passion-hero .lead { margin-top: 1.4rem; max-width: 40ch; }
[data-tint] { --accent: var(--tint, var(--accent)); }

.split { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 780px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.pull { font-family: var(--serif); font-size: var(--step-2); line-height: 1.25; color: var(--ink); max-width: 20ch; }
.pull .mk { color: var(--accent-ink); }

.stat-row { display: flex; flex-wrap: wrap; gap: 2.4rem; }
.stat .n { font-family: var(--serif); font-size: var(--step-3); color: var(--ink); line-height: 1; }
.stat .l { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; max-width: 22ch; }

/* ---- Facts / lists ------------------------------------------------------- */
.facts { display: grid; gap: 0; }
.facts .row { display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--line-soft); }
.facts .row:last-child { border-bottom: 1px solid var(--line-soft); }
.facts .row .k { font-size: 0.88rem; color: var(--muted); padding-top: 0.1rem; }
.facts .row .v { color: var(--ink-soft); }
@media (max-width: 640px) { .facts .row { grid-template-columns: 1fr; gap: 0.35rem; } }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.tag { font-size: 0.8rem; font-family: var(--mono); letter-spacing: 0.03em; color: var(--ink-soft); border: 1px solid var(--line); padding: 0.35em 0.85em; border-radius: 100px; background: var(--paper-raised); }

/* ---- Callout / note ------------------------------------------------------ */
.note { border-left: 2px solid var(--accent); background: transparent; padding: 0.2rem 0 0.2rem 1.2rem; border-radius: 0; }
.note .lbl { font-size: 0.86rem; color: var(--muted); display: block; margin-bottom: 0.4rem; }
.note p { color: var(--ink-soft); }

/* ---- Project / failure entries ------------------------------------------- */
.entry { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-bottom: 0.7rem; transition: border-color 0.22s var(--ease); }
.entry:hover { border-color: rgba(255,255,255,0.16); }
.entry-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
@media (max-width: 780px) { .entry-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.entry h3 { font-size: 1.08rem; }
.entry .status { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.78rem; font-weight: 500; letter-spacing: -0.01em; text-transform: none; margin-top: 0.55rem; color: var(--muted); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--pill); padding: 0.24em 0.7em; }
.entry .status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.entry .status.live .dot { background: #fff; }
.entry .status.closed .dot { background: #3A3A3A; }
.entry .status.learning .dot { background: #6A6A6A; }
.qa { display: grid; gap: 1.1rem; }
.qa .q { font-size: 0.84rem; letter-spacing: -0.01em; color: var(--muted); margin-bottom: 0.2rem; }
.qa .a { color: var(--ink-soft); }

/* ---- Contact ------------------------------------------------------------- */
.contact-links { display: block; }
@media (max-width: 560px) { .contact-links { grid-template-columns: 1fr; } }
.contact-link { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); transition: opacity 0.3s var(--ease); }
.contact-link:hover { opacity: 0.85; }
.contact-link .ico { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--paper-sunken); color: var(--ink); }
.contact-link .ico svg { width: 19px; height: 19px; }
.contact-link .t { font-weight: 500; }
.contact-link .s { font-size: 0.85rem; color: var(--muted); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem) 2.5rem; margin-top: 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { font-size: 1.4rem; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 0.8rem; max-width: 34ch; }
.footer-col h4 { font-size: 0.88rem; color: var(--muted); font-weight: 500; margin-bottom: 0.9rem; }
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; padding: 0.3rem 0; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.6rem; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 0.82rem; }
.social-row { display: flex; gap: 0.4rem; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.social-row a:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.social-row svg { width: 17px; height: 17px; }

/* ---- Utilities ----------------------------------------------------------- */
.center { text-align: center; margin-inline: auto; }
.mt-1 { margin-top: 0.8rem; } .mt-2 { margin-top: 1.6rem; } .mt-3 { margin-top: 2.4rem; } .mt-4 { margin-top: 3.4rem; }
.mb-2 { margin-bottom: 1.6rem; }
.stack > * + * { margin-top: 1.1rem; }
.big-quote { font-family: var(--serif); font-size: var(--step-3); line-height: 1.24; letter-spacing: -0.015em; max-width: 24ch; }
.text-accent { color: var(--accent-ink); }
.cta-band { background: transparent; border-top: 1px solid var(--line-soft); border-radius: 0; padding: clamp(2rem, 4vw, 3rem) 0 0; text-align: left; }
.cta-band p { color: var(--muted); max-width: 46ch; margin-top: 0.6rem; }
.cta-band .btn-row { margin-top: 1.4rem; }

/* =========================================================================
   Personal home: scroll scenes + handcrafted per-section animations
   ========================================================================= */

.scroll-cue .dot { width: 22px; height: 34px; border: 1.5px solid var(--line); border-radius: 12px; position: relative; }
.scroll-cue .dot::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; background: var(--accent); border-radius: 2px; transform: translateX(-50%); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 70% { opacity: 0; transform: translate(-50%, 12px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .dot::after { animation: none; opacity: 1; } }

/* ---- Generic scene ------------------------------------------------------- */
.scene { position: relative; padding-block: clamp(2.2rem, 4vw, 3.4rem); border-top: 1px solid var(--line-soft); }
.scene-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; position: relative; z-index: 2; }
.scene.alt .scene-text { order: 2; }
@media (max-width: 820px) { .scene-grid { grid-template-columns: 1fr; } .scene.alt .scene-text { order: 0; } }
.scene-index { font-size: 0.86rem; color: var(--muted); display: flex; align-items: center; gap: 0.6em; }
.scene-index::before { content: ""; width: 2em; height: 1px; background: var(--accent); }
.scene h2 { font-size: var(--step-2); margin-top: 0; }

/* Home hero: the name in serif, everything else plain and tight */
.home-hero { min-height: 34vh; display: flex; flex-direction: column; justify-content: center; padding-block: 2.4rem 1.6rem; }
.home-hero h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
.home-hero .hero-inner { max-width: none; }
.home-hero h1 { margin-bottom: 1.1rem; }
.home-hero .btn-row { margin-top: 1.8rem; }
.scene-text p { color: var(--muted); margin-top: 1.1rem; max-width: 42ch; }
.scene-text .meta-line { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.scene-text .btn-text { margin-top: 1.6rem; display: inline-flex; align-items: center; gap: 0.5em; font-weight: 500; }
.scene-text .btn-text svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.scene-text .btn-text:hover svg { transform: translateX(4px); }

/* Scene visual panel holds the placeholder image + the animated motif */
.scene-visual { position: relative; }
.scene-visual .media { position: relative; z-index: 2; }

/* Motif layer is an ambient animated backdrop for the whole scene */
.motif { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.motif svg { width: 100%; height: 100%; overflow: visible; }
/* Keep the visual column readable above the motif */
.scene-visual, .scene-text { position: relative; z-index: 2; }

/* Scene text reveal: the one scene animation that stays — a quiet fade-up */
.scene .scene-text > * { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.scene.play .scene-text > * { opacity: 1; transform: none; }
.scene.play .scene-text > *:nth-child(2) { transition-delay: 0.06s; }
.scene.play .scene-text > *:nth-child(3) { transition-delay: 0.12s; }
.scene.play .scene-text > *:nth-child(4) { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) { .scene .scene-text > * { opacity: 1 !important; transform: none !important; } }

.thread-row { display: block; }
@media (max-width: 820px) { .thread-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .thread-row { grid-template-columns: 1fr; } }
.thread { display: block; padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); transition: opacity 0.3s var(--ease); }
.thread:hover { opacity: 0.85; }
.thread .t { font-weight: 600; font-size: 1.05rem; }
.thread .s { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; }

/* =========================================================================
   Fill-in placeholders (temporary; replace with real copy)
   ========================================================================= */
.ph { display: block; position: relative; border: 0; border-left: 2px solid rgba(255,255,255,0.14); border-radius: 0; padding: 0.1rem 0 0.1rem 1rem; margin-top: 1rem; background: transparent; color: var(--muted); font-family: var(--sans); font-style: normal; font-weight: 400; font-size: 0.98rem; line-height: 1.6; max-width: none; }
h1.ph-h, h2.ph-h, h3.ph-h { border: 0; padding: 0; color: var(--faint); display: block; }

/* =========================================================================
   Fencing: a pinned, scroll-scrubbed fight scene that plays before the page
   content. Two fencers clash, the right one parries and is disarmed; the epee
   flies to center, grows into a background figure, and the scene fades out.
   ========================================================================= */
.fence-stage { position: relative; height: 220vh; z-index: 0; }
.fence-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.fence-spot { position: absolute; inset: 0; background: radial-gradient(ellipse 56% 52% at 50% 44%, color-mix(in oklab, var(--accent) 28%, transparent), transparent 72%); }
.fence-scene { position: relative; width: min(94%, 1150px); height: auto; }
.fence-scene .piste rect { fill: color-mix(in oklab, var(--accent) 22%, transparent); }
.fence-scene .piste line { stroke: color-mix(in oklab, var(--accent) 55%, transparent); stroke-width: 2; }
.fence-scene .limb { stroke: var(--ink); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.fence-scene .head { fill: var(--ink); }
.fence-scene .blade { stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.fence-scene .grip { stroke: var(--accent); stroke-width: 8; stroke-linecap: round; }
.fence-scene .guard { fill: var(--accent); }
/* iconic fencing mask: black mesh front, light shell and bib; the head group is
   drawn after the arms so the mask sits over them */
.fence-scene .mask-back { fill: #f3f1ea; stroke: #23231f; stroke-width: 2.5; stroke-linejoin: round; }
.fence-scene .mask-front { fill: #1d1c19; }
.fence-scene .mask-bib2 { fill: #f3f1ea; stroke: #23231f; stroke-width: 2.5; stroke-linejoin: round; }
/* comic clash sounds that pop around the fight */
.fence-scene .clash { font-family: var(--hand); font-weight: 700; fill: var(--accent); opacity: 0; }
/* after the fight: the page intro sits over the stage's final screen and fades in at eye level */
.fence-hero { margin-top: -100vh; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; opacity: 0; }

/* =========================================================================
   Home intro: the real hero title types itself in place (same size + spot),
   then the rest of the page fades in around it. Nothing else shows until then,
   so there is no flash of content. The .intro class is added on <html> by the
   head script before first paint.
   ========================================================================= */
.intro .site-header,
.intro .site-footer,
.intro .note-strip,
.intro .scene,
.intro .section,
.intro .hero-xl .hero-tag,
.intro .hero-xl .hero-sub,
.intro .band { opacity: 0; transition: opacity 0.6s var(--ease); }
.intro-reveal .site-header,
.intro-reveal .site-footer,
.intro-reveal .note-strip,
.intro-reveal .scene,
.intro-reveal .section,
.intro-reveal .home-hero .hero-field,
.intro-reveal .home-hero .ph,
.intro-reveal .home-hero .btn-row,
.intro-reveal .home-hero .scroll-cue { opacity: 1; }
/* hero title: hidden until typing begins (prevents a full-word flash), then letters fade in one by one */
.intro .hero-xl .mega { opacity: 0; }
.intro.intro-typing .hero-xl .mega { opacity: 1; }
.intro .hero-xl .mega .ltr { opacity: 0; transition: opacity 0.3s var(--ease); }
.intro.intro-typing .hero-xl .mega .ltr { opacity: 1; }
.intro-caret { display: inline-block; width: 0.05em; margin-left: 0.04em; background: var(--accent); color: transparent; animation: ldblink 0.9s steps(1) infinite; }
.intro-reveal .intro-caret { opacity: 0; }
@keyframes ldblink { 50% { opacity: 0; } }

/* =========================================================================
   Slow-load overlay for non-home pages: the name is stroke-drawn, then fills in.
   ========================================================================= */
.loader { position: fixed; inset: 0; z-index: 400; background: var(--paper); display: grid; place-items: center; opacity: 0; transition: opacity 0.5s var(--ease); }
.loader.on { opacity: 1; }
.loader.off { opacity: 0; pointer-events: none; }
.ld-draw { width: min(82vw, 620px); height: auto; }
.ld-draw text { font-family: var(--serif); font-size: 108px; }
.ld-draw tspan { fill: transparent; stroke: var(--ink); stroke-width: 1.3; stroke-dasharray: 560; stroke-dashoffset: 560; animation: lddraw 0.85s var(--ease) forwards, ldfill 0.6s ease forwards; }
@keyframes lddraw { to { stroke-dashoffset: 0; } }
@keyframes ldfill { to { fill: var(--ink); } }
@media (prefers-reduced-motion: reduce) {
  .ld-draw tspan { animation: none; stroke-dashoffset: 0; fill: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .fence-stage { display: none; } }

/* ---- Collapsible sections ------------------------------------------------ */
.disc-head { cursor: pointer; display: flex; align-items: center; gap: 0.6rem; user-select: none; padding: 1rem 1.2rem; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); transition: background 0.2s var(--ease), border-color 0.2s var(--ease); }
.disc-head:hover { background: var(--paper-2); border-color: rgba(255,255,255,0.16); }
.disc-head.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-color: transparent; }
.card .disc-head, .entry .disc-head { font-size: 1.05rem; font-weight: 600; padding: 0; background: transparent; border: 0; }
.card .disc-body.open, .entry .disc-body.open { background: transparent; border: 0; margin: 0; }
.card .disc-body.open > .disc-inner, .entry .disc-body.open > .disc-inner { padding: 0.5rem 0 0; }
.disc-arrow { color: var(--faint); font-weight: 400; line-height: 1; flex: none; font-size: 0.95em; transform-origin: 50% 55%; transition: transform 0.28s var(--ease), color 0.2s var(--ease); }
.disc-head:hover .disc-arrow { color: var(--muted); }
.disc-head.open .disc-arrow { transform: rotate(90deg); }
.disc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
.disc-body.open { grid-template-rows: 1fr; }
.disc-inner { overflow: hidden; min-height: 0; }
.disc-body.open { background: var(--paper-raised); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); margin-bottom: 0.7rem; }
.disc-body.open > .disc-inner { padding: 0.2rem 1.2rem 1.1rem; }
@media (prefers-reduced-motion: reduce) { .disc-body { transition: none; } .disc-arrow { transition: none; } }

/* ---- Images -------------------------------------------------------------- */
/* Hero portrait: a rounded module beside the name on wide screens, above it
   on narrow ones. */
/* text stacks in column 1; the portrait is pinned to column 2 across all four
   text rows, so auto-placement cannot interleave them */
.home-hero .hero-inner { display: grid; grid-template-columns: 1fr 210px; gap: 0 2rem; align-items: start; }
.home-hero .hero-inner > * { grid-column: 1; }
.home-hero .portrait {
  grid-column: 2; grid-row: 1 / span 4; align-self: start;
  width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line);
  object-fit: cover; object-position: 50% 16%; aspect-ratio: 4 / 5;
}
@media (max-width: 620px) {
  .home-hero .hero-inner { grid-template-columns: 1fr; }
  .home-hero .hero-inner > * { grid-column: 1; }
  .home-hero .portrait { grid-column: 1; grid-row: auto; max-width: 170px; margin-bottom: 1.1rem; }
}

/* Focen logo: on its own plate, and inline in a project entry */
.logo-plate { display: grid; place-items: center; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; }
.logo-plate img { width: min(180px, 46%); height: auto; border-radius: 22%; }
.logo-mark { width: 84px; height: auto; border-radius: 20%; border: 1px solid var(--line); }

/* =========================================================================
   Editorial hero: oversized name, statement marquee, hover-reveal index.
   ========================================================================= */
.stage { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 3.5rem); }

.hero-xl { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); }
.meta-row { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 0.9rem; margin-bottom: clamp(1.2rem, 3vw, 2.4rem); }
.meta-v { font-size: 0.94rem; color: var(--ink-soft); font-weight: 500; }
.meta-row > div:last-child { text-align: right; }

/* the name: as large as the viewport allows, one word per line */
.mega { font-family: var(--display); font-weight: 700; line-height: 0.82; letter-spacing: -0.045em; text-transform: none;
  font-size: clamp(3.4rem, 15.5vw, 15rem); margin: 0; text-wrap: nowrap; }
.mega span { display: block; }
.mega .l2 { text-indent: 0.02em; }

.hero-tag { font-family: var(--display); margin-top: clamp(1rem, 2.6vw, 1.9rem); font-size: clamp(0.95rem, 1.7vw, 1.35rem);
  font-weight: 500; color: var(--ink); letter-spacing: -0.015em; }
.hero-tag .sep { color: var(--faint); margin-inline: 0.5em; }
.hero-sub { margin-top: 0.6rem; color: var(--muted); font-size: 0.98rem; max-width: 44ch; }

/* statement band: scrolls sideways forever, pauses on hover */
.band { border-block: 1px solid var(--line); overflow: hidden; padding-block: clamp(0.7rem, 1.6vw, 1.1rem); background: var(--paper); }
.band-track { display: flex; width: max-content; gap: 2.5rem; will-change: transform; }
.band span { font-family: var(--display); font-size: clamp(1.6rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -0.035em;
  white-space: nowrap; color: var(--ink); }
.band span.ghost { color: transparent; -webkit-text-stroke: 1px var(--faint); }
@media (prefers-reduced-motion: reduce) { .band-track { transform: none !important; } }

/* index rows: big type, hover fills the row */
.index-list { border-top: 1px solid var(--line); }
.index-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem;
  border-bottom: 1px solid var(--line); padding: clamp(0.9rem, 2vw, 1.4rem) 0.4rem;
  transition: background 0.3s var(--ease), padding-inline 0.3s var(--ease); position: relative; }
.index-row:hover { background: var(--paper-raised); padding-inline: 1rem 0.9rem; }
.index-t { font-family: var(--display); font-size: clamp(1.35rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.index-m { font-size: 0.82rem; color: var(--muted); text-align: right; white-space: nowrap; }
.index-row .go { opacity: 0; transform: translateX(-6px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  font-size: 1.3rem; color: var(--ink); }
.index-row:hover .go { opacity: 1; transform: translateX(0); }
@media (max-width: 640px) { .index-m { display: none; } .index-row { grid-template-columns: 1fr auto; } }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: clamp(1.1rem, 2.4vw, 1.8rem) 0.6rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { font-family: var(--display); display: block; font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.stat span { display: block; margin-top: 0.5rem; font-size: 0.86rem; letter-spacing: -0.01em; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } }

/* =========================================================================
   Pinned hero + editorial body
   ========================================================================= */
.hero-stage { height: 320vh; position: relative; }
.hero-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  justify-content: center; gap: clamp(1rem, 3vh, 2.2rem); overflow: hidden; }

.hero-top { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2.5rem; align-items: end; }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }

/* the name: two stacked lines that collapse into one as you scroll */
.mega { font-family: var(--display); font-weight: 700; line-height: 0.84; letter-spacing: -0.045em;
  font-size: clamp(3rem, 13vw, 12rem); margin: 0; display: flex; flex-direction: column; }
.mega span { display: block; white-space: nowrap; }

.shots { position: relative; width: clamp(150px, 17vw, 240px); aspect-ratio: 4 / 5;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line); flex: none; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.9s var(--ease); }
.shot.on { opacity: 1; }
.shot:nth-child(1) { object-position: 50% 16%; }

@media (max-width: 780px) {
  .hero-top { grid-template-columns: 1fr; align-items: start; }
  .hero-side { align-items: flex-start; }
  .shots { width: 130px; }
}

/* section headings in the body */
.sec-h { font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600;
  color: var(--muted); margin-bottom: clamp(1rem, 2.4vw, 1.8rem); }

/* work showcase: big media block + text, the reference sites' main body unit */
.work { display: grid; gap: clamp(1rem, 2.4vw, 1.8rem); }
.work-item { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center; padding: clamp(1.2rem, 2.4vw, 1.8rem); border: 1px solid var(--line);
  border-radius: 22px; background: var(--paper-raised);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.work-item:hover { background: var(--paper-2); border-color: rgba(255,255,255,0.18); transform: translateY(-2px); }
.work-media { aspect-ratio: 4 / 3; border-radius: 16px; background: #000; display: grid; place-items: center;
  overflow: hidden; border: 1px solid var(--line); }
.work-media img { width: 46%; height: auto; border-radius: 22%; }
.work-media.alt span { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; }
.work-meta h3 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); letter-spacing: -0.03em; }
.work-meta p { margin-top: 0.6rem; color: var(--muted); max-width: 54ch; }
.work-tags { display: block; margin-top: 0.9rem; font-size: 0.86rem; color: var(--faint); }
@media (max-width: 720px) { .work-item { grid-template-columns: 1fr; } }

/* close */
.close { padding-block: clamp(3rem, 8vw, 6rem); }
.close-h { font-family: var(--display); font-size: clamp(1.6rem, 4.4vw, 3.2rem); font-weight: 700;
  letter-spacing: -0.035em; max-width: 20ch; }
.close-links { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: clamp(1.2rem, 2.6vw, 2rem); }

/* wordmark plate stands in where there is no logo yet */
.work-media .plate { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem); color: var(--ink); }
.work-media .plate.sym { font-size: clamp(2rem, 5vw, 3.4rem); color: var(--muted); }
.work.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work.two .work-item { grid-template-columns: 1fr; align-items: start; }
.work.two .work-media { aspect-ratio: 16 / 9; }
.work.two .work-meta h3 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin-top: 1rem; }
.work.two .work-meta p { font-size: 0.95rem; }
@media (max-width: 820px) { .work.two { grid-template-columns: 1fr; } }

/* ---- Bigger hero: name and photo both scale up ------------------------- */
.hero-top { grid-template-columns: 1fr auto; align-items: center; }
.mega { font-size: clamp(3.4rem, 16vw, 15rem); }
.shots { width: clamp(190px, 24vw, 360px); }
.hero-tag { font-size: clamp(1.05rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.02em; }
@media (max-width: 780px) { .shots { width: 46vw; } }

/* ---- Full-page project showcase --------------------------------------- */
.showcase { min-height: 100vh; display: flex; align-items: center;
  border-top: 1px solid var(--line); padding-block: clamp(3rem, 8vh, 6rem); }
.showcase-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; width: 100%; }
.showcase.alt .showcase-media { order: 2; }
.showcase-media { aspect-ratio: 4 / 3; border-radius: 24px; border: 1px solid var(--line);
  background: var(--paper-raised); display: grid; place-items: center; overflow: hidden; }
.showcase-media img { width: 40%; height: auto; border-radius: 22%; }
.showcase-media .plate { font-family: var(--display); font-weight: 700; letter-spacing: -0.04em;
  font-size: clamp(2.4rem, 7vw, 5.5rem); }
.showcase-h { font-family: var(--display); font-weight: 700; letter-spacing: -0.045em; line-height: 0.92;
  font-size: clamp(3rem, 9vw, 8rem); }
.showcase-copy p { margin-top: clamp(1rem, 2vw, 1.6rem); color: var(--ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.2rem); max-width: 50ch; }
.showcase-meta { display: block; margin-top: 1.1rem; color: var(--faint); font-size: 0.92rem; }
.showcase-go { display: inline-flex; align-items: center; gap: 0.5em; margin-top: clamp(1.4rem, 3vw, 2.2rem);
  font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.35rem);
  border-bottom: 2px solid var(--line); padding-bottom: 0.25rem; transition: border-color 0.25s var(--ease), gap 0.25s var(--ease); }
.showcase-go:hover { border-color: var(--ink); gap: 0.85em; }
@media (max-width: 820px) {
  .showcase { min-height: auto; }
  .showcase-in { grid-template-columns: 1fr; }
  .showcase.alt .showcase-media { order: 0; }
}

/* ---- Bigger section headers and item names ----------------------------- */
.sec-h { font-size: clamp(2rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.04em;
  color: var(--ink); margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }
.work.two .work-meta h3 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: -0.035em; }
.close-h { font-size: clamp(2rem, 6vw, 5rem); }

/* Keep the whole pinned frame inside one screen on short viewports: cap the
   display type and the photo by viewport height, not just width. */
.hero-stage { margin-top: -84px; }          /* main's nav padding, reclaimed */
.hero-pin { padding-top: 72px; gap: clamp(0.5rem, 2vh, 1.6rem); }
.mega { font-size: min(clamp(3.4rem, 16vw, 15rem), 21vh); }
.shots { width: min(clamp(190px, 24vw, 360px), 30vh); }
.band { padding-block: clamp(0.5rem, 1.4vh, 1rem); }
.band span { font-size: min(clamp(1.6rem, 5vw, 4.2rem), 8vh); }
.hero-tag { font-size: min(clamp(1.05rem, 2.4vw, 2rem), 3.4vh); margin-top: 0; }
@media (max-width: 780px) { .shots { width: min(46vw, 26vh); } }

/* ---- Photo: bigger, and it sits over the band ------------------------- */
/* The second shot is a wide landscape frame and he stands left of centre,
   so centre-cropping cut him awkwardly. Anchor the crop on him. */
.shot:nth-child(2) { object-position: 29% 40%; }

.hero-top { position: relative; z-index: 3; }
.shots {
  width: min(clamp(230px, 31vw, 460px), 42vh);
  position: relative; z-index: 3;
  margin-bottom: clamp(-7rem, -9vh, -3rem);   /* dips down into the band */
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.9);
}
.band { position: relative; z-index: 1; }     /* passes behind the photo */
@media (max-width: 780px) {
  .shots { width: min(52vw, 30vh); margin-bottom: clamp(-3.5rem, -5vh, -1.5rem); }
}

/* Photo larger again. The name is nowrap, so its cap is tuned to leave room
   beside the photo rather than overflowing the row. */
.shots { width: min(clamp(260px, 36vw, 560px), 52vh); margin-bottom: clamp(-9rem, -11vh, -4rem); }
.mega { font-size: min(clamp(3rem, 13vw, 15rem), 17vh); }
@media (max-width: 780px) {
  .shots { width: min(60vw, 34vh); margin-bottom: clamp(-4rem, -6vh, -2rem); }
  .mega { font-size: min(clamp(2.6rem, 14vw, 15rem), 16vh); }
}

/* ---- Photo runs the full height of the pinned screen ------------------- */
:root { --photoW: clamp(300px, 40vw, 680px); }

/* .hero-pin is sticky, so it is already the containing block; .hero-top must
   stay static or it would capture the absolute photo instead. */
.hero-top { position: static; grid-template-columns: 1fr;
  padding-right: calc(var(--photoW) + clamp(1rem, 3vw, 3rem)); }
.hero-pin > .stage:last-child { padding-right: calc(var(--photoW) + clamp(1rem, 3vw, 3rem)); }

.shots {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: var(--photoW); height: 100%;
  aspect-ratio: auto; margin: 0;
  border: 0; border-left: 1px solid var(--line); border-radius: 0;
  box-shadow: -30px 0 70px -30px rgba(0,0,0,0.95);
  z-index: 3;
}
.band { z-index: 1; }   /* keeps running behind the photo */

@media (max-width: 780px) {
  :root { --photoW: 42vw; }
  .shots { width: var(--photoW); }
}

/* ---- Spotlight: each showcase grows into the screen as it arrives -------- */
.showcase { overflow: hidden; }
.chapter { padding-block: clamp(2.4rem, 6vh, 4rem) 0; }
.chapter .sec-h { margin-bottom: 0; }

/* ---- Clash Display carries the big type; Satoshi carries everything else --- */
.mega { font-size: min(clamp(3.6rem, 15vw, 18rem), 20vh); font-weight: 700; letter-spacing: -0.03em; line-height: 0.88; }
.band span { font-weight: 700; letter-spacing: -0.02em; }
.showcase-h { letter-spacing: -0.03em; }
.sec-h, .close-h { letter-spacing: -0.03em; }
h1, h2, h3, h4 { letter-spacing: -0.02em; }
.brand { font-weight: 600; letter-spacing: -0.01em; }

/* ---- Satoshi Light for the big type; General Sans for reading ----------- */
.mega { font-weight: 300; letter-spacing: -0.035em; line-height: 0.9; }
.band span { font-weight: 400; letter-spacing: -0.02em; }
.band span.ghost { -webkit-text-stroke: 1px var(--faint); }
.showcase-h { font-weight: 300; letter-spacing: -0.03em; }
.sec-h, .close-h { font-weight: 300; letter-spacing: -0.025em; }
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.02em; }
.hero-tag { font-weight: 500; }
.brand { font-weight: 500; }
.work-meta h3 { font-weight: 400; }

/* ---- Cutout portrait: no frame, no fill, so the band shows through ------- */
.shots { border: 0; box-shadow: none; background: transparent; }
.shot { object-fit: contain; object-position: 50% 100%; }   /* feet on the floor, nothing cropped */
.shot:nth-child(1) { object-position: 50% 100%; }

/* ---- Each brand's own face on its showcase title -------------------------- */
.showcase-h.brand-focen { font-family: "Sora", var(--display); font-weight: 700; letter-spacing: -0.04em; }
.showcase-h.brand-somba { font-family: "Newsreader", Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -0.02em; line-height: 0.95; }

/* ---- Bigger logos in the two brand showcases --------------------------- */
.showcase-media img { width: 62%; border-radius: 22%; }

/* Somba: the stones float on the frame itself, so there is no square to seam */
.showcase-media img.somba-mark { width: 58%; border-radius: 0; }

/* ---- Contact ------------------------------------------------------------ */
.contact-hero { padding-block: clamp(2rem, 6vh, 4rem) clamp(1rem, 2vh, 1.6rem); }
.contact-h { font-family: var(--display); font-weight: 300; font-size: clamp(3rem, 9vw, 7.5rem); letter-spacing: -0.035em; line-height: 0.95; }
.contact-sub { margin-top: clamp(1rem, 2vw, 1.5rem); color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 52ch; }
.contact-body { padding-bottom: clamp(3rem, 8vh, 6rem); }
.cform { display: grid; gap: 1rem; max-width: 720px; }
.f-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f { display: grid; gap: 0.45rem; }
.f span { font-size: 0.86rem; color: var(--muted); }
.f input, .f textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.85rem 1rem; transition: border-color 0.2s var(--ease), background 0.2s var(--ease); }
.f input:focus, .f textarea:focus { outline: none; border-color: rgba(255,255,255,0.4); background: var(--paper-2); }
.f textarea { resize: vertical; min-height: 9rem; }
.f-actions { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.4rem; }
.f-note { color: var(--muted); font-size: 0.9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-alt { margin-top: 1.4rem; color: var(--faint); font-size: 0.92rem; }
.contact-alt a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .f-row.two { grid-template-columns: 1fr; } }
.contact-sub a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.contact-sub a:hover { text-decoration-color: var(--ink); }
.showcase-h.brand-pvm { font-family: "DM Sans", var(--display); font-weight: 700; letter-spacing: -0.035em; }

/* PVM's artwork has its own inset, so it needs more of the frame to read at the same size */
.showcase-media img.pvm-mark { width: 82%; border-radius: 0; }
/* Instagram glyph as the media for the content section */
.showcase-media .ig-mark { width: 38%; height: auto; color: var(--ink); }

/* ---- Contact, centred ------------------------------------------------- */
.contact-hero.centered { text-align: center; padding-top: clamp(3rem, 10vh, 6rem); }
.contact-hero.centered .contact-sub { margin-inline: auto; }
.contact-body.centered .cform { margin-inline: auto; }
.contact-body.centered .f-actions { justify-content: center; }
.contact-body.centered .contact-alt { text-align: center; }

/* ---- Blog ---------------------------------------------------------------- */
.blog-list { max-width: 720px; margin-inline: auto; padding-bottom: clamp(4rem, 12vh, 8rem); text-align: center; }
.blog-empty { color: var(--muted); }
.blog-empty a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.post-list { display: grid; gap: 0; text-align: left; }
.post { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.post:last-child { border-bottom: 1px solid var(--line); }
.post h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.8rem); letter-spacing: -0.02em; }
.post time { color: var(--faint); font-size: 0.9rem; white-space: nowrap; }
.post p { grid-column: 1 / -1; color: var(--muted); margin-top: 0.2rem; }

/* ---- Blog post page ------------------------------------------------------ */
.article { max-width: 680px; margin-inline: auto; padding-block: clamp(2.5rem, 8vh, 5rem) clamp(4rem, 12vh, 8rem); }
.back { color: var(--faint); font-size: 0.9rem; }
.back:hover { color: var(--ink); }
.article-h { font-family: var(--display); font-weight: 300; font-size: clamp(2.2rem, 6vw, 4.2rem); letter-spacing: -0.03em; line-height: 1; margin-top: 1.2rem; }
.article-date { display: block; color: var(--faint); margin-top: 0.9rem; font-size: 0.92rem; }
.article-body { margin-top: 2.4rem; font-size: 1.12rem; line-height: 1.7; color: var(--ink-soft); }
.article-body p { margin: 0 0 1.2em; }
.article-body h2 { font-size: 1.6rem; margin: 2em 0 0.6em; letter-spacing: -0.02em; }
.article-body h3 { font-size: 1.25rem; margin: 1.6em 0 0.5em; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.article-body blockquote { margin: 1.4em 0; padding-left: 1.2em; border-left: 2px solid var(--line); color: var(--muted); font-style: italic; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.post-list .post { text-decoration: none; }
.post-list .post:hover h2 { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--faint); }
