/* Hallmark v2.0.0 | custom direction: yacht club noir | genre: nocturnal catalogue | shape: type-and-plate cover, gallery mosaic, vessel sheet, photo interlude, contact finale | signature: brass hairlines and one lit photograph on near-black | dials: variance 5, motion 3, density 3 */
/* Critique: ink-black ground, bone text and a single brass accent; Newsreader display with Instrument Sans text; sharp corners; dark theme held throughout. Photographs are dimmed a touch so they sit in the dark rather than glaring out of it. Waivers: the gallery is intentionally photo-led because the brief is a vessel photo gallery; the mobile hero stacks the photograph so the whole boat stays visible. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --base: #0a1013;
  --surface: #131c1f;
  --text: #f1ece1;
  --text-soft: #b8b5a9;
  --text-faint: #8f9189;
  --line: rgba(241, 236, 225, 0.14);
  --line-strong: rgba(241, 236, 225, 0.3);
  --brass: #c3a06b;
  --sea: #05090b;
  --text-bright: #f1ece1;
  --text-bright-85: rgba(241, 236, 225, 0.85);
  --text-bright-70: rgba(241, 236, 225, 0.7);
  --text-bright-50: rgba(241, 236, 225, 0.58);
  --line-on-dark: rgba(241, 236, 225, 0.22);
  --brass-line: rgba(195, 160, 107, 0.42);
  --overlay-area: linear-gradient(180deg, rgba(4, 8, 10, 0.14) 0%, rgba(4, 8, 10, 0.42) 38%, rgba(4, 8, 10, 0.9) 100%), linear-gradient(90deg, rgba(4, 8, 10, 0.56) 0%, rgba(4, 8, 10, 0.3) 42%, rgba(4, 8, 10, 0) 74%);
  --shadow-panel: 0 24px 60px rgba(0, 0, 0, 0.6);
  --backdrop: rgba(5, 9, 11, 0.96);
  --focus-on-photo: #f1ece1;
  --focus: #c3a06b;
  --font-display: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --container: 1320px;
  --gutter: clamp(20px, 4.6vw, 72px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 0px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--base);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--text);
  color: var(--base);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--text);
  color: var(--base);
  font-size: 0.85rem;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- Type ---------- */
.label {
  margin: 0;
  color: var(--text-faint);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
}

.label::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  margin-right: 10px;
  vertical-align: 3px;
  background: var(--brass);
}

.label--light {
  color: var(--text-bright-70);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  min-width: 0;
}

p {
  text-wrap: pretty;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--text);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: var(--base);
  color: var(--text);
  border-bottom-color: var(--line);
}

