:root {
  --navy: #071018;
  --ink: #0b1826;
  --panel: rgba(8, 16, 26, 0.94);
  --panel-strong: rgba(7, 14, 22, 0.96);
  --line: rgba(158, 197, 216, 0.35);
  --gold: #1e4d8c;
  --gold-soft: #9ec5d8;
  --ivory: #f3f7fb;
  --sail: #f6f3ea;
  --sea: #9ec5d8;
  --mist: #d5e4ee;
  --mute: rgba(158, 197, 216, 0.82);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --display: "Cinzel", "Times New Roman", serif;
  --sans: "Outfit", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.01em;
  overflow: hidden;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  height: 100dvh;
}

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  cursor: grab;
  touch-action: none;
}

#stage.is-dragging { cursor: grabbing; }

.vignette {
  display: none;
}

.horizon-glow {
  display: none;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.85rem;
  background: #050b11;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none;
}

.loader-mark {
  font-family: var(--display);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--ivory);
}

.loader p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--mist);
}

.loader-bar {
  width: 148px;
  height: 1px;
  background: rgba(30, 77, 140, 0.28);
  overflow: hidden;
}

.loader-bar span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--sea);
  animation: load 1.4s ease-in-out infinite;
}

@keyframes load {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.4rem 2rem 0;
  pointer-events: none;
  overflow: visible;
  min-height: 3.5rem;
}

.site-header > * { pointer-events: auto; }

.brand {
  text-decoration: none;
  color: #f3f7fb;
  display: grid;
  gap: 0.28rem;
}

.brand-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 600;
  color: #9ec5d8;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.18rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f3f7fb;
  text-shadow: 0 1px 10px rgba(7, 16, 24, 0.55);
}

.primary-nav {
  display: flex;
  gap: 0.15rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.92);
}

.primary-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sea);
  font: 400 0.68rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.7rem 0.95rem;
  cursor: pointer;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.primary-nav button:hover,
.primary-nav button:focus-visible {
  color: var(--ivory);
}

.primary-nav button[aria-pressed="true"] {
  color: var(--ivory);
  background: transparent;
}

main {
  position: relative;
  z-index: 4;
  height: 100dvh;
  pointer-events: none;
}

.sheet {
  position: absolute;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.sheet[hidden] { display: block !important; visibility: hidden; }

.sheet.is-active {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.sheet h1,
.sheet h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.96;
  margin: 0.25rem 0 0.9rem;
  color: var(--ivory);
}

.sheet h1 { font-size: clamp(2.4rem, 6vw, 5.2rem); }
.sheet h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sea);
  font-weight: 600;
}

.lede,
.sheet-intro,
.about-copy p,
.contact-details p {
  color: var(--mist);
  font-size: 1.02rem;
  line-height: 1.65;
}

.sheet-home {
  left: 6vw;
  bottom: 11vh;
  max-width: 720px;
  color: #0b2544;
}

.sheet-home .eyebrow {
  color: #d7e6ef;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(7, 16, 24, 0.45);
}

.sheet-home h1 {
  color: #f6f3ea;
  text-shadow:
    0 1px 0 rgba(7, 16, 24, 0.65),
    0 2px 16px rgba(7, 16, 24, 0.4);
}

.sheet-home .lede {
  color: #e4eef4;
  font-weight: 700;
  text-shadow: 0 1px 10px rgba(7, 16, 24, 0.5);
}

.sheet-home .btn.ghost {
  color: #0b2544;
  background: rgba(255, 255, 255, 0.88);
  border-color: #1e4d8c;
}

.sheet-side {
  top: 16vh;
  right: 4vw;
  width: min(540px, 42vw);
  max-height: 76vh;
  overflow: auto;
  padding: 1.6rem 1.6rem 1.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  -webkit-overflow-scrolling: touch;
}

#view-about {
  top: 11vh;
  right: 3vw;
  width: min(760px, 56vw);
  max-height: calc(100vh - 8.5rem);
  overflow: hidden;
  padding: 1.2rem 1.5rem 1.1rem;
}

#view-about h2 {
  margin: 0.1rem 0 0.65rem;
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
}

#view-about .about-layout {
  grid-template-columns: 128px 1fr;
  gap: 1rem;
}

#view-about .about-copy p {
  margin: 0 0 0.5rem;
  font-size: 0.94rem;
  line-height: 1.48;
}

#view-about blockquote {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  line-height: 1.36;
}

