/* =========================================================
   D3EN, "Quiet Reverence" theme.
   Matched to the brand's own identity: near-black canvas, warm bone type,
   no second colour. Bodoni Moda (Didone, like the D3EN wordmark) for the
   statement type, Archivo wide-tracked for labels and UI.
   Mobile-first. Built to capture waitlist emails.
   ========================================================= */

:root {
  --ink: #0a0a0a;          /* base canvas */
  --ink-2: #131313;        /* raised panel, inputs */
  --ink-3: #1c1c1c;        /* hover surface */
  --bone: #f2ece2;         /* primary text, and the only accent */
  --bone-dim: #cfc8bd;     /* secondary text */
  --muted: #918a80;        /* tertiary, fine print */
  --line: rgba(242, 236, 226, .15);
  --line-soft: rgba(242, 236, 226, .06);

  --font-display: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --font-ui: 'Archivo', system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --pad: 1.35rem;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Keyboard-only escape hatch straight to the one thing that matters here. */
.skip-link {
  position: absolute; left: -9999px; top: .5rem; z-index: 100;
  background: var(--bone); color: var(--ink);
  padding: .7rem 1.1rem; border-radius: 2px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: .5rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* --- Film grain. Sits over everything, never intercepts a click. --- */
.grain {
  position: fixed; inset: -50%; z-index: 5; pointer-events: none;
  opacity: .28; mix-blend-mode: overlay;
  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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* =========================================================
   Stage: one full-height composition, content anchored low.
   ========================================================= */
.stage {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 1.4rem var(--pad) 1.2rem;
  max-width: var(--maxw); margin: 0 auto;
  isolation: isolate;
}

/* Fine lattice, drawn in gradients so there is no image to load. Kept
   near-invisible: it should read as texture, not decoration. */
.stage__pattern {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, var(--line-soft) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(-45deg, var(--line-soft) 0 1px, transparent 1px 58px);
  -webkit-mask-image: radial-gradient(120% 85% at 80% 8%, #000 0%, transparent 70%);
          mask-image: radial-gradient(120% 85% at 80% 8%, #000 0%, transparent 70%);
}

.stage__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}

/* The client's own wordmark, extracted from their logo artwork as white-on-transparent
   so it sits on the ink background with no plate behind it. */
.wordmark { margin: 0; line-height: 0; }
.wordmark img { width: auto; height: 26px; display: block; }

.status-pill {
  margin: 0; display: inline-flex; align-items: center; gap: .55rem;
  border: 1px solid var(--line); border-radius: 100px;
  padding: .38rem .85rem;
  font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bone-dim);
}
.status-pill__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--bone);
  box-shadow: 0 0 0 0 rgba(242, 236, 226, .5);
  animation: pulse 2.6s var(--ease-out) infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(242, 236, 226, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 236, 226, 0); }
}

.stage__body {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 2.2rem; padding: 2.4rem 0 1.8rem;
}

/* --- The lede --- */
.eyebrow {
  margin: 0 0 1.1rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 1.2rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.9rem, 12vw, 6.4rem);
  line-height: .95; letter-spacing: .005em;
  text-transform: uppercase; text-wrap: balance;
  /* Bodoni Moda is optical-size aware: left to itself at display sizes it picks maximum
     contrast and the hairline stems of N and E thin out to nothing on screen. Pin a text
     optical size so the strokes survive. */
  font-optical-sizing: none;
  font-variation-settings: 'opsz' 30;
}

.lead {
  margin: 0 0 2.4rem; max-width: 44ch;
  font-size: 1.02rem; color: var(--bone-dim); text-wrap: pretty;
}

/* --- Waitlist block --- */
.join { border-top: 1px solid var(--line); padding-top: 1.7rem; max-width: 640px; }

.join__title {
  margin: 0 0 .45rem;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 5.5vw, 2rem); line-height: 1.15;
  letter-spacing: .04em; text-transform: uppercase;
}

.join__note { margin: 0 0 1.3rem; font-size: .93rem; color: var(--muted); max-width: 46ch; }
.join__note em { font-family: var(--font-display); font-style: italic; font-size: 1.05em; color: var(--bone); }

.form__row { display: flex; flex-direction: column; gap: .6rem; }
.field { display: flex; }
.field--grow { flex: 1; }

