/* Marina Brokerage final: one site, light by default, dark by the toggle (site-plan 3.1, 8.A).
   The server writes <html data-theme="light|dark">; every mode-specific rule hangs off it. */
:root {
  color-scheme: light;
  --ink: #F5F3EE;   --deck: #ECE8E0;  --hull: #FBFAF7;      /* grounds */
  --mist: #0E1B24;  --muted: #4F6170;                        /* text */
  --edge: #6B7D8A;  --rule: #D9D3C8;                         /* control borders, hairlines */
  --flare: #9E4309;                                          /* errors, Sold, Sale pending */
  --accent: #178DB9;                                         /* brand blue, never adjusted */
  --on-accent: #FFFFFF;                                      /* text on a blue fill: 3.8:1, Tim Q23 "just change the text to white" */
  --accent-hover-bg: #000000; --accent-hover-fg: #FFFFFF;    /* primary hover, 21:1 */
  --link-text: var(--mist);  --link-line: var(--accent);     /* links in sentences, A2 */
  --link-strong: var(--accent);                              /* standalone links, 19px 700 only */
  --head-bg: #FFFFFF; --head-fg: #0E1B24;                    /* logo ground: brand white */
  --toggle-hover: var(--deck);
  --wash: rgba(0, 0, 0, .55);                                /* brand tiles */
  --pill-quiet-edge: var(--mist);
  --scrim: 245, 243, 238;                                    /* the ground, for see-through panels */

  /* STAND-IN: Archivo for Helvetica Neue (Q5); only these two tokens change when the files arrive */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;

  /* type scale (round 2, S1): seven sizes; body 400/700, display 700 */
  --fs-13: 13px; --fs-15: 15px; --fs-17: 17px; --fs-20: 20px; --fs-26: 26px; --fs-34: 34px; --fs-48: 48px;

  --col: 1200px;
  --measure: 640px;
  --gutter: 16px;
  --band: var(--s8);
  --header-h: 68px;
}
[data-theme="dark"], .viewer {
  color-scheme: dark;
  --ink: #0A141C;   --deck: #101E29;  --hull: #172835;
  --mist: #E8EDF0;  --muted: #9FB0BC;
  --edge: #5B7385;  --rule: #22323F;
  --flare: #F2A65A;
  --accent-hover-bg: #FFFFFF; --accent-hover-fg: #000000;
  --head-bg: #000000; --head-fg: #E8EDF0;                    /* logo ground: brand black */
  --toggle-hover: #1B2A36;
  --pill-quiet-edge: var(--edge);
  --scrim: 10, 20, 28;
}
@media (min-width: 900px) {
  :root { --gutter: 32px; --band: var(--s9); --header-h: 128px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + var(--s4)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--mist);
  font: 400 var(--fs-17)/1.6 var(--font-body);
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; display: block; }
.wrap { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.invert { filter: brightness(0) invert(1); opacity: .92; }
/* light: every brand logo in one dark colour, as dark mode shows them all in white (the light
   site's rule); the client's own mark stays in full colour */
[data-theme="light"] .invert { filter: brightness(0); opacity: .85; }
[data-theme="light"] .logo img, [data-theme="light"] .hero__logo { filter: brightness(0); opacity: .85; }

/* type (8.A3): display 700, Archivo's width axis at 125%, capitals */
h1, h2, h3, .h2, .h3 {
  font-family: var(--font-display); font-weight: 700; font-stretch: 125%; text-transform: uppercase;
  letter-spacing: .02em; line-height: 1.1; margin: 0 0 var(--s5);
}
h1 { font-size: var(--fs-34); }
h2, .h2 { font-size: var(--fs-26); }
h3, .h3 { font-size: var(--fs-17); letter-spacing: .04em; }
@media (min-width: 900px) {
  h1 { font-size: var(--fs-48); }
  h2, .h2 { font-size: var(--fs-34); }
}
.label {
  font: 400 var(--fs-13)/1.45 var(--font-body); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin: 0 0 var(--s2);
}
p { margin: 0 0 var(--s4); }
.prose p, .story p, .panel__text p, .berths p, .eyachts p { max-width: var(--measure); }
.lede { font-size: var(--fs-20); max-width: 34em; }

/* links (8.A2, Tim Q13 "C"): in a sentence, the text colour with a blue underline */
a { color: var(--link-text); text-decoration: underline 2px var(--link-line); text-underline-offset: 5px; }
a:hover { text-decoration-color: var(--mist); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 5px var(--ink); border-radius: 2px; }
/* a link on its own: blue at 19px bold (large text, 3:1), 2px blue line under, arrow when it goes on */
.more { color: var(--link-strong); font: 700 var(--fs-20)/1.3 var(--font-body); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; display: inline-block; }
.more:hover { color: var(--mist); }
.more::after { content: "\2192"; margin-left: 6px; font-size: 1em; }  /* 6px clear of the label */

.skip { position: absolute; left: var(--s4); top: -100px; background: var(--accent); color: var(--on-accent); padding: var(--s3) var(--s4); z-index: 100; }
.skip:focus { top: var(--s4); }

/* pills (8.A4) */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s5); border-radius: 999px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  font: 700 var(--fs-15)/1 var(--font-body); text-decoration: none; cursor: pointer;
}
.pill:hover { background: var(--accent-hover-bg); border-color: var(--accent-hover-bg); color: var(--accent-hover-fg); }
.pill:active { transform: translateY(1px); }
.pill[disabled], .pill[aria-disabled="true"] { background: var(--hull); border-color: var(--edge); color: var(--muted); cursor: not-allowed; }
.pill--quiet { background: transparent; border-color: var(--pill-quiet-edge); color: var(--mist); }
.pill--quiet:hover { background: var(--hull); border-color: var(--accent); color: var(--mist); }

/* header (8.B1): solid brand white or black, never over a photo or film.
   From 1240px the logo spans two rows: the menu, then the phone and the toggle. */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; gap: var(--s3); padding: 0 var(--gutter);
  background: var(--head-bg); color: var(--head-fg); border-bottom: 1px solid var(--rule);
}
@media (max-width: 389px) { .site-header, .header-tools { gap: var(--s2); } }
[data-theme="light"] .logo-for-dark, [data-theme="dark"] .logo-for-light { display: none; }
.brandmark { display: block; flex: 0 0 auto; margin-right: auto; text-decoration: none; }
/* phones: as wide as fits beside the toggle and Menu, 160px at most (the 68px row caps it),
   about 151px at 320 (@ui-designer's table, 3.2) */
.brandmark img { width: min(160px, calc(100vw - 169px)); height: auto; }
/* the ring goes round the logo, not the link: on wide screens the link fills the header to its top
   edge (the logo's 30px clear space), which cut the ring off */
.brandmark:focus-visible { outline: none; box-shadow: none; }
.brandmark:focus-visible img { outline: 2px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 5px var(--head-bg); border-radius: 2px; }
@media (min-width: 900px) {
  /* 300px logo with 30px clear space all round: 30 + 67 + 30 + the 1px rule = 128 */
  .brandmark img { width: 300px; margin: 30px 30px 30px 0; }
}
.nav > ul { list-style: none; margin: 0; padding: 0; }
.nav a, .nav__heading, .nav__label {
  color: var(--head-fg); text-decoration: none; font: 700 var(--fs-13)/1 var(--font-body);
  text-transform: uppercase; letter-spacing: 0.12em; display: inline-flex; align-items: center; min-height: 44px;
}
/* the one menu line (client note 5, S4): a 2px blue bar at the foot of the 44px box, the same for
   the current page and hover, so hovering the current item changes nothing */
