/* ==========================================================================
   LOAFPICKLE WORLDWIDE — Studio homepage
   Dark studio, marker headlines, sticker pills, cartridge cards.
   Accents: orange + brine, yellow for stickers/ticker. Project colors live
   only on their own cartridge.
   ========================================================================== */

:root {
  --bg:         #080808;
  --bg-2:       #101010;
  --card:       #141414;
  --card-hover: #1a1a1a;
  --orange:     #ff4000;
  --brine:      #00ed4e;
  --yellow:     #f4ff00;
  --white:      #ffffff;
  --dim:        rgba(255, 255, 255, 0.7);
  --muted:      rgba(255, 255, 255, 0.45);
  --line:       rgba(255, 255, 255, 0.12);

  --f-display:  'Space Grotesk', system-ui, sans-serif;
  --f-mono:     'JetBrains Mono', ui-monospace, monospace;
  --f-marker:   'Permanent Marker', cursive;

  --max:        1240px;
  --gutter:     clamp(16px, 4vw, 40px);
  --ease:       cubic-bezier(0.19, 1, 0.22, 1);
  --hard:       8px 8px 0 rgba(0, 0, 0, 0.85);
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.text-fire   { color: var(--orange); text-shadow: 0 0 35px rgba(255, 64, 0, 0.45); }
.text-brine  { color: var(--brine);  text-shadow: 0 0 30px rgba(0, 237, 78, 0.35); }
.text-yellow { color: var(--yellow); }

/* ---- Grain ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Shared type ---- */
.section { padding: clamp(80px, 10vw, 128px) 0; position: relative; }
.section-raised { background: var(--bg-2); }

.eyebrow {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brine);
  margin-bottom: 12px;
}

.headline {
  font-family: var(--f-marker);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.8);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.12rem;
  color: var(--dim);
  max-width: 640px;
}

/* ---- Torn paper edge (v1) ---- */
.torn-top::before {
  content: '';
  position: absolute;
  top: -39px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--bg-2);
  mask-image: url('../assets/torn_paper.png');
  -webkit-mask-image: url('../assets/torn_paper.png');
  mask-size: 100% 80px;
  -webkit-mask-size: 100% 80px;
  mask-position: top;
  -webkit-mask-position: top;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  transform: rotate(180deg);
  pointer-events: none;
  z-index: 2;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border: 2px solid #000;
  cursor: pointer;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms;
}

.btn-primary {
  background: var(--brine);
  color: #000;
  box-shadow: 5px 5px 0 var(--white);
}
.btn-primary:hover {
  background: var(--yellow);
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--orange);
}

.btn-secondary {
  background: var(--card);
  color: var(--white);
  border-color: var(--white);
  box-shadow: 5px 5px 0 #000;
}
.btn-secondary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--orange);
}

