/* ============================================================
   George Labunsky · "The Room"
   International Klein Blue. Poster type. A living crowd.
   ============================================================ */

:root {
  --blue: #002fa7;
  --blue-deep: #00227a;
  --black: #0a0a0c;
  --white: #ffffff;
  --acid: #d9ff4b;
  --ink-on-acid: #101300;
  --text: rgba(255, 255, 255, 0.94);
  --text-soft: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.24);
  --disp: "Anton", "Arial Narrow", sans-serif;
  --body: "Archivo", -apple-system, sans-serif;
  --mono: "Space Mono", "Courier New", monospace;
  --max: 1240px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--blue);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }
img { display: block; max-width: 100%; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--acid); color: var(--ink-on-acid); padding: 10px 18px;
  z-index: 300; text-decoration: none; font-family: var(--mono); font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Reveal (visible by default) ---------- */
.reveal { opacity: 1; transform: none; transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.reveal.pre:not(.visible) { opacity: 0; transform: translateY(14px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.pre:not(.visible) { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background 0.25s, border-color 0.25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(0, 34, 122, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 32px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.nav-name {
  font-family: var(--disp); font-size: 1.5rem; letter-spacing: 0.02em;
  text-decoration: none; color: var(--white); line-height: 1;
}
.nav-name span { color: var(--acid); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  text-decoration: none; color: var(--text-soft);
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--acid); }
.nav-links a.nav-cta {
  color: var(--ink-on-acid); background: var(--acid); padding: 10px 18px;
  transition: transform 0.15s, background 0.15s;
}
.nav-links a.nav-cta:hover { color: var(--ink-on-acid); transform: translateY(-2px); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; position: relative; }
.nav-toggle span {
  position: absolute; left: 9px; right: 9px; height: 2.5px; background: var(--white);
  transition: transform 0.25s, top 0.25s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--blue-deep); border-bottom: 1px solid var(--line);
    display: none; padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px 32px; font-size: 0.95rem; }
  .nav-links a.nav-cta { margin: 8px 32px 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--mono); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--white); border: 2px solid var(--white);
  padding: 15px 26px; background: transparent;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--white); color: var(--blue); transform: translateY(-2px); }
.btn-acid { background: var(--acid); border-color: var(--acid); color: var(--ink-on-acid); }
.btn-acid:hover { background: #eaffa1; border-color: #eaffa1; color: var(--ink-on-acid); }

/* ---------- Hero: The Room ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 100px 0;
}
#room { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-hud {
  position: absolute; top: 84px; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: space-between; gap: 12px;
  padding: 0 32px; pointer-events: none;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; color: var(--acid);
}
.hud-count b { color: var(--white); font-size: 0.85rem; }

.hero-inner {
  position: relative; z-index: 2; text-align: center;
  padding: 0 24px; pointer-events: none; max-width: 1100px;
}
.hero-inner a { pointer-events: auto; }
.hero-name {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(4.2rem, 15.5vw, 12.5rem);
  line-height: 0.9; letter-spacing: 0.005em;
  text-transform: uppercase; color: var(--white);
  text-shadow: 0 2px 60px rgba(0, 15, 60, 0.4);
}
.hero-line {
  font-family: var(--body); font-weight: 600;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem); color: var(--white);
  margin-top: 30px;
}
.hero-line em { font-style: normal; color: var(--acid); }
.hero-sub {
  font-family: var(--mono); font-size: clamp(0.72rem, 1.4vw, 0.85rem);
  color: var(--text-soft); margin-top: 14px; letter-spacing: 0.03em;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-proof {
  font-family: var(--mono); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.08em; color: var(--acid); margin-top: 28px;
}

/* ---------- Manifesto ---------- */
.manifesto { background: var(--black); padding: 130px 0; }
.mani-line {
  font-family: var(--disp); text-transform: uppercase;
  font-size: clamp(1.9rem, 5.4vw, 4.3rem); line-height: 1.06;
  color: var(--white); max-width: 22ch;
}
.mani-line + .mani-line { margin-top: 34px; }
.mani-line.acid { color: var(--acid); }

/* ---------- Section heads ---------- */
.section-head {
  font-family: var(--disp); text-transform: uppercase; font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 0.95;
  color: var(--white); margin-bottom: 14px;
}
.section-sub {
  font-family: var(--mono); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--acid);
  margin-bottom: 10px;
}

section { padding: 110px 0; }

