/* ═══════════════════════════════════════════════════════════
   MARETEMPUS — Deep Water Editorial
   Abyss navy · ivory · brass — Cormorant Garamond / Jost
   ═══════════════════════════════════════════════════════════ */

:root {
  --abyss: #05101c;
  --ink: #0a1826;
  --panel: #0e2032;
  --ivory: #f1e9d8;
  --ivory-dim: rgba(241, 233, 216, 0.68);
  --ivory-faint: rgba(241, 233, 216, 0.56);
  --brass: #c6a96c;
  --brass-dim: rgba(198, 169, 108, 0.45);
  --steel: #8fb4d9;
  --bronze: #c98f5f;
  --coral: #e8756a;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", "Century Gothic", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  background: var(--abyss);
  color: var(--ivory);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-weight: 400; }

/* ── Reveal-on-scroll ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__sea { animation: none !important; }
  .ambassador img { transition: none; }
  .ambassador:hover img { transform: none; }
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  background: linear-gradient(180deg, rgba(5, 16, 28, 0.62), rgba(5, 16, 28, 0));
  transition: background 0.5s ease, padding 0.5s ease, box-shadow 0.5s ease;
}
.nav.is-scrolled {
  background: rgba(5, 16, 28, 0.92);
  backdrop-filter: blur(12px);
  padding: 0.9rem 3rem;
  box-shadow: 0 1px 0 rgba(198, 169, 108, 0.18);
}
.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--ivory);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.42em;
}
.nav__anchor { width: 0.85em; height: 1.15em; color: var(--brass); align-self: center; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.nav__links a {
  color: var(--ivory-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav__links a:hover,
.nav__links a:focus-visible { color: var(--brass); }
a:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 4px;
}
.nav__cta {
  border: 1px solid var(--brass-dim);
  padding: 0.55em 1.4em;
  color: var(--ivory) !important;
}
.nav__cta:hover { background: var(--brass); color: var(--abyss) !important; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: max(100svh, 40rem);
  overflow: hidden;
}
.hero__sea {
  position: absolute;
  inset: -4%;
  background: url("../assets/atlantic-master-hero.jpg") center center / cover no-repeat;
  animation: kenburns 30s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(5, 16, 28, 0.55) 0%,
    rgba(5, 16, 28, 0.12) 30%,
    rgba(5, 16, 28, 0.18) 55%,
    rgba(5, 16, 28, 0.96) 100%);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hero__corner { position: absolute; z-index: 2; bottom: 3rem; }
.hero__corner--left { left: 3.2rem; max-width: 24rem; text-align: left; }
.hero__corner--right { right: 3.2rem; text-align: right; }
.hero__eyebrow {
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--brass);
  text-shadow: 0 1px 14px rgba(5, 16, 28, 0.9);
}
.hero__tagline {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--ivory);
  text-shadow: 0 1px 18px rgba(5, 16, 28, 0.9);
}
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 2.6em;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.btn--ghost {
  color: var(--ivory);
  border: 1px solid var(--brass-dim);
}
.btn--ghost:hover,
.btn--ghost:focus-visible { background: var(--brass); border-color: var(--brass); color: var(--abyss); }


/* ── Section scaffolding ──────────────────────────────────── */
.section { padding: 8.5rem 0 7rem; position: relative; }
.section__inner { max-width: 74rem; margin: 0 auto; padding: 0 2rem; }
.section__inner--narrow { max-width: 52rem; text-align: center; }
.chapter {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.8rem;
}
.section__inner--narrow .chapter { text-align: center; }
.section__title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.18;
  max-width: 30ch;
}
.section__inner--narrow .section__title { margin: 0 auto; }

/* ── La Maison ────────────────────────────────────────────── */
.maison { padding-top: 9rem; }
.maison__lede {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.2;
  margin-bottom: 2.4rem;
}
.maison__text {
  font-size: 1.18rem;
  line-height: 1.85;
  color: var(--ivory-dim);
  text-align: left;
}
.maison__text::first-letter {
  font-size: 3.1em;
  float: left;
  line-height: 0.82;
  padding: 0.08em 0.12em 0 0;
  color: var(--brass);
}
.maison__rule {
  width: 64px;
  height: 1px;
  background: var(--brass-dim);
  margin: 3.4rem auto 0;
}