.nav a, .nav__heading { box-shadow: inset 0 -2px 0 transparent; transition: box-shadow var(--quick) linear; }
.nav a[aria-current="page"], .nav a:hover, .nav__heading:hover { box-shadow: inset 0 -2px 0 var(--accent); text-decoration: none; }
.nav__sub a, .nav__sub a:hover { box-shadow: none; }
.nav__sub a:hover { text-decoration: underline 2px var(--accent); text-underline-offset: 5px; }
.nav__group { position: relative; }
.nav__sub {
  position: absolute; top: 100%; left: calc(-1 * var(--s4)); min-width: 220px; list-style: none; margin: 0;
  padding: var(--s3) var(--s4); background: var(--deck); border: 1px solid var(--rule); display: none;
}
.nav__group:hover .nav__sub { display: block; }
.nav__sub a { color: var(--mist); text-transform: none; letter-spacing: 0; font-size: var(--fs-15); font-weight: 400; }
.header-tools { display: flex; align-items: center; gap: var(--s3); }
.header-phone { color: var(--head-fg); text-decoration: none; font: 400 var(--fs-15)/1 var(--font-body); white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.header-phone:hover { text-decoration: underline 2px var(--accent); text-underline-offset: 5px; }
.nav-toggle {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4);
  background: transparent; color: var(--head-fg); border: 1px solid var(--edge); border-radius: 999px; font: 700 var(--fs-15) var(--font-body); cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent); }

/* the toggle (8.B2, Q12 "C"): a 44px round icon button showing the mode it switches to */
.theme { margin: 0; display: flex; }
.theme__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--head-fg); cursor: pointer; transition: background-color 120ms linear; }
.theme__btn:hover { background: var(--toggle-hover); }
.theme__btn:focus-visible { border-radius: 50%; box-shadow: 0 0 0 5px var(--head-bg); }
[data-theme="light"] .theme__icon--sun, [data-theme="dark"] .theme__icon--moon { display: none; }

@media (min-width: 1240px) {
  /* round 2, S4: row 1 the phone and toggle, row 2 the menu just above the photo; the links'
     2px bar sits on the header's edge (margin -1px covers the 1px rule) */
  .site-header { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr 44px; align-content: stretch; column-gap: 0; }
  .brandmark { grid-row: 1 / 3; align-self: center; margin-right: 0; }
  .header-tools { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; gap: var(--s5); }
  .nav { grid-column: 2; grid-row: 2; justify-self: end; align-self: end; margin-bottom: -1px; }
  .nav > ul { display: flex; gap: var(--s5); }  /* 24px: the row fits beside the logo at 1240 with the two arrows (@ui-designer) */
  .nav-toggle, .nav__phone { display: none; }
}
@media (max-width: 1239px) {
  .header-phone { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink); padding: var(--s5) var(--gutter); overflow-y: auto; display: none; }
  .nav.is-open { display: block; }
  .nav > ul > li { border-bottom: 1px solid var(--rule); padding: var(--s2) 0; }
  .nav a, .nav__label { color: var(--mist); }
  /* the menu panel: no bar; the current item and hover underline the text instead */
  .nav a[aria-current="page"], .nav a:hover { box-shadow: none; text-decoration: underline 2px var(--accent); text-underline-offset: 5px; }
  .nav__sub { position: static; display: block; border: 0; padding: 0 0 0 var(--s4); background: transparent; min-width: 0; }
  .nav__phone a { text-transform: none; letter-spacing: 0; font-size: var(--fs-17); }
}

/* hero */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero--brand { min-height: 72vh; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; background:
  linear-gradient(to top, rgba(var(--scrim), .92) 0%, rgba(var(--scrim), .55) 38%, rgba(var(--scrim), 0) 70%),
  linear-gradient(to right, rgba(var(--scrim), .5), rgba(var(--scrim), 0) 60%); }
.hero__text { position: relative; width: 100%; padding-bottom: var(--s8); }
.hero__text h1 { max-width: 16em; }
.hero__logo { height: 44px; width: auto; margin-bottom: var(--s5); }

/* buy / sell */
.goals { display: grid; grid-template-columns: 1fr; background: var(--deck); border-bottom: 1px solid var(--rule); }
@media (min-width: 700px) { .goals { grid-template-columns: 1fr 1fr; } }
.goal {
  display: grid; gap: var(--s1); padding: var(--s6) var(--gutter); text-decoration: none; color: var(--mist);
  border-top: 1px solid var(--rule);
}
@media (min-width: 700px) {
  .goal { padding: var(--s7) max(var(--gutter), calc((100vw - var(--col)) / 2)); border-top: 0; }
  .goal + .goal { border-left: 1px solid var(--rule); padding-left: var(--s7); }
}
.goal__title { font: 700 var(--fs-26)/1.1 var(--font-display); text-transform: uppercase; }
.goal__title::after { content: " \2192"; color: var(--accent); }
.goal__meta { color: var(--muted); }
.goal:hover { background: var(--hull); }
.goal:hover .goal__title { color: var(--mist); }

/* bands */
.band { padding: var(--band) 0; }
.band--tight { padding: var(--s8) 0; }
.band--deck { background: var(--deck); }
.band--list { padding-top: var(--s6); }
.band__head { margin-bottom: var(--s6); }
.band__head p { max-width: var(--measure); }
.band__head--split { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s4); }
.band__head--split h2 { margin: 0; }

/* brand row */
.brandrow { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s6); overflow-x: auto; align-items: center; scrollbar-width: thin; }
.brandrow li { flex: 0 0 auto; }
.brandrow a { display: flex; align-items: center; min-height: 64px; padding: var(--s2); }
.brandrow img { height: 28px; width: auto; max-width: 160px; object-fit: contain; }
.brandrow a:hover img { opacity: 1; }
@media (min-width: 1100px) { .brandrow { justify-content: space-between; overflow: visible; } }

/* cards */
.grid { display: grid; gap: var(--s7) var(--s6); grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card__link { display: block; color: var(--mist); text-decoration: none; }
.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--hull); margin-bottom: var(--s4); border-radius: 2px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__link:hover .card__title { color: var(--mist); }
.card__chips { position: absolute; top: var(--s3); left: var(--s3); display: flex; gap: var(--s2); flex-wrap: wrap; }
.card__chips--inline { position: static; margin-top: var(--s3); }
.chip { background: var(--ink); color: var(--mist); font: 400 var(--fs-13)/1 var(--font-body); letter-spacing: .06em; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--edge); }
.chip--flare { color: var(--flare); border-color: var(--flare); }
.card__title { font: 400 var(--fs-20)/1.25 var(--font-body); letter-spacing: 0; text-transform: none; margin: 0 0 var(--s2); }
.card__meta { display: flex; justify-content: space-between; gap: var(--s4); color: var(--muted); margin: 0; }
.card__price { color: var(--mist); font-weight: 700; white-space: nowrap; }

