/*
Theme Name: Mainchester
Theme URI: https://www.mainchester.co.uk/
Description: Bespoke AI-agency theme for Mainchester — clean corporate design (navy / warm cream / honey-gold), Bricolage Grotesque + Manrope. Homepage + programmatic city & service pages. "We put AI in Manchester."
Author: Mainchester
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mainchester
*/

:root{
  --bg:#F9F6F1;          /* warm paper */
  --surface:#FFFFFF;      /* cards */
  --surface-2:#F3EEE6;    /* subtle alt panels */
  --navy:#0B1A2D;         /* primary ink + dark sections */
  --navy-2:#12253B;
  --navy-soft:#2C3B4E;
  --text:#152232;         /* body text */
  --muted:#53606E;        /* secondary text */
  --muted-2:#7A8797;
  --line:#E6DFD5;         /* warm hairline */
  --line-2:#EFEAE2;
  --gold:#C08324;         /* accent (bee) — legible on cream */
  --gold-2:#E0A02A;       /* brighter gold for dark bg */
  --gold-wash:#FBEED6;    /* soft gold panel */
  --maxw:1240px; --r:16px;
  --shadow:0 1px 2px rgba(11,26,45,.04),0 12px 30px rgba(11,26,45,.06);
  --shadow-lg:0 30px 70px rgba(11,26,45,.12);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
html{background:var(--bg)}
body{
  background:transparent; color:var(--text);
  font-family:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;
  line-height:1.65; font-size:16.5px; font-weight:400;
  overflow-x:hidden; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,.display{font-family:'Bricolage Grotesque','Manrope',sans-serif; color:var(--navy); line-height:1.14; letter-spacing:-.008em; font-weight:600}
a{color:inherit; text-decoration:none}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 28px}
.grad-text{color:var(--gold)}
.eyebrow{font-family:'JetBrains Mono',monospace; font-size:12px; font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--gold)}
.muted{color:var(--muted)}
section{position:relative; padding:32px 0}