/* ---- Sticker pills (v1) ---- */
.stickers { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.sticker {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1.5px solid #000;
  box-shadow: 3px 3px 0 #000;
  color: #000;
}
.sticker-yellow { background: var(--yellow); transform: rotate(-1.5deg); }
.sticker-brine  { background: var(--brine);  transform: rotate(1deg); }
.sticker-orange { background: var(--orange); color: #fff; transform: rotate(-1deg); }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(8, 8, 8, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-logo img { height: 32px; width: auto; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.nav-drawer-cta { display: none; }

.nav-links a {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
  padding: 6px 12px;
  transition: color 140ms, background 140ms;
}
.nav-links a:hover { color: #000; background: var(--white); }

.nav-cta {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--orange);
  border: 1.5px solid #000;
  box-shadow: 3px 3px 0 #000;
  padding: 8px 14px;
  transform: rotate(-1deg);
  transition: transform 160ms var(--ease);
}
.nav-cta:hover { transform: rotate(0) translate(-2px, -2px); }

/* Quick mobile Journal pill */
.nav-journal-pill {
  display: none;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  background: var(--brine);
  border: 1.5px solid #000;
  box-shadow: 2.5px 2.5px 0 #000;
  padding: 6px 12px;
  transform: rotate(1deg);
  margin-left: auto;
  transition: transform 140ms ease, box-shadow 140ms ease;
  white-space: nowrap;
}
.nav-journal-pill:hover,
.nav-journal-pill:active {
  transform: rotate(0) translate(-1px, -1px);
  box-shadow: 3.5px 3.5px 0 #000;
}

/* Mobile Nav Toggle (Hamburger) */
.nav-toggle {
  display: none;
  background: #0d0d0d;
  border: 1.5px solid var(--line);
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  box-shadow: 2.5px 2.5px 0 #000;
  transition: border-color 140ms ease, background 140ms ease;
}
.nav-toggle:hover {
  border-color: var(--brine);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brine);
  transition: transform 220ms ease, opacity 220ms ease;
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hud-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.hud-link:hover {
  background: rgba(255, 64, 0, 0.08);
  border-color: var(--orange);
  transform: translate(-1px, -1px);
}
.hud-link:active {
  transform: scale(0.98);
}

.sticker-link {
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.sticker-link:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 4px 4px 0 #000;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(80px, 9vw, 120px);
  background: radial-gradient(60% 50% at 80% 20%, rgba(255, 64, 0, 0.16), transparent 70%), var(--bg);
}

.hero-schematic {
  position: absolute;
  right: -6%;
  top: 4%;
  width: min(62vw, 820px);
  opacity: 0.12;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; }

.hero-billboard {
  width: min(100%, 440px);
  margin-bottom: 28px;
  transform: rotate(-1.5deg);
  filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.9)) drop-shadow(0 0 40px rgba(255, 64, 0, 0.25));
  transition: transform 300ms var(--ease);
}
.hero-billboard:hover { transform: rotate(-0.5deg) scale(1.01); }

.hero-statement {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-name {
  display: block;
  font-family: var(--f-mono);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 16px;
}
.hero-name::before { content: '// '; color: var(--brine); }

.hero-lead {
  max-width: 760px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--dim);
  margin-bottom: 36px;
}
.hero-lead strong { color: var(--white); }

.hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brine);
  padding: 20px 28px;
  margin-bottom: 40px;
  box-shadow: var(--hard);
}

.hud-cell { display: flex; flex-direction: column; gap: 6px; }

.hud-val {
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1;
}

.hud-label {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---- Ticker (v1 yellow tape) ---- */
.ticker {
  background: var(--yellow);
  color: #000;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  overflow: hidden;
  padding: 10px 0;
  position: relative;
  z-index: 3;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-track span {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 28px;
}

@keyframes ticker { to { transform: translateX(-50%); } }

/* ---- Why me ---- */
.why-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}

.venn { width: min(320px, 70vw); height: auto; transform: rotate(-3deg); }
.venn-c { fill-opacity: 0.1; stroke-width: 3; }
.venn-orange { fill: var(--orange); stroke: var(--orange); }
.venn-yellow { fill: var(--yellow); stroke: var(--yellow); }
.venn-brine  { fill: var(--brine);  stroke: var(--brine); }
.venn-label {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  fill: var(--white);
}
.venn-me {
  font-family: var(--f-marker);
  font-size: 34px;
  fill: var(--white);
}

.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.module {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 36px 32px 32px;
  box-shadow: var(--hard);
  transition: transform 280ms var(--ease), border-color 280ms, background 280ms;
}
.module::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--mod);
}
.module:hover { transform: translateY(-6px); border-color: var(--mod); background: var(--card-hover); }

.module-code {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--mod, var(--muted));
  margin-bottom: 14px;
}

.module-title {
  font-family: var(--f-marker);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.1;
  margin-bottom: 12px;
}

.module-desc { color: var(--dim); font-size: 1rem; }

