:root {
  --pad: clamp(20px, 4.5vw, 64px);
  --max: 78rem;
  --section-pad: clamp(4.5rem, 8vw, 7.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;

  /* 3-size body discipline below the hero */
  --text-heading: clamp(2rem, 3.8vw, 3.125rem);
  --text-body: 1rem;
  --text-sm: 0.875rem;

  /* Committed Art-House Monograph Palette */
  --obsidian: #121110;
  --ink-folio: #191715;
  --paper: #f6f3ec;
  --paper-card: #ffffff;
  --ink: #161412;
  --ink-muted: #5c564e;
  --light: #f6f3ec;
  --light-muted: #b5aea3;
  --gold: #e5b84b;
  --gold-hover: #ecc668;
  --gold-ink: #121110;
  --rule-dark: rgba(246, 243, 236, 0.14);
  --rule-light: rgba(22, 20, 18, 0.14);
  --danger: #b42318;
  --success: #1b5e3a;
  --success-bg: rgba(27, 94, 58, 0.1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --shadow-plate-dark: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-plate-light: 0 18px 44px rgba(22, 20, 18, 0.08);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scrollbar-color: var(--ink-muted) var(--obsidian);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--obsidian);
}

::-webkit-scrollbar-thumb {
  background: var(--ink-muted);
  border-radius: var(--radius-pill);
  border: 2px solid var(--obsidian);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--light);
  background: var(--obsidian);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.wrap {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: var(--radius-sm);
}

/* Header: fixed/sticky, transparent over full-bleed hero at y=0 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    transform 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    background-color 0.22s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(18, 17, 16, 0.94);
  border-bottom-color: var(--rule-dark);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark {
  width: 32px;
  height: auto;
}

.brand__wordmark {
  width: 104px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--light-muted);
  text-decoration: none;
  transition: color 0.18s var(--ease-out);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
}

.btn--wide {
  width: 100%;
  padding-block: 1.15rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn--gold {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 2px 10px rgba(229, 184, 75, 0.0);
}

.btn--gold:hover:not(:disabled) {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(229, 184, 75, 0.25);
}

.btn--gold:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.btn--ghost-light {
  background: transparent;
  color: var(--light);
  border-color: rgba(246, 243, 236, 0.28);
}

.btn--ghost-light:hover:not(:disabled) {
  border-color: var(--light);
  background: rgba(246, 243, 236, 0.08);
}

.btn:focus-visible,
.nav__link:focus-visible,
.step-check input:focus-visible + .step-pill {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Hero: full-bleed background takeover from y=0 */
.hero {
  position: relative;
  min-height: clamp(560px, 90svh, 860px);
  display: flex;
  align-items: flex-end;
  background: var(--obsidian);
  padding-block: 7rem clamp(3.5rem, 6vw, 5.5rem);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18, 17, 16, 0.65) 0%,
    rgba(18, 17, 16, 0.22) 38%,
    rgba(18, 17, 16, 0.82) 76%,
    rgba(18, 17, 16, 0.98) 100%
  );
}

.hero__stage {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.hero__header {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.15rem;
  max-width: 48rem;
}

.hero__title {
  margin: 0;
}

.hero__wordmark {
  width: clamp(260px, 40vw, 480px);
  height: auto;
}

.hero__lede {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--light);
  max-width: 34ch;
  text-wrap: balance;
}

.hero__lede strong {
  font-weight: 700;
  color: var(--gold);
}

.hero__cta {
  margin-top: 0.45rem;
}

.plate-frame--dark {
  background: var(--ink-folio);
  padding: clamp(12px, 1.8vw, 22px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-plate-dark);
}

.plate-frame--dark img {
  border-radius: var(--radius-sm);
  width: 100%;
}

/* Alternating Editorial Bands */
.band {
  padding-block: var(--section-pad);
}

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

.band--ink {
  background: var(--ink-folio);
  color: var(--light);
  border-block: 1px solid var(--rule-dark);
}

.section-head {
  margin-bottom: clamp(2.5rem, 4.5vw, 4rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule-light);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  font-size: var(--text-body);
  color: var(--ink-muted);
  max-width: 44ch;
}

/* Collection Plates */
.plates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4.5vw, 4.5rem) clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.plate-card {
  margin: 0;
}

.plate-card--offset {
  margin-top: clamp(2rem, 5vw, 4.5rem);
}

.plate-card__mat {
  background: var(--paper-card);
  padding: clamp(14px, 2vw, 24px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-plate-light);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}

.plate-card:hover .plate-card__mat {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(22, 20, 18, 0.12);
}

.plate-card__mat img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.plate-card__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.9rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--rule-light);
}

.plate-card__title {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.plate-card__folio {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-muted);
}

/* Poster / Broadside Section */
.flyer-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.flyer-frame {
  margin: 0;
  max-width: 500px;
}

.flyer-copy h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.flyer-copy__lede {
  margin: 0 0 0.85rem;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--light);
  max-width: 42ch;
}

.flyer-copy__line {
  margin: 0 0 2rem;
  font-size: var(--text-body);
  color: var(--light-muted);
  max-width: 42ch;
}

