:root {
  --bg: #0B0E13;
  --surface: #121620;
  --surface-light: #1A2029;
  --accent: #00E5B0;
  --accent-blue: #00D4FF;
  --accent-dim: rgba(0, 229, 176, 0.14);
  --text: #EEF2F6;
  --text-secondary: #A6B0BC;
  --text-muted: #69737F;
  --hairline: rgba(255, 255, 255, 0.06);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(0, 229, 176, 0.06), transparent 70%),
    linear-gradient(180deg, #0C1016 0%, var(--bg) 40%, #0A0D12 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

::selection {
  background: rgba(0, 229, 176, 0.28);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-light) transparent;
}

.skip {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 8px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--surface);
  border: 1px solid rgba(0, 229, 176, 0.2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip:focus {
  top: 0;
  outline: none;
}

.wrap {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Ambient background ---------- */

.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow-top {
  position: absolute;
  top: -30vh;
  left: 50%;
  width: 90vw;
  height: 70vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 229, 176, 0.09) 0%, rgba(0, 212, 255, 0.04) 40%, transparent 70%);
  filter: blur(60px);
  animation: glow-breathe 12s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(18, 22, 32, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--hairline);
}

.nav .wrap {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.brand em {
  font-style: normal;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  color: var(--accent);
  background: rgba(0, 229, 176, 0.1);
  border: 1px solid rgba(0, 229, 176, 0.15);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.nav-cta:hover,
.get.open .nav-cta {
  background: rgba(0, 229, 176, 0.18);
  border-color: rgba(0, 229, 176, 0.3);
  box-shadow: 0 0 24px rgba(0, 229, 176, 0.12);
}

.get.open .nav-cta svg {
  transform: rotate(180deg);
}

.get {
  position: relative;
}

.get-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 15rem;
  padding: 6px;
  border-radius: 16px;
  background: rgba(18, 22, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 229, 176, 0.06);
  opacity: 0;
  translate: 0 -6px;
  scale: 0.98;
  pointer-events: none;
  transition: opacity 0.25s ease, translate 0.3s var(--ease), scale 0.3s var(--ease);
}

.get.open .get-menu {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  pointer-events: auto;
}

.get-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  text-decoration: none;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease;
}

.get-menu a:hover,
.get-menu a:focus-visible {
  background: rgba(0, 229, 176, 0.1);
  outline: none;
}

.get-menu svg {
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
  flex: none;
  transition: fill 0.2s ease;
}

.get-menu a:hover svg {
  fill: var(--accent);
}

.get-menu small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Shared type ---------- */

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 176, 0.12);
  background: rgba(0, 229, 176, 0.05);
}

.label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: blink 2.6s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.gradient {
  background: linear-gradient(135deg, #00E5B0, #00D4FF, #00E5B0);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.teal { color: var(--accent); }
.blue { color: var(--accent-blue); }

h2 {
  margin: 1.25rem 0 0;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

.sub {
  margin: 1rem auto 0;
  max-width: 34rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.divider {
  height: 1px;
  width: 6rem;
  margin: 0 auto;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 176, 0.5) 30%, rgba(0, 212, 255, 0.5) 50%, rgba(0, 229, 176, 0.5) 70%, transparent);
  box-shadow: 0 0 16px rgba(0, 229, 176, 0.08);
  animation: breathe 5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.2; transform: scaleX(0.85); }
  50% { opacity: 0.5; transform: scaleX(1); }
}

/* ---------- Hero ---------- */

main {
  position: relative;
  z-index: 1;
}

.hero {
  display: flex;
  align-items: center;
  padding: 7rem 0 3rem;
  position: relative;
}

.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 960px) {
  .hero {
    min-height: calc(100svh - 2rem);
    padding: 6rem 0 3rem;
  }
  .hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 3rem;
  }
  .hero-visual {
    justify-self: center;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  max-width: 44rem;
  margin: 0 auto;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6.2vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

h1 .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: line-up 1.1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes line-up {
  to { transform: translateY(0); }
}

.lede {
  margin: 0;
  max-width: 32rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.7;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.lede strong {
  font-weight: 600;
  color: var(--accent);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.store {
  display: inline-block;
  border-radius: 10px;
  transition: transform 0.4s var(--ease), filter 0.4s ease;
}

.store img {
  height: 3.5rem;
  width: auto;
}

.store.apple img {
  height: 2.6rem;
}

.store:hover {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 8px 24px rgba(0, 229, 176, 0.18));
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid rgba(0, 229, 176, 0.3);
  color: var(--accent);
  background: rgba(18, 22, 32, 0.6);
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill.blue {
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--accent-blue);
}

/* ---------- Phone ---------- */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
  padding: 0.5rem 0 0;
}

.halo {
  position: absolute;
  inset: -4rem -6rem;
  background: radial-gradient(ellipse at center, rgba(0, 229, 176, 0.14) 0%, rgba(0, 212, 255, 0.05) 40%, transparent 70%);
  filter: blur(40px);
  animation: halo 6s ease-in-out infinite;
}

@keyframes halo {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.phone-stage {
  position: relative;
  width: clamp(11.5rem, 18vw, 15rem);
  aspect-ratio: 9 / 19.5;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.phone {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 50px 120px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 60px rgba(0, 229, 176, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.06) 45%, transparent 60%);
  background-size: 250% 100%;
  animation: sheen 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes sheen {
  0%, 60% { background-position: 200% 0; }
  100% { background-position: -50% 0; }
}

.reticle {
  position: absolute;
  inset: -1.4rem;
  pointer-events: none;
  transform: translateZ(40px);
}

.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--accent);
  opacity: 0;
  transform: scale(0.6);
  animation: corner-in 0.9s var(--ease) forwards;
  animation-delay: var(--d, 1.2s);
}

.corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }

