/* ============================================================
   ROWDY APPAREL — design tokens
   ============================================================ */
:root {
  --ink: #050604;
  --ink-soft: #0b0d08;
  --ink-line: #1e2216;
  --paper: #f2f0e4;
  --paper-dim: #9c9a8c;
  --acid: #9dff3a;
  --plate: #f4c400;
  --smoke: #61645a;

  --f-display: "Anton", "Arial Narrow", sans-serif;
  --f-script: "Kaushan Script", cursive;
  --f-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Anton is a tall, tight face — anything under ~1.0 collides
     line-to-line and clips full stops. This is the floor. */
  --lh-display: 1.04;

  --maxw: 1560px;
  --gap: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 3px;
}

/* ============================================================
   Reset
   ============================================================ */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;  /* stop iOS inflating text on rotate */
  /* Guard against sideways panning on mobile. `clip` is preferred over
     `hidden` because it doesn't create a scroll container, so position:
     fixed and sticky keep working. `hidden` on body is the fallback for
     older iOS that doesn't support clip. */
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body, h1, h2, h3, h4, p, figure, ul, blockquote, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }

/* stops the page scrolling behind the open mobile drawer */
body.nav-open { overflow: hidden; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }
.wrap-narrow { max-width: 1100px; margin-inline: auto; padding-inline: var(--gap); }

/* Film grain — animated via background-position rather than a transform
   on an oversized element, so it can never contribute page overflow. */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(2) infinite;
}
@keyframes grain {
  0%, 100% { background-position: 0 0; }
  50% { background-position: 22px 13px; }
}

/* ============================================================
   Plate badge (signature)
   ============================================================ */
.plate {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.32em 0.9em 0.32em 0.75em;
  border: 1.5px solid rgba(242,240,228,0.5); border-radius: 5px;
  font-family: var(--f-mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper); background: rgba(242,240,228,0.03);
}
.plate::before, .plate::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--plate); flex: none; opacity: 0.9;
}
.plate.is-acid { border-color: rgba(157,255,58,0.55); color: var(--acid); background: rgba(157,255,58,0.05); }
.plate.is-acid::before, .plate.is-acid::after { background: var(--acid); }

/* ============================================================
   Type
   ============================================================ */
.display {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: var(--lh-display);
  color: var(--paper);
}
.mono { font-family: var(--f-mono); letter-spacing: 0.06em; }
.acid { color: var(--acid); }

section { position: relative; padding-block: clamp(4.5rem, 8vw, 8rem); }

.section-head { margin-bottom: clamp(2.2rem, 4vw, 3.5rem); max-width: 760px; }
.section-head .plate { margin-bottom: 1.2rem; }
.section-head h2 { font-size: clamp(2.3rem, 5vw, 4rem); }
.section-head p { color: var(--paper-dim); font-size: 1.06rem; margin-top: 1.1rem; max-width: 52ch; }

/* ============================================================
   Motion — line-mask reveal for display headings
   ============================================================ */
.lines .line { display: block; overflow: hidden; }
.lines .line > span { display: block; }
html.js .lines .line > span {
  transform: translateY(105%);
  transition: transform 0.9s cubic-bezier(0.16, 0.84, 0.28, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js .lines.is-visible .line > span { transform: translateY(0); }

html.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.2,0.7,0.3,1), transform 0.8s cubic-bezier(0.2,0.7,0.3,1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
html.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 1em 1.8em;
  font-family: var(--f-mono); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
/* light sweep on hover */
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%;
  width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.55s cubic-bezier(0.2,0.7,0.3,1);
}
.btn:hover::after, .btn:focus-visible::after { left: 120%; }

.btn-solid { background: var(--acid); color: #060803; }
.btn-solid:hover, .btn-solid:focus-visible {
  transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(157,255,58,0.6);
}
.btn-ghost { border: 1.5px solid rgba(242,240,228,0.45); color: var(--paper); }
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--acid); color: var(--acid); transform: translateY(-2px);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ============================================================
   Nav — logo left, links centre, socials + CTA right
   ============================================================ */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  padding-block: 1rem;
  transition: padding 0.35s ease;
}
/* The blurred bar is painted on a pseudo-element, NOT on .nav itself.
   backdrop-filter on .nav would make it a containing block for its
   position:fixed children — which pushed the off-canvas drawer outside
   the viewport and gave the whole page a horizontal scroll on mobile. */
