@font-face {
  font-family: "Geist";
  src: url("/assets/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --neutral-primary-soft: #f5ede0;
  --neutral-primary: #f5ede0;
  --neutral-secondary-soft: #ede5d5;
  --neutral-secondary-medium: #ede5d5;
  --neutral-tertiary-soft: #e0d6c0;
  --neutral-tertiary-medium: #e0d6c0;
  --neutral-quaternary: #d8cca8;
  --brand-soft: #fddcb0;
  --brand: #d36c0e;
  --brand-medium: #f5c88a;
  --brand-strong: #a85400;
  --success: #2e8b57;
  --success-strong: #1e6b40;
  --danger: #c0392b;
  --danger-strong: #8b1a1a;
  --dark: #3a2e1e;
  --dark-strong: #2a1e10;
  --white: #fff5e8;
  --heading: #3a2e1e;
  --body: #6b5d48;
  --body-subtle: #8a7c64;
  --border-default: #d8cca8;
  --border-default-medium: #d8cca8;
  --border-default-strong: #b8ac80;
  --border-dark: #4a3e28;
  --card-ink: #3a2e1e;
  --site-canvas: #e8dcc8;
  --site-glow: #fff5dc8c;
  --site-vignette: #645a3c59;
  --grain-dark: #00000009;
  --grain-light: #00000006;
  --card-gradient: linear-gradient(
    175deg,
    #ddd4b0 0%,
    #c8bc90 30%,
    #b8ac80 55%,
    #ccc09a 80%,
    #d8cca8 100%
  );
  --brand-gradient: linear-gradient(
    180deg,
    #fad090 0%,
    #e87c14 45%,
    #a84e00 100%
  );
  --brand-gradient-hover: linear-gradient(
    180deg,
    #e8b870 0%,
    #d06c0e 45%,
    #8a4000 100%
  );
  --shadow-xs:
    inset 0 1px 2px #ffffff40,
    inset 0 -1px 3px #00000020,
    0 2px 4px #00000020,
    0 0 0 1px #5a503230;
  --shadow-sm:
    inset 0 2px 4px #ffffff50,
    inset 0 -2px 5px #00000028,
    0 4px 10px #00000028,
    0 1px 3px #00000020,
    0 0 0 1px #5a503240;
  --shadow-md:
    inset 0 3px 6px #ffffff8c,
    inset 0 -4px 10px #0000004d,
    0 18px 55px #5046288c,
    0 4px 12px #0000004d,
    0 0 0 1px #5a503280;
  --shadow-lg:
    inset 0 3px 7px #ffffff80,
    inset 0 -4px 12px #00000050,
    0 22px 60px #50462890,
    0 5px 14px #00000050,
    0 0 0 1px #5a503288;
  --shadow-xl:
    inset 0 4px 8px #ffffff70,
    inset 0 -5px 14px #00000058,
    0 28px 70px #50462898,
    0 6px 18px #00000058,
    0 0 0 1px #5a503290;
  --shadow-button:
    inset 0 2px 5px #ffffffa6,
    inset 0 -3px 7px #00000073,
    0 6px 14px #00000073,
    0 2px 4px #00000040,
    0 0 0 1px #6b3000;
  --radius-base: 14px;
  --radius-default: 10px;
  --radius-sm: 6px;
  --radius-full: 9999px;
  --spring-snappy: linear(
    0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%,
    0.938 16.7%, 1.017 19.4%, 1.067 22.5%, 1.089 26%,
    1.079 30.3%, 1.049 36%, 1.024 42.6%, 1.011 50.3%,
    1.004 59.2%, 1.001 69.3%, 1
  );
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --neutral-primary-soft: #1e1810;
    --neutral-primary: #141008;
    --neutral-secondary-soft: #1e1810;
    --neutral-secondary-medium: #2e2618;
    --neutral-tertiary-soft: #1e1810;
    --neutral-tertiary-medium: #3e3428;
    --neutral-quaternary: #3e3428;
    --brand-soft: #6b3007;
    --brand: #e87c14;
    --brand-medium: #6b3007;
    --brand-strong: #d36c0e;
    --success: #3cb371;
    --success-strong: #2e8b57;
    --danger: #c0392b;
    --danger-strong: #ff6b5a;
    --dark: #3a2e1e;
    --dark-strong: #4a3e28;
    --heading: #f5ede0;
    --body: #b8ac90;
    --body-subtle: #a89c80;
    --border-default: #2e2618;
    --border-default-medium: #3e3428;
    --border-default-strong: #4e4438;
    --border-dark: #6b5d48;
    --site-canvas: #141008;
    --site-glow: #6b300733;
    --site-vignette: #00000099;
    --grain-dark: #ffffff08;
    --grain-light: #ffffff05;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--site-canvas);
  background-image:
    radial-gradient(at 50% 0, var(--site-glow) 0%, transparent 65%),
    radial-gradient(at 50% 100%, var(--site-vignette) 0%, transparent 65%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, var(--grain-dark) 3px 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, var(--grain-light) 3px 4px);
  color: var(--body);
  font-family: "Geist", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--brand-strong);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: none;
}

