/* ==========================================================================
   Aurora Terminal — components.css
   Header, hero, marquee, stats, about, services, skills, work, process,
   testimonials, pricing, FAQ, contact, footer + all section-level styling
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Preloader
   -------------------------------------------------------------------------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preload);
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }

.preloader__inner {
  display: grid;
  justify-items: center;
  gap: var(--sp-5);
  width: min(320px, 70vw);
}

.preloader__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.preloader__bar {
  width: 100%;
  height: 2px;
  background: var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.preloader__fill {
  height: 100%;
  width: 0%;
  background: var(--grad-brand);
  border-radius: inherit;
  transition: width 0.25s var(--ease-out);
}

/* --------------------------------------------------------------------------
   2. Scroll progress + custom cursor
   -------------------------------------------------------------------------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: calc(var(--z-nav) + 5);
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--grad-brand);
  transform-origin: left;
  box-shadow: 0 0 12px var(--glow-v);
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: var(--z-cursor);
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%);
  transition: width 0.28s var(--ease-out), height 0.28s var(--ease-out),
              border-color 0.28s var(--ease-out), opacity 0.28s;
  opacity: 0.6;
}
.cursor-ring.is-hover { width: 62px; height: 62px; opacity: 1; border-width: 1.5px; }
.cursor-ring.is-down  { width: 26px; height: 26px; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out),
              backdrop-filter var(--dur-mid) var(--ease-out),
              transform var(--dur-slow) var(--ease-out),
              height var(--dur-mid) var(--ease-out);
}
.header.is-stuck {
  height: 62px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--border);
}
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  flex: none;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: var(--shadow-brand);
  transition: transform var(--dur-mid) var(--ease-spring);
}
.logo:hover .logo__mark { transform: rotate(-12deg) scale(1.08); }
.logo__text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 2px; }

.nav__link {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-soft);
  transition: color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 3px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, 6px) scale(0);
  transition: transform var(--dur-fast) var(--ease-spring);
}
.nav__link:hover { color: var(--text); background: var(--surface); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { transform: translate(-50%, 0) scale(1); }

.header__actions { display: flex; align-items: center; gap: var(--sp-2); flex: none; }

/* Theme toggle */
.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-soft);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(-20deg);
}
.theme-toggle svg {
  position: absolute;
  transition: transform var(--dur-slow) var(--ease-spring),
              opacity var(--dur-mid) var(--ease-out);
}
.theme-toggle .icon-sun  { opacity: 0; transform: translateY(140%) rotate(-90deg) scale(0.5); }
.theme-toggle .icon-moon { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .icon-sun  { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: translateY(-140%) rotate(90deg) scale(0.5); }

/* Burger */
.burger {
  display: none;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.burger__box {
  position: relative;
  width: 17px; height: 12px;
}
.burger__box span {
  position: absolute;
  left: 0;
  width: 100%; height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-mid) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out),
              width var(--dur-mid) var(--ease-out);
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 50%; transform: translateY(-50%); width: 75%; }
.burger__box span:nth-child(3) { bottom: 0; }
.burger.is-active .burger__box span:nth-child(1) { transform: translateY(5.2px) rotate(45deg); }
.burger.is-active .burger__box span:nth-child(2) { opacity: 0; transform: translateX(12px); }
.burger.is-active .burger__box span:nth-child(3) { transform: translateY(-5.2px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: calc(var(--header-h) + 32px) 1.5rem 2rem;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out),
              visibility var(--dur-mid);
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }

.drawer__nav { display: grid; align-content: start; gap: 2px; }

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  opacity: 0;
  transform: translateY(14px);
  transition: color var(--dur-fast) var(--ease-out);
}
.drawer.is-open .drawer__link {
  animation: drawer-in 0.5s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 90ms);
}
.drawer__link:hover { color: var(--accent); }
.drawer__link span.idx {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--text-muted);
}

@keyframes drawer-in {
  to { opacity: 1; transform: none; }
}

