/* ==========================================================================
   SILVER SEA — 2026 design system
   Navy, light blue, white and light grey. Harbour atlas, cool water palette.
   ========================================================================== */

/* ---------- Tokens -------------------------------------------------------- */
:root {
  --navy: #0A1E36;
  --navy-2: #102B4C;
  --navy-3: #173A63;
  --body: #33475B;
  --bg: #FFFFFF;
  --bg-2: #F1F4F9;
  --bg-3: #E4EAF2;
  --white: #FFFFFF;
  --mist: #C9D9EA;
  --muted: #5D7086;
  --sky: #8FC9F0;
  --sky-deep: #1F6FA8;
  --sky-pale: #B9DFF7;
  --line: rgba(10, 30, 54, 0.14);
  --line-strong: rgba(10, 30, 54, 0.28);
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-dark-strong: rgba(255, 255, 255, 0.34);

  --display: "Fraunces", "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(18px, 4.6vw, 76px);
  --page: 1480px;
  --section-y: clamp(64px, 8.5vw, 132px);
  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 76px;

  --shadow-card: 0 24px 60px -32px rgba(10, 30, 54, 0.45);
}

/* ---------- Reset --------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--navy);
  font-family: var(--sans);
  font-size: clamp(0.98rem, 0.42vw + 0.88rem, 1.06rem);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-top: 0;
}

img,
svg,
picture { display: block; max-width: 100%; }

img { height: auto; }

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

ul,
ol { padding: 0; list-style: none; }

address { font-style: normal; }

::selection { background: var(--sky); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--sky-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout primitives -------------------------------------------- */
.wrap {
  width: min(var(--page), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section.no-top { padding-top: 0; }

.pale { background: var(--bg-2); }

.ink {
  background: var(--navy);
  color: var(--bg);
}

.ink .eyebrow,
.ink .lead,
.ink p { color: var(--mist); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  background: var(--navy);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 0 0 6px 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.skip:focus { top: 0; }

/* ---------- Type ---------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.018em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.65rem, 6.6vw, 6.4rem);
  line-height: 0.94;
}

h2 {
  font-size: clamp(1.95rem, 4.1vw, 3.7rem);
  line-height: 0.98;
}

h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.5rem);
  line-height: 1.12;
}

h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}

h1 em,
h2 em,
h3 em {
  font-style: italic;
  font-weight: 300;
  color: var(--sky-deep);
}

.ink h1 em,
.ink h2 em,
.ink h3 em,
.hero h1 em { color: var(--sky); }

.lead {
  font-size: clamp(1.02rem, 0.7vw + 0.88rem, 1.22rem);
  line-height: 1.55;
  color: var(--body);
  max-width: 62ch;
  text-wrap: pretty;
}

p { text-wrap: pretty; }

p + p { margin-top: 1em; }

[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--sky);
  flex: none;
}

.ink .eyebrow { color: var(--sky-pale); }

.micro {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.65;
}

.ink .micro { color: rgba(201, 217, 234, 0.66); }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 0 rgba(143, 201, 240, 0.6);
  animation: pulse-dot 2.6s infinite;
  flex: none;
}

/* ---------- Buttons & links ---------------------------------------------- */
.button {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sky);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}

.button:hover { color: var(--navy); }

.button:hover::before { transform: translateY(0); }

/* On navy surfaces the call to action becomes the light blue one. */
.ink .button,
.hero .button,
.closing .button,
.corridor .button,
.catalog-feature .button {
  --btn-bg: var(--sky);
  --btn-fg: var(--navy);
}

.ink .button::before,
.hero .button::before,
.closing .button::before,
.corridor .button::before,
.catalog-feature .button::before { background: var(--white); }

.ink .button:hover,
.hero .button:hover,
.closing .button:hover,
.corridor .button:hover,
.catalog-feature .button:hover { color: var(--navy); }

.button span[aria-hidden] {
  font-family: var(--mono);
  font-size: 0.95em;
  transition: transform 0.45s var(--ease);
}

.button:hover span[aria-hidden] { transform: translate(3px, -3px); }

.button.secondary,
.button.outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: var(--line-strong);
}

.button.secondary::before,
.button.outline::before { background: var(--sky); }

.button.secondary:hover,
.button.outline:hover { color: var(--navy); border-color: var(--line-strong); }

.ink .button.secondary,
.ink .button.outline,
.hero .button.outline,
.closing .button.secondary,
.closing .button.outline,
.corridor .button.outline,
.catalog-feature .button.outline {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: var(--line-dark-strong);
}

.ink .button.secondary::before,
.ink .button.outline::before,
.hero .button.outline::before,
.closing .button.secondary::before,
.closing .button.outline::before,
.corridor .button.outline::before,
.catalog-feature .button.outline::before { background: var(--white); }

.ink .button.secondary:hover,
.ink .button.outline:hover,
.hero .button.outline:hover,
.closing .button.secondary:hover,
.closing .button.outline:hover,
.corridor .button.outline:hover,
.catalog-feature .button.outline:hover { color: var(--navy); border-color: var(--white); }

.button.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.8rem;
  gap: 10px;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s;
}

