@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..700,0..100&family=Fredoka:wght@300..700&family=IBM+Plex+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap");

/* Local Fredoka SemiBold (600) kept as the canonical wordmark face
   for logo + closing wordmark. The Google Fonts variable above
   provides the other weights (400-500) needed for .brand contextual
   integration in body / title / button contexts. */
@font-face {
  font-family: "Fredoka";
  src: url("./assets/fonts/Fredoka-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* palette mirrors the app's desktop-menu-v2 tokens
     (--aifu-menu-bg, --aifu-menu-accent, --aifu-menu-border, etc.) */
  --bg: #050a1b;
  --bg-elev: #0a1228;
  --bg-soft: #081538;
  --bg-deep: #040819;
  --text: #fafbff;
  --text-soft: #edf1ff;
  --muted: #cfd7ee;
  --dim: #8893b6;
  --faint: #2a3354;
  --line: rgba(185, 198, 255, 0.14);
  --line-strong: rgba(185, 198, 255, 0.26);
  --line-accent: rgba(255, 95, 147, 0.32);
  --accent: #ff5f93;
  --accent-2: #ff8db3;
  --accent-cool: #4e65ff;
  --accent-soft: rgba(255, 95, 147, 0.14);
  --accent-glow: rgba(255, 95, 147, 0.26);
  --accent-glow-strong: rgba(255, 95, 147, 0.55);
  --container: 1260px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 4px;
  --radius-lg: 10px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  font-feature-settings: "ss01", "ss02";
  background: var(--bg);
  overflow-x: clip;
  position: relative;
  cursor: default;
}

/* ----- ambient background layers ----- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 12% 12%, rgba(255, 95, 147, 0.14), transparent 45%),
    radial-gradient(90% 70% at 82% 18%, rgba(78, 101, 255, 0.12), transparent 50%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(to right, rgba(185, 198, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(185, 198, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
}

/* cursor-follow accent glow — pure CSS via custom props set from JS */
.cursor-aura {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  pointer-events: none;
  z-index: 0;
  transform: translate3d(var(--mx, 50vw), var(--my, 50vh), 0) translate(-50%, -50%);
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
  mix-blend-mode: screen;
  filter: blur(20px);
}

body.cursor-ready .cursor-aura {
  opacity: 0.55;
}

/* film grain overlay */
.grain {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* scroll progress bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}

.progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent-glow);
  transform-origin: left;
}

main,
.topbar,
.footer {
  position: relative;
  z-index: 1;
}

html[data-lang="en"] [data-lang="es"],
html[data-lang="es"] [data-lang="en"] {
  display: none !important;
}

a {
  color: inherit;
}

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

.shell {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}

.mono.dim {
  color: var(--dim);
}

.mono.accent {
  color: var(--accent);
}

/* "Aifu" wordmark inline within body copy — wrapped by JS.
   Three contextual treatments because Fredoka's higher x-height and
   rounded forms read differently inside body / title / button:

   - Default (body paragraphs, Manrope 400 @ ~1rem):
       weight 500, size 0.95em → integrates with the lighter body
       weight; Fredoka stops looking "bold" inline.

   - In display titles (Fraunces 400, large display):
       weight 500, size 0.92em → compensates Fredoka's chunkier
       silhouette next to elegant serif glyphs; brand still pops
       because of size + color, not by being heavier than the title.

   - In buttons (Manrope 600 @ ~0.94rem, dense layout):
       weight 600, size 1em → matches button bold weight and avoids
       the brand mark looking "weak" inside the CTA.

   Real lighter weights are served from the Google Fonts variable
   declaration in the top @import; the local SemiBold @font-face
   remains for the wordmark surfaces (logo, closing wordmark). */
.brand {
  font-family: "Fredoka", "Manrope", sans-serif;
  font-weight: 500;
  font-size: 1em;
  letter-spacing: -0.005em;
}

.section-title .brand,
.closing-title .brand,
.capability h3 .brand {
  font-weight: 500;
  font-size: 0.92em;
  letter-spacing: -0.015em;
}

.btn .brand {
  font-weight: 600;
  font-size: 1em;
  letter-spacing: -0.005em;
}

