:root {
  --ink: #12303f;
  --sea: #17677a;
  --sand: #c1873f;
  --sand-soft: #d9a862;
  --paper: #f6f2ea;
  --paper-2: #efe9dd;
  --cloud: #ffffff;
  --muted: #5f717a;
  --line: rgba(18, 48, 63, .14);
  --shadow: 0 24px 60px -28px rgba(18, 48, 63, .45);
  --display: 'Cormorant Garamond', 'Noto Serif', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 66px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.06; margin: 0; }

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sea);
  display: inline-flex;
  align-items: center;
  gap: .8em;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--sand);
}

/* ---- top bar ---- */
header.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 242, 234, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
nav.links { display: flex; gap: 1.9rem; }
nav.links a {
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--muted);
  transition: color .2s;
}
nav.links a:hover { color: var(--ink); }
.bar-right { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 1.5rem); }
.lang { display: flex; align-items: center; gap: .55em; font-size: .76rem; letter-spacing: .08em; }
.lang a {
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); font-weight: 600; }
.lang a + a { border-left: 1px solid var(--line); padding-left: .55em; }
.bar .enquire {
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cloud);
  background: var(--ink);
  padding: .55em 1.2em;
  border-radius: 100px;
}

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  color: var(--cloud);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  background: #0b2230 url("/images/large/hero-anchorage-dusk.jpeg") center 42% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, rgba(9, 28, 40, .42) 0%, rgba(9, 28, 40, 0) 32%),
    linear-gradient(0deg, rgba(7, 24, 34, .82) 4%, rgba(7, 24, 34, .12) 46%, rgba(7, 24, 34, .3) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding: 3rem 0 7rem; }
.hero .eyebrow { color: var(--sand-soft); }
.hero .eyebrow::before { background: var(--sand-soft); }
.hero h1 { margin: .85rem 0 .14em; line-height: 0; display: flex; align-items: flex-end; gap: clamp(.6rem, 1.6vw, 1.5rem); }
.wordmark { display: block; height: auto; }
.wordmark-hero {
  width: clamp(100px, 13vw, 186px);
  color: var(--cloud);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35)) drop-shadow(0 6px 40px rgba(0, 0, 0, .3));
}
.wordmark-nav { width: 58px; color: var(--ink); }
.brand-boat { height: 32px; width: auto; color: var(--ink); }
.hero-boat {
  flex: none;
  height: clamp(50px, 6.5vw, 93px);
  width: auto;
  color: var(--cloud);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35));
}
.hero .sub {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.7vw, 1.85rem);
  font-style: italic;
  color: #fdf7ec;
  max-width: 40ch;
  text-shadow: 0 1px 3px rgba(6, 20, 30, .6), 0 2px 18px rgba(6, 20, 30, .5);
}
.hero .lead {
  margin-top: 1.2rem;
  max-width: 46ch;
  font-size: 1.06rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(6, 20, 30, .55), 0 2px 16px rgba(6, 20, 30, .45);
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 5vw, 3.4rem);
  margin-top: 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, .24);
}
.stat .n {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4.6vw, 2.7rem);
  line-height: 1;
  color: var(--cloud);
}
.stat .l {
  display: block;
  margin-top: .5em;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

/* ---- sections ---- */
section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-head { margin-bottom: 2.8rem; }
.section-head h2 {
  font-size: clamp(2.2rem, 5.2vw, 3.5rem);
  margin-top: .5rem;
}
.section-head p.intro {
  margin: 1.1rem 0 0;
  font-size: 1.12rem;
  font-style: italic;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.flip { grid-template-columns: .95fr 1.05fr; }
.split .body p { margin: 0 0 1.1rem; }
.split .body p:last-child { margin-bottom: 0; }
.figure {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.figure img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

.lede {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.3;
}

/* ---- quick facts band ---- */
.band { background: var(--ink); color: var(--cloud); }
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 4px;
  overflow: hidden;
}
.fact {
  background: var(--ink);
  padding: 1.7rem 1.5rem;
}
.fact .k {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand-soft);
}
.fact .v {
  font-family: var(--display);
  font-size: 1.55rem;
  margin-top: .35em;
}

/* ---- independence highlights ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 2.6rem;
}
.pillar {
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.8rem 1.6rem;
}
.pillar .big {
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--sea);
}
.pillar .cap { margin-top: .6rem; font-size: .95rem; color: var(--muted); }

/* ---- refit yard groups ---- */
.refit-stage { margin-top: 2.6rem; }
.stage-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sea);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}
.refit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
}
.refit-grid figure { margin: 0; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); }
.refit-grid img { width: 100%; height: auto; display: block; cursor: zoom-in; transition: transform .5s ease; }
.refit-grid figure:hover img { transform: scale(1.03); }
/* stage with a tall final photo: the four detail shots pack into a
   2x2 and the tall photo fills the right column across both rows */
