:root {
  --ink: #0b1c28;
  --foam: #e8f1f4;
  --mist: #b7c9d2;
  --sea-deep: #062736;
  --sand: #d4a574;
  --white: #f7fafb;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Manrope", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--foam);
  background: var(--sea-deep);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

p {
  margin: 0;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding:
    calc(1.25rem + env(safe-area-inset-top, 0px))
    calc(clamp(1.25rem, 4vw, 3rem) + env(safe-area-inset-right, 0px))
    1.25rem
    calc(clamp(1.25rem, 4vw, 3rem) + env(safe-area-inset-left, 0px));
  background: linear-gradient(to bottom, rgba(6, 39, 54, 0.85), transparent);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.topbar.is-scrolled {
  background: rgba(6, 39, 54, 0.92);
  backdrop-filter: blur(12px);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
}

.topbar__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding:
    calc(5.5rem + env(safe-area-inset-top, 0px))
    clamp(1.25rem, 4vw, 3rem)
    calc(clamp(3rem, 8vh, 5rem) + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  object-position: center 35%;
  animation: drift 28s ease-in-out infinite alternate;
  transform: scale(1.08);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 39, 54, 0.35) 0%, rgba(6, 39, 54, 0.15) 35%, rgba(6, 39, 54, 0.72) 70%, rgba(6, 39, 54, 0.96) 100%),
    linear-gradient(90deg, rgba(6, 39, 54, 0.55) 0%, transparent 45%);
}

.hero__horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(to top, var(--sea-deep), transparent);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  animation: rise 1.1s var(--ease) both;
}

.hero__mark {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
  animation: rise 1.1s var(--ease) 0.1s both;
}

.hero__brand {
  font-size: clamp(3.25rem, 16vw, 9.5rem);
  letter-spacing: 0.04em;
  color: var(--white);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  animation: rise 1.2s var(--ease) 0.18s both;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.hero__lede {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--mist);
  animation: rise 1.2s var(--ease) 0.28s both;
}

.hero__scroll {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(3rem, 8vh, 5rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0.7;
}

.hero__scroll-line {
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(to bottom, var(--sand), transparent);
  animation: pulse-line 2.4s ease-in-out infinite;
}

.fleet {
  padding: clamp(4rem, 10vh, 6rem) clamp(1.25rem, 4vw, 3rem) clamp(4rem, 10vh, 7rem);
}

.section-head {
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  max-width: 36rem;
}

.section-head h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.section-head p:last-child {
  color: var(--mist);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(140px, 18vw);
  gap: 0.75rem;
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--ink);
  cursor: zoom-in;
  color: inherit;
  font: inherit;
  text-align: left;
}

.gallery__item:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}

.gallery__item--hero {
  grid-column: span 8;
  grid-row: span 2;
}

.gallery__item--tall {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 8;
  grid-row: span 1;
}

.gallery__item--mid {
  grid-column: span 6;
  grid-row: span 1;
}

.gallery__item:not(.gallery__item--hero):not(.gallery__item--tall):not(.gallery__item--wide):not(.gallery__item--mid) {
  grid-column: span 4;
  grid-row: span 1;
}

.gallery__item img {
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
  will-change: transform;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 39, 54, 0.78) 0%,
    rgba(6, 39, 54, 0.2) 42%,
    transparent 70%
  );
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.gallery__caption {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transform: translateY(6px);
  opacity: 0.92;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.gallery__item:hover .gallery__caption,
.gallery__item:focus-visible .gallery__caption {
  transform: translateY(0);
  opacity: 1;
}

.gallery__index {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--sand);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding:
    calc(4.5rem + env(safe-area-inset-top, 0px))
    calc(clamp(0.75rem, 3vw, 2rem) + env(safe-area-inset-right, 0px))
    calc(2rem + env(safe-area-inset-bottom, 0px))
    calc(clamp(0.75rem, 3vw, 2rem) + env(safe-area-inset-left, 0px));
  background: rgba(4, 22, 32, 0.94);
  backdrop-filter: blur(10px);
  touch-action: none;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  margin: 0;
  max-height: calc(100dvh - 7rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.lightbox__figure img {
  width: auto;
  height: auto;
  max-width: min(1100px, 92vw);
  max-height: calc(100dvh - 10rem);
  object-fit: contain;
}

.lightbox__figure figcaption {
  margin-top: 1rem;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  border: 1px solid rgba(183, 201, 210, 0.28);
  background: rgba(247, 250, 251, 0.05);
  color: var(--foam);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.lightbox__close {
  position: absolute;
  top: calc(1rem + env(safe-area-inset-top, 0px));
  right: calc(1rem + env(safe-area-inset-right, 0px));
  z-index: 2;
  padding: 0.7rem 1rem;
}

.lightbox__nav {
  padding: 1.1rem 0.85rem;
  align-self: center;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(247, 250, 251, 0.12);
  border-color: var(--sand);
  color: var(--sand);
}

.lightbox__controls {
  display: none;
}

.location {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, #0a3548 0%, var(--sea-deep) 55%, #083041 100%);
}

.location__copy h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}

.location__copy address {
  font-style: normal;
  color: var(--foam);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.text-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
  border-bottom: 1px solid rgba(212, 165, 116, 0.4);
  padding-bottom: 0.15rem;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.text-link:hover {
  color: var(--white);
  border-color: var(--white);
}

.location__map {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(183, 201, 210, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.location__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(1.05) saturate(0.85);
}

.footer {
  padding:
    2.5rem
    clamp(1.25rem, 4vw, 3rem)
    calc(3rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(183, 201, 210, 0.12);
  background: var(--sea-deep);
  text-align: center;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.footer p {
  color: var(--mist);
  font-size: 0.9rem;
}

.footer__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--mist);
}

.footer__contact a {
  color: var(--foam);
  border-bottom: 1px solid rgba(232, 241, 244, 0.3);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.footer__contact a:hover {
  color: var(--sand);
  border-color: var(--sand);
}

.footer__address {
  margin: 1rem auto 0;
  max-width: 22rem;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--mist);
}

.footer__meta {
  margin-top: 1.25rem;
  font-size: 0.8rem !important;
  opacity: 0.7;
}

.footer__credit {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--mist);
  opacity: 0.75;
}

.footer__credit a {
  color: var(--foam);
  border-bottom: 1px solid rgba(232, 241, 244, 0.25);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.footer__credit a:hover {
  color: var(--sand);
  border-color: var(--sand);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: scale(1.08) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-1.5%, -1%);
  }
}

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.85);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(160px, 28vw);
  }

  .gallery__item--hero {
    grid-column: span 6;
    grid-row: span 2;
  }

  .gallery__item--tall {
    grid-column: span 3;
    grid-row: span 2;
  }

  .gallery__item--wide {
    grid-column: span 6;
  }

  .gallery__item--mid {
    grid-column: span 3;
  }

  .gallery__item:not(.gallery__item--hero):not(.gallery__item--tall):not(.gallery__item--wide):not(.gallery__item--mid) {
    grid-column: span 3;
  }

  .location {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .location__map {
    min-height: 0;
    aspect-ratio: 4 / 3;
    order: -1;
  }
}