/* ----- reveal animation utility ----- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"] {
  transform: translateX(-18px);
}

[data-reveal="left"].is-visible {
  transform: translateX(0);
}

[data-reveal="scale"] {
  transform: scale(0.97);
}

[data-reveal="scale"].is-visible {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ----- side rail ----- */

.rail {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 0;
  pointer-events: auto;
}

.rail a {
  display: block;
  position: relative;
  width: 22px;
  height: 22px;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rail a::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.rail a:hover {
  color: var(--text-soft);
}

.rail a.is-active {
  color: var(--accent);
}

.rail a.is-active::before {
  background: var(--accent);
  transform: scale(1.4);
  box-shadow: 0 0 0 4px rgba(255, 95, 147, 0.12), 0 0 18px var(--accent-glow);
}

.rail-label {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.rail a:hover .rail-label {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

@media (max-width: 980px) {
  .rail {
    display: none;
  }
}

/* ----- topbar ----- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 27, 0.65);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.topbar.is-scrolled {
  background: rgba(5, 10, 27, 0.84);
  border-bottom-color: var(--line-strong);
}

.topbar-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo img {
  width: 28px;
  height: 28px;
  transition: transform 0.6s var(--ease-out);
}

.logo:hover img {
  transform: rotate(-8deg) scale(1.05);
}

.logo-text {
  font-family: "Fredoka", "Manrope", sans-serif;
  font-weight: 600;
  font-size: 1.24rem;
  letter-spacing: 0;
}

.logo-tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}

.topbar-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.18s ease;
}

.topbar-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.28s var(--ease-out);
}

.topbar-nav a:hover {
  color: var(--text);
}

.topbar-nav a:hover::after,
.topbar-nav a.is-active::after {
  width: 100%;
}

.topbar-nav a.is-active {
  color: var(--text);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Manrope", sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--dim);
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 4px 4px;
  letter-spacing: 0.06em;
  transition: color 0.18s ease;
  position: relative;
}

.lang button:hover {
  color: var(--text);
}

.lang button.is-active {
  color: var(--accent);
}

.lang button.is-active::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  height: 1px;
  background: var(--accent);
}

/* ----- hero ----- */

.hero {
  padding: clamp(64px, 9vw, 120px) 0 0;
  position: relative;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  position: relative;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-title {
  margin: 6px 0 0;
  font-family: "Fraunces", "Manrope", serif;
  font-weight: 400;
  font-size: clamp(3.2rem, 7.2vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.028em;
  color: var(--text);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  position: relative;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite;
  /* extend the background box past the italic overshoot so the slant
     of letters like "d", "y", "s" isn't clipped to transparent;
     compensate with negative margin so visual spacing is unchanged */
  padding-right: 0.22em;
  margin-right: -0.16em;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* line-split reveal — preserves <em> and <br>;
   generous padding so italic descenders/slants aren't clipped */
.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0.08em 0.06em 0.22em;
}

.hero-title .line > span {
  display: inline-block;
  transform: translateY(125%);
  transition: transform 1.05s var(--ease-out);
  transition-delay: var(--line-delay, 0ms);
}

.hero-title.is-revealed .line > span {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .line > span {
    transform: none;
    transition: none;
  }
}

.hero-lead {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-lead strong {
  color: var(--text-soft);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  height: 50px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.3s var(--ease-out),
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.3s ease;
  will-change: transform;
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.32s var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(5px);
}

.btn-primary {
  background: var(--accent);
  color: #150713;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent) 100%);
  background-size: 200% 100%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 18px 48px -10px var(--accent-glow-strong);
  transform: translateY(-1px);
}

.btn-primary:hover::before {
  opacity: 1;
  animation: shimmer 3s ease-in-out infinite;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.35s var(--ease-out);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost:hover::after {
  width: 100%;
}

/* hero figure */

.hero-figure {
  position: relative;
  margin: 0;
  align-self: stretch;
  min-height: 380px;
  perspective: 1200px;
}

.hero-figure-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1.15;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-elev);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.7),
    0 0 0 1px var(--line);
}

.hero-figure-frame:hover {
  box-shadow:
    0 40px 90px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px var(--line-accent),
    0 0 60px -10px var(--accent-glow);
}

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

.hero-figure-frame:hover img {
  transform: scale(1.04);
}

.hero-figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 10, 27, 0.6));
  pointer-events: none;
}

/* corner registration marks */
.bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--accent);
  pointer-events: none;
  opacity: 0.85;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), opacity 0.4s ease;
}

