:root {
  --bg: #0b0907;
  --ink: #f3ece0;
  --muted: #b7aa96;
  --gold: #e4b84a;
  --gold-2: #c4922c;
  --line: rgba(243, 236, 224, 0.12);
  --glass: rgba(11, 9, 7, 0.55);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  background: var(--bg);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
p { margin: 0; }

.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.82em; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  background: transparent;
}

.scroll-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 1.5rem;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease, transform 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}

.site-header.is-hidden {
  transform: translateY(-110%);
}

@media (max-width: 1100px) {
  .site-header.is-hidden {
    transform: none;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-family: "Plus Jakarta Sans", var(--sans);
}

.brand__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1a1a1c;
  color: #ffd95a;
  font-weight: 700;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand__word {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.brand__word span {
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.header-cta {
  justify-self: end;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(228, 184, 74, 0.45);
  color: var(--gold);
  transition: background 0.25s ease, color 0.25s ease;
}

.header-cta:hover {
  background: var(--gold);
  color: #1a1408;
}

.menu-btn {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  justify-self: end;
  position: relative;
}

.menu-btn span {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease;
}

.menu-btn span:first-child { top: 0.9rem; }
.menu-btn span:last-child { top: 1.35rem; }
.menu-btn.is-open span:first-child { top: 1.12rem; transform: rotate(45deg); }
.menu-btn.is-open span:last-child { top: 1.12rem; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 88;
  background: #0b0907;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
}

.mobile-nav a {
  font-family: var(--serif);
  font-size: 2rem;
}

.mobile-nav .header-cta {
  justify-self: start;
  align-self: start;
  margin-top: 1rem;
}

.mobile-nav[hidden] { display: none; }

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(16rem, 22.5rem);
  align-items: end;
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: calc(var(--header-h) + 1.5rem) clamp(1.15rem, 4vw, 2.5rem) 2.5rem;
}

.hero__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: -8%;
  will-change: transform;
}

.hero__media img,
.hero__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
  filter: saturate(0.92) contrast(1.05);
  pointer-events: none;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 9, 7, 0.82) 0%, rgba(11, 9, 7, 0.38) 48%, rgba(11, 9, 7, 0.16) 100%),
    linear-gradient(180deg, rgba(11, 9, 7, 0.4) 0%, transparent 28%, rgba(11, 9, 7, 0.78) 100%);
}

.hero__spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(520px 520px at var(--mx, 70%) var(--my, 42%), rgba(228, 184, 74, 0.16), transparent 55%);
  mix-blend-mode: screen;
}