a:focus-visible {
  border-radius: var(--radius-sm);
  outline: 4px solid var(--brand-strong);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -96px;
  z-index: 10;
  padding: 8px 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-base);
  background: var(--neutral-primary);
  box-shadow: var(--shadow-sm);
  color: var(--heading);
  font-weight: 500;
}

.skip:focus {
  top: 16px;
}

.console {
  max-width: 1240px;
  margin: 24px auto;
  overflow: hidden;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-base);
  background: var(--neutral-primary-soft);
  box-shadow: var(--shadow-xl);
}

.mast {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border-dark);
  background: var(--dark);
}

.brand img {
  display: block;
  width: min(240px, 50vw);
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--border-default-medium);
  border-radius: var(--radius-base);
  background: var(--neutral-secondary-medium);
  box-shadow: var(--shadow-button);
  color: var(--card-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms, color 150ms, box-shadow 150ms;
}

.nav a:hover {
  background: var(--neutral-tertiary-medium);
}

.nav a:active {
  box-shadow: var(--shadow-xs);
  transform: translateY(1px);
}

.signal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 24px;
  background: var(--brand-strong);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero {
  display: grid;
  min-height: min(760px, calc(100dvh - 156px));
  grid-template-columns: minmax(0, 1fr) clamp(190px, 23vw, 290px);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
  padding: clamp(56px, 8vw, 104px);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 46%, color-mix(in srgb, var(--brand-medium) 26%, transparent), transparent 31%),
    var(--neutral-primary-soft);
}

.hero-copy {
  min-width: 0;
}

.hero .eyebrow {
  margin: 0 0 clamp(20px, 3vw, 36px);
  animation: hero-enter 520ms var(--spring-snappy) 40ms both;
}

.hero h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 780;
  letter-spacing: -0.075em;
  line-height: 0.76;
  text-wrap: nowrap;
}

.hero h1 span {
  display: inline-block;
  animation: hero-heading-enter 580ms var(--spring-snappy) both;
}

.hero h1 span:first-child {
  animation-delay: 120ms;
}

.hero h1 span:last-child {
  color: var(--brand-strong);
  animation-delay: 210ms;
}

.hero-brief {
  display: grid;
  max-width: 760px;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.65fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  margin-top: clamp(44px, 7vw, 76px);
  animation: hero-enter 560ms var(--spring-snappy) 300ms both;
}

.hero-brief p {
  margin: 0;
}

