/* astra — Weightless Light
   A near-empty warm page. Enormous precise type, one drifting star,
   no borders, no panels. Nothing here could be removed. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Spline Sans Mono';
  src: url('../fonts/spline-sans-mono.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #EDDBC4;
  --white: #FDFBF7;
  --display: #FEFEFE;
  --ink: #2A2118;
  --soft: #5A4936;
  --ceramic: #E6CDB2;
  --bronze: #9C6B3F;
  --bronze-text: #6B4526;
  --hair: rgba(42, 33, 24, 0.24);

  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --logo-shadow: 0 10px 28px rgba(107, 69, 38, 0.32), 0 3px 8px rgba(107, 69, 38, 0.18);
  --mono: 'Spline Sans Mono', 'SF Mono', Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --gutter: clamp(20px, 5vw, 96px);
  --header-h: 76px;
}

/* ---------- Space mode: the site crosses into night ---------- */
html.space {
  --bg: #070C19;
  --ink: #F2E9DA;
  --soft: #BCAC90;
  --hair: rgba(242, 233, 218, 0.22);
  --bronze-text: #D8B183;
  --ring: rgba(242, 233, 218, 0.34);
}
html.theme-anim, html.theme-anim body, html.theme-anim * {
  transition-property: color, background-color, border-color;
  transition-duration: 950ms;
  transition-timing-function: ease;
}
#spacefield {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 950ms ease;
  pointer-events: none;
}
html.space #spacefield { opacity: 1; }
.statement, .protocol, .services-head { transition: opacity 950ms ease; }
html.space .statement, html.space .protocol { opacity: 0.08; }
html.space .services-head { opacity: 0.3; }
@media (prefers-reduced-motion: reduce) { #spacefield { display: none; } }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }

html { background: var(--bg); }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--bronze);
}

::selection { background: var(--white); color: #2A2118; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; }

@media (hover: hover) {
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--white); border: 2px solid var(--bg); }
  ::-webkit-scrollbar-thumb:hover { background: var(--bronze); }
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration-color: rgba(42, 33, 24, 0.35);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 180ms var(--ease-out);
}
a:hover { text-decoration-color: var(--ink); }

/* ---------- Type ---------- */
h1, h2 { color: var(--display); text-shadow: var(--logo-shadow); }
h1, h2, h3 {
  font-weight: 500;
  font-stretch: 115%;
  letter-spacing: -0.03em;
  line-height: 1.0;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 9vw, 8rem); }
h2 { font-size: clamp(2.2rem, 5.4vw, 4.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.12; }
p  { max-width: 58ch; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.6; color: var(--soft); }
.muted { color: var(--soft); }

.mono {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* ---------- Shell ---------- */
.shell { padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap { max-width: 1440px; margin: 0 auto; }

/* ---------- Header: a quiet strip ---------- */
.frame-top {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  height: var(--header-h, 76px);
  padding: 0 var(--gutter);
}
.frame-top .cell { display: flex; align-items: center; }
.brand-cell img { width: 92px; height: 35px; }
.nav-cells { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); margin-left: auto; }
.nav-cells a {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--soft);
  transition: color 180ms var(--ease-out);
}
.nav-cells a:hover { color: var(--ink); }
.nav-cells a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--bronze); }
.cta-cell {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.cta-cell:hover { color: var(--bronze-text); }

.menu-btn { display: none; }
@media (max-width: 767px) {
  .nav-cells { display: none; }
  .nav-cells.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    padding: 28px var(--gutter) 34px;
    background: var(--bg);
    z-index: 60;
  }
  .menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    border: none;
    background: none;
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
    padding: 6px 0;
  }
  .frame-top { position: relative; }
  .frame-top .cta-cell { margin-left: 18px; }
}