@media (max-width: 700px) {
  .topbar {
    padding-top: calc(0.9rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.9rem;
  }

  .logo {
    font-size: 1.15rem;
  }

  .topbar__tag {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .hero {
    min-height: 92svh;
    align-items: end;
    padding-bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px));
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(6, 39, 54, 0.45) 0%, rgba(6, 39, 54, 0.2) 30%, rgba(6, 39, 54, 0.82) 68%, rgba(6, 39, 54, 0.98) 100%),
      linear-gradient(90deg, rgba(6, 39, 54, 0.35) 0%, transparent 55%);
  }

  .hero__mark {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    max-width: 100%;
  }

  .hero__brand {
    letter-spacing: 0.02em;
    line-height: 0.95;
  }

  .hero__lede {
    margin-top: 1rem;
    font-size: 0.98rem;
    max-width: 100%;
  }

  .hero__scroll {
    display: none;
  }

  .fleet,
  .location {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-head h2,
  .location__copy h2 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .location__copy address {
    font-size: 0.98rem;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(150px, 42vw);
    gap: 0.55rem;
  }

  .gallery__item--hero {
    grid-column: 1 / -1;
    grid-row: span 2;
    min-height: 220px;
  }

  .gallery__item--tall,
  .gallery__item--wide,
  .gallery__item--mid,
  .gallery__item:not(.gallery__item--hero):not(.gallery__item--tall):not(.gallery__item--wide):not(.gallery__item--mid) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery__item--wide {
    grid-column: 1 / -1;
  }

  .gallery__caption {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    gap: 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    transform: none;
    opacity: 1;
  }

  .gallery__index {
    font-size: 0.95rem;
  }

  .gallery__item img {
    transition: none;
  }

  .gallery__item:hover img,
  .gallery__item:focus-visible img {
    transform: none;
    filter: none;
  }

  .lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    align-content: stretch;
    padding:
      calc(4.25rem + env(safe-area-inset-top, 0px))
      1rem
      calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .lightbox__nav {
    display: none;
  }

  .lightbox__figure {
    max-height: none;
    height: 100%;
  }

  .lightbox__figure img {
    max-width: 100%;
    max-height: calc(100dvh - 11rem);
  }

  .lightbox__controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 0.75rem;
  }

  .lightbox__controls .lightbox__nav {
    display: block;
    width: 100%;
    padding: 0.95rem 0.75rem;
  }

  .location__map {
    aspect-ratio: 1 / 1;
    max-height: 70vw;
    min-height: 260px;
  }

  .footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer__contact {
    flex-direction: column;
    gap: 0.85rem;
  }

  .footer__contact span[aria-hidden="true"] {
    display: none;
  }

  .footer__contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.15rem 0;
    word-break: break-word;
  }

  .footer__address {
    padding: 0 0.5rem;
  }
}

@media (max-width: 380px) {
  .hero__brand {
    font-size: 2.85rem;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(200px, 62vw);
  }

  .gallery__item--hero,
  .gallery__item--wide,
  .gallery__item--tall,
  .gallery__item--mid,
  .gallery__item:not(.gallery__item--hero):not(.gallery__item--tall):not(.gallery__item--wide):not(.gallery__item--mid) {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__img,
  .hero__scroll-line,
  .hero__content,
  .hero__mark,
  .hero__brand,
  .hero__lede {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gallery__item img,
  .gallery__caption {
    transition: none;
  }
}
