/* ------------------------------------------------------------------
   WEB · UI/UX · EVENTS
   Identifier set: off-black ground, paper text, one lime accent.
   Type: Outfit display, Inter Tight body, IBM Plex Mono rundown labels.
   Corner scale: all sharp, 2px reserved for media frames only.
------------------------------------------------------------------- */

:root {
  --ink: #0C0D0A;
  --panel: #15170F;
  --porcelain: #F3F3EC;
  --muted: #9AA08C;
  --signal: #9ABE09;
  --hairline: rgba(243, 243, 236, 0.12);

  --display: clamp(2.5rem, 6.2vw, 5.1rem);
  --display-small: clamp(1.9rem, 3.6vw, 3rem);
  --label: 0.78rem;
  --body: 1.0625rem;

  --gutter: clamp(20px, 5vw, 64px);
  --band: clamp(84px, 12vh, 168px);
  --max: 1240px;
  --radius: 2px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--porcelain);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: var(--body);
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--porcelain);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

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

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

/* ---------------- masthead ---------------- */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.bar.is-scrolled {
  background: rgba(12, 13, 10, 0.86);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--hairline);
}
.bar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mark { display: inline-flex; align-items: center; gap: 12px; }
.mark__glyph { width: 22px; height: 22px; color: var(--porcelain); flex: none; }
.mark__glyph rect:nth-child(3) { fill: var(--signal); }
.mark__text {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--porcelain);
}

/* CTA 1 of 3: nav arrow. Mono label, arrow slides on hover. */
.cta-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--porcelain);
  padding: 8px 0;
  will-change: transform;
}
.cta-arrow__arrow {
  display: inline-block;
  color: var(--signal);
  transition: transform 0.35s var(--ease);
}
.cta-arrow:hover .cta-arrow__arrow { transform: translateX(6px); }
.cta-arrow:active { transform: translateY(1px) scale(0.99); }

/* ---------------- hero: scroll-scrubbed film ---------------- */

.hero {
  position: relative;
  height: 280vh;
  background: var(--ink);
}
.hero__viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.hero__backdrop,
.hero__film,
.hero__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__backdrop img { width: 100%; height: 100%; object-fit: cover; }
.hero__film {
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.hero__film.is-ready { opacity: 1; }

.hero__scrim {
  background:
    linear-gradient(180deg, rgba(12, 13, 10, 0.72) 0%, rgba(12, 13, 10, 0.18) 42%, rgba(12, 13, 10, 0.9) 100%),
    linear-gradient(90deg, rgba(12, 13, 10, 0.72) 0%, rgba(12, 13, 10, 0) 62%);
}

.hero__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(243, 243, 236, 0.12);
}
.hero__progress span {
  display: block;
  height: 100%;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.hero__content {
  position: relative;
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(48px, 9vh, 96px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero__headline {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 800;
  font-size: var(--display);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 15ch;
}
.hero__headline .line { display: block; overflow: hidden; }
.hero__headline .line > span { display: block; animation: rise 1.1s var(--ease) both; }
.hero__headline .line:nth-child(2) > span { animation-delay: 0.12s; }

.hero__sub {
  margin-top: 22px;
  max-width: 52ch;
  color: var(--porcelain);
  animation: rise 1.1s var(--ease) 0.24s both;
}
.hero__actions { margin-top: 34px; animation: rise 1.1s var(--ease) 0.34s both; }

@keyframes rise {
  from { transform: translateY(20px); }
  to { transform: translateY(0); }
}

/* CTA 2 of 3: hero rule. Red rule wipes wider on hover. */
.cta-rule { display: inline-flex; flex-direction: column; gap: 10px; }
.cta-rule__text {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.cta-rule__rule {
  display: block;
  height: 2px;
  width: 56px;
  background: var(--signal);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
}
.cta-rule:hover .cta-rule__rule { transform: scaleX(2.4); }
.cta-rule:active .cta-rule__text { transform: translateY(1px); display: inline-block; }

/* ---------------- shared section furniture ---------------- */

.band { padding: var(--band) 0; }

.label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: var(--label);
  color: var(--muted);
  margin-bottom: 18px;
}

.h2 {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: var(--display-small);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.h2--big { font-size: var(--display); max-width: 16ch; }

.h3 {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.body { color: var(--porcelain); max-width: 62ch; }
.body + .body { margin-top: 18px; }
.body--lead { margin-top: 24px; color: var(--muted); max-width: 58ch; }

.statement {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--porcelain);
  max-width: 26ch;
  margin-bottom: 26px;
}

/* ---------------- split: the room ---------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.split__media { margin: 0; }
.split__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  will-change: transform;
}
.split .h2 { margin-bottom: 22px; }

.creds { margin-top: 34px; border-top: 1px solid var(--hairline); }
.creds li {
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------------- rail: the rundown ---------------- */

.band--rail { padding-bottom: 0; }
.rail {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--band) var(--gutter) 0;
  margin-top: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--hairline);
  scrollbar-color: var(--signal) transparent;
}
.rail__item {
  flex: 0 0 clamp(230px, 26vw, 320px);
  scroll-snap-align: start;
  padding: 26px 26px 34px 0;
  border-right: 1px solid var(--hairline);
  margin-right: 26px;
}
.rail__item .h3 { margin-bottom: 12px; }
.rail__item .body { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }

/* ---------------- zigzag: registration, plenary ---------------- */

.zig {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.zig--right .zig__media { order: 2; }
.zig--left .zig__text { order: 2; }
.zig__media { margin: 0; }
.zig__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  will-change: transform;
}
.zig .h2 { margin-bottom: 22px; }

.ticks { margin-top: 28px; border-top: 1px solid var(--hairline); }
.ticks li {
  border-bottom: 1px solid var(--hairline);
  padding: 12px 0 12px 22px;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 10px;
  height: 1px;
  background: var(--signal);
}

.specs { margin-top: 30px; border-top: 1px solid var(--hairline); }
.specs > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.specs dt {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--signal);
}
.specs dd { color: var(--muted); font-size: 0.95rem; }

/* ---------------- pair: the floor ---------------- */

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  margin: 36px 0 30px;
  align-items: end;
}
.pair figure { margin: 0; }
.pair img { width: 100%; height: auto; border-radius: var(--radius); }
.pair figcaption {
  margin-top: 12px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--muted);
}
.pair__big img { will-change: transform; }
.pair__small img { will-change: transform; }