#view-about blockquote cite {
  margin-top: 0.28rem;
}

.sheet-left {
  right: auto;
  left: 4vw;
}

.sheet-wide {
  left: 4vw;
  right: 4vw;
  bottom: 8vh;
  max-height: 48vh;
  overflow: auto;
  padding: 1.3rem 1.4rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
}

.sheet-card {
  left: 50%;
  top: 50%;
  width: min(880px, 88vw);
  max-height: 78vh;
  overflow: auto;
  transform: translate(-50%, calc(-46% + 22px));
  padding: 1.8rem 1.9rem 1.5rem;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.sheet-card.is-active { transform: translate(-50%, -46%); }

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  appearance: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--ivory);
  font: 400 0.72rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.95rem 1.2rem;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn.gold {
  background: var(--gold);
  color: var(--ivory);
}

.btn.ghost:hover,
.btn.gold:hover { filter: brightness(1.08); }

.about-layout {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.1rem;
  align-items: start;
}

.portrait {
  margin: 0;
}

.portrait img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: saturate(0.88);
}

.portrait figcaption {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portrait span { color: var(--sea); }

.about-copy p { margin: 0 0 0.9rem; }

blockquote {
  margin: 0 0 1rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--sea);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ivory);
}

blockquote cite {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sea);
}

.vessel-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.vessel-open {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.vessel-open img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: saturate(0.9);
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.vessel-open:hover img,
.vessel-open:focus-visible img {
  transform: scale(1.03);
  filter: saturate(1);
}

.vessel-open div {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.1rem 0.2rem;
}

.vessel-open span {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sea);
}

.vessel-open strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ivory);
}

.steps {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
}

.steps span {
  font-family: var(--display);
  color: var(--sea);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  padding-top: 0.2rem;
}

.steps h3 {
  margin: 0 0 0.3rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--ivory);
}

.steps p {
  margin: 0;
  color: var(--mist);
  line-height: 1.55;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.6rem;
}

address {
  font-style: normal;
  line-height: 1.6;
  margin: 1rem 0;
}

a { color: var(--gold-soft); }

.contact-details a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.hours { color: var(--mute); }

.enquire-form {
  display: grid;
  gap: 0.7rem;
}

.enquire-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sea);
}

.enquire-form input,
.enquire-form textarea {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ivory);
  font: 300 1rem/1.4 var(--sans);
  padding: 0.75rem 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.enquire-form input:focus,
.enquire-form textarea:focus {
  outline: 1px solid var(--sea);
}

.form-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--mute);
}

.hint {
  position: fixed;
  left: 50%;
  bottom: 2.4rem;
  transform: translateX(-50%);
  z-index: 6;
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sea);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

body:not([data-view="home"]) .hint { opacity: 0; }

.site-footer {
  position: fixed;
  left: 2rem;
  right: 2rem;
  bottom: 0.85rem;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sea);
  pointer-events: none;
  padding-bottom: env(safe-area-inset-bottom);
}

.site-footer a {
  pointer-events: auto;
  text-decoration: none;
  color: var(--ivory);
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(4, 8, 12, 0.94);
  padding: 4.5rem 6vw 3rem;
  overflow: auto;
}

.lightbox-close {
  position: fixed;
  top: 1.3rem;
  right: 1.4rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ivory);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font: 400 0.68rem/1 var(--sans);
  padding: 0.65rem 0.85rem;
  cursor: pointer;
}

.lightbox-inner { max-width: 1100px; margin: 0 auto; }
.lightbox-inner h3 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  margin: 0 0 0.6rem;
}
.lightbox-inner h3 { color: var(--ivory); }
.lightbox-inner header p { max-width: 62ch; color: var(--mist); }

