/* BESA web studio — homepage ("ocean" scroll story)
   Cinematic scroll-driven layout: one pinned scene, oversized grotesk type,
   light editorial sections, deep-sea pricing. Scene logic lives in js/scene.js. */

:root {
  --ink: #161a1b;
  --muted: #56605e;
  --paper: #e8ecea;
  --paper-line: rgba(22, 26, 27, 0.18);
  --deep-1: #123f47;
  --deep-2: #0b2d34;
  --deep-3: #0f3a43;
  --accent: #2f6bff;
  --accent-soft: #9fc3ff;
  --gutter: clamp(16px, 2vw, 32px);
  --font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--deep-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.25s ease, border-color 0.25s ease;
  pointer-events: none;
}

.topbar--light .brand {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(22, 26, 27, 0.14);
}

.topbar.show-brand .brand {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.brand img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.topbar--light .brand img {
  filter: none;
}

.pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.3);
}

.topbar--light .pill {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(22, 26, 27, 0.14);
}

.topbar--light .pill:hover {
  background: #fff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--lg {
  min-height: 58px;
  padding: 0 30px;
  font-size: 17px;
}

.btn--block {
  width: 100%;
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background: #d9f0ee;
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: #2c3537;
}

/* =====================================================================
   01 — Scene
   ===================================================================== */
.scene {
  position: relative;
  color: #fff;
  background: var(--deep-2);
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(130% 100% at 50% 40%, transparent 55%, rgba(4, 20, 26, 0.35));
}

/* World layers move together with the horizon (translateY set by JS) */
.world {
  position: absolute;
  inset: 0 0 auto;
  height: 0;
  transform: translate3d(0, 52vh, 0);
  pointer-events: none;
  will-change: transform;
}

.world--back {
  z-index: 0;
}

.world--front {
  z-index: 2;
}

.sky {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150vh;
  background: linear-gradient(to top, #475d67 0, #475d67 90vh, #2a4550 150vh);
}

.sea {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 280vh;
  background: linear-gradient(
    to bottom,
    #2b7a78 0,
    #0a5856 30vh,
    #04504e 40vh,
    #063f44 110vh,
    #08262c 280vh
  );
}

/* Photo plate (Artlist): its waterline (63.5% down) sits exactly on the horizon line.
   The box keeps the photo's aspect or grows taller, so it is never cropped vertically. */
.plate {
  --plate-h: max(100vh, 55.23vw);
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--plate-h) * -0.635);
  height: var(--plate-h);
  background: url("../assets/images/hero-sea-2560.webp") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 92%, transparent 100%);
}

/* Dusk grade on the sky so white type stays readable */
.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 44, 52, 0.62) 0%,
    rgba(20, 44, 52, 0.42) 25%,
    rgba(20, 44, 52, 0.12) 42%,
    rgba(20, 44, 52, 0) 50%
  );
}

/* Front water: tints whatever is below the waterline */
.tint {
  position: absolute;
  inset: 0 0 auto;
  height: 280vh;
  background: linear-gradient(
    to bottom,
    rgba(70, 150, 155, 0.2) 0,
    rgba(18, 92, 100, 0.32) 4vh,
    rgba(10, 70, 80, 0.48) 70vh,
    rgba(7, 42, 52, 0.7) 280vh
  );
}

.waterline {
  position: absolute;
  inset: -7px 0 auto;
  z-index: 1;
  height: 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M0 7 Q15 2 30 7 T60 7 T90 7 T120 7' fill='none' stroke='white' stroke-opacity='.6' stroke-width='1.2'/%3E%3C/svg%3E")
      0 0 / 120px 14px repeat-x,
    linear-gradient(to bottom, transparent 40%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  animation: waterline 9s linear infinite;
}

@keyframes waterline {
  to {
    background-position: 120px 0, 0 0;
  }
}

.rays {
  position: absolute;
  top: 0;
  left: -25%;
  width: 150%;
  height: 150vh;
  background: repeating-linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0 80px,
    rgba(214, 248, 250, 0.075) 110px 150px,
    rgba(255, 255, 255, 0) 190px 320px
  );
  -webkit-mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, 0.45) 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, 0.45) 45%, transparent 100%);
  mix-blend-mode: screen;
  animation: rays 18s ease-in-out infinite alternate;
}

