/* ═════════════════════════════════════════════
   BOB MARINUS — luxury pedal boat
   palette: abyss navy / copper / ivory / teak
   ═════════════════════════════════════════════ */

:root {
  --abyss: #04070d;
  --navy: #081120;
  --navy-2: #0b1830;
  --ivory: #f2ede3;
  --ivory-dim: rgba(242, 237, 227, 0.55);
  --copper: #c9946a;
  --copper-bright: #e8b285;
  --red: #e0301e;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Century Gothic', sans-serif;
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--abyss);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--copper); color: var(--abyss); }

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

a { color: inherit; text-decoration: none; }

/* ─── grain ─── */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 200;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -8%); }
  30% { transform: translate(3%, -12%); }
  50% { transform: translate(8%, 4%); }
  70% { transform: translate(-9%, 6%); }
  90% { transform: translate(2%, 9%); }
}

/* ─── preloader ─── */
.preloader {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
}
.preloader__curtain {
  position: absolute; left: 0; width: 100%; height: 50.5%;
  background: var(--abyss); z-index: -1;
}
.preloader__curtain--top { top: 0; }
.preloader__curtain--bottom { bottom: 0; }
.preloader__inner { text-align: center; }
.preloader__mark {
  font-family: var(--sans); font-weight: 200;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.35em; margin-right: -0.35em;
  color: var(--ivory);
}
.preloader__mark span { color: var(--copper); }
.preloader__line {
  width: min(260px, 50vw); height: 1px;
  background: rgba(242, 237, 227, 0.15);
  margin: 2.2rem auto 1.2rem;
  overflow: hidden;
}
.preloader__line span {
  display: block; height: 100%; width: 0%;
  background: var(--copper);
}
.preloader__count {
  font-size: 0.75rem; letter-spacing: 0.45em;
  color: var(--ivory-dim);
}

/* ─── nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem clamp(1.5rem, 4vw, 4rem);
  opacity: 0;
  transition: background 0.6s, backdrop-filter 0.6s;
}
.nav.is-scrolled {
  background: rgba(4, 7, 13, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav__logo-img { height: 44px; width: auto; }
.nav__links { display: flex; gap: 2.5rem; }
.nav__links a {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ivory-dim); position: relative;
  transition: color 0.4s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--copper);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-lux);
}
.nav__links a:hover { color: var(--ivory); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  border: 1px solid rgba(201, 148, 106, 0.5);
  padding: 0.75rem 1.6rem; border-radius: 999px;
  color: var(--copper-bright);
  position: relative; overflow: hidden;
  transition: color 0.45s var(--ease-lux), border-color 0.45s;
}
.nav__cta span { position: relative; z-index: 1; }
.nav__cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--copper);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-lux);
}
.nav__cta:hover { color: var(--abyss); border-color: var(--copper); }
.nav__cta:hover::before { transform: translateY(0); }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ─── shared section typography ─── */
.section-kicker {
  font-size: 0.7rem; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.6rem;
}
.section-kicker--red { color: var(--red); }
.section-title {
  font-family: var(--sans); font-weight: 200;
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 1.02; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.section-title em {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  text-transform: none; color: var(--copper-bright);
  letter-spacing: 0;
}
.section-sub {
  max-width: 44ch; font-size: 1.05rem; line-height: 1.8;
  color: var(--ivory-dim); margin-top: 2rem;
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#ocean { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero--fallback {
  background: url('../assets/water-texture.jpg') center / cover no-repeat var(--abyss);
}
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(4, 7, 13, 0.55) 100%),
    linear-gradient(to bottom, rgba(4, 7, 13, 0.5), transparent 25%, transparent 70%, var(--abyss) 100%);
}
.hero__content { position: relative; text-align: center; z-index: 2; padding: 0 1.5rem; }
.hero__kicker {
  font-size: 0.72rem; letter-spacing: 0.55em; text-transform: uppercase;
  color: var(--ivory-dim); margin-bottom: 2.4rem;
}
.hero__title {
  font-family: var(--sans); font-weight: 200;
  font-size: clamp(5.5rem, 22vw, 19rem);
  line-height: 0.9; letter-spacing: 0.14em; margin-right: -0.14em;
  color: var(--ivory);
}
.hero__title em { font-style: normal; color: var(--copper); }
.hero__title-line { display: inline-block; }
.hero__tagline {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  line-height: 1.6; color: var(--ivory);
  margin-top: 2.6rem; opacity: 0.9;
}
.hero__scroll {
  position: absolute; bottom: 2.6rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  z-index: 2;
}
.hero__scroll span {
  font-size: 0.62rem; letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--ivory-dim);
}
.hero__scroll-line {
  width: 1px; height: 56px; overflow: hidden;
  background: rgba(242, 237, 227, 0.12);
  position: relative;
}
.hero__scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--copper);
  animation: scrollLine 2.2s var(--ease-lux) infinite;
}
@keyframes scrollLine {
  0% { top: -100%; } 55% { top: 0; } 100% { top: 100%; }
}

