@font-face{font-family:"DM Sans";font-style:normal;font-weight:300;font-display:swap;src:url("dm-sans-300.ttf") format("truetype");}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:400;font-display:swap;src:url("dm-sans-400.ttf") format("truetype");}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:600;font-display:swap;src:url("dm-sans-600.ttf") format("truetype");}
:root {
  color-scheme: dark;
  --white: #fff;
  --page-bg: #080b0d;
  --side-space: clamp(1.4rem, 6vw, 6rem);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--white);
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.scroll-story {
  height: 400svh;
}

.scene {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 34rem;
  overflow: hidden;
  isolation: isolate;
  background: #090c0f;
}

.background,
.shade {
  position: absolute;
  inset: 0;
}

.background {
  z-index: -3;
  background-image: url("background-wide.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.025);
}

.shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(2, 5, 8, 0.54) 0%, rgba(2, 5, 8, 0.05) 34%, rgba(2, 5, 8, 0.26) 100%),
    linear-gradient(90deg, rgba(2, 5, 8, 0.28), transparent 38%, transparent 62%, rgba(2, 5, 8, 0.28));
}

.brand {
  position: absolute;
  top: max(1.5rem, env(safe-area-inset-top));
  left: var(--side-space);
  z-index: 5;
}

.brand img {
  display: block;
  width: clamp(7.8rem, 11vw, 10.5rem);
  height: auto;
}

.brand a {
  display: block;
}

.site-nav {
  position: absolute;
  top: max(1.9rem, env(safe-area-inset-top));
  right: var(--side-space);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(1rem,2.4vw,2rem);
}

.site-nav a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.site-nav a::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 0.28rem;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  opacity: 0.75;
  transform: scaleX(1);
}

.messages {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(6rem, 12vh, 9rem) var(--side-space) clamp(7rem, 14vh, 10rem);
}

.message {
  position: absolute;
  width: min(75rem, calc(100% - (2 * var(--side-space))));
  opacity: 0;
  transform: translate3d(0, 5rem, 0);
  filter: blur(8px);
  text-align: center;
  will-change: transform, opacity, filter;
  pointer-events: none;
}

