/* ============================================================
   Creative Living Space — Home Renovation & Remodeling
   Single stylesheet for the whole website.

   ┌──────────────────────────────────────────────────────────┐
   │  CHANGE THE ENTIRE SITE COLOR SCHEME IN SECONDS          │
   │  Edit ONLY the values inside :root below.                │
   │  Every component reads these variables — nothing else    │
   │  needs to be touched. Light tints/shades are generated   │
   │  automatically with color-mix().                         │
   └──────────────────────────────────────────────────────────┘
   ============================================================ */

/* ---------- Local fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url(../fonts/fraunces-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7, U+02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url(../fonts/fraunces-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(../fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7, U+02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(../fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/manrope-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7, U+02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/manrope-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   THEME VARIABLES — CHANGE COLORS HERE (seconds, one place)
   ============================================================ */
:root {
  /* 1 — Brand / primary color (links, icons, accents, gradients) */
  --primary: #4A3AFF;
  /* 2 — Darker brand shade (hover states, gradient depth) */
  --primary-deep: #3222C9;
  /* 3 — Action / CTA color (buttons, highlights, ticker) */
  --accent: #FF5A1F;
  /* 4 — Dark base (hero, dark sections, footer, top bar) */
  --dark: #14132B;
  /* 5 — Body text color */
  --ink: #181731;
  /* 6 — Secondary text color */
  --muted: #5F5E80;
  /* 7 — Page background */
  --bg: #F5F5FB;
  /* 8 — Card / surface background */
  --surface: #FFFFFF;
  /* 9 — Hairline borders */
  --line: #E4E3F2;
  /* 10 — Rating stars */
  --star: #FFB020;

  /* ---- Auto-derived shades (no need to edit) ---- */
  --tint: #EFEFFB;                                      /* fallback */
  --tint: color-mix(in srgb, var(--primary) 6%, var(--surface));
  --tint-2: #E4E3FA;                                    /* fallback */
  --tint-2: color-mix(in srgb, var(--primary) 12%, var(--surface));
  --primary-soft: #E9E6FF;                              /* fallback */
  --primary-soft: color-mix(in srgb, var(--primary) 12%, transparent);
  --accent-soft: #FFE7DD;                               /* fallback */
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-deep: #E5450D;
  --on-dark-muted: rgba(255, 255, 255, 0.68);
  --on-dark-faint: rgba(255, 255, 255, 0.45);
  --dark-line: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 1px 2px rgba(20, 19, 43, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(20, 19, 43, 0.16);
  --shadow-lg: 0 30px 60px -25px rgba(20, 19, 43, 0.28);
  --shadow-primary: 0 14px 34px -14px color-mix(in srgb, var(--primary) 55%, transparent);
  --shadow-accent: 0 14px 34px -12px color-mix(in srgb, var(--accent) 55%, transparent);

  /* ---- Typography ---- */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* ---- Shape & motion ---- */
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip; /* off-canvas drawer & decorative offsets can never cause sideways scroll */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* NOTE: no overflow-x here — it would break the sticky header (html clips instead) */
}

body.no-scroll, html.no-scroll { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

a { color: var(--primary); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--accent); }

ul, ol { margin: 0; padding: 0; }

::selection { background: var(--primary); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--primary) 55%, var(--bg)); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 3000;
  background: var(--accent); color: #fff; font-weight: 700;
  padding: 10px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 680px; }
.mt-22 { margin-top: 22px; }

.section { padding: 96px 0; position: relative; }
.section--white { background: var(--surface); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: 72px 0; }

