/* ================================================================
   ASCENSION — A Night With Ascension
   Monochrome. Quiet. Curated.
   ================================================================ */

:root {
  --black: #060606;
  --ink: #0b0b0b;
  --white: #f4f1ec;
  --white-dim: rgba(244, 241, 236, 0.62);
  --white-faint: rgba(244, 241, 236, 0.38);
  --hairline: rgba(244, 241, 236, 0.16);
  --hairline-strong: rgba(244, 241, 236, 0.34);
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --px: 0px;  /* parallax offsets, set by JS */
  --py: 0px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ----------------------------------------------------------------
   Atmosphere — drifting light, film grain, vignette
   ---------------------------------------------------------------- */
.atmosphere { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.glow {
  position: absolute;
  width: 90vmax; height: 90vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  will-change: transform;
}
.glow-a {
  top: -35vmax; left: -20vmax;
  background: radial-gradient(circle at center, rgba(244,241,236,0.055) 0%, transparent 62%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.glow-b {
  bottom: -40vmax; right: -25vmax;
  background: radial-gradient(circle at center, rgba(244,241,236,0.04) 0%, transparent 60%);
  animation: drift-b 34s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(9vmax, 7vmax, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(-8vmax, -6vmax, 0) scale(1); }
}

.grain {
  position: absolute; inset: -100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain-shift 1.1s steps(4) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-38px, 22px); }
  50%  { transform: translate(24px, -30px); }
  75%  { transform: translate(-16px, -14px); }
  100% { transform: translate(0, 0); }
}

.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0,0,0,0.5) 100%);
}

/* ----------------------------------------------------------------
   Views + transitions
   ---------------------------------------------------------------- */
.view {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}
.view.is-active { opacity: 1; }
.view.is-leaving { opacity: 0; transition: opacity 0.55s ease; }
.view[hidden] { display: none; }

/* ----------------------------------------------------------------
   VIEW — Landing
   ---------------------------------------------------------------- */
.view-landing { justify-content: center; text-align: center; }

.landing-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate3d(var(--px), var(--py), 0);
  transition: transform 0.6s var(--ease-out);
  padding: 4vh 24px;
}

.arrow-button {
  display: block;
  position: relative;
  padding: 18px 34px;
  border-radius: 2px;
  outline-offset: 10px;
  transition: transform 0.8s var(--ease-out);
}
/* soft halo behind the mark */
.arrow-button::before {
  content: "";
  position: absolute;
  inset: -70% -180%;
  background: radial-gradient(ellipse at center, rgba(244,241,236,0.13) 0%, transparent 58%);
  opacity: 0;
  animation: soft-in 2.6s ease 2s forwards;
  pointer-events: none;
}
.arrow-button:hover { transform: translateY(-6px); }
.arrow-button:active { transform: translateY(-2px); }

.arrow-mark {
  width: clamp(56px, 8vh, 80px);
  height: auto;
  display: block;
  position: relative;
  /* draws itself upward slowly, then keeps a living glow */
  opacity: 0;
  clip-path: inset(100% 0 0 0);
  filter: blur(5px) drop-shadow(0 0 0 rgba(244,241,236,0));
  animation:
    arrow-draw 4s var(--ease-out) 0.4s forwards,
    arrow-breathe 5.5s ease-in-out 4.6s infinite;
}
@keyframes arrow-draw {
  0%   { opacity: 0; clip-path: inset(100% 0 0 0); filter: blur(5px) drop-shadow(0 0 0 rgba(244,241,236,0)); }
  22%  { opacity: 1; }
  /* finish the reveal fully un-clipped before the glow blooms —
     clip-path + drop-shadow together tint the clip box in Chromium */
  75%  { clip-path: inset(0 0 0 0); filter: blur(0) drop-shadow(0 0 0 rgba(244,241,236,0)); }
  76%  { clip-path: none; }
  100% { opacity: 1; clip-path: none; filter: blur(0) drop-shadow(0 0 22px rgba(244,241,236,0.5)); }
}
@keyframes arrow-breathe {
  0%, 100% { filter: blur(0) drop-shadow(0 0 14px rgba(244,241,236,0.35)); }
  50%      { filter: blur(0) drop-shadow(0 0 34px rgba(244,241,236,0.62)); }
}

.landing-title {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(26px, 4.6vw, 46px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-indent: 0.34em; /* optically re-centre tracked text */
  margin-top: 3.2vh;
}

.landing-sub {
  margin-top: 2.1vh;
  font-size: clamp(11px, 1.25vw, 13px);
  font-weight: 300;
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.enter-btn {
  margin-top: 6.5vh;
  padding: 15px 58px;
  border: 1px solid var(--hairline-strong);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 400;
  position: relative;
  overflow: hidden;
  transition: color 0.45s ease, border-color 0.45s ease;
}
.enter-btn span { position: relative; z-index: 1; }
.enter-btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--white);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
}
.enter-btn:hover { color: var(--black); border-color: var(--white); }
.enter-btn:hover::before { transform: scaleY(1); }

