/* ==========================================================================
   Flavour Gang — Stylesheet
   Direction: "Street Label" — see DESIGN.md
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --fg-bg: #050505;
  --fg-surface: #111111;
  --fg-surface-raised: #1b1b1b;
  --fg-border: #292929;

  --fg-text: #ffffff;
  --fg-text-soft: #d8d8d8;
  --fg-text-muted: #a9a9a9;

  --fg-purple: #a855f7;
  --fg-green: #6eeb83;
  --fg-yellow: #ffd54a;
  --fg-orange: #ff7a18;
  --fg-pink: #ff4fa3;

  --fg-container: 1200px;
  --fg-radius-small: 10px;
  --fg-radius-medium: 18px;
  --fg-radius-large: 28px;

  --fg-space-1: 0.5rem;
  --fg-space-2: 1rem;
  --fg-space-3: 1.5rem;
  --fg-space-4: 2rem;
  --fg-space-5: 3rem;
  --fg-space-6: 5rem;
  --fg-space-7: 8rem;

  --fg-font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --fg-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fg-font-label: "Space Mono", "Courier New", monospace;

  --fg-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--fg-bg);
  color: var(--fg-text);
  font-family: var(--fg-font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--fg-font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

/* ---- Focus visibility ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--fg-yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: var(--fg-space-2);
  top: -100px;
  background: var(--fg-yellow);
  color: var(--fg-bg);
  padding: var(--fg-space-1) var(--fg-space-2);
  border-radius: var(--fg-radius-small);
  font-family: var(--fg-font-label);
  font-weight: 700;
  z-index: 200;
  transition: top 0.2s var(--fg-ease);
}

.skip-link:focus {
  top: var(--fg-space-2);
}

/* ---- Layout helpers ---- */
.wrap {
  width: 100%;
  max-width: var(--fg-container);
  margin-inline: auto;
  padding-inline: var(--fg-space-3);
}

section {
  padding-block: var(--fg-space-6);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--fg-space-5);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--fg-font-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--fg-text-muted);
  margin-bottom: var(--fg-space-2);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg-orange);
  flex-shrink: 0;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: var(--fg-space-2);
}

.section-head .lede {
  color: var(--fg-text-soft);
  font-size: 1.05rem;
  max-width: 52ch;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lede {
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--fg-font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--fg-ease), box-shadow 0.25s var(--fg-ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--fg-yellow);
  color: #16110a;
  box-shadow: 0 0 0 0 rgba(255, 213, 74, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 10px 30px -8px rgba(255, 213, 74, 0.45);
}

.btn-ghost {
  background: transparent;
  border-color: var(--fg-border);
  color: var(--fg-text);
}

.btn-ghost:hover {
  border-color: var(--fg-text-muted);
}

.btn .ext {
  font-size: 0.9em;
  opacity: 0.7;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fg-border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--fg-space-2);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--fg-font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-mark .badge-mini {
  height: 34px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.footer-brand .badge-mini {
  height: 76px;
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  gap: var(--fg-space-4);
  font-family: var(--fg-font-label);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav a {
  text-decoration: none;
  color: var(--fg-text-soft);
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--fg-yellow);
}

.header-cta {
  display: none;
}

.nav-toggle {
  background: none;
  border: 1px solid var(--fg-border);
  border-radius: var(--fg-radius-small);
  color: var(--fg-text);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--fg-border);
  background: var(--fg-surface);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  padding: var(--fg-space-3);
  display: flex;
  flex-direction: column;
  gap: var(--fg-space-2);
  font-family: var(--fg-font-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--fg-text-soft);
  display: block;
  padding: var(--fg-space-1) 0;
}

.mobile-nav .btn {
  margin-top: var(--fg-space-1);
  width: fit-content;
}

@media (min-width: 900px) {
  .main-nav {
    display: block;
  }
  .header-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* ---- Hero ---- */
.hero {
  padding-block: var(--fg-space-6) var(--fg-space-6);
  position: relative;
  overflow: clip;
}

.hero .wrap {
  display: grid;
  gap: var(--fg-space-5);
  align-items: center;
}

.hero-copy .eyebrow {
  color: var(--fg-green);
}

.hero-copy .eyebrow::before {
  background: var(--fg-green);
}

.hero h1 {
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  text-transform: uppercase;
}

.hero h1 .line {
  display: block;
}

.hero h1 .line--flavour {
  background: linear-gradient(90deg, var(--fg-pink), var(--fg-orange) 45%, var(--fg-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: var(--fg-space-3);
  color: var(--fg-text-soft);
  font-size: 1.1rem;
  max-width: 48ch;
}

.hero-actions {
  margin-top: var(--fg-space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--fg-space-2);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.badge-shape {
  width: min(100%, 380px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
  animation: float 7s var(--fg-ease) infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

.placeholder-tag {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--fg-font-label);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-text-muted);
  background: var(--fg-surface);
  border: 1px dashed var(--fg-border);
  padding: 0.3em 0.8em;
  border-radius: 999px;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ---- Story ---- */
.story {
  position: relative;
  background: var(--fg-surface);
  clip-path: polygon(0 32px, 100% 0, 100% calc(100% - 32px), 0 100%);
}

.story-grid {
  display: grid;
  gap: var(--fg-space-5);
}

.story .section-head {
  margin-bottom: var(--fg-space-2);
}

.story-copy p {
  color: var(--fg-text-soft);
  margin-bottom: var(--fg-space-2);
  max-width: 62ch;
}

.story-pull {
  font-family: var(--fg-font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-transform: uppercase;
  margin-block: var(--fg-space-4);
  border-left: 4px solid var(--fg-orange);
  padding-left: var(--fg-space-3);
}

.story-pull .accent {
  color: var(--fg-pink);
}

.story-cta {
  background: var(--fg-surface-raised);
  border: 1px solid var(--fg-border);
  border-radius: var(--fg-radius-large);
  padding: var(--fg-space-4);
}

.story-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
  margin-bottom: var(--fg-space-3);
}

.story-cta h2 .brand-lockup {
  display: block;
  white-space: nowrap;
}

.story-cta > p:not(.eyebrow):not(.external-note) {
  color: var(--fg-text-soft);
  margin-bottom: var(--fg-space-3);
}

.story-cta .external-note {
  margin-top: var(--fg-space-3);
  font-size: 0.8rem;
  color: var(--fg-text-muted);
}

@media (min-width: 900px) {
  .story-grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
  }
}

/* ---- Footer ---- */
.site-footer {
  padding-block: var(--fg-space-5) var(--fg-space-4);
  background: var(--fg-bg);
}

.footer-top {
  display: flex;
  justify-content: center;
  margin-bottom: var(--fg-space-4);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand .brand-mark {
  margin-bottom: var(--fg-space-1);
}

.footer-brand p {
  color: var(--fg-text-muted);
  max-width: 42ch;
  font-size: 0.9rem;
}

.footer-legal {
  border-top: 1px solid var(--fg-border);
  padding-top: var(--fg-space-3);
  display: flex;
  flex-direction: column;
  gap: var(--fg-space-1);
  font-size: 0.78rem;
  color: var(--fg-text-muted);
}

.footer-legal .placeholder {
  color: var(--fg-orange);
}

/* ---- Reveal-on-scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--fg-ease), transform 0.6s var(--fg-ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  .badge-shape {
    animation: none;
  }
}