/* ---------- Section headers (left-aligned editorial) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--primary);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 2px;
  background: var(--accent);
}
.section--dark .eyebrow { color: #fff; }

.sec-title {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.85rem);
  max-width: 18ch;
}
.sec-sub { color: var(--muted); font-size: 1.06rem; max-width: 58ch; margin-top: 14px; }
.section--dark .sec-sub { color: var(--on-dark-muted); }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: 56px; flex-wrap: wrap;
}
.sec-head__text { max-width: 640px; }
.sec-head__side { padding-bottom: 6px; }

/* ============================================================
   BUTTONS & LINKS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.98rem;
  line-height: 1; padding: 17px 30px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s ease,
              color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none; white-space: nowrap;
}
.btn i { font-size: 0.85em; transition: transform 0.25s var(--ease); }
.btn:hover i.fa-arrow-right { transform: translateX(5px); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn--accent:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); }

.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn--primary:hover { background: var(--primary-deep); color: #fff; transform: translateY(-2px); }

.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: var(--primary-deep); color: #fff; transform: translateY(-2px); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn--ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--sm { padding: 12px 22px; font-size: 0.9rem; }
.btn--lg { padding: 20px 38px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn[disabled] { opacity: 0.65; pointer-events: none; }

.btn--loading { pointer-events: none; }
.btn--loading .btn-label { opacity: 0; }
.btn-spinner {
  position: absolute; width: 18px; height: 18px; display: none;
  border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
.btn--loading .btn-spinner { display: block; }
.btn { position: relative; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Text link with sliding arrow */
.link-more {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 0.95rem; color: var(--primary);
  padding-bottom: 3px; background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px; background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s var(--ease), color 0.25s ease;
}
.link-more:hover { color: var(--accent); background-size: 100% 2px; }
.link-more i { transition: transform 0.25s var(--ease); }
.link-more:hover i { transform: translateX(4px); }

/* ============================================================
   TOP BAR + HEADER + NAVIGATION (shared by every page)
   ============================================================ */
.topbar {
  background: var(--dark); color: var(--on-dark-muted);
  font-size: 0.83rem; font-weight: 600;
  position: relative; z-index: 60;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 40px; padding: 6px 24px;
  max-width: 1220px; margin: 0 auto;
}
.topbar i { color: var(--accent); margin-right: 7px; font-size: 0.8rem; }
.topbar__group { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.topbar a { color: var(--on-dark-muted); }
.topbar a:hover { color: #fff; }
.topbar__note { margin: 0; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; height: 78px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; box-shadow: var(--shadow-primary);
  transition: transform 0.35s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: var(--ink); letter-spacing: -0.01em;
}
.brand:hover .brand__name { color: var(--ink); }

.main-nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  position: relative; font-weight: 700; font-size: 0.96rem;
  color: var(--ink); padding: 6px 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 3px; border-radius: 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after {
  transform: scaleX(1); transform-origin: left;
}
.nav-link.is-active { color: var(--primary); }

.header__actions { display: flex; align-items: center; gap: 14px; }

/* Hamburger */
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 12px;
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-toggle span {
  display: block; height: 2.5px; width: 100%; border-radius: 2px;
  background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
body.drawer-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.drawer-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.drawer-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Mobile drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(20, 19, 43, 0.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.3s ease;
}
.drawer-overlay.is-visible { opacity: 1; }

.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(360px, 88vw);
  background: var(--dark); color: #fff;
  display: flex; flex-direction: column;
  padding: 26px 28px 34px;
  transform: translateX(105%);
  transition: transform 0.45s var(--ease);
  box-shadow: -30px 0 60px rgba(20,19,43,0.35);
}
body.drawer-open .mobile-drawer { transform: translateX(0); }

.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.drawer-head .brand__name { color: #fff; }
.drawer-close {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08); border: 1px solid var(--dark-line);
  color: #fff; font-size: 1rem; cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s var(--ease);
}
.drawer-close:hover { background: var(--accent); transform: rotate(90deg); }

.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a {
  color: #fff; font-family: var(--font-display); font-size: 1.45rem;
  font-weight: 600; padding: 13px 14px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: space-between;
  transition: background-color 0.25s ease, padding-left 0.25s var(--ease), color 0.25s ease;
}
.drawer-nav a i { font-size: 0.8rem; color: var(--accent); opacity: 0; transition: opacity 0.25s ease, transform 0.25s var(--ease); }
.drawer-nav a:hover { background: rgba(255,255,255,0.07); padding-left: 22px; color: #fff; }
.drawer-nav a:hover i { opacity: 1; transform: translateX(4px); }
.drawer-nav a.is-active { color: var(--accent); }

.drawer-cta { margin-top: auto; padding-top: 30px; border-top: 1px solid var(--dark-line); }
.drawer-cta p {
  color: var(--on-dark-muted); font-size: 0.9rem; margin: 0 0 14px;
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem;
}
.drawer-cta .btn { margin-bottom: 10px; }
.drawer-cta .btn--ghost { border-color: rgba(255,255,255,0.3); }

/* ============================================================
   HERO (homepage)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--dark); color: #fff;
  padding: 92px 0 0;
}
.hero::before { /* dot grid pattern */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.13) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(115deg, transparent 30%, #000 75%);
  mask-image: linear-gradient(115deg, transparent 30%, #000 75%);
}
.hero::after { /* color glow */
  content: ""; position: absolute; top: -240px; right: -160px;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 42%, transparent), transparent 68%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 64px; align-items: center;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--dark-line);
  color: #fff; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 9px 18px; border-radius: 999px; margin-bottom: 26px;
}
.hero__badge i { color: var(--star); }
.hero__badge .dot-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero__title {
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.1rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -0.015em;
  margin-bottom: 22px; color: #fff;
}
.hero__title em {
  font-style: italic; color: var(--accent);
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-decoration-thickness: 5px; text-underline-offset: 9px;
}

.hero__lead {
  color: var(--on-dark-muted); font-size: 1.13rem; line-height: 1.75;
  max-width: 52ch; margin-bottom: 34px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 0; }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--dark-line);
  margin-top: 64px;
}
.stat { padding: 30px 26px 34px; position: relative; }
.stat + .stat { border-left: 1px solid var(--dark-line); }
.stat__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 1.2rem + 2vw, 2.7rem); color: #fff; line-height: 1;
}
.stat__num .suffix { color: var(--accent); }
.stat__label { color: var(--on-dark-faint); font-size: 0.88rem; font-weight: 600; margin-top: 8px; }

