/* ==========================================================================
   3rd Rock Digital
   Palette: seen-from-orbit. Space and deep sea on a high-altitude haze,
   with one warm accent held back for the sunrise line and calls to action.
   ========================================================================== */

/* ---------- self-hosted fonts (SIL Open Font License) ------------------- */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("../fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-display: swap;
  font-weight: 400 700;
  src: url("../fonts/instrument-sans-latin-wght-italic.woff2") format("woff2-variations");
  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;
}

/* ---------- tokens ------------------------------------------------------ */

:root {
  --space: #04121c;
  --deep: #0a2c42;
  --sea: #14587a;
  --paper: #eff3f5;
  --paper-2: #e5ebef;
  --ink: #08202e;
  --sun: #f0a83c;
  --muted: #4a6675;
  --muted-dark: #9fb6c2;
  --rule: rgba(8, 32, 46, 0.16);
  --rule-dark: rgba(159, 182, 194, 0.22);

  --display: "Bricolage Grotesque", Georgia, serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --max: 78rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5rem); }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
:target { scroll-margin-top: 5rem; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--sun); color: #1b1103; padding: 0.7rem 1.2rem; font-weight: 600; }
.skip:focus { left: var(--gutter); top: 0.6rem; }

/* ---------- header ------------------------------------------------------ */

.site-head { position: fixed; inset: 0 0 auto; z-index: 60; }
.site-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s ease;
  background: rgba(4, 18, 28, 0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(159, 182, 194, 0.14);
}
.site-head[data-stuck]::after { opacity: 1; }
.site-head[data-solid]::after { opacity: 1; }

