/* BlueFire Websites — studio site
   Brand colors are tokens below. Accessibility rules:
   - Cyan (--cyan) fills buttons with navy text, icons and large text only.
   - Small text on navy uses --cyan-light.
   - Focus rings are two-tone so they show on light and dark backgrounds. */
:root {
  --navy: #0f1d3a;
  --navy-2: #142650;
  --navy-3: #1a2f5e;
  --line: #2b416f;
  --line-2: #3a5288;
  --royal: #283f73;
  --blue: #283f73;
  --teal: #036898;
  --cyan: #059ec4;
  --cyan-light: #5cc6e2;
  --white: #ffffff;
  --muted: #b8c6e0;
  --muted-2: #8fa2c7;
  --paper: #f4f7fb;
  --paper-2: #e8edf5;
  --ink: #0f1d3a;
  --ink-soft: #46557a;
  --ok: #7ee2a8;
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 24px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--navy); color: var(--white); font: 400 17px/1.6 var(--display); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--cyan-light); text-underline-offset: 3px; }
a:hover { color: var(--white); }
:focus-visible { outline: 3px solid var(--cyan-light); outline-offset: 2px; box-shadow: 0 0 0 6px var(--navy); border-radius: 4px; }
.light :focus-visible, .site-header :focus-visible { outline-color: var(--teal); box-shadow: 0 0 0 6px var(--white); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cyan); color: var(--navy); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* Labels and type */
.label { font: 500 13px/1.4 var(--mono); color: var(--cyan-light); letter-spacing: 0.02em; }
.light .label { color: var(--teal); }
.h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 0.98; letter-spacing: -0.04em; }
.h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; }
.h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 600px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.accent { color: var(--cyan); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 26px; border-radius: 999px; font: 700 16px/1.2 var(--display); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn-primary { background: var(--cyan); color: var(--navy); }
.btn-primary:hover { background: var(--cyan-light); color: var(--navy); transform: translateY(-1px); }
.btn-outline { color: var(--white); border-color: #6a83b8; font-weight: 600; }
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--royal); color: var(--white); }
.btn-sm { min-height: 40px; padding: 9px 18px; font-size: 14px; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--paper-2); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(15, 29, 58, .45); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 50px; width: auto; }
.brand-tag { font: 500 11.5px/1 var(--mono); color: var(--white); background: var(--navy); padding: 6px 9px; border-radius: 4px; letter-spacing: .08em; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { color: var(--royal); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 8px; }
.main-nav a:hover { color: var(--blue); background: var(--paper); }
.main-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
.main-nav a.btn-primary { color: var(--navy); background: var(--cyan); border-radius: 999px; padding: 11px 20px; margin-left: 8px; box-shadow: none; }
.main-nav a.btn-primary:hover { background: var(--cyan-light); }
.main-nav .ext { color: var(--ink-soft); font-weight: 500; }
.nav-toggle { display: none; background: transparent; border: 1.5px solid var(--royal); color: var(--royal); border-radius: 999px; font: 600 15px var(--display); padding: 9px 16px; min-height: 44px; cursor: pointer; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--paper-2); box-shadow: 0 20px 40px -24px rgba(15,29,58,.5); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 8px; border-bottom: 1px solid var(--paper-2); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--cyan); padding-left: 14px; }
  .main-nav a.btn-primary { margin: 14px 0 0; text-align: center; justify-content: center; }
  .brand img { height: 42px; }
}

