:root {
  --bg: #0a0909;
  --paper: #111010;
  --ink: #f2f0e8;
  --mute: #a6a29d;
  --line: rgba(255, 255, 255, 0.16);
  --white: #f4f1ea;
  --black: #0a0909;
  --soft: #ecece8;
  --display: "Anton", Impact, sans-serif;
  --condensed: "Barlow Condensed", sans-serif;
  --body: "DM Sans", "Segoe UI", sans-serif;
  --font: var(--body);
  --bubble: var(--condensed);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .page-title, .intro-title h1, .outro-title h1, .opening-card h1, .brand strong {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.kicker, .nav-links a, .meta, .brand span, .btn, .pay-choice, .entry-form button {
  font-family: var(--condensed);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.hold { overflow: hidden; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button, input, textarea { font-family: inherit; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  color: var(--white);
  background: rgba(7, 7, 7, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

body.hold .nav { opacity: 0; pointer-events: none; }

.brand { display: flex; align-items: center; gap: 12px; }

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.brand strong { display: block; font-size: 16px; font-weight: 400; }

.brand span, .kicker, .meta {
  display: block;
  color: var(--mute);
  font-size: 13px;
}

.nav-links { display: flex; align-items: center; gap: 2px; min-width: 0; }

.nav-links a { padding: 8px 8px; font-size: 15px; white-space: nowrap; }

.nav-links a[aria-current="page"] { border-bottom: 1px solid var(--white); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
}

.btn, .pay-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--black);
  padding: 12px 16px;
  font-size: 16px;
  cursor: pointer;
}

.btn.ghost, .pay-choice {
  background: transparent;
  color: var(--white);
}

.btn:hover, .pay-choice:hover, .pay-choice.active {
  background: var(--white);
  color: var(--black);
}

.sheet .btn {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.sheet .btn:hover { background: var(--white); color: var(--black); }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.preloader, .split-overlay, .tags-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
}

.preloader, .split-overlay { background: var(--black); color: var(--white); }

.preloader, .tags-overlay { z-index: 50; }

.split-overlay { z-index: 40; }

.intro-title, .outro-title {
  position: absolute;
  top: 50%;
  width: 100%;
  text-align: center;
  transform: translateY(-50%);
}

.intro-title { left: 0; }

.outro-title { left: calc(50% + 11rem); width: auto; }

.intro-title h1, .outro-title h1, .opening-card h1 {
  margin: 0;
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}

.intro-title h1 { font-size: clamp(48px, 8vw, 104px); }

.outro-title h1 { font-size: clamp(48px, 8vw, 104px); }

.tag {
  position: absolute;
  overflow: hidden;
  color: #8d8d8a;
  font-size: 18px;
}

.tag-1 { top: 16%; left: 10%; }
.tag-2 { bottom: 16%; left: 18%; }
.tag-3 { bottom: 28%; right: 10%; max-width: 40vw; }

.opening {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  clip-path: polygon(0 48%, 0 48%, 0 52%, 0 52%);
}

.opening-photo {
  position: absolute;
  inset: 0;
}

.opening-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
}

.opening-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: min(420px, 78vw);
  height: min(68vh, 620px);
  background: var(--white);
  color: var(--black);
  transform: translate(-50%, -50%);
  clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%);
}

.opening-card h1 { font-size: clamp(42px, 6vw, 72px); text-align: center; }

.opening-card .char span,
.intro-title .char span,
.outro-title .char span,
.tag .word {
  position: relative;
  display: inline-block;
  transform: translateY(-100%);
}

.opening-card .char span { transform: translateY(100%); }

.intro-title .char,
.outro-title .char,
.opening-card .char {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.intro-title .first-char { transform-origin: top left; }

.scroll-hint {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 3;
  margin: 0;
  color: var(--white);
  font-size: 15px;
  opacity: 0;
}

body.ready .scroll-hint { opacity: 1; }

.dissolve {
  position: relative;
  height: 180vh;
  color: var(--black);
  overflow: hidden;
}

.dissolve-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.dissolve-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120vh;
  display: grid;
  place-items: center;
  z-index: 2;
  padding: 24px;
  text-align: center;
}

.dissolve-copy h2 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.sheet { background: var(--white); color: var(--black); }

.sheet .wrap, .block .wrap { padding: 88px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2, .page-title {
  margin: 0;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  line-height: 0.9;
}

.section-head p, .lede { margin: 0; max-width: 420px; }

.catalog, .services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #d5d5d0;
}

.product, .service {
  min-height: 280px;
  padding: 24px 22px 22px 0;
  border-right: 1px solid #d5d5d0;
  border-bottom: 1px solid #d5d5d0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product:nth-child(3n), .service:nth-child(3n) { border-right: 0; padding-right: 0; }
.product:nth-child(3n+1), .service:nth-child(3n+1) { padding-left: 0; }
.product:nth-child(3n+2), .service:nth-child(3n+2) { padding-left: 22px; }

.product h3, .service h3 { margin: 0; font-size: 28px; font-weight: 400; }

.product p, .service p { margin: 0; }

.price { margin-top: auto; font-family: var(--bubble); font-size: 22px; }

.page {
  padding: 120px 0 72px;
}

.page-title { margin-bottom: 12px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.steps article { border-top: 1px solid var(--white); padding-top: 14px; }

.steps h3 { margin: 8px 0; font-size: 26px; font-weight: 400; }

.steps p { margin: 0; color: #d0d0cb; }

.checkout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 22px;
}

.panel h2 { margin: 0 0 16px; font-size: 32px; font-weight: 400; }

.line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.line h3 { margin: 0; font-size: 20px; font-weight: 400; }

.line p { margin: 4px 0 0; color: var(--mute); font-size: 15px; }

.qty { display: flex; align-items: center; gap: 8px; }

.qty button, .text-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.text-btn { width: auto; padding: 0 8px; }

label { display: block; margin: 12px 0 6px; font-size: 15px; color: var(--mute); }

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0b0b0b;
  color: var(--ink);
  padding: 12px 14px;
  font-size: 17px;
}

input:focus, textarea:focus { outline: 1px solid var(--white); }

.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 16px; }

.totals { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }

.totals strong { font-family: var(--bubble); font-size: 26px; font-weight: 400; }

.fine { color: var(--mute); font-size: 14px; }

.error { color: var(--white); border: 1px solid var(--white); padding: 10px 12px; }

.receipt {
  border: 1px solid var(--white);
  padding: 22px;
}

.receipt h2 { font-family: var(--bubble); font-weight: 400; }

footer.site-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 40px;
  color: var(--mute);
  font-size: 15px;
}

