/* ============================================================
   UNSEEN — shared stylesheet
   Design system: "black on black".
   Two blacks (Void ground, Overdye surfaces), a cold print
   white (Optic), a faded grey (Wash), and one signal colour —
   Ultraviolet — reserved for focus states, the live dot and
   text selection. If you never reach for it, you never see it.

   Sections are grouped per component / per page so they can be
   lifted individually into Shopify theme sections later; the
   tokens in :root map 1:1 to future theme settings.
   ============================================================ */

/* ---------- Reset & tokens ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* palette */
  --void: #0b0b0e;
  --overdye: #16161a;
  --wash: #7f7f88;
  --optic: #eaeaee;
  --uv: #8a7cff;
  --hairline: rgba(234, 234, 238, 0.12);

  /* type */
  --font-display: 'Archivo', 'Archivo Black', sans-serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* rhythm */
  --pad-x: clamp(1.25rem, 4vw, 3.5rem);
  --band-y: clamp(5rem, 14vh, 8.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--optic);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

ol, ul { list-style: none; }

/* Display face is always the same voice: Archivo, expanded, heavy.
   One rule owns it so no component drifts. */
.nav__logo, .footer__logo, .menu a,
.develop__word, .manifesto__line, .join__title,
.page-head__title, .product__name, .step__title,
.signup__title, .about__statement, .contact__links a {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
}

/* The one place Ultraviolet lives: attention you asked for. */
:focus-visible {
  outline: 2px solid var(--uv);
  outline-offset: 3px;
}

::selection {
  background: var(--uv);
  color: var(--void);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* ---------- Page transitions ---------- */
main { animation: page-in 0.55s var(--ease) both; }

@keyframes page-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

body.is-leaving main {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
  body.is-leaving main { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--pad-x);
  background: rgba(11, 11, 14, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav.is-scrolled {
  background: rgba(11, 11, 14, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.nav__logo {
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--optic);
  text-decoration: none;
  text-transform: uppercase;
}

.nav__links { display: flex; gap: 2.25rem; }

.nav__links a {
  font-family: var(--font-mono);
  color: var(--wash);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--optic); }

.nav__cta {
  font-family: var(--font-mono);
  color: var(--optic);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
  padding: 0.55rem 1.3rem;
  transition: background 0.3s, color 0.3s;
}

.nav__cta:hover { background: var(--optic); color: var(--void); }

/* Hamburger — hidden on desktop */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin: -0.5rem;
  z-index: 102;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--optic);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

.nav__toggle span + span { margin-top: 7px; }

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Full-screen mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 101;
  background: var(--void);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 var(--pad-x);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease);
}

.menu a {
  font-size: clamp(1.9rem, 8.5vw, 3rem);
  line-height: 1.25;
  color: var(--optic);
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), color 0.3s;
}

.menu.is-open a { transform: none; opacity: 1; }

.menu.is-open a:nth-child(1) { transition-delay: 0.05s; }
.menu.is-open a:nth-child(2) { transition-delay: 0.1s; }
.menu.is-open a:nth-child(3) { transition-delay: 0.15s; }
.menu.is-open a:nth-child(4) { transition-delay: 0.2s; }
.menu.is-open a:nth-child(5) { transition-delay: 0.25s; }

.menu a[aria-current="page"],
.menu a:hover { color: var(--wash); }

.menu__meta {
  position: absolute;
  bottom: 2.5rem;
  left: var(--pad-x);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wash);
}

body.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .menu a { transform: none; transition: color 0.3s; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2.25rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn--primary {
  background: var(--optic);
  color: var(--void);
  border: 1px solid var(--optic);
}

.btn--primary:hover {
  background: transparent;
  color: var(--optic);
}

.btn--ghost {
  background: transparent;
  color: var(--optic);
  border: 1px solid var(--hairline);
}

.btn--ghost:hover { border-color: var(--optic); }

.btn--full { width: 100%; text-align: center; }

/* ---------- Shared section bits ---------- */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wash);
  margin-bottom: 1.25rem;
}

