:root {
  --bg: #e8e8e3;
  --surface: #dcdcd6;
  --ink: #181715;
  --muted: #63625c;
  --accent: #bfb21a;
  --paper: #f4f3ee;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --margin: 48px;
  --face: "Bricolage Grotesque", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--face);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.top {
  position: absolute;
  z-index: 2;
  top: 44px;
  left: var(--margin);
  right: var(--margin);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 24px;
}
.mark { font-weight: 600; text-decoration: none; }
.links { display: flex; gap: 28px; }
.links a, .act, .menu { text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.act { justify-self: end; background: var(--accent); color: var(--ink); padding: 8px 14px; }
.menu { display: none; }
.links a:focus-visible, .act:focus-visible, .btn:focus-visible, .field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero {
  min-height: 100svh;
  padding: 0 var(--margin) 72px;
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: end;
}
.hero-statement { grid-column: 2; grid-row: 1; }
.hero-note { grid-column: 1; grid-row: 1; }
h1 { font-size: clamp(56px, 6.6vw, 104px); font-weight: 500; }
.line { display: block; overflow: hidden; }
.line span {
  display: block;
  transform: translateY(110%);
  animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.line:nth-child(2) span { animation-delay: 110ms; }
@keyframes rise { to { transform: none; } }
.hero-note {
  max-width: 32ch;
  color: var(--muted);
  font-size: 18px;
  opacity: 0;
  animation: fade 600ms ease 700ms forwards;
}
@keyframes fade { to { opacity: 1; } }

.intro { padding: 140px var(--margin) 120px; }
.intro-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.intro-head h2 { font-size: clamp(44px, 5vw, 76px); font-weight: 400; max-width: 10ch; }
.intro-head p { max-width: 32ch; justify-self: end; }
.facts {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin: 120px 0 0;
}
.facts div { max-width: 22ch; }
.facts dt { font-size: clamp(28px, 3vw, 44px); font-weight: 400; letter-spacing: -0.04em; }
.facts dd { margin: 8px 0 0; color: var(--muted); font-size: var(--step-small); }

.work {
  position: relative;
  background: var(--ink);
  color: var(--bg);
  min-height: 100svh;
  padding: 120px var(--margin);
}
.ledger { width: min(560px, 100%); margin-left: 22%; }
.ledger h2 { font-size: var(--step-lead); }
.ledger-lead { margin-top: 16px; color: #b9b8b2; max-width: 36ch; }
.ledger ul { list-style: none; margin: 32px 0 0; padding: 0; }
.ledger button {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  min-height: 44px;
  align-items: center;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 8px 0;
}
.ledger button span:nth-child(2) { color: #b9b8b2; }
.ledger li.is-dim button { color: #8d8c86; }
.slip {
  position: absolute;
  top: 180px;
  left: calc(22% + 560px + 64px);
  width: 300px;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  color: var(--ink);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.slip-kicker { font-size: var(--step-small); color: var(--muted); }
#slip-body { font-size: var(--step-lead); letter-spacing: -0.04em; line-height: 1.15; }

.method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 140px var(--margin);
  background: var(--ink);
  color: var(--bg);
  align-items: start;
}
.method h2 { font-size: clamp(40px, 4.4vw, 68px); font-weight: 500; max-width: 12ch; }
.method > div p { margin-top: 24px; max-width: 30ch; color: #c8c7c0; }
.receipt {
  background: var(--paper);
  color: var(--ink);
  padding: 28px 28px 0;
  width: min(460px, 100%);
  justify-self: end;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 96% 100%, 92% calc(100% - 16px), 88% 100%, 84% calc(100% - 16px), 80% 100%, 76% calc(100% - 16px), 72% 100%, 68% calc(100% - 16px), 64% 100%, 60% calc(100% - 16px), 56% 100%, 52% calc(100% - 16px), 48% 100%, 44% calc(100% - 16px), 40% 100%, 36% calc(100% - 16px), 32% 100%, 28% calc(100% - 16px), 24% 100%, 20% calc(100% - 16px), 16% 100%, 12% calc(100% - 16px), 8% 100%, 4% calc(100% - 16px), 0 100%);
}
.receipt h3 { margin: 28px 0 8px; font-size: var(--step-body); font-weight: 600; letter-spacing: 0; }
.receipt h3:first-child { margin-top: 0; }
.receipt p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--step-body);
  margin: 6px 0;
  font-variant-numeric: tabular-nums;
}
.dots { flex: 1; border-bottom: 2px dotted #b9b6aa; transform: translateY(-4px); }
.result {
  margin: 20px -28px 0;
  padding: 12px 28px;
  background: var(--ink);
  color: var(--paper);
  min-height: 44px;
}
.result .dots { display: none; }

.contact {
  padding: 200px var(--margin) 160px;
  max-width: 520px;
  margin-left: 22%;
}
.contact h2 { font-size: var(--step-lead); font-weight: 500; }
.contact h2 span { display: block; }
.contact h2 span:first-child { color: var(--muted); }
.field {
  margin-top: 28px;
  display: flex;
  background: var(--paper);
  min-height: 64px;
}
.field input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0 16px;
  min-width: 0;
}
.field input:focus { outline: none; }
.field:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.field button {
  border: 0;
  background: var(--accent);
  padding: 0 18px;
  cursor: pointer;
}
.after { margin-top: 16px; font-size: var(--step-small); color: var(--muted); }
.where { margin-top: 72px; }
.where div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; margin-top: 14px; font-size: var(--step-small); }
.where dt { color: var(--muted); }

.close {
  min-height: 100svh;
  background: var(--ink);
  color: var(--bg);
  padding: 12vh var(--margin) 0;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-content: start;
  overflow: hidden;
  position: relative;
}
.invite h2 { font-size: clamp(32px, 5vw, 72px); max-width: 12ch; }
.btn {
  display: inline-block;
  margin-top: 28px;
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
  padding: 14px 18px;
}
.foot-links { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.foot-links a { text-decoration: none; }
.legal {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18vh;
  font-size: var(--step-small);
  color: #b9b8b2;
}
.giant {
  grid-column: 1 / -1;
  font-size: 28vw;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.8;
  white-space: nowrap;
  transform: translateY(30%);
  margin: 0;
}

.lid {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.lid[hidden] { display: none; }
.lid span {
  flex: 1 1 50%;
  background: #070706;
}
.lid span:first-child { transform-origin: top; }
.lid span:last-child { transform-origin: bottom; }
.lid.is-shut span { animation: shut 420ms ease forwards; }
@keyframes shut {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .line span, .hero-note { animation: none; transform: none; opacity: 1; }
  .lid.is-shut span { animation: none; }
}

@media (max-width: 900px) {
  :root { --margin: 20px; }
  .top { grid-template-columns: 1fr auto auto; }
  .menu { display: inline; }
  .links {
    display: none;
    position: absolute;
    top: 36px;
    left: 0;
    background: var(--bg);
    padding: 12px 0;
    flex-direction: column;
    gap: 12px;
  }
  .links.is-open { display: flex; }
  .hero {
    min-height: 100svh;
    grid-template-columns: 1fr;
    align-content: end;
    padding-top: 48svh;
    gap: 16px;
  }
  .hero-statement { grid-column: 1; }
  h1 { font-size: 12.5vw; }
  .intro-head, .method, .facts { grid-template-columns: 1fr; display: grid; }
  .facts { gap: 32px; }
  .intro-head p, .receipt { justify-self: start; }
  .ledger { margin-left: 0; }
  .ledger button { grid-template-columns: 1fr auto; }
  .ledger button span:nth-child(2) { grid-column: 1; color: #b9b8b2; font-size: var(--step-small); }
  .slip { position: static; width: 100%; margin-top: 32px; }
  .contact { margin-left: 0; padding-left: var(--margin); padding-right: var(--margin); }
  .close { grid-template-columns: 1fr; }
  .giant { font-size: 34vw; }
  .legal { flex-direction: column; }
}