.text-link:hover {
  background-size: 0% 1px;
  background-position: 100% 100%;
  color: var(--sky-deep);
}

.ink .text-link:hover { color: var(--sky); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  margin-top: 34px;
}

/* ---------- Header -------------------------------------------------------- */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--gutter);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease), color 0.4s, border-color 0.4s, height 0.4s var(--ease);
}

.home header {
  color: var(--bg);
  background: linear-gradient(to bottom, rgba(10, 30, 54, 0.62), rgba(10, 30, 54, 0));
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

header.scrolled,
.home header.scrolled {
  height: 64px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

.brand {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand img {
  width: auto;
  height: 52px;
  transition: height 0.4s var(--ease), filter 0.4s;
}

header.scrolled .brand img { height: 42px; }

.brand span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  line-height: 1.1;
}

.brand small {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  opacity: 0.62;
  font-weight: 400;
}

header nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
}

header nav > a:not(.button) {
  position: relative;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-block: 6px;
  opacity: 0.86;
  transition: opacity 0.3s;
}

header nav > a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

header nav > a:not(.button):hover { opacity: 1; }

header nav > a:not(.button):hover::after,
header nav > a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Over the hero the header is transparent, so the CTA becomes light blue. */
.home header:not(.scrolled) nav .button {
  --btn-bg: var(--sky);
  --btn-fg: var(--navy);
}

.home header:not(.scrolled) nav .button::before { background: var(--white); }

.home header:not(.scrolled) nav .button:hover { color: var(--navy); }

/* Services submenu */
.nav-sub { position: relative; }

.nav-sub > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-block: 6px;
  opacity: 0.86;
  transition: opacity 0.3s;
}

.nav-sub > summary::-webkit-details-marker { display: none; }

.nav-sub > summary:hover,
.nav-sub[open] > summary,
.nav-sub.is-active > summary { opacity: 1; }

.nav-caret {
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  rotate: 45deg;
  translate: 0 -2px;
  transition: rotate 0.3s var(--ease), translate 0.3s var(--ease);
}

.nav-sub[open] .nav-caret { rotate: 225deg; translate: 0 2px; }

.nav-sub-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  width: min(500px, calc(100vw - 2 * var(--gutter)));
  padding: 12px;
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -48px rgba(10, 30, 54, 0.55);
  display: grid;
  gap: 0;
  z-index: 96;
}

.nav-sub-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.nav-sub-label {
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px 4px;
}

.nav-sub-panel a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1px 16px;
  padding: 9px 10px;
  border-radius: 8px;
  transition: background 0.3s;
}

.nav-sub-panel a span { font-size: 0.94rem; font-weight: 500; }