/* staged reveals */
.reveal { opacity: 0; transform: translateY(14px); animation: rise-in 1.4s var(--ease-out) forwards; }
.reveal-title { animation-delay: 3.6s; }
.reveal-sub   { animation-delay: 4.4s; }
.reveal-enter { animation-delay: 5.1s; }
@keyframes rise-in { to { opacity: 1; transform: translateY(0); } }
@keyframes soft-in { to { opacity: 1; } }

/* ----------------------------------------------------------------
   VIEW — Register
   ---------------------------------------------------------------- */
.view-register {
  justify-content: flex-start;
  padding: 7vh 24px 9vh;
  text-align: center;
}

.register-brand .wordmark {
  width: clamp(150px, 20vw, 210px);
  height: auto;
  display: block;
  opacity: 0.96;
}

.register-intro { margin-top: 7vh; max-width: 560px; }

.register-title {
  font-weight: 200;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: uppercase;
}

.register-lede {
  margin-top: 2.4vh;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.7;
  color: var(--white-dim);
}

/* form */
.register-form {
  width: min(430px, 100%);
  margin-top: 5.5vh;
  text-align: left;
}

.steps-progress {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 5vh;
}
.step-dot {
  width: 26px; height: 1px;
  background: var(--hairline);
  transition: background 0.5s ease;
}
.step-dot.is-current, .step-dot.is-done { background: var(--white); }

.form-step { border: 0; }
.form-step[hidden] { display: none; }
.form-step { animation: step-in 0.7s var(--ease-out); }
@keyframes step-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-label {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin-bottom: 4.2vh;
  text-align: center;
}

/* floating-label fields */
.field { position: relative; margin-bottom: 34px; }

.field input, .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.04em;
  padding: 10px 2px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.4s ease;
  caret-color: var(--white);
}
.field input:focus, .field select:focus { border-color: var(--white); }
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0 1000px var(--black) inset;
  transition: background-color 9999s;
}

.field label {
  position: absolute;
  left: 2px; top: 10px;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--white-faint);
  pointer-events: none;
  transition: transform 0.35s var(--ease-out), color 0.35s ease, font-size 0.35s ease;
  transform-origin: left top;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field-select select:focus + label,
.field-select select.has-value + label {
  transform: translateY(-22px) scale(0.82);
  color: var(--white-dim);
}
.field .opt { text-transform: none; letter-spacing: 0.05em; opacity: 0.75; }

/* instagram field */
.field-ig .ig-at {
  position: absolute; left: 2px; bottom: 11px;
  color: var(--white-dim);
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.field-ig input { padding-left: 22px; }
.field-ig input:focus ~ .ig-at,
.field-ig.has-value .ig-at { opacity: 1; }
.field-ig input:focus + label,
.field-ig input:not(:placeholder-shown) + label {
  transform: translateY(-22px) scale(0.82);
}
.ig-status {
  min-height: 20px;
  margin: -22px 0 26px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  transition: opacity 0.4s ease;
}
.ig-status.ok { color: rgba(214, 228, 208, 0.9); }
.ig-status.bad { color: rgba(232, 196, 188, 0.9); }
.ig-status.checking { color: var(--white-faint); }

/* select */
.field-select select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.field-select select option { background: var(--ink); color: var(--white); }
.select-caret {
  position: absolute; right: 6px; bottom: 18px;
  width: 8px; height: 8px;
  border-right: 1px solid var(--white-dim);
  border-bottom: 1px solid var(--white-dim);
  transform: rotate(45deg);
  pointer-events: none;
}

/* consents */
.consents { margin: 10px 0 6px; display: grid; gap: 18px; }
.check { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box {
  flex: 0 0 auto;
  width: 17px; height: 17px;
  margin-top: 2px;
  border: 1px solid var(--hairline-strong);
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.check input:focus-visible + .check-box { outline: 1px solid var(--white); outline-offset: 3px; }
.check-box::after {
  content: "";
  position: absolute; inset: 0;
  margin: auto;
  width: 4px; height: 8px;
  border-right: 1.5px solid var(--black);
  border-bottom: 1.5px solid var(--black);
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.check input:checked + .check-box { background: var(--white); border-color: var(--white); }
.check input:checked + .check-box::after { opacity: 1; }
.check-text {
  font-size: 13.5px;
  color: var(--white-dim);
  letter-spacing: 0.03em;
  line-height: 1.55;
}
.link-quiet {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-strong);
  padding: 0;
  letter-spacing: inherit;
  font-size: inherit;
  font-weight: inherit;
  transition: border-color 0.3s ease;
}
.link-quiet:hover { border-color: var(--white); }

/* errors */
.field-error {
  min-height: 20px;
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: rgba(232, 196, 188, 0.9);
  text-align: center;
}

/* step nav */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4.5vh;
}
.btn-ghost {
  padding: 13px 34px;
  border: 1px solid var(--hairline);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  font-weight: 400;
  transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease;
}
.btn-ghost:hover { border-color: var(--white); }
.btn-back { border-color: transparent; color: var(--white-faint); }
.btn-back:hover { color: var(--white); border-color: transparent; }

.btn-solid {
  padding: 15px 40px;
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  font-weight: 500;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.btn-solid:hover { opacity: 0.88; }
.btn-solid[disabled] { opacity: 0.45; cursor: wait; }

/* footer */
.register-footer {
  margin-top: auto;
  padding-top: 10vh;
  max-width: 480px;
}
.brand-statement {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--white-faint);
}
.principles {
  margin-top: 2.2vh;
  font-size: 10px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  color: var(--white-faint);
}

/* ----------------------------------------------------------------
   VIEW — Confirmation
   ---------------------------------------------------------------- */
.view-confirmation { justify-content: center; text-align: center; }

.confirm-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4vh 24px;
}

.confirm-arrow {
  width: clamp(46px, 6.5vh, 64px);
  height: auto;
  opacity: 0;
}
.view-confirmation.is-active .confirm-arrow {
  animation: arrow-ascend 1.9s var(--ease-out) 0.15s forwards;
}
@keyframes arrow-ascend {
  0%   { opacity: 0; transform: translateY(58vh) scale(0.96); filter: drop-shadow(0 0 0 rgba(244,241,236,0)); }
  35%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: drop-shadow(0 0 20px rgba(244,241,236,0.45)); }
}

