@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0a0907;
  --ink-2: #12100c;
  --ink-3: #1b1812;
  --gold: #d6b160;
  --gold-bright: #ead08f;
  --ivory: #f4efe2;
  --muted: #b8af9c;
  --line: rgba(214, 177, 96, 0.3);
  --line-soft: rgba(214, 177, 96, 0.14);
  --display: "Didot", "Bodoni Moda", "Bodoni 72", "Bodoni MT", "Playfair Display", "Times New Roman", serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", "Liberation Mono", monospace;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --edge-l: max(var(--gutter), env(safe-area-inset-left));
  --edge-r: max(var(--gutter), env(safe-area-inset-right));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(60rem 36rem at 88% -8%, rgba(214, 177, 96, 0.12), transparent 60%),
    radial-gradient(40rem 30rem at -10% 40%, rgba(214, 177, 96, 0.05), transparent 60%),
    var(--ink);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
p,
dl,
dd,
ol,
figure {
  margin: 0;
}

a {
  color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 4px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: var(--edge-l);
  padding-right: var(--edge-r);
}

.skip {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  z-index: 10;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip:focus {
  transform: translateY(0);
}

.bar {
  border-bottom: 1px solid var(--line-soft);
}

.bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.wordmark {
  font-family: var(--display);
  font-size: 0.9375rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.wordmark--small {
  font-size: 0.8125rem;
}

.bar__meta,
.eyebrow,
.facts,
.cta-note,
.scene__caption,
.file__tab,
.stamp,
.ledger dt,
.ledger__note,
.steps__num,
.foot {
  font-family: var(--mono);
  text-transform: uppercase;
}

.bar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-align: right;
  color: var(--muted);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.opening {
  padding-top: clamp(40px, 8vw, 96px);
}

.opening__copy {
  display: grid;
  gap: 22px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.75rem, 10.5vw, 5.75rem);
  line-height: 1;
  letter-spacing: -0.012em;
  color: var(--ivory);
  text-wrap: balance;
}

.display em {
  font-style: italic;
  color: var(--gold);
}

.display--small {
  font-size: clamp(2.125rem, 7vw, 3.5rem);
  line-height: 1.05;
}

.lede {
  max-width: 30ch;
  font-size: clamp(1.1875rem, 2.4vw, 1.375rem);
  line-height: 1.5;
  color: var(--muted);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-left: -32px;
  clip-path: inset(0 0 0 32px);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--ivory);
}

.facts > span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.facts > span::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.cta-row {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 30px;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.15s var(--ease);
}

.cta::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: width 0.25s var(--ease);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 250, 235, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sheen 1.4s 2.2s var(--ease) both;
}

.cta:hover {
  background: var(--gold-bright);
  box-shadow: 0 10px 40px -12px rgba(214, 177, 96, 0.6);
}

.cta:hover::after {
  width: 34px;
}

.cta:active {
  transform: translateY(1px);
}

.cta:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 4px;
}

.cta-note {
  max-width: 40ch;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--muted);
}

.scene {
  margin-top: clamp(44px, 7vw, 80px);
}

.scene__frame {
  position: relative;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.scene__frame::before {
  content: "";
  position: absolute;
  inset: -6px;
  pointer-events: none;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 18px 1px,
    linear-gradient(var(--gold), var(--gold)) top left / 1px 18px,
    linear-gradient(var(--gold), var(--gold)) top right / 18px 1px,
    linear-gradient(var(--gold), var(--gold)) top right / 1px 18px,
    linear-gradient(var(--gold), var(--gold)) bottom left / 18px 1px,
    linear-gradient(var(--gold), var(--gold)) bottom left / 1px 18px,
    linear-gradient(var(--gold), var(--gold)) bottom right / 18px 1px,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1px 18px;
  background-repeat: no-repeat;
}

.scene__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 64% 62%;
  animation: drift 24s ease-in-out infinite alternate;
}

.scene__caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.dossier {
  margin-top: clamp(88px, 12vw, 140px);
}

.file {
  position: relative;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 64px);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(214, 177, 96, 0.05), transparent 40%),
    var(--ink-2);
}

.file__tab {
  position: absolute;
  top: 0;
  left: clamp(16px, 4vw, 48px);
  transform: translateY(-100%);
  padding: 9px 18px 8px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: var(--ink-2);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.stamp {
  position: absolute;
  top: clamp(22px, 4vw, 44px);
  right: clamp(14px, 4vw, 48px);
  padding: 6px 12px;
  border: 3px double var(--gold);
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  opacity: 0.85;
  transform: rotate(-8deg);
}

.file__body {
  display: grid;
  gap: 36px;
}

.heading {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.125rem, 5.5vw, 3.25rem);
  line-height: 1.05;
  color: var(--ivory);
}

.file__intro {
  display: grid;
  gap: 16px;
  align-content: start;
}

.file__intro p {
  max-width: 40ch;
  color: var(--muted);
}

.file__intro .heading {
  margin-bottom: 6px;
}

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

.ledger__row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 9.5rem) 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.ledger dt {
  padding-top: 5px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.ledger dd {
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--ivory);
  overflow-wrap: anywhere;
}

.redact {
  display: flex;
  gap: 8px;
  padding-top: 4px;
}

.redact span {
  display: block;
  height: 14px;
  width: 7.5rem;
  max-width: 58%;
  background:
    repeating-linear-gradient(135deg, rgba(214, 177, 96, 0.22) 0 2px, transparent 2px 6px),
    var(--ink-3);
  border: 1px solid var(--line);
  transform-origin: left center;
  animation: redact 0.9s 0.4s var(--ease) both;
}