.flyer-copy__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Apply Section */
.band--apply {
  padding-block: clamp(5rem, 9vw, 8rem);
}

.band--apply .section-head {
  border-bottom-color: var(--rule-light);
}

.apply-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.apply-og {
  margin: 0;
  position: sticky;
  top: 5.5rem;
}

.apply-og__mat {
  background: var(--paper-card);
  padding: clamp(14px, 2vw, 22px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-plate-light);
}

.apply-og__mat img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.apply-og__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0.85rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--rule-light);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-muted);
}

.apply-og__caption span:first-child {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--ink);
}

.apply-ledger {
  position: relative;
  background: var(--obsidian);
  color: var(--light);
  border-radius: var(--radius-md);
  box-shadow:
    var(--shadow-plate-dark),
    0 0 0 1px rgba(229, 184, 75, 0.08);
  padding: clamp(2.25rem, 4.5vw, 3.5rem);
}

/* Gold folio rule inset inside the top of the ledger */
.apply-ledger::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold) 30%,
    var(--gold) 70%,
    transparent 100%
  );
  opacity: 0.6;
}

/* Ledger header / title block */
.ledger-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule-dark);
}

.ledger-header__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--light);
}

.ledger-header__sub {
  margin: 0.5rem 0 0;
  font-size: var(--text-sm);
  color: var(--light-muted);
  max-width: 44ch;
}

.ledger-step {
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--rule-dark);
}

.ledger-step:first-child {
  padding-top: 0;
}

.ledger-step:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.ledger-step__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.ledger-step__id {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.step-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #24211d;
  border: 1.5px solid rgba(246, 243, 236, 0.18);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--light-muted);
  flex-shrink: 0;
  transition:
    background-color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.step-badge__check {
  display: none;
  width: 16px;
  height: 16px;
}

.ledger-step.is-done .step-badge {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 0 12px rgba(229, 184, 75, 0.35);
}

.ledger-step.is-done .step-badge__num {
  display: none;
}

.ledger-step.is-done .step-badge__check {
  display: block;
}

.ledger-step__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--light);
}

.ledger-step__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.step-check {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.step-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  background: #24211d;
  color: var(--light);
  border: 1px solid rgba(246, 243, 236, 0.16);
  transition:
    background-color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out);
  user-select: none;
}

.step-pill:hover {
  background: #302c27;
  border-color: rgba(246, 243, 236, 0.28);
}

.step-pill--done {
  background: rgba(74, 222, 128, 0.14);
  border-color: rgba(74, 222, 128, 0.35);
  color: #6ee7a0;
}

/* Form */
.ledger-step__intro {
  margin-bottom: 1.35rem;
}

.apply-form {
  display: grid;
  gap: 1.15rem;
}

.apply-form__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.15rem;
}

@media (max-width: 640px) {
  .apply-form__row {
    grid-template-columns: 1fr;
  }
}

.field-group {
  display: grid;
  gap: 0.35rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--light-muted);
}

.input-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix__at {
  position: absolute;
  left: 1rem;
  color: #9e9689;
  font-weight: 600;
  pointer-events: none;
}

.input-prefix input {
  padding-left: 2.15rem;
}

.field input {
  width: 100%;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(246, 243, 236, 0.16);
  background: #1d1b18;
  color: var(--light);
  font-family: var(--font-body);
  font-size: var(--text-body);
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.field input::placeholder {
  color: #9e9689;
}

.field input:focus {
  border-color: var(--gold);
  background: #24211d;
}

.field input:focus:not(:focus-visible) {
  outline: none;
}

.field input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.field-error {
  margin: 0.35rem 0 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #ff8a80;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-slot {
  margin-block: 0.25rem;
}

.apply-success {
  padding: 2rem;
  border-radius: var(--radius-md);
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.22);
  text-align: center;
}

.apply-success__icon {
  width: 48px;
  height: auto;
  margin-inline: auto;
  opacity: 0.85;
}

.apply-success h3 {
  margin: 0.85rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--light);
}

.apply-success p:last-child {
  margin: 0;
  color: var(--light-muted);
}

/* Footer */
.site-footer {
  background: var(--obsidian);
  color: var(--light);
  padding-block: 2.75rem;
  border-top: 1px solid var(--rule-dark);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.footer-mark {
  width: 34px;
  height: auto;
}

.footer-x {
  font-weight: 600;
  text-decoration: none;
  color: var(--light);
  transition: color 0.18s var(--ease-out);
}

.footer-x:hover {
  color: var(--gold);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: var(--text-sm);
  color: var(--light-muted);
}

.footer-meta p {
  margin: 0;
}

/* Motion: visible by default, gentle arrival when motion-on */
.motion-on .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.motion-on .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .flyer-split,
  .apply-stage {
    grid-template-columns: 1fr;
  }

  .flyer-frame {
    max-width: 440px;
  }

  .apply-og {
    position: static;
    max-width: 360px;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .plates-grid {
    grid-template-columns: 1fr;
  }

  .plate-card--offset {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