.bracket.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.bracket.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.bracket.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.bracket.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.hero-figure-frame:hover ~ .hero-figure-caption .bracket,
.feature-figure:hover .bracket,
.hero-figure:hover .bracket {
  width: 32px;
  height: 32px;
}

.hero-figure-caption {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

/* override .mono helper inside hero figure caption — Manrope tracked
   reads cleaner alongside the brand pink "FIG.01" label */
.hero-figure-caption .mono {
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  letter-spacing: 0.16em;
}

/* floating accent dots near hero */
.hero-decoration {
  position: absolute;
  pointer-events: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-decoration::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

.hero-decoration.top-right {
  top: -8px;
  right: 0;
}

.hero-decoration.bottom-left {
  bottom: -20px;
  left: 0;
}

/* hero stats — animated counters */

.hero-stats {
  grid-column: 1 / -1;
  list-style: none;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.94rem;
  color: var(--text-soft);
  font-weight: 500;
  position: relative;
  padding-left: 14px;
}

.hero-stats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line-strong);
  transition: background 0.3s ease;
}

.hero-stats li:hover::before {
  background: var(--accent);
}

.hero-stats li .num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  color: var(--dim);
  letter-spacing: 0.16em;
}

/* scroll indicator */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollHint 2.2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollHint {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 980px) {
  .hero-scroll {
    display: none;
  }
}

/* ----- marquee ----- */

.marquee {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.012);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  animation: scroll 38s linear infinite;
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  font-variation-settings: "opsz" 96, "SOFT" 100;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  transition: color 0.3s ease;
}

.marquee-track span:hover {
  color: var(--text);
}

.marquee-track span::after {
  content: "✦";
  color: var(--accent);
  font-style: normal;
  font-size: 0.7em;
  opacity: 0.7;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ----- section base ----- */

.section {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
}

.section-watermark {
  position: absolute;
  top: clamp(48px, 8vw, 96px);
  right: 0;
  font-family: "Fredoka", "Manrope", sans-serif;
  font-weight: 600;
  font-size: clamp(8rem, 24vw, 22rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(185, 198, 255, 0.06);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  z-index: 0;
}

.section > .shell {
  position: relative;
  z-index: 1;
}

.section-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.section-id {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.section-id .num {
  color: var(--accent);
}

.section-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--text);
  max-width: 18ch;
  font-variation-settings: "opsz" 96, "SOFT" 40;
}

.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* room for italic overshoot (slant of d, y, s, etc.) — compensated by negative margin */
  padding-right: 0.22em;
  margin-right: -0.16em;
}

.section-lead {
  max-width: 56ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 5vw, 56px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-intro .section-lead {
  margin-top: 0;
}

/* ----- presence (section 01) ----- */

.presence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.presence-item {
  padding: 36px 28px 36px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.4s ease;
}

.presence-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 95, 147, 0.04), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.presence-item:hover::before {
  opacity: 1;
}

.presence-item + .presence-item {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.presence-num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.presence-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variation-settings: "opsz" 96, "SOFT" 40;
  position: relative;
  z-index: 1;
}

.presence-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.96rem;
  position: relative;
  z-index: 1;
}

/* ----- desktop (section 02) ----- */

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.feature-split-reverse {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.feature-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
  background: var(--bg-elev);
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.7),
    0 0 0 1px var(--line);
  transition: box-shadow 0.5s var(--ease-out);
}

.feature-figure:hover {
  box-shadow:
    0 40px 90px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px var(--line-accent),
    0 0 60px -10px var(--accent-glow);
}

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

.feature-figure:hover img {
  transform: scale(1.05);
}

.feature-figure .bracket {
  border-color: var(--line-strong);
}

.feature-figure:hover .bracket {
  border-color: var(--accent);
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.feature-list li {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  position: relative;
  transition: padding-left 0.35s var(--ease-out);
}

.feature-list li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}

.feature-list li:hover {
  padding-left: 24px;
}