.nav-sub-panel a small {
  grid-column: 1;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-sub-panel a:hover { background: var(--bg-2); }

.nav-sub-panel a:hover span { color: var(--sky-deep); }

.nav-sub-catalog {
  margin-top: 8px;
  padding: 14px !important;
  background: linear-gradient(135deg, rgba(143, 201, 240, 0.24), rgba(143, 201, 240, 0.07));
  border: 1px solid rgba(143, 201, 240, 0.55);
}

.nav-sub-catalog strong {
  grid-column: 1;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.15;
}

.nav-sub-catalog i {
  grid-row: 1 / span 3;
  grid-column: 2;
  font-style: normal;
  color: var(--sky-deep);
  align-self: center;
  transition: translate 0.35s var(--ease);
}

.nav-sub-catalog:hover i { translate: 3px -3px; }

.menu-toggle { display: none; }

.nav-foot { display: none; }

/* ---------- Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--navy);
  color: var(--bg);
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: -3;
  filter: saturate(0.82) contrast(1.02);
  animation: hero-drift 26s var(--ease-soft) infinite alternate;
  will-change: transform;
}

/* Cool grade: pulls the dusk photograph into the navy palette without flattening it. */
.hero-grade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #14365c;
  mix-blend-mode: color;
  opacity: 0.5;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to top, rgba(10, 30, 54, 0.92) 2%, rgba(10, 30, 54, 0.48) 32%, rgba(10, 30, 54, 0.06) 64%, rgba(10, 30, 54, 0.34) 100%),
    linear-gradient(100deg, rgba(10, 30, 54, 0.74) 0%, rgba(10, 30, 54, 0.08) 58%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%, 100% 120px;
  mask-image: linear-gradient(to bottom, transparent 8%, #000 45%, #000 100%);
}

.hero-content {
  position: relative;
  padding-top: calc(var(--header-h) + 8vh);
  padding-bottom: clamp(40px, 6vh, 72px);
}

.hero .eyebrow {
  color: var(--bg);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  opacity: 0.85;
  margin-bottom: 26px;
  white-space: nowrap;
}

.hero .eyebrow::before { background: var(--sky); width: 40px; }

.hero h1 {
  font-size: clamp(2.7rem, 7.4vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: -0.026em;
  max-width: 15ch;
  color: var(--white);
}

.hero h1 em { color: var(--sky-pale); }

.hero-content > p {
  max-width: 46ch;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 0.55vw + 0.9rem, 1.16rem);
  line-height: 1.6;
}

.hero .actions { margin-top: 34px; }

.hero-rail {
  position: absolute;
  right: max(18px, calc((100vw - var(--page)) / 2 + 22px));
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-rail::after {
  content: "";
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--sky), transparent);
}

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  margin-top: clamp(26px, 4vh, 46px);
  padding-block: 0;
}

.hero-stats > div {
  padding: 20px 14px 22px 0;
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
}

.hero-stats > div + div { padding-left: 22px; border-left: 1px solid var(--line-dark); }

.hero-stats dt {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.hero-stats dd {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 2.7rem);
  font-weight: 300;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hero-scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 14px;
  z-index: 2;
  display: none;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  margin: 10px auto 0;
  background: linear-gradient(to bottom, var(--sky), transparent);
}