/* ═══════════ MANIFESTO ═══════════ */
.manifesto {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20vh clamp(1.5rem, 6vw, 6rem);
  background: linear-gradient(var(--abyss), var(--navy) 50%, var(--abyss));
}
.manifesto__inner { max-width: 1100px; }
.manifesto__text {
  font-family: var(--sans); font-weight: 200;
  font-size: clamp(2rem, 5.2vw, 4.4rem);
  line-height: 1.25; text-transform: uppercase; letter-spacing: 0.02em;
  text-align: center;
}
.manifesto__text strong {
  font-weight: 400; color: var(--copper-bright);
}
.manifesto__text .w { opacity: 0.12; display: inline-block; }

/* ═══════════ SHOWCASE ═══════════ */
.showcase { position: relative; height: 260vh; }
.showcase__sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
}
.showcase__media {
  position: absolute; inset: 0;
}
.showcase__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.35);
  will-change: transform;
}
.showcase__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,7,13,0.85), transparent 45%);
}
.showcase__caption {
  position: absolute; bottom: 10vh; left: clamp(1.5rem, 6vw, 6rem);
  z-index: 2;
}
.showcase__caption-kicker {
  font-size: 0.7rem; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 1.4rem;
}
.showcase__caption-title {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.1;
}

/* ═══════════ FORMA ═══════════ */
.forma {
  padding: 22vh clamp(1.5rem, 6vw, 6rem) 16vh;
  background:
    radial-gradient(ellipse 90% 50% at 70% 30%, rgba(11, 24, 48, 0.7), transparent),
    var(--abyss);
}
.forma__head { max-width: 900px; }
.forma__stage {
  position: relative; margin: 12vh auto 0;
  max-width: 1000px; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
}
.forma__wire {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.forma__wire img {
  max-height: 100%; width: auto; max-width: 100%;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 60px rgba(201, 148, 106, 0.15));
}
.forma__scanline {
  position: absolute; left: 6%; right: 6%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  opacity: 0;
}
.forma__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(242, 237, 227, 0.08);
  border-top: 1px solid rgba(242, 237, 227, 0.08);
  border-bottom: 1px solid rgba(242, 237, 227, 0.08);
  margin-top: 16vh;
}
.stat {
  background: var(--abyss);
  padding: 3.4rem 2rem;
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--sans); font-weight: 200;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  color: var(--copper-bright);
  letter-spacing: 0.03em;
}
.stat__label {
  display: block; margin-top: 1.1rem;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  line-height: 1.9; color: var(--ivory-dim);
}
@media (max-width: 900px) {
  .forma__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════ DETTAGLI ═══════════ */
.dettagli {
  padding: 20vh 0 6vh;
  background: linear-gradient(var(--abyss), #060a12 40%, var(--abyss));
}
.dettagli__head {
  padding: 0 clamp(1.5rem, 6vw, 6rem);
  margin-bottom: 4vh;
}
.panel {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  align-items: center; gap: clamp(2rem, 6vw, 7rem);
  padding: 14vh clamp(1.5rem, 6vw, 6rem);
  min-height: 90vh;
}
.panel--reverse { direction: rtl; }
.panel--reverse > * { direction: ltr; }
.panel__media { position: relative; }
.panel__media > img {
  width: 100%; border-radius: 2px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
  clip-path: inset(12% 12% 12% 12%);
  transform: scale(1.12);
  will-change: transform, clip-path;
}
.panel__wire {
  position: absolute; right: -6%; bottom: -14%;
  width: 52%;
  border: 1px solid rgba(201, 148, 106, 0.45);
  background: #000; padding: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}
.panel--reverse .panel__wire { right: auto; left: -6%; }
.panel__wire img { mix-blend-mode: screen; width: 100%; }
.panel__index {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: var(--copper);
  letter-spacing: 0.3em;
  display: block; margin-bottom: 1.6rem;
}
.panel__title {
  font-family: var(--sans); font-weight: 200; text-transform: uppercase;
  font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.12;
  letter-spacing: 0.04em;
}
.panel__desc {
  margin-top: 1.8rem; max-width: 40ch;
  color: var(--ivory-dim); line-height: 1.85; font-size: 1rem;
}
.panel__specs {
  list-style: none; margin-top: 2.4rem;
  border-top: 1px solid rgba(242, 237, 227, 0.12);
}
.panel__specs li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(242, 237, 227, 0.12);
  font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ivory);
  display: flex; align-items: center; gap: 1rem;
}
.panel__specs li::before {
  content: ''; width: 18px; height: 1px; background: var(--copper);
  flex: none;
}
@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; min-height: 0; padding-top: 8vh; padding-bottom: 8vh; }
  .panel__wire { width: 46%; bottom: -8%; }
}