/* sell panel */
.panel { display: grid; background: var(--deck); overflow: hidden; }
.panel__media { position: relative; z-index: 0; }
.panel__text { position: relative; z-index: 1; background: var(--deck); }
@media (min-width: 900px) { .panel { grid-template-columns: 1.3fr 1fr; min-height: 560px; } }
.panel__media { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.panel__text { padding: var(--s8) var(--gutter); align-self: center; }
@media (min-width: 900px) { .panel__text { padding: var(--s8) var(--s8); } }
.panel__text .pill { margin-top: var(--s4); }

/* berths */
.berths { display: grid; gap: var(--s7); }
@media (min-width: 900px) { .berths { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.berth-table { width: 100%; border-collapse: collapse; }
.berth-table caption { text-align: left; }
.berth-table th, .berth-table td { text-align: left; padding: var(--s4) var(--s3) var(--s4) 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.berth-table thead th { font: 400 var(--fs-13)/1.45 var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.berth-table tbody th { color: var(--mist); }
.berth-table td a { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 699px) {
  .berth-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .berth-table tr { display: grid; grid-template-columns: 1fr auto; padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
  .berth-table th, .berth-table td { border: 0; padding: var(--s1) 0; }
  .berth-table tbody th { grid-column: 1 / -1; }
}

/* testimonial */
.quote blockquote { margin: 0; max-width: 900px; }
.quote blockquote p { font: 400 var(--fs-26)/1.3 var(--font-body); letter-spacing: 0; }
@media (min-width: 900px) { .quote blockquote p { font-size: var(--fs-34); line-height: 1.35; } }
.quote footer { color: var(--muted); }
.quote footer::before { content: "- "; }

/* brokers */
.brokers { display: grid; gap: var(--s7); }
@media (min-width: 700px) { .brokers { grid-template-columns: 1fr 1fr; } }
.broker { display: grid; grid-template-columns: 120px 1fr; gap: var(--s5); align-items: end; }
@media (min-width: 900px) { .broker { grid-template-columns: 180px 1fr; } }
.broker img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.2); border-radius: 2px; background: var(--hull); }
.broker h3 { margin-bottom: var(--s1); }
.phone { font: 400 var(--fs-26)/1.3 var(--font-body); letter-spacing: 0; color: var(--mist); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.phone:hover { text-decoration: underline 2px var(--accent); text-underline-offset: 6px; }
.phone--big { font-size: var(--fs-34); }

/* eyachts */
.eyachts__grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .eyachts__grid { grid-template-columns: 1fr 1.4fr; } }
.eyachts img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 2px; }

/* boats list */
.pagehead { padding-top: var(--s7); padding-bottom: var(--s5); }
.filters { background: var(--deck); border-block: 1px solid var(--rule); }
.filters__row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s3); align-items: center; padding-block: var(--s4); }
@media (min-width: 900px) and (max-width: 1099px) { .filters__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.filters .select select { width: 100%; }
.seg { display: inline-flex; border: 1px solid var(--edge); border-radius: 999px; padding: 3px; margin: 0; }
.seg input { position: absolute; opacity: 0; }
.seg label { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 var(--s4); border-radius: 999px; cursor: pointer; }
.seg label span { color: var(--muted); font-size: var(--fs-13); }
.seg input:checked + label { background: var(--accent); color: var(--on-accent); }
.seg input:checked + label span { color: var(--ink); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.select select {
  min-height: 44px; padding: 0 36px 0 var(--s4); border-radius: 999px; border: 1px solid var(--edge);
  background: var(--hull) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23E8EDF0' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--mist); font: 400 var(--fs-15) var(--font-body); appearance: none;
}
.filters__open { display: none; }
@media (max-width: 899px) {
  .filters__row { display: flex; flex-wrap: wrap; }
  .filters .select { display: none; }
  .filters__open { display: inline-flex; }
  .seg { width: 100%; justify-content: space-between; }
}
/* the Sort row above #results (round 2, S7): the note left, Sort by right */
.results-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s3) var(--s5); min-height: 44px; margin: var(--s6) auto var(--s6); }
.results-row:has(+ #results .active-filters) { margin-bottom: var(--s4); }
.results-row:has(+ #results[aria-busy="true"]) { opacity: .5; transition: opacity var(--quick) linear; }
.results { margin: 0; color: var(--muted); font: 400 var(--fs-17)/1.6 var(--font-body); }
.sort { display: inline-flex; align-items: center; gap: var(--s3); margin-left: auto; }
.sort__label { font: 700 var(--fs-15)/1 var(--font-body); color: var(--mist); }
.band--results { padding-top: 0; }
@media (max-width: 699px) {
  .results-row { flex-direction: column; align-items: stretch; }
  .sort { margin-left: 0; display: flex; }
  .sort select { flex: 1; min-width: 0; }
}
.pager { text-align: center; margin-top: var(--s8); }

/* boat */
.boat-hero { position: relative; aspect-ratio: 16 / 9; max-height: 78vh; width: 100%; overflow: hidden; background: var(--hull); }
.boat-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.boat-hero__all { position: absolute; right: var(--gutter); bottom: var(--s5); background: rgba(var(--scrim), .85); }
.boat-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s4); padding-top: var(--s7); padding-bottom: var(--s6); border-bottom: 1px solid var(--rule); }
.boat-title h1 { margin: 0 0 var(--s2); }
.boat-price { font: 700 var(--fs-26)/1.1 var(--font-display); letter-spacing: .06em; margin: 0; }
.boat-body { display: grid; gap: var(--s8); padding-top: var(--s7); padding-bottom: var(--s8); }
@media (min-width: 1000px) { .boat-body { grid-template-columns: minmax(0, 1fr) 380px; } }
.boat-main > .label { margin-top: var(--s7); margin-bottom: var(--s4); }
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
@media (min-width: 700px) { .thumbs { grid-template-columns: repeat(6, 1fr); } }
.thumbs img { aspect-ratio: 3 / 2; height: auto; object-fit: cover; width: 100%; border-radius: 2px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--s5); margin: 0; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts div { border-top: 1px solid var(--rule); padding: var(--s3) 0; }
.facts dt { font: 400 var(--fs-13)/1.45 var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.facts dd { margin: var(--s1) 0 0; font-size: var(--fs-20); }
.specs details { border-top: 1px solid var(--rule); }
.specs details:last-child { border-bottom: 1px solid var(--rule); }
.specs summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; gap: var(--s3); list-style: none; }
.specs summary::after { margin-left: auto; }
.specs summary::-webkit-details-marker { display: none; }
.specs summary::after { content: "+"; color: var(--accent); font-size: var(--fs-20); }
.specs details[open] summary::after { content: "\2212"; }
.specs ul { columns: 2 220px; margin: 0 0 var(--s5); padding-left: 18px; color: var(--muted); }
.broker-panel { background: var(--deck); padding: var(--s6); align-self: start; border-radius: 2px; }
@media (min-width: 1000px) { .broker-panel { position: sticky; top: calc(var(--header-h) + var(--s5)); } }
.broker-panel__who { display: grid; grid-template-columns: 72px 1fr; gap: var(--s4); align-items: center; }
.broker-panel__who img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; background: var(--hull); }
.broker-panel__who p { margin: 0; }
.broker-panel__name { font-size: var(--fs-20); font-weight: 700; }
.broker-panel .phone { margin: var(--s4) 0 var(--s5); }
.callbar { display: none; }
@media (max-width: 999px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); position: sticky; bottom: 0; z-index: 30; padding: var(--s3) var(--gutter); background: var(--deck); border-top: 1px solid var(--rule); }
}

/* forms */
.form { display: grid; gap: var(--s4); }
.field label { display: block; margin-bottom: var(--s2); font-weight: 700; }
.field .opt { color: var(--muted); font-weight: 400; font-size: var(--fs-15); }
.field input, .field textarea {
  width: 100%; min-height: 44px; padding: var(--s3) var(--s4); background: var(--hull); color: var(--mist);
  border: 1px solid var(--edge); border-radius: 2px; font: inherit;
}
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--accent); }
.field--error input, .field--error textarea { border-color: var(--flare); }
.field__error { color: var(--flare); margin-top: var(--s2); display: flex; gap: var(--s2); }
.field__error::before { content: "!"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--flare); font-weight: 700; font-size: var(--fs-13); flex: 0 0 auto; }