/* ---------- Buttons ---------- */
.btn, .btn-ink {
  display: inline-block;
  padding: 19px 40px;
  background: var(--white);
  color: #2A2118;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:hover, .btn-ink:hover { background: #6B4526; color: #FDFBF7; }
.btn:active, .btn-ink:active { transform: scale(0.97); }

/* ---------- Star ---------- */
.star-drift { color: var(--display); filter: drop-shadow(0 8px 18px rgba(107, 69, 38, 0.35)); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes drift {
    from { transform: translateY(0); }
    to   { transform: translateY(16px); }
  }
}

/* ---------- Hero: one exact viewport, action at the bottom edge ---------- */
.hero { position: relative; overflow: hidden; }
.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .starfield { display: none; } }
.hero .wrap { z-index: 1; }
.hero {
  height: calc(100dvh - var(--header-h, 76px));
  min-height: 480px;
  display: flex;
}
.hero .wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.hero h1 { margin-top: auto; }
.hero .hero-cta { margin-top: auto; padding-bottom: clamp(28px, 5vh, 56px); }
.hero h1 { max-width: 13ch; }
.hero .hero-star {
  position: absolute;
  top: 2%;
  right: clamp(8px, 5vw, 110px);
  width: clamp(44px, 6vw, 84px);
  height: auto;
}
.hero .kicker-line {
  margin-top: clamp(22px, 3.5vh, 40px);
  color: var(--soft);
}

@media (prefers-reduced-motion: no-preference) {
  .hero .wrap > * {
    animation: rise 520ms var(--ease-out) both;
  }
  .hero .wrap > *:nth-child(2) { animation-delay: 70ms; }
  .hero .wrap > .star-drift {
    animation: rise 520ms var(--ease-out) 70ms both, drift 7s ease-in-out 590ms infinite alternate;
  }
  .hero .hero-star.still {
    animation: none;
    transform: translateY(0);
    transition: transform 700ms var(--ease-out);
  }
  .hero .wrap > *:nth-child(3) { animation-delay: 140ms; }
  .hero .wrap > *:nth-child(4) { animation-delay: 140ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

@media (max-width: 767px) {
  .hero { min-height: 520px; }
  .hero .hero-star { position: static; margin-top: 22px; width: 38px; }
}

/* ---------- Movements (sections as space) ---------- */
section { position: relative; }
.statement .wrap,
.protocol .wrap,
.services .wrap {
  padding-top: clamp(110px, 20vh, 240px);
}
.statement h2 { max-width: 23ch; }
.statement .lede { margin-top: clamp(22px, 3.5vh, 40px); max-width: 52ch; }

/* Protocol: three quiet movements */
.protocol-head .lede { margin-top: clamp(20px, 3vh, 36px); }
.rail {
  margin-top: clamp(56px, 9vh, 110px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5vw, 88px);
}
.station .mono { color: var(--bronze-text); }
.station h3 { margin-top: 14px; }
.station p { margin-top: 14px; font-size: 0.9875rem; color: var(--soft); }
.station .measure {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 767px) {
  .rail { grid-template-columns: 1fr; gap: 52px; }
}

/* Services: an index of giant type */
.services-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.services-head .mono { color: var(--soft); text-decoration: none; }
.services-head .mono:hover { color: var(--ink); }
.svc {
  display: block;
  margin-top: clamp(44px, 7vh, 84px);
  text-decoration: none;
}
.svc h3 {
  color: var(--display);
  text-shadow: var(--logo-shadow);
  font-size: clamp(2rem, 5.6vw, 4.8rem);
  font-weight: 500;
  font-stretch: 115%;
  letter-spacing: -0.03em;
  line-height: 1.02;
  display: inline-flex;
  align-items: baseline;
  gap: clamp(12px, 1.6vw, 26px);
  transition: color 200ms var(--ease-out);
}
.svc h3 svg { width: clamp(18px, 2.2vw, 30px); height: auto; color: var(--display); filter: drop-shadow(0 5px 10px rgba(107, 69, 38, 0.30)); transition: color 200ms var(--ease-out), transform 260ms var(--ease-out); flex: none; align-self: center; }
.svc .spec {
  margin-top: 12px;
  font-size: 0.9875rem;
  color: var(--soft);
  max-width: 46ch;
}
.svc .opt {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-text);
  font-variant-numeric: tabular-nums;
}
.svc .opt svg { display: none; }
@media (hover: hover) {
  .svc:hover h3 { color: var(--ink); }
  .svc:hover h3 svg { color: var(--ink); transform: rotate(90deg) scale(1.08); }
}

/* ---------- Orbit: services around a planet ---------- */
.orbit-scene {
  position: relative;
  margin-top: clamp(30px, 5vh, 60px);
  height: clamp(470px, 62vh, 640px);
}
.orbit-scene .orbit-star {
  position: absolute;
  color: var(--display);
  filter: drop-shadow(0 4px 10px rgba(107, 69, 38, 0.30));
}
.orbit-scene .orbit-star:nth-of-type(1) { width: 18px; top: 9%; left: 16%; }
.orbit-scene .orbit-star:nth-of-type(2) { width: 11px; top: 20%; right: 13%; }
.orbit-scene .orbit-star:nth-of-type(3) { width: 14px; bottom: 12%; right: 24%; }
@media (prefers-reduced-motion: no-preference) {
  .orbit-scene .orbit-star { animation: twinkle 1.8s ease-in-out infinite alternate; }
  .orbit-scene .orbit-star:nth-of-type(2) { animation-delay: 0.5s; }
  .orbit-scene .orbit-star:nth-of-type(3) { animation-delay: 1s; }
}
.services.orbiting .svc {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  width: clamp(230px, 30vw, 400px);
  text-align: center;
  will-change: transform, opacity;
}
.services.orbiting .svc h3 { font-size: clamp(1.3rem, 2.6vw, 2.3rem); justify-content: center; display: inline-flex; }
.services.orbiting .svc h3 svg { width: clamp(13px, 1.4vw, 20px); }
.services.orbiting .svc .spec,
.services.orbiting .svc .opt {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
  margin-left: auto;
  margin-right: auto;
}
.services.orbiting .svc.front .spec,
.services.orbiting .svc.front .opt { opacity: 1; transform: none; }
@media (max-width: 767px) {
  .orbit-scene { height: 470px; margin-top: 10px; }
  .services.orbiting .svc { width: 160px; }
  .services.orbiting .svc h3 { font-size: 1.05rem; }
  .services.orbiting .svc .spec { font-size: 0.78rem; }
  .services.orbiting .svc .opt { font-size: 0.6rem; }
  .services .wrap { padding-top: 90px; }
  .close-flood { margin-top: 36px; }
  .close-flood .wrap { padding-top: 90px; padding-bottom: 90px; }
  .statement .wrap, .protocol .wrap { padding-top: 96px; }
}

/* ---------- Close ---------- */
.close-flood { color: var(--ink); margin-top: clamp(60px, 10vh, 130px); }
.close-flood .wrap {
  padding-top: clamp(110px, 18vh, 220px);
  padding-bottom: clamp(110px, 20vh, 240px);
}
.close-flood h2 { max-width: 11ch; font-size: clamp(2.8rem, 7.5vw, 6.5rem); }
.close-flood .lede { margin-top: clamp(22px, 3.5vh, 40px); }

/* ---------- Footer ---------- */
.frame-bottom { border-top: 1px solid var(--hair); }
.frame-bottom .cells {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 40px);
  padding: 30px var(--gutter) 10px;
}
.frame-bottom .cell {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}
.frame-bottom a { text-decoration: none; color: var(--soft); }
.frame-bottom a:hover { color: var(--ink); }
.frame-bottom .grow { flex: 1; }
.frame-bottom .fine {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px var(--gutter) 30px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  color: var(--soft);
}