.nav::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: rgba(5,6,4,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-line);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled { padding-block: 0.65rem; }
.nav .wrap { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); }

/* Brand lockup — uses the real Rowdy logo artwork, not a web font.
   Height-driven so the logo scales cleanly at any breakpoint. */
.brand { display: flex; align-items: center; gap: 0.55rem; flex: none; text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand .mono {
  font-size: 0.58rem; color: var(--paper-dim);
  text-transform: uppercase; letter-spacing: 0.24em;
  padding-bottom: 2px;
}
.brand.is-footer .brand-logo { height: 42px; }
.nav.is-scrolled .brand-logo { height: 30px; }
.brand-logo, .nav.is-scrolled .brand-logo { transition: height 0.35s ease; }

.nav-links {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1.4rem, 2.5vw, 2.8rem);
  flex: 1;
}
.nav-links > a {
  position: relative;
  font-family: var(--f-mono); font-size: 0.76rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper-dim); transition: color 0.2s ease;
  padding-block: 0.3rem;
}
.nav-links > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--acid); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.2,0.7,0.3,1);
}
.nav-links > a:hover, .nav-links > a:focus-visible { color: var(--acid); }
.nav-links > a:hover::after, .nav-links > a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.nav-end { display: flex; align-items: center; gap: 1rem; flex: none; }
.nav-social { display: flex; align-items: center; gap: 0.75rem; }
.nav-social a {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--ink-line); border-radius: 50%;
  color: var(--paper-dim);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.nav-social a:hover { color: var(--acid); border-color: var(--acid); transform: translateY(-2px); }
.nav-social svg { width: 15px; height: 15px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.4rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--paper); transition: transform 0.25s ease, opacity 0.25s ease; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding-top: 7rem; padding-bottom: 5rem;
  isolation: isolate; overflow: hidden;
}
.hero-media { position: absolute; inset: -8% 0; z-index: 0; overflow: hidden; will-change: transform; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  animation: heroDrift 24s ease-out forwards;
}
@keyframes heroDrift { from { transform: scale(1.14); } to { transform: scale(1.02); } }

.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,6,4,0.95) 0%, rgba(5,6,4,0.74) 36%, rgba(5,6,4,0.18) 72%, rgba(5,6,4,0.45) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(5,6,4,0.1) 34%, rgba(5,6,4,0.4) 100%);
}

.hero-inner {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap);
}
.hero-content { max-width: 820px; }
.hero-content h1 { font-size: clamp(2.9rem, 7.4vw, 6.6rem); margin-top: 1.1rem; }
.hero-content .sub {
  margin-top: 1.6rem; font-size: clamp(1.02rem, 1.4vw, 1.25rem);
  color: var(--paper-dim); max-width: 46ch;
}
.hero-content .btn-row { margin-top: 2.3rem; }