/* brand */
.story { display: grid; gap: var(--s5); }
.story__note { font-size: var(--fs-15); }
.series + .series { margin-top: var(--s7); }
.range { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.range a {
  display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s5); align-items: center;
  padding: var(--s3) 0; border-bottom: 1px solid var(--rule); color: var(--mist); text-decoration: none; min-height: 72px;
}
@media (min-width: 900px) { .range a { grid-template-columns: 180px 1fr auto; } }
.range img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.range__name { font: 700 var(--fs-20)/1.1 var(--font-display); text-transform: uppercase; }
@media (min-width: 900px) { .range__name { font-size: var(--fs-26); } }
.range__meta { color: var(--muted); white-space: nowrap; }
.range a:hover .range__name { color: var(--mist); }

/* footer */
.site-footer { background: var(--head-bg); border-top: 1px solid var(--rule); padding: var(--s8) 0 var(--s7); color: var(--muted); font-size: var(--fs-15); }
.footer-grid { display: grid; gap: var(--s7) var(--s6); }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: minmax(300px, 1.3fr) 3fr; } }
@media (min-width: 700px) and (max-width: 1099px) { .footer-contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); } }
.footer-logo { display: block; margin-bottom: var(--s5); }
/* the guidelines' 300px with 30px clear space; narrower only on phones (Q3) */
.footer-logo img { width: min(300px, 100%); height: auto; margin-bottom: 30px; }
.site-footer address { font-style: normal; margin-bottom: var(--s4); }
.site-footer a { color: var(--mist); }
.powered-by { margin: 0; font-size: var(--fs-13); }
.powered-by a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
.powered-by img { height: 18px; width: auto; }
.plain { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.plain li { min-height: 32px; }
.social a { margin-right: var(--s4); }
.badge img { width: 120px; margin-bottom: var(--s3); border-radius: 2px; }

/* ---------------------------------------------------------------- motion
   Slow and even: one easing, long enough to feel like water, short enough to never hold
   anyone up. Only transform, opacity and clip-path move, so nothing shifts the layout.
   Hidden starting states apply only with JavaScript on (.js) and motion allowed. */
:root { --ease: cubic-bezier(.22, .61, .36, 1); --slow: 1100ms; --mid: 700ms; --quick: 280ms; }

/* header hides going down, returns going up */
.site-header { transition: transform var(--mid) var(--ease), background-color var(--quick) linear, border-color var(--quick) linear; }
.site-header.is-hidden { transform: translateY(-100%); }

/* menus */
@media (min-width: 1240px) {
  .nav__sub { display: block; opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity var(--quick) var(--ease), transform var(--quick) var(--ease), visibility 0s linear var(--quick); }
  .nav__group:hover .nav__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
@media (max-width: 1239px) {
  .js .nav { display: block; opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity var(--quick) var(--ease), transform var(--mid) var(--ease), visibility 0s linear var(--mid); }
  .js .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}

/* hero: the picture settles slowly, the words rise after it */
.hero__media, .panel__media, .boat-hero__img { transform: translate3d(0, var(--drift, 0px), 0) scale(1.08); will-change: transform; }
.panel__media { transform: translate3d(0, var(--drift, 0px), 0) scale(1.18); }
.js .hero__media:not(.hero__video) { animation: settle 9s var(--ease) both; }
@keyframes settle { from { transform: translate3d(0, 0, 0) scale(1.16); } to { transform: translate3d(0, var(--drift, 0px), 0) scale(1.08); } }
/* a film in its own frame (home, both modes; brand pages, light; every hero on a phone) stays
   still: zoomed or drifting, it showed below the frame */
.is-home .hero .hero__media, [data-theme="light"] .hero--brand .hero__media { transform: none; animation: none; }
@media (max-width: 699px) { .js .hero .hero__media { transform: none; animation: none; } }
.js .hero__text > * { transform: translateY(14px); transition: transform var(--slow) var(--ease); }
.js.is-ready .hero__text > * { transform: none; }

/* reveal: text lifts in; groups follow one another */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.js .reveal--stagger { transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* wipe: a photo is uncovered from the waterline up, like light coming over the sea */
.js .wipe { clip-path: inset(100% 0 0 0); transition: clip-path 1300ms var(--ease); }
.js .wipe.is-in { clip-path: inset(0 0 0 0); }
.js .card.reveal .card__media { transition-delay: calc(var(--i, 0) * 90ms); }

/* cards: the photo leans in, the title catches the accent, a line draws under it */
.card__media img { transition: transform 900ms var(--ease); }
.card__link:hover .card__media img, .card__link:focus-visible .card__media img { transform: scale(1.06) translateY(-1.5%); }
.card__title { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 1px; padding-bottom: 2px; display: inline;
  transition: background-size var(--mid) var(--ease), color var(--quick) linear; }
.card__link:hover .card__title, .card__link:focus-visible .card__title { background-size: 100% 1px; }
.card__title + * { margin-top: var(--s2); }

/* buy / sell: the arrow travels */
.goal__title::after { display: inline-block; transition: transform var(--mid) var(--ease); }
.goal:hover .goal__title::after, .goal:focus-visible .goal__title::after { transform: translateX(8px); }
.goal { transition: background-color var(--mid) var(--ease); }

/* range rows: the model name moves toward its picture's side on hover */
.range__name { transition: transform var(--mid) var(--ease), color var(--quick) linear; }
.range img { transition: transform var(--slow) var(--ease); }
.range a:hover .range__name, .range a:focus-visible .range__name { transform: translateX(10px); }
.range a:hover img, .range a:focus-visible img { transform: scale(1.05); }
.range li { overflow: hidden; }

/* links with arrows */
.more::after { display: inline-block; transition: transform var(--quick) var(--ease); }
.more:hover::after, .more:focus-visible::after { transform: translateX(4px); }

/* brand logos brighten on hover */
.brandrow img { transition: opacity var(--quick) linear, transform var(--mid) var(--ease); opacity: .72; }
.brandrow a:hover img, .brandrow a:focus-visible img { opacity: 1; transform: translateY(-2px); }

/* gallery thumbnails (boat and model pages): each opens the viewer, never the hero */
.thumb { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; position: relative; border-radius: 2px; overflow: hidden; }
.thumb img { transition: transform var(--mid) var(--ease); }
.thumb:hover img { transform: scale(1.06); }
.thumb:hover::after, .thumb:focus-visible::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--accent); border-radius: 2px; }

/* the list's filter pills slide their selection */
.seg label { transition: background-color var(--quick) var(--ease), color var(--quick) linear; }
.pill { transition: background-color var(--quick) linear, border-color var(--quick) linear, transform 120ms var(--ease); }

.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
.still .reveal, .still .hero__text > * { opacity: 1 !important; transform: none !important; }
.still .wipe { clip-path: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .hero__text > * { opacity: 1; transform: none; }
  .hero__video { opacity: 1; }
  .js .clamp { max-height: none; -webkit-mask-image: none; mask-image: none; }
  .js .wipe { clip-path: none; }
  .hero__media, .panel__media, .boat-hero__img { transform: none; }
  .site-header.is-hidden { transform: none; }
}

/* hero loop over its poster; the poster shows while paused or before it plays */
.hero__video { opacity: 0; transition: opacity 1400ms var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero__video.is-paused { opacity: 0; }

/* ---------------------------------------------------------------- round 2 */

/* phone hero: the film gets its own frame, centred on the boat, and the words sit below it */
@media (max-width: 699px) {
  .hero { display: block; min-height: 0; }
  .hero__media { position: absolute; top: 0; left: 0; right: 0; height: 62vh; bottom: auto; object-position: var(--focus, 42% 72%); }
  .hero::before { content: ""; display: block; height: 62vh; }
  .hero__scrim { top: 0; height: 62vh; bottom: auto; background: linear-gradient(to top, rgba(var(--scrim), .9), rgba(var(--scrim), 0) 35%); }
  .hero__text { padding-top: var(--s5); padding-bottom: var(--s7); background: var(--ink); }
  .hero--brand .hero__text { padding-top: var(--s6); }
}

/* brand logos sized by eye to a common visual weight, not one box height */
.brandrow { align-items: center; }
.logo img { height: var(--h, 28px); max-width: none; }
.logo--axopar { --h: 18px; }
.logo--brabus-marine { --h: 40px; }
.logo--greenline { --h: 30px; }
.logo--pardo-yachts { --h: 30px; }
.logo--rand { --h: 26px; }
.logo--sirena-yachts { --h: 24px; }
.logo--vandutch { --h: 40px; }

/* people: a client's words beside the brokers who earned them */
.people__grid { display: grid; gap: var(--s8); }
@media (min-width: 1000px) { .people__grid { grid-template-columns: 1fr 1.25fr; align-items: center; } }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 var(--s4); }
.quote blockquote p { font: 400 var(--fs-26)/1.3 var(--font-body); letter-spacing: 0; max-width: 20em; }
@media (min-width: 900px) { .quote blockquote p { font-size: var(--fs-34); line-height: 1.35; } }
.quote__by { color: var(--muted); }
.quote__by::before { content: "- "; }

/* boats list: sold boats last and quieter */
.band--sold { padding: var(--s8) 0; }
.grid--small { gap: var(--s6) var(--s5); }
@media (min-width: 1100px) { .grid--small { grid-template-columns: repeat(4, 1fr); } }
.grid--small .card__title { font-size: var(--fs-17); }
.grid--small .card__media img { filter: saturate(.55) brightness(.85); }

/* boat description: the first part, then the rest on request */
.js .clamp { max-height: 26em; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.js .clamp.is-open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.clamp__toggle { display: none; background: none; border: 0; border-bottom: 2px solid var(--accent); padding: 0 0 2px; color: var(--link-strong); font: 700 var(--fs-20)/1.3 var(--font-body); cursor: pointer; margin-top: var(--s4); min-height: 32px; }
.js .clamp__toggle { display: inline-block; }
.clamp__toggle::after { content: none; }  /* show-more buttons take no arrow (8.A2) */
.prose h2, .prose h3, .prose h4 { font: 700 var(--fs-13)/1.45 var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: var(--s6) 0 var(--s3); }

/* brand hero: the mark is the heading; a short line in display type; the standfirst as reading text */
/* the brand logo leads (client note 9, S6): about 3x the tagline's weight */
.hero__brand { margin: 0 0 var(--s5); }
.hero__brand .hero__logo { height: 64px; margin: 0; }
@media (min-width: 900px) { .hero__brand .hero__logo { height: 96px; } }
.hero__tagline { font: 700 var(--fs-17)/1.3 var(--font-display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 var(--s4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

/* brand story: text and a picture share the band */
.story { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 1000px) { .story { grid-template-columns: 1fr 1fr; } }
.story__pic { margin: 0; }
.story__pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
@media (min-width: 1000px) { .story__pic img { aspect-ratio: 4 / 3; } }

/* talk to a broker */
.talk { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 1000px) { .talk { grid-template-columns: 1fr 1.4fr; } .talk h2 { margin: 0; } }
.talk__people { display: grid; gap: var(--s5); }
@media (min-width: 700px) { .talk__people { grid-template-columns: 1fr 1fr; } }
.talk__person { display: grid; grid-template-columns: 88px 1fr; gap: var(--s4); align-items: center; color: var(--mist); text-decoration: none; }
.talk__person img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--hull); }
.talk__name { display: block; font-weight: 700; }
.talk__person:hover .phone { text-decoration: underline 2px var(--accent); text-underline-offset: 6px; }

/* in the shared band the two brokers stack, so names and numbers keep one line each */
.people .brokers { grid-template-columns: 1fr; gap: var(--s5); }
.people .broker { grid-template-columns: 112px 1fr; align-items: center; }
.people .phone { white-space: nowrap; }

/* desktop home hero: the words sit low on the base layout, over a fade rising from the bottom.
   Mist text needs the ink at about .6 over the brightest wake and .77 over pale stone (R4) for
   4.5:1, so the scrim holds .85 to .80 through the words (R4's stops, mirrored). A headline
   wrapping higher still has about .68, which large text needs only .48 of for 3:1 over white.
   The lower hull sits in that shade; the top third of the frame stays clear. */
@media (min-width: 700px) {
  .is-home .hero__scrim { background:
    linear-gradient(to top, rgba(var(--scrim), .85) 0%, rgba(var(--scrim), .80) 46%, rgba(var(--scrim), 0) 66%),
    linear-gradient(to right, rgba(var(--scrim), .45), rgba(var(--scrim), 0) 60%); }
}

/* ---------------------------------------------------------------- site: parts no sample drew */
.narrow { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.pagehead__intro { max-width: var(--measure); }
.plain-list { list-style: none; padding: 0; margin: 0 0 var(--s4); }
.plain-list li { border-top: 1px solid var(--rule); padding: var(--s3) 0; }

/* pictures that are missing */
.card__nopic, .range__nopic, .boat-hero__none { display: grid; place-items: center; width: 100%; height: 100%; background: var(--hull); color: var(--muted);
  font: 700 var(--fs-17)/1.1 var(--font-display); text-transform: uppercase; text-align: center; padding: var(--s4); }
.range__nopic { aspect-ratio: 3 / 2; }
.boat-hero__none span { max-width: 20em; }

/* boats list: filters, active filters, empty */
.filters__more { display: contents; }
@media (max-width: 899px) {
  .filters .filters__more { display: none; }
  .filters .filters__more.is-open { display: grid; grid-template-columns: 1fr; gap: var(--s3); width: 100%; order: 3; }
  .filters .filters__more.is-open .select { display: block; }
  .filters .filters__more.is-open select { width: 100%; }
}
.active-filters { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin: 0 0 var(--s6); }
.chip--remove { text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; gap: 6px; }
.chip--remove::after { content: "\00d7"; color: var(--accent); font-size: 1.15em; }
.chip--remove:hover { border-color: var(--accent); }
.more--plain::after { content: none; }
.empty { border: 1px solid var(--rule); padding: var(--s7) var(--s6); text-align: left; }
.empty__title { font: 700 var(--fs-26)/1.1 var(--font-display); letter-spacing: .04em; margin-bottom: var(--s3); }
#results[aria-busy="true"] { opacity: .5; transition: opacity var(--quick) linear; }

/* forms */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__notice { font-size: var(--fs-15); }
.form__summary { border: 1px solid var(--flare); border-left-width: 4px; padding: var(--s4); color: var(--mist); }
.form__summary p { margin: 0 0 var(--s2); color: var(--flare); font-weight: 700; }
.form__summary ul { margin: 0; padding-left: 18px; }
.form__summary a { color: var(--mist); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--flare); }
.form-done { border: 1px solid var(--accent); padding: var(--s5); }
.form-done__title { font: 700 var(--fs-26)/1.1 var(--font-display); letter-spacing: .04em; margin: 0 0 var(--s2); }
.form-done__title::before { content: "\2713  "; color: var(--accent); }
.form-band { display: grid; gap: var(--s7); }
@media (min-width: 1000px) { .form-band { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.form-card { background: var(--deck); padding: var(--s6); border-radius: 2px; }
.band--deck .form-card { background: var(--hull); }
.band--deck .form-card .field input, .band--deck .form-card .field textarea { background: var(--deck); }
.form-band__call { margin-top: var(--s6); }
.sold-note { border-top: 1px solid var(--rule); padding-top: var(--s4); margin-top: var(--s4); }

/* videos and tours */
.videos { display: grid; gap: var(--s5); }
.video-embed { margin: 0; }
.video-embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--hull); border-radius: 2px; }
.video-embed figcaption { margin-top: var(--s2); font-size: var(--fs-15); }

/* page openings that reuse the sell panel */
@media (min-width: 900px) { .panel--page { min-height: 520px; } }

/* sell: numbered reasons */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s6); }
@media (min-width: 900px) { .reasons { grid-template-columns: repeat(3, 1fr); gap: var(--s7); } }
.reasons li { border-top: 1px solid var(--rule); padding-top: var(--s5); }
.reasons__n { display: block; font: 700 var(--fs-34)/1 var(--font-display); color: var(--accent); margin-bottom: var(--s4); letter-spacing: .06em; }
.reasons h3 { margin-bottom: var(--s3); }
.reasons p { color: var(--muted); }

/* berths */
.berth-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.berth { border-bottom: 1px solid var(--rule); padding: var(--s4) 0; }
.berth__row { display: grid; gap: var(--s1) var(--s5); align-items: baseline; grid-template-columns: 1fr auto; }
@media (min-width: 900px) { .berth__row { grid-template-columns: 2fr 1.2fr 1.6fr 1fr 1fr; } }
.berth__title { font: 400 var(--fs-20)/1.3 var(--font-body); letter-spacing: 0; text-transform: none; margin: 0; }
.berth__row > span { color: var(--muted); }
.berth__price { color: var(--mist) !important; font-weight: 700; text-align: right; }
.berth--sold .berth__title { color: var(--muted); }
.berth__note { margin: var(--s2) 0 0; color: var(--muted); }
.berth__text { margin-top: var(--s3); }
.berth__enquire { margin-top: var(--s3); }
.berth__enquire summary { cursor: pointer; color: var(--mist); display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }
.berth__enquire[open] summary { margin-bottom: var(--s4); }
.berth__enquire .form { max-width: 560px; }

/* team */
.person { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 900px) { .person { grid-template-columns: minmax(0, 480px) 1fr; gap: var(--s8); } }
.person__photo { width: 100%; max-width: 480px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; background: var(--hull); }
.person h2 { margin-bottom: var(--s2); }
.person .phone { margin: var(--s2) 0 var(--s5); }
.person__message { margin-top: var(--s5); }
.person__message summary { list-style: none; cursor: pointer; }
.person__message summary::-webkit-details-marker { display: none; }
.person__message[open] summary { margin-bottom: var(--s5); }
.person__message .form { max-width: 560px; }

/* testimonials page */
.quote--page blockquote p { max-width: 24em; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; }
.cta-row .h3 { margin: 0 var(--s4) 0 0; }

/* contact */
.office { display: grid; gap: var(--s7); }
@media (min-width: 1000px) { .office { grid-template-columns: 1fr 1.4fr; } }
.office__address { font-style: normal; font-size: var(--fs-20); margin-bottom: var(--s5); }
.office .label { margin-top: var(--s4); }
.office p { margin-bottom: 0; }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 2px; background: var(--hull); filter: grayscale(.4) brightness(.9); }
.map p { margin-top: var(--s3); }

