/* =========================================================
   FONTS (self-hosted, latin subset)
   ========================================================= */
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* =========================================================
   TOKENS: Sabres Night
   ========================================================= */
:root {
  --bg: #00172F;
  --card: #06264C;
  --card-2: #0B2F5C;
  --line: #163E6C;
  --ink: #F7F1E3;
  --muted: #A3B5CC;
  --gold: #FCB514;
  --navy: #00172F;

  --wfc-y: #FFCD00;
  --wfc-r: #FF1818;
  --wfc-k: #0A0A0A;
  --cap-ink: #1C1C22;
  --cap-gold: #D5BF56;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --r: 14px;
  --gap: 12px;
  --row: 176px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

/* =========================================================
   BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.tile-title, .m-title, .sec h2, .mail-title, .clock, .wm-name, .stats b {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 18px 16px 32px; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 2px 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; }
.crest-sm { width: 40px; height: 40px; flex: none; transition: transform .6s var(--ease); }
.brand:hover .crest-sm { transform: rotate(-12deg); }
.now { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; text-align: right; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; position: relative; }
.dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--gold); opacity: 0; animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }

/* Section headers */
.sec { display: flex; align-items: baseline; gap: 14px; padding: 48px 4px 14px; }
.sec h2 { font-size: clamp(34px, 4.2vw, 50px); line-height: .95; }
.sec-num { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--gold); }

/* =========================================================
   GRIDS (desktop: 4 columns)
   ========================================================= */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(var(--row), auto); }

.hero {
  grid-template-areas:
    "intro intro photo cap"
    "intro intro photo music"
    "wfc   wfc   hof   social"
    "wfc   wfc   hof   clock";
}
.machines { grid-template-areas: "os os arch arch" "os os arch arch"; }
.camera   { grid-template-areas: "film film p1 p2" "film film p1 p3"; grid-auto-rows: minmax(210px, auto); }
.music    { grid-template-areas: "jams jams jams mic" "jams jams jams cart"; grid-auto-rows: minmax(200px, auto); }
.life     { grid-template-areas: "off off f1 f2" "off off f3 f4"; grid-auto-rows: minmax(220px, auto); }
.grid.contact { grid-template-columns: 1fr; grid-auto-rows: auto; margin-top: 48px; }

.intro { grid-area: intro; } .a-photo { grid-area: photo; } .a-cap { grid-area: cap; } .a-music { grid-area: music; }
.a-wfc { grid-area: wfc; } .a-hof { grid-area: hof; } .a-social { grid-area: social; } .a-clock { grid-area: clock; }
.a-os { grid-area: os; } .a-arch { grid-area: arch; }
.a-film { grid-area: film; } .a-p1 { grid-area: p1; } .a-p2 { grid-area: p2; } .a-p3 { grid-area: p3; }
.a-jams { grid-area: jams; } .a-mic { grid-area: mic; } .a-cart { grid-area: cart; }
.a-off { grid-area: off; } .a-f1 { grid-area: f1; } .a-f2 { grid-area: f2; } .a-f3 { grid-area: f3; } .a-f4 { grid-area: f4; }

/* =========================================================
   TILES
   ========================================================= */
.tile {
  position: relative;
  border-radius: var(--r);
  padding: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s ease;
}
a.tile:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -24px rgba(0, 0, 0, .7); border-color: var(--gold); }
a.tile:active { transform: translateY(-1px) scale(.995); }

.anim .hero .tile { animation: rise .7s var(--ease) both; }
.anim .hero .tile:nth-child(2) { animation-delay: .06s; } .anim .hero .tile:nth-child(3) { animation-delay: .12s; }
.anim .hero .tile:nth-child(4) { animation-delay: .18s; } .anim .hero .tile:nth-child(5) { animation-delay: .24s; }
.anim .hero .tile:nth-child(6) { animation-delay: .3s; } .anim .hero .tile:nth-child(7) { animation-delay: .36s; }
.anim .hero .tile:nth-child(8) { animation-delay: .42s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }

.arrow {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 700;
  background: rgba(255, 255, 255, .16); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .45s var(--ease), background-color .3s ease, color .3s ease;
}
a.tile:hover .arrow { transform: rotate(45deg); background: var(--gold); color: var(--navy); }
.machine .arrow { background: var(--gold); color: var(--navy); }

.label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sub { font-size: 14px; line-height: 1.35; }
.muted { color: var(--muted); }
.gold { color: var(--cap-gold); }
.tile-title { font-size: 26px; line-height: .95; }
.tile-title.big { font-size: clamp(40px, 4.8vw, 62px); line-height: .9; }

