/* matt-cross v2 - a personal site set like a sketchbook.
   Tokens first, then base, then each section top to bottom. One motion language:
   entrances 600-700ms ease-out, hovers 160ms, scroll-linked motion only where it accents. */

@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/instrument-serif-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(../assets/fonts/instrument-serif-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../assets/fonts/newsreader-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800; font-display: swap; src: url(../assets/fonts/newsreader-latin-wght-italic.woff2) format('woff2'); }
@font-face { font-family: 'Reenie Beanie'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/reenie-beanie-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/dm-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/dm-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --paper: #f4efe3;
  --paper-hi: #fbf8ef;
  --ink: #26272b;
  --ink-2: #4a4b52;
  --pencil: #62646c;
  --line: rgba(38, 39, 43, 0.16);
  --blue: #2b5aa8;
  --blue-ink: #1b2d52;
  --sky: #a9cdee;
  --red: #c8372d;

  --display: 'Instrument Serif', 'Times New Roman', serif;
  --body: 'Newsreader', Georgia, 'Times New Roman', serif;
  --hand: 'Reenie Beanie', 'Segoe Print', 'Bradley Hand', cursive;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 160ms;
  --t-med: 300ms;
  --t-slow: 650ms;

  --gutter: clamp(20px, 4.5vw, 56px);
  --bar-h: 64px;
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper) url(../assets/img/paper.png);
  background-size: 240px 240px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; z-index: 100; left: 12px; top: -64px; padding: 10px 16px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 0.85rem; border-radius: 10px; transition: top var(--t-fast) var(--ease-out); }
.skip:focus { top: max(12px, env(safe-area-inset-top)); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--mono); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); line-height: 1.5; }
.mono--soft { color: var(--pencil); }
.ph { color: var(--pencil); font-style: italic; text-decoration: underline dashed; text-decoration-color: rgba(98, 100, 108, 0.55); text-underline-offset: 0.28em; text-decoration-thickness: 1px; }
.mono .ph, .mono.ph { text-transform: none; letter-spacing: 0.02em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(84px, 14vh, 168px); position: relative; }
.display { font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 7.4vw, 6.4rem); line-height: 0.95; letter-spacing: -0.012em; }
.display--m { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
.display em { color: var(--blue); }
.section__head { display: grid; gap: 18px; max-width: 60rem; }
.section__intro { font-size: clamp(1.1rem, 1.3vw + 0.7rem, 1.4rem); color: var(--ink-2); max-width: 36em; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); }

/* ---------- reveal: one entrance for everything that scrolls in ----------
   Hidden ONLY under .js-reveal, a class main.js adds after the observer is live. No JS, a failed script,
   or a stale cached script against newer HTML all leave every .reveal element plainly visible. */
.js-reveal .reveal { opacity: 0; translate: 0 18px; transition: opacity var(--t-slow) var(--ease-out) calc(var(--d, 0) * 90ms), translate var(--t-slow) var(--ease-out) calc(var(--d, 0) * 90ms); }
.js-reveal .reveal.is-in { opacity: 1; translate: 0 0; }

/* pencil strokes that draw themselves on (paths get .dr + --i from doodles.js) */
@keyframes draw { from { stroke-dasharray: 1 2; stroke-dashoffset: 1.1; } to { stroke-dasharray: 1 2; stroke-dashoffset: 0; } }
.js-reveal .reveal:not(.is-in) .dr { stroke-dasharray: 1 2; stroke-dashoffset: 1.1; }
.reveal.is-in .dr { animation: draw 1.15s var(--ease-out) calc(var(--i, 0) * 1100ms + 160ms) backwards; }

