:root {
  --paper: #f7f4ee;
  --card: #ffffff;
  --ink: #0b2545;
  --gold: #c9a24b;
  --muted: #5d6b75;
  --line: #ddd6c8;
  --brass: #9a7634;
  --sea: #0b2545;
  --deep: #071a33;
  --aqua: #6fcfe0;
  --wa: #1faa59;
  --serif: "Frank Ruhl Libre", "Times New Roman", serif;
  --sans: "Heebo", "Arial Hebrew", Arial, sans-serif;
  --latin: "Cormorant Garamond", "Frank Ruhl Libre", serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
.latin { font-family: var(--latin); letter-spacing: 0.02em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 13px; letter-spacing: 0.14em; color: var(--brass);
  font-weight: 500; margin: 0 0 10px;
}

/* ---------- top bar ---------- */
.top {
  position: absolute; inset-inline: 0; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px; color: #fff;
}
.top.solid { position: static; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; direction: ltr; font: 300 15px var(--sans); letter-spacing: 0.3em; }
.brand .mark { height: 38px; width: auto; }
.lockup { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; margin-top: 28px; }
.lockup .mark { height: 84px; width: auto; margin-bottom: 14px; }
.lockup .name { font: 300 17px var(--sans); letter-spacing: 0.3em; direction: ltr; }
.lockup .what { font-size: 13px; letter-spacing: 0.14em; color: var(--brass); margin-top: 4px; }
body.dark .lockup .what { color: var(--gold); }
.top nav { display: flex; gap: 26px; align-items: center; font-size: 15px; }
.top nav a { text-decoration: none; opacity: 0.85; padding: 4px 0; border-bottom: 1px solid transparent; }
.top nav a:hover, .top nav a.on { opacity: 1; border-bottom-color: currentColor; }
.top nav a.tel { direction: ltr; unicode-bidi: isolate; }

/* ---------- gate ---------- */
/* Top panel: the classic yacht, cut at its waterline. Bottom panel: underwater,
   with the logo's gold triangle under the hull, so yacht + triangle form the logo. */
.gate {
  --split: 58vh;                          /* where the waterline sits */
  position: relative; height: 100vh; height: 100dvh; min-height: 560px; overflow: hidden;
  background: var(--deep); color: #fff;
}
.gate .top { color: var(--ink); }
.gate a.half { position: absolute; inset-inline: 0; text-decoration: none; overflow: hidden; }
.gate a.above { top: 0; height: var(--split); color: var(--ink); background: #3f9fd6; }
.gate a.below {
  top: var(--split); bottom: 0; color: #fff;
  background: #0c549e url("../img/bg/gate-below.jpg") center 42% / cover no-repeat;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5);
}
/* the photo is 4:1 with the yacht in the middle: it fills any screen width */
.gate .boat {
  position: absolute; top: 0; bottom: 0; left: 50%; width: calc(var(--split) * 4); transform: translateX(-50%);
  background: url("../img/bg/gate-yawl.jpg") center / 100% 100% no-repeat;
  transition: transform 0.9s ease;
}
.gate .tri { position: absolute; top: 16px; left: 50%; width: calc(var(--split) * 0.5); transform: translateX(-50%); transition: transform 0.9s ease; }
.gate a.above:hover .boat { transform: translateX(-50%) scale(1.025); transform-origin: 50% 100%; }
.gate a.below:hover .tri { transform: translateX(-50%) scale(1.04); transform-origin: 50% 0; }
.gate .txt {
  position: absolute; right: calc(50% + var(--split) * 0.3 + 24px);
  display: flex; flex-direction: column; align-items: flex-start; white-space: nowrap;
}
.gate .above .txt { top: 17vh; }
.gate .below .txt { top: 8vh; }
.gate .word { font: 300 clamp(34px, 4.6vw, 60px) / 1 var(--sans); letter-spacing: 0.3em; direction: ltr; margin-left: -0.3em; }
.gate .sub { font-family: var(--serif); font-size: clamp(17px, 1.9vw, 22px); margin-top: 12px; }
.gate .go { margin-top: 16px; font-size: 15px; border: 1px solid currentColor; padding: 7px 22px; border-radius: 40px; transition: background-color 0.25s, color 0.25s; }
.gate a.above:hover .go { background: var(--ink); color: #fff; border-color: var(--ink); }
.gate a.below:hover .go { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- page hero ---------- */
.hero {
  position: relative; min-height: 62vh; display: flex; align-items: flex-end;
  color: #fff; background: var(--sea) center / cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 26, 43, 0.72), rgba(6, 26, 43, 0.12) 60%, rgba(6, 26, 43, 0.3)); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 56px; padding-top: 130px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); max-width: 15em; }
.hero p { font-size: clamp(18px, 2vw, 21px); max-width: 34em; margin: 16px 0 0; opacity: 0.95; }
.hero .eyebrow { color: #fff; opacity: 0.85; }
.hero-above { background-image: url("../img/bg/above.jpg"); background-position: center 60%; }
.hero-below { background-image: url("../img/bg/below.jpg"); background-position: center 20%; }

/* ---------- magazine list ---------- */
.mag { padding: 72px 0 24px; }
.mag-row {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center;
  padding: 0 0 80px; margin: 0;
}
.mag-row:nth-child(even) .mag-pic { order: 2; }
.mag-pic { display: block; overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; }
.mag-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.mag-pic:hover img { transform: scale(1.03); }
.mag-text h2 { font-size: clamp(32px, 4vw, 46px); }
.mag-text h2 a { text-decoration: none; }
.mag-text .tag { font-family: var(--serif); font-size: 21px; color: var(--muted); margin: 8px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 16px 0; margin: 20px 0; border-block: 1px solid var(--line); font-size: 15px; color: var(--muted); list-style: none; }
.chips b { color: var(--ink); font-weight: 500; }
.price { font-family: var(--serif); font-size: 30px; direction: ltr; unicode-bidi: isolate; }
.mag-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; font: 500 16px var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 2px;
  transition: background-color 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.wa { background: var(--wa); border-color: var(--wa); }
.btn.wa:hover { background: #17874a; color: #fff; }
.btn.block { display: flex; width: 100%; }
.btn .ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- strip + footer ---------- */
.strip { background: var(--deep); color: #e8f0f4; padding: 64px 0; }
.strip .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.strip h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 12px; }
.strip p { color: #b9c9d3; margin: 0; }
.strip .btn { border-color: var(--aqua); background: transparent; color: var(--aqua); justify-self: end; }
.strip .btn:hover { background: var(--aqua); color: var(--deep); }
.strip.light { background: #efeadf; color: var(--ink); }
.strip.light p { color: var(--muted); }
.strip.light .btn { border-color: var(--ink); color: var(--ink); }
.strip.light .btn:hover { background: var(--ink); color: #fff; }

footer { padding: 64px 0 96px; text-align: center; }
footer h2 { font-size: 34px; margin-bottom: 8px; }
footer p { color: var(--muted); }
footer .acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 24px 0 36px; }
footer .fine { font-size: 14px; color: var(--muted); }
footer .fine a { text-decoration: none; margin: 0 10px; }
body.dark footer .btn.ghost { border-color: #e8f0f4; color: #e8f0f4; }
body.dark footer .btn.ghost:hover { background: #e8f0f4; color: var(--deep); }

.fab {
  position: fixed; bottom: 22px; left: 22px; z-index: 50; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}
.fab svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- yacht page ---------- */
.viewer { background: var(--deep); position: relative; }
.viewer .stage { height: min(72vh, 760px); display: grid; place-items: center; cursor: zoom-in; }
.viewer .stage img { max-height: min(72vh, 760px); width: auto; max-width: 100%; object-fit: contain; }
.viewer button.nav {
  position: absolute; top: calc(min(72vh, 760px) / 2); transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 24px; line-height: 1;
}
.viewer button.nav:hover { background: rgba(255, 255, 255, 0.32); }
.viewer .prev { right: 18px; }
.viewer .next { left: 18px; }
.viewer .count { position: absolute; top: 16px; left: 18px; color: #fff; font-size: 14px; background: rgba(0, 0, 0, 0.4); padding: 2px 12px; border-radius: 20px; direction: ltr; }
.thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 6px; background: var(--deep); scrollbar-width: thin; }
.thumbs button { flex: 0 0 auto; width: 104px; height: 72px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: 0.6; }
.thumbs button.on { border-color: #fff; opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.yhead { padding: 44px 0 8px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.yhead h1 { font-size: clamp(38px, 5.5vw, 62px); }
.yhead .tag { font-family: var(--serif); font-size: 23px; color: var(--muted); margin-top: 8px; }

.ybody { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; padding: 28px 24px 80px; align-items: start; }
.story p { font-size: 19px; }
.spec { border-top: 1px solid var(--line); padding: 26px 0 8px; margin-top: 18px; }
.spec h2 { font-size: 25px; margin-bottom: 12px; }
.spec ul { margin: 0 0 12px; padding: 0; list-style: none; columns: 2; column-gap: 40px; }
.spec li { padding: 5px 16px 5px 0; position: relative; break-inside: avoid; }
.spec li::before { content: ""; position: absolute; right: 0; top: 0.95em; width: 6px; height: 1px; background: var(--brass); }
.film { border-top: 1px solid var(--line); padding: 26px 0 0; margin-top: 18px; }
.film h2 { font-size: 25px; margin-bottom: 16px; }
.film video { width: 100%; max-width: 360px; background: #000; border-radius: 4px; }

.side { position: sticky; top: 24px; background: var(--card); border: 1px solid var(--line); padding: 28px; }
.side .lbl { font-size: 13px; letter-spacing: 0.1em; color: var(--muted); }
.side .price { font-size: 40px; display: block; margin: 2px 0 20px; text-align: right; }
.side .btn { margin-bottom: 10px; }
.side table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
.side td { padding: 9px 0; border-top: 1px solid var(--line); vertical-align: top; }
.side td:first-child { color: var(--muted); white-space: nowrap; padding-left: 14px; }
.side td:last-child { text-align: left; font-weight: 500; }
.side .survey { margin-top: 20px; padding: 16px; background: #eef4f6; font-size: 15px; line-height: 1.6; }
.side .survey a { color: var(--sea); font-weight: 500; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(3, 12, 20, 0.96); display: none; place-items: center; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 96vw; max-height: 94vh; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.lightbox .x { top: 18px; left: 18px; }
.lightbox .prev { right: 18px; top: 50%; }
.lightbox .next { left: 18px; top: 50%; }

/* ---------- below ---------- */
body.dark { background: var(--deep); color: #e8f0f4; }
body.dark .eyebrow { color: var(--aqua); }
.intro { padding: 72px 0 24px; max-width: 46em; }
.intro p { font-size: 20px; color: #c3d2db; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; border: 1px solid rgba(111, 207, 224, 0.4); padding: 44px; margin: 24px 0 56px; }
.feature h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 14px; }
.feature p { color: #c3d2db; }
.feature ul { margin: 0; padding: 0; list-style: none; }
.feature li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.feature li:last-child { border-bottom: 0; }
.feature .btn { background: var(--aqua); border-color: var(--aqua); color: var(--deep); margin-top: 10px; }
.feature .btn:hover { background: transparent; color: var(--aqua); }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; margin-bottom: 80px; }
.services article { padding: 32px; outline: 1px solid rgba(255, 255, 255, 0.14); }
.services .num { font-family: var(--latin); font-size: 20px; color: var(--aqua); }
.services h3 { font-size: 25px; margin: 6px 0 10px; }
.services p { color: #b9c9d3; margin: 0; font-size: 16px; }
body.dark footer p, body.dark footer .fine { color: #9fb2be; }
body.dark .top.solid { background: var(--deep); color: #fff; border-color: rgba(255, 255, 255, 0.14); }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .top { padding: 14px 16px; }
  .top nav { gap: 16px; font-size: 14px; }
  .top nav a.tel { display: none; }
  .wrap { padding: 0 16px; }
  .mag { padding-top: 40px; }
  .mag-row { grid-template-columns: 1fr; gap: 20px; padding-bottom: 56px; }
  .mag-row:nth-child(even) .mag-pic { order: 0; }
  .mag-pic { margin: 0 -16px; }
  .strip .wrap { grid-template-columns: 1fr; }
  .strip .btn { justify-self: start; }
  .ybody { grid-template-columns: 1fr; gap: 28px; padding: 20px 16px 56px; }
  .side { position: static; order: -1; padding: 22px; }
  .spec ul { columns: 1; }
  .viewer .stage, .viewer .stage img { height: auto; max-height: 62vh; }
  .viewer .stage { min-height: 46vh; }
  .viewer button.nav { top: 31vh; width: 40px; height: 40px; }
  .thumbs button { width: 78px; height: 56px; }
  .feature { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .hero { min-height: 56vh; }
  .hero .wrap { padding-bottom: 36px; }
  .film video { max-width: 100%; }
}

@media (max-width: 860px) {
  .gate { --split: 52vh; }
  .gate .txt { right: 0; left: 0; align-items: center; }
  .gate .above .txt { top: 66px; right: 18px; left: auto; align-items: flex-start; }
  .gate .below .txt { top: calc(var(--split) * 0.38 + 38px); }
  .gate .above .go { display: none; }
  .gate .above .word { font-size: 30px; }
  .gate .above .sub { margin-top: 6px; }
  .gate .below .word { margin-left: 0; padding-left: 0.3em; }
  .brand { font-size: 12px; gap: 8px; letter-spacing: 0.22em; }
  .brand .mark { height: 30px; }
  .fab { width: 50px; height: 50px; bottom: 16px; left: 16px; }
  .fab svg { width: 26px; height: 26px; }
  .side .survey { padding-bottom: 20px; }
  footer { padding-bottom: 110px; }
}