/* ---------- Inner pages ---------- */
.page-head { padding-top: clamp(52px, 9vh, 110px); }
.page-head h1 { max-width: 14ch; font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.page-head .lede { margin-top: clamp(22px, 3.5vh, 40px); max-width: 52ch; }
.page-head nav { margin-bottom: clamp(20px, 3vh, 34px); color: var(--soft); }
.page-head nav a { text-decoration: none; }
.page-head nav a:hover { text-decoration: underline; }

.band .wrap { padding-top: clamp(96px, 16vh, 200px); }
.band-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); }
@media (max-width: 899px) { .band-grid { grid-template-columns: 1fr; } }
.band h2 { max-width: 14ch; }

.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; margin-top: clamp(34px, 5vh, 56px); }
.step:first-child { margin-top: 0; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bronze-text);
  font-variant-numeric: tabular-nums;
  padding-top: 6px;
}
.step h3 { font-size: 1.35rem; }
.step p { margin-top: 10px; font-size: 0.9875rem; color: var(--soft); }

.inclusions { list-style: none; }
.inclusions li {
  padding: 0 0 0 30px;
  margin-top: 18px;
  position: relative;
  font-size: 1rem;
}
.inclusions li:first-child { margin-top: 0; }
.inclusions li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background: var(--white);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.prose h2 { margin-top: 3rem; font-size: 1.7rem; color: var(--ink); text-shadow: none; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 1.1rem; }
.prose ul { margin: 1.1rem 0 0 1.2rem; }
.prose li { margin-top: 0.4rem; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 110px); }
.form-grid h2 { margin-bottom: clamp(30px, 5vh, 52px); }
@media (max-width: 899px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: clamp(28px, 4vh, 40px); }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 10px;
}
.field input, .field textarea {
  width: 100%;
  padding: 10px 2px 12px;
  font-family: var(--sans);
  font-size: 1.125rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  transition: border-color 180ms var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: #6E5A42; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}
.field .hint { margin-top: 8px; font-size: 0.8125rem; color: var(--soft); }
.field .error { display: none; margin-top: 8px; font-size: 0.8125rem; color: #8C1D18; }
.field.invalid .error { display: block; }
.field.invalid input, .field.invalid textarea { border-bottom-color: #8C1D18; }
.form-status { margin-top: 18px; font-size: 0.9375rem; display: none; }
.form-status.ok { display: block; color: var(--ink); }
.form-status.fail { display: block; color: #8C1D18; }

/* ---------- Scroll reveals: elements pop into place ---------- */
@media (prefers-reduced-motion: no-preference) {
  .pop {
    opacity: 0;
    transform: translateY(28px) scale(0.975);
    filter: blur(6px);
    transition:
      opacity 620ms var(--ease-out),
      filter 620ms var(--ease-out),
      transform 680ms cubic-bezier(0.22, 1.26, 0.36, 1);
    transition-delay: var(--pd, 0ms);
    will-change: transform, opacity, filter;
  }
  .pop.in {
    opacity: 1;
    transform: none;
    filter: none;
    will-change: auto;
  }
}

/* ---------- Loading screen ---------- */
.loader { display: none; }
html.astra-loading .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 38px;
}
.loader-stage { position: relative; width: min(46vw, 300px); }
.loader-stage img { width: 100%; height: auto; filter: drop-shadow(0 12px 30px rgba(107, 69, 38, 0.30)); }
.loader-stage svg {
  position: absolute;
  color: var(--display);
  filter: drop-shadow(0 4px 10px rgba(107, 69, 38, 0.30));
}
.loader-stage svg:nth-of-type(1) { width: 26px; top: -34%; left: -12%; }
.loader-stage svg:nth-of-type(2) { width: 14px; top: -52%; left: 54%; }
.loader-stage svg:nth-of-type(3) { width: 20px; top: -10%; right: -14%; }
.loader-stage svg:nth-of-type(4) { width: 12px; bottom: -42%; right: 6%; }
.loader-stage svg:nth-of-type(5) { width: 18px; bottom: -30%; left: -6%; }
.loader-stage svg:nth-of-type(6) { width: 10px; top: 10%; left: -22%; }
.loader-bar {
  width: min(46vw, 300px);
  height: 2px;
  background: rgba(42, 33, 24, 0.18);
  overflow: hidden;
}
.loader-bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--display);
  transform-origin: left center;
  transform: scaleX(0);
}
html.astra-loading { overflow: hidden; }
html.astra-done .loader { display: none; }
@media (prefers-reduced-motion: no-preference) {
  html.astra-loading .hero .wrap > * { animation-play-state: paused; }
  .loader-bar i { animation: load 1.7s linear forwards; }
  @keyframes load { to { transform: scaleX(1); } }
  .loader-stage svg { animation: twinkle 1.4s ease-in-out infinite alternate; }
  .loader-stage svg:nth-of-type(2n) { animation-delay: 0.4s; }
  .loader-stage svg:nth-of-type(3n) { animation-delay: 0.8s; }
  @keyframes twinkle { from { opacity: 0.35; transform: scale(0.92); } to { opacity: 1; transform: scale(1.06); } }
  .loader.leaving { opacity: 0; transition: opacity 380ms var(--ease-out); }
  .loader-stage { transition: transform 420ms var(--ease-out); }
  .loader.leaving .loader-stage { transform: scale(1.1); }
}

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: grid; align-content: center; }
.notfound .mono { color: var(--bronze-text); margin-top: 1.2rem; }
.notfound h1 { max-width: 14ch; }
.notfound p { margin-top: 1.4rem; }
.notfound .btn-ink { margin-top: 2.4rem; }
