/* ————————————————————————————————
   SABER COFFEE — brand tokens
———————————————————————————————— */
:root {
  --roast: #14100a;
  --roast-80: rgba(20, 16, 10, 0.8);
  --roast-45: rgba(20, 16, 10, 0.45);
  --steam: #f8f4ec;
  --steam-60: rgba(248, 244, 236, 0.6);
  --crema: #f0a73c;
  --crema-deep: #c97f1a;
  --blade-w: 3px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --font-display: "Big Shoulders Display", Impact, sans-serif;
  --font-body: "Archivo", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

@font-face { font-family: "Big Shoulders Display"; src: url("assets/fonts/big-shoulders-display-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("assets/fonts/big-shoulders-display-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("assets/fonts/big-shoulders-display-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--roast);
  color: var(--steam);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.14em; }

::selection { background: var(--crema); color: var(--roast); }

/* ————— Film layer ————— */
#film, #filmFallback, .film-grade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
#film { display: block; }
#filmFallback { display: none; object-fit: cover; }
.film-grade {
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20,16,10,0.5) 0%, rgba(20,16,10,0) 22%, rgba(20,16,10,0) 72%, rgba(20,16,10,0.55) 100%);
}

body.mode-fallback #film { display: none; }
body.mode-fallback #filmFallback { display: block; }

/* ————— Loader ————— */
.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--roast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 6rem);
  letter-spacing: 0.06em;
  color: var(--steam);
}
.loader-bar {
  width: min(280px, 60vw);
  height: 2px;
  background: rgba(248,244,236,0.15);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--crema);
  transition: width 0.25s ease;
}
.loader-pct { font-size: 0.75rem; color: var(--steam-60); }

/* ————— Blade progress ————— */
.blade {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--blade-w);
  height: 100%;
  z-index: 40;
  background: rgba(248,244,236,0.08);
}
.blade span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--crema);
  transform-origin: top;
  transform: scaleY(0);
}

/* ————— Header ————— */
.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 2.5vw, 1.75rem) var(--pad);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--steam);
  text-decoration: none;
  text-shadow: 0 1px 14px rgba(20,16,10,0.45);
}
.head-cta {
  font-size: 0.72rem;
  color: var(--roast);
  background: var(--crema);
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.head-cta:hover { background: var(--steam); transform: translateY(-1px); }

/* ————— Panels ————— */
.track { position: relative; z-index: 10; }

.panel { height: 190vh; position: relative; }
.panel-hero { height: 210vh; }
.panel-last { height: 170vh; }

.panel-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad);
}

/* readability scrim behind content */
.panel-content, .hero-content {
  position: relative;
  max-width: 640px;
}
.panel-content::before, .hero-content::before {
  content: "";
  position: absolute;
  inset: -22% -18%;
  background: radial-gradient(ellipse at center, var(--roast-45) 0%, rgba(20,16,10,0) 68%);
  z-index: -1;
}

.align-left { margin-right: auto; }
.align-right { margin-left: auto; text-align: right; }
.align-right .chips, .align-right .stats { justify-content: flex-end; }
.align-center { margin: 0 auto; text-align: center; }
.align-center .cta-row { justify-content: center; }

/* ————— Type ————— */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.015em;
  color: var(--steam);
  text-shadow: 0 2px 30px rgba(20,16,10,0.35);
}
h1.display { font-size: clamp(4.2rem, 13vw, 11.5rem); }
h2.display { font-size: clamp(3rem, 8.5vw, 7.5rem); }

.cut-line { display: block; overflow: hidden; }
.cut-line > span { display: inline-block; will-change: transform; }
.cut-line.accent > span { color: var(--crema); }

.eyebrow {
  font-size: clamp(0.62rem, 1.1vw, 0.78rem);
  color: var(--steam);
  margin-bottom: 1.4rem;
  text-shadow: 0 1px 10px rgba(20,16,10,0.6);
}
.kicker {
  font-size: 0.72rem;
  color: var(--crema);
  margin-bottom: 1.2rem;
}
.lede {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 500;
  line-height: 1.55;
  margin-top: 1.8rem;
  text-shadow: 0 1px 12px rgba(20,16,10,0.55);
}
.body-copy {
  font-size: clamp(0.98rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  margin-top: 1.6rem;
  color: var(--steam);
  text-shadow: 0 1px 12px rgba(20,16,10,0.55);
}

/* ————— Hero extras ————— */
.hero-content { max-width: none; text-align: center; margin: 0 auto; }
.scroll-cue {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.68rem;
  color: var(--steam-60);
}
.cue-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(var(--crema), transparent);
  animation: cueDrop 1.8s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ————— Chips / stats / CTA ————— */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}
.chips li {
  font-size: 0.66rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(248,244,236,0.35);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  background: rgba(20,16,10,0.25);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  margin-top: 2.2rem;
}
.stat { display: flex; flex-direction: column; gap: 0.35rem; }
.stat-num {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1;
  color: var(--crema);
  text-shadow: 0 2px 18px rgba(20, 16, 10, 0.6);
}
.stat-num em {
  font-style: normal;
  font-size: 0.42em;
  letter-spacing: 0.06em;
  margin-left: 0.12em;
}
.stat-label { font-size: 0.62rem; color: var(--steam); text-shadow: 0 1px 8px rgba(20, 16, 10, 0.7); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}
.btn {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  padding: 1.05rem 2.1rem;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--crema); color: var(--roast); }
.btn-solid:hover { background: var(--steam); }
.btn-ghost { color: var(--steam); border: 1px solid rgba(248,244,236,0.45); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--crema); color: var(--crema); }

/* ————— Footer ————— */
.site-foot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.4rem var(--pad);
  font-size: 0.62rem;
  color: var(--steam-60);
  border-top: 1px solid rgba(248,244,236,0.12);
  background: linear-gradient(rgba(20,16,10,0), rgba(20,16,10,0.55));
}
.foot-links { display: flex; gap: 1.4rem; }
.foot-links a { color: var(--steam-60); text-decoration: none; transition: color 0.25s ease; }
.foot-links a:hover { color: var(--crema); }

/* ————— Focus / a11y ————— */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--crema);
  outline-offset: 3px;
  border-radius: 999px;
}

/* ————— Mobile ————— */
@media (max-width: 720px) {
  .panel { height: 150vh; }
  .panel-hero { height: 160vh; }
  .panel-last { height: 150vh; }
  .align-right { text-align: left; margin-left: 0; margin-right: auto; }
  .align-right .chips, .align-right .stats { justify-content: flex-start; }
  .stats { gap: 1.4rem; }
  .site-foot { justify-content: center; text-align: center; }
}

/* ————— Reduced motion ————— */
@media (prefers-reduced-motion: reduce) {
  .cue-line { animation: none; }
  html { scroll-behavior: auto; }
}
body.mode-static .reveal,
body.mode-static .cut-line > span { opacity: 1 !important; transform: none !important; }