/* ═══════════ ACCESSORI ═══════════ */
.accessori { position: relative; }
.accessori__pin {
  height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  gap: 5vh;
  background:
    radial-gradient(ellipse 70% 60% at 30% 100%, rgba(11, 24, 48, 0.6), transparent),
    var(--abyss);
}
.accessori__head { padding: 0 clamp(1.5rem, 6vw, 6rem); }
.accessori__track {
  display: flex; gap: clamp(1.5rem, 3vw, 3rem);
  padding: 0 clamp(1.5rem, 6vw, 6rem);
  width: max-content;
  will-change: transform;
}
.card {
  width: clamp(300px, 34vw, 460px); flex: none;
  background: rgba(242, 237, 227, 0.025);
  border: 1px solid rgba(242, 237, 227, 0.07);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.5s, transform 0.6s var(--ease-lux);
}
.card:hover { border-color: rgba(201, 148, 106, 0.5); transform: translateY(-8px); }
.card__media { overflow: hidden; aspect-ratio: 4 / 2.7; }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-lux);
}
.card:hover .card__media img { transform: scale(1.07); }
.card__body { padding: 1.8rem 1.8rem 2rem; }
.card__num {
  font-family: var(--serif); font-style: italic;
  color: var(--copper); font-size: 0.9rem; letter-spacing: 0.2em;
}
.card__body h3 {
  font-weight: 300; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 1.05rem; margin-top: 0.9rem;
}
.card__body p {
  margin-top: 0.7rem; color: var(--ivory-dim);
  font-size: 0.88rem; line-height: 1.7;
}
.accessori__progress {
  margin: 0 clamp(1.5rem, 6vw, 6rem);
  height: 1px; background: rgba(242, 237, 227, 0.1);
}
.accessori__progress span {
  display: block; height: 100%; width: 0%;
  background: var(--copper);
}

