/* Storroh — host-first coming-soon landing page.
   One page, one stylesheet. Palette pulled straight out of the hero photo:
   near-black garage, amber worklight, cream paper. */

/* ---------------------------------------------------------------- tokens */
:root {
  --night:      oklch(0.16 0.012 60);   /* body */
  --night-deep: oklch(0.12 0.010 60);   /* footer, hero scrim */
  --surface:    oklch(0.22 0.016 62);   /* raised panels */
  --hairline:   oklch(0.32 0.018 62);
  --bone:       oklch(0.96 0.014 84);   /* primary text on night */
  --bone-dim:   oklch(0.78 0.020 78);   /* secondary text */
  --paper:      oklch(0.95 0.016 82);   /* the one light panel */
  --paper-ink:  oklch(0.20 0.014 60);
  --paper-dim:  oklch(0.44 0.020 62);
  --paper-line: oklch(0.86 0.020 80);

  --flame:      oklch(0.685 0.185 45);  /* the accent */
  --flame-lift: oklch(0.745 0.165 50);
  --ember:      oklch(0.80 0.130 68);   /* the worklight glow */

  --shell: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.35rem + 1.2vw, 2.4rem);
  --step-3:  clamp(2.2rem, 1.6rem + 3vw, 4rem);
  --step-4:  clamp(2.75rem, 1.7rem + 5.2vw, 5rem);

  --out: cubic-bezier(0.16, 1, 0.3, 1);

  --z-sticky: 20;
  --z-toast: 60;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: Archivo, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }

.display {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display em { font-style: italic; letter-spacing: -0.015em; }

.shell { width: min(100% - (var(--gutter) * 2), var(--shell)); margin-inline: auto; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: var(--z-toast);
  background: var(--flame); color: var(--night-deep);
  padding: 0.6rem 1rem; border-radius: 6px; font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--out);
}
.skip:focus { top: 1rem; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: 0; border-radius: 999px;
  font: inherit; font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.25s var(--out), transform 0.25s var(--out), color 0.25s var(--out);
}
.btn svg { flex: none; transition: transform 0.3s var(--out); }
.btn:hover svg { transform: translateX(3px); }
.btn--flame { background: var(--flame); color: var(--night-deep); }
.btn--flame:hover { background: var(--flame-lift); }
.btn--ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px var(--hairline); }
.btn--ghost:hover { background: rgb(255 255 255 / 0.06); }
.btn--lg { padding: 1.1rem 2rem; font-size: var(--step-0); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* ------------------------------------------------------------------- nav */
.masthead {
  position: fixed; inset: 0 0 auto; z-index: var(--z-sticky);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--out), background-color 0.3s var(--out), backdrop-filter 0.3s var(--out);
}
.masthead[data-stuck="true"] {
  background: color-mix(in oklab, var(--night-deep) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.wordmark {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.wordmark span { color: var(--flame); }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--night) 2%, color-mix(in oklab, var(--night-deep) 72%, transparent) 46%, transparent 82%),
    linear-gradient(to right, color-mix(in oklab, var(--night-deep) 80%, transparent) 0%, transparent 58%);
}
.hero__inner { padding: 6rem 0 clamp(2.25rem, 6vh, 3.75rem); }
.kicker {
  margin: 0; font-size: var(--step-0); font-weight: 500;
  color: var(--flame-lift);
}
.hero h1 { font-size: var(--step-4); margin: 1.35rem 0 0; max-width: 17ch; }
.hero__sub {
  margin: 1.4rem 0 0; max-width: 46ch;
  color: var(--bone-dim); font-size: var(--step-0); line-height: 1.6; text-wrap: pretty;
}
.hero__cta { margin-top: 1.9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.hero__fine { font-size: var(--step--1); color: var(--bone-dim); margin: 0; }

/* ------------------------------------------------------------ why/ledger */
.band { padding: clamp(4.5rem, 12vh, 9rem) 0; }
.band__h { font-size: var(--step-2); }
.perks {
  display: grid; gap: clamp(1.75rem, 4vw, 3rem);
  margin-top: clamp(1.75rem, 4vh, 2.5rem);
  padding-top: clamp(1.75rem, 4vh, 2.5rem);
  border-top: 1px solid var(--hairline);
}
@media (min-width: 720px) { .perks { grid-template-columns: repeat(3, 1fr); } }
.perk h3 { font-size: var(--step-1); font-weight: 600; margin-bottom: 0.5rem; }
.perk p { margin: 0; color: var(--bone-dim); font-size: var(--step--1); line-height: 1.65; max-width: 40ch; }

/* ------------------------------------------------------------------ form */
.apply { background: var(--paper); color: var(--paper-ink); padding: clamp(4rem, 11vh, 8rem) 0; }
.apply h2 { font-size: var(--step-3); max-width: 16ch; }
.apply__lede { margin: 1.1rem 0 0; color: var(--paper-dim); max-width: 56ch; text-wrap: pretty; }

.form { margin-top: clamp(2.5rem, 6vh, 3.5rem); max-width: 760px; }
.form[data-state="done"] { display: none; }
.fieldset { border: 0; padding: 0; margin: 0 0 2.5rem; }
.fieldset > legend {
  padding: 0 0 1rem;
  font-family: "Instrument Serif", serif; font-size: var(--step-1);
  letter-spacing: 0;
}
.grid2 { display: grid; gap: 1.25rem; }
@media (min-width: 620px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--wide { grid-column: 1 / -1; }
.field > span { font-size: var(--step--1); font-weight: 600; }
.field .hint { font-weight: 400; color: var(--paper-dim); font-size: 0.8rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--step-0);
  color: var(--paper-ink);
  background: color-mix(in oklab, var(--paper) 55%, white);
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  width: 100%;
  transition: border-color 0.2s var(--out), box-shadow 0.2s var(--out);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%235c4f43' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--paper-dim); }
.field :is(input, select, textarea):focus-visible {
  outline: none; border-color: var(--flame);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--flame) 24%, transparent);
}
.field :is(input, select, textarea)[aria-invalid="true"] { border-color: oklch(0.52 0.19 27); }
.field .err { font-size: 0.8rem; color: oklch(0.46 0.19 27); }
.field .err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.drop {
  border: 1px dashed var(--paper-line); border-radius: 12px;
  padding: 1.5rem; text-align: center;
  background: color-mix(in oklab, var(--paper) 55%, white);
  transition: border-color 0.2s var(--out), background-color 0.2s var(--out);
}
.drop[data-drag="true"] { border-color: var(--flame); background: color-mix(in oklab, var(--flame) 8%, white); }
.drop p { margin: 0.5rem 0 0; font-size: var(--step--1); color: var(--paper-dim); }
.drop label { cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; padding: 0; margin: 1rem 0 0; }
.thumbs li { position: relative; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: var(--paper-line); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgb(0 0 0 / 0.7); color: white; font-size: 13px; line-height: 1;
  display: grid; place-items: center;
}