@keyframes rays {
  from {
    transform: translateX(-4%) skewX(-5deg);
  }
  to {
    transform: translateX(4%) skewX(5deg);
  }
}

.particles {
  position: absolute;
  inset: 0 0 auto;
  height: 250vh;
}

.particles i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: rgba(230, 250, 250, 0.9);
  opacity: 0;
  animation: drift var(--d) linear var(--dl) infinite;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  15%,
  80% {
    opacity: var(--o);
  }
  100% {
    transform: translate3d(var(--dx), -20vh, 0);
    opacity: 0;
  }
}

.depth {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 15%, rgba(4, 24, 30, 0.25), rgba(3, 15, 19, 0.92));
  opacity: 0;
}

/* The floating browser window */
.object {
  position: absolute;
  left: 50%;
  top: 52vh;
  z-index: 1;
  width: min(46vw, 720px, 82vh);
  transform: translate(-50%, -50%) rotate(-12deg);
  will-change: transform;
}

.object__bob {
  animation: bob 7s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(-1.4%) rotate(-0.7deg);
  }
  50% {
    transform: translateY(1.4%) rotate(0.9deg);
  }
}

.browser {
  overflow: hidden;
  border-radius: 12px;
  background: #f4f5f3;
  box-shadow: 0 50px 100px -24px rgba(3, 20, 26, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: clamp(22px, 2.3vw, 34px);
  padding: 0 clamp(8px, 1vw, 14px);
  background: #e7eae7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.browser__dots {
  display: flex;
  gap: clamp(4px, 0.45vw, 7px);
  flex: none;
}

.browser__dots i {
  width: clamp(6px, 0.65vw, 10px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c6cbc7;
}

.browser__url {
  flex: 0 1 50%;
  margin: 0 auto;
  padding: 2px 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
  color: #5b6461;
  font-size: clamp(9px, 0.8vw, 12px);
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  transform: translateX(-24px);
}

.browser__screen {
  position: relative;
  aspect-ratio: 1.765;
  background: #f4f5f3;
}

.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.screen.is-active {
  opacity: 1;
}

.screen--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  color: #8a928f;
  font-size: clamp(11px, 1.15vw, 18px);
  text-align: center;
}

.screen--empty svg {
  width: 3em;
  height: 3em;
  margin-bottom: 0.3em;
  color: #b1b8b5;
}

.screen__title {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #4d5654;
}

.screen__url {
  margin: 0;
  font-size: 0.75em;
}

/* Hero frame */
.frame--hero {
  position: absolute;
  inset: 0 0 auto;
  height: 100vh;
  height: 100svh;
  z-index: 4;
  pointer-events: none;
}

.hero-title {
  position: absolute;
  top: clamp(2px, 0.5vw, 10px);
  left: var(--gutter);
  margin: 0;
  max-width: 80vw;
  font-size: clamp(52px, 10.4vw, 230px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.065em;
}

.hero-foot {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  padding: 0 var(--gutter) clamp(16px, 3.2vh, 36px);
}

.hero-kicker {
  margin: 0 0 12px;
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  opacity: 0.92;
}

.hero-lede {
  margin: 0;
  font-size: clamp(22px, 2.3vw, 40px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero-scroll {
  margin: 0;
  font-size: 12px;
  opacity: 0.85;
}

.hero-note {
  justify-self: end;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

/* Story text (static flow by default; positioned when .motion) */
.story {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 14vh;
  padding: calc(100vh + 8vh) var(--gutter) 14vh;
  padding-top: calc(100svh + 8vh);
}

.beat {
  margin: 0;
  text-shadow: 0 2px 30px rgba(0, 20, 26, 0.25);
}

.beat--center {
  max-width: 16em;
  font-size: clamp(28px, 3.5vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}

.beat__big,
.end__title {
  margin: 0;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.beat__big {
  max-width: 11ch;
  font-size: clamp(42px, 7vw, 132px);
}

.beat__small {
  max-width: 30ch;
  margin: 24px 0 0;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.35;
  opacity: 0.88;
}

.end {
  display: grid;
  gap: 48px;
}

/* Soft scrim so small type stays readable over the bright horizon */
.end__copy {
  position: relative;
  isolation: isolate;
}

.end__copy::before {
  content: "";
  position: absolute;
  inset: -10% -18% -14% -12%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(12, 34, 40, 0.5), rgba(12, 34, 40, 0));
  pointer-events: none;
}

.end__title {
  max-width: 10ch;
  font-size: clamp(38px, 5.4vw, 104px);
}

.end__text {
  max-width: 34ch;
  margin: 22px 0 0;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.45;
  opacity: 0.86;
}

.end__cta {
  margin-top: 30px;
}

.end__cta a {
  pointer-events: auto;
}

.end__proof {
  margin: 14px 0 0;
  font-size: 12px;
  opacity: 0.92;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 9.5em;
  padding: 14px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  text-shadow: none;
}

.stat__num {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 76px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.stat__num span {
  margin-left: 0.25em;
  font-size: 0.26em;
  font-weight: 500;
  letter-spacing: -0.01em;
  vertical-align: 0.15em;
}

.stat__label {
  margin: 1.6em 0 0;
  font-size: 13px;
  line-height: 1.3;
  opacity: 0.85;
}

/* ---------- Motion mode: pinned stage, JS drives everything ---------- */
.motion .scene {
  height: 560vh;
}

.motion .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 0;
}

.motion .object {
  top: 50%;
  transform: translate(-50%, -50%) translate3d(0, 2vh, 0) rotate(-12deg);
}

.motion .story {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  pointer-events: none;
}

.motion .story a {
  pointer-events: none;
}

.motion .story .is-on a {
  pointer-events: auto;
}

.motion .beat {
  position: absolute;
  opacity: 0;
  will-change: opacity, transform;
}

.motion .beat--center {
  top: 13vh;
  left: 0;
  right: 0;
  width: min(92vw, 16em);
  margin: 0 auto;
  text-align: center;
}

.motion .beat--deep {
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 11vh var(--gutter) clamp(16px, 3.2vh, 36px);
}

.motion .beat--deep .beat__small {
  align-self: flex-end;
}

.motion .end {
  position: absolute;
  inset: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 0 var(--gutter);
  padding: 13vh var(--gutter) clamp(16px, 3.2vh, 36px);
}

.motion .end .beat {
  position: relative;
}

.motion .end__copy {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.motion .stats {
  grid-column: 2;
  grid-row: 2;
}

.word {
  display: inline-block;
}

/* =====================================================================
   Sections
   ===================================================================== */
.section {
  padding: clamp(88px, 12vw, 190px) 0;
}

.section--light {
  background: var(--paper);
  color: var(--ink);
}

.section--light + .section--light {
  padding-top: 0;
}

.section--deep {
  background: var(--deep-2);
  color: #fff;
}

.head {
  max-width: 1180px;
  margin-bottom: clamp(44px, 6vw, 100px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.section--deep .eyebrow::before {
  background: var(--accent-soft);
}

.display {
  margin: 0;
  font-size: clamp(42px, 7.2vw, 136px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.display em {
  font-style: normal;
  font-weight: 400;
}

.display--md {
  font-size: clamp(36px, 4.6vw, 84px);
}

.lede {
  max-width: 40ch;
  margin: 26px 0 0;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.35;
  color: var(--muted);
}

.section--deep .lede {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- 02 Cases ---------- */
.cases {
  display: grid;
  gap: clamp(72px, 9vw, 150px);
}

.case {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: end;
}

.case__media {
  grid-column: 1 / span 8;
  grid-row: 1;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.765;
  border-radius: 10px;
  background: #cfd7d4;
}

.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 1.2s var(--ease-out);
}

.case__media:hover img {
  transform: scale(1.03);
}

.case__body {
  grid-column: 9 / span 4;
  grid-row: 1;
}

.case:nth-child(even) .case__media {
  grid-column: 5 / span 8;
}

.case:nth-child(even) .case__body {
  grid-column: 1 / span 4;
}

.case__meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}

.case__index {
  font-weight: 600;
  color: var(--ink);
}

.case__title {
  margin: 0 0 22px;
  font-size: clamp(28px, 2.8vw, 50px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.case__quote {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.5;
  color: #2b3231;
}

.case__author {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--muted);
}

.case__author strong {
  margin-right: 6px;
  font-weight: 600;
  color: var(--ink);
}

.case__link {
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.more {
  margin: clamp(88px, 10vw, 160px) 0 0;
}

.more__title {
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.more__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px) var(--gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}

.more__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.more__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.765;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #cfd7d4;
}

.more__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 1.2s var(--ease-out);
}

.more__link:hover img {
  transform: scale(1.03);
}

.more__meta {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}

.more__name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (max-width: 1024px) {
  .more__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .more__grid {
    grid-template-columns: 1fr;
  }
}

.cases__cta {
  margin: clamp(64px, 8vw, 120px) 0 0;
}

/* ---------- 03 Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--paper-line);
}

.timeline__step {
  position: relative;
  padding: 30px var(--gutter) 0 0;
}

.timeline__step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}

.timeline__num {
  display: block;
  margin-bottom: 26px;
  font-size: clamp(72px, 9vw, 170px);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.07em;
}

.timeline__step h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.timeline__step p {
  max-width: 28ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- 04 Statement ---------- */
.statement {
  position: relative;
  color: #fff;
  background: linear-gradient(to bottom, var(--deep-1), var(--deep-2));
}

.statement__inner {
  padding: 22vh var(--gutter);
}

.statement__text {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(42px, 7.4vw, 142px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.motion .statement {
  height: 220vh;
}

.motion .statement__inner {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  height: 100svh;
  padding-block: 0;
}

/* ---------- 05 Calculator ---------- */
.calc-wrap {
  display: grid;
  gap: 18px;
}

.calc-packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.calc-pkg {
  position: relative;
  display: block;
  cursor: pointer;
}

.calc-pkg input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.calc-pkg-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(200px, 18vw, 290px);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.calc-pkg:hover .calc-pkg-inner {
  background: rgba(255, 255, 255, 0.1);
}

.calc-pkg input:checked + .calc-pkg-inner {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.calc-pkg input:focus-visible + .calc-pkg-inner {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.calc-pkg-name {
  font-size: 15px;
  font-weight: 500;
}

.calc-pkg-price {
  margin-top: auto;
  font-size: clamp(56px, 6.4vw, 124px);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.065em;
}

.calc-pkg-meta {
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.7;
}

.calc-pkg-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.calc-addons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calc-addon {
  position: relative;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.calc-addon em {
  margin-left: 6px;
  font-style: normal;
  opacity: 0.6;
}

.calc-addon:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.calc-addon.active {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.calc-addon.active em {
  opacity: 0.7;
}

.calc-addon.included {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.calc-addon.included em {
  opacity: 1;
}

.calc-addon[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 20;
  width: 240px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.calc-addon[data-tooltip]:hover::before,
.calc-addon[data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (hover: none) {
  .calc-addon[data-tooltip]::before {
    display: none;
  }
}

.calc-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: end;
  gap: var(--gutter);
  margin-top: 18px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.calc-total-label {
  font-size: 13px;
  opacity: 0.7;
}

.calc-total {
  display: block;
  margin-top: 12px;
  font-size: clamp(88px, 15vw, 290px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.calc-total.bump {
  animation: calcBump 0.3s ease;
}

@keyframes calcBump {
  45% {
    transform: scale(1.03);
    color: var(--accent-soft);
  }
}

.calc-note {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
}

.calc-guarantee {
  margin: 14px 0 0;
  font-size: 12px;
  opacity: 0.65;
}

/* ---------- 06 Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  align-items: start;
  gap: clamp(36px, 6vw, 120px);
}

.form-grid .head {
  margin-bottom: 0;
}

.form-trust {
  display: grid;
  gap: 10px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.form-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-trust li::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.form-card {
  padding: clamp(22px, 3vw, 40px);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 80px -30px rgba(10, 40, 48, 0.28);
}

.funnel-form {
  display: grid;
  gap: 20px;
}

.form-selected-pkg {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--paper);
  font-size: 14px;
}

.field label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 500;
}

.label-hint {
  font-weight: 400;
  color: var(--muted);
}

.req {
  color: #c2410c;
}

.funnel-form input[type="tel"],
.funnel-form input[type="text"],
.funnel-form select {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1.5px solid rgba(22, 26, 27, 0.28);
  border-radius: 0;
  outline: none;
  background-color: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.funnel-form input::placeholder {
  color: #9aa3a0;
}

.funnel-form input:focus,
.funnel-form select:focus {
  border-bottom-color: var(--accent);
  box-shadow: 0 1.5px 0 var(--accent);
}

.funnel-form select {
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161a1b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 18px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #3a4341;
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.form-required-note {
  margin: -8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.contact-form.is-submitting button[type="submit"] {
  opacity: 0.7;
  pointer-events: none;
}

.form-feedback {
  display: none;
  padding: 1.5rem 0.5rem 0.5rem;
  text-align: center;
  animation: feedbackIn 0.45s var(--ease-out) both;
}

.contact-form.is-success .form-feedback--success,
.contact-form.is-error .form-feedback--error {
  display: block;
}

.contact-form.is-success > :not(.form-feedback),
.contact-form.is-error > :not(.form-feedback) {
  display: none;
}

.form-feedback__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}

.form-feedback__icon svg {
  width: 30px;
  height: 30px;
}

.form-feedback--error .form-feedback__icon {
  background: #fde8e8;
  color: #b91c1c;
}

.form-feedback__title {
  margin: 0 0 0.45rem;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.form-feedback__text {
  max-width: 34ch;
  margin: 0 auto;
  line-height: 1.5;
  color: var(--muted);
}

.form-feedback__retry {
  margin-top: 1.1rem;
  background: var(--ink);
  color: #fff;
}

@keyframes feedbackIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ---------- 07 FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gutter);
}

.faq {
  border-top: 1px solid var(--paper-line);
}

.faq-item {
  border-bottom: 1px solid var(--paper-line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.3s var(--ease-out);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 52ch;
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- 08 Finale + footer ---------- */
.finale {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background: var(--deep-3);
}

.finale__horizon {
  position: absolute;
  inset: 0;
  background: url("../assets/images/finale-sea-2560.webp") center 60% / cover no-repeat, var(--deep-3);
}

/* Dusk grade on top for the title, fade into the footer at the bottom */
.finale__horizon::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(20, 44, 52, 0.6) 0%, rgba(20, 44, 52, 0.3) 30%, rgba(20, 44, 52, 0) 48%),
    linear-gradient(to bottom, rgba(15, 58, 67, 0) 72%, var(--deep-3) 100%);
}

.finale__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-top: clamp(84px, 13vh, 150px);
  padding-bottom: clamp(24px, 6vh, 64px);
}

.finale__title {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(56px, 11vw, 230px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.065em;
}

.footer {
  padding: clamp(40px, 6vw, 80px) 0 28px;
  background: var(--deep-3);
  color: rgba(255, 255, 255, 0.78);
}

.footer__mark {
  margin: 0 0 clamp(36px, 5vw, 72px);
  color: #fff;
  font-size: clamp(52px, 10.4vw, 230px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.065em;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
  font-size: 13px;
  line-height: 1.5;
}

.footer__cols p {
  margin: 0;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ---------- Sticky mobile CTA + WhatsApp ---------- */
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 42, 48, 0.86);
  color: #fff;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.sticky-cta__label {
  font-size: 13px;
  opacity: 0.7;
}

.sticky-cta__price {
  margin-right: auto;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.sticky-cta .btn {
  min-height: 44px;
  padding: 0 20px;
}

.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 41;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.wa-float:hover {
  transform: scale(1.06);
}

/* Kept out of the story scene; appears once it has scrolled by */
.js .wa-float {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.js.past-scene .wa-float {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.js.past-scene .wa-float:hover {
  transform: scale(1.06);
}

.wa-float svg {
  width: 26px;
  height: 26px;
}

/* ---------- Reveal on scroll (class toggled by js/script.js) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.js .reveal.show {
  opacity: 1;
  transform: none;
}

.js .reveal--clip {
  opacity: 1;
  transform: none;
  clip-path: inset(9% 5% 9% 5% round 10px);
  transition: clip-path 1.3s var(--ease-out);
}

.js .reveal--clip.show {
  clip-path: inset(0 0 0 0 round 10px);
}

/* =====================================================================
   Responsive
   ===================================================================== */

/* Compact scene: portrait screens and tablets (mirrors COMPACT_QUERY in js/scene.js) */
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .object {
    width: min(80vw, 560px, 72vh);
  }

  .hero-foot {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-scroll {
    display: none;
  }

  .hero-note {
    justify-self: start;
    text-align: left;
  }

  .motion .end {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 22px;
    padding: 0 var(--gutter) clamp(16px, 3vh, 32px);
  }

  .motion .end__copy {
    align-self: auto;
  }
}

@media (max-width: 1024px) {
  .case,
  .case:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .case__media,
  .case__body,
  .case:nth-child(even) .case__media,
  .case:nth-child(even) .case__body {
    grid-column: 1;
    grid-row: auto;
  }

  .case__body {
    max-width: 560px;
  }

  .form-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .calc-result {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .plate {
    background-image: url("../assets/images/hero-sea-1440.webp");
  }

  .finale__horizon {
    background-image: url("../assets/images/finale-sea-1440.webp");
  }

  .btn--lg {
    padding: 12px 22px;
    font-size: 16px;
  }

  .end__text {
    display: none;
  }

  .end__title {
    font-size: clamp(32px, 9vw, 44px);
  }

  .end__cta {
    margin-top: 18px;
  }

  .stats {
    gap: 6px;
  }

  .stat {
    min-height: 0;
    padding: 10px 10px 9px;
    border-radius: 10px;
  }

  .stat__num {
    font-size: clamp(22px, 7vw, 30px);
  }

  .stat__num span {
    font-size: 0.4em;
  }

  .stat__label {
    margin-top: 0.8em;
    font-size: 11px;
  }

  .timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding-left: 26px;
    border-top: 0;
    border-left: 1px solid var(--paper-line);
  }

  .timeline__step {
    padding: 0;
  }

  .timeline__step::before {
    top: 6px;
    left: -31px;
  }

  .timeline__num {
    margin-bottom: 14px;
  }

  .calc-packages {
    grid-template-columns: minmax(0, 1fr);
  }

  .calc-pkg-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2px 12px;
  }

  .calc-pkg-name {
    grid-column: 1;
  }

  .calc-pkg-meta {
    grid-column: 1;
    margin-top: 0;
  }

  .calc-pkg-price {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 54px;
  }

  .calc-pkg-badge {
    position: static;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin-bottom: 10px;
  }

  .calc-pkg-badge ~ .calc-pkg-name {
    grid-row: 2;
  }

  .calc-pkg-badge ~ .calc-pkg-meta {
    grid-row: 3;
  }

  .calc-pkg-badge ~ .calc-pkg-price {
    grid-row: 1 / span 3;
  }

  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }

  .sticky-cta {
    display: flex;
  }

  .sticky-cta[hidden] {
    display: none;
  }

  .wa-float {
    bottom: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .object__bob,
  .waterline,
  .rays,
  .particles i {
    animation: none;
  }

  .js .reveal,
  .js .reveal--clip {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
}
