/* 1O1 ONE OF ONE — tokens and rules come from DESIGN.md */

@font-face { font-family: "Druk XCond"; src: url("../assets/fonts/DrukXCondensed-Super.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Favorit Ext"; src: url("../assets/fonts/FavoritExtended-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Favorit Ext"; src: url("../assets/fonts/FavoritExtended-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Favorit Ext"; src: url("../assets/fonts/FavoritExtended-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #000;
  --paper: #fff;
  --surface: #0b0b0b;
  --surface-raised: #151515;
  --muted: #a3a3a3;
  --rule: #2a2a2a;
  --copper: #b66745;
  --blue: #458db4;
  --green: #597a52;

  --f-display: "Druk XCond", "Arial Narrow", sans-serif;
  --f-body: "Favorit Ext", Arial, sans-serif;

  --gutter: clamp(16px, 3vw, 40px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 12px 18px;
  font-weight: 700; text-transform: uppercase; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display, .headline {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .8;
  letter-spacing: 0;
}
.display { font-size: clamp(4.5rem, 16vw, 18rem); }
.headline { font-size: clamp(3rem, 8.5vw, 9rem); }
.label {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .75em;
  padding: 1.05em 1.6em;
  font-family: var(--f-body); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: 0;
  text-decoration: none; border: 2px solid var(--paper);
  transition: background-color .22s var(--ease-out), color .22s var(--ease-out), border-color .22s var(--ease-out);
}
.btn--fill { background: var(--paper); color: var(--ink); }
.btn--fill:hover { background: var(--copper); border-color: var(--copper); color: var(--ink); }
.btn span { transition: transform .22s var(--ease-out); }
.btn:hover span { transform: translateX(4px); }

/* ---------- chrome ---------- */
#grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 60; pointer-events: none;
  mix-blend-mode: overlay; opacity: .24;
  transition: opacity .6s var(--ease-out);
}
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--gutter) 18px;
  mix-blend-mode: difference; pointer-events: none;
}
.top a { pointer-events: auto; }
.top__logo { display: block; width: clamp(54px, 5vw, 76px); }
.top__logo svg { display: block; width: 100%; height: auto; fill: var(--paper); }
.top__tag { font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.rounds {
  position: fixed; right: var(--gutter); top: 50%; z-index: 50;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  mix-blend-mode: difference;
}
.rounds__label { font-family: var(--f-display); font-size: 1.6rem; line-height: .8; text-transform: uppercase; }
.rounds__now { display: inline-block; min-width: 1.1ch; }
.rounds__of { opacity: .5; }
.rounds ol { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.rounds a {
  display: flex; align-items: center; justify-content: flex-end;
  min-width: 44px; min-height: 24px; text-decoration: none;
  font-size: .62rem; font-weight: 700; letter-spacing: .08em;
}
.rounds a span { opacity: .45; transition: opacity .2s; }
.rounds a::after {
  content: ""; width: 14px; height: 2px; margin-left: 8px; background: currentColor;
  opacity: .45; transition: width .3s var(--ease-out), opacity .2s;
}
.rounds a:hover span, .rounds a.is-active span { opacity: 1; }
.rounds a.is-active::after { width: 28px; opacity: 1; }

/* ---------- RD1 hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(28px, 6vh, 72px);
  isolation: isolate;
}
.hero__photo, .hero__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero__photo img { object-position: 60% 40%; filter: contrast(1.08); }
.hero::after { /* legibility scrim for the headline, not decoration */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(270deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 42%, rgba(0,0,0,0) 62%);
}
.ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none; mix-blend-mode: screen;
}
.hero__copy { max-width: min(640px, 100%); margin-left: auto; margin-right: clamp(0px, 7vw, 110px); }
.hero__title { font-size: clamp(5.25rem, min(17vw, 21svh), 16rem); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .02em; }
.hero__title .line > span { display: block; }
.hero__sub { margin: 28px 0 28px; max-width: 34ch; font-size: clamp(.95rem, 1.3vw, 1.2rem); letter-spacing: .03em; }
.hero__cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .6;
  white-space: nowrap;
}

/* ---------- RD2 manifesto ---------- */
.manifesto { background: var(--ink); }
.manifesto__stage {
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter);
  align-items: center;
  padding: 120px calc(var(--gutter) + 70px) 120px var(--gutter);
}
.manifesto__you { font-size: clamp(7rem, 26vw, 26rem); color: var(--paper); }
.manifesto__lines { display: grid; gap: .55em; font-size: clamp(1.05rem, 1.9vw, 1.85rem); line-height: 1.25; font-weight: 300; }
.mline strong { font-weight: 700; }
.mline--last { font-weight: 400; }
.mline--last strong { color: var(--copper); }

/* ---------- RD3 values ---------- */
.values { background: var(--ink); }
.values__intro {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gutter);
  padding: 96px calc(var(--gutter) + 70px) 64px var(--gutter);
  border-top: 1px solid var(--rule);
}
.values__belief { font-size: clamp(1.1rem, 2.1vw, 2rem); line-height: 1.25; max-width: 32ch; }
.value {
  display: flex; align-items: center; overflow: hidden;
  min-height: clamp(160px, 38vh, 420px);
  padding: 0 var(--gutter);
}
.value .display { display: block; font-size: clamp(3.4rem, 15vw, 20rem); white-space: nowrap; }
.value--dark { background: var(--ink); color: var(--paper); }
.value--light { background: var(--paper); color: var(--ink); justify-content: flex-end; padding-right: calc(var(--gutter) + 70px); }