.drawer__foot {
  display: grid;
  gap: var(--sp-4);
  padding-top: var(--sp-6);
  opacity: 0;
  animation: drawer-in 0.5s var(--ease-out) forwards;
  animation-delay: 0.46s;
}
.drawer__contact {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.drawer__socials { display: flex; gap: var(--sp-2); }

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(56px, 8vw, 104px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__title {
  font-size: var(--fs-4xl);
  margin-bottom: var(--sp-5);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span {
  display: block;
  transform: translateY(105%);
  animation: line-up 1s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 120ms);
}
@keyframes line-up { to { transform: translateY(0); } }

/* Rotating role */
.hero__role {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-6);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.hero__role::before {
  content: "$ ";
  color: var(--text-muted);
  opacity: 0.7;
}

.role-swap {
  display: inline-flex;
  align-items: baseline;
  min-height: 1.5em;
}
.role-swap__item {
  display: none;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.role-swap__item.is-active {
  display: inline-block;
  animation: role-in 0.55s var(--ease-out) both;
}
@keyframes role-in {
  from { opacity: 0; transform: translateY(0.5em) rotateX(-40deg); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.hero__lead { max-width: 54ch; margin-bottom: var(--sp-6); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}

.hero__meta-item { display: grid; gap: 2px; }
.hero__meta-item b {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.hero__meta-item span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Availability pill */
.avail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  margin-bottom: var(--sp-5);
  border: 1px solid color-mix(in srgb, var(--lime-400) 30%, var(--border));
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--lime-400) 8%, transparent);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-soft);
  width: fit-content;
}
.avail__dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime-400);
  flex: none;
}
.avail__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--lime-400);
  animation: ripple 2.2s var(--ease-out) infinite;
}
@keyframes ripple {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Hero visual — terminal card */
.hero__visual { position: relative; }

.terminal {
  position: relative;
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform var(--dur-slow) var(--ease-out);
}
.terminal:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.terminal__dots { display: flex; gap: 6px; }
.terminal__dots i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--border-2);
}
.terminal__dots i:nth-child(1) { background: #ff5f57; }
.terminal__dots i:nth-child(2) { background: #febc2e; }
.terminal__dots i:nth-child(3) { background: #28c840; }
.terminal__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.terminal__body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 2;
  min-height: 292px;
}
.terminal__body .ln { display: block; white-space: pre-wrap; word-break: break-word; }
.tk-key   { color: var(--violet-400); }
.tk-fn    { color: var(--cyan-400); }
.tk-str   { color: var(--lime-400); }
.tk-num   { color: var(--amber-400); }
.tk-cmt   { color: var(--text-muted); }
.tk-punc  { color: var(--text-soft); }
[data-theme="light"] .tk-key { color: #7c3aed; }
[data-theme="light"] .tk-fn  { color: #0891b2; }
[data-theme="light"] .tk-str { color: #4d7c0f; }
[data-theme="light"] .tk-num { color: #b45309; }

.terminal__caret {
  display: inline-block;
  width: 8px; height: 1.05em;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Floating chips around terminal */
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  animation: float-y 6s var(--ease-in-out) infinite;
}
.float-chip i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.float-chip--1 { top: 8%;  left: -6%;  animation-delay: 0s; }
.float-chip--2 { top: 46%; right: -7%; animation-delay: 1.4s; }
.float-chip--3 { bottom: 8%; left: 2%; animation-delay: 2.8s; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-13px); }
}

/* Scroll cue */
.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: clamp(40px, 6vw, 72px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-cue__track {
  position: relative;
  width: 22px; height: 36px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
}
.scroll-cue__thumb {
  position: absolute;
  left: 50%; top: 7px;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: cue 1.9s var(--ease-in-out) infinite;
}
@keyframes cue {
  0%   { transform: translateY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   5. Marquee
   -------------------------------------------------------------------------- */

.marquee {
  position: relative;
  padding-block: var(--sp-5);
  border-block: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(-50%); } }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}
.marquee__item:hover { color: var(--accent); }
.marquee__item svg { flex: none; }
.marquee__item::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border-2);
  margin-left: clamp(18px, 3vw, 46px);
}

/* --------------------------------------------------------------------------
   6. Stats
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  display: grid;
  gap: 6px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--bg);
  text-align: center;
  transition: background-color var(--dur-mid) var(--ease-out);
}
.stat:hover { background: var(--surface-solid); }
.stat__num {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. About
   -------------------------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.about__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-2);
  background:
    radial-gradient(120% 100% at 20% 0%, var(--glow-v), transparent 60%),
    radial-gradient(100% 100% at 100% 100%, var(--glow-c), transparent 60%),
    var(--surface-solid);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
}
.about__portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 34px 34px;
}
.portrait__monogram {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: float-y 7s var(--ease-in-out) infinite;
}
.portrait__badge {
  position: absolute;
  bottom: 18px; left: 18px; right: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.portrait__badge b { font-size: var(--fs-sm); display: block; }
.portrait__badge span { font-size: var(--fs-xs); color: var(--text-muted); }
.portrait__badge .flag { font-size: 1.4rem; line-height: 1; }

.about__body > * + * { margin-top: var(--sp-4); }

.about__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.fact {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.fact:hover { border-color: var(--accent); transform: translateY(-3px); }
.fact dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.fact dd { font-weight: 600; font-size: var(--fs-sm); }

.about__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-5); }
.tag {
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-soft);
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.tag:hover { color: var(--accent); border-color: var(--accent); }

/* --------------------------------------------------------------------------
   8. Services
   -------------------------------------------------------------------------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.service {
  display: grid;
  gap: var(--sp-3);
  align-content: start;
}
.service__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: var(--sp-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--grad-brand-soft);
  color: var(--accent);
  transition: transform var(--dur-mid) var(--ease-spring),
              color var(--dur-fast) var(--ease-out);
}
.service:hover .service__icon { transform: translateY(-4px) rotate(-6deg); }
.service h3 { font-size: var(--fs-lg); }
.service p { color: var(--text-soft); font-size: var(--fs-sm); }
.service__list { display: grid; gap: 7px; margin-top: var(--sp-2); }
.service__list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.service__list li::before {
  content: "";
  width: 5px; height: 5px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* --------------------------------------------------------------------------
   9. Skills
   -------------------------------------------------------------------------- */

.skills__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.skills__bars { display: grid; gap: var(--sp-5); }

.skill__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: 9px;
}
.skill__name { font-weight: 600; font-size: var(--fs-sm); }
.skill__pct {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.skill__track {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.skill__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad-brand);
  transition: width 1.4s var(--ease-out);
}

.skills__stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stack-cell {
  display: grid;
  gap: 8px;
  place-items: center;
  padding: 24px 14px;
  background: var(--bg);
  text-align: center;
  transition: background-color var(--dur-mid) var(--ease-out),
              color var(--dur-mid) var(--ease-out);
}
.stack-cell:hover { background: var(--surface-solid); }
.stack-cell svg { color: var(--accent); transition: transform var(--dur-mid) var(--ease-spring); }
.stack-cell:hover svg { transform: translateY(-4px) scale(1.1); }
.stack-cell b { font-size: var(--fs-xs); font-weight: 600; }
.stack-cell span { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   10. Work / projects
   -------------------------------------------------------------------------- */

.work__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--sp-6);
}
.filter-btn {
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-soft);
  transition: all var(--dur-fast) var(--ease-out);
}
.filter-btn:hover { border-color: var(--border-2); color: var(--text); }
.filter-btn.is-active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.project {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out),
              opacity var(--dur-mid) var(--ease-out);
}
.project:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-2);
}
.project.is-hidden {
  display: none;
}

