/* Satoshi — self-hosted (Fontshare, ITF Free Font License). Primary typeface. */
@font-face { font-family: 'Satoshi'; src: url('fonts/satoshi-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('fonts/satoshi-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('fonts/satoshi-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('fonts/satoshi-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('fonts/satoshi-900.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
:root {
  /* Corporate palette — white canvas, charcoal ink, cobalt brand accent */
  --bg:          #ffffff;
  --bg-soft:     #f5f7fa;
  --bg-panel:    #fbfcfe;
  --card:        #ffffff;
  --fg:          #0e1422;
  --fg-80:       #2b3242;
  --fg-65:       #4a5365;
  --fg-55:       #5b6678;
  --fg-45:       #677085;
  --fg-30:       #aab2c2;
  --line:        #e4e8ef;
  --line-soft:   #eef1f6;
  --cobalt:      #1f4fd6;
  --cobalt-deep: #173cab;
  --cobalt-lite: #3b6cff;
  --cobalt-tint: #eef3ff;
  --error:       #d6313f;
  --accent-grad: linear-gradient(135deg, #1f4fd6 0%, #3b6cff 100%);
  --shadow-sm:   0 1px 2px rgba(14,20,34,0.04), 0 2px 8px rgba(14,20,34,0.05);
  --shadow-md:   0 4px 12px rgba(14,20,34,0.06), 0 12px 32px rgba(14,20,34,0.08);
  --shadow-lg:   0 20px 60px rgba(14,20,34,0.14);
  --mono:        'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --display:     'Satoshi', 'Space Grotesk', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Satoshi', sans-serif; background: var(--bg); color: var(--fg); min-height: 100vh; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(31,79,214,0.16); color: var(--cobalt-deep); }
/* Skip link: hidden until keyboard-focused (WCAG 2.4.1 Bypass Blocks) */
.skip-link { position: absolute; left: 12px; top: -70px; z-index: 1000; background: var(--cobalt); color: #fff; padding: 10px 18px; border-radius: 8px; font-family: var(--display); font-weight: 600; font-size: 0.85rem; text-decoration: none; transition: top 0.2s; }
.skip-link:focus { top: 12px; }
#main:focus { outline: none; }

.page { position: relative; z-index: 3; }
/* Full-bleed bands; content stays readable inside .container */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: clamp(1.25rem, 5vw, 4rem); padding-right: clamp(1.25rem, 5vw, 4rem); }
.section { padding: 4.25rem 0; }
.section--tint { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ===== Hero — dark "space" band on the white corporate site ===== */
.hero { position: relative; overflow: hidden; padding: 5rem 0 5.5rem; background: radial-gradient(ellipse 120% 95% at 50% -15%, #0c1736 0%, #060a16 55%, #04060c 100%); border-bottom: 1px solid rgba(110,150,255,0.16); }
.hero > .container { position: relative; z-index: 2; }
.hero #bgCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* Blueprint grid */
.hero::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(110,150,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(110,150,255,0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 35%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 95% 85% at 50% 35%, #000 30%, transparent 100%); }
/* Glow blobs */
.hero::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(440px 440px at 88% 6%, rgba(31,79,214,0.30), transparent 70%), radial-gradient(380px 380px at 6% 95%, rgba(56,225,255,0.12), transparent 70%); }
/* Orbiting rings */
.hero-rings { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-rings .r { position: absolute; top: 50%; left: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.hero-rings .r1 { width: 700px; height: 700px; border: 1px solid rgba(110,150,255,0.08); }
.hero-rings .r2 { width: 470px; height: 470px; border: 1px dashed rgba(59,108,255,0.20); animation: rot 60s linear infinite; }
.hero-rings .r2::before { content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #38e1ff; top: -4.5px; left: 50%; transform: translateX(-50%); box-shadow: 0 0 16px rgba(56,225,255,0.9), 0 0 40px rgba(56,225,255,0.5); }
@keyframes rot { to { transform: translate(-50%, -50%) rotate(360deg); } }
/* Hero text on the dark backdrop */
.hero .eyebrow { color: #7fe9ff; text-shadow: 0 0 14px rgba(56,225,255,0.45); }
.hero .eyebrow::before { background: #38e1ff; box-shadow: 0 0 8px rgba(56,225,255,0.85); }
.hero h1 { color: #eaf1ff; }
.hero .mission { color: rgba(233,238,251,0.74); }
.hero .stats { background: rgba(120,150,255,0.05); border-color: rgba(110,150,255,0.20); }
.hero .stat { border-right-color: rgba(110,150,255,0.14); }
.hero .stat-num { color: #8fb0ff; }
.hero .stat-label { color: rgba(233,238,251,0.5); }

/* ===== Nav ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--line); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s; }
.site-header.nav-hidden { transform: translateY(-101%); }
.site-header.nav-stuck { box-shadow: 0 4px 18px rgba(14,20,34,0.06); }
nav { display: flex; justify-content: space-between; align-items: center; padding-top: 1.05rem; padding-bottom: 1.05rem; flex-wrap: wrap; gap: 1rem; }
.logo-block { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-mark { height: 46px; width: auto; border-radius: 8px; display: block; object-fit: contain; background: #fff; padding: 4px 8px; box-shadow: inset 0 0 0 1px var(--line); }
.logo-txt { display: flex; flex-direction: column; gap: 2px; }
.logo-name { font-family: var(--display); font-size: 0.92rem; font-weight: 700; letter-spacing: -0.2px; color: var(--fg); }
.logo-sub { font-size: 0.62rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--fg-45); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-status { display: flex; align-items: center; gap: 8px; font-size: 0.66rem; letter-spacing: 1.5px; color: var(--fg-65); text-transform: uppercase; font-weight: 600; }
.nav-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #1fb877; box-shadow: 0 0 0 3px rgba(31,184,119,0.16); }
.logo-txt .nav-status { margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-tab { position: relative; text-decoration: none; font-family: var(--display); font-size: 0.86rem; font-weight: 600; letter-spacing: -0.1px; color: var(--fg-65); padding: 4px 1px; transition: color 0.2s; }
.nav-tab:hover { color: var(--cobalt); }
.nav-tab[aria-current="page"] { color: var(--fg); }
.nav-tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--cobalt); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.nav-tab:hover::after, .nav-tab[aria-current="page"]::after { transform: scaleX(1); }
/* Narrow screens: tighten the tabs so they still fit. */
@media (max-width: 560px) {
  .nav-links { gap: 1.35rem; }
  .nav-tab { font-size: 0.82rem; }
}

/* ===== Hero ===== */
.eyebrow { font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; color: var(--cobalt); font-weight: 700; margin-bottom: 1.5rem; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--cobalt); display: inline-block; border-radius: 2px; }
h1 { font-family: var(--display); font-size: clamp(2.9rem, 7.5vw, 5rem); font-weight: 700; line-height: 1.02; color: var(--fg); margin-bottom: 1.6rem; letter-spacing: -2.5px; }
h1 .em { color: var(--cobalt); font-weight: 700; font-style: normal; }
.hero h1 .em { color: transparent; background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 18px rgba(59,108,255,0.55)); }
.em-race { display: inline-block; animation: race-in 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both, zero-g 6s ease-in-out 1s infinite; }
@keyframes race-in {
  0%   { transform: translateX(-130%); opacity: 0; }
  55%  { transform: translateX(5%);    opacity: 1; }
  78%  { transform: translateX(-2%); }
  100% { transform: translateX(0); }
}
/* Continuous zero-gravity drift after the slide-in settles */
@keyframes zero-g {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1, 1); }
  25%  { transform: translate(7px, -5px) rotate(1.3deg) scale(1.025, 0.975); }
  50%  { transform: translate(-6px, 4px) rotate(-1deg) scale(0.98, 1.02); }
  75%  { transform: translate(8px, 4px) rotate(0.9deg) scale(1.025, 0.975); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1, 1); }
}
.mission { font-size: 1.16rem; color: var(--fg-55); line-height: 1.7; max-width: 560px; margin-bottom: 3.25rem; font-weight: 400; }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); overflow: hidden; }
.stat { padding: 1.85rem 1rem; border-right: 1px solid var(--line); text-align: center; position: relative; }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--display); font-size: 2.4rem; font-weight: 700; line-height: 1; letter-spacing: -1px; color: var(--cobalt); }
.stat-label { font-size: 0.6rem; color: var(--fg-45); letter-spacing: 2px; text-transform: uppercase; margin-top: 10px; font-weight: 600; }

/* ===== Section headings ===== */
.section-head { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -1.5px; line-height: 1.05; color: var(--fg); margin-bottom: 0.9rem; }
.section-sub { font-size: 1.05rem; color: var(--fg-55); line-height: 1.7; max-width: 560px; margin-bottom: 2.5rem; }

/* ===== Services ===== */
.svc-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-bottom: 0; }
.svc { display: flex; flex-direction: column; align-items: stretch; gap: 1.25rem; padding: 1.75rem 1rem 1.75rem 0; border-bottom: 1px solid var(--line); position: relative; }
.svc-head { display: flex; align-items: center; justify-content: space-between; transition: padding 0.25s; }
.svc-head:hover { padding-left: 14px; }
.svc-left { display: flex; align-items: flex-start; gap: 22px; }
.svc-num { font-family: var(--mono); font-size: 0.8rem; width: 30px; font-weight: 600; color: var(--cobalt); padding-top: 4px; }
.svc-info h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--fg); margin-bottom: 4px; letter-spacing: -0.4px; }
.svc-info p { font-size: 0.88rem; color: var(--fg-45); font-weight: 500; }
.svc-info .svc-detail { font-size: 0.95rem; color: var(--fg-55); line-height: 1.6; margin-top: 8px; max-width: 580px; font-weight: 400; }
.svc-arrow { color: var(--fg-30); font-size: 1.2rem; transition: transform 0.3s, color 0.3s; }
.svc-head:hover .svc-arrow { transform: translate(3px, -3px); color: var(--cobalt); }
/* Feature checklist (home automation card + services page) */
.svc-feats { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.svc-feats li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--fg-55); line-height: 1.5; }
.svc-feats li::before { content: '\2713'; position: absolute; left: 0; top: 1px; color: var(--cobalt); font-weight: 700; font-size: 0.85rem; }
.svc .svc-feats { margin: 0.2rem 0 0.3rem 52px; }
.ad-showcase .svc-feats { grid-template-columns: 1fr; margin: 0; }
/* "See full service details" link under the home services list */
.svc-more { margin-top: 1.85rem; }
.svc-more-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 0.92rem; color: var(--cobalt); text-decoration: none; transition: gap 0.2s; }
.svc-more-link:hover { gap: 14px; }
/* ===== Services page ===== */
.svc-detail-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1rem; }
.svc-block { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); padding: 2rem 2rem 1.75rem; }
.svc-block-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 1rem; }
.svc-block-num { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; color: var(--cobalt); }
.svc-block-head h2 { font-family: var(--display); font-size: clamp(1.4rem, 3.5vw, 1.9rem); font-weight: 700; letter-spacing: -0.6px; color: var(--fg); margin-bottom: 4px; }
.svc-block-tag { font-size: 0.82rem; color: var(--fg-45); font-weight: 500; letter-spacing: 0.2px; }
.svc-block-desc { font-size: 1rem; color: var(--fg-55); line-height: 1.7; max-width: 640px; margin-bottom: 1.35rem; }
.svc-block .svc-feats { margin-bottom: 1.5rem; }
.svc-price { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; color: var(--fg-45); border-top: 1px solid var(--line); padding-top: 1.1rem; }
.svc-price span { font-family: var(--mono); letter-spacing: 1px; color: var(--cobalt); background: rgba(31,79,214,0.08); padding: 3px 10px; border-radius: 6px; }
.svc-pricing-note { font-size: 0.95rem; color: var(--fg-55); line-height: 1.7; max-width: 620px; margin: 1.85rem auto 0; text-align: center; }
/* ===== FAQ accordion ===== */
.faq-list { border-top: 1px solid var(--line); margin-top: 1rem; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0.25rem; font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.3px; color: var(--fg); transition: color 0.2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cobalt); }
.faq summary::after { content: '+'; font-family: var(--mono); font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--cobalt); flex-shrink: 0; transition: transform 0.25s; }
.faq[open] summary::after { content: '\2212'; }
.faq-answer { padding: 0 0.25rem 1.6rem; font-size: 1rem; color: var(--fg-55); line-height: 1.7; max-width: 680px; }
/* ===== About page ===== */
.about-grid { display: grid; grid-template-columns: 360px 1fr; gap: 3rem; align-items: start; margin-top: 0.5rem; }
.about-portrait img { width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; border: 1px solid var(--line); display: block; object-fit: cover; object-position: center 20%; }
.about-name { font-family: var(--display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -1px; color: var(--fg); margin-bottom: 0.5rem; min-height: 1em; }
.about-role { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--cobalt); font-weight: 600; margin-bottom: 1.5rem; min-height: 1em; }
.about-text p { font-size: 1.05rem; color: var(--fg-55); line-height: 1.8; margin-bottom: 1.2rem; max-width: 620px; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } .about-portrait { max-width: 300px; } }
/* Service reel — a clickable left-to-right marquee of work under a service */
.marquee { position: relative; overflow: hidden; width: 100%; padding: 4px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee-ltr 28s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track--static { animation: none; }
@keyframes marquee-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.reel-card { flex: 0 0 auto; width: 188px; display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.reel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--cobalt); }
.reel-thumb { display: block; aspect-ratio: 16 / 10; background-size: cover; background-position: top center; background-color: #eef1f6; }
.reel-meta { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px 11px; }
.reel-name { font-family: var(--display); font-weight: 700; font-size: 0.78rem; color: var(--fg); letter-spacing: -0.2px; line-height: 1.2; }
.reel-url { font-size: 0.62rem; color: var(--cobalt); font-weight: 600; letter-spacing: 0.2px; }
/* Targeted Ads showcase — results image on the left, copy + metrics on the right */
.ad-showcase { display: grid; grid-template-columns: minmax(0, 0.95fr) 1fr; gap: 1.85rem; align-items: center; }
.ad-shot { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.ad-shot img { display: block; width: 100%; height: auto; }
.ad-lead { font-size: 0.98rem; color: var(--fg-55); line-height: 1.65; margin-bottom: 1.1rem; }
.ad-period { font-size: 0.62rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fg-45); font-weight: 700; margin-bottom: 0.95rem; }
.ad-metrics { display: flex; flex-wrap: wrap; gap: 1.05rem 1.7rem; margin-bottom: 1.2rem; }
.ad-metric { display: flex; flex-direction: column; gap: 4px; }
.am-num { font-family: var(--display); font-size: 1.4rem; font-weight: 700; color: var(--cobalt); line-height: 1; letter-spacing: -0.5px; }
.am-label { font-size: 0.58rem; letter-spacing: 1px; text-transform: uppercase; color: var(--fg-45); font-weight: 600; }
.ad-note { font-size: 0.72rem; color: var(--fg-45); line-height: 1.55; font-weight: 500; padding-top: 0.95rem; border-top: 1px solid var(--line); }

/* ===== Color zone (brand palette picker) ===== */
.color-zone { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 2.25rem; margin-bottom: 2rem; position: relative; }
.cz-tag { display: inline-block; font-size: 0.6rem; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 1rem; padding: 5px 13px; border-radius: 100px; background: var(--cobalt-tint); color: var(--cobalt-deep); font-weight: 700; }
.cz-q { font-family: var(--display); font-size: 1.55rem; font-weight: 700; color: var(--fg); margin-bottom: 8px; letter-spacing: -0.5px; }
.cz-sub { font-size: 0.95rem; color: var(--fg-55); margin-bottom: 1.75rem; font-weight: 400; line-height: 1.6; }
.slot-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.slot { width: 54px; height: 54px; border-radius: 50%; border: 2px dashed var(--line); cursor: pointer; transition: all 0.2s; position: relative; display: flex; align-items: center; justify-content: center; background: #fff; }
.slot.filled { border-style: solid; border-color: rgba(14,20,34,0.12); box-shadow: var(--shadow-sm); }
.slot .x { display: none; position: absolute; font-size: 16px; color: #fff; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,0.55); }
.slot.filled:hover .x, .slot.filled:focus-visible .x { display: block; }
.wheel-btn { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--fg); background: #fff; border: 1px solid var(--line); padding: 13px 22px; cursor: pointer; border-radius: 8px; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.wheel-btn:hover { border-color: var(--cobalt); color: var(--cobalt); box-shadow: var(--shadow-sm); }
.pal-display { display: flex; gap: 6px; height: 10px; border-radius: 100px; overflow: hidden; margin-top: 1.5rem; }
.pal-seg { flex: 1; border-radius: 100px; background: #e7eaf0; transition: background 0.4s; }
.hint { font-size: 0.74rem; color: var(--fg-45); margin-top: 14px; letter-spacing: 0.3px; font-weight: 500; }

/* ===== Buttons / CTA ===== */
.cta { display: inline-flex; align-items: center; gap: 12px; background: var(--cobalt); color: #fff; font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase; padding: 17px 36px; border: none; cursor: pointer; font-weight: 700; border-radius: 10px; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; text-decoration: none; font-family: var(--display); box-shadow: var(--shadow-sm); }
.cta:hover:not(:disabled) { background: var(--cobalt-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cta:disabled { background: #c7cdda; color: #fff; cursor: not-allowed; box-shadow: none; }
.cta span { display: inline-flex; align-items: center; gap: 12px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 2.25rem; padding-bottom: 2.5rem; }
.footer-logo { font-size: 0.68rem; letter-spacing: 2px; color: var(--fg-45); text-transform: uppercase; font-weight: 600; }
.footer-copy { font-size: 0.72rem; color: var(--fg-45); font-weight: 500; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.72rem; color: var(--fg-55); text-decoration: none; letter-spacing: 0.3px; transition: color 0.2s; }
.footer-links a:hover { color: var(--cobalt); }
/* ===== Legal pages (privacy / terms / cookies) ===== */
.legal-updated { font-size: 0.8rem; color: var(--fg-45); letter-spacing: 0.3px; margin-top: 0.5rem; }
.legal { max-width: 760px; margin-top: 0.5rem; }
.legal h2 { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.4px; color: var(--fg); margin: 2.2rem 0 0.7rem; }
.legal h3 { font-family: var(--display); font-size: 1.02rem; font-weight: 700; color: var(--fg); margin: 1.4rem 0 0.4rem; }
.legal p { font-size: 1rem; color: var(--fg-55); line-height: 1.75; margin-bottom: 1rem; }
.legal ul { margin: 0 0 1rem 1.25rem; }
.legal li { font-size: 1rem; color: var(--fg-55); line-height: 1.7; margin-bottom: 0.5rem; padding-left: 0.3rem; }
.legal a { color: var(--cobalt); text-decoration: underline; }
.legal strong { color: var(--fg-80); font-weight: 600; }

/* ===== Work / portfolio page ===== */
.work-head { margin-bottom: 3rem; }
.work-head h1 { margin-bottom: 1rem; }
.work-intro { font-size: 1.16rem; color: var(--fg-55); line-height: 1.7; max-width: 580px; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.proj { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform 0.28s, box-shadow 0.28s, border-color 0.28s; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.proj.hide { display: none; }
.proj:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.proj-thumb { aspect-ratio: 16 / 10; position: relative; background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 55%, var(--c3) 100%); display: flex; align-items: flex-end; padding: 14px; }
.proj-thumb--shot { background-size: cover; background-position: top center; }
.proj-thumb--shot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,20,34,0.45), transparent 55%); }
.proj-cat { position: relative; z-index: 1; font-size: 0.56rem; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; background: rgba(14,20,34,0.55); padding: 5px 11px; border-radius: 100px; font-weight: 600; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.proj-pal { position: absolute; top: 14px; right: 14px; z-index: 1; display: flex; gap: 5px; }
.proj-pal span { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.85); }
.proj-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.proj-body h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.4px; color: var(--fg); }
.proj-body p { font-size: 0.9rem; color: var(--fg-55); line-height: 1.6; flex: 1; font-weight: 400; }
.proj-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; padding-top: 0.95rem; border-top: 1px solid var(--line-soft); }
.proj-year { font-size: 0.66rem; color: var(--fg-45); letter-spacing: 0.5px; font-weight: 500; }
.proj-result { font-size: 0.68rem; font-weight: 700; color: var(--cobalt); letter-spacing: 0.5px; text-transform: uppercase; }
.work-cta { margin-top: 4rem; text-align: center; padding: 3.25rem 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); position: relative; overflow: hidden; }
.work-cta h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -1px; margin-bottom: 0.7rem; color: var(--fg); }
.work-cta p { color: var(--fg-55); margin: 0 auto 1.75rem; max-width: 460px; line-height: 1.65; }

/* ===== Modals (color wheel + intake form) ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(14,20,34,0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 500; align-items: center; justify-content: center; padding: 1.5rem; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.85rem; width: 100%; max-width: 360px; position: relative; box-shadow: var(--shadow-lg); }
.modal-title { font-size: 0.7rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--cobalt); margin-bottom: 1.25rem; font-weight: 700; }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--fg-45); cursor: pointer; font-size: 1.4rem; line-height: 1; }
.modal-close:hover { color: var(--fg); }
.wheel-wrap { display: flex; justify-content: center; margin-bottom: 1.25rem; position: relative; }
.wheel-wrap canvas { border-radius: 50%; cursor: crosshair; display: block; box-shadow: var(--shadow-md); }
.crosshair { position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; pointer-events: none; transform: translate(-50%, -50%); display: none; box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 1px 6px rgba(0,0,0,0.35); }
.preview-row { display: flex; align-items: center; gap: 14px; margin-bottom: 1.1rem; }
.color-preview { width: 54px; height: 54px; border-radius: 10px; border: 1px solid var(--line); flex-shrink: 0; }
.color-hex { font-family: var(--mono); font-size: 0.98rem; color: var(--fg); font-weight: 700; }
.color-hsl { font-family: var(--mono); font-size: 0.66rem; color: var(--fg-45); margin-top: 3px; }
.sliders { display: flex; flex-direction: column; gap: 11px; margin-bottom: 1.4rem; }
.slider-row { display: flex; align-items: center; gap: 10px; }
.slider-row label { font-family: var(--mono); font-size: 0.66rem; color: var(--fg-45); width: 14px; text-transform: uppercase; font-weight: 600; }
.slider-row input[type=range] { flex: 1; height: 4px; -webkit-appearance: none; appearance: none; background: #e3e7ef; border-radius: 2px; outline: none; cursor: pointer; }
.slider-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--cobalt); cursor: pointer; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.slider-row input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--cobalt); cursor: pointer; border: 3px solid #fff; }
.slider-val { font-family: var(--mono); font-size: 0.68rem; color: var(--fg-65); width: 32px; text-align: right; }
.add-btn { width: 100%; font-family: var(--display); font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; color: #fff; background: var(--cobalt); border: none; padding: 14px; cursor: pointer; border-radius: 10px; font-weight: 700; transition: background 0.2s; }
.add-btn:hover:not(:disabled) { background: var(--cobalt-deep); }
.add-btn:disabled { background: #c7cdda; cursor: not-allowed; }
.q-overlay { display: none; position: fixed; inset: 0; background: rgba(14,20,34,0.5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); z-index: 600; align-items: flex-start; justify-content: center; padding: 2rem 1.5rem; overflow-y: auto; }
.q-overlay.open { display: flex; }
.q-modal { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 2.25rem; width: 100%; max-width: 540px; margin: auto; position: relative; box-shadow: var(--shadow-lg); }
.q-header { display: flex; align-items: center; gap: 14px; margin-bottom: 1.5rem; }
.q-pal { display: flex; gap: 8px; }
.q-dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); }
.q-label { font-size: 0.66rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--cobalt); font-weight: 700; }
.q-headline { font-family: var(--display); font-size: 1.8rem; font-weight: 700; color: var(--fg); margin-bottom: 0.35rem; letter-spacing: -0.6px; }
.q-sub { font-size: 0.95rem; color: var(--fg-55); margin-bottom: 1.85rem; line-height: 1.6; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: 0.66rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fg-65); margin-bottom: 8px; font-weight: 600; }
.field input { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 13px 15px; font-family: 'Montserrat', sans-serif; font-size: 0.95rem; color: var(--fg); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(31,79,214,0.12); }
.field input::placeholder { color: var(--fg-30); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-label, .time-label { font-size: 0.66rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fg-65); margin-bottom: 9px; font-weight: 600; }
.contact-toggle { display: flex; gap: 8px; margin-bottom: 1.15rem; }
.tog { flex: 1; padding: 12px; border: 1px solid var(--line); background: #fff; color: var(--fg-55); font-size: 0.68rem; letter-spacing: 0.5px; text-transform: uppercase; cursor: pointer; border-radius: 9px; transition: all 0.2s; text-align: center; font-weight: 600; }
.tog:hover { border-color: var(--fg-30); }
.tog.active { border-color: var(--cobalt); color: var(--cobalt); background: var(--cobalt-tint); }
.contact-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.15rem; }
.c-input { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 13px 15px; font-family: 'Montserrat', sans-serif; font-size: 0.95rem; color: var(--fg); outline: none; width: 100%; transition: border-color 0.2s, box-shadow 0.2s; }
.c-input:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(31,79,214,0.12); }
.c-input::placeholder { color: var(--fg-30); }
/* Honeypot — hidden from humans, catches bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Calendar + time-slot picker */
.cal { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--bg-soft); margin-bottom: 1rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--fg); letter-spacing: -0.2px; }
.cal-nav { width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; color: var(--fg); font-size: 1rem; line-height: 1; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.cal-nav:hover:not(:disabled) { border-color: var(--cobalt); color: var(--cobalt); }
.cal-nav:disabled { opacity: 0.4; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow span { text-align: center; font-size: 0.58rem; letter-spacing: 0.5px; text-transform: uppercase; color: var(--fg-45); font-weight: 700; padding: 4px 0 6px; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 600; border: 1px solid transparent; border-radius: 8px; cursor: pointer; color: var(--fg); background: #fff; transition: all 0.15s; }
.cal-day:hover:not(.is-disabled):not(.is-empty) { border-color: var(--cobalt); color: var(--cobalt); }
.cal-day.is-empty { background: transparent; cursor: default; }
.cal-day.is-disabled { color: var(--fg-30); background: transparent; cursor: not-allowed; }
.cal-day.is-today { font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
.cal-day.is-selected { background: var(--cobalt); color: #fff; border-color: transparent; font-weight: 700; }
.tslot-label { font-size: 0.66rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fg-65); margin-bottom: 9px; font-weight: 600; }
.tslots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 1.85rem; }
.tslot { padding: 12px 6px; border: 1px solid var(--line); background: #fff; color: var(--fg-65); font-size: 0.74rem; cursor: pointer; border-radius: 8px; transition: all 0.2s; font-weight: 600; text-align: center; }
.tslot:hover { border-color: var(--cobalt); color: var(--cobalt); }
.tslot.active { border-color: var(--cobalt); color: #fff; background: var(--cobalt); font-weight: 700; }
.submit-btn { width: 100%; background: var(--cobalt); color: #fff; font-family: var(--display); font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase; padding: 16px; border: none; cursor: pointer; font-weight: 700; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; transition: background 0.2s, box-shadow 0.2s; box-shadow: var(--shadow-sm); }
.submit-btn:hover:not(:disabled) { background: var(--cobalt-deep); box-shadow: var(--shadow-md); }
.submit-btn span { display: inline-flex; align-items: center; gap: 10px; }
.submit-btn:disabled { background: #c7cdda; cursor: not-allowed; box-shadow: none; }
.status-msg { font-size: 0.74rem; text-align: center; margin-top: 12px; min-height: 16px; font-weight: 500; }
.privacy { font-size: 0.7rem; color: var(--fg-45); text-align: center; margin-top: 14px; letter-spacing: 0.2px; font-weight: 500; }
.success-state { display: none; text-align: center; padding: 1.5rem 1rem; }
.success-state.show { display: block; }
.form-body.hide { display: none; }
.s-icon { font-size: 3rem; margin-bottom: 1rem; line-height: 1; }
.s-icon svg { width: 64px; height: 64px; }
.s-title { font-family: var(--display); font-size: 1.85rem; font-weight: 700; color: var(--fg); margin-bottom: 0.6rem; letter-spacing: -0.6px; }
.s-sub { font-size: 0.95rem; color: var(--fg-55); line-height: 1.7; margin-bottom: 1.75rem; }
.s-pal { display: flex; justify-content: center; gap: 12px; margin-bottom: 0.85rem; }
.s-dot { width: 38px; height: 38px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.s-pal-label { font-size: 0.62rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fg-45); margin-bottom: 1.85rem; font-weight: 600; }
.s-back { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--fg); background: #fff; border: 1px solid var(--line); padding: 13px 26px; cursor: pointer; border-radius: 9px; transition: all 0.2s; font-weight: 600; }
.s-back:hover { border-color: var(--cobalt); color: var(--cobalt); }
/* GHL booking calendar step (shown after the intake details) */
.schedule-state { display: none; }
.schedule-state.show { display: block; }
.ghl-cal { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-soft); margin-bottom: 1.5rem; }
.ghl-cal iframe { display: block; width: 100%; }
.schedule-state .s-back { display: block; margin: 0 auto; }

/* "Book Now" modal — the standalone booking calendar on the inner pages.
   Built on demand by app.js; reuses .q-overlay/.q-modal so it matches the intake modal.
   GHL's resizer grows the iframe to its full content height (~1400px), which is taller
   than most viewports — so cap the panel and let the calendar scroll inside it. Without
   the margin override, .q-modal's `margin: auto` centers an over-tall panel and pushes
   its top out of reach above the viewport. */
.q-modal--cal { max-width: 640px; padding: 2rem 1.5rem 1.5rem; margin: 0 auto; display: flex; flex-direction: column; max-height: calc(100vh - 4rem); max-height: calc(100dvh - 4rem); }
.q-modal--cal .q-headline { text-align: center; flex: none; }
.q-modal--cal .q-sub { text-align: center; margin-bottom: 1.25rem; flex: none; }
.q-modal--cal .ghl-cal { margin-bottom: 0; background: #fff; flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* Short viewports (most laptops): the widget already states the service, length and
   timezone, so drop our sub-line and shrink the headline to give the calendar the room. */
@media (max-height: 800px) {
  .q-modal--cal .q-headline { font-size: 1.35rem; }
  .q-modal--cal .q-sub { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 3rem 0; }
  .hero { padding: 2.25rem 0 3rem; }
  h1 { font-size: clamp(2.2rem, 11vw, 3.5rem); }
  .field-row { grid-template-columns: 1fr; }
  .tslots-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .hero .stat { border-bottom-color: rgba(110,150,255,0.14); }
  .stat:last-child { border-bottom: none; }
  .work-grid { grid-template-columns: 1fr; }
  .svc-feats { grid-template-columns: 1fr; }
  .svc .svc-feats { margin-left: 0; }
  .svc-block { padding: 1.5rem 1.3rem; }
  .color-zone, .q-modal { padding: 1.6rem; }
  .ad-showcase { grid-template-columns: 1fr; gap: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
