/* Nomatix — landing page.
   Ported from the "Nomatix Landing v5" design canvas. Tokens below are the
   only values borrowed from the Modernist design system; the page uses none
   of that system's component classes, so nothing else is carried over. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;              /* variable file — covers 400 and 700 */
  font-display: swap;
  src: url("/assets/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;

  --ink: #f3f2f2;
  --ink-muted: #888888;
  --ink-dim: #8d8783;
  --ink-ghost: #6b6b6b;

  --bg: #000000;
  --band-1: #0d0d0d;
  --band-2: #181818;
  --band-3: #222222;

  --hairline: #3a3a3a;
  --rule: #4a4542;
  --focus: #4e9a91;

  /* viewport-fit=cover means the page paints under the notch, so the gutter
     has to be at least as wide as the inset it might be sitting behind */
  --gutter: max(clamp(22px, 5vw, 56px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --shelf: clamp(104px, 14vw, 192px);
  --measure: 1240px;
}

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

html { -webkit-text-size-adjust: 100%; color-scheme: dark; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  /* the hero word is clipped to a diamond as it leaves — without this the
     clip can spill a horizontal scrollbar on narrow viewports */
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
p, h1, h2 { margin: 0; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: #2a605e; color: var(--ink); }

/* ── the flying mark ─────────────────────────────────────────────────── */

.fly-mark {
  position: fixed;
  left: 0; top: 0;
  width: 0; height: 0;
  opacity: 0;
  z-index: 21;
  pointer-events: none;
}
.fly-mark svg {
  display: block;
  position: absolute;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* ── header ──────────────────────────────────────────────────────────── */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
  transition: background-color .2s;
}
.bar__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 14px var(--gutter);
}
.bar__slot { display: block; width: 44px; height: 44px; }
/* Pages without the scroll choreography: the bar never gets its background set
   from JS, so it is painted here — otherwise text scrolls through it — and the
   mark is paired with a visible label so "go back" is legible, not guessed. */
.bar--solid { background: var(--bg); }
.bar__inner--split { justify-content: space-between; }
.bar__mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.bar__mark svg { display: block; width: 26px; height: auto; }

/* ── hero ────────────────────────────────────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: var(--measure);
  margin: 0 auto;
  padding: calc(clamp(104px, 15vw, 192px) - 41px) var(--gutter) clamp(104px, 15vw, 192px);
  text-align: center;
}
.hero__word {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(60px, 11vw, 168px);
  line-height: .9;
  letter-spacing: .01em;
  color: var(--ink);
}

/* ── statement bands ─────────────────────────────────────────────────── */

.band--1 { background: var(--band-1); }
.band--2 { background: var(--band-2); }
.band--3 { background: var(--band-3); }

.band__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--shelf) var(--gutter);
}
.band--1 .band__inner { padding-block: clamp(96px, 13vw, 176px); }
.band__inner--end { align-items: flex-end; text-align: right; }

.band__lead {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 104px);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--ink-ghost);
  max-width: 15ch;
  text-wrap: balance;
}
.band__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 76px);
  line-height: 1;
  letter-spacing: -.018em;
  color: var(--ink-muted);
  max-width: 20ch;
  text-wrap: balance;
}
.band__sub {
  font-size: clamp(15px, 1.7vw, 21px);
  line-height: 1.45;
  color: var(--ink-muted);
  max-width: 34ch;
  text-wrap: pretty;
}

/* ── call to action ──────────────────────────────────────────────────── */

.cta { background: var(--bg); padding-top: clamp(96px, 13vw, 168px); }
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 4.5vw, 52px);
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(96px, 13vw, 168px) var(--gutter);
  text-align: center;
}
.cta__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 62px);
  line-height: 1.04;
  color: var(--ink-dim);
  max-width: 22ch;
  text-wrap: balance;
}
.cta__link {
  display: inline-flex;
  align-items: flex-end;
  min-height: 44px;          /* WCAG 2.5.8 target size — the box grows upward,
                                so the underline stays put against the text */
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: .01em;
  color: var(--ink);
  border-bottom: 2px solid var(--rule);
  padding: 0 0 6px;
  cursor: pointer;
  transition: border-bottom-color .2s;
}
.cta__link:hover { border-bottom-color: var(--ink); }
.cta__link:focus-visible { outline-offset: 4px; }

.tail { height: var(--gutter); background: var(--bg); }

/* ── long-form pages (privacy) ───────────────────────────────────────── */