/* Intro + logo lockup */
.intro { padding: 26px 28px; gap: 22px; }
.lockup { display: flex; align-items: center; gap: 20px; }
.crest { width: 132px; height: 132px; flex: none; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
.wm { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; border-left: 3px solid var(--gold); }
.wm-name { font-size: clamp(34px, 3.6vw, 46px); line-height: .9; letter-spacing: .01em; }
.wm-name span { display: block; }
.wm-name em { font-style: normal; color: var(--gold); }
.wm-role { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.bio { font-size: 17px; line-height: 1.55; max-width: 46ch; color: var(--muted); }
.bio strong { color: var(--ink); font-weight: 600; }

/* Photo tiles */
.ph { padding: 0; border: 0; background: var(--card-2); }
.ph img, .ph-text > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 16px 14px;
  font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1; text-transform: uppercase; color: #fff;
  background: linear-gradient(to top, rgba(0, 12, 26, .85), rgba(0, 12, 26, 0));
}
.ph figcaption span { display: block; margin-bottom: 4px; font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--gold); }
.a-hof figcaption { font-family: var(--body); font-size: 13px; font-weight: 600; text-transform: none; line-height: 1.3; }

/* Photo tiles with text over them */
.ph-text { border: 0; color: #fff; justify-content: flex-end; background: #000; }
.ph-text > img { transition: transform .8s var(--ease); }
a.ph-text:hover > img { transform: scale(1.04); }
.ph-text::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0, 12, 26, .92) 0%, rgba(0, 12, 26, .5) 42%, rgba(0, 12, 26, 0) 72%);
}
.ph-text .over { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 10px; }
.ph-text .label { color: var(--gold); }
.over-copy { font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, .88); max-width: 50ch; }
.a-music .tile-title { font-size: 24px; }