.field__input {
  width: 100%;
  background: var(--ink-2); color: var(--bone);
  border: 1px solid var(--line); border-radius: 2px;
  padding: .95rem 1rem;
  font-family: var(--font-ui); font-size: 1rem;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.field__input::placeholder { color: #857e74; }
.field__input:hover { border-color: rgba(242, 236, 226, .28); }
.field__input:focus-visible {
  outline: 2px solid var(--bone); outline-offset: 2px;
  border-color: transparent; background: var(--ink-3);
}
.field__input[aria-invalid="true"] { border-color: #d07a5e; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bone); color: var(--ink);
  border: 1px solid var(--bone); border-radius: 2px;
  padding: .95rem 1.7rem;
  font-family: var(--font-ui); font-size: .76rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out);
}
.btn:hover { background: #fff; border-color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.btn[disabled] { opacity: .55; cursor: progress; }

.form__status {
  margin: .9rem 0 0; font-size: .92rem; color: var(--bone);
  border-left: 2px solid var(--bone); padding-left: .8rem;
}
.form__status[data-state="error"] { color: #eaa48f; border-left-color: #d07a5e; }

.form__fine { margin: .9rem 0 0; font-size: .76rem; color: var(--muted); }

/* --- Campaign image -------------------------------------------------
   One <img>, two jobs. On phones it sits behind the whole composition as
   a scrimmed backdrop (one download, no wasted bytes on a hidden image);
   from 1040px up it becomes the right-hand panel of the split layout. --- */
.showcase { margin: 0; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.showcase__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
  display: block;
}
/* Scrim over the backdrop. Heavy at the top so the wordmark and headline keep
   their contrast, and solid at the base so the ticker sits on true black. */
.showcase::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 10, 10, .94) 0%,
    rgba(10, 10, 10, .74) 26%,
    rgba(10, 10, 10, .88) 60%,
    var(--ink) 86%);
}
.showcase__caption { display: none; }

/* --- Word ticker: Arabic paired with its transliteration --- */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: .85rem 0; overflow: hidden;
  margin: 0 calc(50% - 50vw);
}
.ticker__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.ticker__row {
  display: flex; align-items: baseline; gap: 1.1rem; margin: 0; padding-right: 1.1rem;
  white-space: nowrap;
}
.ticker__row span {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--bone);
}
.ticker__row em {
  font-family: var(--font-ui); font-style: normal;
  font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.ticker__row i { color: var(--bone-dim); font-size: .55rem; font-style: normal; opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

.stage__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem 1rem; flex-wrap: wrap;
  padding-top: 1.2rem;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.stage__foot p { margin: 0; }
.stage__foot-links { display: flex; gap: 1.2rem; }
.stage__foot a { color: var(--bone-dim); text-decoration: none; border-bottom: 1px solid var(--line); }
.stage__foot a:hover { color: var(--bone); border-bottom-color: var(--bone); }
.stage__foot a:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }

/* =========================================================
   Larger screens
   ========================================================= */
@media (min-width: 760px) {
  :root { --pad: 2.5rem; }
  .stage { padding: 2rem var(--pad) 1.6rem; }
  .form__row { flex-direction: row; align-items: stretch; }
  .field--grow { flex: 1.4; }
  .lead { font-size: 1.1rem; }
  .ticker__row span { font-size: 2rem; }
}

@media (min-width: 1040px) {
  .stage__body {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr);
    align-items: end; gap: 4rem;
  }
  /* The backdrop becomes a proper panel. */
  .showcase { position: static; inset: auto; z-index: auto; pointer-events: auto; }
  .showcase::after { content: none; }
  .showcase__img {
    aspect-ratio: 4 / 5; height: auto;
    border: 1px solid var(--line);
  }
  .showcase__caption {
    display: block; margin-top: .8rem;
    font-size: .66rem; font-weight: 600; letter-spacing: .18em;
    text-transform: uppercase; color: var(--muted);
  }
}

/* =========================================================
   Motion. Arms only via JS so a no-JS visitor always sees content.
   ========================================================= */
.is-reveal-armed .reveal { opacity: 0; transform: translateY(18px); }
.is-reveal-armed .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.is-reveal-armed .showcase.is-in { transition-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .status-pill__dot { animation: none; }
  .is-reveal-armed .reveal { opacity: 1; transform: none; }
  * { transition-duration: .001ms !important; }
}