/* ---------- RD4 corner ---------- */
.corner {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  min-height: 100svh; background: var(--ink);
}
.corner__photo { position: relative; overflow: hidden; }
.corner__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; filter: grayscale(1) contrast(1.15); }
.corner__copy {
  display: flex; flex-direction: column; justify-content: center; gap: 32px;
  padding: 120px calc(var(--gutter) + 70px) 96px clamp(24px, 5vw, 80px);
}
.corner__copy p { max-width: 44ch; font-size: clamp(1rem, 1.2vw, 1.15rem); color: #d6d6d6; }
.corner__sig { width: min(380px, 80%); }

/* ---------- RD5 fuel ---------- */
.fuel { background: var(--ink); overflow: clip; }
.fuel__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gutter);
  padding: 120px calc(var(--gutter) + 70px) 56px var(--gutter);
}
.fuel__head p { max-width: 30ch; font-size: clamp(.95rem, 1.2vw, 1.1rem); }
.fuel__track { display: flex; flex-direction: column; }
.product {
  --c: var(--copper);
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center; gap: clamp(24px, 4vw, 72px);
  min-height: 100svh;
  padding: 96px calc(var(--gutter) + 70px) 64px var(--gutter);
  background: var(--c); color: var(--ink);
}
.product__media { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.diamond {
  position: absolute; width: 72%; aspect-ratio: 1;
  background: var(--ink); transform: rotate(45deg);
}
.product__shot { position: relative; width: 78%; display: grid; place-items: center; }
.product__shot img { width: 100%; max-height: 78vh; object-fit: contain; }
.product__copy { display: grid; gap: 22px; max-width: 58ch; }
.product__num { font-weight: 700; font-size: .72rem; letter-spacing: .08em; }
.product__copy .headline { font-size: clamp(3.2rem, 7.5vw, 8rem); }
.product__copy > p:not([class]) { font-size: clamp(.92rem, 1.05vw, 1.05rem); }
.product__stat { display: flex; align-items: flex-end; gap: 14px; font-weight: 700; font-size: .8rem; letter-spacing: .03em; text-transform: uppercase; max-width: 40ch; }
.product__stat .display { font-size: clamp(2.8rem, 5vw, 5rem); line-height: .8; }
.flavours { display: flex; flex-wrap: wrap; gap: 8px; }
.flavours button {
  min-height: 44px; padding: 10px 16px; background: transparent; color: var(--ink);
  border: 2px solid var(--ink); cursor: pointer;
  font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.flavours button:hover { background: rgba(0,0,0,.12); }
.flavours button[aria-pressed="true"] { background: var(--ink); color: var(--c); }
.flavours button:focus-visible { outline-color: var(--ink); }

/* while a product colour block fills the screen, the chrome drops the blend and goes black (book p.36) */
.on-colour .top, .on-colour .rounds { mix-blend-mode: normal; color: var(--ink); }
.on-colour .top__logo svg { fill: var(--ink); }

/* horizontal mode — enabled by JS on wide screens with motion allowed */
.fuel.is-horizontal .fuel__track { flex-direction: row; width: max-content; }
.fuel.is-horizontal .product { width: 100vw; height: 100svh; min-height: 0; flex: none; }

/* ---------- RD6 stacks ---------- */
.stacks { background: var(--ink); }
.stacks__band { background: var(--paper); color: var(--ink); padding: 96px var(--gutter) 40px; overflow: hidden; }
.stacks__band .display { font-size: clamp(3.6rem, 13.5vw, 16rem); white-space: nowrap; }
.stacks__band img { width: min(1400px, 100%); margin: 24px auto 0; }
.stacks__intro {
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gutter);
  padding: 96px calc(var(--gutter) + 70px) 40px var(--gutter);
}
.stacks__intro .headline { font-size: clamp(3rem, 7vw, 7rem); }
.stacks__intro p:last-child { max-width: 32ch; }
.stacks__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px; padding: 0 calc(var(--gutter) + 70px) 120px var(--gutter);
}
.stacks__grid li { background: var(--surface-raised); padding: 28px 24px 20px; display: grid; gap: 16px; align-content: space-between; }
.stacks__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.stacks__grid p { font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; border-top: 1px solid var(--rule); padding-top: 14px; }

