/* Casey Consolidated Media Agency — "Studio" design system.
   Its own look, separate from the real estate site: deep navy, cool grays, gold from the logo,
   a periwinkle accent, Bricolage Grotesque headlines, Manrope text and mono labels. */

:root {
  --navy: #0d1424;
  --navy-2: #151e33;
  --navy-3: #222d47;
  --ink: #111827;
  --ink-soft: #3d4658;
  --mute: #5b6476;
  --bg: #ffffff;
  --bg-2: #f2f4f8;
  --paper: #f7f8fb;
  --line: #e2e6ee;
  --line-2: #cfd5e1;
  --gold: #d6a84c;
  --gold-2: #ecc777;
  --gold-3: #8f6a1f;
  --gold-grad: linear-gradient(135deg, #f0d48f 0%, #d6a84c 55%, #b98a32 100%);
  --peri: #8b9cff;
  --peri-soft: #eceffe;
  --good: #137a4b;
  --bad: #b42318;
  /* names the preview styles share */
  --black: #0d1424; --night: #0d1424; --brass-soft: #fbf3df;

  --head: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --r-lg: 22px; --r: 14px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(13,20,36,.06), 0 8px 24px rgba(13,20,36,.07);
  --shadow-lg: 0 2px 6px rgba(13,20,36,.08), 0 28px 60px rgba(13,20,36,.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 17px/1.65 var(--sans); color: var(--ink); background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); color: inherit; margin: 0; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(72px, 9vw, 120px) 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--mute); }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--peri); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Mono label used above headings */
.eyebrow, .division-note { display: inline-flex; align-items: center; gap: 10px; font: 500 .78rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0 0 18px; }
.eyebrow::before, .division-note::before { content: ""; width: 22px; height: 2px; background: var(--gold); flex: none; }
.division-note b { font-weight: 600; color: var(--gold-3); }
.division-note b::after { content: "/"; margin: 0 8px; color: var(--line-2); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 12px; border: 1.5px solid var(--navy); background: var(--navy); color: #fff; font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(13,20,36,.18); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn.outline { background: transparent; color: var(--navy); }
.btn.ghost-light { background: transparent; border-color: rgba(13,20,36,.85); color: var(--navy); }
.text-link { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--navy); }