.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--step--1); color: var(--paper-dim); }
.consent input { margin-top: 0.25rem; accent-color: var(--flame); width: 1.05rem; height: 1.05rem; flex: none; }
.consent a { color: var(--paper-ink); }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.form__status { font-size: var(--step--1); margin: 0; color: var(--paper-dim); }
.form__status[data-tone="error"] { color: oklch(0.46 0.19 27); font-weight: 600; }

.done { display: none; }
.done[data-state="done"] { display: block; margin-top: clamp(2rem, 5vh, 3rem); max-width: 620px; }
.done h3 { font-family: "Instrument Serif", serif; font-size: var(--step-2); letter-spacing: -0.01em; }
.done p { color: var(--paper-dim); }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--night-deep); padding: clamp(2.5rem, 6vh, 3.5rem) 0; }
.footer__top {
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem;
  justify-content: space-between; align-items: center;
}
.footer a { color: var(--bone-dim); text-decoration: none; }
.footer a:hover { color: var(--bone); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: var(--step--1); }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  /* .js gate: without scripts the content is simply visible, never blank. */
  .js [data-reveal] {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.7s var(--out), transform 0.7s var(--out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .hero .kicker, .hero h1, .hero__sub, .hero__cta { animation: rise 0.9s var(--out) both; }
  .hero h1 { animation-delay: 0.08s; }
  .hero__sub { animation-delay: 0.18s; }
  .hero__cta { animation-delay: 0.28s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------- legal / 404 pages */
.legal { padding: clamp(6rem, 12vh, 8rem) 0 clamp(4rem, 10vh, 7rem); }
.legal h1 { font-size: var(--step-3); }
.legal .updated { color: var(--bone-dim); font-size: var(--step--1); margin: 0.75rem 0 0; }
.legal h2 {
  font-family: "Instrument Serif", serif;
  font-size: var(--step-1); letter-spacing: 0;
  margin: 2.75rem 0 0.75rem; padding-top: 1.75rem; border-top: 1px solid var(--hairline);
}
.legal p, .legal li { color: var(--bone-dim); max-width: 68ch; text-wrap: pretty; }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--bone); text-underline-offset: 3px; }
.legal strong { color: var(--bone); font-weight: 600; }

.oops { min-height: 82svh; display: grid; place-items: center; text-align: center; padding: 4rem var(--gutter); }
.oops h1 { font-size: var(--step-4); }
.oops p { color: var(--bone-dim); margin: 1.25rem 0 2rem; }
