/* ==========================================================================
   Kahin Abri — Early Access
   ========================================================================== */

:root {
  --bg:        #f6f4f1;
  --bg-alt:    #efece7;
  --ink:       #14130f;
  --ink-soft:  #4a463f;
  --muted:     #8a847a;
  --line:      #ddd8d0;
  --line-soft: #e8e4dd;
  --white:     #ffffff;

  --serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --sans:  "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

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

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--bg); }

/* --------------------------------------------------------------- primitives */

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow { max-width: 760px; margin-inline: auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.rule {
  width: 1px;
  height: clamp(48px, 8vw, 80px);
  background: var(--line);
  margin: 0 auto;
}

/* ------------------------------------------------------------------- reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: #cfd6da;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  transform: scale(1.06);
  animation: heroDrift 18s var(--ease) forwards;
}

@keyframes heroDrift { to { transform: scale(1); } }

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 34%,
      rgba(246, 244, 241, 0.62) 0%,
      rgba(246, 244, 241, 0.26) 45%,
      rgba(246, 244, 241, 0.00) 78%),
    linear-gradient(to bottom,
      rgba(246, 244, 241, 0.35) 0%,
      rgba(246, 244, 241, 0.00) 28%,
      rgba(246, 244, 241, 0.00) 72%,
      rgba(246, 244, 241, 0.92) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 12vh, 8rem) var(--gutter);
}

.hero__logo {
  width: clamp(210px, 32vw, 360px);
  height: auto;
}

.hero__eyebrow {
  color: rgba(20, 19, 15, 0.62);
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  font-size: 0.6875rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
}

.hero__scroll {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: clamp(1.75rem, 4vh, 2.75rem);
  color: rgba(20, 19, 15, 0.5);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero__scroll span { text-indent: 0.3em; }

.hero__scroll i {
  display: block;
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom, rgba(20,19,15,0) 0%, rgba(20,19,15,0.55) 100%);
  animation: scrollPulse 2.6s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

/* ---------------------------------------------------------------- statement */

.section { padding-block: clamp(5rem, 14vw, 11rem); }

.statement { text-align: center; }

.statement h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5.4vw, 3.75rem);
  line-height: 1.16;
  letter-spacing: -0.005em;
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  text-wrap: balance;
}

.statement h1 em {
  font-style: italic;
  color: var(--ink-soft);
}

.statement p {
  margin: clamp(1.5rem, 3.5vw, 2.25rem) auto 0;
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.85;
}

/* --------------------------------------------------------------------- form */

.access {
  text-align: center;
  border-top: 1px solid var(--line-soft);
}

.access h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.625rem, 3.6vw, 2.5rem);
  line-height: 1.3;
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  text-wrap: balance;
}

.access__note {
  margin: 1rem auto 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.9375rem;
}

.form {
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  max-width: 520px;
  text-align: left;
}

.field { position: relative; }

.field label {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
  text-indent: 0.28em;
}

.field input,
.field select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.85rem 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  transition: border-color 0.45s var(--ease);
}

.field input::placeholder { color: #b6b0a6; font-weight: 300; }

.field input:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a847a' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}

.field--invalid input { border-bottom-color: #a5453c; }

.error {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #a5453c;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.field--invalid .error { opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1.75rem;
  padding: 1.15rem 2rem;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-indent: 0.28em;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), opacity 0.3s var(--ease);
}

.btn:hover { background: transparent; color: var(--ink); }
.btn:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.form__legal {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

.form__status {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  min-height: 1.25rem;
}

/* ------------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer__mark {
  width: 132px;
  opacity: 0.82;
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__meta a { position: relative; transition: color 0.4s var(--ease); }
.footer__meta a:hover { color: var(--ink); }
.footer__meta a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.footer__meta a:hover::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 620px) {
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__meta { justify-content: center; }
}

/* ============================================ thank-you page ============== */

.confirm {
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.confirm__banner {
  position: relative;
  height: clamp(220px, 38vh, 420px);
  overflow: hidden;
  background: #cfd6da;
}

.confirm__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.confirm__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 90% at 50% 45%,
      rgba(246, 244, 241, 0.66) 0%,
      rgba(246, 244, 241, 0.20) 55%,
      rgba(246, 244, 241, 0.00) 85%),
    linear-gradient(to bottom, rgba(246,244,241,0.30) 0%, rgba(246,244,241,0.00) 40%, rgba(246,244,241,1) 97%);
}

.confirm__logo {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(180px, 26vw, 270px);
}

.confirm__body {
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) clamp(4rem, 10vw, 7rem);
  text-align: center;
}

.confirm__body h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.12;
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
}

.confirm__body > .lede {
  margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
}

.tick {
  width: 46px;
  height: 46px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.tick svg { width: 17px; height: 17px; }
.tick svg path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw 0.9s var(--ease) 0.35s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.prefs {
  margin: clamp(3rem, 7vw, 4.5rem) auto 0;
  max-width: 520px;
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
  border-top: 1px solid var(--line-soft);
  text-align: left;
}

.prefs__intro {
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  max-width: 42ch;
  margin-inline: auto;
}

.prefs .field + .field { margin-top: 2rem; }

/* -------------------------------------------------------- combobox (state) */

.combo { position: relative; }

.combo__input { padding-right: 1.75rem !important; }

.combo__caret {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  color: var(--muted);
  pointer-events: none;
  transition: transform 0.35s var(--ease);
}
.combo__caret svg { width: 10px; height: 6px; display: block; }

.combo.is-open .combo__caret { transform: translateY(-50%) rotate(180deg); }

.combo__list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  max-height: 264px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px -22px rgba(20, 19, 15, 0.35);
}

.combo__list li {
  padding: 0.65rem 1.1rem;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.combo__list li[aria-selected="true"],
.combo__list li:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.combo__list li .match {
  color: var(--ink);
  font-weight: 400;
}

.combo__empty {
  padding: 0.9rem 1.1rem;
  font-size: 0.875rem;
  color: var(--muted);
  font-style: italic;
}

/* thin scrollbar, to match the hairline language elsewhere */
.combo__list::-webkit-scrollbar { width: 3px; }
.combo__list::-webkit-scrollbar-thumb { background: var(--line); }
.combo__list::-webkit-scrollbar-track { background: transparent; }

.done {
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  max-width: 520px;
  padding: 2rem;
  border: 1px solid var(--line);
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-soft);
}

[hidden] { display: none !important; }

/* ---------------------------------------------------------------- honeypot */
/* Off-screen rather than display:none — bots fill what they can find.
   Position:absolute keeps it out of the flow, so layout is untouched. */

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------- optional marker */

.opt {
  margin-left: 0.55em;
  font-size: 0.9em;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: #b6b0a6;
}

/* ---------------------------------------------------- hero art direction */
/* Two crops of the same photograph: the wide one, and a portrait crop for
   narrow screens (assets/hero-mobile.webp), swapped by the <picture> element
   in index.php. Because each crop is composed for its own shape, neither
   needs a focal-point nudge. */

.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* The portrait crop puts the shoes mid-frame, so on narrow screens the lockup
   moves up into the clear wall above them rather than sitting on top. */

@media (max-width: 860px) {
  .hero__inner { justify-content: flex-start; padding-top: 13vh; }
}

/* Step 2's banner is short and wide, so only the vertical focal point does
   anything here. This framing keeps the hand and the top of the shoes in
   view rather than slicing them through the middle. */

.confirm__bg { object-position: 50% 25%; }