/* Hero media */
.hero__media { position: relative; padding: 0 26px 26px 0; }
.hero__media::before { /* offset accent frame */
  content: ""; position: absolute; top: 26px; right: 0; bottom: 0; left: 26px;
  border: 2px solid color-mix(in srgb, var(--accent) 75%, transparent);
  border-radius: var(--radius);
}
.hero__img {
  position: relative; z-index: 2;
  width: 100%; aspect-ratio: 6 / 5.1; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotate(0deg);
  transition: transform 0.6s var(--ease);
}
.hero__media:hover .hero__img { transform: perspective(1200px) rotate(-1deg) translateY(-4px); }

.hero__rating {
  position: absolute; z-index: 3; left: -14px; top: 34px;
  background: #fff; color: var(--ink);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 13px 18px; display: flex; align-items: center; gap: 12px;
  animation: floatY 5.5s ease-in-out infinite;
}
.hero__rating .stars { color: var(--star); font-size: 0.72rem; letter-spacing: 2px; display: block; }
.hero__rating strong { font-family: var(--font-display); font-size: 1.3rem; display: block; line-height: 1.1; }
.hero__rating small { color: var(--muted); font-size: 0.72rem; font-weight: 700; }

.hero__chip {
  position: absolute; z-index: 3; right: -6px; bottom: 48px;
  background: var(--accent); color: #fff;
  border-radius: 999px; box-shadow: var(--shadow-accent);
  padding: 12px 20px; font-weight: 800; font-size: 0.88rem;
  display: flex; align-items: center; gap: 9px;
  animation: floatY 6.5s ease-in-out infinite; animation-delay: 1.1s;
}