/* ---------- header ---------- */
.bar {
  position: fixed; z-index: 50; inset: 0 0 auto 0; height: calc(var(--bar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between;
  transition: background-color var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.bar.is-stuck { background: rgba(244, 239, 227, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.bar__logo { color: var(--ink); display: grid; place-items: center; padding: 6px; margin-left: -6px; transition: transform var(--t-fast) var(--ease-out); }
.bar__logo:hover { transform: rotate(-5deg) scale(1.06); }
.bar__logo:active { transform: scale(0.94); }
.bar__nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; }
.bar__nav a { text-decoration: none; padding: 8px 2px; position: relative; color: var(--ink-2); transition: color var(--t-fast) var(--ease-out); }
.bar__nav a:hover { color: var(--ink); }
.bar__nav a:not(.bar__cta)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out); }
.bar__nav a:not(.bar__cta):hover::after, .bar__nav a[aria-current='true']::after { transform: scaleX(1); }
.bar__nav a[aria-current='true'] { color: var(--ink); }
.bar__cta { border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 14px !important; color: var(--ink) !important; transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.bar__cta:hover { background: var(--ink); color: var(--paper) !important; }
.bar__cta:active { transform: scale(0.96); }
.bar__cta[aria-current='true'] { background: var(--ink); color: var(--paper) !important; }

/* ---------- buttons + links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 0.82rem 1.25rem; border-radius: 14px;
  border: 2px solid var(--ink); font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; line-height: 1;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.btn svg { transition: transform var(--t-med) var(--ease-out); }
.btn--primary { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--blue); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn:hover { transform: translate(-1px, -1px); }
.btn--primary:hover { box-shadow: 6px 6px 0 var(--blue); }
.btn--ghost:hover { background: var(--paper-hi); box-shadow: 4px 4px 0 var(--sky); }
.btn--primary:hover svg { transform: translateY(2px); }
.btn--ghost:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--blue); transition-duration: 80ms; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 0.3em; transition: color var(--t-fast) var(--ease-out); }
.link svg { transition: transform var(--t-med) var(--ease-out); }
.link:hover { color: var(--blue); }
.link:hover svg { transform: translate(2px, -2px); }
.link--ph { text-decoration: none; }
.hl { text-decoration: none; background: linear-gradient(transparent 58%, rgba(143, 190, 235, 0.6) 58% 92%, transparent 92%); background-size: 100% 100%; transition: background-color var(--t-fast); border-radius: 3px; padding: 0 0.08em; }
.hl:hover { background: linear-gradient(transparent 40%, rgba(143, 190, 235, 0.85) 40% 96%, transparent 96%); }

/* ============================================================ HERO */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--bar-h) + 16px) 0 clamp(100px, 15vh, 190px); display: grid; align-items: center; overflow: clip; isolation: isolate; }
.hero::before { /* the photo's sky, bleeding out onto the page */
  content: ''; position: absolute; z-index: -2; right: -12%; top: 4%; width: min(78vw, 980px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(143, 190, 235, 0.42), rgba(143, 190, 235, 0.14) 62%, transparent);
}
.hero::after { /* pencil dot grid, fading toward the edges */
  content: ''; position: absolute; z-index: -1; inset: 0;
  background-image: radial-gradient(circle, rgba(38, 39, 43, 0.2) 1px, transparent 1.3px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 35% 45%, #000, transparent 78%); mask-image: radial-gradient(ellipse 70% 65% at 35% 45%, #000, transparent 78%);
  opacity: 0.5;
}
.hero__grid { width: min(100% - 2 * var(--gutter), 1360px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr); gap: clamp(28px, 5vw, 84px); align-items: center; }
.hero__copy { position: relative; z-index: 2; }
.hero__eyebrow { display: flex; gap: 0.7em; align-items: center; margin-bottom: clamp(14px, 3svh, 30px); animation: fade-up 0.6s var(--ease-out) 0.05s backwards; }
.hero__eyebrow span[aria-hidden] { color: var(--blue); }
.hero__name { position: relative; font-family: var(--display); font-weight: 400; font-size: clamp(5.6rem, min(15vw, 23svh), 14rem); line-height: 0.84; letter-spacing: -0.025em; margin-left: -0.04em; }
.hero__hi { position: absolute; left: 0.1em; top: -0.4em; font-family: var(--hand); font-size: 0.26em; line-height: 1; letter-spacing: 0; color: var(--blue); rotate: -5deg; transform-origin: left bottom; animation: hand-in 0.5s var(--ease-out) 0.55s backwards; }
.hero__line { display: block; overflow: hidden; padding: 0.04em 0.12em 0.1em 0.04em; margin: -0.04em -0.12em -0.1em -0.04em; }
.hero__word { position: relative; display: inline-block; animation: rise 0.75s var(--ease-out) backwards; }
.hero__line:nth-of-type(2) .hero__word { animation-delay: 0.08s; }
.hero__line:nth-of-type(3) .hero__word { animation-delay: 0.2s; }
.hero__name em { font-style: italic; color: var(--blue-ink); padding-right: 0.06em; }
.hero__scribble { position: absolute; left: 2%; right: 4%; bottom: 0.02em; width: 94%; height: 0.17em; overflow: visible; }
.hero__scribble path { stroke: var(--red); fill: none; stroke-linecap: round; stroke-width: 5px; animation: draw 0.6s var(--ease-out) 0.85s backwards; }
.hero__lede { margin-top: clamp(20px, 4svh, 40px); max-width: 33em; font-size: clamp(1.12rem, 0.5vw + 0.95rem, 1.42rem); line-height: 1.5; color: var(--ink-2); animation: fade-up 0.7s var(--ease-out) 0.35s backwards; }
.hero__actions { margin-top: clamp(20px, 4svh, 36px); display: flex; flex-wrap: wrap; gap: 14px 16px; animation: fade-up 0.7s var(--ease-out) 0.45s backwards; }

@keyframes rise { from { transform: translateY(108%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes hand-in { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -10% 0 0); } }

/* the print: taped into the page, sketched Matt perched on its edge */
.print { position: relative; z-index: 1; justify-self: end; width: 100%; max-width: 660px; margin-top: clamp(64px, 12svh, 120px); rotate: 2.2deg; animation: drop 0.8s var(--ease-out) 0.12s backwards; }
@keyframes drop { from { opacity: 0; translate: 0 -28px; rotate: -1.4deg; scale: 1.04; } }
.print__sheet { position: relative; background: var(--paper-hi); padding: clamp(8px, 1.1vw, 14px) clamp(8px, 1.1vw, 14px) 0; border-radius: 3px; box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 1px 2px rgba(38, 39, 43, 0.18), 0 22px 36px -16px rgba(27, 45, 82, 0.5); transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out); }
@media (hover: hover) { .print:hover .print__sheet { transform: rotate(-1.6deg) translateY(-5px); box-shadow: 0 1px 2px rgba(38, 39, 43, 0.18), 0 30px 40px -18px rgba(27, 45, 82, 0.55); } }
.print > .print__sheet { padding-bottom: clamp(10px, 1.4vw, 18px); }
.print__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #16263f; box-shadow: inset 0 0 0 1px rgba(38, 39, 43, 0.12); }
.print__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.print__caption { font-family: var(--hand); font-size: clamp(1.45rem, 2.1vw, 2rem); line-height: 1; color: var(--ink-2); padding: 10px 6px 12px; rotate: -1deg; }
.print__sketch { position: absolute; z-index: 3; --sw: clamp(88px, 14vw, 172px); width: var(--sw); height: auto; left: 33%; bottom: calc(100% - 0.77 * var(--sw) - 10px); overflow: visible; pointer-events: none; }
.print__marks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.print__marks .marks path { fill: none; stroke-linecap: round; }
.print__marks path.dr { animation: draw 0.8s var(--ease-out) calc(1.05s + var(--i, 0) * 450ms) backwards; }
.note { position: absolute; font-family: var(--hand); font-size: clamp(1.35rem, 2.7vw, 2.1rem); line-height: 0.92; width: max-content; max-width: 36%; pointer-events: none; animation: hand-in 0.8s var(--ease-out) 1s backwards; }
.note--sky { color: var(--blue-ink); rotate: -4deg; max-width: 27%; }

html:not(.js) .note { display: none; }
.tape { position: absolute; z-index: 2; width: clamp(62px, 8vw, 96px); height: clamp(20px, 2.4vw, 28px); background: rgba(255, 242, 190, 0.62); box-shadow: 0 1px 2px rgba(38, 39, 43, 0.14); clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 100% 0, 96% 50%, 100% 100%, 92% 92%, 88% 100%, 0 100%, 3% 50%); }
.tape--a { left: -20px; top: -8px; rotate: -38deg; }
.tape--b { right: -22px; top: -6px; rotate: 34deg; }

