/* ============================================================
   IntelliHome — shared design system
   Flowing, media-led, less-boxy. Dark + light.
   ============================================================ */

/* ---------- Tokens (light base; dark + explicit toggles override) ---------- */
:root {
  --bg:        #F5F2EB;
  --bg-1:      #FBF9F4;
  --bg-deep:   #ECE6DA;
  --card:      #FFFFFF;
  --card-2:    #FBF8F1;
  --line:      rgba(20, 28, 26, 0.10);
  --line-2:    rgba(20, 28, 26, 0.16);
  --text:      #16201F;
  --muted:     #55635F;
  --faint:     #7C8884;
  --accent:    #B57A1E;
  --accent-2:  #9C6714;
  --accent-ink:#FFFFFF;
  --accent-wash: rgba(181, 122, 30, 0.10);
  --good:      #3F7E56;
  --good-wash: rgba(63, 126, 86, 0.12);
  --alert:     #C0522F;
  --alert-wash:rgba(192, 82, 47, 0.12);
  --ink:       #0E1417;               /* constant dark for image overlays */
  --on-ink:    #F3EFE6;
  --shadow-sm: 0 1px 2px rgba(20,28,26,.05), 0 8px 20px -14px rgba(20,28,26,.3);
  --shadow:    0 2px 6px rgba(20,28,26,.05), 0 24px 60px -30px rgba(20,28,26,.4);
  --shadow-lg: 0 40px 90px -40px rgba(20,28,26,.5);
  --glow:      radial-gradient(60% 60% at 50% 40%, var(--accent-wash), transparent 70%);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;

  --maxw: 1160px;
  --r-lg: 28px;
  --r:    18px;
  --r-sm: 11px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:#0D1316; --bg-1:#111A1E; --bg-deep:#0A0F12; --card:#16211F;
    --card-2:#1B2A2E; --line:rgba(237,233,225,.09); --line-2:rgba(237,233,225,.17);
    --text:#ECE7DD; --muted:#9DAAA5; --faint:#6E7C79;
    --accent:#EBB05A; --accent-2:#F2C377; --accent-ink:#12181B; --accent-wash:rgba(235,176,90,.13);
    --good:#86B996; --good-wash:rgba(134,185,150,.15); --alert:#E28167; --alert-wash:rgba(226,129,103,.16);
    --shadow-sm:0 1px 2px rgba(0,0,0,.3), 0 8px 22px -14px rgba(0,0,0,.7);
    --shadow:0 2px 6px rgba(0,0,0,.35), 0 28px 64px -30px rgba(0,0,0,.8);
    --shadow-lg:0 50px 100px -40px rgba(0,0,0,.85);
  }
}
:root[data-theme="light"] {
  --bg:#F5F2EB; --bg-1:#FBF9F4; --bg-deep:#ECE6DA; --card:#FFFFFF; --card-2:#FBF8F1;
  --line:rgba(20,28,26,.10); --line-2:rgba(20,28,26,.16); --text:#16201F; --muted:#55635F; --faint:#7C8884;
  --accent:#B57A1E; --accent-2:#9C6714; --accent-ink:#FFFFFF; --accent-wash:rgba(181,122,30,.10);
  --good:#3F7E56; --good-wash:rgba(63,126,86,.12); --alert:#C0522F; --alert-wash:rgba(192,82,47,.12);
  --shadow-sm:0 1px 2px rgba(20,28,26,.05), 0 8px 20px -14px rgba(20,28,26,.3);
  --shadow:0 2px 6px rgba(20,28,26,.05), 0 24px 60px -30px rgba(20,28,26,.4);
  --shadow-lg:0 40px 90px -40px rgba(20,28,26,.5);
}
:root[data-theme="dark"] {
  --bg:#0D1316; --bg-1:#111A1E; --bg-deep:#0A0F12; --card:#16211F; --card-2:#1B2A2E;
  --line:rgba(237,233,225,.09); --line-2:rgba(237,233,225,.17); --text:#ECE7DD; --muted:#9DAAA5; --faint:#6E7C79;
  --accent:#EBB05A; --accent-2:#F2C377; --accent-ink:#12181B; --accent-wash:rgba(235,176,90,.13);
  --good:#86B996; --good-wash:rgba(134,185,150,.15); --alert:#E28167; --alert-wash:rgba(226,129,103,.16);
  --shadow-sm:0 1px 2px rgba(0,0,0,.3), 0 8px 22px -14px rgba(0,0,0,.7);
  --shadow:0 2px 6px rgba(0,0,0,.35), 0 28px 64px -30px rgba(0,0,0,.8);
  --shadow-lg:0 50px 100px -40px rgba(0,0,0,.85);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font-sans); background: var(--bg); color: var(--text);
  line-height: 1.62; font-size: 17px; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