.hero__tags {
  display: flex; gap: 10px; flex-wrap: wrap;
  position: absolute; z-index: 3; left: 6px; bottom: -18px;
}
.hero__tags span {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid var(--dark-line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 8px 15px; border-radius: 999px;
}
.hero__tags i { color: var(--accent); font-size: 0.72rem; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============================================================
   TICKER (trust strip)
   ============================================================ */
.ticker {
  background: var(--accent); color: #fff;
  overflow: hidden; position: relative;
  padding: 15px 0;
}
.ticker__track {
  display: flex; gap: 0; width: max-content;
  animation: tickerMove 30s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 14px;
  font-weight: 800; font-size: 0.92rem; letter-spacing: 0.06em;
  text-transform: uppercase; white-space: nowrap; padding-right: 14px;
}
.ticker__item::after {
  content: "◆"; font-size: 0.6rem; opacity: 0.55; margin-left: 14px;
}
@keyframes tickerMove { to { transform: translateX(-50%); } }
/* ============================================================
   SERVICES BENTO GRID
   ============================================================ */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.svc {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  transition: transform 0.35s var(--ease), border-color 0.3s ease, box-shadow 0.35s ease;
}
.svc::after { /* corner glow on hover */
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--primary-soft);
  transform: scale(0); transition: transform 0.5s var(--ease);
}
.svc:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  box-shadow: var(--shadow-md);
}
.svc:hover::after { transform: scale(1); }

.svc__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--tint-2); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; position: relative; z-index: 1;
  transition: transform 0.4s var(--ease), background-color 0.3s ease, color 0.3s ease;
}
.svc:hover .svc__icon {
  transform: rotate(-8deg) scale(1.08);
  background: var(--primary); color: #fff;
}
.svc__title { font-size: 1.18rem; margin: 0; position: relative; z-index: 1; }
.svc__text { color: var(--muted); font-size: 0.93rem; margin: 0; position: relative; z-index: 1; }