.hero-fade { opacity: 0; animation: fadeUp 0.85s cubic-bezier(0.2,0.7,0.3,1) forwards; }
.hero-fade.d1 { animation-delay: 0.15s; }
.hero-fade.d2 { animation-delay: 0.85s; }
.hero-fade.d3 { animation-delay: 1s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 2rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--smoke);
  opacity: 0; animation: fadeUp 1s ease 1.5s forwards;
}
.scroll-cue i {
  display: block; width: 1px; height: 46px;
  background: linear-gradient(var(--acid), transparent);
  transform-origin: top; animation: cueRun 2.2s ease-in-out infinite;
}
@keyframes cueRun {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============================================================
   CREED BAR — static, evenly spaced. Replaces the old scrolling
   marquee, which left large empty gaps between phrases.
   ============================================================ */
.ticker {
  background: var(--acid);
  color: #060803;
  position: relative;
  z-index: 3;
  padding-block: clamp(0.9rem, 1.6vw, 1.3rem);
}
.ticker .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.8rem, 3vw, 2rem);
}
.ticker b {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(0.72rem, 1.15vw, 0.95rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* divider between phrases — a rule with a dot, echoing the plate rivets */
.ticker i {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  position: relative;
  min-width: 20px;
}
.ticker i::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

@media (max-width: 700px) {
  .ticker .wrap { flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.1rem; }
  .ticker i { display: none; }
  .ticker b { font-size: 0.7rem; }
  .ticker b:not(:last-child)::after {
    content: " \2022"; opacity: 0.4; margin-left: 1.1rem;
  }
}

/* ============================================================
   STORY
   ============================================================ */
.story .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.story-media { position: relative; }
.story-media img { border-radius: var(--radius); filter: grayscale(1) contrast(1.08); }
.story-media::before {
  content: ""; position: absolute; inset: -16px auto auto -16px;
  width: 65%; height: 65%; border: 1.5px solid var(--acid); z-index: -1;
}
.story-body h2 { margin-bottom: 0.4rem; }
.story-title { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.story-body p { margin-top: 1.15rem; color: var(--paper-dim); font-size: clamp(1rem, 1.2vw, 1.12rem); max-width: 56ch; }
.story-body p:first-of-type { margin-top: 1.6rem; }
.story-body .lead { color: var(--paper); font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.story-body .sign-off { margin-top: 1.8rem; font-family: var(--f-script); color: var(--acid); font-size: clamp(1.5rem, 2.4vw, 2.1rem); }

/* ============================================================
   FEATURE BAND — full-bleed hero photo, shown UNCROPPED.
   The image sets the section height rather than the section
   cropping the image, so nothing important gets cut off.
   ============================================================ */
.band {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.band-media { position: relative; width: 100%; line-height: 0; z-index: 0; }
.band-media img {
  width: 100%;
  height: auto;
  display: block;
}
.band-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(5,6,4,0.95) 0%, rgba(5,6,4,0.35) 30%, rgba(5,6,4,0) 55%),
    linear-gradient(90deg, rgba(5,6,4,0.75) 0%, rgba(5,6,4,0) 45%);
}
.band-inner {
  position: absolute; z-index: 2;
  left: 0; right: 0; bottom: 0;
  width: 100%; max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gap) clamp(1.6rem, 4vw, 3.2rem);
}
.band-inner .plate { margin-bottom: 1rem; }
.band-inner p {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(1.4rem, 3.2vw, 2.8rem); line-height: var(--lh-display);
  max-width: 20ch;
}
.band-inner p span { color: var(--acid); }

/* Gear lead banner — sits above the tee grid */
.gear-banner {
  position: relative; overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 21 / 9;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}
.gear-banner img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2,0.7,0.3,1);
}
.gear-banner:hover img { transform: scale(1.04); }
.gear-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,6,4,0.85) 0%, rgba(5,6,4,0.25) 45%, rgba(5,6,4,0.05) 100%);
}
.gear-banner-copy {
  position: absolute; z-index: 2; left: 0; bottom: 0;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  max-width: 30ch;
}
.gear-banner-copy h3 {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(1.3rem, 2.6vw, 2.2rem); line-height: var(--lh-display);
}
.gear-banner-copy p { color: var(--paper-dim); margin-top: 0.5rem; font-size: 0.95rem; }

@media (max-width: 700px) {
  .gear-banner { aspect-ratio: 4 / 3; }
  .gear-banner::after {
    background: linear-gradient(0deg, rgba(5,6,4,0.9) 5%, rgba(5,6,4,0.2) 60%);
  }
  .gear-banner-copy { max-width: none; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--ink-soft); border-block: 1px solid var(--ink-line); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(90px, 9vw, 150px); gap: 0.7rem;
}
.gallery-grid figure { overflow: hidden; border-radius: var(--radius); position: relative; background: var(--ink); }
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35);
  transition: transform 0.75s cubic-bezier(0.2,0.7,0.3,1), filter 0.5s ease;
}
.gallery-grid figure:hover img { transform: scale(1.07); filter: grayscale(0); }
.gallery-grid figure::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 0 var(--acid);
  transition: box-shadow 0.35s ease; pointer-events: none;
}
.gallery-grid figure:hover::after { box-shadow: inset 0 0 0 2px var(--acid); }

