/* ============================================================
   DESIGN EVER AFTER — premium studio landing page
   Tokens · Aurora system · Glass · Type · Components
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=general-sans@400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..700&family=Space+Grotesk:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* ink base */
  --ink-900: #07070d;
  --ink-850: #0a0a12;   /* page base */
  --ink-800: #0d0d18;
  --ink-750: #11111f;
  --ink-700: #16162a;

  /* text */
  --text:      #f2f3fb;
  --text-soft: #cdd0e0;
  --text-mute: #9498ae;
  --text-faint:#6a6e87;

  /* accent — vibrant, lively cyan → violet → rose (tweakable) */
  --c1: #22d3ee;   /* bright cyan  */
  --c2: #8b5cf6;   /* violet       */
  --c3: #fb5ca8;   /* rose         */
  --accent: var(--c2);
  --accent-bright: var(--c1);
  --aurora: linear-gradient(105deg, var(--c1) 0%, var(--c2) 52%, var(--c3) 100%);
  --aurora-soft: linear-gradient(105deg, color-mix(in oklab, var(--c1) 65%, transparent), color-mix(in oklab, var(--c2) 65%, transparent), color-mix(in oklab, var(--c3) 65%, transparent));

  /* glass */
  --glass-bg:   rgba(255,255,255,0.035);
  --glass-bg-2: rgba(255,255,255,0.055);
  --glass-brd:  rgba(255,255,255,0.10);
  --hairline:   rgba(255,255,255,0.08);

  /* type */
  --sans:    'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', 'Geist', system-ui, -apple-system, sans-serif;
  --serif:   var(--display); /* legacy alias */
  --mono:    'Geist Mono', ui-monospace, 'SF Mono', monospace;

  /* layout */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(56px, 7vw, 104px);
  --radius: 20px;
  --radius-lg: 28px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-dur: 0.9s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--ink-850);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

::selection { background: color-mix(in oklab, var(--c2) 55%, transparent); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ============================================================
   BACKGROUND ATMOSPHERE — aurora field + grain
   ============================================================ */
.atmosphere {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.32;
  mix-blend-mode: screen;
  will-change: transform;
}
.blob.b1 { width: 52vw; height: 52vw; left: -14vw; top: -12vw; opacity: 0.28;
  background: radial-gradient(circle at 30% 30%, var(--c1), transparent 62%);
  animation: drift1 26s var(--ease) infinite alternate; }
.blob.b2 { width: 46vw; height: 46vw; right: -10vw; top: 8vh; opacity: 0.34;
  background: radial-gradient(circle at 60% 40%, var(--c2), transparent 60%);
  animation: drift2 32s var(--ease) infinite alternate; }
.blob.b3 { width: 42vw; height: 42vw; left: 24vw; top: 64vh;
  background: radial-gradient(circle at 50% 50%, var(--c3), transparent 60%);
  opacity: 0.24; animation: drift3 38s var(--ease) infinite alternate; }

@keyframes drift1 { to { transform: translate(8vw, 10vh) scale(1.18); } }
@keyframes drift2 { to { transform: translate(-7vw, 12vh) scale(1.12); } }
@keyframes drift3 { to { transform: translate(6vw, -10vh) scale(1.22); } }

.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045; mix-blend-mode: overlay;
}
/* subtle top vignette to seat the nav */
.atmosphere::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,0.04), transparent 60%),
              linear-gradient(180deg, rgba(7,7,13,0.55), transparent 22%, transparent 78%, rgba(7,7,13,0.85));
}

/* motion off */
body.motion-off .blob { animation: none; }
body.motion-off * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
body.motion-off .reveal { opacity: 1 !important; transform: none !important; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
main { position: relative; z-index: 2; }
section { position: relative; }
.section { padding-block: var(--section-y); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-mute);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: var(--aurora);
}
.section-head { max-width: 640px; margin-bottom: clamp(32px, 3.5vw, 52px); }
.section-title {
  font-family: var(--serif); font-weight: 360;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1.02; letter-spacing: -0.02em;
  margin-top: 20px; text-wrap: balance;
}
.section-lead {
  color: var(--text-soft); font-size: clamp(1rem, 1.4vw, 1.18rem);
  margin-top: 22px; max-width: 52ch; line-height: 1.7;
}