@media (min-width: 881px) {
  .refit-grid.tall-last > figure:last-child {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}

/* ---- specifications ---- */
#specs { background: var(--paper-2); }
.spec-cols {
  columns: 2;
  column-gap: clamp(2rem, 5vw, 4.5rem);
}
.spec-block {
  break-inside: avoid;
  margin-bottom: 2.4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.spec-block h3 {
  font-size: 1.4rem;
  display: flex;
  align-items: baseline;
  gap: .6em;
  margin-bottom: 1rem;
}
.spec-block h3 .idx {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--sand);
  font-weight: 600;
}
.spec-block ul { list-style: none; margin: 0; padding: 0; }
.spec-block li {
  padding: .5em 0;
  border-top: 1px dotted var(--line);
  font-size: .98rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}
.spec-block li:first-child { border-top: 0; }
.spec-block li .lab { color: var(--muted); flex: 0 0 auto; }
.spec-block li .val { text-align: right; font-weight: 500; }
.spec-block li.single { display: block; color: var(--ink); font-style: italic; }

/* ---- interior note ---- */
.note {
  background: var(--cloud);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sand);
  border-radius: 6px;
  padding: 1.3rem 1.6rem;
  margin: 0 0 2.6rem;
  max-width: 62ch;
  font-size: 1.02rem;
  color: var(--muted);
}
.note b {
  color: var(--sea);
  font-weight: 600;
}

/* ---- gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 12px;
  margin-top: 2.8rem;
}
.gallery figure { margin: 0; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* ---- contact ---- */
#contact {
  position: relative;
  color: var(--cloud);
  text-align: center;
  overflow: hidden;
}
#contact .bg {
  position: absolute;
  inset: 0;
  background: #0b2230 url("/images/large/contact-sunset-sail.jpeg") center 55% / cover no-repeat;
}
#contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 26, 36, .78), rgba(8, 26, 36, .9));
}
#contact .wrap { position: relative; z-index: 2; max-width: 640px; }
#contact h2 { font-size: clamp(2.4rem, 6vw, 4rem); }
#contact p { color: rgba(255, 255, 255, .86); font-size: 1.1rem; margin: 1.2rem 0 2rem; }
.cta {
  display: inline-block;
  text-decoration: none;
  background: var(--sand);
  color: #241605;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 1em 2.4em;
  border-radius: 100px;
  transition: transform .2s, background .2s;
}
.cta:hover { background: var(--sand-soft); transform: translateY(-2px); }
.contact-meta {
  margin-top: 2.4rem;
  display: flex;
  gap: 2.4rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .9rem;
  color: rgba(255, 255, 255, .8);
}
.contact-meta b { display: block; color: var(--sand-soft); font-weight: 600; letter-spacing: .06em; font-size: .72rem; text-transform: uppercase; margin-bottom: .3em; }

/* ---- price band ---- */
.price-band { text-align: center; }
.price-band .eyebrow { color: var(--sand-soft); }
.price-band .eyebrow::before { background: var(--sand-soft); }
.price {
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 1;
  color: var(--sand-soft);
  margin: .6rem 0 1.4rem;
}
.price-note {
  max-width: 56ch;
  margin: 0 auto;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, .85);
}


/* ---- reveal (armed only when JS runs, so no-JS still shows content) ---- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- lightbox ---- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(7, 20, 28, .95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vmin 7vmin;
}
.lb.open { display: flex; }
.lb-img {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  user-select: none;
}
.lb button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s;
}
.lb button:hover { opacity: 1; }
.lb-close { top: 3.5vmin; right: 4vmin; font-size: 2.2rem; line-height: 1; }
.lb-prev, .lb-next { top: 50%; width: 56px; height: 56px; margin-top: -28px; }
.lb-prev { left: 1.5vmin; }
.lb-next { right: 1.5vmin; }
.lb-prev::before, .lb-next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}
.lb-prev::before { transform: translate(-40%, -50%) rotate(-135deg); }
.lb-next::before { transform: translate(-60%, -50%) rotate(45deg); }
.lb-count {
  position: absolute;
  bottom: 3.5vmin;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  font-size: .8rem;
  letter-spacing: .12em;
}
@media (max-width: 640px) {
  .lb-prev, .lb-next { width: 44px; height: 44px; }
  .lb-img { max-width: 94vw; }
}

/* ---- responsive ---- */
@media (max-width: 880px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split .figure { order: -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .spec-cols { columns: 1; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .g-wide { grid-column: span 2; }
  .g-tall { grid-row: span 1; }
  .refit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  nav.links { display: none; }
  .hero { align-items: flex-start; min-height: calc(100svh - 62px); padding: 0; }
  .hero .wrap { padding: 2.5rem 0; }
  .hero .sub { max-width: 32ch; }
  .hero .lead { margin-top: .9rem; font-size: 1rem; max-width: 32ch; }
  .stats { margin-top: 1.5rem; padding-top: 1.2rem; gap: 1rem 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