@keyframes corner-in {
  to { opacity: 0.85; transform: scale(1); }
}

/* ---------- Sections ---------- */

section.block {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

/* Moments */

.moments {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .moments {
    grid-template-columns: repeat(3, 1fr);
  }
}

.moment {
  position: relative;
  padding: 1px;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
}

.moment::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: conic-gradient(from var(--angle, 0deg), transparent 30%, var(--accent) 50%, var(--accent-blue) 55%, transparent 70%);
  opacity: 0;
  transition: opacity 0.7s ease;
  animation: spin 4s linear infinite;
}

.moment:hover::before {
  opacity: 1;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes spin {
  to { --angle: 360deg; }
}

.moment-inner {
  position: relative;
  height: 100%;
  border-radius: 19px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(18, 22, 32, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s ease;
}

.moment:hover .moment-inner {
  transform: translateY(-6px);
  box-shadow: 0 25px 80px rgba(0, 229, 176, 0.06), 0 0 0 1px rgba(0, 229, 176, 0.12);
}

.glow {
  position: absolute;
  width: 16rem;
  height: 10rem;
  border-radius: 50%;
  background: rgba(0, 229, 176, 0.08);
  filter: blur(50px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  left: var(--x, 50%);
  top: var(--y, 50%);
  transform: translate(-50%, -50%);
}

.moment:hover .glow {
  opacity: 1;
}

.moment-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  background: rgba(0, 229, 176, 0.14);
  color: var(--accent);
}

.moment:nth-child(2) .moment-icon {
  background: rgba(0, 212, 255, 0.14);
  color: var(--accent-blue);
}

.moment-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.6s var(--ease);
}

.moment:hover .moment-icon svg {
  transform: scale(1.12) rotate(-4deg);
}

.moment h3 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.moment:nth-child(1) h3 { color: var(--accent); }
.moment:nth-child(2) h3 { color: var(--accent-blue); }
.moment:nth-child(3) h3 { color: var(--accent); }

.moment p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
  text-wrap: pretty;
}

/* Statement */

.statement {
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.statement p {
  margin: 0 auto;
  max-width: 42rem;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--text-secondary);
  text-wrap: balance;
}

.statement .word {
  display: inline-block;
  opacity: 0.25;
  transition: opacity 0.6s ease, color 0.6s ease;
}

.statement.in .word {
  opacity: 1;
  color: var(--text);
  transition-delay: calc(var(--i) * 45ms);
}

.statement.in .word.teal { color: var(--accent); }
.statement.in .word.blue { color: var(--accent-blue); }

/* Gallery */

.gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.5rem 1.5rem 2rem;
  margin: 0 -1.5rem;
  scrollbar-width: none;
  perspective: 1600px;
}

.gallery::-webkit-scrollbar {
  display: none;
}

@media (min-width: 900px) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 11.5rem));
    justify-content: center;
    gap: 1.75rem;
    overflow: visible;
    margin: 0;
    padding: 1rem 0 0;
  }
}

.shot {
  position: relative;
  flex: 0 0 12rem;
  margin: 0;
  aspect-ratio: 9 / 19.5;
  scroll-snap-align: center;
  border-radius: 34px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 229, 176, 0.04);
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease), box-shadow 0.7s ease;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .shot { flex: none; }
  .shot:nth-child(1) { transform: rotateY(14deg) translateZ(-40px); }
  .shot:nth-child(2) { transform: rotateY(6deg); }
  .shot:nth-child(3) { transform: rotateY(-6deg); }
  .shot:nth-child(4) { transform: rotateY(-14deg) translateZ(-40px); }

  .gallery:hover .shot {
    transform: rotateY(0) translateZ(0);
  }

  .shot:hover {
    transform: translateY(-10px) scale(1.03) !important;
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 229, 176, 0.12);
    z-index: 2;
  }
}