/* ---------- Ticker -------------------------------------------------------- */
.ticker {
  overflow: hidden;
  background: var(--navy);
  color: var(--bg);
  border-block: 1px solid var(--line-dark);
  padding-block: 15px;
  display: flex;
  gap: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.marquee {
  display: flex;
  flex: none;
  min-width: 100%;
  animation: marquee 46s linear infinite;
}

.marquee > div {
  display: flex;
  align-items: center;
  flex: none;
}

.ticker span { padding-inline: 18px; opacity: 0.78; white-space: nowrap; }

.ticker i {
  width: 5px;
  height: 5px;
  rotate: 45deg;
  background: var(--sky);
  flex: none;
  opacity: 0.9;
}

.ticker:hover .marquee { animation-play-state: paused; }

/* ---------- Footer -------------------------------------------------------- */
footer {
  position: relative;
  background: var(--navy);
  color: var(--bg);
  overflow: hidden;
  padding-top: clamp(56px, 7vw, 96px);
}

.footer-top {
  width: min(var(--page), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: clamp(38px, 5vw, 66px);
  border-bottom: 1px solid var(--line-dark);
}

.footer-top .brand img { height: 58px; }

.footer-top .brand span { font-size: 0.86rem; }

.footer-top > p {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  text-align: right;
  color: var(--bg);
  letter-spacing: -0.01em;
}

.footer-top > p em { font-style: italic; color: var(--sky); }

.footer-grid {
  width: min(var(--page), 100%);
  margin-inline: auto;
  padding: clamp(36px, 4.5vw, 60px) var(--gutter) clamp(30px, 4vw, 46px);
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.15fr 1fr 1fr;
  gap: 34px 24px;
  position: relative;
  z-index: 2;
}

.footer-grid > div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

.footer-grid h2 {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--sky-pale);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.footer-grid a,
.footer-grid address,
.footer-grid span {
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(201, 217, 234, 0.82);
  transition: color 0.3s;
}

.footer-grid a:hover { color: var(--bg); }

.footer-grid address { color: rgba(201, 217, 234, 0.6); }

.footer-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.6vw, 42px);
  text-align: center;
  padding-inline: var(--gutter);
  padding-bottom: clamp(12px, 1.8vw, 28px);
  margin-top: clamp(10px, 2vw, 26px);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.footer-mark-logo {
  height: clamp(56px, 7.4vw, 116px);
  width: auto;
  flex: none;
  opacity: 0.92;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}

.footer-mark-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.1vw, 18px);
}

.footer-mark-word > span {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 8.6vw, 8.8rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(201, 217, 234, 0.62);
}

.footer-mark-sub {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: var(--mono);
  font-size: clamp(0.82rem, 1.9vw, 1.7rem);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(201, 217, 234, 0.9);
}

.footer-bottom {
  width: min(var(--page), 100%);
  margin-inline: auto;
  padding: 22px var(--gutter) 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(201, 217, 234, 0.64);
}

.footer-bottom > span:last-child { display: flex; gap: 20px; }

.footer-bottom a:hover { color: var(--bg); }

/* ---------- Preview banner ------------------------------------------------ */
.review-banner {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--header-h) + 10px);
  z-index: 5;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 30, 54, 0.78);
  color: var(--sky-pale);
  border: 1px solid rgba(143, 201, 240, 0.32);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

/* ---------- Contact widget ------------------------------------------------ */
.contact-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 88;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}

body.widget-ready .contact-widget {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.contact-widget summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 18px 40px -20px rgba(10, 30, 54, 0.8);
  transition: background 0.3s, color 0.3s;
}

.contact-widget summary::-webkit-details-marker { display: none; }

.contact-widget summary:hover { background: var(--sky); color: var(--navy); }

.contact-widget > div {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.contact-widget > div a {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.84rem;
  transition: background 0.25s;
}

.contact-widget > div a:hover { background: var(--bg-2); }

/* ---------- Closing CTA --------------------------------------------------- */
.closing {
  position: relative;
  background: var(--navy);
  color: var(--bg);
  padding-block: clamp(72px, 10vw, 140px);
  overflow: hidden;
  isolation: isolate;
}

.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 90% at 82% 20%, rgba(143, 201, 240, 0.16), transparent 66%),
    radial-gradient(50% 80% at 8% 90%, rgba(16, 43, 76, 0.9), transparent 70%);
}

.closing .wrap { display: grid; gap: 30px; }

.closing h2 {
  font-size: clamp(2.2rem, 5.4vw, 5rem);
  color: var(--white);
  max-width: 18ch;
}

.closing h2 em { color: var(--sky-pale); }

.closing .eyebrow { color: var(--sky-pale); }

.closing .actions { margin-top: 0; }

/* ---------- Shared animation hooks --------------------------------------- */
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(143, 201, 240, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(143, 201, 240, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 201, 240, 0); }
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-100%, 0, 0); }
}

@keyframes hero-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(0, -1.4%, 0); }
}

