:root {
  color-scheme: dark;
  --ink: #f4f1e9;
  --muted: #b9bdba;
  --night: #080a0c;
  --night-soft: #111518;
  --coral: #ed765f;
  --teal: #67c7bd;
  --header-height: 76px;
  --story-progress: 0;
  --owl-scale: 1.34;
  --owl-x: 0px;
  --owl-y: 0px;
}

* { box-sizing: border-box; }

html {
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--night);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(20px, 4vw, 64px);
  background: rgb(8 10 12 / 74%);
  border-bottom: 1px solid rgb(244 241 233 / 12%);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
  text-decoration: none;
}

.brand img { width: 38px; height: 38px; object-fit: contain; }

.contact-link {
  color: var(--muted);
  font-size: 14px;
  text-underline-offset: 5px;
}

.contact-link:hover, .contact-link:focus-visible { color: var(--ink); }

.story { position: relative; }

.visual-stage {
  position: sticky;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

.owl-picture, .owl-image, .image-shade, .signal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.owl-picture { overflow: hidden; }

.owl-image {
  object-fit: cover;
  object-position: 50% 50%;
  transform: translate3d(var(--owl-x), var(--owl-y), 0) scale(var(--owl-scale));
  transition: filter 160ms linear;
  will-change: transform;
}

.image-shade {
  background: rgb(8 10 12 / 38%);
  box-shadow: inset 0 -30vh 24vh rgb(8 10 12 / 82%), inset 0 18vh 18vh rgb(8 10 12 / 34%);
}

.signal-canvas {
  top: auto;
  bottom: 8vh;
  height: 140px;
  pointer-events: none;
  opacity: .9;
}

.progress-rail {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 3vw, 42px);
  top: calc(var(--header-height) + 28px);
  width: 2px;
  height: calc(100svh - var(--header-height) - 64px);
  background: rgb(244 241 233 / 15%);
}

.progress-rail span {
  display: block;
  width: 100%;
  height: calc(var(--story-progress) * 100%);
  background: var(--coral);
}

.story-step {
  position: relative;
  z-index: 3;
  min-height: 108svh;
  display: flex;
  align-items: center;
  margin-top: -100svh;
  padding: calc(var(--header-height) + 48px) clamp(24px, 7vw, 112px) 11vh;
  pointer-events: none;
}

.story-step + .story-step { margin-top: 0; }

.story-step--hero {
  min-height: 100svh;
  align-items: flex-end;
  padding-bottom: 13vh;
}

.story-step--right { justify-content: flex-end; }

.story-copy {
  width: min(620px, 85vw);
  opacity: .38;
  transform: translate3d(0, 28px, 0);
  transition: opacity 520ms ease, transform 520ms ease;
  text-shadow: 0 2px 22px rgb(0 0 0 / 74%);
}

.story-copy--wide { width: min(760px, 86vw); }

.story-step.is-active .story-copy {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, p { max-width: 100%; }

h1, h2 {
  margin: 0;
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(54px, 9rem, 128px); }
h2 { font-size: clamp(42px, 5rem, 78px); }

.story-copy > p:not(.eyebrow):not(.scroll-cue) {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 1.65rem, 27px);
  line-height: 1.45;
  text-wrap: pretty;
}

.scroll-cue {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 32px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgb(244 241 233 / 28%);
  list-style: none;
  color: var(--muted);
}

.assurances li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 10px 2px 0;
  background: var(--coral);
}

.story-step--closing {
  min-height: 105svh;
  justify-content: center;
  padding-top: 18vh;
  background: var(--night-soft);
  pointer-events: auto;
}

.closing-copy {
  width: min(760px, 90vw);
  text-align: center;
}

.closing-copy img {
  width: min(300px, 58vw);
  height: 180px;
  object-fit: contain;
  margin: 0 auto 18px;
}

.closing-copy .eyebrow { color: var(--muted); }

.email-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 14px 0;
  border-bottom: 2px solid var(--coral);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.email-cta:hover, .email-cta:focus-visible { color: var(--coral); }

footer {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 4vw, 64px);
  border-top: 1px solid rgb(244 241 233 / 12%);
  background: var(--night-soft);
  color: var(--muted);
  font-size: 13px;
}

footer p { margin: 0; }
footer a { text-underline-offset: 4px; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 5px; }

@media (max-width: 720px) {
  :root { --header-height: 66px; }
  .site-header { padding-inline: 18px; }
  .brand img { width: 34px; height: 34px; }
  .contact-link { font-size: 12px; }
  .story-step { padding-inline: 24px 40px; }
  .story-step--hero { padding-bottom: 14vh; }
  .story-copy, .story-copy--wide { width: 100%; }
  h1 { font-size: clamp(50px, 5rem, 78px); }
  h2 { font-size: clamp(38px, 3.4rem, 54px); }
  .story-copy > p:not(.eyebrow):not(.scroll-cue) { font-size: 19px; }
  .owl-image { object-position: 52% 50%; }
  .signal-canvas { bottom: 4vh; height: 110px; }
  .progress-rail { right: 18px; }
  .assurances { display: grid; gap: 12px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .owl-image { transform: scale(1.04); transition: none; }
  .story-copy { opacity: 1; transform: none; transition: none; }
}