.grad-text {
  background: var(--aurora); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ============================================================
   GLASS
   ============================================================ */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7),
              inset 0 1px 0 rgba(255,255,255,0.07);
}
/* hairline gradient border */
.gradient-border {
  position: relative; border: 1px solid transparent;
  background:
    linear-gradient(var(--ink-800), var(--ink-800)) padding-box,
    var(--aurora) border-box;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 100px;
  font-size: 0.96rem; font-weight: 500; letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
  white-space: nowrap; overflow: hidden; will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  color: #0b0b14; font-weight: 600;
  background: #f4f4f8;
  box-shadow: 0 10px 26px -12px rgba(0,0,0,0.6),
              inset 0 1px 0 rgba(255,255,255,0.7);
}
.btn-primary:hover {
  transform: translateY(-3px);
  background: #ffffff;
  box-shadow: 0 16px 34px -14px rgba(0,0,0,0.65),
              0 0 24px -10px color-mix(in oklab, var(--accent-bright) 55%, transparent);
}
.btn-primary:active { transform: translateY(-1px); }
/* keep readable in light mode */
html[data-theme="light"] .btn-primary {
  color: #ffffff;
  background: #15131f;
  box-shadow: 0 12px 28px -14px rgba(20,18,40,0.55);
}
html[data-theme="light"] .btn-primary:hover {
  background: #211d33;
  box-shadow: 0 18px 36px -16px rgba(20,18,40,0.6);
}

.btn-ghost {
  color: var(--text); background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-3px); background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.22); }

.btn-sm { padding: 11px 20px; font-size: 0.86rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: var(--container); margin-inline: auto; padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: padding 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(8,8,16,0.72); backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--hairline);
}
.nav.scrolled .nav-inner { padding-block: 14px; }

.logo { font-family: var(--serif); font-size: 1.32rem; font-weight: 420; letter-spacing: -0.01em; display: flex; align-items: center; gap: 11px; }
.logo .mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--aurora); position: relative;
  box-shadow: 0 0 18px -2px color-mix(in oklab, var(--c2) 70%, transparent);
}
.logo .mark::after {
  content: ""; position: absolute; inset: 6px; border-radius: 4px;
  background: var(--ink-850);
}
.logo .mark::before {
  content: ""; position: absolute; inset: 11px; border-radius: 50%;
  background: var(--aurora); z-index: 1;
}

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 0.92rem; color: var(--text-soft); position: relative; padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--aurora); transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--glass-brd); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 18px; height: 1.5px; background: var(--text); transition: 0.3s var(--ease); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(120px, 15vh, 190px); padding-bottom: clamp(48px, 6vw, 90px); overflow: visible; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 100px; font-size: 0.82rem; color: var(--text-soft);
  background: rgba(255,255,255,0.04); border: 1px solid var(--hairline); margin-bottom: 30px;
  font-weight: 450; letter-spacing: 0.01em;
}
.hero-badge .dot-ic { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 10px color-mix(in oklab, var(--accent-bright) 80%, transparent); flex: none; }

