/* ==========================================================================
   Page-level layouts
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(600px, 92vh, 940px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -12% 0 -12% 0;   /* overscan so parallax never exposes an edge */
  z-index: -3;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Light theme over dark photography: an opaque wash on the left where the
     copy sits, clearing to the right so the vessel still reads. */
  background:
    linear-gradient(100deg,
      rgba(255,255,255,.97) 0%,
      rgba(255,255,255,.94) 32%,
      rgba(237,244,250,.72) 52%,
      rgba(237,244,250,.28) 70%,
      rgba(255,255,255,.06) 100%),
    linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 38%,
      rgba(255,255,255,.35) 82%, var(--page) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: var(--sp-9) var(--sp-10); width: 100%; }
.hero__content { max-width: 820px; }
.hero__title {
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: var(--sp-5);
}
.hero__title .accent { color: var(--marine-blue); }
.hero__lead {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--text-body);
  max-width: 60ch;
  margin-bottom: var(--sp-6);
}
.hero__cta { margin-bottom: var(--sp-7); }

/* Floating glass spec chips */
.spec-chips { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.spec-chip__k {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--marine-blue);
  line-height: 1;
}
.spec-chip__v {
  font-size: 0.76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: var(--sp-9) var(--sp-8);
  overflow: hidden;
  background: var(--surface-1);
  isolation: isolate;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .16;
}
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.72), var(--page));
}
.page-hero__title { margin-bottom: var(--sp-4); }
.page-hero__lead { font-size: var(--fs-lead); color: var(--text-body); max-width: 62ch; }

/* --------------------------------------------------------------------------
   Split (image + copy)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  align-items: center;
}
.split--reverse .split__media { order: 2; }

.split__media { position: relative; }
.media-stack { position: relative; perspective: 1100px; }
.media-stack__main {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--hairline);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.media-stack__badge {
  position: absolute;
  right: clamp(-10px, -1vw, 0px);
  bottom: -26px;
  padding: var(--sp-4) var(--sp-5);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 148px;
}
.media-stack__badge .stat__num { font-size: 2rem; }

/* Frame accent behind image */
.media-stack::before {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-lg);
  z-index: -1;
  opacity: .6;
}

/* Checklist */
.checklist { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
.checklist li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.checklist svg {
  width: 21px; height: 21px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--aqua-ink);
}
.section--deep .checklist svg { color: var(--aqua-mint); }
.checklist strong { color: var(--text-ink); display: block; }
.section--deep .checklist strong { color: var(--text-on-deep); }

/* --------------------------------------------------------------------------
   Flagship spotlight
   -------------------------------------------------------------------------- */
.spotlight {
  position: relative;
  overflow: hidden;
  color: var(--text-on-deep-body);
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(5,83,156,.55), transparent 62%),
    var(--ink-deep);
}
.spotlight h1, .spotlight h2, .spotlight h3 { color: var(--text-on-deep); }
.spotlight p, .spotlight .lead { color: var(--text-on-deep-body); }
.spotlight .eyebrow { color: var(--aqua-mint); }
.spotlight .spec-table th { color: var(--text-on-deep-mute); }
.spotlight .spec-table td { color: var(--text-on-deep); }
.spotlight .spec-table th, .spotlight .spec-table td { border-bottom-color: var(--hairline-deep); }
.spotlight .btn--ghost { color: #fff; border-color: var(--hairline-deep); }
.spotlight .btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: var(--sp-5); }
.spec-table th, .spec-table td {
  padding: var(--sp-3) 0;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.92rem;
}
.spec-table th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
  width: 46%;
}
.spec-table td { color: var(--text-ink); font-weight: 600; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --------------------------------------------------------------------------
   Product rail (scroll-snap carousel)
   -------------------------------------------------------------------------- */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 33%);
  gap: var(--sp-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-4);
  scrollbar-width: thin;
  scrollbar-color: var(--marine-blue) transparent;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: rgba(11,31,51,.08); border-radius: 3px; }
.rail::-webkit-scrollbar-thumb { background: var(--marine-blue); border-radius: 3px; }

/* --------------------------------------------------------------------------
   Process timeline
   -------------------------------------------------------------------------- */