.feature-list li:hover::after {
  width: 14px;
}

.feature-list li:hover .feature-num {
  color: var(--accent);
}

.feature-list li:last-child {
  border-bottom: 0;
}

.feature-list li:first-child {
  border-top: 1px solid var(--line);
}

.feature-num {
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 4px;
  transition: color 0.3s ease;
}

.feature-body h3 {
  margin: 0 0 8px;
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  font-variation-settings: "opsz" 96, "SOFT" 40;
}

.feature-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.96rem;
}

/* ----- capabilities (section 04) ----- */

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.capability {
  padding: 36px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}

.capability::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.capability:hover::before {
  transform: scaleX(1);
}

.capability::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 100%, rgba(255, 95, 147, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.capability:hover::after {
  opacity: 1;
}

.capability > * {
  position: relative;
  z-index: 1;
}

.capability + .capability {
  border-left: 1px solid var(--line);
}

.capability:first-child {
  padding-left: 0;
}

.capability:last-child {
  padding-right: 0;
}

.capability-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}

.capability-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}

.capability h3 {
  margin: 14px 0 8px;
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  font-variation-settings: "opsz" 96, "SOFT" 40;
  transition: color 0.3s ease;
}

.capability:hover h3 {
  color: var(--text);
}

.capability p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.96rem;
}

/* ----- gallery (section 05) ----- */

.gallery-title {
  margin-bottom: clamp(32px, 5vw, 56px);
}

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

.gallery-item {
  position: relative;
  margin: 0;
  perspective: 1000px;
}

.gallery-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow:
    0 20px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--line);
  transition: box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transform-style: preserve-3d;
}