/* brands overview: one full-bleed band per brand, the mark over its own picture */
.brand-list { list-style: none; margin: 0; padding: 0; }
.brand-tile a { position: relative; display: flex; align-items: flex-end; min-height: 56vh; overflow: hidden; color: var(--mist); text-decoration: none; border-top: 1px solid var(--rule); }
.brand-tile__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--ease); }
.brand-tile a:hover .brand-tile__media, .brand-tile a:focus-visible .brand-tile__media { transform: scale(1.04); }
.brand-tile__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--scrim), .9), rgba(var(--scrim), .2) 60%); }
.brand-tile__text { position: relative; width: 100%; padding-bottom: var(--s7); display: grid; gap: var(--s4); }
.brand-tile .logo img { height: calc(var(--h, 28px) * 2); width: auto; max-width: 100%; object-fit: contain; object-position: left center; }  /* the logo leads (S6); scales down inside its box on a narrow screen */
.brand-tile__text > * { min-width: 0; }
.brand-tile__tagline { font: 700 var(--fs-17)/1.3 var(--font-display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .08em; }
.brand-tile__meta { color: var(--link-strong); font: 700 var(--fs-20)/1.3 var(--font-body); }

/* 404 and 503 */
.notfound { padding-top: calc(var(--header-h) + var(--s8)); padding-bottom: var(--s9); }

/* fixes after the first look at the running site */
.field__error[hidden] { display: none; }
.js .thumbs__extra { display: none; }
.thumbs__more-item { display: none; }
.js .thumbs__more-item { display: block; }

/* the "+N" tile: the next picture under the dark, and the count */
.thumbs__more { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; overflow: hidden;
  border: 1px solid var(--edge); background: var(--hull); cursor: pointer; border-radius: 2px; }
.thumbs__more img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumbs__more span { position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(var(--scrim), .72); color: var(--mist); font: 700 var(--fs-26) var(--font-display); }
.thumbs__more:hover { border-color: var(--accent); }

/* the photo viewer: one photo on the dark, the count, close, previous and next */
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  padding: var(--s4) var(--gutter); border: 0; background: var(--ink); color: var(--mist);
  opacity: 0; transition: opacity var(--quick) var(--ease); }
