body[data-page] {
  --footer-surface: #192b35;
  --footer-fade-height: clamp(4rem, 8vw, 7rem);
}

/* Fade the page photograph into the same color as the footer. */
body[data-page] main#top:has(+ #site-footer)::after {
  content: "";
  display: block;
  block-size: var(--footer-fade-height);
  background: linear-gradient(to bottom, transparent, var(--footer-surface));
  pointer-events: none;
}
body[data-page] main#top:has(+ #site-footer) > .callback-card {
  margin-block-end: clamp(1.25rem, 3vw, 2.5rem);
}
html:root body #site-footer {
  position: relative;
  background: var(--footer-surface);
  scroll-margin-block-start: calc(5.5rem + var(--footer-fade-height));
  color: #f2f6f8;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 30px;
  border: 0;
  text-align: left;
}
.foot-inner{width:min(1296px,92%);margin:auto}
.foot-info{display:grid;grid-template-columns:1fr 1fr 1fr;gap:clamp(20px,4vw,64px);padding-bottom:34px}
.harbor-footer .foot-brand{font-size:clamp(26px,3vw,40px);font-weight:650;letter-spacing:-.04em}
.harbor-footer h2{font-size:19px;color:inherit;margin:0 0 12px}
.harbor-footer a{color:inherit;text-decoration:none}
.harbor-footer a:hover,.harbor-footer a:focus-visible{text-decoration:underline;text-underline-offset:.2em}
.harbor-footer :is(p,address){font-style:normal;color:#d6e3e9;margin:5px 0}
.harbor-footer .foot-tel{display:block;font-size:18px;padding:2px 0}
.foot-tel small{font-size:14px;color:#c4d5de}
.harbor-footer .foot-tel:last-of-type{margin-bottom:4px}
.foot-nav,.foot-legal{display:flex;flex-wrap:wrap;gap:8px 24px;border-top:1px solid #435763;padding:16px 0}
.foot-legal a{font-size:14px;color:#c4d5de}
body .cookie-notice:not([hidden]){display:flex;position:fixed;z-index:1000;left:max(16px,env(safe-area-inset-left));bottom:16px;width:min(480px,calc(100% - 32px));box-sizing:border-box;align-items:center;gap:14px;padding:16px 18px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:15px;box-shadow:0 6px 32px #10242e30}
.cookie-notice p{margin:4px 0 0;font-size:14px;line-height:1.4}
.cookie-notice a{text-decoration:underline;color:inherit}
.cookie-notice button{min-height:44px;border:0;border-radius:8px;padding:0 14px;background:var(--accent);color:var(--on-accent);font:inherit;cursor:pointer}
.policy-text{max-width:760px;padding:clamp(20px,4vw,45px);margin:28px auto 64px;border-radius:16px;background:var(--paper);color:var(--ink)}
.policy-text h1{font-size:clamp(29px,4vw,48px);overflow-wrap:anywhere}
.policy-text h2{margin-top:30px;font-size:22px}
.mast-sea .yacht-frame{position:absolute;inset:0;opacity:0;transition:opacity .48s ease-in-out}
.mast-sea .yacht-frame.is-current{opacity:1}
@media(max-width:760px){.foot-info{grid-template-columns:1fr;gap:24px}.harbor-footer .foot-inner{padding-bottom:70px}body .cookie-notice:not([hidden]){bottom:calc(84px + env(safe-area-inset-bottom));align-items:end}.foot-nav,.foot-legal{gap:12px 18px}}
@media(prefers-reduced-motion:reduce){.mast-sea .yacht-frame{transition:none}}
/* Keep the service copy in one quiet group and leave the hull visible below. */
body #top .mast{display:block;min-height:clamp(450px,65svh,650px)}
#top .mast .mast-copy{position:relative;margin:0 auto;max-width:660px;padding:clamp(28px,4.6vh,60px) 22px 0;text-align:center}
#top .mast-copy h1{font-size:clamp(31px,3.1vw,48px);font-weight:var(--title-weight);letter-spacing:var(--title-tracking);line-height:1.08;margin:0 0 12px}
#top .mast-copy h1 br{display:none}
#top .mast-copy .intro{margin:auto;font-size:clamp(14px,1.1vw,16px);max-width:41ch;line-height:1.45}
.mast-copy .actions{justify-content:center;gap:16px;margin-top:17px;font-size:14px}
.mast-copy .actions a:first-child{min-height:44px;padding:10px 16px}
#top .mast::after{background:linear-gradient(180deg,#0b1b29c9,rgba(12,27,40,.62) 23%,transparent 52%,transparent)}
#top .work h2{font-size:clamp(25px,2.6vw,39px)}
#top .jobs h3{font-size:clamp(19px,1.65vw,26px)}
body.inner-page #top .mp-hero h1{font-size:clamp(32px,3.65vw,54px);line-height:1.08}
@media(max-width:700px){
  body #top .mast{min-height:clamp(440px,65svh,555px)}
  .mast .mast-sea{height:100%;mask-image:none}
  .mast .mast-sea img{object-position:center}
  .mast-copy .actions{gap:6px 14px}
  #top .mast-copy h1{font-size:clamp(29px,7.6vw,36px)}
  #top .mast .mast-copy{padding-inline:16px}
  #top .mast::after{background:linear-gradient(180deg,#0d1c28de,rgba(10,26,38,.66) 29%,rgba(12,27,40,.06) 51%,transparent 63%)}
}
.eq-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding-bottom:54px;align-items:start}
.eq-group{background:var(--paper);border-radius:16px;overflow:hidden}
.eq-group img{width:100%;aspect-ratio:3/2;height:auto;display:block;object-fit:cover}
.eq-group>div{padding:clamp(16px,2vw,28px)}.eq-group h2{font-size:clamp(21px,2vw,29px);margin:0 0 14px}
.eq-group ul{list-style:none;padding:0;margin:0}.eq-group li{border-top:1px solid var(--line);padding:12px 0}
.eq-group li a{color:var(--ink);font-weight:600;text-decoration:none;display:flex;justify-content:space-between;gap:8px}
.eq-group li a:hover{text-decoration:underline}.eq-group li p{font-size:14px;line-height:1.45;color:var(--muted);margin:5px 0}
@media(max-width:850px){.eq-grid{grid-template-columns:1fr}}
html:root body #site-footer :is(a,h2){color:#f2f6f8}
html:root body #site-footer .foot-legal a{color:#c4d5de}
html:root body #site-footer .foot-nav{position:static;display:flex;flex-flow:row wrap;align-items:center;background:transparent}
html:root body #site-footer .foot-nav a{width:auto;border:0;min-height:36px;display:inline-flex;align-items:center;padding:2px 0}

/* Shared light and dark chrome, with solid surfaces as a fallback. */
html:root body .header-row .brand > span {
  font-family: var(--editorial-face, 'Golos Text', Arial, sans-serif);
  font-size: clamp(18px, 1.65vw, 25px);
  font-weight: 600;
  letter-spacing: var(--text-tracking);
  color: color-mix(in srgb, var(--ink) 82%, var(--accent));
  white-space: nowrap;
}
html:root body[data-page] > header,
html:root body .mobile-bar {
  background: var(--paper);
  border-color: color-mix(in srgb, var(--ink) 17%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 3px 15px rgba(10,30,45,.07);
}
html:root body .mobile-bar {
  inset-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right));
  bottom: max(8px, env(safe-area-inset-bottom));
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 32px;
}
html:root body .mobile-bar .button {
  box-sizing: border-box;
  min-width: 0;
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.33);
}
html:root body .mobile-bar .button.primary {
  color: var(--on-accent);
  background: linear-gradient(165deg,rgba(255,255,255,.12),transparent 65%),var(--accent);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html:root body[data-page] > header {
    background: color-mix(in srgb, var(--paper) 58%, transparent);
    -webkit-backdrop-filter: blur(9px) saturate(120%);
    backdrop-filter: blur(9px) saturate(120%);
  }
  html:root body .mobile-bar {
    background: linear-gradient(165deg,rgba(255,255,255,.09),transparent 52%),color-mix(in srgb,var(--paper) 76%,transparent);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    backdrop-filter: blur(16px) saturate(135%);
  }
}
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  html:root body[data-page] > header, html:root body .mobile-bar {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* The transparent emblem has a silver hull and ice-blue cabin on graphite. */
html[data-site-theme="dark"] .header-row .brand-logo {
  filter: invert(1) hue-rotate(170deg) saturate(1.3);
}
@media (prefers-color-scheme: dark) {
  html:not([data-site-theme="light"]) .header-row .brand-logo {
    filter: invert(1) hue-rotate(170deg) saturate(1.3);
  }
}

@media (max-width: 1100px) {
  html:root body header .header-row { position: relative; flex-wrap: nowrap; }
  html:root body header .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    min-inline-size: 6.4rem; min-block-size: 44px; padding: 0 .7rem;
    background: #243741; color: #edf5f8; border: 1px solid #617986; border-radius: 2rem;
  }
  html:root body header .menu-toggle::before {
    content: ""; inline-size: 15px; block-size: 11px; flex: none;
    background: linear-gradient(currentColor,currentColor) center top / 100% 1.5px no-repeat,
                linear-gradient(currentColor,currentColor) center / 100% 1.5px no-repeat,
                linear-gradient(currentColor,currentColor) center bottom / 100% 1.5px no-repeat;
  }
  html:root body header .menu-toggle[aria-expanded="true"]::before {
    background: linear-gradient(45deg,transparent 45%,currentColor 46% 54%,transparent 55%),
                linear-gradient(-45deg,transparent 45%,currentColor 46% 54%,transparent 55%);
    inline-size: 13px; block-size: 13px;
  }
  @media (max-width: 360px) {
    html:root body header .header-row { gap: 4px; }
    html:root body header .theme-toggle { width: 44px; min-width: 44px; padding-inline: 0; }
  }
  body header #main-nav {
    position: absolute;
    inset: calc(100% + 6px) 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px 15px;
    background: #172b36; color: #edf5f8;
    border: 1px solid #587281; border-radius: 16px;
    box-shadow: 0 8px 18px rgba(10,30,45,.12);
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: transform 180ms ease-out, opacity 180ms ease-out, visibility 0s 180ms;
  }
  body header #main-nav.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
    transition-duration: 250ms, 250ms, 0s;
    transition-delay: 0s;
  }
  body header #main-nav a {
    display: flex; align-items: center; min-height: 45px; padding: 6px 0;
    border-bottom: 1px solid #52636d; color: inherit;
  }
  body header #main-nav a[aria-current] { color: #bbdef1; }
  body header #main-nav a:last-child { border-bottom: 0; }
}
/* Give the header and dropdown separate glass surfaces so each blurs the page behind it. */
@media (max-width: 1100px) and (prefers-reduced-transparency: no-preference) and (forced-colors: none) {
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    html:root body[data-page] > header {
      background: transparent;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
    html:root body[data-page] > header::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: color-mix(in srgb, var(--paper) 58%, transparent);
      -webkit-backdrop-filter: blur(9px) saturate(120%);
      backdrop-filter: blur(9px) saturate(120%);
    }
    body header #main-nav {
      background: rgba(26,44,55,.88);
      -webkit-backdrop-filter: blur(15px);
      backdrop-filter: blur(15px);
      box-shadow: inset 0 1px rgba(255,255,255,.25), 0 8px 18px rgba(10,30,45,.12);
    }
  }
}
@media (max-width: 1100px) and (prefers-reduced-motion: reduce) {
  body header #main-nav, body header #main-nav.is-open {
    transform: none;
    transition: none;
  }
}