/* Artwork area */
.project__art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  display: grid;
  place-items: center;
}
.project__art svg { width: 100%; height: 100%; display: block; }
.project__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-brand-soft);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out);
}
.project:hover .project__art::after { opacity: 0.55; }

/* Decorative sparkle particles (injected by JS) */
@keyframes sparkle-pop {
  0%, 100% { opacity: 0;   transform: scale(0.4); }
  40%      { opacity: 0.9; transform: scale(1.3); }
  70%      { opacity: 0;   transform: scale(0.7); }
}

.project__badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.project__body {
  display: grid;
  gap: var(--sp-3);
  padding: clamp(20px, 2.4vw, 26px);
  flex: 1;
}
.project__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}
.project__head h3 { font-size: var(--fs-lg); }
.project__desc { font-size: var(--fs-sm); color: var(--text-soft); }
.project__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.project__stat { display: grid; gap: 1px; }
.project__stat b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.project__stat span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.project__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 4px 10px;
  border-radius: var(--r-xs);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-soft);
}

.project__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
}
.project__link svg { transition: transform var(--dur-fast) var(--ease-out); }
.project:hover .project__link svg { transform: translateX(4px) rotate(45deg); }

/* --------------------------------------------------------------------------
   11. Process
   -------------------------------------------------------------------------- */

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  align-content: start;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out),
              background-color var(--dur-mid) var(--ease-out);
}
.step:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: var(--surface-solid);
}
.step__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.step__num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-2), transparent);
}
.step h3 { font-size: var(--fs-md); }
.step p { font-size: var(--fs-sm); color: var(--text-soft); }
.step__time {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   12. Testimonials
   -------------------------------------------------------------------------- */

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.quote { display: grid; gap: var(--sp-4); align-content: start; }
.quote__stars { display: flex; gap: 3px; color: var(--amber-400); }
.quote__text {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text-soft);
  position: relative;
  padding-left: 26px;
}
.quote__text::before {
  content: "\201C";
  position: absolute;
  left: 0; top: -6px;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.4;
}
.quote__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
.quote__avatar {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  flex: none;
}
.quote__who b { display: block; font-size: var(--fs-sm); }
.quote__who span { font-size: var(--fs-xs); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   13. Pricing
   -------------------------------------------------------------------------- */

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}

