/* ============================================================
   IZZY AWAKE — dev site
   Collage language: aged paper, halftone, torn edges, tape,
   mint sticker-outlines, stacked Anton wordmark. The scroll
   mechanics (fixed 3D cube pair, pinned ticker) stay.
   ============================================================ */

:root {
  --paper: #ece7db;
  --paper-deep: #e0dac9;
  --ink: #141312;
  --mint: #d9e8cf;
  --tape: rgba(196, 186, 158, 0.55);
  --muted: #6b675f;
  --line: 1px solid var(--ink);
  --pad: clamp(20px, 4vw, 44px);
  --cube-size: clamp(150px, 24vw, 240px);
  --header-h: 56px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --display: "Anton", "Archivo", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--mint); color: var(--ink); }

h1, h2, h3 { text-transform: uppercase; }

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

/* print grain over everything */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  z-index: 60;
  top: 10px;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  padding: 0 18px;
  flex: 1 1 auto;
  max-width: 760px;
}

.header-right { display: flex; gap: 10px; }

.btn {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  display: inline-flex;
  align-items: stretch;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn > span { display: flex; align-items: center; padding: 0 14px; }

.btn .btn-arrow { border-left: 2px solid var(--ink); font-size: 16px; }

.btn:hover { background: var(--ink); color: var(--paper); }

.btn-menu .menu-icon {
  border-left: 2px solid var(--ink);
  font-size: 22px;
  font-weight: 500;
  padding: 0 12px;
  transition: transform 0.25s;
}

.btn-menu[aria-expanded="true"] .menu-icon { transform: rotate(45deg); }

/* ---------- menu overlay ---------- */

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 58;
  background: rgba(20, 19, 18, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0s 0.3s;
}

.menu-overlay {
  position: fixed;
  z-index: 59;
  top: 10px;
  left: var(--pad);
  right: var(--pad);
  max-height: calc(100dvh - 20px);
  overflow: auto;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s;
  padding-top: var(--header-h);
}

body.menu-open .menu-backdrop { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.3s; }
body.menu-open .menu-overlay { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity 0.25s, transform 0.25s; }

.menu-overlay ul { list-style: none; }

.menu-overlay a,
.menu-overlay .menu-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-top: 2px solid var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.menu-overlay a:hover { background: var(--ink); color: var(--paper); }

.menu-meta { color: var(--muted); font-size: 13px; font-family: var(--mono); }

/* ---------- cubes ---------- */

.cube-persp {
  position: fixed;
  z-index: 10;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  perspective: 800px;
  pointer-events: none;
}

.cube-persp--wire { z-index: 9; margin-top: calc(var(--cube-size) * -0.55); }

.cube {
  position: absolute;
  transform-style: preserve-3d;
  width: var(--cube-size);
  height: var(--cube-size);
  margin: calc(var(--cube-size) / -2) 0 0 calc(var(--cube-size) / -2);
}

.face {
  position: absolute;
  inset: 0;
  background: var(--paper);
  border: var(--line);
  box-shadow: 0 0 0 4px var(--mint);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  overflow: hidden;
}

.face.f1 { transform: translateZ(calc(var(--cube-size) / 2)); }
.face.f2 { transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2)); }
.face.f3 { transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2)); }
.face.f4 { transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2)); }
.face.f5 { transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2)); }
.face.f6 { transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2)); }

.face svg { width: 72%; height: 72%; }

.face--dark { background: var(--ink); color: var(--paper); }

.face-word {
  font-family: var(--display);
  font-size: calc(var(--cube-size) * 0.24);
  line-height: 0.95;
  text-transform: uppercase;
}

.face--map { background-color: var(--paper); background-image:
  repeating-linear-gradient(0deg, transparent 0 9px, rgba(20,19,18,0.7) 9px 10px),
  repeating-linear-gradient(90deg, transparent 0 13px, rgba(20,19,18,0.7) 13px 14px),
  repeating-linear-gradient(63deg, transparent 0 29px, rgba(20,19,18,0.9) 29px 31px);
}

.cube-persp--wire .face {
  background: transparent;
  border: 1px solid rgba(20, 19, 18, 0.55);
  box-shadow: none;
  backface-visibility: visible;
}

/* content that must cover the cube */
.cube-below { position: relative; z-index: 20; }

/* ---------- shared chrome ---------- */

.section-heading {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 64px);
  padding: var(--pad);
  letter-spacing: 0.01em;
}

.chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 2px solid var(--ink);
  padding: 6px 10px;
  background: var(--paper);
}

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

/* tape scraps */
.tape {
  position: absolute;
  width: 96px;
  height: 26px;
  background: var(--tape);
  box-shadow: 0 1px 2px rgba(20, 19, 18, 0.15);
}

.tape-tl { top: -12px; left: -28px; transform: rotate(-8deg); }
.tape-tr { top: -12px; right: -28px; transform: rotate(7deg); }