.svc--feat {
  grid-column: span 2;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 92%, #000 0%), var(--primary-deep));
  border-color: transparent; color: #fff;
  padding: 34px 32px;
}
.svc--feat::after { background: rgba(255,255,255,0.09); }
.svc--feat:hover { border-color: transparent; }
.svc--feat .svc__icon { background: rgba(255,255,255,0.16); color: #fff; }
.svc--feat:hover .svc__icon { background: var(--accent); }
.svc--feat .svc__title { color: #fff; font-size: 1.5rem; }
.svc--feat .svc__text { color: rgba(255,255,255,0.82); font-size: 0.97rem; }
.svc__note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.03em;
  color: var(--accent); margin-top: auto; padding-top: 10px;
  position: relative; z-index: 1;
}
.svc--feat .svc__note { color: var(--star); }
.svc__note i { font-size: 0.85rem; }

/* "view all" tile */
.svc--all {
  justify-content: center; align-items: center; text-align: center;
  border-style: dashed; border-width: 2px;
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
  background: var(--tint);
  gap: 10px;
}
.svc--all:hover { background: var(--primary); border-color: var(--primary); }
.svc--all .svc__all-icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; transition: transform 0.35s var(--ease), background-color 0.3s ease;
}
.svc--all:hover .svc__all-icon { transform: rotate(-45deg); background: #fff; color: var(--primary); }
.svc--all .svc__title { font-size: 1.1rem; }
.svc--all .svc__text { font-weight: 700; color: var(--primary); }
.svc--all:hover .svc__title, .svc--all:hover .svc__text { color: #fff; }

/* ============================================================
   SPLIT LAYOUT (about preview / story)
   ============================================================ */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}

.media-frame { position: relative; padding: 0 0 24px 24px; }
.media-frame::before {
  content: ""; position: absolute; top: 24px; right: 0; bottom: 0; left: 0;
  border: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
  border-radius: var(--radius);
}
.media-frame img {
  position: relative; z-index: 2; width: 100%;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.media-frame__badge {
  position: absolute; z-index: 3; right: -12px; bottom: 4px;
  background: var(--dark); color: #fff;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 16px 22px; text-align: left;
  animation: floatY 6s ease-in-out infinite;
}
.media-frame__badge strong {
  font-family: var(--font-display); font-size: 1.55rem; color: var(--accent); display: block; line-height: 1.05;
}
.media-frame__badge span { font-size: 0.78rem; color: var(--on-dark-muted); font-weight: 700; }

/* Belief pills */
.pill-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-weight: 700; font-size: 0.86rem;
  padding: 10px 17px; border-radius: 999px;
  transition: border-color 0.25s ease, transform 0.25s var(--ease), background-color 0.25s ease;
}
.pill i { color: var(--accent); font-size: 0.8rem; }
.pill:hover { border-color: var(--accent); transform: translateY(-2px); background: var(--accent-soft); }

/* Feature points */
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; margin: 28px 0 32px; }
.point { display: flex; gap: 14px; align-items: flex-start; }
.point__icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: transform 0.35s var(--ease);
}
.point:hover .point__icon { transform: rotate(-8deg) scale(1.1); }
.point h3 { font-size: 1.02rem; margin: 0 0 3px; font-family: var(--font-body); font-weight: 800; }
.point p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* ============================================================
   WHY US — numbered grid
   ============================================================ */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; counter-reset: why;
}
.why-item {
  position: relative; padding: 34px 28px 30px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.3s ease;
}
.why-item::before { /* top accent line grows on hover */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.why-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.why-item:hover::before { transform: scaleX(1); }

.why-item__num {
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: 3.4rem; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px color-mix(in srgb, var(--primary) 55%, transparent);
  transition: color 0.35s ease;
  float: right; margin: -6px -4px 0 0;
}
.why-item:hover .why-item__num { color: var(--primary-soft); }
.why-item__icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--dark); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: 20px;
  transition: background-color 0.3s ease, transform 0.35s var(--ease);
}
.why-item:hover .why-item__icon { background: var(--accent); transform: rotate(-8deg); }
.why-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tst { background: var(--dark); color: #fff; overflow: hidden; position: relative; }
.tst::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 20% 0%, #000 0%, transparent 62%);
  mask-image: radial-gradient(ellipse at 20% 0%, #000 0%, transparent 62%);
}
.tst .container { position: relative; z-index: 2; }

.tst__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 50px; }
.tst__controls { display: flex; align-items: center; gap: 14px; padding-bottom: 8px; }
.tst__index {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  color: var(--on-dark-faint); font-size: 1rem; letter-spacing: 0.08em; min-width: 74px; text-align: center;
}
.tst__index b { color: #fff; font-size: 1.35rem; }
.tst__btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid var(--dark-line);
  color: #fff; font-size: 0.95rem; cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s var(--ease), border-color 0.25s ease;
}
.tst__btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

.tst__stage { position: relative; min-height: 300px; }
.tst__slide {
  position: absolute; inset: 0 0 auto;
  opacity: 0; transform: translateX(46px);
  transition: opacity 0.55s ease, transform 0.55s var(--ease);
  pointer-events: none;
  display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: start;
}
.tst__slide.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; position: relative; }
.tst__mark {
  font-family: var(--font-display); font-size: 7rem; line-height: 0.72;
  color: var(--accent); opacity: 0.9; user-select: none;
}
.tst__stars { color: var(--star); font-size: 0.85rem; letter-spacing: 4px; margin-bottom: 20px; }
.tst__quote {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); line-height: 1.45;
  color: #fff; max-width: 26ch; margin: 0 0 30px;
}
.tst__who { display: flex; align-items: center; gap: 16px; }
.tst__avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.03em;
  display: inline-flex; align-items: center; justify-content: center;
}
.tst__who strong { display: block; font-size: 1.02rem; }
.tst__who span { color: var(--on-dark-faint); font-size: 0.85rem; font-weight: 600; }