.hero__content {
  display: contents;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 38rem;
  grid-column: 1;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.hero__title {
  font-size: clamp(2.35rem, 7vw, 6.2rem);
  font-weight: 560;
  line-height: 0.95;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.hero__title span { display: block; }

.hero__title span:last-child {
  font-style: italic;
  color: #f7f0e2;
}

.hero__lead {
  margin-top: 1.4rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--gold {
  background: var(--gold);
  color: #1a1408;
}

.btn--gold:hover { background: #f0c86a; transform: translateY(-1px); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.dossier {
  position: relative;
  z-index: 3;
  grid-column: 2;
  width: 100%;
  padding: 1.15rem 1.2rem 1.2rem;
  background: rgba(16, 13, 10, 0.72);
  border: 1px solid rgba(228, 184, 74, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.dossier__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.dossier__cause {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.3;
}

.dossier__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0.95rem 0 0;
}

.dossier__tags li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  color: var(--ink);
}

.dossier__tags code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0;
  color: #8a8174;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.reveal--late { animation-delay: 0.18s; }
.hero__lead.reveal { animation-delay: 0.28s; }
.hero__actions.reveal { animation-delay: 0.4s; }
.dossier.reveal { animation-delay: 0.55s; }
.eyebrow.reveal { animation-delay: 0.05s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* Screens */

.screen {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

.lede {
  color: var(--muted);
  font-weight: 300;
  font-size: 1.05rem;
  max-width: 36rem;
  margin-top: 1rem;
}

/* Method */

.method {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  background: #100e0b;
}

.method__visual {
  min-height: 100svh;
  overflow: hidden;
}

.method__visual img {
  width: 100%;
  height: 100%;
  min-height: 100svh;
  object-fit: cover;
}

.method__body {
  padding: 6rem 4vw 5rem;
  min-width: 0;
}

.method h2,
.verdict h2,
.access h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  max-width: 22ch;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 2.6rem 0 0;
  display: grid;
  gap: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.steps li span {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.05rem;
}

.steps h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.steps p { color: var(--muted); font-weight: 300; }

/* Verdict */

.verdict {
  padding: 6.5rem 4vw 5rem;
  background:
    radial-gradient(80% 60% at 80% 10%, rgba(228, 184, 74, 0.08), transparent 50%),
    var(--bg);
  align-content: center;
}

.verdict__intro { max-width: 46rem; margin-bottom: 2.8rem; }

.verdict__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.verdict__still {
  margin: 0;
  overflow: hidden;
  min-height: 28rem;
}

.verdict__still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}

.causes { display: grid; align-content: start; }

.cause {
  border-top: 1px solid var(--line);
}

.cause:last-child { border-bottom: 1px solid var(--line); }

.cause button {
  width: 100%;
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  gap: 1rem;
  align-items: center;
  text-align: left;
  padding: 1.15rem 0;
}

.cause button::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.cause.is-open button::after { transform: rotate(-135deg); }

.cause__code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.cause h3 { font-size: 1.35rem; font-weight: 560; }

.cause__body {
  display: none;
  padding: 0 0 1.2rem 5.2rem;
  max-width: 40rem;
}

.cause.is-open .cause__body { display: grid; gap: 0.7rem; }

.cause__body > p {
  color: var(--muted);
  font-weight: 300;
}

.cause__check {
  color: var(--ink);
  font-weight: 400;
}

.cause__check span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.verdict__cta {
  margin-top: 2.4rem;
}

.dossier__tech {
  margin-top: 0.85rem;
  color: var(--muted);
}

.dossier__tech summary {
  cursor: pointer;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  list-style: none;
}

.dossier__tech summary::-webkit-details-marker { display: none; }

.dossier__tech summary::after {
  content: " +";
  color: var(--gold);
}

.dossier__tech[open] summary::after { content: " –"; }

.dossier__tags--tech {
  margin-top: 0.55rem;
  opacity: 0.72;
}

.snippet-label {
  margin: 1.8rem 0 0.7rem;
  color: var(--muted);
  font-weight: 300;
}

.snippet { margin-top: 0; }

.access-note {
  margin-top: 1.4rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 36rem;
}

.access-aside {
  margin-top: 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Access */

.access {
  grid-template-columns: 0.9fr 1.1fr;
  background: #120f0c;
}

.access__media {
  min-height: 100svh;
  overflow: hidden;
}

.access__media img {
  width: 100%;
  height: 100%;
  min-height: 100svh;
  object-fit: cover;
}

.access__body { padding: 6rem 4vw 5rem; min-width: 0; }

.snippet {
  margin: 2rem 0 0;
  padding: 1.2rem 1.15rem;
  overflow-x: auto;
  max-width: 100%;
  background: #070605;
  border: 1px solid var(--line);
  color: #d9d0c2;
  font-size: 0.78rem;
  line-height: 1.55;
  -webkit-overflow-scrolling: touch;
}

.tok-cmt { color: #7d7364; }
.tok-tag { color: var(--gold); }
.tok-fn { color: #f0d9a0; }
.tok-str { color: #c9e0b0; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.5rem 1.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer__copy { margin-left: auto; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .site-header .header-cta { display: none; }
  .menu-btn { display: block; }
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 1rem;
  }

  .grain { opacity: 0.05; }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-columns: minmax(0, 1fr);
    grid-template-rows: 100svh auto;
    min-height: 0;
    padding: 0;
    column-gap: 0;
  }

  .hero__stage {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    min-height: 0;
  }

  .hero__media { inset: 0; }
  .hero__media img,
  .hero__media video { object-position: 28% 48%; }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(11, 9, 7, 0.22) 0%, transparent 30%, rgba(11, 9, 7, 0.82) 76%, var(--bg) 100%);
  }

  .hero__content { display: contents; }

  .hero__copy {
    grid-row: 1;
    grid-column: 1;
    z-index: 2;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: none;
    padding: 5rem 1.15rem 1.5rem;
    background: linear-gradient(180deg, transparent 20%, rgba(11, 9, 7, 0.55) 58%, #0b0907 100%);
  }

  .hero__title { font-size: clamp(2.2rem, 8vw, 3.4rem); }
  .hero__lead { font-size: 0.98rem; }
  .hero__actions { margin-top: 1.35rem; }
  .hero__actions .btn { flex: 1 1 10rem; }

  .dossier {
    grid-row: 2;
    grid-column: 1;
    width: auto;
    margin: 0 1.15rem 1.5rem;
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .method,
  .access,
  .verdict__layout {
    grid-template-columns: 1fr;
  }

  .method__visual,
  .access__media {
    min-height: 0;
  }

  .method__visual img,
  .access__media img {
    min-height: 0;
    height: min(42svh, 22rem);
    width: 100%;
  }

  .method__body,
  .access__body,
  .verdict {
    padding: 4.5rem clamp(1.15rem, 4vw, 2rem) 4rem;
  }

  .screen {
    min-height: 0;
    align-items: stretch;
  }

  .cause button {
    grid-template-columns: auto 1fr auto;
    gap: 0.7rem;
    padding: 1rem 0;
  }

  .cause h3 { font-size: 1.12rem; }
  .cause__body { padding-left: 0; }

  .verdict__still {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .snippet {
    font-size: 0.68rem;
    padding: 1rem 0.85rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1.25rem 1.15rem 1.6rem;
  }

  .site-footer__copy { margin-left: 0; }
}

@media (max-width: 520px) {
  .hero__lead {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    flex: none;
  }

  .method h2,
  .verdict h2,
  .access h2 {
    max-width: none;
  }

  .steps li {
    grid-template-columns: 2.4rem 1fr;
  }

  .cause__code { display: none; }

  .mobile-nav a { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .hero__media { inset: 0; }
}

/* Login modal — same card as cabinet /app/login, over the landing */

.login-modal {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a1a1c;
  font-family: "Plus Jakarta Sans", var(--sans);
}

.login-modal[open] {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 1.25rem;
}

.login-modal::backdrop {
  background: rgba(11, 9, 7, 0.72);
  backdrop-filter: blur(10px);
}

.login-modal__card {
  position: relative;
  width: min(420px, 100%);
  padding: 32px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 12px 48px rgba(26, 26, 28, 0.18);
}

.login-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #a0a0a5;
}

.login-modal__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a1c;
}

.login-modal__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.login-modal__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a1a1c;
  color: #ffd95a;
  display: grid;
  place-items: center;
  font-family: "Plus Jakarta Sans", var(--sans);
  font-weight: 700;
  font-size: 14px;
}

.login-modal__name {
  font-family: "Plus Jakarta Sans", var(--sans);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.login-modal__name span {
  color: #6b6b70;
}

.login-modal__title {
  font-family: "Plus Jakarta Sans", var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 6px;
  color: #1a1a1c;
}

.login-modal__sub {
  color: #6b6b70;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 20px;
}

.login-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-modal__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #6b6b70;
  margin-bottom: 6px;
}

.login-modal__input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
  border-radius: 40px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1c;
  outline: none;
}

.login-modal__input:focus {
  border-color: #ffd95a;
  box-shadow: 0 0 0 3px rgba(255, 217, 90, 0.25);
}

.login-modal__error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(245, 124, 0, 0.1);
  color: #9a6700;
  font-size: 13px;
  line-height: 1.55;
}

.login-modal__submit {
  width: 100%;
  height: 40px;
  border-radius: 40px;
  background: #1a1a1c;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}

.login-modal__submit:hover {
  background: #2a2a2c;
}
