/* Eclipse public pages. Brand tokens come from brand/tokens.css (copied at
   build from apps/brand). Calm paper, ink and hairlines: no boxes, no shadows.
   Honey is the only sprinkle. Works at phone width with a 16px gutter. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* Scrollbar: thin, on paper; warm grey thumb, honey on hover. */
html { scrollbar-width: thin; scrollbar-color: var(--ink-faint) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-faint); border-radius: 999px; border: 3px solid var(--surface); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-yellow); }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--brand-yellow); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(34px, 5.5vw, 56px); max-width: 18ch; }
h2 { font-size: clamp(22px, 3vw, 28px); margin-top: 2.4em; }
h3 { font-size: 17px; margin-top: 1.4em; }
p, li { max-width: 60ch; }
small, .muted { color: var(--ink-muted); }
:focus-visible { outline: 2px solid var(--brand-yellow); outline-offset: 3px; }

.wrap { width: min(100% - 32px, 920px); margin-inline: auto; }

header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 0;
}
header.site .mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
header.site .mark img { height: 20px; width: auto; }
header.site nav { display: flex; gap: 22px; font-size: 15px; align-items: center; }
header.site { gap: 18px; }
header.site nav a { text-decoration: none; color: var(--ink-muted); transition: color var(--transition); }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--ink); }
header.site .nav-end { display: flex; align-items: center; gap: 18px; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  margin: 0; padding: 0; background: none; border: 1px solid transparent;
  color: var(--ink-faint); cursor: pointer; transition: color var(--transition), border-color var(--transition);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--hairline); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: inline; }
}
.no-forms { text-align: center; max-width: none; margin: 8px auto 0; }
.cf-turnstile { margin-top: 22px; min-height: 65px; }

/* Hero: the moon. The circle of whitespace that cuts the crescent, at page
   scale, tone on tone, with the sun showing as a thin honey limb at its
   lower-left edge. It rises into place on load and then drifts slowly. */
.hero { position: relative; overflow: hidden; }
.moon-field {
  position: absolute; right: 0; top: 0; height: 100%; width: 70%;
  pointer-events: none;
}
.moon {
  animation: rise 2600ms cubic-bezier(0.2, 0.7, 0.2, 1) both, drift 40s ease-in-out 2600ms infinite alternate;
}
@keyframes rise { from { transform: translate(60px, 24px); } to { transform: none; } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-16px, -10px); } }
.hero-inner { position: relative; padding: 96px 0 104px; }
.hero h1 { max-width: 12ch; }
.hero p.lede { font-size: 21px; color: var(--ink-muted); max-width: 40ch; margin: 0; }
.hero .cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 36px;
  font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--brand-yellow); padding-bottom: 2px;
}
.hero .cta::after { content: "\2192"; color: var(--ink-faint); transition: transform var(--transition); }
.hero .cta:hover::after { transform: translateX(3px); }

.grid {
  display: grid; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 56px 0 0;
  border-top: 1px solid var(--hairline);
}
.card { padding: 28px 32px 32px 0; border-bottom: 1px solid var(--hairline); }
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; color: var(--ink-muted); font-size: 16px; }

.steps { padding: 0; list-style: none; margin: 0; border-top: 1px solid var(--hairline); }
.steps li { position: relative; padding: 18px 0 18px 0; margin: 0; border-bottom: 1px solid var(--hairline); display: grid; grid-template-columns: 56px 1fr; align-items: baseline; }
.steps li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-yellow); align-self: center;
}

.disclosure {
  background: var(--surface-sunken);
  border-radius: 14px;
  padding: 28px 32px;
  margin: 40px 0 88px;
  color: var(--ink-muted); font-size: 16px;
}
.disclosure strong { display: block; color: var(--ink); font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.disclosure p { margin: 0; max-width: none; }

#enquire { max-width: 680px; margin: 0 auto; text-align: center; }
#enquire h2 { margin-top: 0; }
#enquire .muted { margin: 0 auto 24px; max-width: none; }
#enquire .no-forms { margin: 0 auto; }
form.panel {
  text-align: left;
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 32px;
}
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; }
.field.wide { grid-column: 1 / -1; }
label { display: block; font-size: 14px; color: var(--ink-muted); margin: 0 0 8px; }
input, textarea {
  width: 100%;
  font: inherit; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color var(--transition);
}
input:focus, textarea:focus { outline: none; border-color: var(--brand-yellow); }
textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: 15px; color: var(--ink-muted); }
.consent input { width: auto; margin-top: 4px; accent-color: var(--brand-yellow); }
button {
  width: 100%;
  margin-top: 24px;
  font: inherit; font-weight: 500; font-size: 16px;
  background: var(--brand-yellow); color: #2f2e2b;
  border: 1px solid var(--brand-yellow); border-radius: 999px;
  padding: 14px 26px; cursor: pointer;
  transition: filter var(--transition), opacity var(--transition);
}
button:hover { filter: brightness(1.04); }
button:disabled { opacity: 0.45; cursor: default; }
.form-status { margin: 14px 0 0; min-height: 1.4em; font-size: 15px; color: var(--ink-muted); text-align: center; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="error"] { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

footer.site {
  margin-top: 96px; padding: 24px 0 48px;
  border-top: 1px solid var(--hairline);
  font-size: 14px; color: var(--ink-muted);
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer.site a { text-decoration: none; }
footer.site a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .moon-field { width: 100%; top: auto; bottom: 0; height: 220px; }
  .hero-inner { padding: 48px 0 240px; }
}

@media (max-width: 600px) {
  header.site { flex-direction: column; align-items: flex-start; }
  header.site nav { gap: 16px; }
  .hero p.lede { font-size: 18px; }
  .card { padding-right: 0; }
  .fields { grid-template-columns: 1fr; }
  form.panel { padding: 22px 18px; }
  .disclosure { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
