:root {
  --bg-deep: #16324a;
  --bg-mid: #1a3a52;
  --bg-soft: #122433;
  --ink: #f4f7f2;
  --ink-soft: rgba(244, 247, 242, 0.72);
  --accent: #d8f0ff;
  --accent-strong: #ffe8b0;
  --glow: rgba(255, 220, 140, 0.28);
  --line: rgba(255, 248, 234, 0.16);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-dur: 2.2s;
  --frame-x: 50%;
  --frame-y: 86%;
  --we-zoom: 1.55;
  --frame-shift-y: -14%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-deep);
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

img {
  display: block;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ——— language pill ——— */

.lang-switch {
  position: fixed;
  top: clamp(1rem, 3vh, 1.5rem);
  right: clamp(1rem, 3vw, 1.5rem);
  z-index: 20;
  display: inline-flex;
  gap: 0.15rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(12, 28, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(8, 20, 32, 0.22);
}

.lang-switch__btn {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 247, 242, 0.55);
  background: transparent;
  cursor: pointer;
  transition:
    color 220ms var(--ease-out),
    background 220ms var(--ease-out);
}

.lang-switch__btn:hover {
  color: rgba(244, 247, 242, 0.88);
}

.lang-switch__btn.is-active {
  color: #173146;
  background: rgba(255, 248, 234, 0.94);
}

.lang-switch__btn:focus-visible {
  outline: 2px solid rgba(255, 232, 176, 0.75);
  outline-offset: 2px;
}

/* ——— fixed scene (fills page while scrolling) ——— */

.scene-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 70% 20%, #4f8eb8 0%, transparent 55%),
    linear-gradient(180deg, #2a6fa0 0%, #1e4a68 45%, #16324a 100%);
}

.scene-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(10, 24, 38, 0.42);
  opacity: 0;
  transition: opacity 1.6s var(--ease-out);
  pointer-events: none;
}

body.is-past-hero .scene-backdrop::after {
  opacity: 1;
}

/* ——— hero ——— */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: end start;
}

.hero__stack {
  position: absolute;
  /* symmetric bleed: parallax shifts stack up/down and exposes edges otherwise */
  inset: -34% -18% -34% -18%;
  transform: translate3d(0, var(--frame-shift-y), 0) scale(var(--we-zoom));
  transform-origin: 50% 78%;
  will-change: transform, filter;
  transition: filter 1.6s var(--ease-out);
}

body.is-past-hero .hero__stack {
  filter: blur(18px) saturate(0.9) brightness(0.78);
}

.hero__layer {
  position: absolute;
  inset: 0;
}

.hero__layer img,
.hero__layer picture,
.hero__layer picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--frame-x) var(--frame-y);
}

.hero__layer--whale img,
.hero__layer--whale picture img {
  animation: whale-drift 28s ease-in-out infinite alternate;
}

.hero__layer--clouds {
  opacity: 0.95;
}

.hero__layer--clouds img,
.hero__layer--clouds picture img {
  animation: cloud-drift 48s linear infinite;
}

.hero__layer--girl {
  filter: drop-shadow(0 10px 24px rgba(20, 40, 30, 0.25));
}

.hero__layer--haze {
  background:
    radial-gradient(42% 36% at 72% 28%, rgba(255, 236, 180, 0.28) 0%, transparent 70%),
    radial-gradient(50% 40% at 20% 80%, rgba(180, 220, 160, 0.12) 0%, transparent 70%);
  mix-blend-mode: soft-light;
  opacity: 0.85;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(14, 32, 48, 0.5) 0%,
      rgba(14, 32, 48, 0.14) 38%,
      rgba(14, 32, 48, 0.04) 62%,
      rgba(14, 32, 48, 0.2) 100%
    ),
    linear-gradient(
      180deg,
      rgba(14, 32, 48, 0.1) 0%,
      transparent 42%,
      rgba(14, 32, 48, 0.52) 100%
    );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  margin: 0 0 clamp(3.5rem, 10vh, 6rem) clamp(1.25rem, 6vw, 5.5rem);
  width: min(34rem, calc(100% - 3rem));
  text-align: left;
}

.hero__brand {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: #fff8ea;
  text-shadow: 0 8px 40px rgba(10, 30, 50, 0.35);
  animation: hero-rise 2.6s 0.25s var(--ease-out) both;
}

.hero__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent-strong);
  animation: hero-rise 2.6s 0.75s var(--ease-out) both;
}

.hero__lead {
  margin: 1.15rem 0 0;
  max-width: 28rem;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
  animation: hero-rise 2.8s 1.25s var(--ease-out) both;
}

.hero__hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 247, 242, 0.5);
  pointer-events: none;
  animation: hero-rise 2.4s 2s var(--ease-out) both;
}