h1,h2,h3,h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
ul { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; }

/* ---------- Ambient blobs (depth + flow) ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; z-index: 0; }
.blob.amber { background: var(--accent); opacity: .16; }
.blob.sage  { background: var(--good);   opacity: .14; }
@media (prefers-color-scheme: dark){ .blob { opacity: .4; } }

/* ---------- Bits ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); opacity: .6; }
.eyebrow.center { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 26px -12px var(--accent); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { background: color-mix(in srgb, var(--card) 60%, transparent); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn svg { width: 17px; height: 17px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .04em; color: var(--muted);
  background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; backdrop-filter: blur(6px);
}
.pill .d { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-wash); }

/* ---------- Header + nav ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(150deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; flex: none; box-shadow: 0 4px 14px -4px var(--accent);
}
.brand .mark svg { width: 19px; height: 19px; }
.brand em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 14.5px; color: var(--muted); font-weight: 500; padding: 8px 14px; border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.nav-links a.active { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon, :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun,  :root:not([data-theme="light"]) .theme-toggle .sun  { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .moon { display: none; }
  :root:not([data-theme]) .theme-toggle .sun  { display: block; }
}
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text); cursor: pointer; place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Section scaffolding ---------- */
.section { position: relative; padding: 104px 0; }
.section.tight { padding: 76px 0; }
.section-head { max-width: 660px; position: relative; z-index: 1; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.95rem, 3.6vw, 2.85rem); margin-top: 16px; }
.section-head p { color: var(--muted); margin-top: 18px; font-size: 1.1rem; }

/* Soft rounded floating band (kills boxiness — panel floats over page bg) */
.panel-band {
  position: relative; margin: 0 auto; max-width: 1280px; border-radius: 44px;
  background: var(--bg-1); box-shadow: var(--shadow-sm); overflow: hidden;
}
@media (max-width: 720px){ .panel-band { border-radius: 30px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); font-weight: 800; margin-top: 20px; }
.hero h1 .glow { color: var(--accent); position: relative; }
.hero-lead { color: var(--muted); font-size: clamp(1.06rem, 1.4vw, 1.22rem); margin-top: 22px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px 34px; margin-top: 38px; }
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta b { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-meta span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

/* Hero media stack: image frame with floating glass notification card */
.hero-media { position: relative; }
.media-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; background: var(--card-2);
}
.media-frame img, .media-frame video { width: 100%; height: 100%; object-fit: cover; }
.media-frame.ring::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); pointer-events: none;
}
.float-card {
  position: absolute; left: -22px; bottom: 28px; width: min(340px, 82%);
  background: color-mix(in srgb, var(--card) 86%, transparent); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px;
}
.float-card .fc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.float-card .fc-top b { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.float-card .fc-top b .d { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px var(--good-wash); }
.float-card .fc-top span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.notif { display: flex; gap: 12px; align-items: flex-start; position: relative; padding-left: 12px; min-height: 68px; }
.notif::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 3px; background: var(--accent); }
.notif.is-alert::before { background: var(--alert); } .notif.is-good::before { background: var(--good); }
.notif .ic { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent); }
.notif.is-alert .ic { background: var(--alert-wash); color: var(--alert); } .notif.is-good .ic { background: var(--good-wash); color: var(--good); }
.notif .ic svg { width: 17px; height: 17px; }
.notif .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.notif .msg { font-size: 13.5px; font-weight: 500; margin-top: 4px; line-height: 1.4; }
.notif .msg b { font-weight: 700; }
.notif-fade { transition: opacity .5s ease, transform .5s ease; }
.notif-fade.out { opacity: 0; transform: translateY(6px); }

/* logo strip */
.trust-strip { position: relative; z-index: 2; margin-top: 70px; padding-top: 30px; border-top: 1px solid var(--line); }
.trust-strip p { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); text-align: center; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; margin-top: 20px; opacity: .85; }
.trust-logos span { font-weight: 600; color: var(--muted); font-size: 15px; }

