/* ============================================================
   Mercury Landing — landing page
   White-on-white. Engraved seal. Editorial register.
   ============================================================ */

:root {
  /* Paper — pulled away from yellow-ivory so it sits next to the product's
     near-white surfaces without fighting. */
  --paper:        #ffffff;
  --paper-warm:   #f7f5f1;
  --paper-edge:   #ebe8e1;

  /* Ink — barely-warm near-black. Bridges between the product's cool slate
     foreground and the editorial register without committing fully to
     either side. */
  --ink:          #1c1a17;
  --ink-soft:     #5d5852;
  --ink-faint:    #a8a39a;
  --ink-hair:     rgba(28, 26, 23, 0.10);
  --ink-hair-2:   rgba(28, 26, 23, 0.18);
  --ink-hair-3:   rgba(28, 26, 23, 0.28);

  /* Ember accent — deepened to #8c4a1f (~6.7:1 on white, AA pass, near-AAA).
     Reads as deep bronze rather than candy-orange. Complements the
     product's indigo on the color wheel (warm-dark + cool-mid). */
  --ember:        #8c4a1f;
  --ember-soft:   #c98c5a;
  --ember-faint:  rgba(140, 74, 31, 0.08);

  /* Type */
  --display: "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
  --body:    "Newsreader", "Iowan Old Style", "Charter", "Times New Roman", serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --bleed:     clamp(1.25rem, 6vw, 5rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);

  /* Easing */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
*::selection { background: var(--ember); color: var(--paper); }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  font-variation-settings: "opsz" 16;
  font-feature-settings: "kern", "liga", "calt", "onum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper grain — very subtle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0.025 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

img, svg { display: block; max-width: 100%; }

/* ============ Skip link ============ */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75em 1em;
  z-index: 200;
  font-family: var(--mono);
  font-size: 12px;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ============ Type primitives ============ */
h1, h2, h3 { margin: 0; }

.display, h1, h2 {
  font-family: var(--display);
  font-weight: 350;
  letter-spacing: -0.018em;
  line-height: 0.98;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.008em;
  font-variation-settings: "opsz" 36;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.meta {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
}

a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--ember), var(--ember));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 320ms var(--ease), color 200ms var(--ease);
  padding-bottom: 1px;
}
a:hover {
  background-size: 100% 1px;
}
a:focus-visible {
  background-size: 100% 1px;
  outline: 2px solid var(--ember);
  outline-offset: 4px;
  border-radius: 1px;
}
a.cta { background-image: none; padding-bottom: 0; }
a.wordmark { background-image: none; padding-bottom: 0; }
a.wordmark:hover { color: var(--ember); }
a.wordmark:focus-visible {
  color: var(--ember);
  outline: 2px solid var(--ember);
  outline-offset: 4px;
}

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem var(--bleed);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  border-bottom: 1px solid var(--ink-hair);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 24;
}
.wordmark__mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  flex: 0 0 auto;
}
.nav__links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}
.nav__links > a:not(.cta) {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

/* ============ Buttons / CTA ============ */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  min-height: 44px;
  padding: 0.5em 1.5em;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 260ms var(--ease),
              color 260ms var(--ease),
              border-color 260ms var(--ease);
}
.cta:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}
.cta--primary {
  background: var(--ink);
  color: var(--paper);
}
.cta--primary:hover {
  background: var(--ember);
  border-color: var(--ember);
}
.cta--ghost {
  background: transparent;
  border-color: var(--ink-hair-3);
  color: var(--ink);
}
.cta--ghost:hover {
  border-color: var(--ink);
}
.cta--small {
  min-height: 38px;
  padding: 0.4em 1.1em;
  font-size: 10.5px;
  letter-spacing: 0.22em;
}
.cta__glyph {
  display: inline-block;
  transition: transform 260ms var(--ease);
}
.cta:hover .cta__glyph,
.cta:focus-visible .cta__glyph {
  transform: translateX(4px);
}

/* ============ Section mark (eyebrow) ============ */
.section-mark {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.section-mark::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ink-hair-2);
}

