/* =========================================================================
   CADEN WURZBACHER — editorial, simplified.
   Warm paper, ink, one vermilion accent. Quiet motion. One dark finale.
   ========================================================================= */

:root {
  --paper:   #f4f0e6;
  --paper-2: #ece7d8;
  --ink:     #17140f;
  --ink-2:   #514a3d;
  --faint:   #8c8474;
  --line:    rgba(23, 20, 15, 0.14);
  --line-2:  rgba(23, 20, 15, 0.30);
  --accent:  #d8361f;

  --display: "Anton", Impact, sans-serif;
  --serif:   "Newsreader", Georgia, serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --gutter: clamp(22px, 5.5vw, 72px);
  --ease: cubic-bezier(0.22, 0.68, 0.18, 1);
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--accent); color: var(--paper); }

.display { font-family: var(--display); font-weight: 400; line-height: 0.86; text-transform: uppercase; }
.label { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }
.tnum { font-variant-numeric: tabular-nums; }
.dot { color: var(--accent); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; z-index: 2; }
.pad { padding-block: clamp(72px, 11vw, 150px); }

/* reveals — ANIMATION based (preview freezes transitions) */
.reveal { opacity: 0; }
.reveal.in { animation: rise 0.8s var(--ease) both; }
.reveal.d1.in { animation-delay: 0.08s; }
.reveal.d2.in { animation-delay: 0.16s; }
.reveal.d3.in { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.mask { display: block; overflow: hidden; padding: 0.06em 0; margin: -0.06em 0; }
.mask > span { display: block; opacity: 0; }
.mask.in > span { animation: maskUp 0.95s var(--ease) both; }
.mask.in > span:nth-child(2) { animation-delay: 0.08s; }
@keyframes maskUp { from { opacity: 0; transform: translateY(108%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .mask > span { opacity: 1 !important; animation: none !important; }
}

/* ============================================================== TOP BAR */
.top { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1.5px solid var(--ink); }
.top-in { display: flex; align-items: center; justify-content: space-between; padding: 15px var(--gutter); }
.top .brand { font-family: var(--display); text-transform: uppercase; font-size: 17px; letter-spacing: 0.02em; white-space: nowrap; }
.top .brand .dot { font-family: var(--display); }
.top nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.top nav a { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); position: relative; padding: 4px 0; white-space: nowrap; }
.top nav a:hover { color: var(--accent); }
.top nav a.active { color: var(--ink); }
.top nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); }
.burger { display: none; }
@media (max-width: 800px) {
  .top nav { display: none; }
  .burger { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
  .top nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1.5px solid var(--ink); }
  .top nav.open a { padding: 14px var(--gutter); border-top: 1px solid var(--line); }
}

/* ================================================================= HERO */
.hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 84px); }
.hero .label.tagline { display: block; margin-bottom: clamp(20px, 3vw, 36px); }
.hero h1 { font-family: var(--display); text-transform: uppercase; line-height: 0.92; letter-spacing: -0.005em; font-size: clamp(38px, 12vw, 155px); }
.hero h1 .dot { font-family: var(--display); }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(30px, 5vw, 76px); align-items: stretch; margin-top: clamp(26px, 4vw, 48px); }
.hero-grid > div:first-child { display: flex; flex-direction: column; }
.hero-lede { font-size: clamp(20px, 2.4vw, 29px); line-height: 1.34; max-width: 24ch; }
.hero-lede .ac { color: var(--accent); font-style: italic; }
.hero-sub { margin-top: 20px; font-size: 16.5px; color: var(--ink-2); max-width: 42ch; }
.hero-cta { display: flex; gap: 24px; margin-top: 28px; margin-bottom: clamp(30px, 5vw, 56px); flex-wrap: wrap; align-items: center; }
.ilink { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 2px solid var(--ink); display: inline-flex; gap: 8px; }
.ilink:hover { color: var(--accent); border-color: var(--accent); }
.ilink.solid { background: var(--ink); color: var(--paper); border: 0; padding: 13px 20px; }
.ilink.solid:hover { background: var(--accent); }
.hero-portrait .frame { border: 1px solid var(--ink); padding: 8px; background: var(--paper-2); }
.hero-portrait .frame image-slot { width: 100%; height: auto; aspect-ratio: 2/3; display: block; }
.hero-portrait .cap { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-portrait { order: -1; max-width: 320px; }
  .hero-grid > div:first-child { display: block; }
  .hero-stats { margin-top: clamp(34px, 6vw, 56px); }
}
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1.5px solid var(--ink); margin-top: auto; }
.hstat { padding: 20px 4px 16px; border-right: 1px solid var(--line); }
.hstat:nth-child(2) { border-right: 0; }
.hstat:nth-child(1), .hstat:nth-child(2) { border-bottom: 1px solid var(--line); }
.hstat:last-child { border-right: 0; }
.hstat .n { font-family: var(--display); font-size: clamp(38px, 5.5vw, 70px); line-height: 0.9; }
.hstat .k { margin-top: 8px; }
@media (max-width: 620px) {
  .hero-cta { gap: 18px; }
}