.skyline { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(150px, 27vh, 280px); color: var(--ink); opacity: 0.5; pointer-events: none; }
.skyline path { fill: none; stroke: currentColor; stroke-linecap: round; }
.skyline path.dr { animation: draw 0.55s var(--ease-out) calc(0.4s + var(--i, 0) * 1050ms) backwards; }

.hero__cue { position: absolute; z-index: 3; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); translate: -50% 0; display: grid; justify-items: center; gap: 4px; text-decoration: none; color: var(--ink-2); padding: 6px 10px; animation: fade-up 0.6s var(--ease-out) 1.5s backwards; transition: color var(--t-fast); }
.hero__cue:hover { color: var(--blue); }
@supports (animation-timeline: scroll()) {
  .hero__cue { animation: fade-up 0.6s var(--ease-out) 1.5s backwards, cue-out linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 22vh; }
  .print { animation: drop 0.8s var(--ease-out) 0.12s backwards, drift linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 100svh; }
}
@keyframes cue-out { to { opacity: 0; } }
@keyframes drift { to { translate: 0 34px; } }

/* ============================================================ NOW */
.section__label { grid-column: 1 / 4; padding-top: 0.9rem; display: grid; align-content: start; gap: 6px; }
.now__body { grid-column: 4 / 11; display: grid; gap: 28px; }
.now__big { font-family: var(--display); font-size: clamp(2rem, 4.3vw, 3.7rem); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.now__small { font-size: clamp(1.1rem, 1vw + 0.8rem, 1.35rem); max-width: 34em; color: var(--ink-2); }
.now__doodle { grid-column: 11 / 13; grid-row: 1; justify-self: end; width: min(150px, 100%); height: auto; overflow: visible; margin-top: 8px; }
.now__doodle path { fill-opacity: 1; }

/* ============================================================ WORK */
.project { position: relative; }
.project__meta { display: flex; align-items: center; gap: 14px; }
.project__no { color: var(--pencil); }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 12px 4px 10px; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--ink); background: var(--paper-hi); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.chip--ph { border-style: dashed; border-color: var(--pencil); background: transparent; }
.chip--ph i { background: transparent; border: 1.5px dashed var(--pencil); }
.project__title { font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: -0.01em; }
.project__one { color: var(--ink-2); }