/* ============ Hero ============ */
.hero {
  padding: clamp(2rem, 4vw, 4rem) var(--bleed) clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.hero__eyebrow .rule {
  display: inline-block;
  width: clamp(40px, 6vw, 90px);
  height: 1px;
  background: var(--ink-hair-3);
}
.hero__headline {
  font-size: clamp(2.8rem, 9.5vw, 7.8rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.94;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  margin: 0 auto clamp(1.25rem, 2.5vw, 2rem);
}
.hero__line-a { font-style: normal; }
.hero__line-b {
  display: block;
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--ink);
}
.hero__sub {
  max-width: 34em;
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink);
  font-variation-settings: "opsz" 20;
}
.hero__plain {
  max-width: 40em;
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(0.98rem, 1.1vw, 1.05rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 14;
}
.hero__ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.hero__trust {
  max-width: 42em;
  margin: 0 auto clamp(2rem, 4vw, 3.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem 0.7rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 14;
}
.hero__trust .meta { color: var(--ink-faint); }
.hero__plate {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  max-width: min(640px, 84vw);
}
.hero__plate img {
  width: 100%;
  height: auto;
  opacity: 0.94;
  mix-blend-mode: multiply;
}

/* Hero load-in */
.hero > * { animation: rise 900ms var(--ease) backwards; }
.hero__eyebrow  { animation-delay: 100ms; }
.hero__headline { animation-delay: 240ms; }
.hero__sub      { animation-delay: 400ms; }
.hero__plain    { animation-delay: 500ms; }
.hero__ctas     { animation-delay: 580ms; }
.hero__trust    { animation-delay: 680ms; }
.hero__plate    { animation-delay: 780ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ============ Overview ============ */
.overview {
  padding: var(--section-y) var(--bleed);
  background: var(--paper-warm);
  border-top: 1px solid var(--ink-hair-2);
  border-bottom: 1px solid var(--ink-hair-2);
}
.overview__lede {
  font-family: var(--display);
  font-weight: 350;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.28;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 48, "SOFT" 50;
  max-width: 22em;
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  color: var(--ink);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-hair-3);
}
.pillar__index {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 500;
}
.pillar__name {
  margin: 0.2rem 0 0.3rem;
}
.pillar p {
  margin: 0;
  color: var(--ink);
  max-width: 32ch;
}

/* ============ Surfaces ============ */
.surfaces {
  padding: var(--section-y) var(--bleed);
  background: var(--paper);
}
.surfaces .display {
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 16em;
}
.surface { margin: 0 0 clamp(2rem, 4vw, 3.5rem); }
.surface__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, var(--ink-hair) 22px 23px),
    var(--paper-warm);
  border: 1px solid var(--ink-hair-2);
  overflow: hidden;
}
.surface__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: relative;
  z-index: 1;
}
.surface__frame::before,
.surface__frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--ink-hair);
  pointer-events: none;
  z-index: 2;
}
.surface figcaption {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding-top: 1rem;
  border-top: 1px solid var(--ink-hair);
}
.surface figcaption .meta { flex: 0 0 auto; }
.surface figcaption p {
  margin: 0;
  max-width: 56ch;
  font-size: 0.98rem;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 14;
}
.surface__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.75rem, 3vw, 2.75rem);
}

/* ============ Credo ============ */
.credo {
  padding: clamp(5rem, 11vw, 10rem) var(--bleed);
  background: var(--paper);
  text-align: center;
  position: relative;
}
.credo__rule {
  height: 1px;
  width: clamp(60px, 8vw, 130px);
  background: var(--ember);
  margin: 0 auto;
  opacity: 0.85;
}
.credo__quote {
  margin: clamp(2.25rem, 5vw, 4rem) auto;
  max-width: 30em;
}
.credo__quote p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.55rem, 3.2vw, 2.45rem);
  line-height: 1.32;
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 80, "SOFT" 100, "WONK" 1;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.credo__quote p::before { content: "\201C"; color: var(--ember); margin-right: 0.05em; }
.credo__quote p::after  { content: "\201D"; color: var(--ember); margin-left: 0.05em; }

/* ============ Access (form) ============ */
.access {
  padding: var(--section-y) var(--bleed);
  background: var(--paper-warm);
  border-top: 1px solid var(--ink-hair-2);
}
.access__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.access__intro .display {
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  margin-bottom: 1.5rem;
  max-width: 14ch;
}
.access__intro p {
  max-width: 32ch;
  color: var(--ink);
}
.access__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.25rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background: var(--paper);
  border: 1px solid var(--ink-hair-2);
  position: relative;
}
.access__form::before,
.access__form::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--ink-hair);
  pointer-events: none;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
  z-index: 1;
}
.field--wide { grid-column: 1 / -1; }
.field__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.field input,
.field textarea {
  font-family: var(--body);
  font-size: 1rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-hair-3);
  padding: 0.65em 0.25em;
  min-height: 44px;
  color: var(--ink);
  outline: none;
  transition: border-color 220ms var(--ease);
  resize: vertical;
  font-variation-settings: "opsz" 16;
}
.field textarea {
  font-family: var(--body);
  min-height: 7.5em;
}
.field input:focus-visible,
.field textarea:focus-visible {
  border-bottom-color: var(--ember);
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-soft);
  font-style: italic;
}
.cta--submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.5rem;
  z-index: 1;
}
.access__notice {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  min-height: 1.2em;
  transition: color 200ms var(--ease);
  z-index: 1;
}
.access__notice[data-state="success"] { color: var(--ember); }
.access__notice[data-state="error"]   { color: #a83a26; }
.access__notice[data-state="pending"] { color: var(--ink-soft); }

/* ============ Footer ============ */
.footer {
  padding: clamp(2.5rem, 4vw, 4rem) var(--bleed);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ink-hair);
  flex-wrap: wrap;
  gap: 1.25rem;
  background: var(--paper);
}
.footer__lockup {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer__mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  flex: 0 0 auto;
}
.footer__wordmark {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  font-variation-settings: "opsz" 20;
}
.footer__meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ============ a11y utilities ============ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

/* ============ Responsive ============ */
@media (max-width: 880px) {
  .access__grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav__links > a:not(.cta) { display: none; }
  .access__form { grid-template-columns: 1fr; }
  .surface figcaption { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .hero__eyebrow { gap: 0.85rem; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  /* Keep the wordmark on one line: the seal + "Mercury Landing" + nav CTA
     all need to coexist in a narrow phone bleed. */
  .wordmark { font-size: 1rem; gap: 0.5rem; }
  .wordmark__mark { width: 30px; height: 30px; }
}

/* ============ Motion preference ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero > * { animation: none; }
}