/* subtle pro grid behind everything (shows in open areas, hidden behind cards) */
.mesh,.hero-glow{display:none}
.grid-overlay{position:fixed;inset:0;z-index:-1;pointer-events:none;
  background-image:linear-gradient(rgba(11,26,45,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(11,26,45,.04) 1px,transparent 1px);
  background-size:58px 58px;
  -webkit-mask-image:radial-gradient(ellipse 92% 62% at 50% 0%,#000 34%,transparent 82%);
  mask-image:radial-gradient(ellipse 92% 62% at 50% 0%,#000 34%,transparent 82%)}

/* NAV */
.site-header{position:sticky; top:0; z-index:50; background:rgba(249,246,241,.85); backdrop-filter:blur(12px); border-bottom:1px solid transparent; transition:.3s}
.site-header.scrolled{border-bottom-color:var(--line); background:rgba(249,246,241,.94)}
.nav{display:flex; align-items:center; justify-content:space-between; height:78px; gap:24px}
.nav>nav{flex:1; display:flex; justify-content:center}
.brand{display:flex; align-items:center; gap:9px; font-family:'Bricolage Grotesque'; color:var(--navy)}
.bee{width:36px;height:36px; display:grid; place-items:center; border-radius:10px; background:var(--navy); color:var(--gold-2); font-size:18px; flex:0 0 auto}
.brand-text{display:flex; flex-direction:column; line-height:1}
.brand-name{font-size:21px; font-weight:800; letter-spacing:-.035em}
.brand-tag{font-size:9px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--muted-2); margin-top:4px}
.dark .brand-tag{color:var(--muted)}
.brand .ai{color:var(--gold); letter-spacing:-.04em}
nav ul{display:flex; gap:26px; list-style:none; font-size:14.5px; font-weight:600; color:var(--navy-soft)}
nav ul>li>a{transition:.2s; white-space:nowrap}
nav ul a:hover{color:var(--gold)}
nav li.has{position:relative}
nav li.has>a:after{content:"⌄"; font-size:12px; margin-left:5px; opacity:.5}
.drop{position:absolute; top:calc(100% + 14px); left:50%; transform:translateX(-50%) translateY(8px);
  background:var(--surface); border:1px solid var(--line); border-radius:16px;
  padding:22px; min-width:250px; opacity:0; visibility:hidden; transition:.22s; box-shadow:var(--shadow-lg); z-index:60}
nav li.has:hover .drop{opacity:1; visibility:visible; transform:translateX(-50%) translateY(0)}
.drop:before{content:""; position:absolute; top:-14px; left:0; right:0; height:14px}
.drop.wide{min-width:540px; display:grid; grid-template-columns:1fr 1fr; gap:24px}
.drop h5{font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted-2); margin:0 0 12px; font-weight:500}
.drop a{display:block; padding:7px 0; color:var(--navy-soft); font-size:14.5px; font-weight:500}
.drop a:hover{color:var(--gold)}
.drop a.more{color:var(--gold); font-size:13px; font-weight:600}
.drop a.flag{color:var(--navy); font-weight:700}

.btn{display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:15px; padding:13px 24px; border-radius:999px; border:1.5px solid transparent; cursor:pointer; transition:.2s; font-family:'Manrope',sans-serif}
.btn-primary{background:var(--navy); color:#fff; border-color:var(--navy)}
.btn-primary:hover{background:var(--gold); border-color:var(--gold); color:var(--navy)}
.btn-ghost{border-color:var(--line); color:var(--navy); background:var(--surface)}
.btn-ghost:hover{border-color:var(--navy)}
.nav-cta{display:flex;align-items:center;gap:14px}
.burger{display:none;font-size:24px;background:none;border:0;color:var(--navy);cursor:pointer}

/* scroll progress */
#scrollProgress{position:fixed;top:0;left:0;height:3px;width:0;z-index:100;background:var(--gold);transition:width .1s linear}

/* announcement bar */
.announce{position:relative;z-index:60;background:var(--navy);color:#fff;text-align:center;font-size:13px;font-weight:500;padding:9px 16px}
.announce b{color:var(--gold-2)}
.announce a{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:3px}

/* HERO */
.hero{position:relative;padding:44px 0 52px;overflow:hidden}
.hero-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:0;opacity:.45;pointer-events:none}
.hero .wrap{position:relative;z-index:2}
.hero .pill{display:inline-flex;align-items:center;gap:8px;font-family:'JetBrains Mono',monospace;font-size:12.5px;font-weight:500;padding:9px 18px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--muted);margin-bottom:34px;letter-spacing:.04em}
.hero .pill .dot{width:8px;height:8px;border-radius:50%;background:var(--gold);animation:pulse 2s infinite}
@keyframes pulse{50%{opacity:.35}}
.hero-pills{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:26px}
.hero-pills .pill{margin-bottom:0}
.hero h1{font-size:clamp(46px,6.6vw,82px); font-weight:800; max-width:15ch; margin:0 0 26px; letter-spacing:-.028em; line-height:1.02}
/* optional centered variant (kept for inner pages that want it) */
.hero.center{text-align:center}
.hero.center h1,.hero.center .sub,.hero.center .hero-pills,.hero.center .hero-orbit,.hero.center .hero-cta{margin-left:auto;margin-right:auto;justify-content:center}
.hero.center h1{max-width:24ch}
.hero p.sub{font-size:clamp(18px,2.1vw,22px); color:var(--muted); max-width:60ch; margin:0 0 34px; line-height:1.6}
.rot-line{display:block;min-height:1.1em}
.rot{display:inline-block;transition:opacity .5s,transform .5s;color:var(--gold);font-weight:800;font-style:italic}
.rot.out{opacity:0;transform:translateY(12px)}
.hero-orbit{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 30px;max-width:660px}
.orbit-chip{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;padding:8px 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--navy-soft)}
.orbit-chip i{font-style:normal;font-size:15px}
.hero-cta{display:flex; gap:12px; flex-wrap:wrap; margin-bottom:0}
.hero-cta .btn{padding:15px 28px; font-size:16px}
/* dark terminal card sits nicely on cream */
.hero-term{max-width:560px;margin:32px 0 0;background:var(--navy);border:1px solid var(--navy);border-radius:16px;overflow:hidden;box-shadow:var(--shadow-lg)}
.hero.center .hero-term{margin-left:auto;margin-right:auto}
.hero-term .bar{display:flex;gap:6px;align-items:center;padding:11px 16px;border-bottom:1px solid rgba(255,255,255,.08);font-family:'JetBrains Mono',monospace;font-size:12px;color:#8595a8}
.hero-term .bar .d{width:10px;height:10px;border-radius:50%}
.hero-term .bar .d:nth-child(1){background:#ff5f57}.hero-term .bar .d:nth-child(2){background:#febc2e}.hero-term .bar .d:nth-child(3){background:#28c840}
.hero-term .body{padding:20px;font-family:'JetBrains Mono',monospace;font-size:14px;text-align:left;min-height:96px;color:#e6ebf1}
.hero-term .body .prompt{color:var(--gold-2)}
.hero-term .body .out{color:#e6ebf1;margin-top:12px;line-height:1.55}
.hero-term .body .out b{color:var(--gold-2)}
.hero-term .caret{display:inline-block;width:8px;background:var(--gold-2);animation:blink 1s step-end infinite;margin-left:2px}
@keyframes blink{50%{opacity:0}}
.hero-stats{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; max-width:760px; margin:40px 0 0}
.hero.center .hero-stats{margin-left:auto;margin-right:auto}
.stat{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:26px 22px}
.stat .num{font-family:'Bricolage Grotesque'; font-weight:700; font-size:clamp(30px,4vw,42px); color:var(--navy)}
.stat .lbl{font-size:13.5px; color:var(--muted); margin-top:6px}

/* two-column hero */
.hero-grid{display:grid;grid-template-columns:1.04fr .96fr;gap:48px;align-items:center}
.hero-copy{text-align:left}
.hero-grid .hero-pills{margin-bottom:20px}
.hero-grid h1{font-size:clamp(34px,4vw,52px);max-width:none;margin-bottom:20px;line-height:1.06}
.hero-grid .sub{margin-bottom:28px}
.hero-grid .hero-cta{margin-bottom:0}
.hero-side{display:flex;flex-direction:column;gap:14px}
.hero-side .hero-term{margin:0;max-width:none;width:100%}
.hero-side .hero-term .body{min-height:96px}
.hero-side .hero-stats{margin:0;grid-template-columns:repeat(3,1fr);gap:10px;max-width:none}
.hero-side .stat{padding:16px 12px}
.hero-side .stat .num{font-size:26px}
.hero-side .stat .lbl{font-size:11.5px;margin-top:2px}
@media(max-width:920px){
  .hero-grid{grid-template-columns:1fr;gap:26px}
  .hero-side{order:2}
  .hero-grid h1{font-size:clamp(31px,8vw,52px)}
}

/* MARQUEE */
.marquee-wrap{padding:32px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--surface)}
/* Full bleed on every page. On most pages the marquee is already a direct
   child of <main> and spans the viewport, but on pages built in Elementor it
   sits inside a boxed .elementor-container and gets clipped to ~1140px. This
   breaks it out regardless of what wraps it. Where nothing constrains it the
   margins compute to ~0, so those pages are unaffected. body already sets
   overflow-x:hidden, so the 100vw width cannot cause a horizontal scrollbar. */
.marquee-wrap{width:100vw; max-width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw)}
.marquee-label{text-align:center; font-family:'JetBrains Mono',monospace; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted-2); margin-bottom:24px}
.marquee{display:flex; gap:52px; width:max-content; animation:scroll 36s linear infinite}
.marquee-mask{overflow:hidden; mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}
.marquee span{font-family:'Bricolage Grotesque'; font-weight:600; font-size:21px; color:var(--navy-soft); white-space:nowrap; display:flex; align-items:center; gap:10px; opacity:.65}
.marquee span i{font-style:normal; font-size:22px}
@keyframes scroll{to{transform:translateX(-50%)}}

/* section head */
.head{max-width:860px; margin:0 auto 24px; text-align:center}
.head:last-child{margin-bottom:0}
.head h2{font-size:clamp(28px,4vw,42px); font-weight:600; margin:12px 0; letter-spacing:-.01em}
.head h2 .grad-text{color:var(--gold)}
.head p{color:var(--muted); font-size:17px}
.head .eyebrow{display:inline-flex;align-items:center;gap:10px}
.head .eyebrow:before,.head .eyebrow:after{content:"";width:22px;height:1px;background:var(--gold);opacity:.5}

/* reveal */
/* Scroll reveals are an enhancement, never a prerequisite for reading the page.
   .reveal is on essentially every section, so hiding it unconditionally meant a
   visitor with JavaScript off — or any failed script load — got a blank page.
   The hidden state is now scoped to .js, which the inline script in header.php
   sets before first paint, so without JS everything is simply visible. */
.js .reveal{opacity:0; transform:translateY(24px); transition:.7s cubic-bezier(.2,.7,.2,1)}
.js .reveal.in{opacity:1; transform:none}
@media (prefers-reduced-motion:reduce){
  .js .reveal{opacity:1; transform:none; transition:none}
}

/* mid CTA */
.mini-cta{text-align:center; margin-top:22px}
.mini-cta .line{display:block; color:var(--muted); font-size:15px; margin-bottom:16px}

/* alt-tone section */
.tone{background:var(--surface)}
.tone-navy{background:var(--navy)}
.tone-navy .head h2,.tone-navy h2,.tone-navy h3{color:#fff}
.tone-navy .head p,.tone-navy p{color:#aab6c4}
.tone-navy .eyebrow{color:var(--gold-2)}

/* cards / grids */
.steps,.cards{display:grid; grid-template-columns:repeat(3,1fr); gap:22px}
.step,.card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:32px 28px; transition:.25s}
.step:hover,.card:hover{box-shadow:var(--shadow-lg); transform:translateY(-3px)}
.step .n{font-family:'Bricolage Grotesque'; font-weight:700; font-size:15px; width:46px;height:46px; display:grid; place-items:center; border-radius:12px; background:var(--gold-wash); color:var(--gold); margin-bottom:20px}
.step h3,.card h3{font-size:20px; margin-bottom:10px; font-weight:600}
.step p,.card p{color:var(--muted); font-size:15px}
.card .ic{font-size:24px; width:52px;height:52px;display:grid;place-items:center;border-radius:12px;background:var(--surface-2);border:1px solid var(--line);margin-bottom:18px}

/* two-col shift/panel */
.shift{display:grid; grid-template-columns:1fr 1fr; gap:22px; align-items:stretch}
.panel{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:34px}
.panel.old{background:var(--surface-2)}
.panel h3{font-size:20px; margin-bottom:8px}
.panel .tag{font-family:'JetBrains Mono',monospace;font-size:11px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;padding:5px 12px;border-radius:999px;display:inline-block;margin-bottom:16px}
.tag.grey{background:var(--surface-2);color:var(--muted);border:1px solid var(--line)}
.tag.hot{background:var(--gold-wash);color:var(--gold)}
.panel ul{list-style:none; margin-top:16px; display:grid; gap:12px}
.panel li{display:flex; gap:12px; font-size:15px; color:var(--muted)}
.panel li b{color:var(--navy); font-weight:600}
.panel li:before{content:"→"; color:var(--gold); font-weight:700}

/* chat demo */
.chat{max-width:620px; margin:0 auto; background:var(--surface); border:1px solid var(--line); border-radius:20px; padding:26px; box-shadow:var(--shadow)}

/* The conversation section used to be a 620px chat card centred in a 1240px
   container, which left roughly 300px of dead space either side. Pairing it
   with the supporting copy fills the row and gives the closing question
   somewhere to live. */
.convo{align-items:start; gap:40px}
.convo .chat{max-width:none; margin:0}
.convo-side{padding-top:6px}
.convo-side h3{font-size:24px; font-weight:600; margin:0 0 10px; letter-spacing:-.01em}
.convo-side>p{color:var(--muted); font-size:16.5px; margin:0 0 20px}
.ticks{list-style:none; margin:0 0 26px; padding:0; display:grid; gap:12px}
.ticks li{position:relative; padding-left:28px; color:var(--navy-soft); font-size:15.5px}
.ticks li:before{content:"✓"; position:absolute; left:0; top:-1px; color:var(--gold); font-weight:700}

/* "AI does not rely on your website alone" was a heading and a paragraph with
   nothing beneath it — a thin band of text in a full-width section. These are
   the sources named in that paragraph, made concrete. */
.sources{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:8px}
.src{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:24px 22px; display:grid; gap:7px; align-content:start}
.src .si{font-size:22px; line-height:1; font-style:normal}
.src b{font-size:16.5px; font-weight:600}
.src span:last-child{color:var(--muted); font-size:14.5px; line-height:1.5}
.tone-navy .src{background:var(--navy-2); border-color:rgba(255,255,255,.08)}
.tone-navy .src span:last-child{color:#aab6c4}
@media (max-width:900px){
  .sources{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:620px){
  .sources{grid-template-columns:1fr}
}
.chat .top{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted);padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:18px}
.chat .top .g{width:10px;height:10px;border-radius:50%;background:var(--gold)}
.bubble{padding:14px 18px; border-radius:14px; margin-bottom:14px; font-size:15px; max-width:88%}
.bubble.user{background:var(--surface-2); margin-left:auto; border-bottom-right-radius:4px}
.bubble.ai{background:var(--navy); color:#e6ebf1; border-bottom-left-radius:4px}
.bubble .who{font-family:'JetBrains Mono',monospace;font-size:10.5px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;opacity:.6;margin-bottom:5px}
.bubble.ai .who{color:#8595a8}
.bubble mark{background:transparent;color:var(--gold-2);font-weight:600}

/* research stats */
.research{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.rstat{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:32px 26px}
.rstat .big{font-family:'Bricolage Grotesque'; font-weight:700; font-size:46px; color:var(--gold)}
.rstat p{color:var(--muted); font-size:14.5px; margin-top:6px}
.tone-navy .rstat{background:var(--navy-2);border-color:rgba(255,255,255,.08)}
.tone-navy .rstat p{color:#aab6c4}

/* validation quotes */
.quotes{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.quote{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:28px}
.quote .src{display:flex;align-items:center;gap:10px;font-weight:700;margin-bottom:14px;font-size:14px;color:var(--navy)}
.quote .src .av{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;background:var(--navy);color:var(--gold-2);font-size:15px}
.quote p{font-size:14.5px;color:var(--muted)}

/* testimonials */
.tgrid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.tcard{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:32px;box-shadow:var(--shadow)}
.tcard .stars{color:var(--gold);margin-bottom:14px;letter-spacing:3px}
.tcard blockquote{font-size:18px;line-height:1.6;margin-bottom:20px;color:var(--navy);font-weight:500}
.tcard .who{display:flex;align-items:center;gap:12px}
.tcard .who .av{width:44px;height:44px;border-radius:50%;background:var(--navy);display:grid;place-items:center;color:var(--gold-2);font-weight:700}
.tcard .who b{display:block;font-size:15px;color:var(--navy)}
.tcard .who span{font-size:13px;color:var(--muted)}
.tcard .result{margin-top:18px;padding-top:16px;border-top:1px solid var(--line);font-size:13px;color:var(--gold);font-weight:700}

/* five signal model */
.model{display:grid;gap:14px;max-width:860px;margin-left:auto;margin-right:auto}
.layer{display:grid;grid-template-columns:64px 1fr;gap:22px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:26px 30px;transition:.25s}
.layer:hover{box-shadow:var(--shadow);transform:translateX(5px)}
.layer .num{font-family:'Bricolage Grotesque';font-weight:700;font-size:34px;color:var(--gold)}
.layer h3{font-size:19px;margin-bottom:4px}
.layer p{color:var(--muted);font-size:14.5px}

/* who we help */
.help{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.help h3{font-family:'JetBrains Mono',monospace;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:18px;font-weight:500}
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip{padding:10px 18px;border-radius:999px;border:1px solid var(--line);font-size:14px;color:var(--navy-soft);background:var(--surface);transition:.2s;font-weight:500}
.chip:hover{border-color:var(--gold);color:var(--gold)}

/* FAQ */
.faq{max-width:860px;margin:0 auto;display:grid;gap:12px}
.q{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.q summary{list-style:none;cursor:pointer;padding:22px 26px;font-family:'Bricolage Grotesque';font-weight:600;font-size:17px;color:var(--navy);display:flex;justify-content:space-between;align-items:center;gap:16px}
.q summary::-webkit-details-marker{display:none}
.q summary:after{content:"+";font-size:24px;color:var(--gold);transition:.3s}
.q[open] summary:after{transform:rotate(45deg)}
.q .a{padding:0 26px 24px;color:var(--muted);font-size:15px}

/* final CTA (navy band) */
.final{text-align:center}
.final .box{background:var(--navy);border-radius:26px;padding:52px 40px}
.final .box .eyebrow{color:var(--gold-2)}
.final h2{font-size:clamp(30px,5vw,52px);font-weight:600;max-width:17ch;margin:14px auto 18px;color:#fff}
.final p{color:#aab6c4;font-size:18px;max-width:54ch;margin:0 auto 34px}
.final .btn-primary{background:var(--gold);border-color:var(--gold);color:var(--navy)}
.final .btn-primary:hover{background:#fff;border-color:#fff}

/* generic content (About/service prose) */
.page-content{max-width:860px;margin:0 auto}
.page-content h2{font-size:28px;margin:1.4em 0 .5em}
.page-content h3{font-size:20px;margin:1.2em 0 .4em}
.page-content p{color:var(--muted);margin-bottom:1.1em;font-size:16.5px}
.page-content ul{margin:0 0 1.2em 1.1em;color:var(--muted)}
.page-content li{margin-bottom:.5em}
.page-content a{color:var(--gold);font-weight:600}
.lead{font-size:20px;color:var(--navy);font-weight:500;line-height:1.55}

/* prose two-column feature rows (service pages) */
.frow{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;margin:0 auto}
.frow.rev .fmedia{order:2}
.fmedia{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:32px;box-shadow:var(--shadow)}
.fmedia ul{list-style:none;display:grid;gap:14px}
.fmedia li{display:flex;gap:12px;color:var(--navy-soft);font-size:15px}
.fmedia li:before{content:"✓";color:var(--gold);font-weight:800}

/* footer */
.site-footer{border-top:1px solid var(--line);padding:72px 0 40px;background:var(--surface)}
.fgrid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:40px;margin-bottom:50px}
.site-footer h4{font-family:'JetBrains Mono',monospace;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:18px;font-weight:500}
.site-footer ul{list-style:none;display:grid;gap:11px}
.site-footer a{color:var(--navy-soft);font-size:14px;font-weight:500}
.site-footer a:hover{color:var(--gold)}
.fbrand p{color:var(--muted);font-size:14.5px;margin:16px 0;max-width:34ch}
.fcloud{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;padding:22px 0;border-top:1px solid var(--line);margin-bottom:8px}
.fcloud-h{font-family:'JetBrains Mono',monospace;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted-2)}
.fcloud a{color:var(--muted);font-size:13px}
.fcloud a:hover{color:var(--gold)}
.fbot{border-top:1px solid var(--line);padding-top:26px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:14px;font-size:13px;color:var(--muted-2)}

/* wizard */
.wiz-overlay{position:fixed;inset:0;z-index:200;background:rgba(11,26,45,.5);backdrop-filter:blur(6px);display:none;align-items:center;justify-content:center;padding:20px}
.wiz-overlay.open{display:flex}
.wiz{width:100%;max-width:512px;background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow-lg);animation:wizIn .4s cubic-bezier(.2,.8,.2,1)}
@keyframes wizIn{from{opacity:0;transform:translateY(24px) scale(.97)}to{opacity:1;transform:none}}
.wiz-top{padding:15px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}
.wiz-top .brand{font-size:15px}
.wiz-top .bee{width:30px;height:30px;font-size:15px}
.wiz-close{width:34px;height:34px;border-radius:50%;background:var(--surface-2);border:1px solid var(--line);color:var(--navy);font-size:16px;cursor:pointer;line-height:1;display:grid;place-items:center;transition:.2s;flex:0 0 auto}
.wiz-close:hover{background:var(--gold);color:#fff;border-color:var(--gold);transform:rotate(90deg)}
.wiz-bar{height:3px;background:var(--surface-2)}
.wiz-bar span{display:block;height:100%;width:20%;background:var(--gold);transition:width .4s}
.wiz-body{padding:20px 22px 18px}
.wiz-step{display:none}
.wiz-step.on{display:block;animation:wizIn .35s ease}
.wiz-body h3{font-size:18px;margin-bottom:3px}
.wiz-body .hint{color:var(--muted);font-size:13px;margin-bottom:14px}
.wiz-opts{display:grid;gap:7px}
.opt{display:flex;align-items:center;gap:11px;padding:10px 13px;border:1px solid var(--line);border-radius:10px;cursor:pointer;transition:.18s;font-size:13.5px;line-height:1.3;background:var(--surface);color:var(--navy)}
.opt:hover{border-color:var(--gold)}
.opt.sel{border-color:var(--gold);background:var(--gold-wash)}
.opt .em{font-size:17px;flex:0 0 auto}
.opt small{display:block;color:var(--muted);font-size:11.5px;margin-top:1px;font-weight:400;line-height:1.25}
.opt b{font-weight:700;font-size:13.5px}
.wiz-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.wiz input,.wiz select{width:100%;padding:11px 13px;background:var(--surface);border:1px solid var(--line);border-radius:10px;color:var(--navy);font-size:14px;font-family:inherit;margin-bottom:9px}
.wiz input:focus,.wiz select:focus{outline:none;border-color:var(--gold)}
.wiz-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px}
.wiz-back{background:none;border:0;color:var(--muted);font-size:14px;cursor:pointer;padding:8px 4px;font-weight:600}
.wiz-back:hover{color:var(--navy)}
.wiz-next{margin-left:auto}
.wiz-human{text-align:center;font-size:12px;color:var(--muted-2);padding:10px 0 2px}
.wiz-human a{color:var(--gold);font-weight:600}
.wiz-done{text-align:center;padding:14px 0}
.wiz-done .tick{width:64px;height:64px;border-radius:50%;background:var(--gold);display:grid;place-items:center;margin:0 auto 18px;font-size:30px;color:#fff}

/* dividers */
.gdiv{height:1px;background:var(--line);max-width:var(--maxw);margin:0 auto}

/* mobile drawer */
.drawer{position:fixed;inset:0;z-index:150;background:var(--bg);display:flex;flex-direction:column;padding:26px 24px;transform:translateX(100%);transition:.35s cubic-bezier(.2,.8,.2,1);overflow-y:auto}
.drawer.open{transform:none}
.drawer .dtop{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}
.drawer .dclose{background:none;border:0;color:var(--navy);font-size:26px;cursor:pointer}
.drawer a.dlink{display:block;padding:15px 0;font-family:'Bricolage Grotesque';font-size:22px;font-weight:600;border-bottom:1px solid var(--line);color:var(--navy)}
.drawer a.dlink:hover{color:var(--gold)}
.drawer .btn{margin-top:26px;justify-content:center;padding:16px}

@media(max-width:920px){
  nav ul,.nav-cta .btn-ghost,.nav-cta .btn-primary{display:none}
  .burger{display:block}
  .steps,.shift,.research,.cards,.quotes,.tgrid,.help,.fgrid,.frow{grid-template-columns:1fr}
  .frow.rev .fmedia{order:0}
  .hero-stats{grid-template-columns:1fr;max-width:360px}
  .nav{height:64px}
  .announce{font-size:12px}
  .hero{padding:64px 0 72px}
  .hero h1{font-size:clamp(31px,8.4vw,60px);max-width:100%}
  .rot-line{min-height:2.3em}
  section{padding:68px 0}
  .layer{grid-template-columns:46px 1fr;gap:16px}
  .frow{gap:28px}
}
@media(max-width:600px){
  .wrap{padding:0 18px}
  section{padding:56px 0}
  .head{margin-bottom:40px}
  .head h2{font-size:clamp(24px,7vw,34px)}
  .hero h1{font-size:clamp(28px,8.8vw,50px)}
  .rot-line{min-height:2.5em}
  .hero-cta{flex-direction:column}
  .hero-cta .btn,.mini-cta .btn,.final .btn{width:100%;justify-content:center}
  .step,.card,.panel,.tcard,.quote,.rstat,.fmedia{padding:24px}
  .final .box{padding:48px 22px}
  .fbot{flex-direction:column;gap:6px;text-align:left}
}
@media(max-width:400px){ .brand{font-size:18px} .hero h1{font-size:27px} }

/* ============================================================
   DARK MODE — deep blue + gold, light orbs, prominent grid
   Toggled by .dark on <html>
   ============================================================ */
html.dark{
  --bg:#070E1A; --surface:#0E1A2E; --surface-2:#13253E;
  --line:rgba(255,255,255,.10); --line-2:rgba(255,255,255,.06);
  --text:#DCE6F2; --muted:#9FB0C6; --muted-2:#6E7F97;
  /* remap navy INK -> light in dark mode (it's used as text colour in ~15 places) */
  --navy:#EAF1FA; --navy-soft:#C7D6EA;
  --gold:#E6B54B; --gold-2:#F4CB63; --gold-wash:rgba(230,181,75,.14);
  --shadow:0 1px 2px rgba(0,0,0,.3),0 14px 34px rgba(0,0,0,.45);
  --shadow-lg:0 30px 70px rgba(0,0,0,.55);
}
/* protect the few spots that use navy as a BACKGROUND (must stay dark) */
.dark .hero-term{background:#0B1524}
.dark .quote .src .av,.dark .tcard .who .av{background:var(--gold);color:#08111F}
.dark .final .btn-primary{color:#08111F}
.dark .btn-ghost{color:#EAF1FA}
.dark .lead{color:#EAF1FA}
.dark h1,.dark h2,.dark h3,.dark h4,.dark .brand,.dark .grad-text{color:#EAF1FA}
.dark .grad-text,.dark .head h2 .grad-text{color:var(--gold-2)}
.dark nav ul{color:#C7D6EA}
.dark nav ul a:hover,.dark .drop a:hover{color:var(--gold-2)}
.dark .drop{background:#0C1728}
.dark .drop a{color:#C7D6EA}
.dark .site-header{background:rgba(7,14,26,.82)}
.dark .site-header.scrolled{background:rgba(7,14,26,.95)}
.dark .btn-primary{background:var(--gold);border-color:var(--gold);color:#08111F}
.dark .btn-primary:hover{background:#fff;border-color:#fff;color:#08111F}
.dark .btn-ghost{color:#EAF1FA;background:transparent;border-color:var(--line)}
.dark .btn-ghost:hover{border-color:var(--gold-2);color:var(--gold-2)}
.dark .bee{background:var(--gold);color:#08111F}
.dark .brand .ai{color:var(--gold-2)}
.dark .announce{background:#04091361;background:#050B14;border-bottom:1px solid var(--line)}
.dark .announce a{color:var(--gold-2)}
.dark .pill,.dark .orbit-chip,.dark .chip{background:rgba(255,255,255,.03);color:#C7D6EA}
.dark .chip:hover{color:var(--gold-2);border-color:var(--gold-2)}
.dark .stat .num,.dark .rstat .big,.dark .layer .num{color:var(--gold-2)}
.dark .step .n{background:var(--gold-wash);color:var(--gold-2)}
.dark .card .ic{background:var(--surface-2)}
.dark .tone{background:#0A1526}
.dark .tone-navy{background:#04090F}
.dark .panel.old{background:#0A1526}
.dark .bubble.user{background:#13253E}
.dark .bubble.ai{background:#08111F;border:1px solid var(--line)}
.dark .tcard blockquote,.dark .quote .src{color:#EAF1FA}
.dark .tcard .who b,.dark .layer h3,.dark .step h3,.dark .card h3,.dark .q summary{color:#EAF1FA}
.dark .hero-term{border-color:var(--line)}
.dark .final .box{background:linear-gradient(135deg,#0E1A2E,#0A1526);border:1px solid var(--line)}
.dark .final h2{color:#fff}
.dark .wiz{background:var(--surface)}
.dark .opt{background:var(--surface-2)}
.dark .wiz-close{background:var(--surface-2)}

/* prominent grid in the dark */
.dark .grid-overlay{
  background-image:linear-gradient(rgba(130,165,210,.11) 1px,transparent 1px),linear-gradient(90deg,rgba(130,165,210,.11) 1px,transparent 1px);
  background-size:54px 54px;
  -webkit-mask-image:radial-gradient(ellipse 130% 100% at 50% 12%,#000 60%,transparent 96%);
  mask-image:radial-gradient(ellipse 130% 100% at 50% 12%,#000 60%,transparent 96%)}

/* moving light orbs */
.dark .mesh{display:block;position:fixed;inset:0;z-index:-2;overflow:hidden;pointer-events:none}
.dark .blob{position:absolute;border-radius:50%;filter:blur(80px);animation:orb 26s ease-in-out infinite}
.dark .blob.a{width:480px;height:480px;background:#1E5B9E;opacity:.42;top:-130px;left:-110px}
.dark .blob.b{width:420px;height:420px;background:var(--gold);opacity:.20;top:38%;right:-150px;animation-delay:-9s}
.dark .blob.c{width:400px;height:400px;background:#2A7BD4;opacity:.30;bottom:-150px;left:34%;animation-delay:-15s}
@keyframes orb{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(64px,-52px) scale(1.16)}}

/* theme toggle button — icon only */
.theme-toggle{width:40px;height:40px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--navy);font-size:16px;cursor:pointer;display:grid;place-items:center;transition:.2s;flex:0 0 auto;line-height:1}
.theme-toggle:hover{border-color:var(--gold);transform:translateY(-1px)}
.dark .theme-toggle{color:var(--gold-2);background:var(--surface)}