/* ====================================================== SECTION HEADER */
.shead { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 38px); align-items: baseline; margin-bottom: clamp(38px, 5vw, 66px); }
.shead .idx { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent); }
.shead h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(40px, 8vw, 100px); line-height: 0.92; }
.shead .note { grid-column: 2; font-size: 17.5px; color: var(--ink-2); max-width: 50ch; margin-top: 16px; }
@media (max-width: 600px) { .shead { grid-template-columns: 1fr; } .shead > * { grid-column: 1 !important; } }

/* =============================================================== CAREER */
.career-lead { font-family: var(--serif); font-size: clamp(24px, 3.2vw, 38px); line-height: 1.3; margin-bottom: clamp(40px, 5vw, 64px); max-width: 22ch; }
.career-lead .ac { color: var(--accent); }
.roles { border-top: 1.5px solid var(--ink); }
.role { display: grid; grid-template-columns: 150px 1fr; gap: clamp(16px, 3vw, 46px); padding: clamp(22px, 3vw, 32px) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.role .when { font-family: var(--mono); font-size: 12.5px; color: var(--faint); line-height: 1.5; }
.role .when .now { color: var(--accent); }
.role h3 { font-family: var(--display); text-transform: uppercase; font-size: clamp(22px, 3.2vw, 38px); line-height: 0.9; }
.role .org { font-size: 17px; color: var(--ink-2); margin-top: 6px; }
.role .org .tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line-2); padding: 2px 8px; margin-left: 6px; white-space: nowrap; }
.role p { font-size: 16px; color: var(--ink-2); margin-top: 12px; max-width: 60ch; }
@media (max-width: 640px) { .role { grid-template-columns: 1fr; gap: 6px; } }