/* Spans matched to each photo's orientation — portraits get tall
   cells, landscapes get wide ones, so nothing is badly cropped. */
.gallery-grid figure:nth-child(1) { grid-column: span 7; grid-row: span 3; } /* landscape */
.gallery-grid figure:nth-child(2) { grid-column: span 5; grid-row: span 3; } /* portrait  */
.gallery-grid figure:nth-child(3) { grid-column: span 4; grid-row: span 3; } /* portrait  */
.gallery-grid figure:nth-child(4) { grid-column: span 8; grid-row: span 3; } /* landscape */
.gallery-grid figure:nth-child(5) { grid-column: span 12; grid-row: span 3; } /* landscape */

.gallery-foot {
  margin-top: 2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--paper-dim);
}
.gallery-foot a { color: var(--acid); }
.gallery-foot a:hover { text-decoration: underline; }

/* ============================================================
   CREED
   ============================================================ */
.creed { text-align: center; overflow: hidden; }
.creed::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(157,255,58,0.1), transparent 70%);
  pointer-events: none; animation: creedPulse 6s ease-in-out infinite;
}
@keyframes creedPulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
.creed .wrap-narrow { position: relative; }
.creed blockquote {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(1.9rem, 4.8vw, 3.9rem); line-height: var(--lh-display);
  margin-top: 1.6rem;
}
.creed blockquote span { color: var(--acid); }
.creed-lines {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(1rem, 4vw, 3.5rem); margin-top: clamp(2.2rem, 4vw, 3.2rem);
}
.creed-lines li {
  font-family: var(--f-mono); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-dim);
  display: flex; align-items: center; gap: 0.8rem;
}
.creed-lines li::before { content: ""; width: 5px; height: 5px; background: var(--acid); border-radius: 50%; }

/* ============================================================
   SHOP — tees only
   ============================================================ */
.shop { background: var(--ink-soft); border-block: 1px solid var(--ink-line); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.8rem); }
.product-card { position: relative; }
.product-media {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  border-radius: var(--radius); background: var(--ink);
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.5) contrast(1.05);
  transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.2,0.7,0.3,1);
}
.product-card:hover .product-media img,
.product-card:focus-within .product-media img { filter: grayscale(0); transform: scale(1.05); }
.product-media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--acid); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2,0.7,0.3,1);
}
.product-card:hover .product-media::after,
.product-card:focus-within .product-media::after { transform: scaleX(1); }

.product-info { padding-top: 1rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 0.9rem; }
.product-info h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.02rem; }
.product-info p { color: var(--paper-dim); font-size: 0.88rem; margin-top: 0.25rem; }
.product-info .enquire {
  flex: none; font-family: var(--f-mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--acid);
  white-space: nowrap; padding-top: 0.25rem;
}
.product-info .enquire:hover { text-decoration: underline; }

/* "more to come" card */
.coming-card {
  grid-column: span 3;
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px dashed rgba(157,255,58,0.35); border-radius: 8px;
  background: linear-gradient(150deg, rgba(157,255,58,0.06), transparent 60%);
}
.coming-card h3 { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: var(--lh-display); }
.coming-card p { color: var(--paper-dim); margin-top: 0.8rem; max-width: 52ch; }
.coming-card .plate { margin-bottom: 1rem; }

/* ============================================================
   SIGNUP FORM
   ============================================================ */
.signup-card {
  border: 1px solid var(--ink-line); border-radius: 8px;
  padding: clamp(1.8rem, 4vw, 3.5rem);
  background: linear-gradient(155deg, rgba(157,255,58,0.07), rgba(157,255,58,0) 55%), var(--ink-soft);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 2rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.is-full { grid-column: 1 / -1; }
.field label {
  font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--paper-dim);
}
.field label .req { color: var(--acid); }
.field-legend {
  font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--paper-dim); margin-bottom: 0.6rem;
  padding: 0;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--f-body); font-size: 0.98rem; color: var(--paper);
  background: rgba(5,6,4,0.6);
  border: 1px solid var(--ink-line); border-radius: var(--radius);
  padding: 0.9rem 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--smoke); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--acid); background: rgba(5,6,4,0.9);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239c9a8c' stroke-width='1.8'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field select option { background: var(--ink-soft); color: var(--paper); }