.tst__bar {
  height: 3px; border-radius: 3px; background: rgba(255,255,255,0.12);
  margin-top: 44px; overflow: hidden;
}
.tst__bar span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transform-origin: left;
  transform: scaleX(0);
}
.tst__bar span.is-running { animation: barGrow var(--tst-duration, 6.5s) linear forwards; }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item.is-open { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); box-shadow: var(--shadow-md); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: none; border: none; cursor: pointer;
  padding: 21px 24px; text-align: left;
  font-family: var(--font-body); font-size: 1.02rem; font-weight: 800; color: var(--ink);
}
.faq-q .faq-sign {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  background: var(--tint-2); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; transition: transform 0.4s var(--ease), background-color 0.3s ease, color 0.3s ease;
}
.faq-item.is-open .faq-sign { transform: rotate(135deg); background: var(--accent); color: #fff; }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 22px; color: var(--muted); margin: 0; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background:
    radial-gradient(900px 400px at 85% -60%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    linear-gradient(120deg, var(--dark) 0%, color-mix(in srgb, var(--primary-deep) 70%, var(--dark)) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 70%);
}
.cta-band__inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap; padding: 84px 0;
}
.cta-band h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem);
  max-width: 20ch; margin-bottom: 12px; color: #fff;
}
.cta-band h2 em { color: var(--accent); font-style: italic; }
.cta-band p { color: var(--on-dark-muted); max-width: 52ch; font-size: 1.05rem; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--dark); color: #fff;
  padding: 74px 0 84px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(200deg, #000 20%, transparent 70%);
  mask-image: linear-gradient(200deg, #000 20%, transparent 70%);
}
.page-hero::after {
  content: ""; position: absolute; top: -220px; left: -140px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 40%, transparent), transparent 68%);
}
.page-hero .container { position: relative; z-index: 2; }

.breadcrumb {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--on-dark-faint); margin-bottom: 22px;
}
.breadcrumb a { color: var(--on-dark-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb i { font-size: 0.6rem; color: var(--accent); }
.breadcrumb .current { color: #fff; }

.page-hero h1 {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.5rem);
  max-width: 21ch; color: #fff; margin-bottom: 18px;
}
.page-hero h1 em { color: var(--accent); font-style: italic; }
.page-hero__lead { color: var(--on-dark-muted); font-size: 1.1rem; max-width: 60ch; }
.page-hero__meta { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.count-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--dark-line);
  color: #fff; font-weight: 800; font-size: 0.85rem;
  padding: 9px 18px; border-radius: 999px;
}
.count-badge i { color: var(--accent); }

/* ============================================================
   FORMS
   ============================================================ */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 42px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .field--full { grid-column: 1 / -1; }

.field label {
  display: block; font-size: 0.85rem; font-weight: 800;
  margin-bottom: 8px; color: var(--ink);
}
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font-body); font-size: 0.98rem; color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 65%, transparent); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.field.has-error input, .field.has-error textarea, .field.has-error select {
  border-color: #E5484D; background: #FEF7F7;
}
.field .field-msg {
  display: none; color: #C93A3E; font-size: 0.78rem; font-weight: 700; margin-top: 6px;
}
.field.has-error .field-msg { display: block; }

.check-row {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--tint); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.check-row input[type="checkbox"] {
  width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--accent); cursor: pointer;
}
.check-row label {
  font-size: 0.88rem; font-weight: 600; color: var(--ink);
  line-height: 1.55; margin: 0; cursor: pointer;
}
.check-row.has-error { border-color: #E5484D; background: #FEF7F7; }
.check-row .field-msg {
  display: none; color: #C93A3E; font-size: 0.78rem; font-weight: 700; margin-top: 6px;
}
.check-row.has-error .field-msg { display: block; }

.form-note { text-align: center; font-size: 0.8rem; color: var(--muted); margin: 18px 0 0; }
.form-note a { font-weight: 700; }

@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}
.shake { animation: shake 0.55s ease; }

/* Info cards (contact page) */
.info-list { display: flex; flex-direction: column; gap: 14px; }
.info-card {
  display: flex; gap: 17px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover { transform: translateX(6px); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); box-shadow: var(--shadow-sm); }