.project--feature { margin-top: clamp(48px, 9vh, 104px); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(28px, 5vw, 84px); align-items: start; }
.project--feature .project__visual { position: sticky; top: calc(var(--bar-h) + 28px); }
.sheet { position: relative; background: var(--paper-hi); border-radius: 4px; padding: clamp(12px, 2vw, 22px) clamp(12px, 2vw, 22px) 12px; rotate: -1.2deg; box-shadow: 0 1px 2px rgba(38, 39, 43, 0.16), 0 24px 40px -22px rgba(27, 45, 82, 0.42); transition: rotate var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out); }
@media (hover: hover) { .sheet:hover { rotate: -0.3deg; } }
.sheet .tape--a { left: auto; right: 26px; top: -12px; rotate: 6deg; }
.sheet .doodle { width: 100%; height: auto; overflow: visible; }
.doodle path { fill-opacity: 1; }
.doodle text { font-kerning: none; }
.sheet__note { margin-top: 8px; text-align: center; }
.project--feature .project__story { padding-top: 6px; display: grid; gap: 16px; }
.project--feature .project__title { font-size: clamp(2.8rem, 5.4vw, 4.8rem); }
.project--feature .project__one { font-size: clamp(1.25rem, 1.2vw + 0.9rem, 1.55rem); line-height: 1.35; }
.project__body { display: grid; gap: 10px; margin-top: 8px; }
.project__body h4 { margin-top: 14px; color: var(--blue); font-weight: 500; }
.project__list { display: grid; gap: 8px; }
.project__list li { padding-left: 28px; position: relative; }
.project__list li::before { content: ''; position: absolute; left: 0; top: 0.78em; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); rotate: -7deg; }
.project__facts { display: grid; gap: 14px; margin: 6px 0 8px; padding: 16px 18px; border: 1.5px dashed var(--line); border-radius: 12px; }
.project__facts dt { color: var(--pencil); }
.project__body .link { justify-self: start; margin-top: 8px; font-size: 1.1rem; }