.process { position: relative; }
.process__track {
  position: absolute;
  top: 33px; left: 0; right: 0;
  height: 2px;
  z-index: 0;
}
.process__steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.process__step { text-align: center; }
.process__num {
  display: grid;
  place-items: center;
  width: 66px; height: 66px;
  margin: 0 auto var(--sp-4);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--marine-blue);
  background: var(--card);
  border: 1px solid var(--glass-edge);
  border-radius: 50%;
  box-shadow: var(--glow-aqua);
}
.process__step h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.process__step p { font-size: 0.92rem; color: var(--text-mute); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--text-on-deep-body);
  background:
    radial-gradient(90% 140% at 50% 0%, rgba(5,83,156,.65), transparent 64%),
    var(--ink-deep);
  isolation: isolate;
}
.cta-band h1, .cta-band h2, .cta-band h3 { color: var(--text-on-deep); }
.cta-band .eyebrow { color: var(--aqua-mint); }
.cta-band__inner { position: relative; z-index: 2; max-width: 760px; margin-inline: auto; }
.cta-band h2 { margin-bottom: var(--sp-4); }
.cta-band p { color: var(--text-on-deep-body); font-size: var(--fs-lead); margin-bottom: var(--sp-6); }
.cta-band .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  align-items: start;
}
.contact-panel {
  position: relative;
  overflow: hidden;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-md);
}
.contact-list { display: grid; gap: var(--sp-5); }
.contact-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-item__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: rgba(5,83,156,.08);
  border: 1px solid var(--glass-edge);
  color: var(--marine-blue);
}
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item__k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 3px;
}
.contact-item__v { color: var(--text-ink); font-weight: 500; text-decoration: none; font-style: normal; }
a.contact-item__v:hover { color: var(--marine-blue); }

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 300px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--sp-3); max-width: 860px; margin-inline: auto; }
.faq__item {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--card);
  overflow: hidden;
  transition: border-color var(--t-micro) var(--ease-out);
}
.faq__item[open] { border-color: var(--glass-edge); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  min-height: 56px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-ink);
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--marine-blue); }
.faq__icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--marine-blue);
  transition: transform var(--t-hover) var(--ease-buoy);
}
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 var(--sp-5) var(--sp-5); color: var(--text-mute); font-size: 0.96rem; }

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */
.person { text-align: center; }
.person__photo {
  width: 116px; height: 116px;
  margin: 0 auto var(--sp-4);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--marine-blue), var(--ink-deep));
  border: 1px solid var(--glass-edge);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}
.person__name { font-size: 1.1rem; margin-bottom: 4px; }
.person__role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aqua-ink);
  margin-bottom: var(--sp-3);
}
.person__bio { font-size: 0.92rem; color: var(--text-mute); }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-buoy); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-7) var(--sp-4) var(--sp-4);
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
  /* The caption sits over photography, so the scrim must be opaque enough
     behind the text itself - not merely at the very bottom edge. */
  background: linear-gradient(180deg,
    rgba(4,36,64,0) 0%, rgba(4,36,64,.55) 42%, rgba(4,36,64,.93) 100%);
  text-shadow: 0 1px 3px rgba(4,36,64,.85);
}

/* --------------------------------------------------------------------------
   Prose (privacy policy, long copy)
   -------------------------------------------------------------------------- */
.prose { max-width: var(--maxw-text); }
.prose h2 { font-size: 1.55rem; margin-top: var(--sp-7); margin-bottom: var(--sp-4); }
.prose h3 { font-size: 1.15rem; margin-top: var(--sp-5); margin-bottom: var(--sp-3); }
.prose p  { margin-bottom: var(--sp-4); }
.prose ul { margin-bottom: var(--sp-4); display: grid; gap: var(--sp-2); }
.prose ul li { padding-left: var(--sp-5); position: relative; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--marine-blue);
}

/* --------------------------------------------------------------------------
   404 / thank-you
   -------------------------------------------------------------------------- */
.centered-page {
  min-height: 74vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--sp-9);
  position: relative;
  overflow: hidden;
}
.centered-page__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -0.06em;
  background: linear-gradient(150deg, var(--marine-blue), var(--aqua-ink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--sp-4);
}
.centered-page__inner { position: relative; z-index: 2; max-width: 620px; }
.success-ring {
  display: grid;
  place-items: center;
  width: 96px; height: 96px;
  margin: 0 auto var(--sp-5);
  border-radius: 50%;
  background: rgba(15,112,82,.10);
  border: 1px solid rgba(15,112,82,.28);
  color: var(--aqua-ink);
  box-shadow: var(--glow-aqua);
}
.success-ring svg { width: 42px; height: 42px; }

/* --------------------------------------------------------------------------
   Video figures
   Posters carry the weight: <video preload="none"> means no video bytes are
   fetched until the visitor presses play. The poster is a plain JPEG because
   the poster attribute cannot take a <picture>/WebP source.
   -------------------------------------------------------------------------- */
.video-wrap { max-width: 900px; margin-inline: auto; }
.video-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
}
.video-figure { margin: 0; }
.video-figure__player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--ink-deep);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.video-figure__cap {
  margin-top: var(--sp-3);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-mute);
}
/* Fallback copy inside <video> renders only where MP4 playback is unsupported.
   It sits on the player's own dark background, so it must not inherit the dark
   body text colour — that would be 1.33:1. */
.video-figure__player p { margin: 0; padding: var(--sp-5); color: #fff; }
.video-figure__player a { color: var(--aqua-mint); }