.site-header:has(.mobile-menu[open]) {
  background: var(--base);
  color: var(--text);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(100% - (var(--gutter) * 2), 1440px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.primary-nav a {
  position: relative;
  padding-block: 6px;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.primary-nav .nav-contact {
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
}

.primary-nav .nav-contact::after {
  display: none;
}

/* Mobile menu */
.mobile-menu {
  display: none;
}

.menu-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 10px;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.menu-icon::before {
  top: 1px;
}

.menu-icon::after {
  top: 8px;
}

.mobile-menu[open] .menu-icon::before {
  top: 4px;
  transform: rotate(45deg);
}

.mobile-menu[open] .menu-icon::after {
  top: 4px;
  transform: rotate(-45deg);
}

.mobile-panel {
  position: fixed;
  top: var(--header-h);
  right: 0;
  left: 0;
  max-height: calc(100svh - var(--header-h));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 8px var(--gutter) 28px;
  background: var(--surface);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
  animation: panel-in 0.35s var(--ease) both;
}

.mobile-panel a {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mobile-panel a:last-child {
  border-bottom: 0;
}

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 26px;
  background: var(--text);
  color: var(--base);
  border: 1px solid var(--text);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.button:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--base);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.text-link:hover {
  color: var(--brass);
}

/* ---------- Hero ---------- */
.hero-sentinel {
  height: 1px;
}

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(26px, 3.4vw, 50px));
  padding-bottom: clamp(48px, 6vw, 84px);
  background: var(--base);
  color: var(--text);
}

.hero-inner {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.hero-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.hero-place {
  margin: 0;
  color: var(--text-faint);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: right;
}

.hero-title {
  margin: clamp(28px, 3.6vw, 48px) 0 clamp(32px, 4vw, 56px);
  color: var(--text);
  font-size: clamp(2.9rem, 6vw, 5.6rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.032em;
}

.hero-title span {
  display: block;
}

.hero-break {
  display: none;
}

.hero-body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  grid-column: 1 / 6;
  padding-top: 10px;
}

.hero-lede {
  max-width: 34ch;
  margin: 0 0 34px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.1vw, 1.16rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: auto 0 0;
  padding: 16px 0 2px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  list-style: none;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-facts li + li::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--line-strong);
}

.hero-figure {
  grid-column: 7 / 13;
  margin: 0;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 58%;
  background: var(--surface);
  filter: brightness(0.9) saturate(0.86);
  animation: hero-in 2.4s var(--ease) both;
}

.hero-figure figcaption {
  margin-top: 12px;
  color: var(--text-faint);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: right;
}

.hero :focus-visible {
  outline-color: var(--focus);
}

.js .hero-title,
.js .hero-lede,
.js .hero-actions {
  animation: rise 0.9s var(--ease) both;
}

.js .hero-title {
  animation-delay: 0.18s;
}

.js .hero-lede {
  animation-delay: 0.3s;
}

.js .hero-actions {
  animation-delay: 0.4s;
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(72px, 9.5vw, 128px);
  border-top: 1px solid var(--line);
}

.gallery {
  border-top-color: var(--brass-line);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  margin-bottom: clamp(48px, 6.5vw, 84px);
}

.section-head > .label {
  grid-column: 1 / 3;
  padding-top: 8px;
}

.section-title-wrap {
  grid-column: 3 / 8;
  min-width: 0;
}

.section-head h2 {
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  line-height: 1.02;
}

.section-meta {
  margin: 14px 0 0;
  color: var(--text-faint);
  font-size: 0.8rem;
  line-height: 1.45;
}

.section-intro {
  grid-column: 9 / 13;
  max-width: 46ch;
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(34px, 4vw, 56px) clamp(16px, 2vw, 28px);
  align-items: start;
}

.shot {
  margin: 0;
  min-width: 0;
}

.span-7 {
  grid-column: span 7;
}

.span-5 {
  grid-column: span 5;
}

.span-4 {
  grid-column: span 4;
}

.shot-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  cursor: zoom-in;
}

.span-7 .shot-media {
  aspect-ratio: 16 / 10;
}

.span-5 .shot-media {
  aspect-ratio: 8 / 7;
}

.shot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) saturate(0.9);
  transition: transform 1s var(--ease), filter 0.6s var(--ease);
}

.shot-media:hover img {
  filter: brightness(1) saturate(1);
  transform: scale(1.035);
}

.shot-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--text-bright-50);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.shot-media:hover::after {
  opacity: 1;
}

.shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.4;
}

.shot figcaption span:first-child {
  color: var(--text);
  font-weight: 500;
}

.shot figcaption span:last-child {
  color: var(--text-faint);
  text-align: right;
}

/* ---------- Vessel ---------- */
.copy-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.vessel-copy {
  grid-column: 3 / 11;
  max-width: 68ch;
  margin-bottom: clamp(56px, 7vw, 88px);
}

.vessel-copy p {
  margin: 0 0 1.15em;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.72;
}

.vessel-copy p:first-child {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.9vw, 1.7rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.vessel-copy p:last-child {
  margin-bottom: 0;
}

.spec-plate {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--brass-line);
  border-bottom: 1px solid var(--brass-line);
}

.spec-highlight {
  padding: 30px 24px 28px;
  border-left: 1px solid var(--line);
}

.spec-highlight:first-child {
  padding-left: 0;
  border-left: 0;
}

.spec-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.6vw, 3.6rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.spec-unit {
  margin-left: 0.14em;
  color: var(--text-faint);
  font-family: var(--font-sans);
  font-size: 0.44em;
  font-weight: 400;
  letter-spacing: 0;
}

.spec-label {
  margin: 13px 0 0;
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.35;
}

.vessel-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 88px);
  margin-top: clamp(56px, 7vw, 88px);
}

.detail-block h3,
.hire-head h3 {
  margin-bottom: 26px;
  font-size: clamp(1.65rem, 2.2vw, 2.05rem);
  font-weight: 400;
  line-height: 1.1;
}

.detail-block h3::before,
.hire-head h3::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  margin-bottom: 18px;
  background: var(--brass);
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 36px;
  margin: 0;
}

.spec-list div {
  min-width: 0;
}

.spec-list dt {
  margin-bottom: 3px;
  color: var(--text-faint);
  font-size: 0.72rem;
  line-height: 1.4;
}