.head-inner { display: flex; align-items: center; gap: 2rem; padding-block: 1.05rem; }
.mark { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; margin-right: auto; }
.mark svg { width: 26px; height: 26px; flex: none; }
.mark b { font-family: var(--display); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.02em; }
.mark span { color: var(--muted-dark); font-weight: 400; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a { color: #d8e4ea; text-decoration: none; font-size: 0.95rem; padding-block: 0.2rem; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--sun); }
.nav a[data-active] { color: #fff; border-bottom-color: var(--sun); }
.nav .btn:hover, .nav .btn[data-active] { border-bottom-color: transparent; }

.btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 0.72rem 1.35rem; border-radius: 999px; text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.btn-sun { background: var(--sun); color: #1b1103; }
.btn-sun:hover { background: #ffbb55; transform: translateY(-1px); }
.btn-line { border: 1px solid rgba(216, 228, 234, 0.45); color: #eaf1f5; }
.btn-line:hover { border-color: var(--sun); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #123046; transform: translateY(-1px); }
.btn[disabled] { opacity: 0.55; cursor: progress; transform: none; }

.menu-btn {
  display: none; background: none; border: 1px solid rgba(216, 228, 234, 0.35); border-radius: 999px;
  color: #fff; padding: 0.5rem 0.9rem; font: inherit; font-size: 0.9rem; cursor: pointer;
}

/* ---------- hero -------------------------------------------------------- */

.hero {
  position: relative; isolation: isolate; background: var(--space); color: #fff; overflow: hidden;
  min-height: min(100svh, 54rem); display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 9rem; padding-bottom: clamp(3rem, 11vw, 7rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,0.75), transparent),
    radial-gradient(1.5px 1.5px at 78% 14%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 44% 9%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 88% 34%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 28% 41%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 63% 28%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 6% 52%, rgba(255,255,255,0.35), transparent),
    linear-gradient(180deg, #04121c 0%, #061e2e 55%, #082b41 100%);
}
.hero h1 { max-width: 16ch; text-wrap: balance; }

.limb { position: absolute; left: 50%; bottom: -138vw; width: 168vw; height: 168vw; transform: translateX(-50%); z-index: -2; }
.limb i { position: absolute; inset: 0; border-radius: 50%; display: block; }
.limb .body {
  background: radial-gradient(90% 60% at 50% 6%, #1c7a9f 0%, #10527a 26%, #0a3350 52%, #05192a 78%);
  border-top: 1px solid rgba(255, 214, 150, 0.75);
}
.limb .halo { transform: scale(1.008); box-shadow: 0 0 44px 6px rgba(240, 168, 60, 0.45), 0 0 190px 60px rgba(50, 150, 200, 0.28); }

.hero-copy { position: relative; z-index: 1; }
.hero-sub { margin-top: 1.6rem; max-width: 44ch; color: #c6d8e1; font-size: clamp(1.05rem, 1rem + 0.45vw, 1.28rem); line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.4rem; }

.strip {
  margin-top: 3.4rem; padding-top: 1.1rem; border-top: 1px solid rgba(159, 182, 194, 0.26);
  display: flex; flex-wrap: wrap; gap: 0.55rem 1.4rem; font-size: 0.92rem; color: var(--muted-dark);
}
.strip li { display: flex; align-items: center; gap: 1.4rem; }
.strip li + li::before { content: ""; width: 1px; height: 1em; background: rgba(159, 182, 194, 0.4); margin-left: -0.7rem; }

/* ---------- inner page header (legal pages) ----------------------------- */

.page-head {
  position: relative; background: var(--space); color: #fff; overflow: hidden;
  padding-top: clamp(8rem, 14vw, 11rem); padding-bottom: clamp(3.5rem, 7vw, 5rem);
}
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #04121c 0%, #072337 100%); }
.page-arc { position: absolute; left: 50%; bottom: -12vw; transform: translateX(-50%); width: 150vw; height: 30vw; pointer-events: none; opacity: 0.85; }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4rem); max-width: 18ch; text-wrap: balance; }
.page-head p { margin-top: 1.4rem; max-width: 46ch; color: #c6d8e1; font-size: clamp(1.02rem, 1rem + 0.35vw, 1.2rem); line-height: 1.5; }
.crumb { font-size: 0.9rem; color: var(--muted-dark); margin-bottom: 1.2rem; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--sun); }

/* ---------- sections ---------------------------------------------------- */

.band { padding-block: clamp(4.5rem, 10vw, 8rem); scroll-margin-top: 4.5rem; }
.band-alt { background: var(--paper-2); }
.band-dark { background: var(--deep); color: #e8f0f4; }
.band-deepest { background: var(--space); color: #e8f0f4; }

.lede { margin-top: 1.4rem; color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem); max-width: 46ch; }
.band-dark .lede, .band-deepest .lede { color: var(--muted-dark); }

.head-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: end; }
.head-row h2 { text-wrap: balance; }

/* ---------- capabilities ------------------------------------------------ */

.caps { margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); }
.cap {
  display: grid; grid-template-columns: 2.6rem minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem); align-items: start; padding-block: 1.9rem; border-bottom: 1px solid var(--rule);
}
.cap-dot { margin-top: 0.55rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--sea); box-shadow: 0 0 0 5px rgba(20, 88, 122, 0.12); }
.cap-dot[data-accent] { background: var(--sun); box-shadow: 0 0 0 5px rgba(240, 168, 60, 0.18); }
.cap p { color: var(--muted); }
.cap-tags { margin-top: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; font-size: 0.88rem; color: var(--sea); }

/* ---------- website services ------------------------------------------- */

.services { margin-top: clamp(2.5rem, 5vw, 3.5rem); columns: 2; column-gap: clamp(2rem, 5vw, 4.5rem); }
.service { break-inside: avoid; padding-block: 1.15rem; border-top: 1px solid var(--rule); }
.service p { margin-top: 0.3rem; color: var(--muted); font-size: 0.97rem; }

.pull { margin-top: clamp(3rem, 6vw, 4rem); padding: clamp(1.6rem, 4vw, 2.4rem) 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.pull q { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem); line-height: 1.15; letter-spacing: -0.02em; quotes: "\201C" "\201D"; display: block; max-width: 24ch; }
.pull span { display: block; margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- applications ------------------------------------------------ */

.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.8rem, 4vw, 3.2rem); margin-top: clamp(2.8rem, 6vw, 4rem); }
.col h3 { padding-bottom: 0.9rem; border-bottom: 1px solid var(--rule-dark); }
.col ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.col li { color: var(--muted-dark); font-size: 0.97rem; padding-left: 1.1rem; position: relative; }
.col li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.42rem; height: 1px; background: var(--sun); }

.stack { margin-top: clamp(3rem, 6vw, 4rem); padding-top: 1.4rem; border-top: 1px solid var(--rule-dark); display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; color: var(--muted-dark); font-size: 0.92rem; }
.stack b { color: #fff; font-weight: 600; font-family: var(--display); letter-spacing: -0.01em; }

/* ---------- lifecycle --------------------------------------------------- */

.flight { position: relative; margin-top: clamp(3rem, 6vw, 4.5rem); }
.flight-arc { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.steps { display: grid; grid-template-columns: repeat(11, minmax(7.2rem, 1fr)); gap: 0.4rem; overflow-x: auto; padding-bottom: 1.2rem; scrollbar-width: thin; }
.step { position: relative; padding-top: 4.6rem; }
.step::before { content: ""; position: absolute; left: 0; top: 3rem; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--sea); }
.step:last-child::before { background: var(--sun); border-color: var(--sun); }
.step b { display: block; font-family: var(--display); font-size: 0.82rem; color: var(--sea); font-weight: 600; }
.step span { display: block; margin-top: 0.15rem; font-size: 0.93rem; line-height: 1.3; }
.flight-note { margin-top: 0.6rem; color: var(--muted); font-size: 0.9rem; }

/* ---------- support ----------------------------------------------------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.grid-2 h3 { color: #fff; }
.checklist { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.checklist li { font-size: 0.9rem; color: #dce8ee; border: 1px solid var(--rule-dark); padding: 0.34rem 0.8rem; border-radius: 999px; }
.support-note { margin-top: clamp(2.5rem, 5vw, 3.5rem); max-width: 52ch; }

/* ---------- contact ----------------------------------------------------- */

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form-title { font-size: 1.18rem; font-weight: 600; margin-bottom: 1.4rem; }
.details { margin-top: clamp(2rem, 4vw, 2.8rem); }
.field { display: block; margin-bottom: 1.1rem; }
.field span { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.4rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--rule); padding: 0.72rem 0.85rem; border-radius: 4px;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--sea); outline: 2px solid rgba(20, 88, 122, 0.18); outline-offset: 0; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b4412c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { margin-top: 0.9rem; font-size: 0.9rem; color: var(--muted); }
.form-note[data-state="error"] { color: #8f2f1c; }
.form-note[data-state="ok"] { color: #15603f; font-weight: 500; }
.consent { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.2rem; }
.consent a { color: var(--sea); }

.detail { padding-block: 1rem; border-top: 1px solid var(--rule); }
.detail b { font-family: var(--display); font-size: 0.95rem; letter-spacing: -0.01em; }
.detail p { color: var(--muted); margin-top: 0.15rem; }
.detail a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- legal pages ------------------------------------------------- */

.legal { padding-block: clamp(3.5rem, 8vw, 6rem); }
.legal-body { max-width: 44rem; }
.legal-body h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin-top: clamp(2.6rem, 5vw, 3.4rem);
  padding-top: 1.4rem; border-top: 1px solid var(--rule);
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 { margin-top: 1.8rem; }
.legal-body p { margin-top: 1rem; }
.legal-body ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.legal-body ul li { position: relative; padding-left: 1.2rem; }
.legal-body ul li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.5rem; height: 1px; background: var(--sea); }
.legal-body a { color: var(--sea); text-underline-offset: 3px; }
.legal-meta { font-size: 0.92rem; color: var(--muted); padding-bottom: 1.6rem; border-bottom: 1px solid var(--rule); margin-bottom: 2.4rem; }
.legal-contact { margin-top: 2.6rem; padding: 1.6rem 1.8rem; background: var(--paper-2); border-left: 3px solid var(--sun); }
.legal-contact p + p { margin-top: 0.4rem; }

/* ---------- footer ------------------------------------------------------ */

.foot { position: relative; background: var(--space); color: #c6d8e1; padding-block: clamp(4rem, 8vw, 6rem) 2.5rem; overflow: hidden; }
.foot-arc { position: absolute; left: 50%; top: -1px; transform: translateX(-50%); width: 150vw; height: 24vw; pointer-events: none; }
.foot-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.foot h2 { font-family: var(--display); font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.9rem; color: #fff; }
.foot-blurb { max-width: 32ch; font-size: 0.94rem; }
.foot ul { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.94rem; }
.foot a { color: #c6d8e1; text-decoration: none; }
.foot a:hover { color: var(--sun); }
.foot-base { position: relative; margin-top: 3.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(159, 182, 194, 0.2); display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; font-size: 0.86rem; color: var(--muted-dark); }

/* ---------- motion ------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(14px); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
  .rise-2 { animation-delay: 0.12s; }
  .rise-3 { animation-delay: 0.24s; }
  .rise-4 { animation-delay: 0.36s; }
  .limb { animation: bloom 1.6s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes bloom {
    from { transform: translateX(-50%) translateY(3.5vw); opacity: 0.25; }
    to { transform: translateX(-50%); opacity: 1; }
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- responsive -------------------------------------------------- */

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 0 0 auto; top: 0; flex-direction: column; align-items: flex-start; gap: 1.1rem;
    background: rgba(4, 18, 28, 0.97); backdrop-filter: blur(12px); padding: 5.5rem var(--gutter) 2rem;
    transform: translateY(-102%); transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav[data-open] { transform: none; }
  .nav a { font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
  .nav .btn { font-family: var(--body); font-size: 0.95rem; margin-top: 0.5rem; }
  .menu-btn { display: block; z-index: 70; }

  .head-row { grid-template-columns: 1fr; align-items: start; }
  .cols, .grid-2, .contact { grid-template-columns: 1fr; }
  .services { columns: 1; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .cap { grid-template-columns: 2rem minmax(0, 1fr); }
  .cap h3, .cap-body { grid-column: 2; }
  .limb { bottom: -152vw; width: 210vw; height: 210vw; }
}

@media (max-width: 560px) {
  .foot-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(11, minmax(9rem, 1fr)); }
  .legal-contact { padding: 1.3rem 1.2rem; }
}

@media print {
  .site-head, .foot-arc, .page-arc, .hero { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .legal { padding-block: 0; }
}