/* ---- Capabilities ---- */
.caps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.cap {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--mod);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--hard);
  transition: transform 280ms var(--ease), background 280ms;
}
.cap:hover { transform: translateY(-4px); background: var(--card-hover); }
.cap .module-code { color: var(--muted); margin-bottom: 10px; }

.cap-title {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.cap-desc { color: var(--dim); font-size: 0.94rem; margin-bottom: 18px; flex: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 3px 8px;
}

/* ---- Work ---- */
.work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}
.work-head .headline { margin-bottom: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }

.filter {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px 14px;
  cursor: pointer;
  transition: all 140ms;
}
.filter span { color: var(--muted); margin-left: 4px; }
.filter:hover { color: var(--white); border-color: var(--white); }
.filter.is-on { background: var(--brine); color: #000; border-color: #000; box-shadow: 3px 3px 0 #000; }
.filter.is-on span { color: rgba(0, 0, 0, 0.55); }

.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cart {
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: var(--hard);
  transition: transform 280ms var(--ease), border-color 280ms, box-shadow 280ms;
}
.cart[hidden] { display: none; }
.cart:hover {
  transform: translateY(-6px);
  border-color: var(--c);
  box-shadow: 12px 12px 0 #000, 0 0 30px color-mix(in srgb, var(--c) 25%, transparent);
}

.cart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a1a1a;
  border-bottom: 2px solid #000;
  padding: 8px 16px;
}

.cart-id {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-id i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}

.cart-pill {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  background: var(--c);
  padding: 2px 8px;
}

.cart-body {
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cart-kind {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c);
  margin-bottom: 8px;
}

.cart-title {
  font-family: var(--f-marker);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.1;
  margin-bottom: 10px;
}

.cart-desc { color: var(--dim); font-size: 0.97rem; flex: 1; margin-bottom: 20px; }

.cart-link {
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  background: var(--white);
  border: 1.5px solid #000;
  box-shadow: 3px 3px 0 var(--c);
  padding: 8px 16px;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.cart-link:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--c); }

/* ---- Commission terminal ---- */
.terminal {
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  background: var(--card);
  box-shadow: 12px 12px 0 #000;
}

.terminal-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: #1a1a1a;
  border-bottom: 2px solid #000;
  padding: 10px 20px;
}

.terminal-body {
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.config { border: 0; padding: 0; margin: 0; }
.config legend {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brine);
  margin-bottom: 14px;
}

.options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.options-2 { grid-template-columns: repeat(2, 1fr); }

.option {
  text-align: left;
  font: inherit;
  color: var(--white);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 140ms, background 140ms, box-shadow 140ms;
}
.option strong { font-size: 1rem; }
.option small {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.option:hover { border-color: var(--white); }
.option[aria-pressed="true"] {
  border-color: var(--brine);
  background: rgba(0, 237, 78, 0.07);
  box-shadow: 4px 4px 0 var(--brine);
}

.inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.inputs textarea { grid-column: 1 / -1; resize: vertical; }

.inputs input,
.inputs textarea {
  font-family: var(--f-mono);
  font-size: 0.92rem;
  color: var(--white);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 0;
}
.inputs input::placeholder,
.inputs textarea::placeholder { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }
.inputs input:focus,
.inputs textarea:focus { outline: none; border-color: var(--brine); box-shadow: 4px 4px 0 var(--brine); }

.terminal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form-note { color: var(--muted); font-size: 0.9rem; }
.form-note a { color: var(--brine); }

/* ---- FAQ ---- */
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  padding: 26px 28px;
  box-shadow: var(--hard);
}
.faq-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.faq-item p { color: var(--dim); font-size: 0.98rem; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img { width: 240px; margin-bottom: 20px; }
.footer-brand p { font-family: var(--f-mono); font-size: 0.78rem; line-height: 1.7; color: var(--dim); max-width: 460px; }
.footer-brand strong { color: var(--white); }
.footer-brand .footer-edu { margin-top: 12px; color: var(--muted); }

.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-nav div { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: var(--dim); text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--brine); }