/* ---------- Media / feature rows (alternating, flowing) ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-row + .feature-row { margin-top: 108px; }
.feature-row.flip .fr-media { order: 2; }
.fr-media { position: relative; }
.fr-media .frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 5 / 4;
}
.fr-media .frame img, .fr-media .frame video { width: 100%; height: 100%; object-fit: cover; }
.fr-media .glow-blob { position: absolute; inset: auto -10% -14% -10%; height: 70%; background: var(--accent);
  filter: blur(80px); opacity: .18; border-radius: 50%; z-index: -1; }
.fr-badge {
  position: absolute; top: 18px; left: 18px; background: color-mix(in srgb, var(--ink) 62%, transparent);
  color: var(--on-ink); backdrop-filter: blur(6px); border-radius: 999px; padding: 8px 15px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  display: inline-flex; gap: 8px; align-items: center;
}
.fr-badge .d { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.fr-body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 14px; }
.fr-body p { color: var(--muted); margin-top: 16px; font-size: 1.06rem; }
.fr-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.fr-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 15.5px; }
.fr-list .tick { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.fr-body .btn { margin-top: 26px; }

/* ---------- Soft cards (borderless, elevated) ---------- */
.cards { display: grid; gap: 22px; }
.cards.c2 { grid-template-columns: repeat(2,1fr); }
.cards.c3 { grid-template-columns: repeat(3,1fr); }
.cards.c4 { grid-template-columns: repeat(4,1fr); }
.softcard {
  position: relative; background: var(--card); border-radius: var(--r); padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease; overflow: hidden;
}
.softcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.softcard .ic-lg { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-wash); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 20px; }
.softcard .ic-lg svg { width: 25px; height: 25px; }
.softcard h3 { font-size: 1.28rem; }
.softcard > p { color: var(--muted); margin-top: 11px; font-size: 15.5px; }
.softcard .tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.softcard .tags li { font-size: 12.5px; font-family: var(--font-mono); color: var(--muted);
  background: var(--card-2); border-radius: 999px; padding: 5px 11px; }
.softcard .arrow { margin-top: 18px; color: var(--accent); font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 7px; align-items: center; }
.softcard.link:hover .arrow svg { transform: translateX(4px); }
.softcard .arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }

/* ---------- Video showreel ---------- */
.showreel {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg); background: var(--ink); cursor: pointer;
}
.showreel img, .showreel video { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.showreel .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,20,23,.15), rgba(14,20,23,.65)); }
.showreel .play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.6); transition: transform .2s ease;
}
.showreel:hover .play { transform: scale(1.08); }
.showreel .play svg { width: 30px; height: 30px; margin-left: 4px; }
.showreel .play::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--accent); opacity: .5; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.5); opacity: 0; } }
.showreel .rlabel { position: absolute; left: 22px; bottom: 20px; color: #fff; }
.showreel .rlabel b { font-size: 1.15rem; } .showreel .rlabel span { display: block; font-size: 13px; opacity: .8; margin-top: 2px; }
@media (prefers-reduced-motion: reduce){ .showreel .play::after { animation: none; } }

/* ---------- Gallery ---------- */
.gallery { columns: 3; column-gap: 18px; }
.gallery .g-item { break-inside: avoid; margin-bottom: 18px; border-radius: var(--r); overflow: hidden;
  position: relative; box-shadow: var(--shadow-sm); cursor: pointer; }
.gallery .g-item img { width: 100%; height: auto; transition: transform .4s ease; }
.gallery .g-item:hover img { transform: scale(1.05); }
.gallery .g-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 14px;
  background: linear-gradient(transparent, rgba(14,20,23,.8)); color: #fff; font-size: 13px; font-weight: 600;
  opacity: 0; transition: opacity .25s ease; }
.gallery .g-item:hover .cap { opacity: 1; }
@media (max-width: 860px){ .gallery { columns: 2; } }
@media (max-width: 520px){ .gallery { columns: 1; } }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stats .stat b { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; display: block; }
.stats .stat b small { font-size: .5em; color: var(--accent); }
.stats .stat span { color: var(--muted); font-size: 14.5px; margin-top: 6px; display: block; }

/* ---------- Process / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 20px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 600; }
.step h3 { font-size: 1.2rem; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; }
.step .bar { position: absolute; top: 26px; left: 46px; right: -12px; height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent); }
.step:last-child .bar { display: none; }

/* ---------- Pricing tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: start; }
.tier { position: relative; background: var(--card); border-radius: var(--r-lg); padding: 34px 30px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; }
.tier.featured { box-shadow: var(--shadow); background: linear-gradient(180deg, var(--accent-wash), var(--card) 40%);
  outline: 1.5px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.tier .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tier h3 { font-size: 1.5rem; margin: 10px 0 6px; }
.tier .desc { color: var(--muted); font-size: 14.5px; min-height: 42px; }
.tier .price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; margin: 18px 0 2px; }
.tier .price small { font-size: .5em; font-weight: 600; color: var(--muted); }
.tier .price-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }
.tier ul { list-style: none; padding: 0; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 12px; }
.tier ul li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.tier ul li svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.tier ul li.off { color: var(--faint); } .tier ul li.off svg { color: var(--faint); }
.tier .btn { margin-top: auto; justify-content: center; }
.tier .ribbon { position: absolute; top: 18px; right: 18px; background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; }

/* ---------- Quote / testimonial ---------- */
.quote { position: relative; text-align: center; max-width: 820px; margin-inline: auto; }
.quote blockquote { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.35; }
.quote blockquote::before { content: "\201C"; color: var(--accent); }
.quote blockquote::after { content: "\201D"; color: var(--accent); }
.quote .by { margin-top: 22px; color: var(--muted); font-size: 15px; }
.quote .by b { color: var(--text); }