.prose {
  /* Measure, stated net of the padding so it holds at any gutter width.
     52ch not 68ch: `ch` is the width of a zero, which in Archivo is 9.16px
     against an average prose character of 7.14px — the unit overstates a real
     line by ~28%. 52ch measures out at ~66 characters. */
  max-width: calc(52ch + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) var(--gutter) clamp(72px, 10vw, 120px);
  color: #a09a96;
  font-size: 16px;
  line-height: 1.7;
}
.prose h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -.018em;
  color: var(--ink);
  margin-bottom: 10px;
}
.prose .lede { font-size: 15px; color: #6b6b6b; margin-bottom: clamp(38px, 5vw, 56px); }
.prose h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.2;
  color: var(--ink);
  margin: clamp(34px, 4vw, 46px) 0 12px;
}
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #4a4542; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose dl { margin: 0 0 14px; }
.prose dt { color: #cfc9c5; margin-top: 12px; }
.prose dd { margin: 2px 0 0; }
.prose .updated { margin-top: clamp(40px, 5vw, 60px); font-size: 13px; color: #5c5c5c; }
/* Same treatment as "Let's talk": one rule under the label, box grown upward
   to a 44px target so the rule stays welded to the text. */
.prose a.prose__back {
  display: inline-flex;
  align-items: flex-end;
  min-height: 44px;
  margin-top: clamp(24px, 3vw, 34px);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 2px solid var(--rule);
  padding-bottom: 5px;
  transition: color .15s, border-bottom-color .15s;
}
.prose a.prose__back:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ── contact modal ───────────────────────────────────────────────────── */

/* Closed by default. Without JavaScript the :target hash opens it; with
   JavaScript main.js marks the root .js and drives .is-open instead, so the
   two mechanisms never fight over the same element. */
.modal { display: none; }
/* The overlay scrolls, not the panel. A panel with its own max-height has to
   guess how much room it has, and on iOS that guess is always wrong: the
   on-screen keyboard shrinks the *visual* viewport while `vh` keeps reporting
   the full layout viewport, so an 88vh panel is sized against space the
   keyboard is covering. Here the panel takes its natural height, `margin:auto`
   centres it while it fits, and the overlay scrolls once it does not — and
   main.js narrows the overlay to the real visible area via --vv-height. */
html:not(.js) .modal:target,
.modal.is-open {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--vv-top, 0px);
  height: var(--vv-height, 100%);
  z-index: 90;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: max(20px, env(safe-area-inset-top, 0px))
           max(20px, env(safe-area-inset-right, 0px))
           max(28px, env(safe-area-inset-bottom, 0px))
           max(20px, env(safe-area-inset-left, 0px));
}
.modal__backdrop {
  position: fixed;          /* fixed, so it still covers once the overlay scrolls */
  inset: 0;
  background: rgba(0, 0, 0, .78);
  cursor: default;
}
.modal__panel {
  position: relative;
  margin: auto;             /* centres when it fits, yields to scroll when it does not */
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 520px;
  padding: clamp(26px, 4vw, 40px);
  background: var(--band-1);
  border: 2px solid var(--hairline);
}
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.modal__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
  color: var(--ink);
}
.modal__close,
.bar__close {
  flex: none;
  padding: 0 2px;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-dim);
  cursor: pointer;
  transition: color .15s;
}
.modal__close:hover,
.bar__close:hover { color: var(--ink); }
.bar__close { display: inline-flex; align-items: center; min-height: 44px; }
.modal__done { font-size: 17px; line-height: 1.5; color: var(--ink-dim); }

body.is-locked { overflow: hidden; }

/* ── form ────────────────────────────────────────────────────────────── */

.form { display: flex; flex-direction: column; gap: 18px; }
.form[hidden] { display: none; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.field__input {
  font: inherit;
  font-size: 16px;            /* 16px keeps iOS Safari from zooming on focus */
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--hairline);
  padding: 12px 14px;
  transition: border-color .15s;
}
.field__input:hover { border-color: #4d4d4d; }
.field__input:focus-visible { outline-offset: 2px; }
.field__input--area { resize: vertical; }

/* Marketing consent. Unticked, never required to send the message, and kept
   visually separate from the submit action — consent has to be a free,
   specific choice, not a condition of getting in touch. */
.check {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-dim);
  cursor: pointer;
}
.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__error { font-size: 14px; line-height: 1.5; color: #7ec0b8; }
.form__error[hidden] { display: none; }

.form__submit {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 14px 26px;
  cursor: pointer;
  transition: color .15s;
}
.form__submit:hover { color: #2a605e; }
.form__submit:disabled { cursor: not-allowed; opacity: .55; }

.form__note { margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: #5c5c5c; }
.form__note a { color: #8d8783; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #4a4542; }
.form__note a:hover { color: var(--ink); text-decoration-color: var(--ink); }

.form__sink { display: none; width: 0; height: 0; border: 0; }
