:root {
  color-scheme: light;
  --paper: #f5f7f6;
  --navy: #142d3a;
  --grey: #60747b;
  --blue: #cee2e8;
  --deck: #0879b0;
  --red: #9e2534;
  --rule: #c1d3d8;
  --gutter: clamp(24px, 4.5vw, 80px);
  font-family: 'Manrope', sans-serif;
  color: var(--navy);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; }
a, button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 6px; }
/* Red on navy is too faint to see. */
.site-header a:focus-visible { outline-color: white; }
button { font: inherit; }
img { display: block; width: 100%; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 14px 20px; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.section-shell, .site-header, .hero { max-width: 1680px; margin: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.site-header { max-width: none; min-height: 96px; padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 32px; background: #142d3a; color: white; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; font-size: 17px; font-weight: 800; letter-spacing: -.5px; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand small { display: block; margin-top: 4px; color: #bdd3dc; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.hero { max-width: none; position: relative; isolation: isolate; overflow: hidden; min-height: min(800px, 90svh); padding-top: 88px; padding-bottom: 88px; display: flex; align-items: center; background: var(--navy); color: white; }
.hero-copy { position: relative; z-index: 2; padding: 20px 0; max-width: 900px; }
h1 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(72px, 8vw, 128px); line-height: 1.02; font-weight: 600; letter-spacing: -.025em; }
h1 > span { display: block; white-space: nowrap; }
.hero-copy > p { margin-top: 32px; max-width: 410px; font-size: 16px; line-height: 1.8; color: #e1edf1; }
.hero-photo { position: absolute; inset: 0; z-index: 0; background: var(--navy); overflow: hidden; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,30,42,.94) 0%, rgba(9,30,42,.82) 32%, rgba(9,30,42,.28) 65%, rgba(9,30,42,.08) 100%); }
.hero-photo img { height: 100%; object-fit: cover; object-position: 65% 58%; }
.competition-strip { background: var(--blue); border-top: 3px solid var(--deck); padding-top: 24px; padding-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; }
.competition-strip p { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.competition-strip strong { font-weight: 800; }
.competition-strip p > span { padding-left: 24px; border-left: 1px solid #9cbac4; }
.competition-strip > a { display: inline-flex; gap: 16px; align-items: center; min-height: 44px; flex-shrink: 0; text-decoration: none; }
.competition-strip > a:hover { text-decoration: underline; }
h2 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(44px, 5vw, 76px); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.work-section { padding-top: 88px; padding-bottom: 60px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 40px; }
.engineering-story { display: grid; grid-template-columns: 1.18fr 1fr; align-items: center; gap: clamp(40px, 7vw, 112px); padding: 32px 0; }
.inline-engineering-photo img { height: auto; background: var(--blue); }
[data-system="boat"] .inline-engineering-photo img { aspect-ratio: 960 / 723; max-width: 960px; }
.engineering-stage, .stage-progress { display: none; }
.stage-photos { position: relative; height: 100%; }
.stage-frame { position: absolute; inset: 0; display: grid; align-items: center; opacity: 0; visibility: hidden; transition: opacity 220ms ease, visibility 0s linear 220ms; }
.stage-frame.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.story-copy { max-width: 450px; }
h3 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(38px, 3.8vw, 56px); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; }
.story-copy > p { font-size: 15px; line-height: 1.9; color: var(--grey); margin-top: 24px; }
.header-contact { display: inline-flex; align-items: center; min-height: 44px; color: white; font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.header-contact:hover { text-decoration: underline; }
.header-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 32px); }
.header-contact[aria-current="page"], .header-contact[aria-current="true"] { border-bottom-color: white; }
.team-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button.button-secondary { background: transparent; border: 1px solid var(--navy); color: var(--navy); }
.button.button-secondary:hover { background: var(--navy); color: white; }
.team-section { background: var(--blue); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; padding-top: 64px; padding-bottom: 64px; }
.team-photo img { aspect-ratio: 1.5; object-fit: cover; object-position: center 62%; }
.team-copy h2 { font-size: clamp(48px, 5.3vw, 78px); }
.team-copy > p { font-size: 14px; line-height: 1.9; max-width: 380px; margin-top: 24px; color: #465f69; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 34px; background: var(--red); color: white; padding: 18px 24px; font-size: 14px; font-weight: 600; text-decoration: none; min-height: 54px; }
.button:hover { background: #7e1d2a; }
@media (min-width: 1000px) {
  .scroll-ready .hero-photo img { transform: translateY(var(--hero-pan, 0px)) scale(var(--hero-scale, 1.04)); }
  .engineering-story { padding: 48px 0; }
  .engineering-story + .engineering-story { border-top: 1px solid var(--rule); }
  .story-copy { border-left: 2px solid var(--deck); padding-left: 24px; }
  .scroll-ready .engineering-layout { display: grid; grid-template-columns: 1.18fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
  .scroll-ready .engineering-stage { display: block; position: sticky; top: max(32px, calc((100svh - min(540px, 70svh)) / 2)); height: min(540px, 70svh); }
  .stage-frame img { height: 100%; max-height: calc(100% - 32px); object-fit: contain; }
  .scroll-ready .engineering-story { display: flex; align-items: center; min-height: clamp(380px, 68svh, 640px); padding: 48px 0; border: 0; }
  .scroll-ready .inline-engineering-photo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 1100px) {
  .hero { column-gap: 32px; }
  .competition-strip { align-items: start; }
  .competition-strip p { gap: 12px 16px; }
  .competition-strip p > span { padding-left: 16px; }
  .competition-strip > a { font-size: 13px; }
  .section-heading { align-items: start; }
}
@media (max-width: 760px) {
  :root { --gutter: clamp(18px, 6vw, 32px); }
  html { scroll-padding-top: 20px; }
  .site-header { flex-wrap: wrap; min-height: 72px; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .brand { font-size: 15px; gap: 10px; }
  .brand img { width: 44px; height: 44px; }
  .brand small { font-size: 11px; }
  .hero { min-height: clamp(380px, 63svh, 600px); align-items: end; padding-top: 96px; padding-bottom: clamp(24px, 6svh, 48px); }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(38px, 13vw, 86px); }
  h1 > span { white-space: normal; }
  .hero-copy > p { font-size: 15px; line-height: 1.65; margin-top: 16px; max-width: 410px; }
  .hero-photo img { object-position: 72% 56%; }
  .hero-photo::after { background: linear-gradient(0deg, rgba(9,30,42,.98), rgba(9,30,42,.78) 34%, rgba(9,30,42,.12) 74%); }
  .competition-strip { display: block; padding-top: 18px; padding-bottom: 6px; }
  .competition-strip p { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 8px 16px; }
  .competition-strip p > span { border: 0; padding: 0; }
  .competition-strip > a { min-height: 44px; margin-top: 4px; font-size: 14px; }
  .work-section { padding-top: 40px; padding-bottom: 36px; }
  .section-heading { display: block; margin-bottom: 20px; }
  h2 { font-size: 38px; }
  .engineering-story { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 0; }
  .engineering-story + .engineering-story { border-top: 1px solid var(--rule); margin-top: 28px; padding-top: 28px; }
  h3 { font-size: 34px; }
  .story-copy { display: contents; }
  .story-copy > h3 { order: -1; }
  .story-copy > p { font-size: 15px; line-height: 1.65; margin: 0; }
  .team-section { display: flex; flex-direction: column; align-items: stretch; gap: 30px; padding-top: 32px; padding-bottom: 40px; }
  .team-photo img { aspect-ratio: 1.2; }
  .team-copy h2 { font-size: 54px; }
  .team-copy > p { margin-top: 18px; }
  .team-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
  .team-actions .button { justify-content: space-between; gap: 12px; }
}
/* Logo only on the smallest phones, so the menu fits beside it; the link keeps its aria-label. */
@media (max-width: 359px) {
  .brand > span { display: none; }
}
@media (max-width: 760px) and (min-height: 540px) {
  .scroll-ready .engineering-layout {
    --panel-height: min(82svh, 640px);
    --chapter-travel: clamp(210px, 42svh, 340px);
    min-height: calc(var(--panel-height) + 3 * var(--chapter-travel));
  }
  .scroll-ready .engineering-stories {
    display: grid;
    align-content: center;
    gap: 18px;
    position: sticky;
    top: 0;
    min-height: var(--panel-height);
    padding-block: 20px;
  }
  .scroll-ready .engineering-story {
    grid-area: 1 / 1;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
  }
  .scroll-ready .engineering-story.is-current { opacity: 1; pointer-events: auto; }
  /* Keep findable hidden chapters in the sticky grid instead of display: none. */
  .scroll-ready .engineering-story[hidden="until-found"] { display: flex !important; }
  .scroll-ready .inline-engineering-photo img {
    height: min(34svh, 62vw, 320px);
    border-radius: 6px;
    object-fit: cover;
  }
  .scroll-ready [data-system="boat"] .inline-engineering-photo img { object-position: center 56%; }
  .scroll-ready .stage-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .stage-progress span { height: 3px; border-radius: 2px; background: var(--rule); }
  [data-active="boat"] .stage-progress span:nth-child(1),
  [data-active="mount"] .stage-progress span:nth-child(2),
  [data-active="foil"] .stage-progress span:nth-child(3) { background: var(--deck); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-ready .hero-photo img { transform: none; }
  .stage-frame { transition: none; }
}