.project--stub { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(20px, 4vw, 56px); padding: clamp(18px, 2.4vw, 30px); border: 1.5px dashed rgba(98, 100, 108, 0.55); border-radius: 18px; background: rgba(251, 248, 239, 0.45); transition: translate var(--t-med) var(--ease-out), background-color var(--t-med) var(--ease-out); }
.project--stub.project--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.project--stub.project--flip .project__visual { order: 2; }
@media (hover: hover) { .project--stub:hover { translate: 0 -4px; background: rgba(251, 248, 239, 0.8); } }
.project--stub .project__story { display: grid; align-content: center; gap: 10px; }
.project--stub .blank { aspect-ratio: 200 / 130; display: grid; place-items: center; border-radius: 10px; background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(38, 39, 43, 0.04) 9px 10px); }
.project--stub .doodle--blank { width: 100%; height: auto; }
.project--stub .doodle--blank path { stroke-dasharray: 5 6; }
.project--stub .project__title { font-size: clamp(2rem, 3.4vw, 3rem); margin-top: 4px; }
.project--stub .project__one, .project--stub .project__why { font-size: 1.08rem; line-height: 1.45; }
.work__draft { margin-top: clamp(40px, 7vh, 80px); }

/* ============================================================ SCENES BETWEEN PROJECTS */
.sport { margin-block: clamp(56px, 11vh, 120px); }
.sport__stage { width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.scene { display: block; width: 100%; height: auto; overflow: visible; }
.sport__copy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: 'lab txt' 'ttl txt'; column-gap: clamp(20px, 4vw, 64px); row-gap: 10px; align-items: start; margin-top: clamp(8px, 2vh, 24px); }
.sport__copy > .mono { grid-area: lab; }
.sport__title { grid-area: ttl; font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 4.1vw, 3.5rem); line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }
.sport__text { grid-area: txt; display: grid; gap: 14px; max-width: 34em; padding-top: 4px; color: var(--ink-2); }
.sport--flip .sport__copy { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: 'txt lab' 'txt ttl'; }
.sport--flip .sport__text { justify-self: end; }

/* ============================================================ ABOUT */
.about__body { grid-column: 4 / 9; display: grid; gap: 18px; align-content: start; }
.about__text { max-width: 32em; color: var(--ink-2); font-size: clamp(1.12rem, 0.8vw + 0.9rem, 1.32rem); }
.about__print { grid-column: 9 / 13; align-self: start; justify-self: end; width: min(100%, 340px); }
.print__sheet--small { rotate: -2.2deg; padding-bottom: 0; }
.print__sheet--small .print__photo { aspect-ratio: 4 / 5; }
.print__sheet--small .print__photo img { object-position: 50% 50%; }
.print__sheet--small .tape--a { left: 50%; margin-left: -40px; top: -14px; rotate: 3deg; }