/* ── Heritage / timeline ──────────────────────────────────── */
.heritage {
  max-width: 74rem;
  margin: 5.5rem auto 0;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 4.5rem;
  align-items: start;
}
.heritage__portrait img {
  border: 1px solid var(--brass-dim);
  padding: 10px;
  background: rgba(241, 233, 216, 0.03);
}
.heritage__portrait figcaption {
  margin-top: 1rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  text-align: center;
}
.timeline { list-style: none; border-left: 1px solid rgba(198, 169, 108, 0.28); }
.timeline__item { position: relative; padding: 0 0 2.8rem 2.4rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
}
.timeline__year {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  color: var(--brass);
}
.timeline__item h3 { font-size: 1.45rem; margin: 0.3rem 0 0.4rem; }
.timeline__item p { color: var(--ivory-dim); font-size: 1.02rem; line-height: 1.7; }

/* ── Collections ──────────────────────────────────────────── */
.section--collections { background: var(--ink); padding-bottom: 2rem; }
.section--collections .section__inner { text-align: center; }
.section--collections .section__title { margin: 0 auto; }

.collection {
  max-width: 82rem;
  margin: 6.5rem auto 0;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 4rem;
  align-items: center;
}
.collection--flip .collection__media { order: 2; }
.collection--flip .collection__body { order: 1; }
.collection__media img {
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.collection__media--plate {
  position: relative;
  max-width: 27rem;
  justify-self: center;
  width: 100%;
}
.collection__media--plate img { border-radius: 3px; }
.collection__media--plate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px;
  box-shadow: inset 0 0 64px 30px rgba(10, 24, 38, 0.85);
  pointer-events: none;
}
.collection__kicker {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.74rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1.1rem;
}
.collection__kicker--bronze { color: var(--bronze); }
.collection__kicker--coral { color: var(--coral); }
.collection__headline { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.25; margin-bottom: 1.4rem; }
.collection__copy { color: var(--ivory-dim); font-size: 1.08rem; line-height: 1.8; margin-bottom: 2rem; }

.specs { list-style: none; border-top: 1px solid rgba(241, 233, 216, 0.12); margin-bottom: 2.2rem; text-align: left; }
.specs li {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.72em 0;
  border-bottom: 1px solid rgba(241, 233, 216, 0.12);
  font-size: 0.98rem;
  color: var(--ivory);
}
.specs li span {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  padding-top: 0.35em;
  flex: none;
}
.collection__price {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.15rem;
  letter-spacing: 0.3em;
  color: var(--brass);
}
.collection__body { text-align: left; }
.collection__body--center { text-align: center; max-width: 44rem; margin: 0 auto; }

.collection--indian {
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 6rem;
}
.collection__media--wide img { width: 100%; }

/* ── Manufacture ──────────────────────────────────────────── */
.section--manufacture { background: var(--abyss); }
.section--manufacture .section__inner { text-align: center; }
.section--manufacture .section__title { margin: 0 auto; }

.manufacture__movement {
  max-width: 82rem;
  margin: 5rem auto 0;
  padding: 0 2rem;
}
.manufacture__movement img { width: 100%; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.manufacture__movement figcaption {
  margin-top: 1.1rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  text-align: center;
}
.manufacture__grid {
  max-width: 74rem;
  margin: 5rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 4.5rem;
  align-items: center;
}
.manufacture__copy p { font-size: 1.14rem; line-height: 1.85; color: var(--ivory-dim); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem 2rem; }
.stats dt {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 2.3rem;
  letter-spacing: 0.06em;
  color: var(--brass);
}
.stats dd { font-size: 0.98rem; color: var(--ivory-dim); margin-top: 0.3rem; }
.manufacture__aerial { max-width: 82rem; margin: 0 auto; padding: 0 2rem; }
.manufacture__aerial img { width: 100%; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }

/* ── Ambassadors ──────────────────────────────────────────── */
.section--ambassadors { background: var(--ink); }
.section--ambassadors .section__inner { text-align: center; }
.section--ambassadors .section__title { margin: 0 auto; }
.ambassadors {
  max-width: 82rem;
  margin: 4.5rem auto 0;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.ambassador { position: relative; overflow: hidden; }
.ambassador img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 1.6s var(--ease);
}
.ambassador:hover img { transform: scale(1.045); }
.ambassador__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3.2rem 2rem 1.6rem;
  background: linear-gradient(transparent, rgba(5, 16, 28, 0.92));
}
.ambassador__caption h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.ambassador__caption p { color: var(--ivory-dim); font-size: 0.98rem; margin-top: 0.3rem; }