.info-card__icon {
  width: 50px; height: 50px; flex-shrink: 0; border-radius: 13px;
  background: var(--dark); color: #fff; font-size: 1.05rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 0.3s ease;
}
.info-card:hover .info-card__icon { background: var(--accent); }
.info-card h3 { font-size: 0.98rem; margin: 0 0 2px; font-family: var(--font-body); font-weight: 800; }
.info-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.info-card a { color: var(--muted); }
.info-card a:hover { color: var(--accent); }

/* ============================================================
   TOASTS (JavaScript notifications)
   ============================================================ */
.toast-stack {
  position: fixed; right: 22px; bottom: 22px; z-index: 4000;
  display: flex; flex-direction: column; gap: 12px;
  width: min(390px, calc(100vw - 44px));
}
.toast {
  position: relative; overflow: hidden;
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--dark); color: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 17px 44px 19px 18px;
  border-left: 4px solid var(--primary);
  animation: toastIn 0.5s var(--ease);
}
.toast.is-leaving { animation: toastOut 0.35s ease forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(14px) scale(0.96); }
}
.toast__icon {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem; background: var(--primary); color: #fff;
}
.toast__body { flex: 1; min-width: 0; }
.toast__body strong { display: block; font-size: 0.98rem; margin-bottom: 2px; }
.toast__body p { margin: 0; color: var(--on-dark-muted); font-size: 0.86rem; line-height: 1.5; }
.toast__close {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; border-radius: 8px;
  background: none; border: none; color: var(--on-dark-faint);
  cursor: pointer; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.toast__close:hover { color: #fff; background: rgba(255,255,255,0.12); }
.toast__bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--primary);
  transform-origin: left;
  animation: toastBar linear forwards;
  animation-duration: var(--toast-duration, 5000ms);
}
@keyframes toastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.toast.is-paused .toast__bar, .toast.is-paused { animation-play-state: paused; }