.hero-headline {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.5rem, 5.9vw, 4.9rem); line-height: 1.04; letter-spacing: -0.035em;
  text-wrap: balance; min-height: 2.12em;
}
.rotator { display: block; }
.rotator-line { display: block; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), filter 0.45s var(--ease); }
.rotator-line.out { opacity: 0.1; transform: translateY(-0.14em); filter: blur(3px); }
.hero-headline .lead { color: var(--text); }
.hero-sub {
  margin-top: 30px; max-width: 50ch; font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  color: var(--text-soft); line-height: 1.65;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.trust-line {
  margin-top: 34px; display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem; color: var(--text-mute);
}
.trust-line .dot-ic { width: 7px; height: 7px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 10px var(--c1); flex: none; }

/* ---- hero mockup ---- */
.hero-visual { position: relative; }
.mockup {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  animation: floaty 9s var(--ease) infinite alternate;
  z-index: 2;
}
@keyframes floaty { to { transform: translateY(-16px); } }
.mockup-glow {
  position: absolute; inset: -14% -10%; z-index: 0; filter: blur(80px); opacity: 0.4;
  background: var(--aurora); border-radius: 50%; transform: scale(0.85);
  animation: pulseGlow 7s ease infinite alternate;
}
@keyframes pulseGlow { to { opacity: 0.55; transform: scale(1); } }

.browser-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--hairline); }
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.browser-bar .url {
  margin-left: 12px; flex: 1; font-family: var(--mono); font-size: 0.72rem; color: var(--text-mute);
  background: rgba(255,255,255,0.04); border-radius: 8px; padding: 6px 12px;
  display: flex; align-items: center; gap: 8px;
}
.browser-bar .url svg { width: 11px; height: 11px; color: var(--c1); }

.dash { padding: 20px; display: grid; gap: 14px; }
.dash-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dash-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }
.dash-title span { display: block; font-family: var(--sans); font-size: 0.72rem; color: var(--text-mute); letter-spacing: 0.04em; margin-top: 2px; }
.dash-live { display: inline-flex; align-items: center; gap: 7px; font-size: 0.7rem; color: var(--text-soft); font-family: var(--mono); }
.dash-live i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; animation: blink 1.8s ease infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

.spark { height: 92px; border-radius: 14px; background: rgba(255,255,255,0.025); border: 1px solid var(--hairline); padding: 12px 14px; position: relative; overflow: hidden; }
.spark svg { width: 100%; height: 100%; overflow: visible; }
.spark .lbl { position: absolute; top: 10px; left: 14px; font-size: 0.68rem; color: var(--text-mute); font-family: var(--mono); }

.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-stat { border-radius: 14px; padding: 14px; background: rgba(255,255,255,0.025); border: 1px solid var(--hairline); }
.dash-stat .n { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; line-height: 1; }
.dash-stat .k { font-size: 0.72rem; color: var(--text-mute); margin-top: 6px; }

.tasks { display: grid; gap: 9px; }
.task { display: flex; align-items: center; gap: 11px; font-size: 0.82rem; color: var(--text-soft); }
.task .box { width: 18px; height: 18px; border-radius: 6px; flex: none; display: grid; place-items: center; background: var(--aurora); }
.task .box svg { width: 11px; height: 11px; color: #0a0a12; }
.task.todo .box { background: rgba(255,255,255,0.06); border: 1px solid var(--hairline); }
.task.done span { color: var(--text-mute); text-decoration: line-through; text-decoration-color: var(--text-faint); }

/* floating chips */
.chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
  padding: 13px 17px; border-radius: 16px; font-size: 0.82rem; max-width: 220px;
  background: rgba(14,14,24,0.72); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-brd);
  box-shadow: 0 20px 50px -16px rgba(0,0,0,0.8);
  animation: floaty 7s var(--ease) infinite alternate;
}
.chip .ic { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--aurora-soft); }
.chip .ic svg { width: 19px; height: 19px; color: #fff; }
.chip .big { font-family: var(--serif); font-size: 1.35rem; line-height: 1; font-weight: 400; }
.chip .small { color: var(--text-soft); line-height: 1.3; }
.chip.c1 { top: 8%; left: -7%; animation-delay: -2s; }
.chip.c2 { bottom: 10%; right: -6%; animation-delay: -4s; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust { padding-block: clamp(40px, 6vw, 76px); border-block: 1px solid var(--hairline); }
.trust-label { text-align: center; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 30px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: clamp(36px, 6vw, 84px); width: max-content; animation: scrollx 34s linear infinite; }
body.motion-off .marquee-track { animation: none; }
@keyframes scrollx { to { transform: translateX(-50%); } }
.brand-name { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.85rem); font-weight: 380; color: var(--text-mute); white-space: nowrap; transition: color 0.3s var(--ease); opacity: 0.8; }
.brand-name:hover { color: var(--text); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card {
  padding: 30px 28px 32px; border-radius: var(--radius); display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease);
  overflow: hidden; min-height: 100%;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--aurora);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.service-card:hover { transform: translateY(-8px); background: var(--glass-bg-2); box-shadow: 0 40px 80px -34px rgba(0,0,0,0.8); }
.service-card:hover::before { opacity: 1; }
.svc-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 24px; background: rgba(255,255,255,0.04); border: 1px solid var(--hairline); transition: 0.5s var(--ease); }
.svc-icon svg { width: 26px; height: 26px; stroke: var(--text); transition: 0.5s var(--ease); }
.service-card:hover .svc-icon { border-color: transparent; background: var(--aurora-soft); }
.svc-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; letter-spacing: -0.01em; }
.svc-desc { color: var(--text-mute); font-size: 0.92rem; margin-top: 12px; line-height: 1.6; flex: 1; }
.svc-bullets { margin-top: 22px; display: grid; gap: 11px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.svc-bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: var(--text-soft); }
.svc-bullets svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--c1); }
.svc-tag { display: inline-block; margin-top: 18px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c1); }