/* ── The Swell (game) ─────────────────────────────────────── */
.section--swell { background: var(--ink); }
.swell__text {
  margin-top: 2rem;
  font-size: 1.14rem;
  line-height: 1.85;
  color: var(--ivory-dim);
}
.swell__stage {
  position: relative;
  max-width: 62rem;
  margin: 4rem auto 0;
  aspect-ratio: 16 / 7;
  border: 1px solid rgba(198, 169, 108, 0.3);
  background: var(--abyss);
  overflow: hidden;
}
.swell__stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: pointer;
}
.swell__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background: rgba(5, 16, 28, 0.84);
  backdrop-filter: blur(3px);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.swell__overlay--hidden { opacity: 0; visibility: hidden; }
.swell__overlay-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--ivory);
}
.swell__overlay-sub {
  margin-top: 0.9rem;
  max-width: 34rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.swell__overlay-sub strong { color: var(--brass); font-weight: 400; }
.swell__overlay .btn { margin-top: 1.8rem; }

@media (max-width: 700px) {
  .swell__stage { aspect-ratio: 4 / 3; margin-top: 2.5rem; }
}

/* ── Visit ────────────────────────────────────────────────── */
.section--visit { background: var(--abyss); }
.visit__text {
  margin-top: 2rem;
  font-size: 1.14rem;
  line-height: 1.85;
  color: var(--ivory-dim);
}
.visit__cards {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  text-align: center;
}
.visit__card {
  border: 1px solid rgba(198, 169, 108, 0.25);
  padding: 2.4rem 1.6rem;
  background: rgba(241, 233, 216, 0.02);
}
.visit__card h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.visit__card p { color: var(--ivory-dim); font-size: 1rem; line-height: 1.75; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(198, 169, 108, 0.2);
  padding: 4.5rem 2rem 3.5rem;
  text-align: center;
  background: var(--abyss);
}
.footer__lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  font-family: var(--sans);
  font-weight: 200;
  font-size: 1.5rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
}
.footer__anchor { width: 0.7em; height: 0.95em; color: var(--brass); }
.footer__motto {
  margin-top: 1.2rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--brass);
}
.footer__line { margin-top: 1.6rem; color: var(--ivory-dim); font-size: 0.98rem; }
.footer__copyright {
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ivory-faint);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 700px) {
  .hero__corner--left {
    left: 1.5rem; right: 1.5rem; bottom: 7.6rem;
    max-width: none; text-align: center;
  }
  .hero__corner--right { left: 1.5rem; right: 1.5rem; bottom: 2.2rem; text-align: center; }
}

@media (max-width: 960px) {
  .nav { padding: 1rem 1.2rem; flex-wrap: wrap; gap: 0.6rem 1rem; }
  .nav.is-scrolled { padding: 0.7rem 1.2rem; }
  .nav__brand { font-size: 0.9rem; letter-spacing: 0.3em; }
  .nav__links { gap: 1rem; font-size: 0.58rem; letter-spacing: 0.16em; flex-wrap: wrap; }
  .nav__cta { padding: 0.45em 0.9em; }
  .heritage { grid-template-columns: 1fr; gap: 3.5rem; }
  .heritage__portrait { max-width: 26rem; margin: 0 auto; }
  .collection { grid-template-columns: 1fr; gap: 2.6rem; margin-top: 5rem; }
  .collection--flip .collection__media { order: 0; }
  .collection--flip .collection__body { order: 1; }
  .manufacture__grid { grid-template-columns: 1fr; gap: 3rem; }
  .ambassadors { grid-template-columns: 1fr; }
  .visit__cards { grid-template-columns: 1fr; }
  .section { padding: 5.5rem 0 4.5rem; }
}