.spec-list dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 17px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.feature-list li::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--brass);
}

/* Hire */
.hire {
  margin-top: clamp(64px, 8vw, 104px);
  padding: clamp(32px, 5vw, 64px);
  background: var(--surface);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.hire-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(32px, 5vw, 72px);
  align-items: start;
}

.hire-head h3 {
  margin-bottom: 0;
}

.hire-head h3::before {
  margin-bottom: 18px;
}

.hire-head > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

.hire-statement {
  max-width: 18ch;
  margin: clamp(40px, 6vw, 64px) 0 clamp(36px, 5vw, 56px);
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.4vw, 4rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hire-terms {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.hire-terms li {
  padding: 22px 20px 0;
  border-left: 1px solid var(--line);
}

.hire-terms li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hire-terms h4 {
  margin-bottom: 8px;
  font-size: 1.16rem;
  font-weight: 400;
  line-height: 1.2;
}

.hire-terms p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* ---------- Cruising area ---------- */
.area {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(520px, 78vh, 860px);
  overflow: clip;
  background: var(--sea);
  color: var(--text-bright);
}

.area > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

.area::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-area);
}

.area-inner {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  padding-block: clamp(56px, 7vw, 88px);
}

.area h2 {
  max-width: 16ch;
  margin: 18px 0 20px;
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.area p {
  max-width: 52ch;
  margin: 0;
  color: var(--text-bright-85);
  font-size: 0.98rem;
  line-height: 1.65;
}

.area .area-note {
  max-width: 52ch;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line-on-dark);
  color: var(--text-bright-70);
  font-size: 0.82rem;
}

.area :focus-visible {
  outline-color: var(--focus-on-photo);
}

/* ---------- About ---------- */
.about-copy {
  grid-column: 3 / 10;
  max-width: 62ch;
}

.about-copy p {
  margin: 0 0 1.1em;
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.75;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* ---------- Contact ---------- */
.contact {
  margin-top: clamp(80px, 10vw, 140px);
  padding-top: clamp(60px, 8vw, 100px);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.contact-email-block {
  margin-top: 10px;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.contact-email {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.2vw, 3.7rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.contact-email:hover {
  border-bottom-color: var(--brass);
  color: var(--brass);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.contact-item {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.contact-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.contact-label {
  margin: 0 0 7px;
  color: var(--text-faint);
  font-size: 0.74rem;
}

.contact-item p:last-child {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 56px 34px;
  background: var(--sea);
  border-top: 1px solid var(--brass-line);
}

.footer-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer-nav a {
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text-soft);
  transition: color 0.3s var(--ease);
}

.footer-nav a:hover {
  color: var(--brass);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.74rem;
  line-height: 1.5;
}

/* ---------- Lightbox ---------- */
html.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--sea);
  color: var(--text-bright);
}

.lightbox::backdrop {
  background: var(--backdrop);
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
  animation: lightbox-in 0.35s var(--ease) both;
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 48px);
}

.lightbox-count {
  margin: 0;
  color: var(--text-bright-50);
  font-size: 0.76rem;
}

.lightbox-close {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--text-bright-85);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.lightbox-close:hover {
  color: var(--text-bright);
}

.lightbox-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px clamp(16px, 3vw, 40px);
}

.lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 48px) max(24px, env(safe-area-inset-bottom));
}