.plan {
  position: relative;
  display: grid;
  gap: var(--sp-4);
  align-content: start;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.plan--featured {
  border-color: color-mix(in srgb, var(--violet-500) 45%, transparent);
  background: linear-gradient(180deg, var(--grad-brand-soft), var(--surface) 46%);
  box-shadow: var(--shadow-brand);
}
.plan--featured:hover { box-shadow: var(--shadow-lg); }

.plan__flag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 15px;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--shadow-brand);
}

.plan__name { font-size: var(--fs-md); font-weight: 700; letter-spacing: -0.02em; }
.plan__for { font-size: var(--fs-xs); color: var(--text-muted); }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.plan__price b {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}
.plan__price span { font-size: var(--fs-sm); color: var(--text-muted); }
.plan__feats { display: grid; gap: 11px; }
.plan__feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.plan__feats li svg { color: var(--lime-400); flex: none; margin-top: 3px; }
.plan__feats li.is-off { color: var(--text-muted); opacity: 0.55; }
.plan__feats li.is-off svg { color: var(--text-muted); }
.plan__note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */

.faq { display: grid; gap: 12px; }

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.faq__item.is-open { border-color: var(--accent); background: var(--surface-solid); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: 20px clamp(18px, 2.2vw, 26px);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color var(--dur-fast) var(--ease-out);
}
.faq__q:hover { color: var(--accent); }

.faq__icon {
  position: relative;
  width: 22px; height: 22px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  transition: transform var(--dur-mid) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 1.7px;
  margin: -0.85px 0 0 -5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-mid) var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon {
  transform: rotate(180deg);
  border-color: var(--accent);
  background: var(--grad-brand);
  color: #fff;
}
.faq__item.is-open .faq__icon::after { transform: rotate(0deg); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding: 0 clamp(18px, 2.2vw, 26px) 22px;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  max-width: 72ch;
}

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.contact__methods { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }

.method {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.method:hover { border-color: var(--accent); transform: translateX(5px); }
.method__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: var(--grad-brand-soft);
  color: var(--accent);
  flex: none;
}
.method b { display: block; font-size: var(--fs-sm); }
.method span { font-size: var(--fs-xs); color: var(--text-muted); }

.contact__note {
  display: flex;
  gap: 10px;
  margin-top: var(--sp-5);
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.55;
}
.contact__note svg { color: var(--accent); flex: none; margin-top: 2px; }

.form {
  display: grid;
  gap: var(--sp-4);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

.field { display: grid; gap: 8px; }
.field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.field label .req { color: var(--pink-500); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  color: var(--text);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.6; }
.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='%238b93a7' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
}
[data-theme="light"] .field select {
  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='%236b7286' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); opacity: 0.8; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--pink-500); }
.field__err {
  font-size: var(--fs-xs);
  color: var(--pink-500);
  display: none;
}
.field.has-error .field__err { display: block; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-2);
}
.form__fine { font-size: var(--fs-xs); color: var(--text-muted); flex: 1; min-width: 180px; }

.form__status {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border: 1px solid color-mix(in srgb, var(--lime-400) 40%, transparent);
  background: color-mix(in srgb, var(--lime-400) 10%, transparent);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.form__status.is-shown { display: flex; animation: role-in 0.4s var(--ease-out); }
.form__status svg { color: var(--lime-400); flex: none; }

/* --------------------------------------------------------------------------
   16. CTA banner
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  padding: clamp(44px, 6vw, 80px) clamp(24px, 4vw, 60px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-2xl);
  background: var(--grad-brand-soft);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 100% at 20% 0%, var(--glow-v), transparent 65%),
    radial-gradient(60% 100% at 85% 100%, var(--glow-p), transparent 65%);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
}
.cta-band h2 { font-size: var(--fs-3xl); margin-bottom: var(--sp-4); }
.cta-band p { max-width: 52ch; margin-inline: auto; margin-bottom: var(--sp-6); color: var(--text-soft); }
.cta-band .row { justify-content: center; }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  padding-top: clamp(48px, 6vw, 76px);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  margin-top: clamp(60px, 8vw, 110px);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.6fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: var(--sp-8);
}

.footer__brand { display: grid; gap: var(--sp-4); align-content: start; max-width: 34ch; }
.footer__brand p { font-size: var(--fs-sm); color: var(--text-muted); }

.footer__socials { display: flex; gap: 8px; }
.footer__social {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-soft);
  transition: all var(--dur-fast) var(--ease-out);
}
.footer__social:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-3px);
}

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}
.footer__col ul { display: grid; gap: 11px; }
.footer__col a {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  transition: color var(--dur-fast) var(--ease-out),
              padding-left var(--dur-fast) var(--ease-out);
}
.footer__col a:hover { color: var(--accent); padding-left: 5px; }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.footer__bar .mono { display: inline-flex; align-items: center; gap: 7px; }
.footer__bar a:hover { color: var(--accent); }

.heart { color: var(--pink-500); display: inline-block; animation: beat 1.6s var(--ease-in-out) infinite; }
@keyframes beat {
  0%, 100% { transform: scale(1); }
  25%      { transform: scale(1.22); }
  40%      { transform: scale(1); }
}

/* Back to top */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: calc(var(--z-nav) - 1);
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-soft);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.85);
  transition: all var(--dur-mid) var(--ease-spring);
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-4px);
}
.to-top svg { transition: transform var(--dur-fast) var(--ease-out); }
.to-top:hover svg { transform: translateY(-3px); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: var(--z-cursor);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  background: var(--surface-solid);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  font-weight: 500;
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.5s var(--ease-spring), opacity 0.4s var(--ease-out);
  max-width: calc(100vw - 32px);
}
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; }
.toast svg { color: var(--lime-400); flex: none; }