.hero__hint__dot {
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.hero__hint__dot::after {
  content: "";
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 12px var(--glow);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.hero__hint__label {
  letter-spacing: inherit;
  text-transform: inherit;
}

/* ——— content ——— */

main {
  position: relative;
  z-index: 1;
}

.block {
  position: relative;
  padding: clamp(5.5rem, 14vh, 9rem) clamp(1.25rem, 5vw, 4rem);
  color: var(--ink);
  overflow: hidden;
  background: transparent;
}

.block--closing {
  padding-bottom: clamp(6rem, 16vh, 10rem);
  text-align: center;
}

.block__inner {
  position: relative;
  width: min(64rem, 100%);
  margin: 0 auto;
}

.block__inner--narrow {
  width: min(36rem, 100%);
}

.block__inner--split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 7vw, 5.5rem);
  align-items: end;
}

.block__header {
  max-width: 34rem;
  margin-bottom: clamp(2.5rem, 5vh, 3.5rem);
}

.block__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 232, 176, 0.78);
}

.block__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: #fff8ea;
  text-shadow: 0 4px 28px rgba(8, 20, 32, 0.55);
}

.block__rule {
  width: 4.5rem;
  height: 1px;
  margin: 1.6rem 0 0;
  background: linear-gradient(90deg, var(--accent-strong), transparent);
  transform-origin: left center;
}

.block__rule--center {
  margin-left: auto;
  margin-right: auto;
  transform-origin: center;
  background: linear-gradient(90deg, transparent, var(--accent-strong), transparent);
}

.block__text {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.55vw, 1.18rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-soft);
  text-shadow: 0 2px 18px rgba(8, 20, 32, 0.5);
}

.block--closing .block__text {
  margin-left: auto;
  margin-right: auto;
}

.block__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.block__steps li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink-soft);
}

.block__steps span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent-strong);
  opacity: 0.85;
}

.block__mark {
  margin: 0 0 -0.4rem;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 10vw, 7rem);
  font-weight: 500;
  line-height: 0.7;
  color: rgba(255, 232, 176, 0.35);
}

.block__quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.8vw, 2.55rem);
  font-weight: 500;
  line-height: 1.35;
  color: #fff8ea;
}

.block__cite {
  margin: 1.5rem 0 0;
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 247, 242, 0.45);
}

.block__rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.block__row {
  padding: 1.85rem 1.5rem 0.4rem 0;
  border-right: 1px solid var(--line);
}

.block__row:last-child {
  border-right: 0;
  padding-right: 0;
}

.block__row:not(:first-child) {
  padding-left: 1.5rem;
}

.block__row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  font-weight: 600;
  color: #fff8ea;
}

.block__row p {
  margin: 0.85rem 0 0;
  max-width: 18rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ——— reveal system ——— */

[data-reveal-item] {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  filter: blur(5px);
  transition:
    opacity var(--reveal-dur) var(--ease-out),
    transform var(--reveal-dur) var(--ease-out),
    filter calc(var(--reveal-dur) * 0.9) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

[data-reveal].is-inview [data-reveal-item] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

[data-reveal].is-inview .block__rule {
  animation: rule-grow 1.8s 0.35s var(--ease-out) both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes rule-grow {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes cloud-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1.02);
  }
  to {
    transform: translate3d(-5%, 1%, 0) scale(1.02);
  }
}

@keyframes whale-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(1.8%, -1.2%, 0);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero {
    place-items: end center;
  }

  .hero__content {
    margin: 0 1.25rem 4.5rem;
    width: min(34rem, calc(100% - 2.5rem));
    text-align: center;
  }

  .hero__lead {
    margin-left: auto;
    margin-right: auto;
  }

  :root {
    --frame-y: 88%;
    --we-zoom: 1.65;
    --frame-shift-y: -16%;
  }

  .hero__veil {
    background:
      linear-gradient(
        180deg,
        rgba(14, 32, 48, 0.18) 0%,
        rgba(14, 32, 48, 0.05) 35%,
        rgba(14, 32, 48, 0.7) 100%
      );
  }

  .block__inner--split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .block__rows {
    grid-template-columns: 1fr;
  }

  .block__row,
  .block__row:not(:first-child) {
    padding: 1.5rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .block__row:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .hero__brand {
    font-size: clamp(2.6rem, 14vw, 3.8rem);
  }

  .hero__title {
    letter-spacing: 0.22em;
  }

  .hero__hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__layer--clouds img,
  .hero__layer--clouds picture img,
  .hero__layer--whale img,
  .hero__layer--whale picture img,
  .hero__brand,
  .hero__title,
  .hero__lead,
  .hero__hint,
  .hero__hint__dot::after {
    animation: none !important;
  }

  .hero__stack,
  .scene-backdrop::after {
    transition: none;
  }

  body.is-past-hero .hero__stack {
    filter: blur(12px) brightness(0.8);
  }

  [data-reveal-item] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  [data-reveal].is-inview .block__rule {
    animation: none;
  }
}