/* ---------- Receipts ---------- */
.receipts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--white); margin-top: 48px;
}
.receipt {
  padding: 38px 30px 34px; border-right: 2px solid var(--white); border-bottom: 2px solid var(--white);
  transition: background 0.15s, color 0.15s;
}
.receipt:nth-child(3n) { border-right: 0; }
.receipt:nth-child(n+4) { border-bottom: 0; }
.receipt:hover { background: var(--acid); }
.receipt:hover .r-num, .receipt:hover .r-label { color: var(--ink-on-acid); }
.r-num {
  display: block; font-family: var(--disp);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem); line-height: 1; color: var(--white);
  transition: color 0.15s;
}
.r-label {
  display: block; margin-top: 12px; font-family: var(--mono);
  font-size: 0.74rem; font-weight: 400; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--text-soft); line-height: 1.6;
  transition: color 0.15s;
}
.proof-note {
  margin-top: 26px; font-family: var(--mono); font-size: 0.74rem;
  color: var(--text-soft); letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  .receipts { grid-template-columns: 1fr 1fr; }
  .receipt:nth-child(3n) { border-right: 2px solid var(--white); }
  .receipt:nth-child(2n) { border-right: 0; }
  .receipt:nth-child(n+4) { border-bottom: 2px solid var(--white); }
  .receipt:nth-child(n+5) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .receipts { grid-template-columns: 1fr; }
  .receipt { border-right: 0 !important; border-bottom: 2px solid var(--white) !important; }
  .receipt:last-child { border-bottom: 0 !important; }
}

/* ---------- The House ---------- */
.house { background: var(--blue-deep); }
.house-lede { max-width: 68ch; color: var(--text); font-size: 1.05rem; margin-top: 22px; }

.photo {
  background: var(--white); padding: 12px 12px 10px; margin-top: 44px;
  box-shadow: 8px 8px 0 var(--black);
}
.photo img { width: 100%; }
.photo figcaption {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; color: #1a1a1a; padding-top: 10px;
}
.photo-wide img { max-height: 58vh; object-fit: cover; }
.photo-stripe { max-width: 620px; margin: 56px auto 0; }
.arr-note-center { text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; margin-top: 18px; }
.photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.photo-row .photo:first-child { transform: rotate(-1deg); }
.photo-row .photo:last-child { transform: rotate(1deg); }
@media (max-width: 720px) {
  .photo-row { grid-template-columns: 1fr; }
  .photo-row .photo { transform: none; }
}