/* ============================================================= PROJECTS */
.work { border-top: 1.5px solid var(--ink); }
.work-item { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: clamp(26px, 4vw, 60px); padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); align-items: center; }
.work-item:nth-child(even) .work-media { order: 2; }
.work-no { font-family: var(--mono); font-size: 12.5px; color: var(--accent); letter-spacing: 0.04em; }
.work-item h3 { font-family: var(--display); text-transform: uppercase; font-size: clamp(34px, 5.5vw, 66px); line-height: 0.95; margin: 12px 0 16px; }
.work-item p { color: var(--ink-2); font-size: 17px; max-width: 44ch; margin-bottom: 24px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.work-tags span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line-2); padding: 5px 9px; }
.work-media { border: 1px solid var(--ink); background: var(--paper-2); padding: 9px; }
.work-media .bar { display: flex; align-items: center; gap: 7px; padding: 0 2px 8px; }
.work-media .bar .d { width: 9px; height: 9px; border: 1px solid var(--line-2); border-radius: 50%; }
.work-media .bar .u { margin-left: 8px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.work-media image-slot { width: 100%; height: auto; aspect-ratio: 16/10; display: block; border: 1px solid var(--line); background: #fff; }
@media (max-width: 800px) {
  .work-item, .work-item:nth-child(even) .work-media { grid-template-columns: 1fr; }
  .work-media, .work-item:nth-child(even) .work-media { order: 0; }
}

/* =============================================================== HOCKEY */
.hockey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.scorecard { border: 1.5px solid var(--ink); }
.scorecard .head { display: flex; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1.5px solid var(--ink); }
.scorecard .head .team { font-family: var(--display); text-transform: uppercase; font-size: clamp(20px, 2.6vw, 30px); line-height: 0.92; }
.scorecard .head .when { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); text-align: right; line-height: 1.7; }
.box { display: grid; grid-template-columns: repeat(3, 1fr); }
.box .cell { padding: clamp(18px, 2.6vw, 30px) 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.box .cell:nth-child(3n) { border-right: 0; }
.box .cell:nth-last-child(-n+3) { border-bottom: 0; }
.box .n { font-family: var(--display); font-size: clamp(34px, 5vw, 60px); line-height: 0.86; }
.box .n.ph { color: var(--faint); }
.box .k { margin-top: 8px; }
.hk-note { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: 16px; line-height: 1.6; }
.hk-note b { color: var(--ink); } .hk-note a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.hk-film { display: block; padding: 13px 20px; border-top: 1.5px solid var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.hk-film:hover { background: var(--paper-2); }
.hk-signed { padding: 16px 20px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.hk-signed .pulse { color: var(--accent); }
.hk-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hk-photos image-slot { width: 100%; height: auto; aspect-ratio: 4/5; border: 1px solid var(--ink); }
.hk-photos .wide { grid-column: span 2; aspect-ratio: 3/2; }
@media (max-width: 760px) { .hockey-grid { grid-template-columns: 1fr; } }

/* =============================================================== ATLAS (travel / globe) */
.atlas { background: #0c1015; color: #eef2f7; }
.atlas .shead h2 { color: #fff; }
.atlas .shead .note { color: #9aa6b4; }
.atlas .label { color: #7e8b9c; }
.atlas-intro { display: flex; gap: clamp(16px, 4vw, 60px); flex-wrap: wrap; align-items: flex-end; justify-content: space-between; padding-bottom: clamp(20px, 3vw, 40px); }
.atlas-intro .big { font-family: var(--display); font-size: clamp(80px, 16vw, 200px); line-height: 0.78; }
.atlas-intro .big .ac { color: var(--accent); }
.atlas-intro .meta { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #9aa6b4; text-align: right; line-height: 1.9; }
.atlas-intro .meta b { color: #fff; }
.atlas-hint { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #6c788a; display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.atlas-hint .ln { width: 40px; height: 1px; background: #2c3441; }

/* sticky scroll tour */
.atlas-track { position: relative; }
.atlas-stage { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(20px, 4vw, 64px); padding-inline: var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.globe-holder { position: relative; justify-self: center; width: min(46vw, 60vh); aspect-ratio: 1; }
.globe-holder canvas { width: 100%; height: 100%; display: block; }
.atlas-readout { position: relative; }
.atlas-counter { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 14px; }
.atlas-counter b { color: #fff; }
.atlas-photo-stack { position: relative; width: 100%; max-width: 380px; aspect-ratio: 3/4; margin-bottom: 22px; }
.atlas-photo { position: absolute; inset: 0; opacity: 0; }
.atlas-photo image-slot { width: 100%; height: 100%; border: 1px solid rgba(255,255,255,0.22); background: #0c1015; }
.atlas-city { font-family: var(--display); text-transform: uppercase; font-size: clamp(30px, 4.2vw, 52px); line-height: 0.95; min-height: 1.15em; }
.atlas-country { font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: #9aa6b4; margin-top: 12px; }
.atlas-progress { margin-top: 26px; height: 2px; background: rgba(255,255,255,0.14); position: relative; }
.atlas-progress .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); }
@media (max-width: 840px) {
  .atlas-stage { position: relative; top: auto; min-height: 0; grid-template-columns: 1fr; align-content: start; justify-items: center; gap: clamp(6px, 1.4svh, 12px); padding-block: clamp(8px, 1.6svh, 14px) calc(env(safe-area-inset-bottom, 0px) + clamp(18px, 3svh, 34px)); }
  .globe-holder { width: min(48vw, 21svh, 210px); }
  .atlas-readout { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .atlas-counter { margin-bottom: clamp(4px, 0.9svh, 8px); }
  .atlas-photo-stack { aspect-ratio: 3/4; max-width: min(46vw, 21svh, 190px); margin-bottom: clamp(6px, 1svh, 10px); }
  .atlas-city { font-size: clamp(24px, 6.6vw, 38px); }
  .atlas-country { margin-top: clamp(4px, 0.8svh, 6px); font-size: 11px; }
  .atlas-progress { margin-top: clamp(8px, 1.5svh, 12px); width: min(80%, 620px); }
  .atlas-nav { margin-top: clamp(10px, 1.8svh, 14px); }
}

/* static fallback list (reduced motion / no-JS) */
.atlas-static { display: none; }

/* =============================================================== FOOTER / CONTACT */
.foot { background: var(--ink); color: var(--paper); }
.foot-in { padding: clamp(60px, 9vw, 120px) var(--gutter) calc(clamp(30px, 4vw, 50px) + env(safe-area-inset-bottom, 0px) + clamp(118px, 18svh, 170px)); max-width: var(--maxw); margin: 0 auto; }
.foot h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(48px, 11vw, 150px); line-height: 0.9; }
.foot h2 .ac { color: var(--accent); }
.foot .lede { font-size: clamp(18px, 2.2vw, 25px); color: #c9c2b3; max-width: 34ch; margin: 22px 0 30px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(50px, 7vw, 90px); }
.foot-links a { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.3); padding: 12px 18px; display: inline-flex; gap: 8px; }
.foot-links a.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.foot-links a:hover { border-color: var(--accent); color: var(--accent); }
.foot-links a.solid:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.18); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #8a8273; }
.foot-base a:hover { color: var(--accent); }

image-slot::part(empty) { font-family: var(--mono); }
image-slot { touch-action: pan-y !important; }

/* tagline links */
.tagline a { color: inherit; transition: color 0.2s var(--ease); border-bottom: 1px solid transparent; }
.tagline a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* atlas prev/next buttons */
.atlas-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; padding: 0 16px; pointer-events: auto; }
.atlas-nav button {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--paper); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.22); padding: 8px 14px; border-radius: 999px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.atlas-nav button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* CWLLC inline link in analyst section */
.cwllc-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cwllc-link:hover { color: var(--ink); border-bottom-color: var(--ink); }
.cwllc-arrow {
  display: inline-block;
  font-size: 0.78em;
  font-weight: 900;
  -webkit-text-stroke: 0.6px currentColor;
  margin-left: 2px;
  transition: transform 0.2s var(--ease);
}
.cwllc-link:hover .cwllc-arrow { transform: translate(2px, -2px); }
