/* =========================================================
   SF Axopar — a private, captained Axopar 45 on SF Bay
   Editorial, restrained: Instrument Serif display over a
   night-water monochrome. One accent: warm off-white.
   ========================================================= */

:root {
  --bg:      #05080f;
  --bg-2:    #070b14;
  --text:    #edeee9;   /* warm off-white          */
  --muted:   #9aa4ad;
  --faint:   #626c76;
  --hairline: rgba(237, 238, 233, 0.14);
  --hairline-soft: rgba(237, 238, 233, 0.08);

  --serif: "Instrument Serif", Georgia, serif;
  --sans:  "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

::selection { background: var(--text); color: var(--bg); }

/* ---------- Type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin: 0 0 0.7em;
}
.display em,
.hero-title em {
  font-style: italic;
  color: var(--muted);
}

.label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1.6rem;
  font-weight: 500;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--bg);
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 2px;
  padding: 0.85em 2em;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { background: #ffffff; border-color: #ffffff; }

.quiet-link {
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.quiet-link:hover { color: var(--text); border-color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(5, 8, 15, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--hairline-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.15rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.6rem);
}
.nav a {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 0.5em 1.2em;
  transition: border-color 0.25s var(--ease);
}
.nav-cta:hover { border-color: var(--muted); }
.nav a:not(.nav-cta) { display: none; }
@media (min-width: 780px) {
  .nav a:not(.nav-cta) { display: inline; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  padding-top: 72px;
}
.hero-scene { position: absolute; inset: 0; z-index: -1; }
.bay-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-stars {
  position: absolute;
  inset: 0 0 40% 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(237,238,233,0.7) 50%, transparent 50%),
    radial-gradient(1px 1px at 28% 12%, rgba(237,238,233,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 44% 30%, rgba(237,238,233,0.5) 50%, transparent 50%),
    radial-gradient(1px 1px at 58% 8%,  rgba(237,238,233,0.6) 50%, transparent 50%),
    radial-gradient(1px 1px at 71% 24%, rgba(237,238,233,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 84% 14%, rgba(237,238,233,0.45) 50%, transparent 50%),
    radial-gradient(1px 1px at 93% 34%, rgba(237,238,233,0.5) 50%, transparent 50%);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,8,15,0.72) 0%, rgba(5,8,15,0) 30%),
    linear-gradient(0deg, rgba(5,8,15,0.94) 0%, rgba(5,8,15,0.35) 45%, rgba(5,8,15,0) 75%);
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(1.6rem, 4vh, 3rem);
  position: relative;
  z-index: 2;
  flex: none;
}
.hero-top .label { margin-bottom: 1.3rem; }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.2vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.005em;
  margin: 0 0 1rem;
}
.hero-sub {
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--muted);
  margin: 0;
}

.hero-vessel {
  position: relative;
  flex: 1 1 auto;
  min-height: 220px;
  z-index: 1;
}
@media (min-width: 701px) {
  /* let the transparent canvas bleed behind the text bands so the
     auto-framed boat renders larger without clipping */
  .hero-vessel { margin-top: -60px; }
}
.hero-vessel model-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  --progress-bar-color: transparent;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease);
}
.hero-vessel model-viewer.on { opacity: 1; transform: none; }
.hero-vessel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: min(820px, 80vw);
  height: 100px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(200, 218, 230, 0.13) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: clamp(1.8rem, 4.5vh, 3rem);
  position: relative;
  z-index: 2;
  flex: none;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  margin-bottom: 1.7rem;
}
.hero-note {
  margin: 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline-soft);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

@media (max-width: 700px) {
  .hero-vessel { min-height: 200px; }
}

/* ---------- The boat ---------- */
.boat { padding-block: clamp(5.5rem, 13vh, 9.5rem); }
.boat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
@media (min-width: 900px) {
  .boat-grid { grid-template-columns: 1.4fr 1fr; align-items: center; }
}
.boat-copy p {
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 1.2rem;
}
.boat-copy p:last-child { margin-bottom: 0; color: var(--text); }
.boat-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.boat-facts li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--muted);
  font-size: 0.98rem;
}
.boat-facts li:first-child { border-top: 1px solid var(--hairline-soft); }

/* ---------- Occasions ---------- */
.occasions {
  padding-block: clamp(5.5rem, 13vh, 9.5rem);
  background: var(--bg-2);
  border-block: 1px solid var(--hairline-soft);
}
.occasion-list {
  list-style: none;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  padding: 0;
}
.occasion-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem 3rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.occasion-list li:first-child { border-top: 1px solid var(--hairline-soft); }
@media (min-width: 800px) {
  .occasion-list li { grid-template-columns: minmax(280px, 1fr) 1.6fr; align-items: baseline; }
}
.occasion-list h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.15;
  margin: 0;
}
.occasion-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 58ch;
}

/* ---------- Good to know ---------- */
.know { padding-block: clamp(5.5rem, 13vh, 9.5rem); }
.know-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
@media (min-width: 900px) {
  .know-grid { grid-template-columns: 0.9fr 1.4fr; align-items: start; }
}
.know-intro { position: sticky; top: 110px; }
.know-list { margin: 0; }
.know-list > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.know-list > div:first-child { border-top: 1px solid var(--hairline-soft); }
.know-list dt {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 0.2em;
}
.know-list dd {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

/* ---------- Inquire ---------- */
.inquire {
  padding-block: clamp(5.5rem, 13vh, 9.5rem);
  background: var(--bg-2);
  border-top: 1px solid var(--hairline-soft);
}
.inquire-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
@media (min-width: 900px) {
  .inquire-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
}
.inquire-lead {
  color: var(--muted);
  max-width: 40ch;
  margin: 0 0 2.2rem;
}
.inquire-meta {
  list-style: none;
  margin: 0;
  padding: 0;
}
.inquire-meta li {
  padding: 0.55rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.inquire-meta a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
}
.inquire-meta a:hover { border-color: var(--muted); }

.inquire-form { max-width: 560px; }
.form-row { margin-bottom: 1.6rem; }
.form-row.two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  padding: 0.5em 0;
  outline: none;
  transition: border-color 0.3s var(--ease);
  width: 100%;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239aa4ad' fill='none' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}
.field select option { background: var(--bg-2); color: var(--text); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--text); }
.field input[type="date"] { color-scheme: dark; }
.field textarea { resize: vertical; min-height: 64px; }
.field.invalid input { border-bottom-color: #b0575e; }
.btn-submit { min-width: 160px; margin-top: 0.4rem; }
.form-note {
  margin: 1.1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 3.2rem;
  border-top: 1px solid var(--hairline-soft);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  text-align: center;
}
.footer-brand { font-family: var(--serif); font-size: 1.15rem; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.footer-fine { color: var(--faint) !important; font-size: 0.78rem !important; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