.redact span + span {
  width: 3.75rem;
  max-width: 30%;
  animation-delay: 0.6s;
}

.ledger__note {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--muted);
}

.steps {
  margin-top: clamp(88px, 12vw, 140px);
}

.steps__list {
  display: grid;
  gap: 32px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}

.steps__list li {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.steps__num {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.steps__list h3 {
  margin: 12px 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--ivory);
}

.steps__list p {
  max-width: 34ch;
  color: var(--muted);
}

.closing {
  margin-top: clamp(96px, 14vw, 160px);
  padding: clamp(72px, 10vw, 120px) 0;
  border-top: 1px solid var(--line-soft);
  background: radial-gradient(34rem 22rem at 50% 28%, rgba(214, 177, 96, 0.13), transparent 70%);
  text-align: center;
}

.closing__inner {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.seal {
  width: 96px;
  height: 96px;
  margin-bottom: 8px;
  filter: drop-shadow(0 12px 28px rgba(214, 177, 96, 0.28));
}

.closing__text {
  color: var(--muted);
}

.closing .cta {
  margin-top: 14px;
}

.foot {
  border-top: 1px solid var(--line-soft);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.reveal {
  animation: rise 1s var(--ease) both;
}

.opening__copy > .reveal:nth-child(2) {
  animation-delay: 0.12s;
}

.opening__copy > .reveal:nth-child(3) {
  animation-delay: 0.3s;
}

.opening__copy > .reveal:nth-child(4) {
  animation-delay: 0.42s;
}

.opening__copy > .reveal:nth-child(5) {
  animation-delay: 0.54s;
}

.scene.reveal {
  animation-delay: 0.7s;
  animation-duration: 1.4s;
}

.notfound {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 140px);
  padding-block: 64px;
}

.notfound .display {
  margin-top: 22px;
}

.notfound .lede {
  margin-top: 20px;
}

.notfound .cta {
  justify-self: start;
  margin-top: 36px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sheen {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.035);
  }
}

@keyframes redact {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 599px) {
  .cta {
    width: 100%;
    padding: 0 18px;
    letter-spacing: 0.1em;
  }

  .cta::after {
    display: none;
  }

  .wordmark {
    letter-spacing: 0.24em;
  }

  .bar__meta {
    letter-spacing: 0.06em;
  }

  .bar__meta .dot {
    display: none;
  }

  .facts {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-left: 0;
    clip-path: none;
  }

  .facts > span::before {
    display: none;
  }

  .stamp {
    font-size: 0.75rem;
  }

  .ledger__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .ledger dt {
    padding-top: 0;
  }
}

@media (max-width: 359px) {
  .bar .wordmark {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
  }

  .bar__meta {
    display: none;
  }
}

@media (max-width: 599px) and (max-height: 640px) {
  .opening {
    padding-top: 24px;
  }

  .opening__copy {
    gap: 14px;
  }

  .facts {
    flex-direction: row;
    align-items: center;
    gap: 4px 14px;
    margin-left: -32px;
    clip-path: inset(0 0 0 32px);
  }

  .facts > span::before {
    display: block;
  }
}

@media (min-width: 600px) {
  .cta-row {
    justify-items: start;
  }

  .steps__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .opening__copy {
    grid-template-columns: 7fr 5fr;
    column-gap: clamp(40px, 6vw, 96px);
    align-items: end;
  }

  .opening__copy > .eyebrow,
  .opening__copy > .display {
    grid-column: 1;
  }

  .opening__copy > .eyebrow {
    grid-row: 1;
  }

  .opening__copy > .display {
    grid-row: 2 / span 3;
    align-self: start;
  }

  .opening__copy > .lede,
  .opening__copy > .facts,
  .opening__copy > .cta-row {
    grid-column: 2;
  }

  .opening__copy > .lede {
    grid-row: 2;
  }

  .opening__copy > .facts {
    grid-row: 3;
  }

  .opening__copy > .cta-row {
    grid-row: 4;
  }

  .scene__img {
    aspect-ratio: 1200 / 520;
    object-position: center;
  }

  .file__body {
    grid-template-columns: 5fr 7fr;
    gap: clamp(40px, 6vw, 88px);
  }

  .stamp {
    top: auto;
    right: auto;
    bottom: clamp(44px, 5vw, 64px);
    left: clamp(40px, 5vw, 64px);
  }
}

@media (orientation: landscape) and (max-height: 500px) and (min-width: 560px) and (max-width: 899px) {
  .bar__inner {
    min-height: 52px;
  }

  .opening {
    padding-top: 20px;
  }

  .opening__copy {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "eyebrow lede"
      "display lede"
      "display facts"
      "display cta";
    gap: 14px 32px;
    align-items: start;
  }

  .opening__copy > .eyebrow {
    grid-area: eyebrow;
  }

  .opening__copy > .display {
    grid-area: display;
    font-size: clamp(2.25rem, 12vh, 3.25rem);
  }

  .opening__copy > .lede {
    grid-area: lede;
    font-size: 1.0625rem;
  }

  .opening__copy > .facts {
    grid-area: facts;
  }

  .opening__copy > .cta-row {
    grid-area: cta;
    justify-items: stretch;
    margin-top: 0;
  }

  .opening .cta {
    padding: 0 16px;
    letter-spacing: 0.08em;
  }

  .opening .cta::after {
    display: none;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .opening .cta {
    padding: 0 22px;
    letter-spacing: 0.1em;
  }

  .opening .cta::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .cta::before {
    display: none;
  }
}

@media (forced-colors: active) {
  .cta {
    border: 2px solid ButtonText;
  }

  .redact span {
    border-color: CanvasText;
  }
}