.house-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 54px; }
.house-col h3 {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--acid);
  border-top: 2px solid var(--acid); padding-top: 14px; margin-bottom: 12px;
}
.house-col p { color: var(--text); font-size: 0.96rem; }
@media (max-width: 800px) { .house-cols { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- ARR trajectory ---------- */
.arr { margin-top: 64px; }
.arr-title {
  font-family: var(--mono); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--acid);
  margin-bottom: 24px;
}
.arr-chart { width: 100%; height: auto; display: block; }
.arr-grid line { stroke: rgba(255, 255, 255, 0.14); stroke-dasharray: 3 7; }
.arr-ylabel text, .arr-xlabel text {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  fill: var(--text-soft); text-anchor: middle;
}
.arr-ylabel text { text-anchor: end; }
.arr-phase text {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.12em; fill: rgba(255, 255, 255, 0.42); text-anchor: middle;
}
.arr-area { fill: rgba(217, 255, 75, 0.09); stroke: none; }
.arr-curve {
  fill: none; stroke: var(--acid); stroke-width: 4;
  stroke-linecap: round; stroke-linejoin: round;
}
.arr-dot circle { fill: var(--blue-deep); stroke: var(--acid); stroke-width: 3; }
.arr-dot text {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  fill: var(--white); text-anchor: middle;
}
.js-anim .arr.pre .arr-curve { stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.js-anim .arr.pre.visible .arr-curve { animation: drawcurve 1.8s ease-out 0.2s forwards; }
@keyframes drawcurve { to { stroke-dashoffset: 0; } }
.js-anim .arr.pre .arr-dot, .js-anim .arr.pre .arr-area { opacity: 0; }
.js-anim .arr.pre.visible .arr-dot, .js-anim .arr.pre.visible .arr-area {
  opacity: 1; transition: opacity 0.6s ease-out 1.4s;
}
@media (prefers-reduced-motion: reduce) {
  .js-anim .arr.pre .arr-curve { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .js-anim .arr.pre .arr-dot, .js-anim .arr.pre .arr-area { opacity: 1; }
}
.arr-ongoing { fill: none; stroke: var(--acid); stroke-width: 2.5; stroke-dasharray: 4 7; stroke-linecap: round; }
.arr-dot-now circle { stroke-dasharray: 3 4; }
.js-anim .arr.pre .arr-ongoing { opacity: 0; }
.js-anim .arr.pre.visible .arr-ongoing { opacity: 1; transition: opacity 0.6s ease-out 1.9s; }
.arr-milestones .arr-now { grid-column: 1 / -1; color: var(--acid); }
.arr-milestones {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px 32px; margin-top: 28px;
}
.arr-milestones li {
  font-family: var(--mono); font-size: 0.74rem; line-height: 1.65;
  color: var(--text-soft); display: flex; gap: 10px;
}
.arr-milestones b {
  flex: none; width: 22px; height: 22px; border: 2px solid var(--acid);
  border-radius: 50%; color: var(--acid); font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.arr-note {
  margin-top: 22px; font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.45);
}
@media (max-width: 900px) { .arr-milestones { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .arr-milestones { grid-template-columns: 1fr; }
  .arr-phase text { display: none; }
}

/* ---------- ampersend ---------- */
.ampersend { background: var(--blue); }

/* ---------- How ---------- */
.how { background: var(--black); }
.how-list { list-style: none; counter-reset: how; margin-top: 44px; max-width: 900px; }
.how-list li {
  counter-increment: how; position: relative;
  padding: 26px 0 26px 96px; border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78); font-size: 0.98rem;
}
.how-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.how-list li::before {
  content: counter(how, decimal-leading-zero);
  position: absolute; left: 0; top: 18px;
  font-family: var(--disp); font-size: 2.4rem; color: var(--acid); line-height: 1;
}
.how-list strong { color: var(--white); font-weight: 700; }
@media (max-width: 620px) {
  .how-list li { padding-left: 0; padding-top: 64px; }
  .how-list li::before { top: 16px; }
}

/* ---------- Track record ---------- */
.track { list-style: none; margin-top: 44px; }
.track li {
  display: grid; grid-template-columns: 170px 1fr; gap: 28px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.track li:last-child { border-bottom: 1px solid var(--line); }
.t-date {
  font-family: var(--mono); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.06em; color: var(--acid); padding-top: 5px;
}
.track strong {
  display: block; font-family: var(--body); font-weight: 700;
  font-size: 1.12rem; color: var(--white); margin-bottom: 6px;
}
.track p { color: var(--text-soft); font-size: 0.94rem; max-width: 62ch; }
@media (max-width: 640px) {
  .track li { grid-template-columns: 1fr; gap: 8px; }
}

.tech-note { margin-top: 60px; border: 2px solid var(--acid); padding: 28px 30px; }
.tech-note h3 {
  font-family: var(--disp); text-transform: uppercase; font-weight: 400;
  font-size: 1.5rem; color: var(--acid); margin-bottom: 10px;
}
.tech-note p { color: var(--text); font-size: 0.95rem; max-width: 75ch; }
.tech-note a { color: var(--acid); }

/* ---------- Contact ---------- */
.contact { background: var(--acid); padding: 130px 0 140px; }
.contact-head {
  font-family: var(--disp); text-transform: uppercase; font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 8.5rem); line-height: 0.92;
  color: var(--ink-on-acid);
}
.contact-sub {
  font-family: var(--mono); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase;
  color: rgba(16, 19, 0, 0.75); margin-top: 26px; max-width: 62ch;
}
.contact .contact-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.contact .btn { color: var(--ink-on-acid); border-color: var(--ink-on-acid); }
.contact .btn:hover { background: var(--ink-on-acid); color: var(--acid); }
.contact .btn-acid { background: var(--ink-on-acid); border-color: var(--ink-on-acid); color: var(--acid); }
.contact .btn-acid:hover { background: #000; }

/* ---------- Footer ---------- */
.footer { background: var(--black); padding: 26px 0 34px; }
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.55);
}

/* ---------- Small screens ---------- */
@media (max-width: 620px) {
  section { padding: 76px 0; }
  .container { padding: 0 22px; }
  .manifesto { padding: 90px 0; }
  .hero-ctas .btn, .contact-links .btn { width: 100%; text-align: center; }
  .hero-hud { flex-direction: column; gap: 6px; align-items: flex-start; }
}