.lightbox-meta {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.lightbox-caption {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 300;
  line-height: 1.3;
}

.lightbox-vessel {
  margin: 5px 0 0;
  color: var(--text-bright-50);
  font-size: 0.72rem;
}

.lightbox-nav {
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--text-bright-70);
  font-size: 0.78rem;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.lightbox-nav:hover {
  color: var(--text-bright);
}

.lightbox :focus-visible {
  outline-color: var(--focus-on-photo);
}

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js .gallery-grid .shot:nth-child(3n + 2) {
  transition-delay: 0.07s;
}

.js .gallery-grid .shot:nth-child(3n + 3) {
  transition-delay: 0.14s;
}

/* ---------- Animations ---------- */
@keyframes hero-in {
  from {
    transform: scale(1.045);
  }
  to {
    transform: scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes lightbox-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .section-head > .label {
    grid-column: 1 / 3;
  }

  .section-title-wrap {
    grid-column: 3 / 9;
  }

  .section-intro {
    grid-column: 3 / 11;
    margin-top: 20px;
  }

  .vessel-copy {
    grid-column: 3 / 11;
  }

  .about-copy {
    grid-column: 3 / 10;
  }}

@media (max-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .span-7,
  .span-5,
  .span-4 {
    grid-column: span 1;
  }

  .gallery-grid .span-7 {
    grid-column: span 2;
  }

  .span-7 .shot-media {
    aspect-ratio: 16 / 9;
  }

  .span-5 .shot-media {
    aspect-ratio: 4 / 3;
  }

  .spec-plate {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .spec-highlight {
    padding-inline: 20px;
  }

  .spec-highlight:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
  }

  .spec-highlight:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .vessel-details {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hire-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hire-terms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 0;
  }

  .hire-terms li {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .hire-terms li:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
  }

  .hire-terms li:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .contact-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 32px;
  }

  .contact-item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 64px;
  }

  .site-header {
    background: var(--base);
    color: var(--text);
    border-bottom-color: var(--line);
  }

  .site-header::before {
    opacity: 0;
  }

  .site-header :focus-visible {
    outline-color: var(--focus);
  }

  .primary-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 10px 12px;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-h) + 20px);
    padding-bottom: 44px;
  }

  .hero-title {
    margin: 26px 0 30px;
    font-size: clamp(2.5rem, 8.6vw, 3.8rem);
  }

  .hero-body {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }

  .hero-copy {
    grid-column: 1 / -1;
    padding-bottom: 0;
  }

  .hero-facts {
    margin-top: 30px;
  }

  .hero-lede {
    max-width: 44ch;
  }

  .hero-figure {
    grid-column: 1 / -1;
  }

  .hero-figure img {
    aspect-ratio: 16 / 10;
  }

  .hero-figure figcaption {
    text-align: left;
  }

  .section-head > .label,
  .section-title-wrap,
  .section-intro,
  .vessel-copy,
  .about-copy {
    grid-column: 1 / -1;
  }

  .section-intro {
    margin-top: 4px;
  }

  .section-head {
    gap: 18px;
  }

  .section-head > .label {
    padding-top: 0;
  }

  .vessel-copy {
    margin-bottom: 48px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .hero-figure img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 680px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9.6vw, 3.4rem);
  }

  .hero-break {
    display: inline;
  }

  .hero-facts {
    gap: 8px 24px;
  }

  .hero-facts li {
    gap: 0;
  }

  .hero-facts li + li::before {
    display: none;
  }

  .section-head h2 {
    font-size: clamp(2.2rem, 9.6vw, 2.6rem);
  }

  .span-7,
  .gallery-grid .span-7 {
    grid-column: 1 / -1;
  }

  .shot-media,
  .span-5 .shot-media {
    aspect-ratio: 4 / 3;
  }

  .span-7 .shot-media {
    aspect-ratio: 16 / 10;
  }

  .area {
    min-height: clamp(430px, 60vh, 560px);
  }

  .area h2 {
    max-width: 14ch;
  }

  .spec-plate {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec-highlight {
    padding: 22px 16px 20px;
  }

  .spec-highlight:nth-child(3n + 1) {
    border-left: 1px solid var(--line);
    padding-left: 16px;
  }

  .spec-highlight:nth-child(2n + 1) {
    padding-left: 0;
    border-left: 0;
  }

  .spec-highlight:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .spec-list,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .spec-list {
    gap: 16px;
  }

  .hire {
    padding: 28px 22px;
  }

  .hire-terms {
    grid-template-columns: 1fr;
  }

  .hire-terms li,
  .hire-terms li:nth-child(3n + 1) {
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hire-terms li:first-child {
    border-top: 0;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-item,
  .contact-item:nth-child(odd) {
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .contact-item:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .lightbox-stage {
    padding: 8px;
  }

  .lightbox-vessel {
    display: none;
  }

  .lightbox-foot {
    gap: 14px;
    padding-bottom: 20px;
  }

  .lightbox-meta {
    text-align: left;
  }

  .lightbox-caption {
    font-size: 0.92rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    margin-top: 30px;
  }
}

@media (max-width: 380px) {
  .button {
    padding-inline: 20px;
  }

  .contact-email {
    font-size: 1.28rem;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .hero-place {
    text-align: left;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-figure img {
    animation: none;
  }
}

/* ---------- No-script fallback ---------- */
.no-js .site-header {
  background: var(--base);
  color: var(--text);
  border-bottom-color: var(--line);
}

.no-js .site-header::before {
  opacity: 0;
}

.no-js .hero {
  min-height: calc(100svh - var(--header-h));
  padding-top: var(--header-h);
}