/* ---------- Header: floating capsule ---------- */
.topbar { display: none; }
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 18px; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border: 1px solid var(--line); border-radius: 18px; padding: 10px 10px 10px 14px; max-width: calc(var(--wrap) - 2 * var(--gutter) + 0px); width: calc(100% - 2 * var(--gutter)); box-shadow: 0 6px 24px rgba(13,20,36,.08); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; display: block; }
.brand-name { display: grid; line-height: 1.05; }
.brand-name small { font: 500 .66rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.brand-name b { font: 800 1.12rem/1.1 var(--head); letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-soft); padding: 9px 13px; border-radius: 10px; }
.nav a:hover { background: var(--bg-2); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--peri-soft); }
.nav .nav-cta { background: var(--navy); color: #fff; margin-left: 8px; padding: 11px 16px; }
.nav .nav-cta:hover { background: var(--navy-3); color: #fff; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 940px) {
  .menu-btn { display: grid; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 4px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; font-size: 1.02rem; }
  .nav .nav-cta { margin: 6px 0 0; text-align: center; }
}

/* ---------- Hero: dark split with blueprint grid ---------- */
.hero { position: relative; background: var(--navy); color: #fff; margin-top: -84px; padding: calc(84px + clamp(56px, 8vw, 100px)) 0 clamp(64px, 8vw, 100px); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(139,156,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(139,156,255,.09) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: -120px; background: radial-gradient(circle, rgba(214,168,76,.22), transparent 65%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero .division-note { color: rgba(255,255,255,.7); }
.hero .division-note b { color: var(--gold-2); }
.hero .division-note b::after { color: rgba(255,255,255,.3); }
.hero h1 { color: #fff; }
.rotator { display: block; color: var(--gold-2); min-height: 1.05em; }
.rotator .caret { display: inline-block; width: 4px; height: .85em; margin-left: 6px; vertical-align: -.06em; background: var(--peri); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero .lead { color: rgba(255,255,255,.78); margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn.outline { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn.outline:hover { border-color: #fff; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: .92rem; color: rgba(255,255,255,.8); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--peri); }
.hero-visual { position: relative; }
.mock { background: #fff; border-radius: 18px; overflow: hidden; color: var(--ink); box-shadow: 0 40px 80px rgba(0,0,0,.45); transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-bar .url { margin-left: 10px; flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 8px; font: 500 .76rem/1 var(--mono); color: var(--mute); padding: 7px 10px; }
.mock-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; padding: 24px; }
.mock-copy { display: grid; gap: 10px; align-content: start; }
.mock-copy .eyebrow { margin: 0; font-size: .64rem; }
.mock-copy .eyebrow::before { width: 14px; }
.mock-copy .h { font: 800 1.35rem/1.1 var(--head); letter-spacing: -.02em; color: var(--navy); }
.mock-copy .line { height: 8px; border-radius: 6px; background: var(--bg-2); }
.mock-copy .line.s { width: 70%; }
.mock-copy .btns { display: flex; gap: 8px; margin-top: 6px; }
.mock-copy .btns span { font-size: .72rem; font-weight: 700; padding: 8px 12px; border-radius: 8px; }
.mock-copy .btns .p { background: var(--navy); color: #fff; }
.mock-copy .btns .g { border: 1.5px solid var(--navy); color: var(--navy); }
.mock-art { display: grid; gap: 12px; }
.mock-phone { border: 2px solid var(--navy); border-radius: 16px; padding: 14px 10px; display: grid; gap: 7px; width: 74%; margin: 0 auto; }
.mock-phone i { height: 7px; border-radius: 5px; background: var(--bg-2); }
.mock-phone i.g { height: 22px; background: var(--gold); border-radius: 7px; margin-top: 4px; }
.mock-score { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mock-score div { background: var(--peri-soft); border-radius: 10px; padding: 8px 4px; text-align: center; display: grid; }
.mock-score b { font: 800 .9rem/1.1 var(--head); color: var(--navy); }
.mock-score span { font-size: .58rem; color: var(--mute); }
.mock-caption { font: 500 .72rem/1.4 var(--mono); color: rgba(255,255,255,.55); margin-top: 18px; text-align: center; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid rgba(255,255,255,.14); }
.hero-stats div { padding: 22px 18px 0 0; }
.hero-stats b { display: block; font: 800 clamp(1.6rem, 3vw, 2.2rem)/1 var(--head); color: #fff; letter-spacing: -.03em; }
.hero-stats span { font-size: .9rem; color: rgba(255,255,255,.65); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .mock { transform: none; }
}
@media (max-width: 560px) {
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .mock-art { display: none; }
  .hero-stats { grid-template-columns: minmax(0, 1fr); }
  .hero-stats div { padding: 16px 0 0; }
}

/* ---------- Includes strip: gold band ---------- */
.strip { background: var(--gold); color: var(--navy); padding: 18px 0; }
.strip .wrap { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.strip .label { font: 600 .76rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; font-size: .95rem; }
.strip li { display: inline-flex; align-items: center; gap: 10px; }
.strip li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); opacity: .5; }

/* ---------- Section heads: label + heading left, lead right ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.section-head .lead { justify-self: end; }
.section-head:not(:has(.lead)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 820px) { .section-head { grid-template-columns: minmax(0, 1fr); } .section-head .lead { justify-self: start; } }
section.soft, .soft { background: var(--bg-2); }
section.dark { background: var(--paper); }

/* ---------- Process: connected timeline ---------- */
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.ways::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
.way { position: relative; padding: 0 22px 0 0; }
.way .n { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--navy); color: var(--gold-2); font: 600 1rem/1 var(--mono); margin-bottom: 22px; }
.way h3 { margin-bottom: 8px; }
.way p { color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 900px) {
  .ways { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ways::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 8px, transparent 8px 14px); }
  .way { padding: 0 0 0 68px; }
  .way .n { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Features: bento grid ---------- */
.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.feature { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.feature.wide { grid-column: span 3; }
.feature:first-child { background: var(--navy); color: #fff; border-color: var(--navy); }
.feature:first-child p { color: rgba(255,255,255,.75); }
.feature:first-child .icon { background: rgba(255,255,255,.1); color: var(--gold-2); }
.feature:first-child .panel-mini { background: var(--navy-2); border-color: var(--navy-3); }
.feature:first-child .kv { border-color: var(--navy-3); }
.feature:first-child .kv span { color: rgba(255,255,255,.7); }
.feature:first-child .kv b { color: var(--gold-2); }
.feature:first-child .tagline { color: rgba(255,255,255,.55); }
.feature p { color: var(--ink-soft); font-size: .97rem; }
.icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--peri-soft); color: var(--navy); margin-bottom: 6px; }
.icon svg { width: 23px; height: 23px; }
.widget { margin-top: auto; padding-top: 14px; }
.panel-mini { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 16px; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); font-size: .9rem; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--mute); }
.kv b { color: var(--good); font-weight: 700; text-align: right; }
.tagline { font: 500 .74rem/1.5 var(--mono); color: var(--mute); margin-top: 10px; }
.track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 14px 0; }
.track div { display: grid; justify-items: center; gap: 8px; font-size: .74rem; font-weight: 600; color: var(--mute); text-align: center; }
.track i { width: 100%; height: 6px; border-radius: 4px; background: var(--line); transition: background .3s ease; }
.track div.done i { background: var(--gold); }
.track div.done { color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .82rem; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: var(--bg-2); color: var(--mute); }
.chip.on { background: var(--navy); color: #fff; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feature, .feature.wide { grid-column: span 1; } .feature:first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } .feature:first-child { grid-column: auto; } }

/* ---------- Packages ---------- */
.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pkg { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px 26px; box-shadow: var(--shadow); }
.pkg h3 { font-size: 1.5rem; font-weight: 800; }
.pkg .for { color: var(--mute); font-size: .95rem; margin-top: 6px; min-height: 3em; }
.pkg .price { font: 800 clamp(2.2rem, 3.4vw, 2.8rem)/1 var(--head); letter-spacing: -.035em; color: var(--navy); margin: 22px 0 4px; padding-top: 22px; border-top: 1px solid var(--line); }
.pkg .price small { display: block; font: 500 .74rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-top: 10px; }
.pkg ul { list-style: none; padding: 0; margin: 20px 0 22px; display: grid; gap: 11px; }
.pkg li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: .95rem; }
.pkg li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--good); }
.care { margin-top: auto; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; font: 600 .78rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: var(--peri-soft); border-radius: 10px; padding: 12px 14px; }
.care::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.pkg .btn { width: 100%; }
.pkg-ex { display: block; text-align: center; margin-top: 16px; font-size: .92rem; }
.badge { position: absolute; top: 22px; right: 22px; font: 600 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--navy); padding: 7px 10px; border-radius: 8px; }
.pkg.feat { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow-lg); }
.pkg.feat .for, .pkg.feat .price small { color: rgba(255,255,255,.65); }
.pkg.feat .price { color: var(--gold-2); border-color: var(--navy-3); }
.pkg.feat li svg { color: var(--gold-2); }
.pkg.feat .care { background: var(--navy-2); color: #fff; }
.pkg.feat .text-link { color: #fff; }
.price-note { margin-top: 28px; color: var(--mute); font-size: .95rem; text-align: center; }
@media (max-width: 960px) { .packages { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; } .pkg .for { min-height: 0; } }

/* ---------- Who we build for: line list ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.tile { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line-2); }
.tile svg { grid-row: span 2; width: 26px; height: 26px; color: var(--gold-3); margin-top: 2px; }
.tile p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Sister company ---------- */
.sister { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 22px 26px; color: var(--ink-soft); }
.sister b { color: var(--navy); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font: 700 1.05rem/1.35 var(--head); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--bg-2); font: 500 1.2rem/1 var(--mono); color: var(--navy); transition: transform .2s ease; }
.faq details[open] summary::after { content: "–"; background: var(--gold); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-soft); }

/* ---------- Call to action band ---------- */
.cta-card { position: relative; overflow: hidden; background: var(--gold-grad); color: var(--navy); border-radius: 28px; padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 20px 40px; align-items: end; }
.cta-card::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(13,20,36,.07); }
.cta-card h2 { max-width: 18ch; }
.cta-card .lead { color: rgba(13,20,36,.78); grid-column: 1; }
.cta-card .actions { grid-column: 2; grid-row: 1 / span 2; position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-card { grid-template-columns: minmax(0, 1fr); } .cta-card .actions { grid-column: 1; grid-row: auto; } }

/* ---------- Inner page heads ---------- */
.page-head { position: relative; background: var(--navy); color: #fff; margin-top: -84px; padding: calc(84px + clamp(56px, 7vw, 88px)) 0 clamp(52px, 6vw, 76px); overflow: hidden; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(139,156,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(139,156,255,.08) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-head .division-note { color: rgba(255,255,255,.7); }
.page-head .division-note b { color: var(--gold-2); }
.page-head .division-note b::after { color: rgba(255,255,255,.3); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 20ch; }
.page-head .lead { color: rgba(255,255,255,.75); margin-top: 18px; }

/* ---------- Services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.svc { background: #fff; padding: 28px; }
.svc h3 { margin: 4px 0 8px; }
.svc p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Split, checklist, prose ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.checklist li > svg { width: 22px; height: 22px; color: var(--navy); background: var(--gold); border-radius: 7px; padding: 3px; margin-top: 2px; }
.checklist b { display: block; font-family: var(--head); font-size: 1.05rem; }
.checklist span { color: var(--ink-soft); font-size: .95rem; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.prose p { color: var(--ink-soft); margin-bottom: 14px; }
.prose ul { color: var(--ink-soft); padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--navy); font-weight: 600; }

/* ---------- Add-ons and comparison tables ---------- */
.addons, .compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font-size: .97rem; }
.addons th, .addons td, .compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.addons thead th, .compare thead th { font: 600 .72rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); background: var(--paper); }
.compare thead th.us { color: var(--navy); background: var(--brass-soft); }
.compare td.us { background: #fffaf0; font-weight: 600; }
.addons td:last-child { white-space: nowrap; font-family: var(--mono); font-size: .85rem; color: var(--mute); }
.compare tbody th { font-weight: 700; width: 26%; }
.addons tr:last-child td, .compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
@media (max-width: 680px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border-bottom: 1px solid var(--line); padding: 14px 0; }
  .compare tbody th { width: 100%; padding: 4px 18px 8px; border: 0; }
  .compare td { border: 0; padding: 4px 18px; }
  .compare td::before { content: attr(data-l); display: block; font: 600 .68rem/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
  .addons th, .addons td { padding: 12px; } .addons td:last-child { white-space: normal; }
}

/* ---------- Case study ---------- */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.cc-shot { background: #0a0a0a; display: grid; place-items: center; padding: 48px; }
.cc-shot img { width: min(280px, 70%); height: auto; }
.case-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 26px 0; }
.case-stats div { background: var(--bg-2); border-radius: var(--r); padding: 16px; }
.case-stats b { display: block; font: 800 2rem/1 var(--head); color: var(--navy); }
.case-stats span { font-size: .85rem; color: var(--mute); }
@media (max-width: 860px) { .case { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow); }
.panel h3 { font-size: 1.5rem; }
.panel > .muted { margin: 6px 0 22px; }
.form { display: grid; gap: 16px; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 7px; }
.field > span { font-weight: 700; font-size: .92rem; }
.field .opt { font-weight: 500; color: var(--mute); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 11px; padding: 13px 14px; min-height: 50px; width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px var(--peri-soft); }
.field.err input, .field.err textarea, .field.err select { border-color: var(--bad); }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: .84rem; color: var(--mute); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); }
.form .btn { justify-self: start; }
.form-status { font-weight: 600; }
.form.done .form-status { color: var(--good); }
.reach { display: grid; gap: 12px; }
.rc { display: grid; grid-template-columns: 50px minmax(0, 1fr) 22px; gap: 16px; align-items: center; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; transition: border-color .15s ease, transform .15s ease; }
.rc:hover { border-color: var(--navy); transform: translateX(3px); }
.rc[hidden] { display: none; }
.rc .ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; background: var(--navy); color: var(--gold-2); }
.rc .ic svg { width: 22px; height: 22px; }
.rc b { display: block; font-family: var(--head); font-size: 1.1rem; }
.rc span span { color: var(--mute); font-size: .92rem; overflow-wrap: anywhere; }
.rc .go { width: 20px; height: 20px; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: clamp(64px, 8vw, 96px) 0 32px; margin-top: clamp(40px, 6vw, 80px); }
section + .site-footer, main > section:last-child { margin-bottom: 0; }
.footer-big { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: clamp(40px, 5vw, 56px); margin-bottom: clamp(40px, 5vw, 56px); border-bottom: 1px solid var(--navy-3); }
.footer-big p { font: 800 clamp(2rem, 5vw, 3.6rem)/1 var(--head); letter-spacing: -.035em; color: #fff; max-width: 14ch; }
.footer-big p span { color: var(--gold-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-logo { width: 56px; height: 56px; border-radius: 14px; display: block; margin-bottom: 16px; }
.site-footer h4 { font: 600 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.85); overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); }
.site-footer p { font-size: .95rem; max-width: 34ch; }
.site-footer li[hidden] { display: none; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--navy-3); display: grid; gap: 10px; font-size: .82rem; color: rgba(255,255,255,.5); }
.legal p { max-width: none; font-size: .82rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Floating call button ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--gold); color: var(--navy); box-shadow: 0 14px 30px rgba(13,20,36,.3); text-decoration: none; }
.fab svg { width: 26px; height: 26px; }
.fab .tip { position: absolute; right: 72px; white-space: nowrap; background: var(--navy); color: #fff; font-size: .85rem; font-weight: 700; padding: 8px 12px; border-radius: 10px; opacity: 0; transform: translateX(6px); transition: .15s ease; pointer-events: none; }
.fab:hover .tip, .fab:focus-visible .tip { opacity: 1; transform: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* preview panel: match the studio look */
.pv-wrap { background: var(--paper); }
.pv-tabs button { border-radius: 12px; }
.pv-tabs button b { font-family: var(--head); }
.pv-tabs button span { font-family: var(--mono); font-size: .74rem; letter-spacing: .02em; }
.pv-side h3 small { color: var(--gold-3); font-family: var(--mono); font-size: .85rem; }
.division-note { flex-wrap: wrap; row-gap: 4px; } .division-note b { white-space: nowrap; }
.site-footer { margin-top: 0; }
.site-footer .footer-big p { font: 800 clamp(2rem, 5vw, 3.6rem)/1 var(--head); letter-spacing: -.035em; color: #fff; max-width: 14ch; }
.form-done { display: grid; justify-items: start; gap: 10px; padding: 8px 0; }
.form-done svg { width: 46px; height: 46px; color: var(--good); }
.form-done h3 { font-size: 1.5rem; }
/* call button sits bottom-left, clear of the host badge on the right */
.fab { right: auto; left: 20px; }
.fab .tip { right: auto; left: 72px; transform: translateX(-6px); }

/* ---------------------------------------------------------------- AI chat assistant */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chat { position: fixed; left: 20px; bottom: 92px; z-index: 61; }
.chat-launch { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: 700 .95rem/1 var(--sans); cursor: pointer; box-shadow: 0 14px 30px rgba(13,20,36,.3); }
.chat-launch svg { width: 24px; height: 24px; color: var(--gold-2); }
.chat-launch:hover { background: var(--navy-3); }
.chat-launch:focus-visible, .chat-panel button:focus-visible, .chat-panel textarea:focus-visible { outline: 3px solid var(--peri); outline-offset: 2px; }
.chat.open .chat-launch { display: none; }
.chat-panel { padding: 0; margin: 0; position: fixed; left: 20px; bottom: 20px; width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 70px rgba(13,20,36,.3); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; background: var(--navy); color: #fff; }
.chat-head h2 { font: 800 1rem/1.2 var(--head); margin: 0; color: #fff; }
.chat-head p { margin: 2px 0 0; font-size: .8rem; color: #b9c3d8; }
.chat-avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--gold-grad); color: var(--navy); font: 800 .8rem/1 var(--mono); }
.chat-close { margin-left: auto; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.chat-close svg { width: 18px; height: 18px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.chat-msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: .92rem; line-height: 1.5; }
.chat-msg p { margin: 0; } .chat-msg p + p, .chat-msg ul + p, .chat-msg p + ul { margin-top: 6px; }
.chat-msg ul { margin: 0; padding-left: 18px; }
.chat-msg a { color: inherit; font-weight: 700; text-decoration: underline; }
.chat-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 5px; }
.chat-msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 5px; }
.chat-msg .dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.chat-msg .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: chatdot 1.2s infinite ease-in-out; }
.chat-msg .dots i:nth-child(2) { animation-delay: .15s; } .chat-msg .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chatdot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .chat-msg .dots i { animation: none; } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: var(--paper); }
.chat-suggest[hidden] { display: none; }
.chat-suggest button { font: 600 .82rem/1.2 var(--sans); padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; }
.chat-suggest button:hover { border-color: var(--gold); }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; font: 500 .95rem/1.4 var(--sans); color: var(--ink); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 12px; min-height: 44px; max-height: 120px; }
.chat-form button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--gold); color: var(--navy); cursor: pointer; }
.chat-form button:disabled { opacity: .5; cursor: wait; }
.chat-form button svg { width: 20px; height: 20px; }
.chat-note { margin: 0; padding: 0 14px 12px; font-size: .74rem; line-height: 1.4; color: var(--mute); }
.chat-note a { color: var(--ink-soft); }
@media (max-width: 560px) {
  .chat { left: 16px; bottom: 88px; }
  .chat-launch span { display: none; }
  .chat-launch { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .chat-panel { left: 8px; right: 8px; bottom: 8px; width: auto; height: calc(100dvh - 16px); border-radius: 18px; }
}