.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1rem 1.1rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(11, 14, 19, 0.85));
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.5s ease, translate 0.5s var(--ease);
}

.shot:hover figcaption {
  opacity: 1;
  translate: 0 0;
}

/* Closing */

.closing {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  position: relative;
}

.closing::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40rem;
  height: 24rem;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0, 229, 176, 0.09), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.closing h2 {
  position: relative;
  margin-top: 0;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
}

.closing .stores {
  position: relative;
  justify-content: center;
  margin-top: 1.5rem;
}

.fine {
  position: relative;
  margin: 1rem 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */

footer {
  position: relative;
  z-index: 1;
  margin-top: 0.5rem;
}

footer .rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 176, 0.35) 30%, rgba(0, 212, 255, 0.35) 50%, rgba(0, 229, 176, 0.35) 70%, transparent);
  animation: breathe 5s ease-in-out infinite;
}

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem 0;
}

@media (min-width: 640px) {
  .foot {
    flex-direction: row;
  }
}

.foot .brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 12px;
  color: var(--text-muted);
}

.legal a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal a:hover {
  color: var(--accent);
}

.disclaimer {
  margin: 0;
  padding: 0 0 1.5rem;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.7;
  color: rgba(105, 115, 127, 0.6);
}

/* ---------- Motion utilities ---------- */

.fade {
  opacity: 0;
  translate: 0 28px;
  animation: fade-up 1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes fade-up {
  to { opacity: 1; translate: 0 0; }
}

.reveal {
  opacity: 0;
  translate: 0 32px;
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.left { translate: -40px 0; }
.reveal.right { translate: 40px 0; }

.reveal.in {
  opacity: 1;
  translate: 0 0;
}

.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  translate: 0 12px;
  pointer-events: none;
  transition: opacity 0.3s ease, translate 0.3s var(--ease), background-color 0.3s ease, border-color 0.3s ease;
}

.to-top.show {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

.to-top:hover {
  background: rgba(0, 229, 176, 0.15);
  border-color: rgba(0, 229, 176, 0.25);
}

.to-top svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade,
  .reveal,
  h1 .line > span,
  .statement .word {
    opacity: 1;
    translate: 0 0;
    transform: none;
  }
  .corner {
    opacity: 0.85;
    transform: none;
  }
}

/* ---------- Document pages ---------- */

.doc {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 7rem) 1.5rem clamp(3rem, 6vw, 5rem);
}

.doc .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3rem;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.doc .back:hover,
.doc .back:focus-visible {
  color: var(--accent);
  border-color: rgba(0, 229, 176, 0.15);
  background: rgba(0, 229, 176, 0.05);
}

.doc h1 {
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.doc .meta {
  margin: 0 0 2.5rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.doc h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
}

.doc p {
  margin: 0 0 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 15px;
}

.doc strong {
  font-weight: 600;
  color: var(--text);
}

.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.doc li {
  margin: 0 0 0.35rem;
}

.doc .notice {
  font-size: 12.5px;
  letter-spacing: 0.03em;
  line-height: 1.9;
  text-transform: uppercase;
  color: rgba(166, 176, 188, 0.85);
}

.doc .boxed {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(18, 22, 32, 0.5);
}

.doc a:not(.back):not(.store) {
  color: var(--accent);
  text-decoration: none;
}

.doc a:not(.back):not(.store):hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: 14px;
  color: var(--text-secondary);
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.6;
}

.doc th {
  font-weight: 600;
  color: var(--text);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.doc address {
  font-style: normal;
  margin: 0.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(0, 229, 176, 0.3);
}

.doc address p {
  margin: 0 0 0.25rem;
}

.doc .lede {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.doc .stores {
  justify-content: flex-start;
  margin: 0.5rem 0 1rem;
}

.doc .email {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text) !important;
  border-bottom: 1px solid rgba(0, 229, 176, 0.5);
  padding-bottom: 0.1em;
  transition: color 0.3s ease;
}

.doc .email:hover {
  color: var(--accent) !important;
  text-decoration: none !important;
}

/* Not found */

.lost {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.lost p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 1rem 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  background: rgba(0, 229, 176, 0.1);
  border: 1px solid rgba(0, 229, 176, 0.15);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease);
}

.btn:hover {
  background: rgba(0, 229, 176, 0.18);
  border-color: rgba(0, 229, 176, 0.3);
  box-shadow: 0 0 24px rgba(0, 229, 176, 0.12);
  transform: translateY(-1px);
}