/* ═══════════ NOTTE ═══════════ */
.notte {
  position: relative; min-height: 120vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.notte__bg { position: absolute; inset: 0; }
.notte__bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.2); will-change: transform;
  filter: brightness(0.85);
}
.notte__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(4, 7, 13, 0.88) 0%, rgba(4, 7, 13, 0.25) 60%, transparent),
    linear-gradient(to top, var(--abyss), transparent 30%),
    linear-gradient(to bottom, var(--abyss), transparent 25%);
}
.notte__content {
  position: relative; z-index: 2;
  padding: 0 clamp(1.5rem, 6vw, 6rem);
  max-width: 720px;
}
.notte__title {
  font-family: var(--sans); font-weight: 200; text-transform: uppercase;
  font-size: clamp(3rem, 8vw, 6.5rem); line-height: 1;
  text-shadow: 0 0 80px rgba(224, 48, 30, 0.35);
}
.notte__desc {
  margin-top: 2rem; max-width: 42ch;
  color: var(--ivory-dim); line-height: 1.85;
}

/* ═══════════ LIFESTYLE ═══════════ */
.lifestyle {
  position: relative;
  padding: 24vh clamp(1.5rem, 6vw, 6rem) 30vh;
  background: var(--abyss);
}
.lifestyle__img {
  overflow: hidden; border-radius: 2px;
  box-shadow: 0 50px 140px -40px rgba(0, 0, 0, 0.95);
}
.lifestyle__img img { width: 100%; }
.lifestyle__img--a { width: min(62%, 760px); }
.lifestyle__img--b {
  width: min(34%, 420px);
  margin-left: auto; margin-top: -14%;
  position: relative; z-index: 2;
}
.lifestyle__quote { margin-top: 18vh; text-align: center; }
.lifestyle__quote p {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem); line-height: 1.3;
}
@media (max-width: 720px) {
  .lifestyle__img--a { width: 100%; }
  .lifestyle__img--b { width: 70%; margin-top: -10%; }
}

/* ═══════════ CONTATTO / FOOTER ═══════════ */
.contatto {
  position: relative;
  padding: 26vh clamp(1.5rem, 6vw, 6rem) 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(11, 24, 48, 0.55), transparent),
    var(--abyss);
  text-align: center;
}
.contatto__inner { max-width: 880px; margin: 0 auto; }
.contatto__title {
  font-family: var(--sans); font-weight: 200; text-transform: uppercase;
  font-size: clamp(2.8rem, 7.5vw, 6.5rem); line-height: 1.02;
}
.contatto__title em {
  font-family: var(--serif); font-style: italic; text-transform: none;
  color: var(--copper-bright); font-weight: 300;
}
.contatto__desc {
  margin: 2.6rem auto 0; max-width: 52ch;
  color: var(--ivory-dim); line-height: 1.9;
}
.btn-major {
  position: relative; display: inline-block;
  margin-top: 4.5rem;
  padding: 1.5rem 3.6rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 148, 106, 0.55);
  overflow: hidden;
  font-size: 0.78rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--copper-bright);
  transition: color 0.5s var(--ease-lux);
}
.btn-major__label { position: relative; z-index: 2; }
.btn-major__ring {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--copper), var(--copper-bright));
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-lux);
}
.btn-major:hover { color: var(--abyss); }
.btn-major:hover .btn-major__ring { transform: translateY(0); }

.footer {
  margin-top: 22vh;
  padding: 4rem 0 3rem;
  border-top: 1px solid rgba(242, 237, 227, 0.08);
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
}
.footer__logo { height: 60px; }
.footer__claim {
  font-family: var(--serif); font-style: italic;
  color: var(--ivory-dim); font-size: 1.05rem;
}
.footer__legal {
  font-size: 0.65rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: rgba(242, 237, 227, 0.3);
}

/* ─── reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll-line::after { animation: none; }
  * { scroll-behavior: auto; }
}