/* Captivate */
.cap { background: var(--cap-ink); color: #fff; border-color: var(--cap-ink); }
.cap-logo { width: 72%; max-width: min(180px, calc(100% - 44px)); height: auto; margin-top: 6px; }
.cap .sub { color: #BDBDC1; margin-top: 4px; }

/* WFC */
.wfc { background: var(--wfc-k); color: #fff; border-color: var(--wfc-k); padding: 0; }
.wfc-bg { position: absolute; top: 0; right: 0; height: 100%; width: 56%; object-fit: cover; filter: grayscale(.1) contrast(1.05); }
.wfc::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--wfc-k) 42%, rgba(10, 10, 10, .7) 62%, rgba(10, 10, 10, 0) 100%);
}
.wfc-body { position: relative; z-index: 2; padding: 22px 22px 0; display: flex; flex-direction: column; gap: 14px; flex: 1; justify-content: space-between; }
.wfc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.wfc-logo { width: 50%; max-width: 260px; height: auto; }
.pill { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; background: var(--wfc-r); color: var(--wfc-k); }
.wfc-text { display: flex; flex-direction: column; gap: 8px; max-width: 40ch; }
.wfc-hook { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; color: var(--wfc-y); }
.wfc-copy { font-size: 15.5px; line-height: 1.5; color: #D9D9D9; }
.wfc-copy strong { color: #fff; font-weight: 700; }
.marquee { position: relative; z-index: 2; overflow: hidden; background: var(--wfc-y); color: var(--wfc-k); margin-top: 18px; flex: none; }
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 0; white-space: nowrap; }
.marquee span::after { content: "●"; color: var(--wfc-r); margin: 0 16px; font-size: 9px; vertical-align: 2px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-family: var(--body); font-size: 14.5px; font-weight: 700; border: 1.5px solid transparent;
  transition: transform .3s var(--ease), background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.btn.yellow { background: var(--wfc-y); color: var(--wfc-k); }
.btn.ghost { border-color: rgba(255, 255, 255, .32); color: #fff; }
.btn.ghost:hover { border-color: var(--wfc-y); color: var(--wfc-y); }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.glass { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn.glass:hover { background: rgba(255, 255, 255, .26); }
.btn.navy { background: var(--navy); color: var(--gold); }
.btn.outline { border-color: var(--navy); color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: var(--gold); }

/* Social list tile */
.social { padding: 10px 16px; justify-content: center; gap: 2px; }
.social a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; font-weight: 600; font-size: 15.5px; transition: color .2s ease; }
.social a + a { border-top: 1px solid var(--line); }
.social a:hover { color: var(--gold); }
.icon { width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }

/* Clock */
.clock { font-size: 46px; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.clock-tile .sub { margin-top: 6px; }

/* Machines */
.machine { gap: 16px; justify-content: flex-start; padding: 26px; }
.m-head { display: flex; flex-direction: column; gap: 10px; padding-right: 40px; }
.m-head .label { color: var(--gold); }
.m-title { font-size: clamp(34px, 3.8vw, 48px); line-height: .92; }
.m-copy { font-size: 15.5px; line-height: 1.55; color: var(--muted); max-width: 54ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; }
.stats li { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.stats b { font-size: 38px; line-height: 1; color: var(--gold); }
.stats span { font-size: 13px; line-height: 1.3; color: var(--muted); }
.flow { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13.5px; font-weight: 600; }
.flow li:not(:last-child)::after { content: "→"; margin: 0 9px; color: var(--gold); }
.tape { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tape li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tape li::before { content: "▶"; font-size: 10px; color: var(--gold); margin-right: 2px; }
.tape span { flex: 1; font-weight: 600; }
.tape em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Off the clock */
.off { gap: 14px; justify-content: flex-start; padding: 26px; }
.off-copy { font-size: 16.5px; line-height: 1.55; color: var(--muted); max-width: 44ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chips li { font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); }

/* Contact */
.mail { background: var(--gold); color: var(--navy); border-color: var(--gold); flex-direction: row; align-items: center; gap: 20px; padding: 30px 32px; min-height: 170px; }
.mail-title { font-size: clamp(40px, 5.4vw, 70px); line-height: .88; }
.mail .btns { justify-content: flex-end; }

/* Footer */
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 6px 6px; font-size: 14px; color: var(--muted); }
.foot a:hover { color: var(--ink); }
.foot-bio { flex: 0 0 100%; line-height: 1.5; padding: 0 30% 4px 0; }
@media (max-width: 600px) { .foot-bio { padding-right: 0; } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 10;
  background: var(--ink); color: var(--navy); padding: 10px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 960px) {
  :root { --row: 170px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero {
    grid-template-areas:
      "intro  intro"
      "photo  cap"
      "photo  music"
      "wfc    wfc"
      "hof    social"
      "hof    clock";
  }
  .a-wfc { min-height: 420px; }
  .machines { grid-template-areas: "os os" "arch arch"; }
  .camera { grid-auto-rows: minmax(200px, auto); grid-template-areas: "film film" "film film" "p1 p2" "p1 p3"; }
  .music  { grid-auto-rows: minmax(190px, auto); grid-template-areas: "jams jams" "jams jams" "mic cart"; }
  .life   { grid-auto-rows: minmax(200px, auto); grid-template-areas: "off off" "f1 f2" "f3 f4"; }
  .wfc-bg { width: 100%; opacity: .4; object-position: 50% 25% !important; }
  .wfc::before { background: linear-gradient(to top, var(--wfc-k) 35%, rgba(10, 10, 10, .5) 100%); }
}

/* =========================================================
   PHONE
   ========================================================= */
@media (max-width: 600px) {
  :root { --gap: 10px; --row: 156px; }
  .wrap { padding: 12px 12px 24px; }
  .brand span { display: none; }
  .crest-sm { width: 36px; height: 36px; }
  .now { font-size: 12.5px; }
  .tile { padding: 18px; }
  .intro { padding: 20px; gap: 18px; }
  .lockup { gap: 14px; }
  .crest { width: 92px; height: 92px; }
  .wm { padding-left: 14px; gap: 6px; }
  .wm-name { font-size: 30px; }
  .wm-role { font-size: 11px; letter-spacing: .16em; }
  .bio { font-size: 16px; }
  .sec { padding-top: 38px; gap: 10px; }
  .sec h2 { font-size: 28px; }
  .cap-logo { width: 100%; }
  .a-music .label { display: none; }
  .a-music .tile-title { font-size: 20px; }
  .wfc-body { padding: 18px 18px 0; }
  .wfc-logo { width: 62%; }
  .wfc-hook { font-size: 23px; }
  .machine { padding: 20px; }
  .m-title { font-size: 30px; }
  .stats { gap: 8px; }
  .stats li { padding: 10px; }
  .stats b { font-size: 28px; }
  .stats span { font-size: 12px; }
  .tape li { flex-direction: column; gap: 2px; }
  .tape li::before { display: none; }
  .camera { grid-auto-rows: minmax(170px, auto); }
  .music  { grid-auto-rows: minmax(170px, auto); }
  .life   { grid-auto-rows: minmax(170px, auto); }
  .ph figcaption { font-size: 17px; padding: 36px 12px 12px; }
  .ph figcaption span { font-size: 10px; }
  .clock { font-size: 34px; }
  .mail { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .mail .btns { justify-content: flex-start; }
  .arrow { top: 10px; right: 10px; width: 30px; height: 30px; font-size: 14px; }
  .over-copy { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