.message:first-child {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.message h1,
.message p {
  margin: 0 auto;
  max-width: 22ch;
  color: var(--white);
  font-size: clamp(2.45rem, 5.4vw, 5.9rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

.message p {
  max-width: 24ch;
  font-size: clamp(2rem, 4.45vw, 4.85rem);
  line-height: 1.06;
}

.final-message p {
  max-width: 24ch;
}

.fire-word {
  display: inline-block;
  animation: fire-flicker 2.2s infinite;
  transform-origin: 50% 80%;
}

.contact-scene {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 34rem;
  overflow: hidden;
  isolation: isolate;
  background: #090c0f;
}

.contact-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem var(--side-space);
  text-align: center;
}

.contact-content h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

.contact-content p {
  margin: 1rem 0 2.2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 300;
  line-height: 1.5;
}

.contact-email {
  color: var(--white);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 300;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

.scroll-cue {
  position: absolute;
  bottom: max(1.75rem, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  z-index: 5;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: opacity 240ms ease;
}

.scroll-cue i {
  width: 1px;
  height: 2.25rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
}

.scroll-cue i::after {
  content: "";
  display: block;
  width: 100%;
  height: 55%;
  background: var(--white);
  animation: drift 1.8s ease-in-out infinite;
}

.progress {
  position: absolute;
  right: clamp(1.25rem, 2.5vw, 2.5rem);
  top: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transform: translateY(-50%);
}

.progress-dot {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 220ms ease, background-color 220ms ease;
}

.progress-dot.is-active {
  background: var(--white);
  transform: scale(2);
}

@keyframes drift {
  0% { transform: translateY(-110%); }
  60%, 100% { transform: translateY(190%); }
}

@keyframes fire-flicker {
  0%, 100% {
    color: #fff;
    filter: brightness(1);
    text-shadow: 0 0 10px rgba(255, 138, 52, 0.18), 0 2px 28px rgba(0, 0, 0, 0.55);
  }
  12% {
    color: #fffaf5;
    filter: brightness(1.04);
    text-shadow: 0 0 14px rgba(255, 125, 35, 0.3), 0 2px 28px rgba(0, 0, 0, 0.55);
  }
  18% {
    filter: brightness(0.98);
    text-shadow: 0 0 8px rgba(255, 156, 70, 0.16), 0 2px 28px rgba(0, 0, 0, 0.55);
  }
  47% {
    color: #fffdf9;
    filter: brightness(1.03);
    text-shadow: 0 0 13px rgba(255, 136, 43, 0.27), 0 2px 28px rgba(0, 0, 0, 0.55);
  }
  63% {
    filter: brightness(0.99);
    text-shadow: 0 0 9px rgba(255, 155, 72, 0.17), 0 2px 28px rgba(0, 0, 0, 0.55);
  }
  81% {
    color: #fff9f2;
    filter: brightness(1.05);
    text-shadow: 0 0 15px rgba(255, 119, 29, 0.32), 0 2px 28px rgba(0, 0, 0, 0.55);
  }
}

@media (max-width: 700px) {
  :root {
    --side-space: clamp(1.35rem, 6vw, 2rem);
  }

  .scene {
    min-height: 32rem;
  }

  .contact-scene {
    min-height: 32rem;
  }

  .background {
    background-image: url("background-portrait.webp");
    background-position: center center;
    transform: scale(1.015);
  }

  .shade {
    background:
      linear-gradient(180deg, rgba(2, 5, 8, 0.62) 0%, rgba(2, 5, 8, 0.08) 30%, rgba(2, 5, 8, 0.42) 100%),
      rgba(2, 5, 8, 0.13);
  }

  .brand img {
    width: 7.6rem;
  }

  .site-nav {
    top: max(1.7rem, env(safe-area-inset-top));
  }

  .messages {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  .message {
    width: calc(100% - (2 * var(--side-space)));
  }

  .message h1,
  .message p {
    max-width: 18ch;
    font-size: clamp(2.2rem, 10.2vw, 3.35rem);
    line-height: 1.04;
  }

  .message p {
    max-width: 19ch;
    font-size: clamp(1.9rem, 8.8vw, 2.85rem);
    line-height: 1.08;
  }

  .desktop-break {
    display: none;
  }

  .progress {
    right: 1rem;
  }

  .contact-content h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .contact-content p {
    max-width: 22rem;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .message h1,
  .message p {
    max-width: 20ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-cue i::after {
    animation: none;
  }

  .fire-word {
    animation: none;
  }

  .message {
    filter: none !important;
  }
}

/* Updated five-scene presentation. */
html:has(.scroll-story), body:has(.scroll-story) { height: 100%; overflow: hidden; overscroll-behavior: none; }
.scroll-story { height: 100svh; height: 100dvh; }
.scene { position: relative; height: 100%; min-height: 0; touch-action: pan-x pinch-zoom; }
.background { background-image: url('background-new.png'); transform: none; filter: grayscale(1) brightness(.58); transition: filter 850ms ease; }
.shade { background: rgba(0,0,0,.1); transition: opacity 850ms ease; }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.messages { padding: 0; }
.message, .message:first-child { opacity: 0; transform: translate3d(0,48px,0); filter: none; visibility: hidden; transition: opacity 500ms ease, transform 650ms cubic-bezier(.22,.61,.36,1), visibility 650ms; width: min(75rem,calc(100% - 2 * var(--side-space) - 32px)); }
.message.is-past { transform: translate3d(0,-48px,0); }
.message.is-active { opacity: 1; transform: translate3d(0,0,0); visibility: visible; }
.message.launch-message p { font-weight: 300; }
.fire-glow { animation: fire-flicker 2.2s infinite; }
.logo-mark { width: clamp(90px,15vw,198px); aspect-ratio: 1.12; margin: 0 auto 1.8rem; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.final-message p { font-size: clamp(1.2rem,2.2vw,2rem); max-width: none; letter-spacing: -.025em; }
.progress { right: max(6px,env(safe-area-inset-right)); gap: 0; }
.progress-dot { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 0; padding: 0; cursor: pointer; position: relative; }
.progress-dot::after { content: ''; position: absolute; top: 50%; left: 50%; width: 4px; height: 4px; background: #ffffff60; border-radius: 50%; transform: translate(-50%,-50%); transition: transform 250ms,background 250ms; }
.progress-dot.is-active { background: transparent; transform: none; }
.progress-dot.is-active::after { background: #fff; transform: translate(-50%,-50%) scale(1.8); }
.autoplay { position: absolute; bottom: max(20px,env(safe-area-inset-bottom)); left: var(--side-space); z-index: 5; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: #ffffffb3; font: inherit; font-size: .75rem; cursor: pointer; }
button:focus-visible,a:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.contact-scene { min-height: 100svh; height: auto; display: flex; align-items: center; padding: 120px var(--side-space) 70px; }
.contact-scene .background { filter: none; }
.contact-content { position: relative; inset: auto; display: block; width: min(100%,650px); padding: clamp(25px,5vw,55px); border: 1px solid #ffffff28; border-radius: 24px; background: rgba(65,67,69,.68); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); text-align: left; }
.contact-content h1 { font-size: clamp(2.6rem,5vw,4.8rem); }
.contact-content p { color: #ffffffe0; }
.contact-email { overflow-wrap: anywhere; }
.company-details {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.company-details p {
  margin: .2rem 0;
  color: rgba(255,255,255,.68);
  font-size: .8rem;
  line-height: 1.5;
}
@media (max-width:700px) {
 .background { background-image: url('background-new.png'); transform: none; }
 .message h1 { font-size: clamp(1.9rem,8.8vw,3.35rem); }
 .message p { font-size: clamp(1.7rem,7.5vw,2.85rem); }
 .final-message p { font-size: clamp(1.05rem,4.4vw,1.5rem); }
 .logo-mark { width: clamp(90px,28.8vw,156px); }
 .contact-scene { min-height: 100svh; }
 .shade { background: rgba(0,0,0,.1); }
}
@media (max-height:500px) and (orientation:landscape) {
 .brand img { width: 95px; }
 .brand,.site-nav { top: max(15px,env(safe-area-inset-top)); }
 .message h1,.message p { font-size: clamp(1.5rem,5vh,2.4rem); max-width: 32ch; }
 .logo-mark { width: min(16.8vh,78px); margin-bottom: .7rem; }
 .final-message p { font-size: 1.1rem; }
 .scroll-cue i { height: 20px; }
}
@media (prefers-reduced-motion:reduce) {
 .fire-glow { animation: none; }
 .message,.background,.shade { transition: none; }
 .embers { display:none; }
}

/* Opening copy: slightly smaller, with visible light changing on the letters. */
.message h1.fire-glow {
  font-size: clamp(2.254rem,4.968vw,5.428rem);
  animation: none;
}
@media (max-width:700px) {
  .message h1.fire-glow { font-size: clamp(1.748rem,8.096vw,3.082rem); }
}
@media (max-height:500px) and (orientation:landscape) {
  .message h1.fire-glow { font-size: clamp(1.38rem,4.6vh,2.208rem); }
}
@media (prefers-reduced-motion:reduce) {
  .message h1.fire-glow { animation: none; }
}

/* A slow wave warms each word, then the whole sentence breathes together. */
.message h1.fire-glow { color: #fff; }
.heat-word { display: inline; }
.message.is-active h1.fire-glow .heat-word {
  animation: travelling-heat 1.8s ease-in-out var(--heat-delay) both;
}
.message.is-active h1.fire-glow {
  animation: warm-pulse 3.8s ease-in-out 5s infinite;
}
@keyframes travelling-heat {
  0% { color: #e5e5e5; text-shadow: 0 2px 28px #0009; }
  55% { color: #fffaf0; text-shadow: 0 0 10px #ffc080b3, 0 0 24px #ff903a80, 0 0 42px #ff6d2433, 0 2px 28px #0009; }
  100% { color: #fff4df; text-shadow: 0 0 8px #ffb46b99, 0 0 20px #ff883b66, 0 2px 28px #0009; }
}
@keyframes warm-pulse {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 2px #ff9d4433); }
  50% { filter: brightness(1.22) drop-shadow(0 0 10px #ff9d4480); }
}
@media (prefers-reduced-motion:reduce) {
  .message.is-active h1.fire-glow,
  .message.is-active h1.fire-glow .heat-word { animation: none; }
}

/* Legal page */
.legal-page {
  min-height: 100%;
  background:
    linear-gradient(rgba(5,7,9,.91),rgba(5,7,9,.96)),
    url("background-new.png") center top / cover fixed;
}
.legal-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 6.5rem;
  background: linear-gradient(#080b0df2 55%,transparent);
}
.legal-brand {
  position: absolute;
  top: max(1.5rem,env(safe-area-inset-top));
  left: var(--side-space);
}
.legal-brand img {
  display: block;
  width: clamp(7.8rem,11vw,10.5rem);
  height: auto;
}
.legal-site-nav {
  position: absolute;
}
.legal-main {
  width: min(74rem,calc(100% - 2 * var(--side-space)));
  margin: 0 auto;
  padding: clamp(8.5rem,15vh,11rem) 0 5rem;
}
.legal-sections {
  position: sticky;
  top: 5.4rem;
  z-index: 10;
  display: flex;
  gap: .6rem;
  margin-bottom: 1rem;
  padding: .5rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(30,32,34,.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.legal-sections a {
  flex: 1;
  min-height: 2.7rem;
  display: grid;
  place-items: center;
  padding: .55rem 1rem;
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  font-size: clamp(.72rem,1.4vw,.9rem);
  text-align: center;
  text-decoration: none;
  transition: color 180ms ease,background 180ms ease;
}
.legal-sections a:hover,
.legal-sections a:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.legal-content {
  padding: clamp(1.5rem,5vw,4.5rem);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: clamp(1.25rem,3vw,2rem);
  background: rgba(35,37,39,.76);
  box-shadow: 0 30px 90px rgba(0,0,0,.3);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.legal-content h1,
.legal-content h2,
.legal-content h3 {
  color: #fff;
  font-weight: 300;
  text-wrap: balance;
}
.legal-content h1 {
  margin: 0 0 1rem;
  padding-top: .3rem;
  font-size: clamp(2.4rem,6vw,5.4rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.legal-content h1:not(:first-child) {
  margin-top: clamp(4.5rem,9vw,8rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.16);
}
.legal-content h2 {
  margin: 2.5rem 0 .75rem;
  font-size: clamp(1.35rem,2.4vw,2rem);
  letter-spacing: -.025em;
}
.legal-content h3 {
  margin: 1.8rem 0 .5rem;
  font-size: 1.08rem;
}
.legal-content p,
.legal-content li,
.legal-content td,
.legal-content th {
  color: rgba(255,255,255,.78);
  font-size: clamp(.92rem,1.4vw,1.04rem);
  line-height: 1.72;
}
.legal-content p {
  margin: .65rem 0 1rem;
}
.legal-content ul {
  margin: .6rem 0 1.25rem;
  padding-left: 1.35rem;
}
.legal-content li {
  margin: .35rem 0;
}
.legal-content a {
  color: #fff;
  text-underline-offset: .25em;
}
.legal-content hr {
  margin: clamp(4rem,8vw,7rem) 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.16);
}
.legal-content table {
  display: block;
  width: 100%;
  margin: 1.25rem 0 2rem;
  border-collapse: collapse;
  overflow-x: auto;
}
.legal-content th,
.legal-content td {
  min-width: 11rem;
  padding: .8rem;
  border: 1px solid rgba(255,255,255,.14);
  text-align: left;
  vertical-align: top;
}
.legal-content th {
  color: #fff;
  font-weight: 300;
  background: rgba(255,255,255,.07);
}
#privacy,
#terms,
#deletion {
  scroll-margin-top: 9.5rem;
}
@media (max-width:700px) {
  .legal-header {
    height: 5.5rem;
  }
  .legal-brand {
    top: max(1.3rem,env(safe-area-inset-top));
  }
  .legal-brand img {
    width: 7.1rem;
  }
  .legal-site-nav {
    top: max(1.5rem,env(safe-area-inset-top));
  }
  .legal-main {
    width: calc(100% - 2rem);
    padding-top: 7.2rem;
  }
  .legal-sections {
    top: 4.7rem;
    gap: .2rem;
  }
  .legal-sections a {
    padding-inline: .35rem;
  }
  .legal-content {
    padding: 1.4rem;
    border-radius: 1.25rem;
  }
  .legal-content h1 {
    font-size: clamp(2.15rem,11vw,3.4rem);
  }
}