/* torn paper edge */
.tear {
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% 18%, 96% 68%, 91% 25%, 86% 80%, 80% 30%, 74% 92%,
    68% 38%, 61% 75%, 55% 22%, 48% 88%, 42% 34%, 36% 70%, 30% 18%, 24% 82%, 18% 40%,
    12% 92%, 6% 30%, 0 75%);
}

.tear-top { top: -1px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 44px) var(--pad) var(--pad);
  overflow: hidden;
}

.hero-title {
  position: relative;
  z-index: 2;
  font-family: var(--display);
  font-size: clamp(88px, 19vw, 300px);
  line-height: 0.86;
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
  animation: hero-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes hero-rise {
  from { transform: translateY(12%); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.hero-collage { position: absolute; inset: 0; color: var(--ink); }

.scrap {
  position: absolute;
  background: var(--paper-deep);
  box-shadow: 3px 4px 0 rgba(20, 19, 18, 0.2);
}

.scrap-map {
  top: 8%;
  right: -3%;
  width: clamp(180px, 30vw, 460px);
  height: clamp(200px, 34vw, 500px);
  transform: rotate(2deg);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(20,19,18,0.55) 9px 10px),
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(20,19,18,0.55) 13px 14px),
    repeating-linear-gradient(63deg, transparent 0 29px, rgba(20,19,18,0.75) 29px 31px);
}

.scrap-palm {
  bottom: 16%;
  left: 2%;
  width: clamp(150px, 22vw, 340px);
  height: clamp(150px, 22vw, 340px);
  transform: rotate(-2deg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(180deg, var(--paper-deep), var(--paper));
}

.scrap-palm svg { width: 92%; height: 92%; }

.hero-saturn {
  position: absolute;
  top: 4%;
  left: 44%;
  width: clamp(130px, 18vw, 260px);
  transform: rotate(8deg);
}

.hero-cross {
  position: absolute;
  top: 46%;
  left: 38%;
  width: clamp(60px, 7vw, 110px);
}

.hero-me {
  position: absolute;
  /* above the fixed cube pair (z 9/10): the cube slides behind him, never over his face */
  z-index: 12;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-height: 62%;
  max-width: 46%;
  filter: grayscale(1) contrast(1.15)
    drop-shadow(3px 0 0 var(--mint)) drop-shadow(-3px 0 0 var(--mint))
    drop-shadow(0 3px 0 var(--mint)) drop-shadow(0 -3px 0 var(--mint));
}

.hero-caption {
  position: absolute;
  /* pasted-label chip: paper backing + z above the portrait so it stays
     legible where the two overlap on narrow viewports */
  z-index: 13;
  bottom: var(--pad);
  left: var(--pad);
  max-width: 380px;
  padding: 8px 10px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

/* ---------- intro ---------- */

.intro {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: var(--pad);
}

.intro-lede {
  font-family: var(--display);
  font-size: clamp(56px, 11vw, 190px);
  line-height: 0.9;
  text-transform: uppercase;
}

.intro-note {
  max-width: max(280px, min(480px, calc(50vw - 160px)));
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  color: #33302b;
}

.intro-hedge {
  max-width: max(280px, min(480px, calc(50vw - 160px)));
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.8;
  color: var(--muted);
}

.btn-split { align-self: flex-start; font-size: 15px; box-shadow: 5px 5px 0 var(--ink); }
.btn-split > span { padding: 14px 18px; }
.btn-split .btn-arrow { padding: 14px 16px; }
.btn-split:hover { box-shadow: 2px 2px 0 var(--ink); transform: translate(3px, 3px); }

/* ---------- AWAKE reveal (the only mint panel on the page) ---------- */

.reveal { padding: calc(var(--pad) * 2) var(--pad); }

.reveal-panel {
  position: relative;
  background: var(--mint);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(20, 19, 18, 0.9);
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.reveal-heading {
  font-family: var(--display);
  font-size: clamp(64px, 14vw, 220px);
  line-height: 0.9;
}

.reveal-copy {
  max-width: 620px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  text-transform: uppercase;
}

.reveal-copy--body {
  font-size: clamp(15px, 1.7vw, 19px);
  font-weight: 600;
  text-transform: none;
}

.reveal-copy--law {
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.15;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 18px;
}

.reveal-status {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #33302b;
}

.reveal .chip { background: var(--paper); }
.reveal .btn { background: var(--paper); }
.reveal .btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- ticker ---------- */

.ticker-section { height: 300vh; }

.ticker-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding-top: calc(var(--header-h) + 14px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--paper);
}

.ticker-track {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  padding: 12px var(--pad) calc(var(--pad) + 10px);
  width: max-content;
  will-change: transform;
}

.ticker-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: clamp(240px, 28vw, 380px);
  flex-shrink: 0;
  min-height: 170px;
  padding: 18px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 5px 5px 0 rgba(20, 19, 18, 0.9);
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ticker-cell:nth-child(odd) { transform: rotate(-1deg); }
.ticker-cell:nth-child(even) { transform: rotate(0.8deg); }

.ticker-name { padding-right: 40px; }

.ticker-arrow {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 26px;
}

.ticker-status {
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--ink);
  padding: 3px 7px;
  transform: translateY(-4px);
}

.ticker-status--wip { border-style: dashed; }

.ticker-note {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

a.ticker-cell:hover, a.ticker-cell:focus-visible { background: var(--ink); color: var(--paper); }
a.ticker-cell:hover .ticker-status, a.ticker-cell:focus-visible .ticker-status { border-color: var(--paper); }
a.ticker-cell:hover .ticker-note, a.ticker-cell:focus-visible .ticker-note { color: var(--paper); }

.ticker-cell--static {
  color: var(--muted);
  border-color: rgba(20, 19, 18, 0.45);
  box-shadow: 5px 5px 0 rgba(20, 19, 18, 0.25);
}

.ticker-cell--static .ticker-status { border-color: rgba(20, 19, 18, 0.45); }

/* anatomy cells: bigger cargo than the old project cells */
.ticker-cell--organ {
  width: clamp(300px, 38vw, 540px);
  min-height: 320px;
  gap: 10px;
}

.cell-name { font-family: var(--display); font-size: clamp(26px, 2.6vw, 40px); }

.cell-organ {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.cell-body {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: none;
  color: #33302b;
  padding-top: 6px;
}

.cell-status { margin-top: auto; }
.cell-status .chip { font-family: var(--mono); font-size: 11px; padding: 4px 8px; }

/* reduced motion: unpin and wrap the ticker so every cell is reachable */
@media (prefers-reduced-motion: reduce) {
  .ticker-section { height: auto; }
  .ticker-sticky { position: static; height: auto; overflow: visible; }
  .ticker-track { width: auto; flex-wrap: wrap; transform: none !important; }
}

/* ---------- hard lines ---------- */

.hardlines { padding-bottom: var(--pad); }

.hardline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  padding: 20px var(--pad) 8px;
}

.hardline {
  position: relative;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 5px 5px 0 rgba(20, 19, 18, 0.9);
  padding: 26px 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hardline:nth-child(odd) { transform: rotate(-0.6deg); }
.hardline:nth-child(even) { transform: rotate(0.5deg); }

.hardline h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.hardline p { font-size: 15px; font-weight: 600; line-height: 1.5; color: #33302b; }

.hardline-chips { padding: 18px var(--pad) 0; }

.tape-card { top: -12px; left: 50%; transform: translateX(-50%) rotate(-4deg); }

/* ---------- receipts ---------- */

.receipts { padding-bottom: calc(var(--pad) * 2); }

.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  padding: 8px var(--pad) 0;
}

.receipt { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

.receipt h3 {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: 0.01em;
}

.receipt p { max-width: 520px; font-size: 15px; font-weight: 600; line-height: 1.55; color: #33302b; }

.receipt-diary {
  background: var(--paper-deep);
  border: 1px dashed var(--ink);
  padding: 18px;
  max-width: 520px;
}

.receipt-diary p {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.8;
  color: var(--ink);
}

.receipt-chip { font-family: var(--mono); font-size: 11px; }

/* ---------- footer ---------- */

.footer {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  margin-top: 60px;
}

.footer .tear-top { background: var(--ink); transform: scaleY(-1); top: -17px; }

.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--paper);
}

.footer-col {
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-col + .footer-col { border-left: 1px solid var(--paper); }

.footer-label { color: #a9a49a; margin-bottom: 8px; }
.footer-plain { color: #a9a49a; }

.footer-cta {
  margin: var(--pad);
  border: 2px solid var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 800;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

.footer-cta:hover { background: var(--paper); color: var(--ink); text-decoration: none !important; }

.footer-mark {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pad);
  flex-wrap: wrap;
}

.footer-wordmark {
  font-family: var(--display);
  font-size: clamp(48px, 13vw, 210px);
  line-height: 0.86;
  text-transform: uppercase;
}

.footer-desc {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: right;
  line-height: 1.5;
  margin-bottom: 14px;
  color: #a9a49a;
}

.footer-fund {
  padding: 34px var(--pad) 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #a9a49a;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px var(--pad) 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #a9a49a;
  font-family: var(--mono);
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .hardline-grid { grid-template-columns: 1fr; }
  .receipt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .brand { font-size: 22px; }
  .btn { font-size: 12px; }
  .header-right .btn-boxed { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-col + .footer-col { border-left: none; border-top: 1px solid var(--paper); }
  .hero-me { max-width: 70%; }
  .hero-caption { max-width: 260px; }
  .scrap-map { right: -14%; }
  .intro-note, .intro-hedge { max-width: none; }
  .ticker-cell--organ { width: min(86vw, 400px); }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title { animation: none; }
  .btn, .footer-cta, .btn-menu .menu-icon { transition: none; }
}