/* ============================================================
   WORK GALLERY
   ============================================================ */
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; grid-auto-flow: dense; }
.work-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--hairline); min-height: 230px; display: flex; align-items: flex-end;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.work-tile.wide { grid-column: span 4; }
.work-tile.tall { grid-column: span 2; }
.work-tile.half { grid-column: span 3; }
.work-tile.third { grid-column: span 2; }
.tile-media { position: absolute; inset: 0; transition: transform 0.7s var(--ease); }
.work-tile:hover { transform: translateY(-6px); border-color: var(--glass-brd); box-shadow: 0 40px 80px -36px rgba(0,0,0,0.85); }
.work-tile:hover .tile-media { transform: scale(1.07); }
.tile-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(5,5,11,0.85)); z-index: 1; }
.tile-meta { position: relative; z-index: 2; padding: 24px; width: 100%; }
.tile-tag { display: inline-block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: #f3f4fb; padding: 5px 11px; border-radius: 100px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(8px); margin-bottom: 12px; }
.tile-title { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.7rem); font-weight: 400; line-height: 1.1; color: #f4f5fb; }
.tile-sub { color: rgba(243,244,251,0.82); font-size: 0.85rem; margin-top: 6px; opacity: 0; transform: translateY(8px); transition: 0.5s var(--ease); }
.work-tile:hover .tile-sub { opacity: 1; transform: none; }
.tile-arrow { position: absolute; top: 22px; right: 22px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.08); border: 1px solid var(--glass-brd); backdrop-filter: blur(8px); opacity: 0; transform: scale(0.8) rotate(-20deg); transition: 0.5s var(--ease); }
.tile-arrow svg { width: 17px; height: 17px; color: #fff; }
.work-tile:hover .tile-arrow { opacity: 1; transform: none; }

/* decorative tile backgrounds (placeholders) */
.ph { width: 100%; height: 100%; position: relative; overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: 0; opacity: 0.32;
  background-image: radial-gradient(rgba(255,255,255,0.13) 1px, transparent 1px); background-size: 18px 18px; }
.ph-aurora { background: linear-gradient(135deg, color-mix(in oklab,var(--c1) 52%, #0d0d18), color-mix(in oklab,var(--c2) 48%, #0d0d18) 55%, color-mix(in oklab,var(--c3) 52%, #0d0d18)); }
.ph-violet { background: linear-gradient(150deg, color-mix(in oklab,var(--c2) 52%, #08080f), #0d0d18); }
.ph-cyan { background: linear-gradient(150deg, color-mix(in oklab,var(--c1) 42%, #08080f), #0d0d18); }
.ph-rose { background: linear-gradient(150deg, color-mix(in oklab,var(--c3) 48%, #08080f), #0d0d18); }
.ph-ink { background: linear-gradient(150deg, #16162a, #08080f); }
/* faux UI inside tiles */
.ph-ui { position: absolute; inset: 18px 18px auto 18px; display: grid; gap: 8px; opacity: 0.9; }
.ph-ui .bar { height: 9px; border-radius: 5px; background: rgba(255,255,255,0.22); }
.ph-ui .bar.s { width: 40%; }
.ph-ui .bar.m { width: 65%; }
.ph-card { position: absolute; right: 16px; bottom: 70px; width: 46%; aspect-ratio: 1.5; border-radius: 12px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(6px); }
.ph-book { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%) rotate(-4deg); width: 32%; aspect-ratio: 0.66; border-radius: 4px 8px 8px 4px; background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04)); border: 1px solid rgba(255,255,255,0.2); box-shadow: -8px 10px 28px rgba(0,0,0,0.5); }
.ph-book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: rgba(0,0,0,0.3); }

/* ============================================================
   CASE STUDIES
   ============================================================ */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.case-card:hover { transform: translateY(-8px); border-color: var(--glass-brd); box-shadow: 0 40px 80px -36px rgba(0,0,0,0.85); }
.case-visual { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.case-visual .ph { position: absolute; inset: 0; transition: transform 0.7s var(--ease); }
.case-card:hover .case-visual .ph { transform: scale(1.05); }
.case-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.case-kicker { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.case-kicker span { color: var(--text-faint); }
.case-title { font-family: var(--display); font-size: clamp(1.25rem, 1.8vw, 1.55rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.case-desc { color: var(--text-soft); margin-top: 12px; line-height: 1.65; font-size: 0.92rem; flex: 1; }
.case-metrics { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.case-metric .n { font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.case-metric .n.grad-text { background: none; -webkit-text-fill-color: var(--text); color: var(--text); font-style: normal; }
.case-metric .k { font-size: 0.74rem; color: var(--text-mute); margin-top: 7px; max-width: 16ch; }
.case-link { margin-top: 22px; display: inline-flex; align-items: center; gap: 9px; font-size: 0.86rem; font-weight: 500; width: fit-content; color: var(--text); }
.case-link svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.case-link:hover svg { transform: translateX(4px); }

/* ============================================================
   PRICING
   ============================================================ */
.price-tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 100px; background: rgba(255,255,255,0.04); border: 1px solid var(--hairline); margin-bottom: 52px; flex-wrap: wrap; }
.price-tab { padding: 11px 22px; border-radius: 100px; font-size: 0.9rem; font-weight: 500; color: var(--text-mute); transition: color 0.3s var(--ease); position: relative; }
.price-tab.active { color: #0a0a12; }
.price-tab.active::before { content: ""; position: absolute; inset: 0; border-radius: 100px; background: var(--aurora); z-index: -1; box-shadow: 0 6px 18px -6px color-mix(in oklab, var(--c2) 70%, transparent); }
.price-tab:not(.active):hover { color: var(--text); }

.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price-card { padding: 32px 28px; border-radius: var(--radius); display: flex; flex-direction: column; transition: transform 0.5s var(--ease); }
.price-card.featured { background: var(--glass-bg-2); transform: scale(1.03); z-index: 2; }
.price-card.featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--aurora); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.price-card:hover { transform: translateY(-6px); }
.price-card.featured:hover { transform: scale(1.03) translateY(-6px); }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: #0a0a12; font-weight: 600; padding: 6px 14px; border-radius: 100px; background: var(--aurora); white-space: nowrap; box-shadow: 0 8px 20px -6px color-mix(in oklab, var(--c2) 80%, transparent); }
.price-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.price-tagline { color: var(--text-mute); font-size: 0.84rem; margin-top: 8px; min-height: 2.4em; }
.price-amount { margin-top: 24px; display: flex; align-items: baseline; gap: 3px; }
.price-amount .cur { font-family: var(--serif); font-size: 1.5rem; color: var(--text-soft); align-self: flex-start; margin-top: 6px; }
.price-amount .val { font-family: var(--serif); font-size: 3rem; font-weight: 380; line-height: 1; letter-spacing: -0.02em; }
.price-amount .per { color: var(--text-mute); font-size: 0.8rem; align-self: flex-end; margin-bottom: 8px; }
.price-feats { margin-top: 26px; display: grid; gap: 13px; flex: 1; }
.price-feats li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.88rem; color: var(--text-soft); }
.price-feats svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--c1); }
.price-card .btn { margin-top: 28px; justify-content: center; width: 100%; }
.price-note { text-align: center; margin-top: 34px; font-size: 0.88rem; color: var(--text-mute); display: inline-flex; gap: 9px; align-items: center; justify-content: center; width: 100%; }
.price-note svg { width: 16px; height: 16px; color: var(--c1); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 16px; border: 1px solid var(--hairline); overflow: hidden; transition: border-color 0.4s var(--ease), background 0.4s var(--ease); }
.faq-item.open { border-color: var(--glass-brd); background: var(--glass-bg); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px; text-align: left; font-size: 1.05rem; font-weight: 450; font-family: var(--serif); }
.faq-icon { width: 26px; height: 26px; flex: none; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--text-soft); border-radius: 2px; transition: 0.4s var(--ease); }
.faq-icon::before { top: 50%; left: 4px; right: 4px; height: 1.5px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 4px; bottom: 4px; width: 1.5px; transform: translateX(-50%); }
.faq-item.open .faq-icon::after { transform: translateX(-50%) scaleY(0); }
.faq-item.open .faq-icon::before { background: var(--c1); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-a-inner { padding: 0 26px 26px; color: var(--text-soft); line-height: 1.75; font-size: 0.96rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.contact-headline { font-family: var(--serif); font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 360; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.contact-lead { color: var(--text-soft); margin-top: 24px; font-size: 1.08rem; line-height: 1.7; max-width: 42ch; }
.contact-points { margin-top: 36px; display: grid; gap: 18px; }
.contact-point { display: flex; align-items: center; gap: 14px; color: var(--text-soft); font-size: 0.96rem; }
.contact-point .ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,0.04); border: 1px solid var(--hairline); }
.contact-point .ic svg { width: 19px; height: 19px; color: var(--c1); }

.form { padding: clamp(28px, 3.5vw, 44px); border-radius: var(--radius-lg); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.row2 { grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.8rem; color: var(--text-mute); font-weight: 500; letter-spacing: 0.01em; }
.field .sub { display: grid; gap: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; font-family: inherit; font-size: 0.95rem;
  color: var(--text); background: rgba(255,255,255,0.03); border: 1px solid var(--hairline);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237c7f97' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; cursor: pointer; }
.field option { background: var(--ink-800); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: color-mix(in oklab, var(--c2) 60%, transparent); background: rgba(255,255,255,0.05); box-shadow: 0 0 0 3px color-mix(in oklab, var(--c2) 18%, transparent); }
.form .btn { margin-top: 6px; justify-content: center; }
.form-note { font-size: 0.78rem; color: var(--text-faint); text-align: center; }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.show { display: block; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: var(--aurora-soft); border: 1px solid var(--glass-brd); }
.form-success .check svg { width: 30px; height: 30px; color: var(--c1); }
.form-success h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
.form-success p { color: var(--text-soft); margin-top: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--hairline); padding-block: clamp(56px, 7vw, 90px) 40px; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--hairline); }
.footer-tagline { color: var(--text-mute); margin-top: 20px; max-width: 34ch; line-height: 1.65; }
.footer-col h4 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: var(--text-soft); font-size: 0.92rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 30px; flex-wrap: wrap; }
.footer-copy { color: var(--text-faint); font-size: 0.86rem; }
.socials { display: flex; gap: 12px; }
.social { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--hairline); background: rgba(255,255,255,0.03); transition: 0.4s var(--ease); }
.social svg { width: 18px; height: 18px; color: var(--text-soft); transition: 0.4s var(--ease); }
.social:hover { transform: translateY(-3px); border-color: transparent; background: var(--aurora-soft); }
.social:hover svg { color: #fff; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-6px); }
  .work-tile.wide { grid-column: span 6; }
  .work-tile.half { grid-column: span 6; }
  .work-tile.tall, .work-tile.third { grid-column: span 3; }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 520px; }
  .chip.c1 { left: 2%; }
  .chip.c2 { right: 2%; }
  .case-card { grid-template-columns: 1fr; }
  .case-card:nth-child(even) .case-visual { order: 0; }
  .faq-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu .nav-links { display: grid; }
}
@media (max-width: 620px) {
  .services-grid, .price-grid { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-tile.wide, .work-tile.half, .work-tile.tall, .work-tile.third { grid-column: span 2; }
  .field.row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .chip { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* mobile menu */
.mobile-menu { position: fixed; inset: 0 0 auto 0; z-index: 99; padding: 90px var(--gutter) 36px; background: rgba(8,8,16,0.96); backdrop-filter: blur(20px); border-bottom: 1px solid var(--hairline); transform: translateY(-100%); transition: transform 0.5s var(--ease); }
.mobile-menu.open { transform: translateY(0); }
.mobile-menu .nav-links { display: grid; gap: 4px; }
.mobile-menu .nav-links a { font-family: var(--serif); font-size: 1.5rem; padding: 14px 0; border-bottom: 1px solid var(--hairline); color: var(--text); }
.mobile-menu .btn { margin-top: 24px; width: 100%; justify-content: center; }

/* ============================================================
   HEADLINE TYPE — Clash Display (confident, characterful)
   ============================================================ */
.hero-headline { font-weight: 600; letter-spacing: -0.02em; line-height: 1.02; }
.section-title, .case-title, .contact-headline,
.svc-name, .tile-title, .price-name, .dash-title,
.form-success h3 { font-weight: 600; letter-spacing: -0.015em; }
.section-title, .contact-headline { letter-spacing: -0.018em; }
.faq-q { font-weight: 500; letter-spacing: -0.01em; }
.logo { font-weight: 600; letter-spacing: -0.01em; }
.brand-name { font-weight: 500; letter-spacing: -0.005em; }
.price-amount .val, .case-metric .n, .dash-stat .n, .chip .big { font-weight: 600; letter-spacing: -0.02em; }

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--glass-brd); background: rgba(255,255,255,0.03);
  color: var(--text-soft); transition: 0.35s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: rgba(255,255,255,0.22); transform: translateY(-2px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ic-moon { display: none; }
.theme-toggle .ic-sun { display: block; }
html[data-theme="light"] .theme-toggle { background: rgba(20,18,45,0.03); }
html[data-theme="light"] .theme-toggle:hover { border-color: rgba(20,18,45,0.22); }
html[data-theme="light"] .theme-toggle .ic-sun { display: none; }
html[data-theme="light"] .theme-toggle .ic-moon { display: block; }

/* ============================================================
   LIGHT THEME
   ============================================================ */
html[data-theme="light"] {
  --ink-900: #e7e5f1;
  --ink-850: #f5f4fb;   /* page base */
  --ink-800: #ffffff;
  --ink-750: #f1eff8;
  --ink-700: #e8e5f2;
  --text:      #191826;
  --text-soft: #423f53;
  --text-mute: #65637a;
  --text-faint:#9491a8;
  --glass-bg:   rgba(255,255,255,0.55);
  --glass-bg-2: rgba(255,255,255,0.8);
  --glass-brd:  rgba(26,22,52,0.10);
  --hairline:   rgba(26,22,52,0.09);
}
html[data-theme="light"] body { background: var(--ink-850); }
html[data-theme="light"] .glass {
  box-shadow: 0 22px 50px -34px rgba(50,38,110,0.32), inset 0 1px 0 rgba(255,255,255,0.65);
}
/* atmosphere: subtle on light */
html[data-theme="light"] .blob { mix-blend-mode: normal; opacity: 0.1; filter: blur(120px); }
html[data-theme="light"] .blob.b1 { opacity: 0.08; }
html[data-theme="light"] .blob.b3 { opacity: 0.07; }
html[data-theme="light"] .grain { opacity: 0.025; mix-blend-mode: multiply; }
html[data-theme="light"] .atmosphere::after {
  background: radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,0.55), transparent 60%),
              linear-gradient(180deg, rgba(255,255,255,0.6), transparent 22%, transparent 80%, rgba(228,226,242,0.55));
}
html[data-theme="light"] .nav.scrolled {
  background: rgba(255,255,255,0.74); border-bottom-color: var(--hairline);
}
html[data-theme="light"] .mobile-menu { background: rgba(255,255,255,0.97); }
/* readable accent text/icons on light surfaces */
html[data-theme="light"] .grad-text {
  background: none;
  -webkit-text-fill-color: color-mix(in oklab, var(--c2) 82%, #140d2e);
  color: color-mix(in oklab, var(--c2) 82%, #140d2e);
}
html[data-theme="light"] .svc-tag,
html[data-theme="light"] .case-kicker { color: color-mix(in oklab, var(--c2) 80%, #150d2c); }
html[data-theme="light"] .svc-bullets svg,
html[data-theme="light"] .price-feats svg,
html[data-theme="light"] .contact-point .ic svg,
html[data-theme="light"] .trust-line .dot-ic { color: color-mix(in oklab, var(--c2) 82%, #150d2c); }
html[data-theme="light"] .trust-line .dot-ic { background: color-mix(in oklab, var(--c2) 82%, #150d2c); box-shadow: none; }
html[data-theme="light"] .faq-item.open .faq-icon::before { background: color-mix(in oklab, var(--c2) 82%, #150d2c); }
/* keep the logo mark centre matching the light base */
html[data-theme="light"] .logo .mark::after { background: var(--ink-800); }
/* floating chips read as light cards */
html[data-theme="light"] .chip { background: rgba(255,255,255,0.82); }
/* form inputs */
html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea { background: rgba(255,255,255,0.7); }
html[data-theme="light"] .field option { background: #ffffff; color: var(--text); }
/* ghost buttons get a touch more definition */
html[data-theme="light"] .btn-ghost { background: rgba(26,22,52,0.03); }
html[data-theme="light"] .btn-ghost:hover { background: rgba(26,22,52,0.06); border-color: rgba(26,22,52,0.2); }
/* nav glass bg highlight tweak */
html[data-theme="light"] .hero-badge,
html[data-theme="light"] .price-tabs,
html[data-theme="light"] .svc-icon,
html[data-theme="light"] .contact-point .ic,
html[data-theme="light"] .social { background: rgba(26,22,52,0.035); }

/* ============================================================
   PORTFOLIO SCREENSHOTS (real project shots in tiles / cases)
   ============================================================ */
.tile-media .shot,
.case-visual .shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  z-index: 1; /* paint above the decorative .ph placeholder that follows it in the DOM */
}
/* slow ken-burns-ish zoom shares the same hover scale as the placeholders */
.work-tile:hover .tile-media .shot { transform: none; }
.case-card:hover .case-visual .shot { transform: scale(1.05); }
.case-visual .shot { transition: transform 0.7s var(--ease); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.to-top {
  position: fixed; right: clamp(18px, 3vw, 34px); bottom: clamp(18px, 3vw, 34px);
  z-index: 90; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text);
  background: rgba(14,14,24,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-brd);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.08);
  opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 22px 48px -16px rgba(0,0,0,0.75), 0 0 22px -8px color-mix(in oklab, var(--accent-bright) 55%, transparent);
}
.to-top svg { width: 20px; height: 20px; }
html[data-theme="light"] .to-top { background: rgba(255,255,255,0.82); color: var(--text); }
html[data-theme="light"] .to-top:hover { border-color: rgba(26,22,52,0.22); }
body.motion-off .to-top { transition: opacity 0.2s linear; }
