@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Outfit:wght@300;400;500;600&display=swap");

:root {
  --bg: #0c0b0a;
  --bg-elevated: #141210;
  --fg: #f4efe6;
  --muted: #9a9286;
  --subtle: #6f6960;
  --accent: #e8e0d4;
  --accent-fg: #0c0b0a;
  --border: color-mix(in oklab, var(--fg) 14%, transparent);
  --border-strong: color-mix(in oklab, var(--fg) 24%, transparent);
  --danger: #c46a5c;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  min-height: 100dvh;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100dvh; }

h1, h2, h3 { text-wrap: balance; font-weight: 500; }
p { text-wrap: pretty; }

a { color: inherit; }
button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }

::selection {
  background: var(--accent);
  color: var(--accent-fg);
}

.font-display { font-family: var(--font-display); }

.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.screen.stacked {
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.hero {
  margin: 0;
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.hero img {
  display: block;
  width: 100%;
  height: 32svh;
  min-height: 180px;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-touch-callout: none;
}

.panel {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2rem;
}

.mark { width: 2rem; height: 2rem; color: var(--fg); display: block; margin: 0 auto 2rem; }
.mark-sm { width: 1.25rem; height: 1.25rem; margin: 0; }

.kicker {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.headline {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.lede {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

form { display: grid; gap: 1.25rem; }
#gate-box { display: grid; gap: 1.25rem; }
.dob-label {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtle);
}
.date-input {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
}
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

legend {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtle);
}

.dob { display: flex; gap: 0.5rem; position: relative; }

.select-wrap { flex: 1; min-width: 0; position: relative; }
.select-wrap select {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0 1.75rem 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}
.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--subtle);
  pointer-events: none;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.check-row input { margin-top: 0.2rem; width: 1rem; height: 1rem; flex: none; }

.check-row a {
  color: var(--fg);
  text-underline-offset: 4px;
}
.check-row a:hover { text-decoration: underline; }

.alert { margin: 0; font-size: 0.875rem; color: var(--danger); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-fg);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  touch-action: manipulation;
}
.btn:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { background: #1c1916; }

.leave {
  display: block;
  margin: 1rem auto 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--subtle);
  font: inherit;
  font-size: 0.875rem;
  text-underline-offset: 4px;
}
.leave:hover { color: var(--fg); text-decoration: underline; }

.legal-links {
  margin: 2.5rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--subtle);
}
.legal-links a { text-underline-offset: 4px; }
.legal-links a:hover { color: var(--muted); text-decoration: underline; }

.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.bar {
  border-bottom: 1px solid var(--border);
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  max-width: 48rem;
  width: 100%;
  margin: 0 auto;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.badge {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--subtle);
}
.house {
  flex: 1;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.house .kicker,
.house .headline,
.house .lede { text-align: center; }
.house .lede { margin-bottom: 2rem; }
.looks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .looks { grid-template-columns: 1fr 1fr 1fr; }
}
.look, .look-btn {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: block;
  width: 100%;
  color: inherit;
}
.look img, .look-btn img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  height: auto;
  pointer-events: none;
  -webkit-touch-callout: none;
}
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.pager button {
  border: 0;
  background: none;
  color: var(--subtle);
  font: inherit;
}
.pager button:hover { color: var(--fg); }
.pager button:disabled { opacity: 0.3; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 95%, transparent);
  display: flex;
  flex-direction: column;
  padding: 1rem;
}
.lightbox-scrim { position: absolute; inset: 0; border: 0; background: transparent; }
.lightbox-panel {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: 100%;
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.lightbox-bar h2 {
  margin: 0;
  font-size: 1.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lightbox-panel img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 70svh;
  object-fit: contain;
  pointer-events: none;
  -webkit-touch-callout: none;
  min-height: 0;
}
.lightbox-panel > .btn {
  width: 12rem;
  max-width: calc(100% - 2rem);
  margin: 1.5rem auto 0;
  flex-shrink: 0;
}
.lightbox-panel:has(.wait-form),
.lightbox-panel:has([data-testid="wait-done"]) {
  justify-content: flex-start;
}
.lightbox-panel:has(.wait-form) img,
.lightbox-panel:has([data-testid="wait-done"]) img {
  max-height: 38svh;
}
.wait-form {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.75rem;
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom);
}
.wait-form input {
  width: 100%;
  height: 3rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  padding: 0 0.75rem;
}
.wait-form .btn {
  font-size: 1rem;
  height: 3rem;
}
.wait-form .leave {
  margin-top: 0.25rem;
}
.bar-right { display: flex; align-items: center; gap: 1rem; }
.nav-sit {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--subtle);
  text-decoration: none;
}
.nav-sit:hover { color: var(--fg); }
.interest {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.interest a { flex: 1; width: auto; }
.btn-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  font: inherit;
}
.btn-quiet:hover { background: #1c1916; }
.apply-form {
  display: grid;
  gap: 1rem;
  text-align: left;
  max-width: 28rem;
  margin: 0 auto;
}
.apply-form label span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtle);
}
.apply-form input,
.apply-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
  padding: 0 0.75rem;
}
.apply-form input { height: 2.75rem; }
.apply-form textarea { padding: 0.6rem 0.75rem; resize: vertical; }
.product-name { margin: 0.75rem 0 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
.product-blurb { margin: 0.35rem 0 0; font-size: 0.75rem; line-height: 1.5; color: var(--muted); }
.foot {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  max-width: 48rem;
  width: 100%;
  margin: 0 auto;
}
.foot-links { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--fg); }
.copyright { margin: 1rem 0 0; font-size: 0.75rem; color: var(--subtle); }

.legal-page { max-width: 48rem; margin: 0 auto; padding: 3rem 1.5rem 4rem; width: 100%; }
.legal-page .kicker { text-align: left; letter-spacing: 0.22em; }
.legal-page h1 { text-align: left; font-size: 2.25rem; margin: 0 0 2rem; }
.legal-page p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; margin: 0 0 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.gate-stagger > * {
  opacity: 0;
  transform: translateY(10px);
  animation: gate-in 500ms var(--ease) forwards;
}
.gate-stagger > *:nth-child(1) { animation-delay: 40ms; }
.gate-stagger > *:nth-child(2) { animation-delay: 100ms; }
.gate-stagger > *:nth-child(3) { animation-delay: 160ms; }
.gate-stagger > *:nth-child(4) { animation-delay: 220ms; }
.gate-stagger > *:nth-child(5) { animation-delay: 280ms; }
.gate-stagger > *:nth-child(6) { animation-delay: 340ms; }
.gate-stagger > *:nth-child(7) { animation-delay: 400ms; }
.gate-stagger > *:nth-child(8) { animation-delay: 460ms; }

@keyframes gate-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 640px) {
  .headline { font-size: 3rem; }
  .kicker { margin-bottom: 0.75rem; }
  .lede { margin-bottom: 2rem; }
  .foot-links { flex-direction: row; gap: 1.5rem; }
  .hero img { height: 38svh; }
}

@media (prefers-reduced-motion: reduce) {
  .gate-stagger > * { animation: none; opacity: 1; transform: none; }
}