/* Standard inner page header (Shop / Insiders / About / Contact) */
.page-head {
  padding: clamp(8.5rem, 20vh, 12rem) var(--pad-x) 3.5rem;
  border-bottom: 1px solid var(--hairline);
}

.page-head__title {
  font-size: clamp(2.4rem, 7.5vw, 5.5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.page-head__sub {
  margin-top: 1.5rem;
  color: var(--wash);
  max-width: 44ch;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

/* ---------- Forms (shared) ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

/* Wraps the honeypot/input/submit inside a form so that block — not the
   form's aria-live status paragraph after it — can be swapped out on
   submit while keeping the same 1rem rhythm as .form itself. */
.form__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--optic);
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: border-color 0.3s;
  appearance: none;
  border-radius: 0;
}

.form-row textarea {
  resize: vertical;
  min-height: 9rem;
}

.form-row select { color: var(--wash); }
.form-row select:valid { color: var(--optic); }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--optic);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--wash);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.form-status {
  min-height: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.form-status.is-success { color: var(--optic); }
.form-status.is-error { color: var(--wash); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 3.5rem var(--pad-x) 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--wash);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.footer__logo {
  color: var(--optic);
  font-size: 0.95rem;
  text-decoration: none;
  text-transform: uppercase;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.footer__nav a,
.footer__social a {
  color: var(--wash);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer__nav a:hover,
.footer__social a:hover { color: var(--optic); }

.footer__social { display: flex; gap: 1.5rem; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
}

/* ---------- Reveal-on-scroll ----------
   Hidden state only applies once JS has tagged <html class="js">,
   so content is fully visible without JavaScript. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* .reveal--units (staggered Ledger-unit reveal) archived alongside the
   Ledger markup in website/_archive-pre-launch/archived-styles.css */

/* ============================================================
   PAGE: Home
   ============================================================ */

/* ---- The develop (signature) ----
   The wordmark is set Overdye-on-Void — black on black, like the
   garment — and only becomes legible where the visitor's light
   falls. --mx/--my position the ambient pool (hero coords);
   --wx/--wy position the lit fill inside the wordmark (word
   coords). Both are driven from script.js; the defaults below
   give a fixed, centred exposure when JS or motion is off. */
.develop {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--void);
  --mx: 50%;
  --my: 44%;
  --beam: clamp(180px, 26vmax, 460px);
}

.develop__light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle var(--beam) at var(--mx) var(--my),
    rgba(234, 234, 238, 0.05),
    transparent 70%
  );
}

.develop__word {
  font-size: clamp(3.2rem, 16.5vw, 16rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.develop__word span {
  --wx: 50%;
  --wy: 50%;
  background-image: radial-gradient(
    circle var(--beam) at var(--wx) var(--wy),
    var(--optic),
    var(--overdye) 72%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.develop__tag {
  position: absolute;
  bottom: 2rem;
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wash);
}

@media (prefers-reduced-motion: reduce) {
  /* No sweep, no tracking: a fixed, wider exposure keeps the
     wordmark legible while staying on-concept. */
  .develop { --beam: 38vmax; }
}

/* ---- Manifesto ---- */
.manifesto {
  border-top: 1px solid var(--hairline);
  padding: var(--band-y) var(--pad-x);
}

.manifesto__line {
  font-size: clamp(1.5rem, 4.2vw, 3rem);
  line-height: 1.15;
  text-transform: uppercase;
  max-width: 24ch;
}

.manifesto__line em {
  font-style: normal;
  color: var(--wash);
}


/* ============================================================
   Email capture — coming-soon page (formerly PAGE: Insiders' signup)
   ============================================================ */

.signup { padding: 6rem var(--pad-x) 8rem; }

.signup__inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.signup__inner .section-eyebrow { text-align: center; }

.signup__title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.signup__copy {
  margin: 1.5rem auto 2.5rem;
  color: var(--wash);
  max-width: 42ch;
}

.signup .form-status { text-align: center; }

.signup__consent {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--wash);
}

/* Archived page-specific styles (About, Contact, Shop, Ledger, Plinth,
   Join, Insiders steps) live in
   website/_archive-pre-launch/archived-styles.css — not linked here. */