/* ---------- Split media CTA (full-bleed image + overlay) ---------- */
.cta-media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); isolation: isolate; }
.cta-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-media::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(14,20,23,.92) 30%, rgba(14,20,23,.55)); }
.cta-media .inner { padding: 66px 56px; max-width: 640px; color: var(--on-ink); }
.cta-media .inner h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: #fff; }
.cta-media .inner p { margin-top: 16px; color: rgba(243,239,230,.82); font-size: 1.08rem; }
.cta-media .inner .eyebrow { color: var(--accent-2); }
:root[data-theme="dark"] .cta-media .inner .eyebrow, :root:not([data-theme="light"]) .cta-media .inner .eyebrow { color: var(--accent); }
.cta-media .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Contact form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--text); background: var(--card); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 13px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash); }

/* Page hero (interior pages) */
.page-hero { position: relative; padding: 66px 0 34px; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; margin-top: 16px; }
.page-hero p { color: var(--muted); font-size: 1.12rem; margin-top: 18px; max-width: 40em; }
.crumbs { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: .04em; }
.crumbs a:hover { color: var(--accent); }

/* Footer */
footer { position: relative; border-top: 1px solid var(--line); padding: 66px 0 40px; background: var(--bg-1); margin-top: 40px; overflow: hidden; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; position: relative; z-index: 1; }
.foot .about p { color: var(--muted); font-size: 14.5px; max-width: 30ch; margin-top: 14px; }
.foot .social { display: flex; gap: 10px; margin-top: 18px; }
.foot .social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); transition: color .15s, border-color .15s; }
.foot .social a:hover { color: var(--accent); border-color: var(--accent); }
.foot .social svg { width: 18px; height: 18px; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 4px 0 16px; font-weight: 600; }
.foot-col a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 11px; transition: color .15s; }
.foot-col a:hover { color: var(--accent); }
.foot-base { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13px; position: relative; z-index: 1; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 24px;
  background: rgba(8,12,14,.86); backdrop-filter: blur(6px); }
.lightbox.open { display: grid; }
.lightbox .lb-inner { width: min(1000px, 100%); }
.lightbox .lb-media { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #000; }
.lightbox .lb-media iframe, .lightbox .lb-media video, .lightbox .lb-media img { width: 100%; height: 100%; border: 0; object-fit: contain; }
.lightbox .lb-close { position: absolute; top: -50px; right: 0; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-close svg { width: 20px; height: 20px; }

/* ---------- Reveal / a11y ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } .notif-fade { transition: none; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .feature-row { grid-template-columns: 1fr; gap: 34px; }
  .feature-row + .feature-row { margin-top: 72px; }
  .feature-row.flip .fr-media { order: 0; }
  .cards.c4 { grid-template-columns: repeat(2,1fr); }
  .cards.c3 { grid-template-columns: repeat(3,1fr); }
  .tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .step .bar { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .foot { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .cards.c2, .cards.c3, .cards.c4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-media .inner { padding: 40px 26px; }
  .float-card { left: 0; right: 0; margin-inline: auto; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } body { font-size: 16px; } }

/* Mobile nav panel */
.mobile-nav { position: fixed; inset: 0; z-index: 150; display: none; }
.mobile-nav.open { display: block; }
.mobile-nav .scrim { position: absolute; inset: 0; background: rgba(8,12,14,.5); backdrop-filter: blur(3px); }
.mobile-nav .sheet { position: absolute; top: 0; right: 0; height: 100%; width: min(320px, 84%);
  background: var(--bg-1); box-shadow: var(--shadow-lg); padding: 26px 22px; display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%); transition: transform .28s ease; }
.mobile-nav.open .sheet { transform: none; }
.mobile-nav .sheet a { padding: 14px 12px; border-radius: 12px; font-size: 16px; font-weight: 600; color: var(--text); }
.mobile-nav .sheet a:hover, .mobile-nav .sheet a.active { background: var(--accent-wash); color: var(--accent); }
.mobile-nav .sheet .close { align-self: flex-end; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; margin-bottom: 8px; }
.mobile-nav .sheet .btn { margin-top: 14px; justify-content: center; }
@media (prefers-reduced-motion: reduce){ .mobile-nav .sheet { transition: none; } }