/* ---------- RD7 bell ---------- */
.bell {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; place-items: center; text-align: center;
  padding: 120px var(--gutter);
  border-top: 1px solid var(--rule);
}
.bell__diamond { position: absolute; width: min(900px, 90vw); opacity: .08; z-index: -2; }
.ring--end { z-index: -1; }
.bell__copy { display: grid; justify-items: center; gap: 32px; }
.bell__copy .display { font-size: clamp(5rem, 17vw, 18rem); }
.bell__copy p { font-size: clamp(1rem, 1.4vw, 1.3rem); letter-spacing: .03em; }

/* ---------- footer ---------- */
.foot { padding: 64px var(--gutter) 40px; border-top: 1px solid var(--rule); display: grid; gap: 28px; }
.foot__tag { font-size: clamp(3rem, 12vw, 13rem); color: #1c1c1c; white-space: nowrap; overflow: hidden; }
.foot__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.foot__legal { font-size: .7rem; color: var(--muted); max-width: 80ch; }

/* ---------- JS-driven initial states (only when JS + motion allowed) ---------- */
.js.motion .hero__title .line > span { transform: translateY(105%); }
.js.motion .hero__sub, .js.motion .hero .btn { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 899px) {
  .rounds ol { display: none; }
  .rounds { top: calc(22px + env(safe-area-inset-top, 0px)); transform: none; }
  .rounds__label { font-size: 1.3rem; }
  .value--light { padding-right: var(--gutter); }
  .manifesto__stage, .values__intro, .corner, .product { grid-template-columns: 1fr; }
  .manifesto__stage, .values__intro, .fuel__head, .stacks__intro, .corner__copy { padding-right: var(--gutter); }
  .manifesto__stage { padding-top: 96px; padding-bottom: 96px; align-content: center; }
  .corner__photo { height: 70svh; }
  .corner__copy { padding: 56px var(--gutter) 96px; }
  .product { padding: 72px var(--gutter) 64px; min-height: auto; }
  .product__media { width: min(420px, 90%); margin: 0 auto; }
  .fuel__head, .stacks__intro { flex-direction: column; align-items: flex-start; }
  .stacks__grid { grid-template-columns: 1fr 1fr; padding-right: var(--gutter); }
}
@media (max-width: 599px) {
  .stacks__grid { grid-template-columns: 1fr; }
  /* the mobile hero art puts its subject at the bottom, so the copy goes on top */
  .hero { align-items: flex-start; padding-top: 104px; }
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.45) 38%, rgba(0,0,0,0) 58%); }
  .hero__photo img { object-position: 50% 100%; }
  .hero__sub { margin: 20px 0; }
  .hero .ring { display: none; }
  .hero__cue { display: none; }
  .hero__copy { margin: 0; }
  .top__tag { display: none; }
}

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