.size-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.size-row input { position: absolute; opacity: 0; pointer-events: none; }
.size-row label {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; padding: 0.55rem 0.8rem;
  border: 1px solid var(--ink-line); border-radius: var(--radius);
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--paper-dim); cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.size-row label:hover { border-color: rgba(157,255,58,0.5); color: var(--paper); }
.size-row input:checked + label { border-color: var(--acid); color: #060803; background: var(--acid); }
.size-row input:focus-visible + label { outline: 2px solid var(--acid); outline-offset: 2px; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.8rem; }
.form-note { color: var(--smoke); font-size: 0.84rem; max-width: 44ch; }
.hp { position: absolute; left: -9999px; opacity: 0; }

.form-status { margin-top: 1.2rem; font-size: 0.95rem; display: none; }
.form-status.is-shown { display: block; }
.form-status.is-ok { color: var(--acid); }
.form-status.is-err { color: #ff7a6b; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(2rem, 4vw, 2.8rem); }
.contact-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 1.3rem; border: 1px solid var(--ink-line);
  border-radius: var(--radius); background: rgba(5,6,4,0.4);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.contact-link:hover, .contact-link:focus-visible {
  border-color: var(--acid); transform: translateY(-3px); background: rgba(157,255,58,0.05);
}
.contact-link svg { flex: none; width: 22px; height: 22px; stroke: var(--acid); }
.contact-link .lbl { display: block; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-dim); }
.contact-link .val { display: block; font-weight: 700; margin-top: 0.2rem; word-break: break-word; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2.5rem; flex-wrap: wrap; padding-bottom: 2.5rem; border-bottom: 1px solid var(--ink-line);
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: var(--paper-dim); max-width: 36ch; font-size: 0.94rem; }
.footer-links { display: flex; gap: clamp(2.5rem, 6vw, 6rem); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-dim); margin-bottom: 1rem; }
.footer-col a, .footer-col span { display: block; font-size: 0.94rem; padding-block: 0.32rem; color: var(--paper); }
.footer-col a:hover { color: var(--acid); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.8rem; }
.footer-bottom p { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--smoke); }

/* ============================================================
   Responsive
   Breakpoints: 1150 (nav collapses) / 1000 (layouts stack)
                760 (form + social) / 700 (phone) / 420 (small phone)
   ============================================================ */

/* ---- Nav collapses to a drawer. This MUST be the same breakpoint
        that shows the hamburger, or there's a range with no nav. ---- */
@media (max-width: 1150px) {
  .nav-links {
    position: fixed; inset: 0 0 auto auto; top: 0; height: 100vh; height: 100svh;
    width: min(82vw, 340px); background: var(--ink-soft);
    flex-direction: column; align-items: flex-start; justify-content: center;
    padding-inline: 2.2rem; gap: 0.4rem; transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2,0.7,0.3,1);
    border-left: 1px solid var(--ink-line);
    flex: none;
    z-index: 100;              /* above .nav-end, which is positioned */
    overflow-y: auto;
    /* keep closed drawer out of the tab order and out of layout overflow */
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.2,0.7,0.3,1), visibility 0s linear 0.35s;
  }
  .nav-links.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s cubic-bezier(0.2,0.7,0.3,1), visibility 0s;
  }
  .nav-links > a {
    font-size: 1.05rem;
    width: 100%;
    padding-block: 0.85rem;   /* ~44px tap target */
  }
  .nav-links > a::after { display: none; }
  .nav-toggle {
    display: flex; z-index: 101;
    width: 44px; height: 44px;      /* full tap target */
    align-items: center; justify-content: center;
  }
  .nav-toggle span { position: relative; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav .wrap { justify-content: space-between; }
}