/* ---------- Hero slider -------------------------------------------------- */
.hero-slider {
  display: block;
  padding: 0;
  min-height: 100svh;
  overflow: hidden;
}

.hero-slider .hero-slides { position: absolute; inset: 0; z-index: 0; }

.hero-slider .hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s var(--ease), visibility 0.65s;
}

.hero-slider .hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hero-slider .hero-image { z-index: 0; animation: none; }
.hero-slider .hero-grade { z-index: 1; opacity: 0.42; }

.hero-slider .hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(10, 30, 54, 0.96) 0%, rgba(10, 30, 54, 0.55) 32%, rgba(10, 30, 54, 0.05) 66%, rgba(10, 30, 54, 0.4) 100%),
    linear-gradient(100deg, rgba(10, 30, 54, 0.82) 0%, rgba(10, 30, 54, 0.12) 58%, rgba(10, 30, 54, 0) 78%);
}

.hero-slider .hero-content {
  position: relative;
  z-index: 3;
  padding-top: calc(var(--header-h) + 6vh);
  padding-bottom: clamp(140px, 19vh, 200px);
}

.hero-slider .hero h1,
.hero-slider .hero-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.5rem, 6.4vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.026em;
  max-width: 16ch;
  color: var(--white);
}

.hero-slider .hero h1 em,
.hero-slider .hero-title em { color: var(--sky-pale); font-style: italic; }

.hero-slider .hero-content > p {
  max-width: 46ch;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.98rem, 0.5vw + 0.9rem, 1.1rem);
}

.hero-slider .hero .actions { margin-top: 28px; }

.hero-slider .hero-stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  margin: 0;
  padding-bottom: 6px;
}

.hero-controls {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(150px, 18vh, 200px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(10, 30, 54, 0.28);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.9rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.hero-arrow:hover { background: var(--sky); color: var(--navy); border-color: var(--sky); }

.hero-dots { display: flex; align-items: center; gap: 4px; }

.hero-dot {
  width: 20px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  padding: 0;
}

.hero-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  transition: width 0.35s var(--ease), background 0.35s;
}

.hero-dot.is-active::before { width: 20px; background: var(--sky); }

.hero-count {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  gap: 4px;
}

.hero-count b { color: var(--white); font-weight: 500; }
.hero-count i { font-style: normal; opacity: 0.55; }

.hero-pause {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
}

.hero-pause:hover { border-color: var(--sky); color: var(--sky); }

.hero-slide .hero-content > * { opacity: 0; transform: translateY(16px); }
.hero-slide.is-active .hero-content > * { animation: slide-up 0.9s var(--ease) forwards; }
.hero-slide.is-active .hero-content > *:nth-child(1) { animation-delay: 0.06s; }
.hero-slide.is-active .hero-content > *:nth-child(2) { animation-delay: 0.14s; }
.hero-slide.is-active .hero-content > *:nth-child(3) { animation-delay: 0.24s; }
.hero-slide.is-active .hero-content > *:nth-child(4) { animation-delay: 0.34s; }

@keyframes slide-up { to { opacity: 1; transform: none; } }

/* Neutralise the single-hero entrance rules inside the slider. */
.hero-slider .eyebrow,
.hero-slider .hero-content > p,
.hero-slider .actions { animation: none !important; }
.hero-slider .hero-stats { animation: none !important; opacity: 1; }
.hero-slider h1 .line { overflow: visible; }
.hero-slider h1 .line > span { animation: none !important; transform: none; }

@media (max-width: 860px) {
  .hero-slider .hero-content { padding-top: calc(var(--header-h) + 8vh); padding-bottom: 250px; }

  .hero-slider .hero h1,
  .hero-slider .hero-title { font-size: clamp(2rem, 8.6vw, 3rem); }

  .hero-controls {
    top: auto;
    bottom: 200px;
    left: var(--gutter);
    right: auto;
    gap: 8px;
  }

  .hero-arrow,
  .hero-pause { display: none; }

  .hero-count { margin-left: 8px; }
}
