/* Kinetic Letter Scrub — a brand studio's pinned about section */

:root {
  --paper: #f7eee7;
  --ink: #1b1411;
  --hot: #ff5a1f;
  --muted: rgba(27, 20, 17, 0.56);
  --line: rgba(27, 20, 17, 0.14);

  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --text: "Instrument Sans", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 3vw, 40px);

  /* Scroll distance the stage stays pinned for */
  --pin: 2200px;
}

@media (max-width: 991px) { :root { --pin: 1550px; } }
@media (max-width: 479px) { :root { --pin: 1150px; } }

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* ─────────── Nav ─────────── */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 18px var(--gutter);
}

.logo {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  font-variation-settings: "wdth" 75;
  letter-spacing: -0.02em;
  color: var(--hot);
}
.logo sup { font-size: 10px; margin-left: 1px; }

/* ─────────── Hero ─────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px var(--gutter) 80px;
}

.hero-kicker,
.about-label,
.outro-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 20px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 75, "opsz" 96;
  font-size: clamp(3.4rem, 11vw, 11rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  translate: -50% 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.hero-hint span {
  position: relative;
  width: 1px;
  height: 28px;
  background: var(--line);
  overflow: hidden;
}
.hero-hint span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  animation: hint 1.8s var(--ease) infinite;
}
@keyframes hint {
  from { translate: 0 -100%; }
  to { translate: 0 100%; }
}

/* ─────────── About (pinned) ─────────── */

.about {
  position: relative;
  height: calc(100svh + var(--pin));
}

.about-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  padding: 80px var(--gutter);
  overflow: hidden;
}

.about-label { color: var(--ink); }

.about-copy { position: relative; }

.about-para {
  position: relative;
  margin: 0;
  max-width: 15.5em;
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "wdth" 75, "opsz" 96;
  font-size: clamp(2.3rem, 7.2vw, 7.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
  color: rgba(255, 90, 31, 0.42);
}

/* Split output — words never break, letters animate individually */
.word { display: inline-block; white-space: nowrap; }
.char {
  display: inline-block;
  transform-origin: 50% 60%;
  will-change: transform, color;
  backface-visibility: hidden;
}

/* Pills — hidden until their moment on the timeline */
.pill {
  position: absolute;
  z-index: 2;
  padding: 0.7em 1.25em;
  border-radius: 100px;
  background: var(--hot);
  color: #fff4ec;
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  box-shadow: 0 10px 30px -12px rgba(255, 90, 31, 0.7);
}
.pill--1 { top: -9%; right: 2%; }
.pill--2 { top: 44%; left: -2%; background: var(--ink); color: var(--paper); box-shadow: 0 10px 30px -12px rgba(27, 20, 17, 0.6); }
.pill--3 { bottom: -7%; right: 12%; }

.about-foot {
  position: absolute;
  inset: auto var(--gutter) 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
  .about-stage { padding-inline: 12px; }
  .about-para { max-width: none; font-size: 13vw; line-height: 1.02; }
  .pill { font-size: 12px; padding: 0.65em 1.1em; }
  .pill--1 { top: 13%; right: -1%; }
  .pill--2 { top: 47%; left: -1%; }
  .pill--3 { top: auto; bottom: 5%; right: 3%; }
}

/* ─────────── Outro ─────────── */

.outro {
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 100px var(--gutter) 32px;
  background: var(--ink);
  color: var(--paper);
}
.outro-kicker { color: var(--hot); }
.outro-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 75, "opsz" 96;
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.outro-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 238, 231, 0.16);
  font-size: 13px;
  color: rgba(247, 238, 231, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .hero-hint span::after { animation: none; }
}