.footer-label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--brine);
  margin-bottom: 6px;
}

.footer-legal {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

/* ---- Reveal (only when JS runs) ---- */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity 800ms var(--ease), translate 800ms var(--ease); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---- Focus ---- */
a:focus-visible,
button:focus-visible { outline: 3px solid var(--brine); outline-offset: 3px; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .caps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .why-head { grid-template-columns: 1fr; }
  .venn { justify-self: center; }
  .triad, .works { grid-template-columns: 1fr 1fr; }
  .hud { grid-template-columns: repeat(2, 1fr); }
  .options { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav {
    gap: 10px;
    padding: 10px var(--gutter);
  }
  .nav-journal-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .nav-toggle {
    display: flex;
    z-index: 1002;
  }
  .nav-cta {
    display: none;
  }
  .nav nav {
    margin-left: 0;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 60px 24px;
    gap: 16px;
    z-index: 1000;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    max-width: 290px;
    text-align: center;
  }
  .nav-links li a {
    font-size: 1.15rem;
    font-weight: 800;
    padding: 13px 20px;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 #000;
    color: #000 !important;
    display: block;
    transform: rotate(var(--r, 0deg));
    transition: transform 140ms ease;
  }
  .nav-links li a:active {
    transform: scale(0.97) rotate(0deg);
  }
  .nav-links li:nth-child(1) a { --r: -1.5deg; background: var(--yellow); }
  .nav-links li:nth-child(2) a { --r: 1deg; background: #ffffff; }
  .nav-links li:nth-child(3) a { --r: -1deg; background: var(--brine); }
  .nav-links li:nth-child(4) a {
    --r: 2deg;
    background: var(--orange);
    color: #fff !important;
    border-color: #fff;
    box-shadow: 5px 5px 0 var(--yellow);
  }
  .nav-links li.nav-drawer-cta a {
    --r: -1deg;
    background: #ffffff;
    color: #000 !important;
    border: 2.5px solid var(--orange);
  }
  .nav-logo img { height: 26px; }
  .hero-billboard { width: min(100%, 300px); }
  .faq, .inputs, .options, .options-2 { grid-template-columns: 1fr; }
  .hud { padding: 18px 20px; }
}

/* ---- Mobile swipe carousels (v1 behavior) ---- */
.carousel-rack { display: none; }

@media (max-width: 768px) {
  [data-carousel] {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin: 0 calc(var(--gutter) * -1);
    padding: 6px var(--gutter) 18px;
    scroll-padding-left: var(--gutter);
    scrollbar-width: none;
  }
  [data-carousel]::-webkit-scrollbar { display: none; }

  [data-carousel] > * {
    flex: 0 0 min(85vw - 12px, 350px);
    scroll-snap-align: start;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.9);
  }
  /* hover lift fights with swiping on touch */
  [data-carousel] > *:hover { transform: none; }

  .carousel-rack {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0d0d0d;
    border: 1px solid var(--line);
    padding: 8px 12px;
    margin-top: 4px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.8);
  }

  .carousel-btn {
    width: 38px;
    height: 34px;
    display: grid;
    place-items: center;
    font-family: var(--f-mono);
    font-size: 0.85rem;
    color: var(--white);
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 2px 2px 0 #000;
    cursor: pointer;
  }
  .carousel-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #000; }
  .carousel-btn:disabled { opacity: 0.3; pointer-events: none; }

  .carousel-track { display: flex; align-items: center; gap: 12px; }
  .carousel-dots { display: flex; align-items: center; gap: 6px; }

  .carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 120ms, background 120ms;
  }
  .carousel-dot.active {
    background: var(--brine);
    border-color: var(--brine);
    box-shadow: 0 0 6px var(--brine);
    transform: scale(1.25);
  }

  .carousel-readout {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brine);
    white-space: nowrap;
  }

  /* filter chips become a single swipeable row */
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 8px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }
  .work-head { margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
}
