:root {
  --bg: #000;
  --line: #1c1c1c;

  /* Metallic finishes, applied to text with background-clip */
  --metal-heavy: linear-gradient(180deg, #f2f2f2 0%, #a9a9a9 22%, #3d3d3d 48%, #1b1b1b 52%, #6a6a6a 72%, #c9c9c9 88%, #7d7d7d 100%);
  --metal-bright: linear-gradient(180deg, #ffffff 0%, #d4d4d4 35%, #8e8e8e 58%, #c2c2c2 82%, #9a9a9a 100%);
  --metal: linear-gradient(180deg, #d9d9d9 0%, #9c9c9c 45%, #6f6f6f 55%, #b4b4b4 100%);
  --metal-dim: linear-gradient(180deg, #a6a6a6 0%, #7c7c7c 50%, #9a9a9a 100%);
  --gunmetal: linear-gradient(145deg, #7a7a7a 0%, #2a2a2a 38%, #0d0d0d 60%, #4b4b4b 100%);

  /* Stacked shadows that extrude metallic lettering */
  --extrude: drop-shadow(0 1px 0 #2e2e2e) drop-shadow(0 1px 0 #202020) drop-shadow(0 1px 0 #151515) drop-shadow(0 1px 0 #0c0c0c) drop-shadow(0 14px 18px rgb(0 0 0 / .9));

  --hex: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: #a8a8a8;
  font: 400 16px/1.6 Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Metallic text. The gradient shows through the letterforms. */
h1, h2, h3, .brand span, .eyebrow, .kicker, .lede, .sub, .legend, .links a, .cell p, .status, .visit,
.footer, .footer a, .num, .label, .tagline, .desc, .features li, .ribbon span, .hint {
  background-image: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1, .num, .big { background-image: var(--metal-heavy); }
h2, h3 { background-image: var(--metal-bright); }
.lede, .sub, .legend, .cell p, .footer, .footer a, .label, .desc, .features li, .hint { background-image: var(--metal-dim); }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* ---------- Top progress bar: stepped black to white, one oxblood block ----------
   The whole bar always shows, dimmed; the part you've scrolled through lights up. */
.strip {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  height: 5px;
  box-shadow: 0 1px 0 rgb(255 255 255 / .08), 0 4px 14px rgb(0 0 0 / .6);
  pointer-events: none;
}
.strip span {
  position: relative;
  flex: 1;
  background: var(--c);
}
/* A dark veil over the part you haven't scrolled through yet */
.strip span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / .55);
  clip-path: inset(0 0 0 calc(var(--fill, 0) * 100%));
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  perspective: 1200px;
  overflow: hidden;
}

.hero-3d {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.webgl-ready .hero-3d { opacity: 1; }
.no-webgl .hero { background: radial-gradient(ellipse at 75% 30%, #1d1d1d, #000 70%); }

/* Keep the text readable over the comb and fade into the page */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(0 0 0 / .9) 0%, rgb(0 0 0 / .6) 36%, rgb(0 0 0 / 0) 66%),
    linear-gradient(180deg, rgb(0 0 0 / .55) 0%, transparent 16%, transparent 72%, #000 100%);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-decoration: none;
}
.brand svg { width: 22px; height: 22px; flex: none; }
.brand svg path { fill: #2a2a2a; stroke: #8a8a8a; stroke-width: 1.2; }

.links { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.links a { text-decoration: none; opacity: .8; transition: opacity .15s; }
.links a:hover { opacity: 1; }

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: auto;
  padding: 40px 16px 120px;
  transform-origin: 50% 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.hero-copy a { pointer-events: auto; }

.eyebrow, .kicker {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(50px, 10vw, 118px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.04em;
  filter: var(--extrude);
}

.lede { max-width: 500px; margin: 26px 0 34px; font-size: 18px; }

.hint { margin: 28px 0 0; font-size: 13px; letter-spacing: .04em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border: 1px solid #333;
  border-radius: 999px;
  color: #cfcfcf;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  background: linear-gradient(180deg, #1c1c1c, #050505);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 4px 0 #0a0a0a, 0 10px 24px rgb(0 0 0 / .8);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s;
}
.btn:hover { border-color: #6a6a6a; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 6px 0 #0a0a0a, 0 16px 30px rgb(0 0 0 / .9); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 1px 0 #0a0a0a, 0 4px 10px rgb(0 0 0 / .8); }
.btn.primary {
  border-color: #666;
  color: #0a0a0a;
  background: linear-gradient(180deg, #f0f0f0 0%, #b9b9b9 45%, #8a8a8a 55%, #d6d6d6 100%);
}
.btn.disabled { color: #6a6a6a; border-style: dashed; box-shadow: none; pointer-events: none; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1.5px solid #555;
  border-radius: 14px;
  translate: -50% 0;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: #aaa;
  translate: -50% 0;
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Tech ribbons ---------- */
.ribbons {
  --shift: 0px;
  position: relative;
  height: 190px;
  margin: 10px 0 40px;
  overflow: hidden;
  contain: paint;  /* Safari lets 3D-rotated children escape overflow: hidden without this */
  perspective: 900px;
}
.ribbon {
  position: absolute;
  left: -5%;
  width: 110%;
  padding: 16px 0;
  border-block: 1px solid #2a2a2a;
  background: linear-gradient(180deg, #151515, #070707);
  box-shadow: 0 20px 40px rgb(0 0 0 / .9);
  white-space: nowrap;
}
.ribbon.front { top: 60px; z-index: 1; transform: rotate(-3deg) rotateX(18deg) translateX(var(--shift)); }
.ribbon.back { top: 70px; transform: rotate(3deg) rotateX(-18deg) translateX(calc(var(--shift) * -1)); filter: brightness(.55); }
.track { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; animation: marquee 38s linear infinite; }
.ribbon.back .track { animation-direction: reverse; animation-duration: 46s; }
.ribbon span { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ribbon i { font-style: normal; font-size: 14px; color: #3a3a3a; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 120px;
}
.stat {
  position: relative;
  padding: 26px 22px 24px;
  border: 1px solid #222;
  border-radius: 18px;
  background: linear-gradient(160deg, #161616, #050505 70%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 1px 0 #111, 0 2px 0 #0c0c0c, 0 3px 0 #080808, 0 24px 40px rgb(0 0 0 / .8);
}
.num { display: block; font-size: clamp(48px, 6vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -.04em; filter: var(--extrude); }
.label { display: block; margin-top: 10px; font-size: 14px; font-weight: 500; }

/* ---------- Section heads ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  padding-bottom: 20px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.kicker { margin-bottom: 10px; }
h2 { margin: 0; font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; filter: var(--extrude); }
.sub { margin: 6px 0 0; font-size: 15px; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 16px; clip-path: var(--hex); }
.swatch.gloss { background: radial-gradient(circle at 35% 30%, #8a8a8a, #1a1a1a 55%, #000); }
.swatch.matte { background: #262626; }

/* ---------- Honeycomb overview ---------- */
#hive { margin-bottom: 140px; }
.comb { --s: 272px; --gap: 12px; }
.row { display: flex; justify-content: center; gap: var(--gap); }
/* Pointy-top hexes nest when each row overlaps the previous by a quarter of a cell's height. */
.row + .row { margin-top: calc(var(--s) * -0.2887 + var(--gap) * 0.866); }
.zigzag .row:nth-child(odd) { transform: translateX(calc(var(--s) * -0.25 - var(--gap) / 2)); }
.zigzag .row:nth-child(even) { transform: translateX(calc(var(--s) * 0.25 + var(--gap) / 2)); }

.slot {
  --rx: 0deg; --ry: 0deg; --mx: 36%; --my: 26%;
  position: relative;
  flex: none;
  filter: drop-shadow(0 18px 26px rgb(0 0 0 / .95));
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), filter .3s ease, opacity .9s var(--ease);
}
.slot:hover { z-index: 2; filter: drop-shadow(0 28px 34px rgb(0 0 0 / .95)) drop-shadow(0 0 20px rgb(255 255 255 / .07)); }

/* Gunmetal rim */
.cell {
  position: relative;
  display: block;
  width: var(--s);
  height: calc(var(--s) * 1.1547);
  clip-path: var(--hex);
  background: var(--gunmetal);
  text-decoration: none;
  outline: none;
}
.cell.matte { background: linear-gradient(145deg, #3a3a3a, #141414 55%, #262626); }
.cell:focus-visible { background: linear-gradient(145deg, #fff, #777); }

.cell-inner {
  position: absolute;
  inset: calc(var(--s) * .05);
  clip-path: var(--hex);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--s) * .018);
  padding: 0 15%;
  text-align: center;
  isolation: isolate;
}
.gloss .cell-inner { background: radial-gradient(circle at var(--mx) var(--my), #3f3f3f 0%, #171717 32%, #070707 68%, #000 100%); }
.matte .cell-inner { background: radial-gradient(circle at var(--mx) var(--my), #202020 0%, #131313 55%, #0a0a0a 100%); }

/* Depth where the rim meets the face */
.cell-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 55% 58%, transparent 55%, rgb(0 0 0 / .65) 100%);
}
/* Specular highlight that follows the pointer */
.cell-inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: calc(var(--mx) - 18%);
  top: calc(var(--my) - 7%);
  width: 36%;
  height: 13%;
  border-radius: 50%;
  rotate: -28deg;
  background: radial-gradient(closest-side, rgb(255 255 255 / .38), rgb(255 255 255 / 0));
}
.matte .cell-inner::before { opacity: .15; }

.status { font-size: calc(var(--s) * .042); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h3 { margin: 0; font-size: calc(var(--s) * .088); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.cell p { margin: 0; font-size: calc(var(--s) * .052); line-height: 1.45; font-weight: 500; }
.visit { margin-top: calc(var(--s) * .012); padding-bottom: 1px; font-size: calc(var(--s) * .05); font-weight: 700; border-bottom: 1px solid #555; }
.visit.quiet { border-bottom-color: #333; }

/* ---------- Project details ---------- */
.detail {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: 64px;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 40px;
}
.detail:last-child { border-bottom: 0; }
.detail.flip { grid-template-columns: 7fr 5fr; }
.detail.flip .medal-stage { order: 2; }

.medal-stage {
  --rx: 0deg; --ry: 0deg;
  position: relative;
  display: grid;
  place-items: center;
  height: 380px;
  perspective: 1000px;
}
/* The stage tilts toward the pointer; the medal inside sways on its own. */
.medal-tilt {
  transform-style: preserve-3d;
  transform: rotateX(calc(10deg + var(--rx))) rotateY(var(--ry));
  transition: transform .6s var(--ease);
}
.medal-stage:hover .medal-tilt { transition: transform .15s linear; }
.medal {
  --m: 240px;
  position: relative;
  width: var(--m);
  height: calc(var(--m) * 1.1547);
  transform-style: preserve-3d;
  animation: sway 9s ease-in-out infinite;
}
@keyframes sway {
  0%, 100% { transform: rotateY(-24deg); }
  50% { transform: rotateY(24deg); }
}

.slice, .face {
  position: absolute;
  inset: 0;
  clip-path: var(--hex);
}
/* Stacked slices give the medallion real thickness */
.slice {
  transform: translateZ(calc(var(--z) * 2.4px - 32px));
  background: linear-gradient(145deg, #5a5a5a, #1a1a1a 45%, #0a0a0a 60%, #3a3a3a);
  filter: brightness(calc(.45 + var(--z) * .04));
}
.face {
  transform: translateZ(2px);
  display: grid;
  place-items: center;
  background: var(--gunmetal);
}
.face::before {
  content: "";
  position: absolute;
  inset: 12px;
  clip-path: var(--hex);
  background: radial-gradient(circle at 34% 26%, #464646 0%, #161616 34%, #050505 72%, #000 100%);
}
.matte .face::before { background: radial-gradient(circle at 40% 30%, #222 0%, #131313 60%, #0a0a0a 100%); }
.face::after {
  content: "";
  position: absolute;
  top: 16%;
  left: 18%;
  width: 36%;
  height: 12%;
  border-radius: 50%;
  rotate: -28deg;
  background: radial-gradient(closest-side, rgb(255 255 255 / .35), transparent);
}
.matte .face::after { opacity: .2; }
.face b {
  position: relative;
  z-index: 1;
  font-size: calc(var(--m) * .32);
  font-weight: 800;
  letter-spacing: -.04em;
  background-image: var(--metal-heavy);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: var(--extrude);
}
.medal-shadow {
  position: absolute;
  bottom: 14px;
  left: 50%;
  width: 220px;
  height: 30px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 255 255 / .07), transparent);
  pointer-events: none;
}

.detail-title { font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -.03em; line-height: 1.05; filter: var(--extrude); }
.tagline { margin: 10px 0 18px; font-size: 20px; font-weight: 600; }
.desc { margin: 0 0 22px; max-width: 580px; font-size: 16.5px; }

.features { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.features li { position: relative; padding-left: 26px; font-size: 15.5px; }
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 11px;
  height: 12px;
  clip-path: var(--hex);
  background: linear-gradient(145deg, #bdbdbd, #3a3a3a);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.chips li {
  padding: 5px 12px;
  border: 1px solid #2c2c2c;
  border-radius: 999px;
  background: linear-gradient(180deg, #151515, #0a0a0a);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 2px 0 #0d0d0d;
  color: #a9a9a9;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  padding: 140px 0 170px;
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 120%, #1a1a1a 0%, #000 60%);
  overflow: hidden;
}
/* A honeycomb floor receding into the distance */
.contact::before {
  content: "";
  position: absolute;
  inset: 45% -30% -60%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23444' stroke-width='1.2'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23444' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 50%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 50%, transparent);
  animation: floor 6s linear infinite;
  pointer-events: none;
}
@keyframes floor { to { background-position: 0 100px; } }
.contact .wrap { position: relative; text-align: center; }
.big { margin: 0 0 40px; font-size: clamp(44px, 8vw, 104px); letter-spacing: -.045em; line-height: .98; }
.contact .actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.footer a { text-decoration: none; }

/* ---------- Scroll reveals: things swing up out of the depth ---------- */
.reveal {
  opacity: 0;
  transform: perspective(1200px) translate3d(0, 70px, -120px) rotateX(22deg);
  transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
/* Honeycomb cells keep their pointer tilt once revealed */
.slot.reveal.in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), filter .3s ease, opacity .9s var(--ease); }
.slot.reveal.in:hover { transition: transform .12s linear, filter .3s ease; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .detail, .detail.flip { grid-template-columns: 1fr; gap: 16px; padding: 56px 0; }
  .detail.flip .medal-stage { order: 0; }
  .medal-stage { height: 300px; }
  .medal { --m: 190px; }
}

@media (max-width: 640px) {
  .links a:first-child { display: none; }
  .hero-copy { padding: 16px 16px 110px; }
  .lede { font-size: 17px; }
  .hint { display: none; }
  .hero::after { background: linear-gradient(180deg, rgb(0 0 0 / .55) 0%, rgb(0 0 0 / .7) 55%, #000 100%); }
  .ribbons { height: 150px; }
  .ribbon.front { top: 45px; }
  .ribbon.back { top: 55px; }
  .ribbon span { font-size: 20px; }
  .stat { padding: 20px 16px; }
  .contact { padding: 100px 0 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .track, .medal, .contact::before, .scroll-cue span { animation: none; }
  .slot, .btn, .medal-tilt { transition: none; }
}
