@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Monoton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/monoton-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg:      #C6DCD2;
  --bg-2:    #EFF6F3;
  --ink:     #2B3038;
  --ink-2:   #4C4C4C;
  --taupe:   #4A5F53;
  --line:    #CDB4DB;
  --accent:  #853222;
  --accent-hover: #9A3423;
  --on-accent: #FFFFFF;

  --veil:    rgba(247, 251, 249, 0.70);
  --veil-2:  rgba(250, 253, 251, 0.88);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", Arial, "Helvetica Neue", system-ui, sans-serif;
  --stripes: "Monoton", fantasy;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --wide: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  min-height: 100%;

  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
}

body::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image: url("streaks.svg"), linear-gradient(180deg, #E4F1F5 0, #DCEEEA 22vh, #D2E8DD 44vh, #C0DBCC 70vh, #A8C9B5 100vh, #8FB89F 100%);
  background-size: 100% 1100px, 100% 100%;
  background-repeat: repeat-y, no-repeat;
}

::selection { background: var(--accent); color: var(--on-accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding-inline: var(--gutter); }

.header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem var(--gutter);
  background: var(--veil-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__brand {
  margin-right: auto;
  font-family: var(--stripes); font-weight: 400; font-size: 1.05rem;
  line-height: 1; color: var(--accent); text-decoration: none;
}
.header__brand .alt { color: var(--ink); }
.header__link {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none;
}
.header__link:hover { color: var(--accent); }
.header__link.is-current { color: var(--accent); }

.gate {
  min-height: calc(100vh - 3.4rem); min-height: calc(100dvh - 3.4rem);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem var(--gutter) 3.5rem; position: relative;
}
.gate__name {
  font-family: var(--stripes); font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  line-height: 1.1; color: var(--accent);
}
.gate__name .alt { color: var(--ink); }

.waitlist { margin-top: 3.2rem; width: 100%; max-width: 24rem; }
.waitlist__label { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 1rem; }
.waitlist__row {
  display: flex; border: 1px solid var(--line);
  background: rgba(255, 252, 253, 0.92);
  border-radius: 14px; overflow: hidden;
}
.waitlist__input {
  flex: 1; min-width: 0;
  background: none; border: none; color: var(--ink);
  font-family: var(--sans); font-size: 0.9rem;
  padding: 0.8rem 0.95rem;
}
.waitlist__input::placeholder { color: var(--taupe); }
.waitlist__btn {
  background: var(--accent); color: var(--on-accent); border: none;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
  padding: 0.8rem 1.4rem; cursor: pointer;
  transition: background-color 0.25s ease;
}
.waitlist__btn:hover { background: var(--accent-hover); color: var(--on-accent); }

.gate__scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  color: var(--taupe); font-size: 1rem; text-decoration: none;
}
.gate__scroll:hover { color: var(--accent); }

.reveal {
  border-top: 1px solid var(--line);
  padding-block: clamp(4rem, 10vw, 8rem);
  background: var(--veil);
}
.reveal__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem); align-items: stretch;
}

.photo-frame { overflow: hidden; min-height: 380px; }
.photo-ph {
  width: 100%; height: 100%;
  border: 1px dashed var(--line); background: rgba(255, 255, 255, 0.45);
  display: flex; align-items: center; justify-content: center;
  color: var(--taupe); font-size: 0.85rem;
}

.index { display: flex; flex-direction: column; }
.index__titles {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1.2rem; margin-bottom: 1.1rem;

  min-height: 2.5rem;
}
.idx-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.25rem; line-height: 1.2; color: var(--taupe);
  background: none; border: none; cursor: pointer; text-align: left; padding: 0;
  transition: font-size 0.4s cubic-bezier(.22,.61,.36,1), color 0.3s ease;
}
.idx-title:hover { color: var(--accent); }
.idx-title.is-active {
  font-size: 1.9rem; font-weight: 500; color: var(--ink);
  animation: titleFade 0.5s ease both;
}
@keyframes titleFade { from { opacity: 0.2; } to { opacity: 1; } }