.viewer::backdrop { background: transparent; }
.viewer[open] { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "count . close" "prev stage next"; align-items: center; gap: var(--s4); }
.viewer.is-in { opacity: 1; }
html:has(.viewer[open]) { overflow: hidden; }
.viewer__count { grid-area: count; margin: 0; font: 400 var(--fs-15) var(--font-body); color: var(--muted); }
.viewer__count span { color: var(--mist); }
.viewer__close { grid-area: close; }
.viewer__prev { grid-area: prev; }
.viewer__next { grid-area: next; }
.viewer__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid var(--mist); background: rgba(var(--scrim), .6); color: var(--mist); cursor: pointer; }
.viewer__btn:hover { background: var(--hull); }
.viewer__stage { grid-area: stage; display: grid; place-items: center; height: 100%; min-height: 0; touch-action: pan-y pinch-zoom; }
.viewer__img { max-width: 100%; max-height: 100%; width: auto; height: auto; transition: opacity var(--quick) var(--ease); }
.viewer__img.is-changing { opacity: 0; transition: none; }
.viewer__error { margin: 0; color: var(--muted); }
@media (max-width: 699px) {
  .viewer[open] { grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: ". . close" "stage stage stage" "prev count next"; }
  .viewer__count { justify-self: center; }
}
.quote--long blockquote p { font-size: var(--fs-20); line-height: 1.5; }
@media (min-width: 900px) { .quote--long blockquote p { font-size: var(--fs-20); } }