/* ---------------- runs: numbered-free rundown ---------------- */

.runs { margin-top: 36px; border-top: 1px solid var(--hairline); }
.runs__row {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(18px, 4vw, 56px);
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.runs__row .body { color: var(--muted); }

/* ---------------- close ---------------- */

.close {
  background: var(--panel);
  border-top: 1px solid var(--hairline);
  padding: var(--band) 0;
}
.close__inner .h2 { margin-bottom: 24px; }
.close__note {
  margin-top: 34px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--muted);
}

/* CTA 3 of 3: closing block. Outlined, fills red on hover. Label stays large
   so the red fill carries readable contrast. */
.cta-block {
  display: inline-block;
  margin-top: 34px;
  padding: 22px 40px;
  border: 1px solid var(--porcelain);
  border-radius: var(--radius);
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.02em;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.cta-block:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.cta-block:active { transform: translateY(1px) scale(0.99); }

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

.foot { border-top: 1px solid var(--hairline); padding: 34px 0 44px; }
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: baseline;
  justify-content: space-between;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--muted);
}
.foot__mark { letter-spacing: 0.12em; color: var(--porcelain); }
.foot__note { max-width: 60ch; }

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

@media (max-width: 900px) {
  .split, .zig, .pair { grid-template-columns: minmax(0, 1fr); }
  .zig--right .zig__media, .zig--left .zig__text { order: 0; }
  .pair { align-items: start; }
  .runs__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .hero { height: 200vh; }
  .hero__headline { max-width: 20ch; }
  .rail { padding-bottom: 4px; }
  .rail__item { flex-basis: 76vw; }
}

@media (max-width: 560px) {
  .bar__inner { height: 64px; }
  .mark__text { font-size: 0.66rem; letter-spacing: 0.08em; }
  .specs > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ---------------- motion preferences ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero__viewport { position: relative; height: 100vh; height: 100dvh; }
  .hero__film { display: none; }
  .hero__headline .line > span,
  .hero__sub,
  .hero__actions { animation: none; }
  .cta-rule__rule { transition: none; }
  .cta-rule:hover .cta-rule__rule { transform: none; }
  .cta-arrow__arrow { transition: none; }
  .cta-block { transition: none; }
  [data-plate] img { transform: none !important; }
}