.index__panels { display: grid; flex: 1; overflow: hidden; }
.index__body { grid-area: 1 / 1; color: var(--ink-2); font-size: 0.95rem; }
.index__body[hidden] { display: block; visibility: hidden; opacity: 0; }
.index__body.enter { animation: panelIn 0.7s cubic-bezier(.22,.61,.36,1) both; }
@keyframes panelIn {
  from { opacity: 0; transform: translateX(56px); }
  to   { opacity: 1; transform: translateX(0); }
}
.index__body p + p { margin-top: 1rem; }

.index--solo {
  display: block; max-width: 42rem; margin: 0 auto;
}
.index--solo .index__title {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.9rem; line-height: 1.2; margin-bottom: 1.1rem;
}
.index--solo .index__body { color: var(--ink-2); font-size: 0.95rem; }

.doc {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  min-height: calc(100vh - 3.4rem);
  min-height: calc(100dvh - 3.4rem);
  box-sizing: border-box;
}
.doc__title {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.9rem; line-height: 1.2; margin-bottom: 1.6rem;
}
.doc__body { color: var(--ink-2); font-size: 0.95rem; max-width: 70ch; }
.doc__body p + p { margin-top: 1.1rem; }

.footer { border-top: 1px solid var(--line); text-align: center; padding: 3rem 2rem; background: var(--veil-2); }
.footer__contact { font-size: 1.35rem; font-weight: 600; }
.footer__contact-row {
  display: flex; justify-content: center; gap: 0.9rem 2rem; flex-wrap: wrap;
  margin-top: 0.7rem; font-weight: 400; font-size: 1.02rem;
}
.footer__link { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 0.12em; }
.footer__link:hover { color: var(--accent); border-color: var(--accent); }
.footer__copy { font-size: 0.72rem; color: var(--taupe); margin-top: 1.4rem; }

@keyframes pushIn {
  from { opacity: 0; transform: scale(1.08); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gate__name   { animation: pushIn 0.9s cubic-bezier(.22,.61,.36,1) both; }
.waitlist     { animation: fadeUp 0.8s cubic-bezier(.22,.61,.36,1) 0.45s both; }
.gate__scroll { animation: fadeUp 0.8s ease 0.9s both; }

.io-push  { opacity: 0; transform: scale(1.1); transition: opacity 0.9s cubic-bezier(.22,.61,.36,1), transform 0.9s cubic-bezier(.22,.61,.36,1); }
.io-slide { opacity: 0; transform: translateX(56px); transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1); }
.io-slide.d1 { transition-delay: 0.12s; }
.io-slide.d2 { transition-delay: 0.24s; }
.io-push.in  { opacity: 1; transform: scale(1); }
.io-slide.in { opacity: 1; transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gate__name, .waitlist, .gate__scroll { animation: none; }
  .io-push, .io-slide { opacity: 1; transform: none; transition: none; }
  .idx-title { transition: none; }
  .idx-title.is-active { animation: none; }
  .index__body.enter { animation: none; }
}

.no-js .io-push, .no-js .io-slide { opacity: 1; transform: none; }

@media (max-width: 680px) {
  .reveal__grid { grid-template-columns: 1fr; }
  .photo-frame { min-height: 240px; }
  .index__titles { flex-wrap: wrap; gap: 0.6rem 1.2rem; }
  .idx-title.is-active { font-size: 1.6rem; }
  .header { gap: 1.1rem; }
}

button.footer__copy-email {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--sans); font-size: inherit; color: var(--ink);
  border-bottom: 1px solid var(--line); padding-bottom: 0.12em;
}
button.footer__copy-email:hover { color: var(--accent); border-color: var(--accent); }
button.footer__copy-email.is-copied { color: var(--accent); border-color: var(--accent); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist__status { margin-top: 0.8rem; font-size: 0.85rem; font-weight: 600; min-height: 1.4em; }
.waitlist__status.is-ok  { color: var(--ink); }
.waitlist__status.is-err { color: #7A1E12; }