.reasons { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* embedded frames (map, films, tours) take focus as a whole: give them the same ring */
iframe:focus, iframe:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.map:focus-within iframe, .video-embed:focus-within iframe { outline: 2px solid var(--accent); outline-offset: 3px; }
iframe.has-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
/* drop-downs (3.3, 8.B1): from 1240px a group opens from its arrow, or from the heading button when
   it has no page; the mouse can still open it by hovering. Its items are out of the Tab order
   until it is open. Below 1240px the panel shows every item, so there are no arrows and a
   heading is a plain label. */
.nav__heading { background: none; border: 0; padding: 0; cursor: pointer; gap: 6px; }
.nav__arrow { display: inline-grid; place-items: center; width: 32px; height: 44px; padding: 0; border: 0; border-radius: 16px;
  background: transparent; color: var(--head-fg); cursor: pointer; vertical-align: top; transition: background-color 120ms linear; }
.nav__arrow:hover { background: var(--toggle-hover); }
.nav__chevron { transition: transform var(--quick) var(--ease); }
[aria-expanded="true"] > .nav__chevron { transform: rotate(180deg); }
.nav__label { display: none; }
@media (min-width: 1240px) {
  .nav__group > a { vertical-align: top; }
  .nav__sub { background: var(--head-bg); }
  .nav__group.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  /* without script the arrows do nothing: the items open on focus instead, as on the old site */
  .no-js .nav__group:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .no-js .nav__arrow { display: none; }
}
@media (max-width: 1239px) {
  .nav__arrow, .nav__heading { display: none; }
  .nav__label { display: inline-flex; }
}

/* ---------------------------------------------------------------- final demo: both modes */

/* display type everywhere it is used, not only headings (8.A3) */
.goal__title, .range__name, .hero__tagline, .card__nopic, .range__nopic, .boat-hero__none, .brand-tile__tagline,
.boat-price, .empty__title, .form-done__title, .reasons__n, .thumbs__more span { font-stretch: 125%; letter-spacing: .02em; }
.card__title { font: 400 var(--fs-20)/1.25 var(--font-body); }

/* the select arrow in the text colour of each mode */
[data-theme="light"] .select select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230E1B24' stroke-width='1.5'/%3E%3C/svg%3E");
}
.boat-hero__all { color: var(--mist); border-color: var(--mist); }
.boat-hero__all:hover { background: var(--deck); border-color: var(--accent); color: var(--mist); }

/* light, from the light demo site: the film in its own frame under the header with no fade over
   it, and the words below it on the page. Dark keeps the words over the film from 700px.
   (So the home hero changes height between modes: the toggle keeps the reading position.) */
[data-theme="light"] .hero { --film: calc(62vh - var(--header-h)); display: block; min-height: 0; }
[data-theme="light"] .hero__media { position: absolute; top: 0; left: 0; right: 0; height: var(--film); bottom: auto; object-position: var(--focus, 42% 72%); }
[data-theme="light"] .hero::before { content: ""; display: block; height: var(--film); }
[data-theme="light"] .hero__scrim { display: none; }
[data-theme="light"] .hero__text { padding-top: var(--s5); padding-bottom: var(--s7); background: var(--ink); }
[data-theme="light"] .hero--brand .hero__text { padding-top: var(--s6); }
@media (min-width: 700px) {
  [data-theme="light"] .is-home .hero { --film: clamp(320px, 58vh, 640px); }
  [data-theme="light"] .hero--brand { --film: clamp(280px, 42vh, 460px); }
  [data-theme="light"] .hero__media { object-position: var(--focus, 50% 65%); }
  [data-theme="light"] .hero__text, [data-theme="light"] .hero--brand .hero__text { padding-top: var(--s7); padding-bottom: var(--s8); }
}
/* a dark mark on sailcloth weighs more than a white one over film */
[data-theme="light"] .hero__brand .hero__logo { max-width: min(440px, 80%); height: auto; max-height: 96px; }
@media (max-width: 899px) { [data-theme="light"] .hero__brand .hero__logo { max-height: 64px; } }
/* brands overview in light: the photo clean edge to edge, the label on a panel in its corner */
[data-theme="light"] .brand-tile__scrim { display: none; }
[data-theme="light"] .brand-tile__text { margin: 0; width: auto; max-width: min(680px, 100%); background: var(--ink);
  padding: var(--s5) var(--s6) var(--s5) max(var(--gutter), calc((100% - var(--col)) / 2)); }
@media (max-width: 699px) { [data-theme="light"] .brand-tile__text { width: 100%; max-width: none; } }
/* the last drop-down (About) opens leftward so it never runs past the screen's edge */
.nav__group:not(:has(~ .nav__group)) .nav__sub { left: auto; right: calc(-1 * var(--s4)); }
/* the header's own links and buttons sit inside the page's scroll padding (kept so a focused
   field is never under the sticky header); without this, focusing one from mid-page scrolled
   the page to "reveal" it */
.site-header a, .site-header button { scroll-margin-top: calc(-1 * (var(--header-h) + var(--s4))); }
/* without script below 1240px the Menu button can't open the panel: show the menu in the page
   under the header row instead, and drop the button */
@media (max-width: 1239px) {
  .no-js .site-header { height: auto; min-height: var(--header-h); flex-wrap: wrap; position: static; }
  .no-js .nav { display: block; position: static; order: 9; width: 100%; padding: 0 0 var(--s4); background: none; overflow: visible; }
  .no-js .nav-toggle { display: none; }
}
/* brand page (4.5): stacked standalone links 12px apart; the pre-owned link 24px below */
.link-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); justify-items: start; }
.brand-preowned { margin: var(--s5) 0 0; }
/* Incoming Stock intro (4.4, C2): the E-Yachts logo beside the blurb */
.eyachts-intro { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .eyachts-intro { grid-template-columns: 1fr 1.4fr; } }
.eyachts-logo { height: 48px; width: auto; }
/* STAND-IN: no white E-Yachts logo yet; in dark mode the grey one is turned white */
[data-theme="dark"] .eyachts-logo { filter: brightness(0) invert(1); }
.boat-arrival { margin: 0 0 var(--s2); font-weight: 700; }
/* berths (8.C4) */
.berth-card__meta { flex-wrap: wrap; }
.per { color: var(--muted); font-weight: 400; }
.berth-card__note { color: var(--muted); font-size: var(--fs-15); margin: var(--s1) 0 0; }
.berth-price { text-align: right; }
.berth-price .berth-card__note { margin-top: var(--s2); }
.marina-band { padding: var(--s8) 0; }
@media (max-width: 699px) { .marina-band { padding: var(--s7) 0; } }
.marina-band h2 { margin-bottom: var(--s5); }
/* later headings in the marina body are drawn as h3 (8.C4), not the small prose label */
.marina-band .prose h3 { font: 700 var(--fs-17)/1.1 var(--font-display); font-stretch: 125%; text-transform: uppercase;
  letter-spacing: .04em; color: var(--mist); margin: var(--s6) 0 var(--s3); }