.confirm-copy { margin-top: 5.5vh; }
.confirm-copy > * {
  opacity: 0;
  transform: translateY(12px);
}
.view-confirmation.is-active .confirm-copy > * {
  animation: rise-in 1.2s var(--ease-out) forwards;
}
.view-confirmation.is-active .confirm-copy > :nth-child(1) { animation-delay: 2.1s; }
.view-confirmation.is-active .confirm-copy > :nth-child(2) { animation-delay: 2.5s; }
.view-confirmation.is-active .confirm-copy > :nth-child(3) { animation-delay: 2.75s; }
.view-confirmation.is-active .confirm-copy > :nth-child(4) { animation-delay: 3.0s; }
.view-confirmation.is-active .confirm-copy > :nth-child(5) { animation-delay: 3.4s; }

.confirm-title {
  font-weight: 200;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  margin-bottom: 3.4vh;
}
.confirm-copy p {
  font-size: 14.5px;
  letter-spacing: 0.08em;
  line-height: 2;
  color: var(--white-dim);
}
.confirm-close {
  margin-top: 3vh;
  font-family: var(--serif) !important;
  font-style: italic;
  font-size: 17px !important;
  color: var(--white) !important;
}

/* ----------------------------------------------------------------
   Privacy modal
   ---------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.72); backdrop-filter: blur(6px); }
.modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: 80svh;
  overflow-y: auto;
  background: var(--ink);
  border: 1px solid var(--hairline);
  padding: 46px 42px;
  animation: step-in 0.5s var(--ease-out);
}
.modal-panel h3 {
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 15px;
  margin-bottom: 26px;
}
.modal-body p { font-size: 13.5px; line-height: 1.8; color: var(--white-dim); margin-bottom: 16px; letter-spacing: 0.03em; }
.modal-fine { font-size: 12px !important; color: var(--white-faint) !important; }
.modal-close {
  position: absolute; top: 14px; right: 18px;
  font-size: 22px; font-weight: 200;
  color: var(--white-dim);
  transition: color 0.3s ease;
}
.modal-close:hover { color: var(--white); }

/* ----------------------------------------------------------------
   Motion preferences
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .grain { animation: none; }
  .reveal, .confirm-copy > *, .confirm-arrow { opacity: 1 !important; transform: none !important; }
  .arrow-mark { opacity: 1 !important; clip-path: none !important; filter: none !important; }
  .arrow-button::before { opacity: 1 !important; }
}

@media (max-width: 560px) {
  .landing-title { font-size: 5.2vw; letter-spacing: 0.16em; text-indent: 0.16em; }
  .landing-sub { letter-spacing: 0.34em; text-indent: 0.34em; }
  .step-nav { gap: 12px; }
  .btn-ghost, .btn-solid { padding-left: 26px; padding-right: 26px; }
  .modal-panel { padding: 36px 26px; }
}
