/* =============================================================================
   UNHNGD — unhngd.qulzo.com
   Black, white, and two accents that already belong to the brand:
     green  #5DA726  — the ".ME" in the logo lockup
     red    #E53935  — the hang tag and the FIRST OFFENSE campaign
   Display face is Hanson Bold, the brand's own wordmark font, self-hosted.
   ============================================================================= */

/* Hanson Bold — the UNHNGD wordmark face.
   Served from the brand's own licensed desktop file. Confirm a webfont licence
   before this goes public; swapping the src for a free grotesk is a one-liner. */
@font-face {
  font-family: "Hanson";
  src: url("../assets/font/Hanson-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blk:  #000000;
  --wht:  #FFFFFF;
  --grn:  #5DA726;
  --red:  #E53935;

  --ink-1: #0B0B0B;   /* raised black */
  --ink-2: #141414;   /* card black  */
  --line:  #262626;   /* hairline    */
  --mute:  #8A8A8A;   /* secondary text — 5.9:1 on black */

  --display: "Hanson", "Arial Black", Impact, sans-serif;
  --body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --fast: 120ms;
  --base: 260ms;
  --slow: 520ms;
  --out:  cubic-bezier(0.16, 1, 0.3, 1);
  --snap: cubic-bezier(0.6, 0, 0.2, 1);
}

/* ── reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

body {
  background: var(--blk);
  color: var(--wht);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--wht); color: var(--blk); padding: 8px 18px; font-weight: 700;
}
.skip:focus { top: 16px; }

:where(a, button, input):focus-visible { outline: 2px solid var(--grn); outline-offset: 3px; }

.wrap { width: min(100% - 40px, 1240px); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(100% - 80px, 1240px); } }

.red { color: var(--red); }
.grn { color: var(--grn); }

/* ── type ──────────────────────────────────────────────────────────────────── */
.big {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.75rem, 1rem + 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.big--sm { font-size: clamp(2rem, 1rem + 4.4vw, 4rem); }

.say {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;          /* browser-synthesised oblique, as the brand sets it */
  font-size: clamp(1.15rem, 0.9rem + 1.3vw, 2rem);
  line-height: 1.25;
  margin-top: 20px;
  max-width: 24ch;
}
.say--sm { font-size: clamp(1rem, 0.9rem + 0.7vw, 1.4rem); }

.body {
  margin-top: 20px;
  color: var(--mute);
  max-width: 52ch;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line);
  color: var(--mute);
}

/* ── the glitch — built from the brand's own two accents ───────────────────── */
.glitch { position: relative; display: inline-block; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
  clip-path: inset(0 0 0 0);
}
.glitch::before { color: var(--red); z-index: -1; }
.glitch::after  { color: var(--grn); z-index: -1; }
.glitch:hover::before,
.glitch.live::before { animation: sliceA 2.6s steps(2, end) infinite; }
.glitch:hover::after,
.glitch.live::after  { animation: sliceB 2.6s steps(2, end) infinite; }

@keyframes sliceA {
  0%, 84%, 100% { transform: none;              clip-path: inset(0 0 100% 0); }
  86%           { transform: translate(-4px,-2px); clip-path: inset(12% 0 62% 0); }
  90%           { transform: translate(3px, 1px);  clip-path: inset(48% 0 28% 0); }
  94%           { transform: translate(-2px, 2px); clip-path: inset(72% 0 8% 0); }
}
@keyframes sliceB {
  0%, 84%, 100% { transform: none;              clip-path: inset(0 0 100% 0); }
  87%           { transform: translate(4px, 2px);  clip-path: inset(28% 0 52% 0); }
  91%           { transform: translate(-3px,-1px); clip-path: inset(60% 0 22% 0); }
  95%           { transform: translate(2px, -2px); clip-path: inset(6% 0 80% 0); }
}

/* ── boot ────────────────────────────────────────────────────────────────────
   Hidden-initial states are scoped to `.js`, set on <html> by an inline script in
   <head>. Without JavaScript — including a crawler that renders but never scrolls
   — nothing is hidden and the whole page is readable. */
.boot { display: none; }
.js .boot {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--blk);
  transition: opacity var(--base) var(--snap), visibility var(--base) var(--snap);
}
.js .boot.done { opacity: 0; visibility: hidden; }
.boot__mark {
  font-family: var(--display);
  font-size: clamp(2.5rem, 11vw, 7rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* ── nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid transparent;
  transition: background var(--base) var(--snap), border-color var(--base) var(--snap);
}
.nav.stuck {
  background: rgba(0,0,0,0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav__brand {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.nav__brand em { color: var(--grn); font-style: normal; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links > a {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute);
  transition: color var(--fast) linear;
}
.nav__links > a:hover { color: var(--wht); }
.nav__cta { border: 1px solid var(--line); padding: 8px 14px; color: var(--wht) !important; }
.nav__cta:hover { background: var(--grn); border-color: var(--grn); color: var(--blk) !important; }
@media (max-width: 780px) { .nav__links > a:not(.nav__cta) { display: none; } }

/* ── buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--fast) linear, color var(--fast) linear,
              border-color var(--fast) linear, transform var(--fast) linear;
}
.btn--fill { background: var(--wht); color: var(--blk); }
.btn--fill:hover { background: var(--grn); color: var(--blk); transform: translate(-2px,-2px); }
.btn--line { border-color: var(--line); color: var(--wht); }
.btn--line:hover { border-color: var(--red); color: var(--red); transform: translate(-2px,-2px); }
.btn .ico { width: 15px; height: 15px; }   /* stroked glyph — never set fill here */

/* ── hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-content: center;
  padding: 140px clamp(20px, 4vw, 48px) 80px;
  overflow: hidden;
}
.scan {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(
    to bottom, rgba(255,255,255,0.028) 0 1px, transparent 1px 3px);
}
.hero__inner { width: min(100%, 1240px); margin-inline: auto; }
.hero__mark {
  font-family: var(--display);
  font-size: clamp(3.5rem, 0.5rem + 14.5vw, 13rem);
  line-height: 0.86;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-top: 22px;
}
.hero__line {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.1rem, 0.85rem + 1.5vw, 2.2rem);
  margin-top: 18px;
}
/* The dictionary treatment the brand already uses on its FIRST OFFENSE campaign —
   the literal etymology reframes the insult as the point. */
.hero__def {
  margin-top: 16px;
  max-width: 62ch;
  font-size: clamp(0.82rem, 0.76rem + 0.3vw, 0.98rem);
  letter-spacing: 0.02em;
  color: var(--mute);
}
.hero__def em { font-style: normal; font-weight: 700; color: var(--wht); }
.hero__def span { color: var(--red); }

.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ── entrance: hard cuts, not soft fades ───────────────────────────────────── */
.js .cut {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity var(--fast) linear,
              clip-path var(--slow) var(--snap);
  transition-delay: calc(var(--d, 0) * 90ms);
}
/* hero cuts fire on boot; everything else waits for the scroll observer */
.js .on .hero .cut, .js .cut.in { opacity: 1; clip-path: inset(0 0 0 0); }

/* ── ticker ────────────────────────────────────────────────────────────────── */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--ink-1);
  overflow: hidden;
  padding-block: 14px;
}
.ticker__track { display: flex; align-items: center; width: max-content; animation: run 22s linear infinite; }
.ticker__track span {
  font-family: var(--display);
  font-size: clamp(0.95rem, 0.8rem + 0.7vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  padding-inline: 22px;
}
.ticker__track b { color: var(--line); font-size: 0.8rem; }
@keyframes run { to { transform: translateX(-50%); } }

/* ── campaign band ─────────────────────────────────────────────────────────── */
.band { position: relative; overflow: hidden; background: var(--ink-1); }
.band img { width: 100%; height: auto; }

/* ── drop 02 ───────────────────────────────────────────────────────────────── */
.drop { padding-block: clamp(80px, 12vw, 160px); }
.drop .btn { margin-top: 36px; }

/* ── archive ───────────────────────────────────────────────────────────────── */
.arch {
  padding-block: clamp(80px, 12vw, 160px);
  background: var(--ink-1);
  border-block: 1px solid var(--line);
}
.arch__grid { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .arch__grid { grid-template-columns: 1.05fr 0.95fr; gap: 72px; } }
.arch__shot { overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }
.arch__shot img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transition: filter var(--base) linear, transform var(--slow) var(--out);
}
.arch__shot:hover img { filter: none; transform: scale(1.03); }

/* ── instagram ─────────────────────────────────────────────────────────────── */
.feed { padding-block: clamp(80px, 12vw, 160px); }
.feed__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 24px; margin-bottom: 44px;
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tile { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--ink-2); }
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1);
  transition: filter var(--base) linear, transform var(--slow) var(--out);
}
/* white-on-transparent Drop 01 artwork sits on black, uncropped */
.tile--art { background: var(--blk); border: 1px solid var(--line); }
.tile--art img { object-fit: contain; padding: 14%; filter: none; }
.tile__veil {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.62);
  color: var(--grn);
  font-family: var(--display);
  font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--fast) linear;
}
.tile:hover img { filter: none; transform: scale(1.04); }
.tile:hover .tile__veil, .tile:focus-visible .tile__veil { opacity: 1; }

