/* ============================================================
   KAINĒ — coming soon
   Dark, editorial, restrained. Slow fades.
   ============================================================ */

:root {
  --black:      #0b0b0a;
  --black-soft: #121110;
  --bone:       #e7e1d6;
  --bone-dim:   rgba(231, 225, 214, 0.55);
  --bone-faint: rgba(231, 225, 214, 0.32);
  --gold:       #b98f53;
  --gold-ink:   #9a7338;
  --line:       rgba(231, 225, 214, 0.14);

  /* light "gallery" sections */
  --paper:      #f2efe9;
  --paper-edge: #e4ded3;
  --ink:        #17130e;
  --ink-dim:    rgba(23, 19, 14, 0.62);
  --ink-faint:  rgba(23, 19, 14, 0.38);
  --line-ink:   rgba(23, 19, 14, 0.14);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad:  clamp(1.5rem, 6vw, 6rem);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

::selection { background: var(--gold); color: var(--black); }

/* ---------- Film grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.6rem 0;
  background: linear-gradient(to bottom, rgba(11,11,10,0.9), rgba(11,11,10,0));
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), background 0.5s var(--ease);
  pointer-events: none;
}
.site-header.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.site-header__mark {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--bone);
  text-decoration: none;
  transition: color 0.5s var(--ease);
}
.site-header__link {
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-decoration: none;
  transition: color 0.4s var(--ease);
}
.site-header__link:hover { color: var(--bone); }
.site-header.on-light {
  background: linear-gradient(to bottom, rgba(242,239,233,0.94), rgba(242,239,233,0));
}
.site-header.on-light .site-header__mark { color: var(--ink); }
.site-header.on-light .site-header__link { color: var(--ink-dim); }
.site-header.on-light .site-header__link:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--pad);
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(185,143,83,0.06), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 120%, rgba(20,19,17,1), transparent 60%);
}
.hero__inner { position: relative; z-index: 2; }

.wordmark {
  width: min(72vw, 44rem);
  margin: 0 auto;
  line-height: 1;
}
.wordmark img { width: 100%; height: auto; }
.hero__rule {
  width: 1px;
  height: clamp(3rem, 8vw, 5.5rem);
  margin: clamp(1.75rem, 4vw, 2.75rem) auto;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  color: var(--bone);
  letter-spacing: 0.02em;
}
.hero__eyebrow {
  margin-top: 1.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  z-index: 2;
}
.hero__scroll span:first-child {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.hero__scroll-line {
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(to bottom, var(--bone-faint), transparent);
  animation: drift 2.6s var(--ease) infinite;
}
@keyframes drift {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.3; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .hero__scroll-line { animation: none; } }

/* ---------- Section rhythm ---------- */
section { position: relative; z-index: 2; }

.manifesto {
  padding: clamp(7rem, 22vw, 16rem) var(--pad);
  text-align: center;
}
.manifesto__line {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.25rem, 8vw, 5.5rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--bone-dim);
}
.manifesto__line--accent { color: var(--gold); font-style: italic; }

/* ---------- About page hero ---------- */
.about-hero {
  min-height: 58svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(7rem, 15vw, 11rem) var(--pad) clamp(3rem, 8vw, 5rem);
}
.about-hero__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
}
.about-hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.25rem, 6vw, 4rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
  max-width: 18ch;
}

/* ---------- Statement blocks ---------- */
.col {
  padding: clamp(5rem, 14vw, 10rem) var(--pad);
  border-top: 1px solid var(--line);
  text-align: center;
}
.col--alt { background: var(--black-soft); }
.col__label {
  font-size: 0.68rem;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.col__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 46ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.55;
  color: var(--bone);
}
.col__body em { font-style: italic; color: var(--gold); }
.greek { font-style: italic; color: var(--bone-dim); }

/* ---------- Flagship (light "gallery" section) ---------- */
.flagship {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(6rem, 15vw, 11rem) var(--pad);
  text-align: center;
}

.flagship__head { margin-bottom: clamp(3rem, 8vw, 5.5rem); }
.flagship__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.flagship__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  letter-spacing: 0.04em;
  margin-top: 0.9rem;
}

.flagship__showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.75rem, 7vw, 3.5rem);
}
.flagship__figure {
  position: relative;
  width: min(100%, 20rem);
  min-height: 12rem;
  background: var(--paper-edge);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flagship__figure img {
  width: 100%;
  height: auto;
  display: block;
}
.flagship__placeholder {
  display: none;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.75rem, 6vw, 3rem);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: var(--ink-faint);
}
.flagship__figure.is-missing img { display: none; }
.flagship__figure.is-missing .flagship__placeholder { display: block; }

.flagship__desc {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 32ch;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  line-height: 1.6;
  color: var(--ink-dim);
}

.flagship__desc strong { font-weight: 500; color: var(--ink); }

.flagship__note {
  margin-top: clamp(3rem, 8vw, 5rem);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (min-width: 900px) {
  .flagship__showcase {
    flex-direction: row;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
  }
  .flagship__figure {
    width: auto;
    height: clamp(18rem, 30vw, 24rem);
  }
  .flagship__figure img {
    width: auto;
    height: 100%;
  }
  .flagship__desc { flex: 0 0 clamp(14rem, 19vw, 18rem); }
}

/* ---------- Waitlist (light) ---------- */
.waitlist {
  padding: clamp(6rem, 18vw, 13rem) var(--pad);
  text-align: center;
  background: var(--paper);
  color: var(--ink);
}
.waitlist__inner { max-width: 34rem; margin: 0 auto; }
.waitlist__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  letter-spacing: 0.03em;
}
.waitlist__text {
  margin: 1.5rem auto 3rem;
  max-width: 40ch;
  color: var(--ink-dim);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.waitlist__form { display: flex; flex-direction: column; gap: 1.5rem; }
.waitlist__hp { position: absolute; left: -9999px; opacity: 0; }

.field { position: relative; }
.field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-ink);
  padding: 0.9rem 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-align: center;
  transition: border-color 0.5s var(--ease);
}
.field input:focus { outline: none; border-bottom-color: var(--gold-ink); }
.field label {
  position: absolute;
  left: 50%;
  top: 0.9rem;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  pointer-events: none;
  transition: all 0.4s var(--ease);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: -0.9rem;
  font-size: 0.6rem;
  color: var(--gold-ink);
}

.btn {
  align-self: center;
  background: transparent;
  border: 1px solid var(--ink-dim);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  padding: 1.1rem 2.75rem;
  cursor: pointer;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.waitlist__success {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-ink);
  margin-top: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) var(--pad) 3rem;
  border-top: 1px solid var(--line);
}
.site-footer__mark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
}
.site-footer__tag {
  margin-top: 0.75rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--bone-dim);
}
.site-footer__links {
  margin: 2.5rem 0 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.site-footer__links a {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-decoration: none;
  transition: color 0.4s var(--ease);
}
.site-footer__links a:hover { color: var(--gold); }
.site-footer__legal {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* Light footer — used on the home page, where the page runs white to the bottom */
.site-footer--light {
  background: var(--paper);
  color: var(--ink);
  border-top-color: var(--line-ink);
}
.site-footer--light .site-footer__tag { color: var(--ink-dim); }
.site-footer--light .site-footer__links a { color: var(--ink-dim); }
.site-footer--light .site-footer__links a:hover { color: var(--gold-ink); }
.site-footer--light .site-footer__legal { color: var(--ink-faint); }