.gallery-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5, 10, 27, 0.5));
  opacity: 0.6;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-frame::before {
  content: "VIEW";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  font-family: "Manrope", sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  padding: 10px 18px;
  border: 1px solid var(--accent);
  background: rgba(5, 10, 27, 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
  z-index: 2;
  pointer-events: none;
}

.gallery-item:hover .gallery-frame {
  box-shadow:
    0 30px 80px -15px rgba(0, 0, 0, 0.75),
    0 0 0 1px var(--line-accent),
    0 0 50px -10px var(--accent-glow);
}

.gallery-item:hover .gallery-frame::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-item:hover .gallery-frame::after {
  opacity: 0.85;
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.5s ease;
  filter: saturate(0.95);
}

.gallery-item:hover .gallery-frame img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

.gallery-caption {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.gallery-caption strong {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
  color: var(--text);
  font-variation-settings: "opsz" 60, "SOFT" 40;
}

.gallery-item.wide { grid-column: span 7; }
.gallery-item.narrow { grid-column: span 5; }
.gallery-item.narrow .gallery-frame { aspect-ratio: 0.78; }
.gallery-item.wide .gallery-frame { aspect-ratio: 1.5; }

.gallery-item.wide-2 { grid-column: span 5; }
.gallery-item.narrow-2 { grid-column: span 7; }
.gallery-item.wide-2 .gallery-frame { aspect-ratio: 0.78; }
.gallery-item.narrow-2 .gallery-frame { aspect-ratio: 1.5; }

/* ----- closing ----- */

.closing {
  padding: clamp(96px, 14vw, 180px) 0 clamp(40px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vw;
  max-width: 1200px;
  max-height: 1200px;
  background: radial-gradient(circle, rgba(255, 95, 147, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.closing-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
}

.closing-wordmark {
  font-family: "Fredoka", "Manrope", sans-serif;
  font-weight: 600;
  font-size: clamp(6rem, 18vw, 16rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  background:
    linear-gradient(180deg, var(--text) 0%, var(--text) 45%, transparent 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.closing-wordmark::after {
  content: attr(data-product-name);
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transition: opacity 0.8s ease;
  animation: shimmer 6s ease-in-out infinite;
}

.closing-wordmark:hover::after {
  opacity: 1;
}

.closing-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
  max-width: 22ch;
  color: var(--text);
  font-variation-settings: "opsz" 96, "SOFT" 60;
}

.closing-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* room for italic overshoot — compensated by negative margin */
  padding-right: 0.22em;
  margin-right: -0.16em;
}

.closing-lead {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.closing-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.closing-fine {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--dim);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.closing-fine a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.closing-fine a:hover {
  color: var(--accent);
}

/* ----- footer ----- */

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 36px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.footer-logo img {
  width: 24px;
  height: 24px;
}

.footer-logo .logo-text {
  font-size: 1rem;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 32ch;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  position: relative;
  transition: color 0.18s ease, padding-left 0.25s var(--ease-out);
}

.footer-col a::before {
  content: "→";
  position: absolute;
  left: -16px;
  opacity: 0;
  transition: opacity 0.25s ease, left 0.25s var(--ease-out);
  color: var(--accent);
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 14px;
}

.footer-col a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  color: var(--dim);
  font-family: "Manrope", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}

/* ----- responsive ----- */

@media (max-width: 980px) {
  .hero-shell,
  .feature-split,
  .feature-split-reverse,
  .section-intro {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-figure {
    min-height: auto;
  }

  .hero-figure-frame {
    aspect-ratio: 1.3;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .presence,
  .capabilities {
    grid-template-columns: 1fr;
  }

  .presence-item,
  .capability {
    padding: 28px 0;
    border-left: 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .presence-item + .presence-item {
    padding-left: 0;
  }

  .capability + .capability {
    border-left: 0;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.wide,
  .gallery-item.narrow,
  .gallery-item.wide-2,
  .gallery-item.narrow-2 {
    grid-column: auto;
  }

  .gallery-item .gallery-frame {
    aspect-ratio: 1.1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-watermark {
    font-size: clamp(7rem, 28vw, 18rem);
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
  }

  .topbar-inner {
    grid-template-columns: 1fr auto;
    min-height: 56px;
    gap: 12px;
  }

  .topbar-nav {
    display: none;
  }

  .logo-tag {
    display: none;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .marquee-track {
    font-size: 1.05rem;
    gap: 32px;
  }

  .marquee-track span {
    gap: 32px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item .gallery-frame {
    aspect-ratio: 1.2;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-actions,
  .closing-actions {
    width: 100%;
  }

  .section-watermark {
    display: none;
  }

  .grain {
    display: none;
  }
}

/* =================================================================
   Legal pages (Privacy Policy / Terms of Service)
   Standalone documents under /webpage/privacy/ and /webpage/terms/.
   The header reuses the marketing .topbar / .logo / .topbar-nav /
   .lang components verbatim, so no header CSS lives here. The body
   is deliberately flat and editorial — a single readable column,
   hairline dividers instead of cards, no filled surfaces.
   ================================================================= */

.doc-body {
  padding: clamp(44px, 7vw, 88px) 0 clamp(64px, 9vw, 112px);
}

.doc-layout {
  max-width: 72ch;
}

/* intro / lead block */
.doc-kicker {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.doc-layout h1 {
  margin: 0 0 14px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variation-settings: "opsz" 96, "SOFT" 40;
}

.doc-meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--dim);
  margin: 0 0 26px;
}

/* the opening paragraph reads as a lead */
.doc-card:first-child p {
  font-size: 1.08rem;
  color: var(--text-soft);
}

/* sections are plain — separated by air and a hairline, never boxed */
.doc-card {
  padding: 0;
}

.doc-card + .doc-card {
  margin-top: clamp(34px, 5vw, 56px);
  padding-top: clamp(34px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

.doc-layout h2 {
  margin: 0 0 16px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--text);
}

.doc-layout p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 14px;
}

.doc-layout p:last-child {
  margin-bottom: 0;
}

.doc-layout strong {
  color: var(--text-soft);
  font-weight: 600;
}

.doc-layout em {
  color: var(--muted);
  font-style: italic;
}

.doc-layout ul {
  margin: 4px 0 14px;
  padding-left: 1.1em;
  display: grid;
  gap: 11px;
}

.doc-layout li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  padding-left: 4px;
}

.doc-layout li::marker {
  color: var(--accent);
}

.doc-layout code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.86em;
  color: var(--accent-2);
  padding: 0 2px;
}

.inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line-accent);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.inline-link:hover {
  color: var(--accent-2);
  border-bottom-color: currentColor;
}

/* ----- legal footer — quiet, single row of links ----- */

.footer-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--accent);
}