@media (max-width: 1000px) {
  .story .wrap { grid-template-columns: 1fr; }
  .story-media { max-width: 460px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .coming-card { grid-column: span 2; grid-template-columns: 1fr; }
  .contact-links { grid-template-columns: 1fr; }
  .gallery-grid figure:nth-child(1) { grid-column: span 12; grid-row: span 3; }
  .gallery-grid figure:nth-child(2),
  .gallery-grid figure:nth-child(3) { grid-column: span 6; grid-row: span 3; }
  .gallery-grid figure:nth-child(4),
  .gallery-grid figure:nth-child(5) { grid-column: span 12; grid-row: span 3; }
}

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .nav-social { display: none; }
}

/* ---- Phone ---- */
@media (max-width: 700px) {
  /* Anton is very condensed but still overflows narrow screens at the
     old minimum. Scale by vw here so long lines always fit. */
  .hero-content h1 { font-size: clamp(1.9rem, 8.4vw, 6.6rem); }
  .section-head h2 { font-size: clamp(1.9rem, 7.6vw, 4rem); }
  .story-title { font-size: clamp(1.8rem, 7.2vw, 3.4rem); }
  .creed blockquote { font-size: clamp(1.6rem, 7vw, 3.9rem); }

  .hero { padding-top: 6rem; padding-bottom: 3.5rem; }
  .hero-content .sub { font-size: 1rem; }
  .scroll-cue { display: none; }
  .hero-media::after {
    background: linear-gradient(0deg, var(--ink) 6%, rgba(5,6,4,0.55) 48%, rgba(5,6,4,0.5) 100%);
  }

  .nav-end .btn { display: none; }

  /* Buttons: full width and a proper 48px tap target */
  .btn { padding: 1.05em 1.6em; width: 100%; }
  .btn-row { gap: 0.7rem; }
  .nav-end .btn, .nav-links .btn { width: auto; }

  .product-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .coming-card { grid-column: span 1; max-width: 420px; margin-inline: auto; text-align: left; }

  /* Gallery: one per row at natural aspect ratio, so portraits aren't
     crushed into short landscape cells. */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .gallery-grid figure:nth-child(n) { grid-column: auto; grid-row: auto; }
  .gallery-grid img { height: auto; aspect-ratio: auto; }

  /* Feature band: stack the caption under the photo rather than
     overlaying it — at phone width the image is too short to hold text. */
  .band-media::after {
    background: linear-gradient(0deg, rgba(5,6,4,0.55) 0%, rgba(5,6,4,0) 45%);
  }
  .band-inner {
    position: static;
    padding: 1.4rem var(--gap) 0;
  }
  .band { padding-bottom: 2.5rem; }
  .band-inner p { font-size: clamp(1.5rem, 8vw, 2.4rem); max-width: none; }

  .gear-banner-copy { padding: 1.1rem; }
  .shop-cta { flex-direction: column; align-items: stretch; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-note { order: 2; }
}

/* ---- Small phones ---- */
@media (max-width: 420px) {
  :root { --gap: 1.1rem; }
  .hero-content h1 { font-size: clamp(1.75rem, 8.6vw, 3rem); }
  .brand-logo { height: 26px; }
  .brand.is-footer .brand-logo { height: 34px; }
  .brand .mono { font-size: 0.5rem; letter-spacing: 0.18em; }
  .size-row label { min-width: 46px; padding: 0.6rem 0.7rem; }
  .ticker b { font-size: 0.66rem; letter-spacing: 0.14em; }
}

/* The grain is a full-screen fixed layer repainting twice a second.
   Fine on desktop, needless battery/repaint cost on a phone — keep the
   texture, drop the animation. */
@media (max-width: 700px) {
  body::after { animation: none; opacity: 0.03; }
}

/* Touch devices don't hover, so the hover-only reveals (greyscale to
   colour, underline bars) never fire. Show the colour state by default. */
@media (hover: none) {
  .gallery-grid img { filter: none; }
  .product-media img { filter: none; }
  .product-media::after { transform: scaleX(1); }
}