.feature-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }

.feature-list article { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line); }

.feature-list article:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }

.feature-list h3 { margin: 0 0 8px; font-size: 26px; font-weight: 400; }

.feature-list p { margin: 0 0 8px; color: #d0d0cb; }

.ledger { padding-bottom: 48px; }

.month-hero, .top-actions, .month-nav { display: flex; align-items: center; gap: 8px; }

.month-hero { justify-content: space-between; margin: 28px 0 18px; }

.month-title h2 { margin: 0; font-size: clamp(40px, 6vw, 68px); font-weight: 400; }

.icon-btn, .ghost, .file-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white);
  padding: 8px 14px;
  cursor: pointer;
}

.icon-btn { width: 42px; height: 42px; padding: 0; font-size: 24px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.stat { border: 1px solid var(--line); background: var(--paper); padding: 18px; }

.stat p { margin: 0; color: var(--mute); font-size: 14px; }

.stat strong { display: block; margin-top: 8px; font-family: var(--bubble); font-size: 28px; font-weight: 400; }

.year-strip { display: flex; gap: 6px; overflow-x: auto; padding: 16px 0; }

.year-strip button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--mute);
  padding: 8px 10px;
  cursor: pointer;
}

.year-strip button.active { background: var(--white); color: var(--black); }

.year-strip button.has-data:not(.active) { border-color: var(--line); color: var(--white); }