.hero-brief > p:last-child {
  padding-top: 3px;
  border-top: 2px solid var(--brand-strong);
  color: var(--body);
  font-size: 14px;
  line-height: 1.55;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-heading-enter {
  from { transform: translateY(22px); }
  to { transform: translateY(0); }
}

.eyebrow {
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-family: "Geist", sans-serif;
  font-weight: 700;
}

h1 {
  max-width: 16ch;
  margin: 8px 0 24px;
  font-size: 60px;
  letter-spacing: -0.8px;
  line-height: 1;
}

h2 {
  margin: 48px 0 16px;
  font-size: 44px;
  line-height: 1.15;
}

h3 {
  margin: 32px 0 16px;
  font-size: 36px;
  line-height: 1.2;
}

.lede {
  max-width: 70ch;
  color: var(--body);
  font-size: 20px;
  line-height: 1.7;
}

p,
li {
  max-width: 65ch;
}

.dial {
  display: grid;
  align-self: start;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  background: conic-gradient(
    from 25deg,
    var(--brand) 0 64%,
    var(--neutral-quaternary) 64% 76%,
    var(--danger) 76% 100%
  );
  box-shadow: var(--shadow-lg);
  animation: hero-dial-enter 620ms var(--spring-snappy) 160ms both;
  transition:
    transform 420ms var(--ease-snap),
    box-shadow 420ms var(--ease-snap);
  will-change: transform;
}

.dial:hover {
  transform: rotate(2deg) scale(1.018);
  box-shadow: var(--shadow-xl);
}

@keyframes hero-dial-enter {
  from {
    opacity: 0;
    transform: scale(0.92) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

.dial span {
  display: grid;
  width: 68%;
  aspect-ratio: 1;
  place-items: center;
  padding: 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  background: var(--neutral-primary);
  box-shadow: var(--shadow-sm);
  color: var(--heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.trays {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 clamp(24px, 6vw, 72px) 72px;
}

.tray,
.card {
  padding: 24px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-base);
  background: var(--card-gradient);
  box-shadow: var(--shadow-md);
  color: var(--card-ink);
}

.tray h2,
.tray h3,
.card h2,
.card h3 {
  color: var(--card-ink);
}

.tray p,
.card p {
  color: var(--card-ink);
}

.tray .count {
  display: block;
  color: var(--brand-strong);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}

.ledger {
  padding: 0 clamp(24px, 6vw, 72px) 72px;
}

.ledger-list {
  display: grid;
  gap: 16px;
}

.ticket {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px 24px;
  border: 1px solid var(--border-default);
  border-left: 8px solid var(--brand-strong);
  border-radius: var(--radius-default);
  background: var(--neutral-primary);
  box-shadow: var(--shadow-xs);
}

.ticket b {
  color: var(--body);
  font-size: 12px;
  font-weight: 700;
}

.ticket a {
  color: var(--brand-strong);
  font-size: 16px;
  font-weight: 500;
}

.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 48px;
  padding: clamp(32px, 6vw, 80px);
}

.document {
  min-width: 0;
  padding: clamp(24px, 5vw, 64px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-base);
  background: var(--neutral-primary);
  box-shadow: var(--shadow-md);
}

.document h1 {
  font-size: 60px;
}

.document img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 32px auto;
  border: 8px solid var(--neutral-secondary-soft);
  border-radius: var(--radius-default);
  box-shadow: var(--shadow-sm);
}

.document p,
.document li {
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
}

.document blockquote {
  margin: 32px 0;
  padding: 16px 24px;
  border-left: 4px solid var(--brand-strong);
  border-radius: 0 var(--radius-base) var(--radius-base) 0;
  background: var(--neutral-secondary-soft);
  box-shadow: var(--shadow-xs);
}

.document table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border-default);
  border-collapse: separate;
  border-radius: var(--radius-base);
  border-spacing: 0;
  background: var(--neutral-primary-soft);
  box-shadow: var(--shadow-xs);
}

.document th,
.document td {
  padding: 12px 24px;
  border-right: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  text-align: left;
}

.document tr:last-child th,
.document tr:last-child td {
  border-bottom: 0;
}

.document th:last-child,
.document td:last-child {
  border-right: 0;
}

.stamp {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 24px;
  border: 1px solid var(--danger);
  border-radius: var(--radius-base);
  background: var(--neutral-secondary-soft);
  box-shadow: var(--shadow-sm);
  color: var(--danger-strong);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  transform: rotate(1.5deg);
}

.archive {
  padding: clamp(32px, 7vw, 80px);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.archive .card h2 {
  margin: 8px 0 16px;
  font-size: 24px;
  line-height: 1.5;
}

.card img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-default);
}

.legacy {
  border-left: 8px solid var(--brand-strong);
}

.disclosure {
  margin: 24px 0;
  padding: 16px 24px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-base);
  background: var(--neutral-secondary-soft);
  box-shadow: var(--shadow-xs);
}

.footer {
  padding: 32px;
  border-top: 1px solid var(--border-default);
  background: var(--neutral-secondary-soft);
  color: var(--body);
  text-align: center;
}

@media (max-width: 1023px) {
  .document h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 30px;
  }
}

@media (max-width: 780px) {
  .console {
    margin: 0;
    border-radius: 0;
  }

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

  .nav {
    justify-content: flex-start;
  }

  .signal {
    flex-direction: column;
  }

  .hero,
  .case {
    grid-template-columns: 1fr;
  }

  .document h1 {
    font-size: 32px;
  }

  .hero {
    min-height: auto;
    gap: 44px;
    padding: 48px 24px 56px;
  }

  .hero h1 {
    font-size: clamp(4rem, 21vw, 7rem);
    line-height: 0.82;
    white-space: normal;
  }

  .hero h1 span {
    display: block;
  }

  .hero-brief {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 24px;
  }

  .dial {
    width: min(62vw, 250px);
    justify-self: end;
  }

  .trays,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .ticket {
    grid-template-columns: 56px 1fr;
  }

  .ticket span:last-child {
    display: none;
  }

  .stamp {
    position: static;
  }

  .document {
    padding: 24px;
  }

  .case {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero .eyebrow,
  .hero h1 span,
  .hero-brief,
  .dial {
    animation: hero-fade 160ms cubic-bezier(0.16, 1, 0.3, 1) both;
    transform: none;
  }

  .dial:hover {
    transform: none;
  }
}

@keyframes hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