/* Sections */
.section { padding-block: clamp(72px, 9vw, 112px); }
.section--alt { background: var(--navy-2); border-block: 1px solid #22386a; }
.light { background: var(--paper); color: var(--ink); }
.light .lede, .light .muted { color: var(--ink-soft); }
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head--row { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.sec-head--row > div { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.section--alt .card { background: var(--navy); }
.card p { color: var(--muted); }
.card .num { font: 500 13px var(--mono); color: var(--cyan-light); }
.plus-list { list-style: none; display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.plus-list li::before { content: "+ "; color: var(--cyan); font-family: var(--mono); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 112px) clamp(72px, 9vw, 120px); }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 60% at 85% 20%, rgba(5, 158, 196, .16), transparent 70%),
  radial-gradient(40% 50% at 0% 100%, rgba(13, 68, 140, .45), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(92,198,226,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(92,198,226,.06) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 34px; padding-top: 8px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 30px; letter-spacing: -0.03em; }
.hero-stats span { font: 500 12.5px var(--mono); color: var(--muted); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* Device trio (home hero) */
.trio { position: relative; aspect-ratio: 16 / 11.5; width: 100%; }
.trio a { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; border-radius: 14px; }
.dev { position: absolute; background: #0a1430; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); overflow: hidden; }
.dev .shot { position: absolute; inset: 0; }
.dev .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .9s ease; }
.dev .shot img.on { opacity: 1; }
.dev--laptop { left: 0; top: 0; width: 84%; aspect-ratio: 16 / 10.6; border-radius: 12px; padding-top: 26px; }
.dev--laptop::before { content: ""; position: absolute; left: 14px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #3a5288; box-shadow: 14px 0 0 #3a5288, 28px 0 0 #3a5288; }
.dev--laptop .shot { top: 26px; }
.dev--tablet { right: 13%; bottom: 0; width: 26%; aspect-ratio: 820 / 1180; border-radius: 16px; border-width: 7px; border-color: #0a1430; outline: 1px solid var(--line-2); }
.dev--phone { right: 0; bottom: 4%; width: 15%; aspect-ratio: 390 / 844; border-radius: 18px; border-width: 5px; border-color: #0a1430; outline: 1px solid var(--line-2); }
.trio-cap { position: absolute; left: 0; bottom: -2px; display: flex; align-items: center; gap: 10px; font: 500 12.5px var(--mono); color: var(--muted); background: rgba(15, 29, 58, .85); border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; max-width: 58%; }
.trio-cap .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.trio-cap b { color: var(--white); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trio a:hover .dev--laptop { border-color: var(--cyan); }

/* Logos strip / industries ticker */
.strip { border-block: 1px solid #22386a; background: var(--navy-2); overflow: hidden; }
.strip-track { display: flex; gap: 40px; width: max-content; padding-block: 18px; font: 500 14px var(--mono); color: var(--muted); animation: strip 60s linear infinite; }
.strip-track span::before { content: "/"; color: var(--cyan); margin-right: 40px; }
@keyframes strip { to { transform: translateX(-50%); } }
.strip:hover .strip-track { animation-play-state: paused; }

/* Work cards */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { font: 600 15px var(--display); color: var(--muted); background: transparent; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 9px 18px; min-height: 44px; cursor: pointer; transition: all .2s; }
.filter:hover { color: var(--white); border-color: var(--muted-2); }
.filter[aria-pressed="true"] { background: var(--white); color: var(--navy); border-color: var(--white); }
.filter .ct { font: 500 12px var(--mono); margin-left: 6px; opacity: .75; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
@media (max-width: 1020px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }
.work { display: flex; flex-direction: column; gap: 16px; }
.work[hidden] { display: none; }
.work-frame { position: relative; border-radius: 12px; overflow: hidden; background: #0a1430; border: 1px solid var(--line); transition: border-color .25s, transform .35s var(--ease), box-shadow .35s; }
.work-frame:hover, .work-frame:focus-within { border-color: var(--cyan); transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(5, 158, 196, .5); }
.work-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #0b1631; border-bottom: 1px solid var(--line); }
.work-bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a5288; }
.work-bar span { margin-left: 8px; flex: 1; min-width: 0; font: 500 11.5px var(--mono); color: var(--muted); background: var(--navy); border-radius: 5px; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.work-view img { width: 100%; height: auto; transform: translateY(0); transition: transform 5s cubic-bezier(.45, 0, .55, 1); }
.work-frame:hover .work-view img, .work-frame:focus-within .work-view img { transform: translateY(calc(-100% + var(--vh, 300px))); }
@media (prefers-reduced-motion: reduce) { .work-view img { transition: none; } .work-frame:hover .work-view img, .work-frame:focus-within .work-view img { transform: none; } }
.work-phone { position: absolute; right: 12px; bottom: 12px; width: 21%; aspect-ratio: 390 / 844; border-radius: 12px; border: 4px solid #0a1430; outline: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .7); background: #0a1430; transition: transform .35s var(--ease); }
.work-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-frame:hover .work-phone { transform: translateY(-4px) rotate(-2deg); }
.work-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -30%); display: inline-flex; align-items: center; gap: 8px; background: var(--cyan); color: var(--navy); font-weight: 700; font-size: 15px; padding: 11px 20px; border-radius: 999px; opacity: 0; transition: opacity .25s, transform .35s var(--ease); pointer-events: none; white-space: nowrap; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
.work-hint svg { width: 18px; height: 18px; }
.work-frame:hover .work-hint, .work-view:focus-visible .work-hint { opacity: 1; transform: translate(-50%, -50%); }
@media (hover: none) { .work-hint { display: none; } }
.work-view { display: block; }
.work-view:focus-visible { outline-offset: -4px; }
.work-meta { display: flex; flex-direction: column; gap: 6px; }
.work-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.work-ind { font: 500 12.5px var(--mono); color: var(--cyan-light); display: inline-flex; align-items: center; gap: 8px; }
.work-ind i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.work-area { font: 500 12px var(--mono); color: var(--muted-2); }
.work h3 { font-size: 22px; letter-spacing: -0.02em; }
.work h3 a { color: var(--white); text-decoration: none; }
.work h3 a:hover { color: var(--cyan-light); }
.work p { color: var(--muted); font-size: 15px; }
.work-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; font-weight: 600; padding-top: 2px; }
.work-links a { text-decoration: none; color: var(--cyan-light); display: inline-flex; gap: 6px; align-items: center; }
.work-links a:hover { color: var(--white); text-decoration: underline; }
.work-links svg { width: 16px; height: 16px; }

/* Honest staging note */
.concept-note { display: flex; gap: 14px; align-items: flex-start; background: var(--navy-2); border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 10px; padding: 16px 18px; color: var(--muted); font-size: 15px; max-width: 860px; }
.concept-note strong { color: var(--white); }
.concept-note svg { width: 22px; height: 22px; color: var(--cyan); flex: none; margin-top: 2px; }

/* Process */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.steps li { list-style: none; padding: 28px 24px 8px 0; display: flex; flex-direction: column; gap: 10px; position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before { counter-increment: s; content: "0" counter(s); font: 500 13px var(--mono); color: var(--cyan-light); }
.steps p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 560px; } }
.plan { position: relative; background: var(--navy); border: 1px solid var(--line); border-radius: 16px; padding: 32px 30px; display: flex; flex-direction: column; gap: 18px; }
.plan--pop { border: 2px solid var(--cyan); box-shadow: 0 30px 60px -36px rgba(5, 158, 196, .6); background: linear-gradient(180deg, #13285a 0%, var(--navy) 60%); }
.plan-flag { position: absolute; top: -13px; left: 28px; background: var(--cyan); color: var(--navy); font: 700 11.5px var(--mono); letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; }
.plan h3 { font-size: 24px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: clamp(40px, 4.4vw, 52px); letter-spacing: -0.04em; line-height: 1; }
.price span { color: var(--muted); font-size: 15px; }
.plan .alt { font: 500 13px var(--mono); color: var(--cyan-light); margin-top: -8px; min-height: 1.4em; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; color: var(--muted); font-size: 15.5px; }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235cc6e2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E"); }
.checks li.inc { color: var(--white); font-weight: 600; }
.best { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.best b { color: var(--white); font-weight: 600; }
.plan .btn { align-self: stretch; }
.bill-toggle { display: inline-flex; background: var(--navy); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; gap: 4px; }
.bill-toggle button { font: 600 14.5px var(--display); color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 9px 16px; min-height: 40px; cursor: pointer; }
.bill-toggle button[aria-pressed="true"] { background: var(--white); color: var(--navy); }
.bill-toggle em { font-style: normal; font: 500 11.5px var(--mono); color: var(--teal); margin-left: 4px; }
.bill-toggle button[aria-pressed="false"] em { color: var(--cyan-light); }
.allin { background: linear-gradient(135deg, #13285a, var(--navy) 70%); border: 1px solid var(--line-2); border-radius: 20px; padding: clamp(28px, 4vw, 48px); display: grid; gap: 26px; }
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
table.t { width: 100%; border-collapse: collapse; min-width: 560px; }
.t th { text-align: left; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(10, 20, 48, .5); }
.t td { padding: 18px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--muted); }
.t tr:last-child td { border-bottom: 0; }
.t td:first-child { color: var(--white); font-weight: 700; font-size: 19px; }
.t .big { font-size: 30px; font-weight: 700; color: var(--cyan); letter-spacing: -0.03em; }
.t .big small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--navy); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 500 22px var(--mono); color: var(--cyan-light); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 22px 22px; color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(36px, 6vw, 72px); background: linear-gradient(120deg, var(--blue) 0%, var(--teal) 100%); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 320px; background: url("../img/bluefire-flame.png") no-repeat center / contain; opacity: .12; pointer-events: none; }
.cta-band > div { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.cta-band p { color: #e3f2fa; font-size: 18px; }
.cta-band .btn-primary { background: var(--white); color: var(--navy); position: relative; z-index: 1; }
.cta-band .btn-primary:hover { background: var(--paper-2); }

/* Page hero */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(64px, 8vw, 104px) clamp(48px, 6vw, 72px); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 90% 0%, rgba(5, 158, 196, .16), transparent 70%); pointer-events: none; }
.page-hero .wrap { position: relative; display: flex; flex-direction: column; gap: 20px; }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.04em; max-width: 15ch; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1020px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }
.timeline { list-style: none; display: grid; gap: 0; max-width: 900px; }
.timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .when { font: 500 13px var(--mono); color: var(--cyan-light); padding-top: 6px; }
.timeline h3 { margin-bottom: 8px; }
.timeline p { color: var(--muted); }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }
.essentials { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.essentials li { background: var(--navy); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.essentials li::before { content: "\2713"; color: var(--cyan); font-family: var(--mono); }
@media (max-width: 760px) { .essentials { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .essentials { grid-template-columns: 1fr; } }

/* Quote form */
.quote-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 920px) { .quote-grid { grid-template-columns: 1fr; } }
.q-aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 110px; }
@media (max-width: 920px) { .q-aside { position: static; } }
.q-steps { list-style: none; display: grid; gap: 14px; }
.q-steps li { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.q-steps .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 500 13px var(--mono); border: 1.5px solid #6a83b8; color: var(--muted); flex: none; }
.q-steps li.on { color: var(--white); font-weight: 700; }
.q-steps li.on .n { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.q-steps li.done .n { background: var(--teal); color: var(--white); border-color: var(--teal); }
.form-card { background: var(--white); color: var(--ink); border-radius: 18px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.form-card :focus-visible { outline-color: var(--teal); box-shadow: 0 0 0 6px var(--white); }
.fstep { border: 0; margin: 0; padding: 0; display: grid; gap: 20px; min-width: 0; }
.fstep + .fstep { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--paper-2); }
.js .fstep + .fstep { margin-top: 0; padding-top: 0; border-top: 0; }
.js .fstep[data-hidden] { display: none; }
.fstep legend { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; padding: 0; margin-bottom: 4px; }
.fstep .label { display: block; margin-bottom: 6px; color: var(--teal); }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .opts { grid-template-columns: 1fr; } }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 2px solid #7d8db0; border-radius: 12px; cursor: pointer; color: var(--royal); min-height: 44px; transition: border-color .15s, background-color .15s; }
.opt span b { font-size: 17px; }
.opt span small { font-size: 14px; color: var(--ink-soft); }
.opt input:checked + span { background: #e6f4fa; border-color: var(--teal); }
.opt input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1.5px solid #7d8db0; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--royal); cursor: pointer; }
.pill input:checked + span { background: var(--blue); color: var(--white); border-color: var(--blue); }
.pill input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; color: var(--royal); }
.field input, .field textarea, .field select { font: 400 16px var(--display); color: var(--ink); background: var(--white); border: 1.5px solid #7d8db0; border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .fields-2 { grid-template-columns: 1fr; } }
.req { color: #a02c2c; }
.f-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.f-nav .btn-outline { color: var(--royal); border-color: #7d8db0; }
.f-nav .btn-outline:hover { color: var(--navy); border-color: var(--navy); }
.inspired { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--paper-2); border-radius: 12px; padding: 12px; }
.inspired img { width: 92px; border-radius: 6px; border: 1px solid var(--paper-2); }
.inspired div { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.inspired b { color: var(--navy); }
.inspired button { margin-left: auto; background: none; border: 0; color: var(--teal); font: 600 14px var(--display); cursor: pointer; text-decoration: underline; min-height: 44px; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 15px; }
.form-status.is-shown { display: block; }
.form-status--warn { background: #fff4d6; color: #5c4400; border: 1px solid #f0d58a; }
.form-done { text-align: left; display: grid; gap: 14px; }
.form-done h2 { font-size: 30px; }

/* Footer */
.site-footer { border-top: 1px solid #22386a; background: #0b1631; padding-block: 64px 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { display: flex; flex-direction: column; gap: 14px; color: var(--muted); max-width: 340px; }
.foot-logo { display: inline-flex; background: var(--white); border-radius: 10px; padding: 8px 12px; align-self: flex-start; }
.foot-logo img { height: 40px; width: auto; }
.site-footer h2 { font: 500 12.5px var(--mono); color: var(--cyan-light); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #22386a; color: var(--muted-2); font-size: 13.5px; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .strip-track { animation: none; } }

/* Fixes */
.sec-head--row > .bill-toggle { flex-direction: row; gap: 4px; max-width: none; }
@media (max-width: 640px) { .trio-cap { display: none; } .trio { margin-bottom: 8px; } }
.work-hint { z-index: 3; }

/* Phone in header */
.main-nav a.nav-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 700; white-space: nowrap; }
.main-nav a.nav-phone svg { width: 17px; height: 17px; color: var(--teal); }
@media (min-width: 921px) and (max-width: 1180px) { .main-nav .ext { display: none; } }

/* Reveal: content is always visible; motion only nudges it into place */
.js .reveal { opacity: 1; }
[hidden] { display: none !important; }
.foot-logo { background: none; padding: 0; border-radius: 0; }
.foot-logo img { height: 86px; margin: -10px 0 -6px -2px; }
/* Never let decorative layers cause sideways scrolling; tables scroll inside their own box */
main { overflow-x: clip; }
.allin, .allin > * { min-width: 0; }
@media (max-width: 640px) {
  .table-wrap { overflow: visible; border: 0; }
  table.t { min-width: 0; }
  .t thead { display: none; }
  .t, .t tbody, .t tr, .t td { display: block; width: 100%; }
  .t tr { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; background: rgba(10, 20, 48, .35); }
  .t td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .t td[data-label]:not([data-label=""])::before { content: attr(data-label); font: 500 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
  .t td:first-child { font-size: 20px; padding-bottom: 8px; }
  .t td:first-child::before { display: none; }
  .t td:last-child { padding-top: 10px; }
  .t td:last-child .btn { width: 100%; }
}