/* ── waitlist ──────────────────────────────────────────────────────────────── */
.list {
  padding-block: clamp(80px, 12vw, 160px);
  background: var(--ink-1);
  border-top: 1px solid var(--line);
}
.list__inner { max-width: 880px; }
/* "NOT EVERYONE" is a long word in a very wide face — hold it inside the column */
.list .big { font-size: clamp(2.1rem, 0.9rem + 5.2vw, 4.75rem); }
.form { margin-top: 36px; }
.form__row { display: flex; gap: 10px; flex-wrap: wrap; }
.form input[type="email"] {
  flex: 1 1 260px;
  background: var(--blk);
  border: 1px solid var(--line);
  color: var(--wht);
  padding: 14px 16px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em;
  transition: border-color var(--fast) linear;
}
.form input[type="email"]::placeholder { color: #5A5A5A; }
.form input[type="email"]:focus { border-color: var(--grn); outline: none; }
.form.invalid input[type="email"] { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { margin-top: 14px; font-size: 0.8rem; color: var(--mute); letter-spacing: 0.04em; }
.form__note.ok  { color: var(--grn); }
.form__note.err { color: var(--red); }
.form.sent .form__row { display: none; }

/* ── footer ────────────────────────────────────────────────────────────────── */
.foot { padding-block: 72px 40px; }
.foot__inner { display: grid; gap: 28px; justify-items: center; text-align: center; }
.foot__mark {
  font-family: var(--display);
  font-size: clamp(2.5rem, 9vw, 5.5rem);
  text-transform: uppercase;
  line-height: 1;
}
.foot__meta {
  display: flex; gap: 28px; flex-wrap: wrap; justify-content: center;
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute);
  border-top: 1px solid var(--line);
  padding-top: 24px;
  width: min(100%, 460px);
}
.foot__meta a:hover { color: var(--grn); }

/* ── motion, honestly ──────────────────────────────────────────────────────── */
@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;
  }
  .cut { opacity: 1 !important; clip-path: none !important; }
  .boot { display: none; }
  .glitch::before, .glitch::after { display: none; }
  .ticker__track { animation: none; }
  .scan { display: none; }
}