.toast--success { border-left-color: var(--primary); }
.toast--success .toast__icon { background: var(--primary); }
.toast--success .toast__bar { background: var(--primary); }
.toast--error { border-left-color: #E5484D; }
.toast--error .toast__icon { background: #E5484D; }
.toast--error .toast__bar { background: #E5484D; }
.toast--info { border-left-color: var(--star); }
.toast--info .toast__icon { background: var(--star); }
.toast--info .toast__bar { background: var(--star); }

/* ============================================================
   FOOTER (shared by every page)
   ============================================================ */
.site-footer { background: var(--dark); color: var(--on-dark-muted); position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 44px; padding: 74px 0 56px;
}
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand > p { font-size: 0.92rem; line-height: 1.7; max-width: 34ch; }

.f-contact { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.f-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.9rem; }
.f-contact i { color: var(--accent); margin-top: 4px; font-size: 0.82rem; }
.f-contact a { color: var(--on-dark-muted); }
.f-contact a:hover { color: #fff; }

.f-col h4 {
  font-family: var(--font-body); font-weight: 800; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; margin: 6px 0 20px;
}
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.f-col a {
  color: var(--on-dark-muted); font-size: 0.93rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0;
  transition: color 0.25s ease, padding-left 0.25s var(--ease);
}
.f-col a::before {
  content: "—"; color: var(--accent); opacity: 0; margin-right: 0;
  width: 0; overflow: hidden; transition: all 0.25s var(--ease);
}
.f-col a:hover { color: #fff; padding-left: 20px; }
.f-col a:hover::before { opacity: 1; width: 16px; margin-right: 6px; }

.footer-bottom {
  border-top: 1px solid var(--dark-line);
  padding: 26px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; font-size: 0.84rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-legal a { color: var(--on-dark-muted); font-weight: 600; }
.footer-legal a:hover { color: #fff; }

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 1500;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--dark); color: #fff; border: none; cursor: pointer;
  box-shadow: var(--shadow-lg); font-size: 0.9rem;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease), background-color 0.25s ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--accent); }

body.has-toast .to-top { transform: translateY(-76px); }
body.has-toast .to-top.is-visible { transform: translateY(-76px); }

/* ============================================================
   LEGAL PAGES (terms / privacy) — TOC + prose
   ============================================================ */
.legal-layout {
  display: grid; grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px; align-items: start;
}
.toc { position: sticky; top: 110px; max-height: calc(100vh - 140px); overflow-y: auto; }
.toc h2 {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 14px;
}
.toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 7px 12px; border-radius: 8px;
  color: var(--muted); font-size: 0.85rem; font-weight: 600; line-height: 1.4;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  color: color-mix(in srgb, var(--primary) 60%, var(--muted));
  font-size: 0.8rem; flex-shrink: 0;
}
.toc a:hover { color: var(--ink); background: var(--tint); }
.toc a.is-active { color: var(--primary); background: var(--tint-2); font-weight: 800; }

.prose h2 {
  font-size: 1.45rem; margin: 44px 0 12px;
  padding-left: 18px; position: relative;
}
.prose h2::before {
  content: ""; position: absolute; left: 0; top: 0.28em; bottom: 0.24em;
  width: 5px; border-radius: 3px;
  background: linear-gradient(var(--primary), var(--accent));
}
.prose h2:first-of-type { margin-top: 10px; }
.prose p { color: var(--muted); margin-bottom: 16px; }
.prose strong { color: var(--ink); }
.legal-intro {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-sm); padding: 26px 30px; margin-bottom: 10px;
}
.legal-intro p { color: var(--ink); font-size: 0.98rem; margin: 0; }
.legal-contact {
  margin-top: 40px; display: flex; gap: 18px; align-items: center;
  background: var(--tint); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 28px; flex-wrap: wrap;
  justify-content: space-between;
}
.legal-contact p { margin: 0; font-weight: 600; color: var(--ink); }

/* Newsletter page extras */
.perk-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.perk-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.95rem; color: var(--muted); }
.perk-list i {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.perk-list strong { color: var(--ink); display: block; }

.side-visual {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.side-visual img { width: 100%; aspect-ratio: 16/9.5; object-fit: cover; transition: transform 0.7s var(--ease); }
.side-visual:hover img { transform: scale(1.045); }
.side-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(20,19,43,0.55));
}
.unsub-note {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--tint); border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--line));
  border-radius: var(--radius-sm); padding: 18px 20px; font-size: 0.88rem; color: var(--muted);
}
.unsub-note i { color: var(--primary); margin-top: 3px; }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="up"] { transform: translateY(44px); }
[data-reveal="left"] { transform: translateX(-52px); }
[data-reveal="right"] { transform: translateX(52px); }
[data-reveal="zoom"] { transform: scale(0.9); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .svc--feat { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .legal-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .hero__grid { gap: 44px; }
}

@media (max-width: 920px) {
  .main-nav, .header__actions .btn { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding-top: 64px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; margin: 0 auto; padding-right: 18px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .tst__slide { grid-template-columns: 1fr; gap: 18px; }
  .tst__mark { font-size: 4.5rem; }
  .tst__stage { min-height: 380px; }
  .cta-band__inner { padding: 64px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; margin-bottom: 10px; }
  .toc ol { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .sec-head { margin-bottom: 40px; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .container { padding: 0 18px; }
  .topbar__inner { justify-content: center; }
  .topbar__note { display: none; }
  .hero__stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--dark-line); }
  .stat { padding: 20px 6px; }
  .bento { grid-template-columns: 1fr; }
  .svc--feat { grid-column: span 1; }
  .why-grid { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding: 56px 0 40px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .tst__stage { min-height: 460px; }
  .hero__rating { left: -6px; }
  .hero__chip { right: 2px; }
  .toast-stack { right: 14px; bottom: 14px; width: calc(100vw - 28px); }
  .to-top { right: 14px; bottom: 14px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .ticker__track { animation: none; flex-wrap: wrap; }
}