/* ============================================================ CONTACT */
.contact { padding-bottom: clamp(72px, 12vh, 140px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 80px); align-items: center; }
.contact__stage { max-width: 380px; justify-self: center; width: 100%; }
.contact__body { display: grid; gap: 18px; justify-items: start; }
.contact__title { font-family: var(--display); font-weight: 400; font-size: clamp(4.4rem, 12vw, 10rem); line-height: 0.9; letter-spacing: -0.025em; }
.contact__lede { max-width: 30em; font-size: clamp(1.12rem, 0.9vw + 0.9rem, 1.35rem); color: var(--ink-2); }
.contact__mail { position: relative; font-family: var(--display); font-style: italic; font-size: clamp(1.45rem, 3.4vw, 2.6rem); line-height: 1.2; text-decoration: none; padding-bottom: 12px; color: var(--blue-ink); overflow-wrap: anywhere; transition: color var(--t-fast); }
.contact__mail:hover { color: var(--blue); }
.contact__underline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 14px; overflow: visible; }
.contact__underline path { fill: none; stroke: var(--blue); stroke-width: 3px; stroke-linecap: round; }
.contact__mail:hover .contact__underline path { animation: draw 0.6s var(--ease-out); }
.contact__links { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 8px; }

.foot { border-top: 1px solid var(--line); padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot__row a { text-decoration: none; }
.foot__row a:hover { color: var(--blue); }

/* ============================================================ RESPONSIVE */
@media (max-width: 1000px) {
  .project--feature { grid-template-columns: minmax(0, 1fr); }
  .project--feature .project__visual { position: relative; top: 0; }
  .project--stub, .project--stub.project--flip { grid-template-columns: minmax(0, 1fr); }
  .project--stub.project--flip .project__visual { order: 0; }
  .about__body { grid-column: 4 / 13; }
  .about__print { grid-column: 4 / 13; justify-self: start; margin-top: 28px; }
  .now__body { grid-column: 4 / 13; }
  .now__doodle { grid-column: 4 / 13; grid-row: 2; justify-self: start; width: 96px; margin-top: 18px; }
}
@media (max-width: 860px) {
  .hero { padding-bottom: clamp(130px, 22vh, 200px); align-items: start; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero__copy { display: contents; }
  .hero__eyebrow { order: 1; }
  .hero__name { order: 2; }
  .print { order: 3; justify-self: center; max-width: 560px; margin-top: clamp(14px, 3vh, 34px); }
  .hero__lede { order: 4; margin-top: 0; }
  .hero__actions { order: 5; margin-top: 0; }
  .hero__grid { display: flex; flex-direction: column; align-items: flex-start; }
  .print { align-self: center; width: 100%; }
  .sport__copy, .sport--flip .sport__copy { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'lab' 'ttl' 'txt'; row-gap: 12px; }
  .sport--flip .sport__text { justify-self: start; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__stage { order: 2; max-width: 260px; justify-self: start; }
}
@media (max-width: 700px) {
  :root { --bar-h: 56px; }
  .hero__eyebrow .eb-long { display: none; }
  .skyline { height: clamp(90px, 15vh, 130px); }
  .print { margin-top: 36px; }
  .print__photo { aspect-ratio: 4 / 5; }
  .print__photo img { object-position: 50% 50%; }
  .hero__name { font-size: clamp(5.6rem, 27vw, 8.6rem); }
  .section__label { grid-column: 1 / 13; padding-top: 0; margin-bottom: 18px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
  .now__body, .about__body, .about__print { grid-column: 1 / 13; }
  .now__doodle { grid-column: 1 / 13; }
  .bar__nav { gap: 13px; font-size: 0.68rem; letter-spacing: 0.06em; }
  .bar__cta { padding: 6px 10px !important; }
  .note { max-width: 46%; }
}
@media (max-width: 380px) {
  .bar__nav { gap: 10px; font-size: 0.64rem; }
}
@media (min-width: 1700px) {
  :root { --maxw: 1320px; }
  body { font-size: 1.2rem; }
  .hero__grid { width: min(100% - 2 * var(--gutter), 1680px); }
  .hero__name { font-size: clamp(5.6rem, min(14vw, 24svh), 20rem); }
  .hero__lede { font-size: 1.6rem; }
  .print { max-width: 820px; }
}

/* ============================================================ REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js-reveal .reveal { opacity: 1; translate: none; }
  .dr { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
}