.year-strip small { display: block; font-size: 12px; }

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.entry-form { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 8px; margin-bottom: 14px; }

.entry-form input[name="note"], .entry-form button { grid-column: 1 / -1; }

.entry-form button {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
  padding: 12px;
  cursor: pointer;
}

.entry-form button.spend { background: transparent; color: var(--white); }

.entries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.entry {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px 12px;
  border: 1px solid var(--line);
  padding: 12px;
}

.entry h4 { margin: 0; font-size: 18px; font-weight: 400; }

.entry .note, .entry .meta { grid-column: 1 / 3; margin: 0; color: var(--mute); font-size: 14px; }

.entry .delete {
  grid-row: 1 / 3;
  grid-column: 3;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--mute);
  cursor: pointer;
}

.empty { color: var(--mute); text-align: center; }

.merch {
  position: relative;
  overflow: hidden;
  color: #111;
  background: transparent;
  padding-block: 72px;
}
.merch-fill { position: absolute; left: 0; right: 0; top: 72px; bottom: 72px; background: #f4f1ea; z-index: 0; }
.merch-edge { position: absolute; left: 0; width: 100%; height: 74px; z-index: 0; pointer-events: none; overflow: hidden; }
.merch-edge-top { top: 0; }
.merch-edge-bottom { bottom: 0; transform: scaleY(-1); }
.merch-wave { display: block; width: 200%; height: 100%; animation: merch-wave 18s linear infinite; }
.merch-edge-top .merch-wave { animation-direction: reverse; }
@keyframes merch-wave { to { transform: translateX(-50%); } }
.merch-outline {
  z-index: 1;
  position: absolute;
  inset: -8% -4%;
  font-family: var(--display);
  font-size: clamp(120px, 22vw, 340px);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px #11111122;
  transform: rotate(-8deg);
  pointer-events: none;
  white-space: nowrap;
}
.merch-inner {
  position: relative;
  z-index: 2;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-block: 64px;
}
.merch h2 { margin: 0; font-size: clamp(56px, 6vw, 92px); line-height: 0.9; color: #111; }
.merch p { margin: 18px 0 0; max-width: 36ch; color: #2a2a28; font-family: var(--body); letter-spacing: 0; text-transform: none; font-weight: 500; }
.merch .btn { margin-top: 28px; background: #111; color: #f4f1ea; border-color: #111; }
.merch .btn:hover { background: #f4f1ea; color: #111; }
.merch-hands {
  position: absolute;
  right: 0;
  top: 72px;
  bottom: 72px;
  width: min(58%, 760px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 1;
}
.merch-hand { width: 48%; }
.merch-hand img { display: none; }
.merch-hand canvas { width: 100%; height: auto; display: block; }

.panel-head { display: flex; justify-content: space-between; align-items: end; }

.panel-head h3 { margin: 0; font-size: 34px; font-weight: 400; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }

  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: #0c0c0c;
    border: 1px solid var(--line);
  }

  .nav-links.open { display: flex; }

  .catalog, .services, .steps, .checkout, .feature-list, .columns, .stats, .entry-form { grid-template-columns: 1fr; }

  .product, .service, .product:nth-child(3n+2), .service:nth-child(3n+2),
  .feature-list article:nth-child(even) {
    border-right: 0;
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .outro-title { left: calc(50% + 4.5rem); }

  .section-head, .month-hero, footer.site-foot { flex-direction: column; align-items: flex-start; }

  .pay-row { grid-template-columns: 1fr; }
  .merch-inner, .merch-hands { grid-template-columns: 1fr; position: relative; width: min(1180px, calc(100% - 40px)); height: auto; right: auto; top: auto; bottom: auto; margin: 0 auto; }
  .merch-hands { min-height: 180px; }
  .merch-inner { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader, .split-overlay, .tags-overlay { display: none; }
  .opening, .opening-card { clip-path: none; }
  .intro-title .char span, .outro-title .char span, .tag .word, .opening-card .char span { transform: none; }
}