.lightbox-track {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.lightbox-track img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .site-header {
    z-index: 40;
    align-items: center;
    padding: 0.75rem 1rem;
    padding-top: max(0.75rem, env(safe-area-inset-top));
  }
  .brand-kicker {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }
  .brand-name {
    font-size: 0.98rem;
    letter-spacing: 0.16em;
  }
  .site-header {
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    background: linear-gradient(to bottom, rgba(7, 16, 24, 0.96), rgba(7, 16, 24, 0.82));
  }
  .primary-nav {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: flex-start;
    background: transparent;
    border: 0;
    padding: 0;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav::-webkit-scrollbar { display: none; }
  .primary-nav button {
    flex: 0 0 auto;
    padding: 0.55rem 0.7rem;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    min-height: 44px;
    background: transparent;
  }
  .primary-nav button[aria-pressed="true"] {
    background: transparent;
    color: #fff;
  }

  .hint { display: none; }
  .site-footer {
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.45rem;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    z-index: 6;
  }

  .sheet {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
  .sheet h1,
  .sheet h2 {
    font-size: 1.7rem;
    line-height: 1.12;
    margin: 0.15rem 0 0.65rem;
  }
  .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }
  .lede,
  .sheet-intro,
  .about-copy p,
  .contact-details p,
  .steps p {
    font-size: 16px;
    line-height: 1.45;
    overflow-wrap: break-word;
  }

  .sheet-home {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    max-width: none;
    padding: 1.1rem 1.1rem calc(2.6rem + env(safe-area-inset-bottom));
    background: rgba(7, 16, 24, 0.9);
    border-top: 1px solid var(--line);
    color: var(--ivory);
  }
  .sheet-home .eyebrow {
    color: var(--sea);
    text-shadow: none;
    letter-spacing: 0.12em;
  }
  .sheet-home h1 {
    color: var(--sail);
    text-shadow: none;
    font-size: 1.65rem;
  }
  .sheet-home .lede {
    color: var(--mist);
    font-weight: 600;
    font-size: 15px;
  }
  .home-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.1rem;
  }
  .home-actions .btn {
    width: 100%;
    text-align: center;
    min-height: 46px;
  }

  .sheet-side,
  .sheet-left,
  #view-about {
    left: 0.75rem;
    right: 0.75rem;
    top: calc(7.25rem + env(safe-area-inset-top));
    bottom: calc(2.4rem + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    max-height: none;
    overflow: auto;
    padding: 1rem 1rem 1.1rem;
  }
  #view-about h2 { font-size: 1.7rem; }
  .about-layout,
  #view-about .about-layout {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .portrait { max-width: 110px; }
  .about-copy,
  .sheet-intro,
  .steps,
  .contact-details,
  .enquire-form { min-width: 0; }

  .sheet-wide {
    left: 0.75rem;
    right: 0.75rem;
    top: calc(7.25rem + env(safe-area-inset-top));
    bottom: calc(2.4rem + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    max-height: none;
    padding: 1rem;
  }
  .vessel-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .vessel-open { min-height: 44px; }
  .vessel-open strong { font-size: 1.05rem; }
  .vessel-open span { letter-spacing: 0.08em; }

  .sheet-card,
  .sheet-card.is-active {
    left: 0.75rem;
    right: 0.75rem;
    top: calc(7.25rem + env(safe-area-inset-top));
    width: auto;
    max-width: none;
    bottom: calc(2.4rem + env(safe-area-inset-bottom));
    max-height: none;
    transform: none;
    padding: 1rem 1rem 1.1rem;
  }
  .contact-grid { grid-template-columns: 1fr; gap: 1rem; }
  .contact-details a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .enquire-form input,
  .enquire-form textarea {
    font-size: 16px;
    min-height: 44px;
  }
  .btn { min-height: 46px; }

  .lightbox { padding: 4.4rem 1rem 1.5rem; }
  .lightbox-close {
    top: max(0.8rem, env(safe-area-inset-top));
    right: 0.85rem;
    min-height: 44px;
  }
}

@media (max-width: 430px) {
  .about-layout,
  #view-about .about-layout {
    grid-template-columns: 1fr;
  }
  .portrait { max-width: 120px; }
  .sheet-home h1 { font-size: 1.5rem; }
  .site-footer span:first-child { display: none; }
  .site-footer { justify-content: flex-end; }
}

@media (max-width: 900px) and (orientation: landscape) {
  .brand-kicker { display: none; }
  .site-header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
  }
  .brand {
    flex: 0 0 auto;
    justify-content: center;
    min-height: 44px;
  }
  .primary-nav { width: auto; }
  .sheet-home {
    max-height: calc(100dvh - 3.75rem);
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
  .sheet-side,
  .sheet-left,
  #view-about,
  .sheet-wide,
  .sheet-card,
  .sheet-card.is-active {
    top: calc(4.5rem + env(safe-area-inset-top));
    bottom: calc(0.5rem + env(safe-area-inset-bottom));
    max-height: none;
  }
}

@media (pointer: coarse) {
  .primary-nav button { min-height: 44px; }
  .brand { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