.berth-fact-note { display: block; color: var(--muted); font-size: var(--fs-15); }
/* home (4.1) */
.to-white { filter: brightness(0) invert(1); }
/* brand tiles (C1): 3:2, the photo under a flat wash, the white logo centred at twice its height */
.brand-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s6); grid-template-columns: 1fr; }  /* even 32px: no text under bare tiles */
@media (min-width: 700px) { .brand-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .brand-tiles { grid-template-columns: repeat(3, 1fr); } }
.brand-tiles__link { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 2px; background: #000; text-decoration: none; }
.brand-tiles__link:focus-visible { outline-offset: 3px; }
.brand-tiles__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--ease); }
.brand-tiles__wash { position: absolute; inset: 0; background: var(--wash); transition: background-color var(--quick) linear; }
.brand-tiles__link:hover .brand-tiles__wash { background: rgba(0, 0, 0, .45); }
.brand-tiles__link:hover .brand-tiles__photo { transform: scale(1.04); }
.brand-tiles__logo { position: relative; height: calc(var(--h, 28px) * 2); width: auto; max-width: 80%; object-fit: contain; }
.brand-tiles__name { position: relative; color: #fff; font: 700 var(--fs-26)/1.1 var(--font-display); font-stretch: 125%; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .brand-tiles__link:hover .brand-tiles__photo { transform: none; } }
/* the E-Yachts line under the tiles (C2 place 1): label text, then the logo 32px tall; not a link */
.eyachts-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin: var(--s7) 0 0; }
.eyachts-line .label { margin: 0; }
.eyachts-line__logo { height: 32px; width: auto; }
/* the Incoming Stock call-to-action (C2 place 2) */
.incoming-band { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .incoming-band { grid-template-columns: 1fr 1.4fr; } }
.incoming-band__logo { height: 48px; width: auto; }
.incoming-band .pill { margin-top: var(--s4); }
/* insurance (C5): panels with the button at the foot, so buttons line up */
.insurers { display: grid; gap: var(--s5) var(--s6); grid-template-columns: 1fr; }
@media (min-width: 900px) { .insurers { grid-template-columns: repeat(2, 1fr); } }
.insurer { display: flex; flex-direction: column; align-items: flex-start; background: var(--hull); border: 1px solid var(--rule); border-radius: 2px; padding: var(--s6); }
.insurer h3 { margin-bottom: var(--s3); }
.insurer__plate { margin-bottom: var(--s5); }
.insurer__plate img { height: 40px; width: auto; }
/* third-party logos keep their own colours: on dark, a white plate behind them */
[data-theme="dark"] .insurer__plate { background: #FFFFFF; padding: var(--s4); border-radius: 2px; }
/* the button sits at the foot, with at least 24px above it when the text fills the panel */
.insurer__foot { margin-top: auto; padding-top: var(--s5); }
/* sell page bands (C6) */
.broker__bio { color: var(--muted); font-size: var(--fs-15); margin: var(--s3) 0 0; }
.photo-band .thumbs { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .photo-band .thumbs { grid-template-columns: repeat(3, 1fr); } }
.reviews { display: grid; gap: var(--s7); }
@media (min-width: 900px) { .reviews { grid-template-columns: 1fr 1fr; } }
.review__name { font: 700 var(--fs-15)/1.45 var(--font-body); margin: 0 0 var(--s1); }
/* the newsletter box (5.1): drawn, not native, so it holds in both modes; the whole row is the target */
.field--check { display: flex; align-items: flex-start; gap: var(--s3); margin-top: var(--s5); min-height: 44px; }
.field--check label { margin: 0; font-weight: 400; font-size: var(--fs-17); color: var(--mist); cursor: pointer; padding: 1px 0 var(--s3); flex: 1; }
.field--check input { appearance: none; -webkit-appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 3px 0 0;
  border: 2px solid var(--edge); border-radius: 2px; background: var(--hull) center / 14px no-repeat; cursor: pointer; }
.field--check input:hover { border-color: var(--mist); }
.field--check input:checked { background-color: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3.2 3L12 3.5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E"); }
.field--check input:disabled { background-color: var(--hull); border-color: var(--edge); opacity: .6; cursor: not-allowed; }
/* 360 photos (5.2, C9): inside the viewer, so dark tokens */
.thumb__chip { position: absolute; top: var(--s2); left: var(--s2); pointer-events: none; }
.viewer__stage { position: relative; }
.viewer__pano { justify-self: stretch; align-self: stretch; width: 100%; height: 100%; min-height: 240px;
  background: var(--ink) center / cover no-repeat; cursor: grab; }
.viewer__pano:active { cursor: grabbing; }
.viewer__pano:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; box-shadow: none; }
.viewer__pill { position: absolute; left: 50%; bottom: var(--s5); transform: translateX(-50%); margin: 0; pointer-events: none;
  background: var(--ink); color: var(--mist); border: 1px solid var(--edge); border-radius: 999px;
  padding: var(--s2) var(--s4); font: 400 var(--fs-15)/1.2 var(--font-body); white-space: nowrap; z-index: 2; }
/* none of Pannellum's own look shows (@ui-designer) */
.viewer .pnlm-container { background: #0A141C; font-family: var(--font-body); }
.viewer .pnlm-load-box, .viewer .pnlm-about-msg, .viewer .pnlm-panorama-info, .viewer .pnlm-info-box,
.viewer .pnlm-error-msg { display: none !important; }
/* a unit inside display capitals keeps its own case (@ui-designer) */
.unit { text-transform: none; }
/* narrow phones: pills never break their label (@ui-designer) */
.callbar .pill { white-space: nowrap; }
@media (max-width: 359px) { .callbar .pill { padding: 0 14px; } }
@media (max-width: 479px) {
  .insurer__foot { width: 100%; }
  .insurer__foot .pill { width: 100%; justify-content: center; text-align: center; line-height: 1.25; padding: 10px 20px; min-height: 44px; }
}
/* the flat photo hidden while a 360 shows takes no grid row (img is display:block elsewhere) */
.viewer__img[hidden] { display: none; }
/* footer guide (client note 12, round 2 S8): one column per footer-menu heading, then the base row */
.footer-contact .label { margin-top: var(--s3); }
.footer-brokers { list-style: none; margin: 0; padding: 0; }
.footer-brokers li { min-height: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s3); }
.footer-brokers__name { color: var(--mist); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6) var(--s5); align-content: start; }
@media (min-width: 700px) { .footer-nav { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.footer-group h2 { font: 400 var(--fs-13)/1.45 var(--font-body); text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); margin: 0 0 var(--s3); }
.footer-group ul { list-style: none; margin: 0; padding: 0; }
.footer-group li { min-height: 32px; display: flex; align-items: center; }
.footer-group a, .footer-base .social a { color: var(--mist); font-size: var(--fs-15); text-decoration: none; }
.footer-group a:hover, .footer-group a:focus-visible, .footer-base .social a:hover, .footer-base .social a:focus-visible { text-decoration: underline 2px var(--accent); text-underline-offset: 5px; }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s5); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--rule); }
.footer-base .social { display: flex; flex-wrap: wrap; margin: 0; }
.badge p { margin: 0; font-size: var(--fs-13); color: var(--muted); }
@media (max-width: 699px) { .footer-base { flex-direction: column; align-items: flex-start; } }

/* home hero (S3): the film in its own frame in both modes, the light logo centred on it */
.is-home .hero { --film: calc(62vh - var(--header-h)); display: block; min-height: 0; }
@media (min-width: 700px) { .is-home .hero { --film: clamp(320px, 58vh, 640px); } }
.is-home .hero__media { position: absolute; top: 0; left: 0; right: 0; bottom: auto; height: var(--film);
  object-position: var(--focus, 50% 65%); }
.is-home .hero::before { content: ""; display: block; height: var(--film); }
.is-home .hero__scrim { display: none; }
.is-home .hero__text { padding-top: var(--s5); padding-bottom: var(--s7); background: var(--ink); }
@media (min-width: 700px) { .is-home .hero__text { padding-top: var(--s7); padding-bottom: var(--s8); } }
.hero__wash { position: absolute; top: 0; left: 0; right: 0; height: var(--film); pointer-events: none;
  background: radial-gradient(ellipse 80% 55% at 50% 50%, rgba(0,0,0,.75) 0%, rgba(0,0,0,.75) 45%, rgba(0,0,0,.45) 100%); }
@media (min-width: 700px) { .hero__wash {
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(0,0,0,.75) 0%, rgba(0,0,0,.75) 45%, rgba(0,0,0,.45) 100%); } }
.hero__mark { position: absolute; top: calc(var(--film) / 2); left: 50%; transform: translate(-50%, -50%);
  width: min(56vw, 448px); height: auto; pointer-events: none; }
@media (min-width: 700px) { .hero__mark { width: clamp(210px, 30.8vw, 448px); } }
