/* =========================================================
   Blueprint Workflows — shared stylesheet
   Every page links to this one file, so a change here
   changes the whole site.

   Built "phone-first": the normal rules are for phones,
   and the @media (min-width: ...) blocks further down add
   extra layout for tablets and desktops.
   ========================================================= */

/* ---------- 1. Colours, fonts and sizes (change them here) ---------- */
:root {
  --navy:        #0B1A2E;   /* page background */
  --navy-2:      #0F2138;   /* alternate section background */
  --card:        #12253F;   /* cards and boxes */
  --line:        #1F3A5C;   /* borders and grid lines */
  --blue:        #4DA3FF;   /* main accent: buttons, highlights */
  --blue-dark:   #2F86E8;   /* button hover */
  --yellow:      #FFC857;   /* second accent: labels, stars, placeholders */
  --text:        #EEF3FA;   /* main text */
  --muted:       #A9B8CC;   /* smaller, softer text */

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 14px;
  --max: 1160px;            /* widest the content gets on big screens */
  --tap: 48px;              /* minimum height for anything you tap */
}

/* ---------- 2. Basic reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;      /* 17px – easy to read on a phone */
  line-height: 1.65;
  color: var(--text);
  background-color: var(--navy);
  position: relative;        /* lets the floating shapes span the whole page */
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 8vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 6vw, 3rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
.hl { color: var(--blue); }          /* highlighted word in a heading */
.muted { color: var(--muted); }

/* Skip link – lets keyboard users jump past the menu */
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 16px; background: var(--yellow); color: var(--navy); padding: 10px 14px; z-index: 100; border-radius: 8px; }

/* ---------- 3. Page width wrapper ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: rgba(15,33,56,.55); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }


.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap);
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #06111F; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-row { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.btn-row .btn { width: 100%; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- 5. Header and menu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,26,46,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; min-height: var(--tap); }
.logo svg { width: 34px; height: 34px; }
.nav-links { display: none; }
.nav-call { display: none; }
.menu-btn {
  width: var(--tap); height: var(--tap);
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  content: ""; display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .25s, background .25s;
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after  { position: absolute; top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after  { transform: translateY(-6px) rotate(-45deg); }

/* Phone drop-down menu */
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 8px 20px 20px; }
.menu-open .mobile-menu { display: block; }
.mobile-menu a {
  display: flex; align-items: center; min-height: 52px;
  color: var(--text); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a[aria-current="page"] { color: var(--blue); }
.mobile-menu .btn { margin-top: 16px; width: 100%; border-bottom: 0; color: #06111F; }

/* Breadcrumb ("Home / About") */
.breadcrumb { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); padding-top: 20px; }
.breadcrumb a { color: var(--muted); }

/* ---------- 6. Hero (top section of each page) ---------- */
.hero { padding: 48px 0 64px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.page-hero { padding: 40px 0 56px; }
.page-hero h1 { font-size: clamp(2.1rem, 7vw, 3.8rem); }

/* Browser-window drawing (used in the devices graphic) */
.mockup {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden;
}
.mockup-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mockup-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mockup-bar i:first-child { background: var(--yellow); }
.mockup-body { padding: 22px; display: grid; gap: 12px; }
.mk { height: 12px; border-radius: 6px; background: var(--line); }
.mk.w40 { width: 40%; } .mk.w60 { width: 60%; } .mk.w80 { width: 80%; }
.mk.big { height: 26px; background: rgba(77,163,255,.35); width: 75%; }
.mk.btn-mk { height: 34px; width: 38%; border-radius: 999px; background: var(--blue); }
.mk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.mk-cards div { height: 70px; border-radius: 10px; border: 1px dashed var(--line); }

/* ---------- 7. Placeholders (dashed yellow = replace me) ---------- */
.ph {
  display: grid; place-items: center; text-align: center;
  min-height: 220px; padding: 20px;
  border: 2px dashed var(--yellow); border-radius: var(--radius);
  background: rgba(255,200,87,.05);
  color: var(--yellow); font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em;
}
.ph.tall { min-height: 340px; }
.ph.small { min-height: 92px; font-size: .72rem; }
.ph-text { color: var(--yellow); font-family: var(--font-mono); font-size: .9em; }

/* ---------- 8. Logo strip ("Trusted by") ---------- */
.logo-strip { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-strip p { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.logo-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* ---------- 9. Cards and grids ---------- */
.grid { display: grid; gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: relative;
}
.card h3 { margin-top: 4px; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(77,163,255,.12); color: var(--blue); margin-bottom: 14px;
}
.card .icon svg { width: 24px; height: 24px; }
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy); background: var(--yellow); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}

/* Trust badges row */
.trust { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 14px; }
.trust div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(18,37,63,.6); }
.trust strong { display: block; font-family: var(--font-head); }
.trust span { font-size: .9rem; color: var(--muted); }

/* Side-by-side split (image one side, text the other) */
.split { display: grid; gap: 36px; align-items: center; }

/* Tick list */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: .75rem; font-weight: 700; color: var(--navy); background: var(--blue);
}

/* Project / case-study cards */
.project { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.project .ph { border-radius: 0; border-width: 0 0 2px 0; min-height: 200px; }
.project-body { padding: 18px 20px; }
.project-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.project-body p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Testimonial slots */
.quote { font-style: italic; }
.stars { color: var(--yellow); letter-spacing: 2px; margin-bottom: 10px; }

/* Price cards */
.price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; margin: 6px 0 0; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }

/* ---------- 10. Timeline (How It Works) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--blue), var(--line)); }
.timeline li { position: relative; padding: 0 0 40px 72px; }
.timeline .num {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); border: 2px solid var(--blue);
  font-family: var(--font-mono); font-weight: 700; color: var(--blue);
}
.timeline .card { padding: 22px; }

/* ---------- 11. Forms ---------- */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea {
  width: 100%; min-height: var(--tap);
  font: inherit; font-size: 1rem;           /* 16px+ stops iPhones zooming in */
  color: var(--text); background: var(--navy);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(77,163,255,.25); }
.form .row { display: grid; gap: 16px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-msg { display: none; padding: 14px 16px; border-radius: 10px; background: rgba(77,163,255,.12); border: 1px solid var(--blue); }
.form-msg.show { display: block; }
.url-form { display: grid; gap: 12px; max-width: 640px; }

/* Contact details list */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list a {
  display: flex; align-items: center; gap: 12px; min-height: var(--tap);
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); text-decoration: none; background: var(--card); font-weight: 600; word-break: break-word;
}
.contact-list a:hover { border-color: var(--blue); }
.contact-list svg { width: 20px; height: 20px; color: var(--blue); flex: none; }

/* ---------- 12. Call-to-action band ---------- */
.cta-band {
  margin: 0 auto; padding: 48px 24px; text-align: center;
  border-radius: 22px; border: 1px solid var(--blue);
  background: var(--card);
}
.cta-band .lead { margin: 0 auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- 13. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 72px; background: rgba(15,33,56,.8); }
.footer-grid { display: grid; gap: 32px; }
.site-footer h4 { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.site-footer li a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* Legal pages: comfortable reading width */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }

/* ---------- 13b. Blueprint drawing world ----------
   js/main.js adds two layers to every page:
   .bg-fx     – fixed behind everything: paper tone, a drawing-sheet
                border with zone ticks, a few construction lines,
                vignette and fine grain.
   .bg-shapes – drafting symbols (north arrow, section mark, scale bar,
                dimension) spread down the page, drifting slightly
                slower than the page as you scroll.
   Sections, cards and the call-to-action box use drawing details:
   corner registration marks, dimension-line dividers and hatching.
   To switch the background off, delete section 5 in js/main.js. */

.site-header { background: rgba(11,26,46,.94); border-bottom-color: rgba(77,163,255,.16); }

.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 50% 28%, #10264A 0%, var(--navy) 72%); }
.bg-fx > * { position: absolute; }

/* Drawing-sheet border: double frame plus zone ticks on all four edges */
.bg-fx .sheet { inset: 8px; border: 1px solid rgba(77,163,255,.2); }
.bg-fx .sheet::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(77,163,255,.08); }
.bg-fx .sheet::after {
  content: ""; position: absolute; inset: 0;
  --tk: rgba(77,163,255,.32);
  background:
    repeating-linear-gradient(90deg, var(--tk) 0 1px, transparent 1px 12.5%) top left / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, var(--tk) 0 1px, transparent 1px 12.5%) bottom left / 100% 5px no-repeat,
    repeating-linear-gradient(0deg,  var(--tk) 0 1px, transparent 1px 16.66%) top left / 5px 100% no-repeat,
    repeating-linear-gradient(0deg,  var(--tk) 0 1px, transparent 1px 16.66%) top right / 5px 100% no-repeat;
}

/* A few long construction lines (not a grid) */
.bg-fx .construct { inset: 0; width: 100%; height: 100%; }
.bg-fx .construct line { stroke: rgba(77,163,255,.13); stroke-width: 1; stroke-dasharray: 14 6 2 6; vector-effect: non-scaling-stroke; }
.bg-fx .construct line.faint { stroke: rgba(77,163,255,.07); }

.bg-fx .vignette { inset: 0; background: radial-gradient(ellipse 120% 90% at 50% 35%, transparent 55%, rgba(4,10,20,.65) 100%); }
.bg-fx .grain {
  inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Background motion (all switched off for reduced motion) --- */
/* Soft blue light drifting behind everything */
.bg-fx .light {
  inset: -25%;
  background:
    radial-gradient(38% 34% at 28% 30%, rgba(47,134,232,.17), transparent 70%),
    radial-gradient(32% 30% at 74% 66%, rgba(77,163,255,.11), transparent 70%),
    radial-gradient(24% 22% at 60% 18%, rgba(255,200,87,.05), transparent 70%);
}
/* Sketches at the screen edges */
.bg-fx .sketch { inset: 0; width: 100%; height: 100%; }
.bg-fx .sk path { fill: none; stroke: rgba(127,189,255,.32); stroke-width: 1.3; stroke-linecap: round; }
.bg-fx .sk text { fill: rgba(255,200,87,.5); font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-anchor: middle; }
/* Small dots that travel along the construction lines */
.bg-fx .tdot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgba(255,200,87,.8); box-shadow: 0 0 0 3px rgba(255,200,87,.12); opacity: 0; }
.bg-fx .tdot.h  { top: 34%; left: 0; }
.bg-fx .tdot.h2 { top: 78%; left: 0; }
.bg-fx .tdot.v  { left: 71%; top: 0; }

@media (prefers-reduced-motion: no-preference) {
  .bg-fx .light { animation: bg-light 36s ease-in-out infinite alternate; }
  .bg-fx .construct line { animation: bg-march 9s linear infinite; }
  .bg-fx .construct line.faint { animation-duration: 14s; animation-direction: reverse; }
  .bg-fx .sk path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: bg-sketch 18s ease-in-out infinite; animation-delay: var(--d); }
  .bg-fx .sk text { opacity: 0; animation: bg-sketch-text 18s ease-in-out infinite; animation-delay: var(--d); }
  .bg-fx .tdot.h  { animation: bg-run-x 20s linear infinite; }
  .bg-fx .tdot.h2 { animation: bg-run-x 27s linear -9s infinite reverse; }
  .bg-fx .tdot.v  { animation: bg-run-y 24s linear -5s infinite; }
}
@keyframes bg-light { 0% { transform: translate3d(-4%, -2%, 0) scale(1); } 100% { transform: translate3d(5%, 4%, 0) scale(1.12); } }
@keyframes bg-march { to { stroke-dashoffset: -112; } }
@keyframes bg-sketch {
  0% { stroke-dashoffset: 1; opacity: 1; }
  22% { stroke-dashoffset: 0; opacity: 1; }
  62% { stroke-dashoffset: 0; opacity: 1; }
  80%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes bg-sketch-text { 0%, 16% { opacity: 0; } 26%, 62% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes bg-run-x { 0% { transform: translateX(0); opacity: 0; } 6%, 94% { opacity: 1; } 100% { transform: translateX(100vw); opacity: 0; } }
@keyframes bg-run-y { 0% { transform: translateY(0); opacity: 0; } 6%, 94% { opacity: 1; } 100% { transform: translateY(100vh); opacity: 0; } }
/* Phones: keep it lighter */
@media (max-width: 599px) {
  .bg-fx .sk path { stroke: rgba(127,189,255,.22); }
  .bg-fx .tdot.h2 { display: none; }
}

/* Drafting symbols down the page */
.bg-shapes { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-shapes .shape { position: absolute; will-change: transform; }
.bg-shapes svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: rgba(127,189,255,.24); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.bg-shapes .fill { fill: rgba(255,200,87,.35); stroke: none; }
.bg-shapes .thick { stroke-width: 4; stroke: rgba(127,189,255,.22); }
.bg-shapes text { fill: rgba(127,189,255,.4); stroke: none; font-family: var(--font-mono); font-size: 11px; text-anchor: middle; letter-spacing: .1em; }
.bg-shapes .extra { display: none; }
@media (min-width: 768px) { .bg-shapes .extra { display: block; } }

/* --- Sections --- */
main > section { position: relative; isolation: isolate; overflow-x: clip; }

/* Dimension line: a hairline with end ticks, used under page heroes and between sections */
.page-hero::after,
.section:not(.alt) + .section:not(.alt)::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: min(1096px, calc(100% - 40px)); height: 9px;
  border-left: 1px solid rgba(77,163,255,.35); border-right: 1px solid rgba(77,163,255,.35);
  background: linear-gradient(rgba(77,163,255,.28), rgba(77,163,255,.28)) center / 100% 1px no-repeat;
}
.page-hero { position: relative; }
.page-hero::after { bottom: 0; }
.section:not(.alt) + .section:not(.alt)::before { top: -4px; width: min(760px, 82%); }

/* Alternate bands: a solid drafting-table tone with hairline edges */
.section.alt { background: rgba(13,30,52,.78); border-top: 1px solid rgba(77,163,255,.1); border-bottom: 1px solid rgba(77,163,255,.1); }
.logo-strip { border-image: linear-gradient(90deg, transparent, var(--line), transparent) 1; }

/* Panels: solid fill, hairline border, corner registration marks */
.card, .project, .trust div, .contact-list a, .mockup, .concept, .art {
  background: var(--card);
  border-color: rgba(77,163,255,.18);
  box-shadow: 0 14px 30px -18px rgba(0,0,0,.7);
}
.card { overflow: hidden; transition: opacity .6s ease, transform .6s ease, border-color .25s ease; }
.card::after, .cta-band::after, .plan::after {
  content: ""; position: absolute; inset: 7px; pointer-events: none; opacity: .55; transition: opacity .25s ease;
  --mk: rgba(127,189,255,.7);
  background:
    linear-gradient(var(--mk), var(--mk)) top left / 10px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) top left / 1px 10px no-repeat,
    linear-gradient(var(--mk), var(--mk)) top right / 10px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) top right / 1px 10px no-repeat,
    linear-gradient(var(--mk), var(--mk)) bottom left / 10px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) bottom left / 1px 10px no-repeat,
    linear-gradient(var(--mk), var(--mk)) bottom right / 10px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) bottom right / 1px 10px no-repeat;
}
.card:hover { border-color: rgba(77,163,255,.45); }
.card:hover::after { opacity: 1; }
.card.featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 18px 40px -18px rgba(0,0,0,.75); }

.mockup { box-shadow: 0 24px 48px -20px rgba(0,0,0,.7); }

/* Call-to-action box: hatched corner like a section cut */
.cta-band {
  position: relative; isolation: isolate;
  border-color: rgba(77,163,255,.4);
  background:
    repeating-linear-gradient(135deg, rgba(77,163,255,.09) 0 1px, transparent 1px 9px) top right / 180px 180px no-repeat,
    repeating-linear-gradient(135deg, rgba(77,163,255,.06) 0 1px, transparent 1px 9px) bottom left / 120px 120px no-repeat,
    var(--card);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.75);
}

/* Footer */
.site-footer { position: relative; background: #08152A; border-top: 1px solid rgba(77,163,255,.16); }

/* ---------- Hero drawing: a house elevation with your website on a phone ---------- */
.plan {
  position: relative; container-type: inline-size;
  width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 480 / 430;
  border: 1px solid rgba(77,163,255,.22);
  background: rgba(13,30,52,.7);
}
.plan > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plan .ln { fill: none; stroke: #7FBDFF; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.plan .ln.thin { stroke-width: .9; stroke: rgba(127,189,255,.6); }
.plan .hatch { stroke: rgba(127,189,255,.3); stroke-dasharray: 4 5; }
.plan .dim { fill: none; stroke: var(--yellow); stroke-width: 1; }
.plan .dot { fill: var(--yellow); }
.plan text { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; fill: #A7D0FF; }
.plan text.y { fill: var(--yellow); }
.plan text.tb { font-size: 8.5px; fill: rgba(167,208,255,.85); }

.plan-phone {
  position: absolute; right: 3.5%; top: 20%; width: 35%; aspect-ratio: 9 / 16;
  font-size: 2.3cqw; padding: .9em .75em .8em;
  display: flex; flex-direction: column; gap: .55em;
  background: #16191F; border: 2px solid #2B4A70; border-radius: 1.6em;
  box-shadow: 0 18px 36px -14px rgba(0,0,0,.75); overflow: hidden;
}
.plan-phone::before { content: ""; align-self: center; width: 30%; height: .35em; border-radius: 1em; background: #2B4A70; margin-bottom: .2em; }
.pp-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: .55em; border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--font-head); font-weight: 700; color: #F5F5F5; }
.pp-bar i { width: 1.3em; height: .2em; border-radius: 2px; background: rgba(255,255,255,.4); box-shadow: 0 .38em 0 rgba(255,255,255,.4); margin-bottom: .38em; }
.pp-h { font-family: var(--font-head); font-weight: 700; color: #F5F5F5; font-size: 1.3em; line-height: 1.15; margin: .25em 0 0; }
.pp-p { display: block; height: .42em; border-radius: 3px; background: rgba(255,255,255,.18); }
.pp-p.short { width: 62%; }
.pp-call, .pp-quote { display: block; text-align: center; padding: .65em .4em; border-radius: 2em; font-weight: 700; font-family: var(--font-head); }
.pp-call { background: #FF8A3D; color: #16191F; margin-top: .3em; }
.pp-quote { border: 1px solid rgba(255,255,255,.3); color: #F5F5F5; }
.pp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; margin-top: auto; }
.pp-tiles i { height: 2.4em; border-radius: .45em; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.07); }

/* The one authored motion: the plan draws itself in, then the phone rises onto it */
@media (prefers-reduced-motion: no-preference) {
  .plan .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: plan-draw 1.3s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(var(--i, 0) * 80ms + 120ms); }
  .plan .fade { opacity: 0; animation: plan-fade .7s ease-out 1.15s forwards; }
  .plan-phone { opacity: 0; transform: translateY(16px); animation: plan-rise .9s cubic-bezier(.16,1,.3,1) .95s forwards; }
}
@keyframes plan-draw { to { stroke-dashoffset: 0; } }
@keyframes plan-fade { to { opacity: 1; } }
@keyframes plan-rise { to { opacity: 1; transform: none; } }

/* ---------- 14. Gentle fade-in as you scroll ---------- */
/* Only hide for fade-in when scripts are running, so content can never get stuck invisible */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .card { transition: none; }
}

/* =========================================================
   TABLET (600px and wider)
   ========================================================= */
@media (min-width: 600px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-row .btn { width: auto; }
  .logo-row { grid-template-columns: repeat(3, 1fr); }
  .grid.two, .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); }
  .form .row { grid-template-columns: 1fr 1fr; }
  .url-form { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   DESKTOP (960px and wider)
   ========================================================= */
@media (min-width: 960px) {
  .section { padding: 104px 0; }
  .wrap { padding: 0 32px; }
  .hero { padding: 80px 0 100px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .hero .plan { max-width: 600px; }
  .logo-row { grid-template-columns: repeat(6, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four  { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.flip > :first-child { order: 2; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .cta-band { padding: 72px 48px; }
  .timeline { max-width: 820px; margin: 0 auto; }
}

/* =========================================================
   WIDE SCREENS (1100px and wider): full menu replaces the ☰ button
   ========================================================= */
@media (min-width: 1100px) {
  .nav-links { display: flex; gap: 2px; }
  .nav-links a {
    display: flex; align-items: center; min-height: var(--tap); padding: 0 10px;
    color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem;
    white-space: nowrap;
  }
  .nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
  .nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); }
  .nav-call { display: inline-flex; }
  .menu-btn, .mobile-menu, .menu-open .mobile-menu { display: none; }
}
.logo, .nav-call { white-space: nowrap; flex-shrink: 0; }

/* ---------- 14. Drawn graphics (used instead of photos) ----------
   Everything here is built in code, so no images are needed.
   .art        – a framed panel that holds a graphic
   .devices    – laptop + phone drawing
   .phone      – phone frame (review page, phone views)
   .concept    – sample website designs (clearly labelled as concepts)
   .flow       – step-by-step diagram (CRM and automation)
   .ba         – before / after comparison
   .board      – project progress board
   .agenda     – discovery call card
   */
.art {
  position: relative; border-radius: 22px; padding: 28px;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}
.art-label {
  display: inline-block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 14px;
}

/* Laptop + phone */
.devices { position: relative; padding-bottom: 28px; }
.devices .mockup { margin-right: 22%; }
.devices .phone { position: absolute; right: 0; bottom: 0; width: 30%; }
.phone {
  border: 2px solid var(--line); border-radius: 26px; padding: 18px 10px 14px;
  background: var(--navy); box-shadow: 0 20px 40px rgba(0,0,0,.35);
  display: grid; gap: 8px;
}
.phone::before { content: ""; width: 34%; height: 5px; border-radius: 9px; background: var(--line); justify-self: center; margin-bottom: 4px; }
.phone .mk { height: 9px; }
.phone .mk.big { height: 18px; width: 90%; }
.phone .mk.btn-mk { height: 24px; width: 70%; }

/* Review page on a phone */
.phone.review { width: min(260px, 80%); margin: 0 auto; padding: 22px 18px 20px; text-align: center; gap: 12px; }
.phone.review .r-logo { width: 46px; height: 46px; border-radius: 12px; background: #FF8A3D; color: #16191F; justify-self: center; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.phone.review .r-brand { font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--muted); margin-top: -6px; }
.phone.review .r-btn { background: #FF8A3D !important; }
.phone.review .r-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.phone.review .r-stars { color: var(--yellow); font-size: 1.6rem; letter-spacing: 4px; }
.phone.review .r-btn { padding: 12px; border-radius: 999px; background: var(--blue); color: #06111F; font-weight: 600; font-size: .9rem; }
.phone.review .r-note { font-size: .78rem; color: var(--muted); }

/* Concept designs */
.concept { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.concept-body { padding: 18px 20px; }
.concept-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.concept-body p { font-size: .92rem; color: var(--muted); margin: 0; }
.concept-note { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); text-align: center; margin-top: 18px; }

/* Flow diagram */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.flow li {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(11,26,46,.6); position: relative;
}
.flow li + li::before {
  content: ""; position: absolute; left: 33px; top: -13px; width: 2px; height: 12px; background: var(--blue);
}
.flow b {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(77,163,255,.15); color: var(--blue); font-family: var(--font-mono); font-size: .8rem;
}
.flow span { font-size: .95rem; }
.flow small { display: block; color: var(--muted); font-size: .82rem; }

/* Before / after */


/* Progress board */
.board { display: grid; gap: 10px; }
.board-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(11,26,46,.6); font-size: .92rem; }
.board-row .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); }
.board-row.done .dot { background: var(--blue); border-color: var(--blue); }
.board-row.now { border-color: var(--yellow); }
.board-row.now .dot { border-color: var(--yellow); background: rgba(255,200,87,.3); }
.board-row .state { margin-left: auto; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.board-row.now .state { color: var(--yellow); }
.board-bar { height: 8px; border-radius: 9px; background: var(--line); overflow: hidden; margin-top: 6px; }
.board-bar i { display: block; height: 100%; width: 60%; background: linear-gradient(90deg, var(--blue), var(--yellow)); }

/* Discovery call card */
.agenda h3 { margin: 0 0 4px; }
.agenda .when { color: var(--muted); font-size: .92rem; margin: 0 0 18px; }
.agenda ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: ag; }
.agenda li { counter-increment: ag; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: rgba(11,26,46,.6); border: 1px solid var(--line); font-size: .95rem; }
.agenda li::before { content: counter(ag, decimal-leading-zero); font-family: var(--font-mono); color: var(--blue); font-size: .8rem; }


/* Price notes */
.price-sub { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; margin: 2px 0 0; }
.price-sub small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.includes-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.includes-strip span { font-family: var(--font-mono); font-size: .72rem; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }


/* ---------- 15. Phone call bar ----------
   Fixed to the bottom of the screen whenever the header's
   "Book a free call" button is hidden (below 1100px), so a
   call is always one thumb-tap away. */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8,21,42,.96); border-top: 1px solid rgba(77,163,255,.25);
  box-shadow: 0 -10px 24px -12px rgba(0,0,0,.7);
}
.call-bar .btn { width: 100%; min-height: 50px; padding: 10px 12px; font-size: .98rem; }
.call-bar svg { width: 18px; height: 18px; flex: none; }
body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.menu-open ~ main ~ .call-bar { display: none; }
@media (min-width: 1100px) {
  .call-bar { display: none; }
  body { padding-bottom: 0; }
}

/* "Rather talk now?" line under the home page buttons */
.call-line { margin: 18px 0 0; color: var(--muted); font-size: 1rem; }
.call-line a { color: var(--text); font-weight: 600; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- 16. Trades strip (scrolling list under the hero) ---------- */
.trades { border-top: 1px solid rgba(77,163,255,.14); border-bottom: 1px solid rgba(77,163,255,.14); background: rgba(13,30,52,.78); overflow: hidden; }
.marquee { display: flex; width: max-content; }
.marquee ul { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.marquee li {
  display: flex; align-items: center; gap: 18px; padding: 18px 0 18px 18px; white-space: nowrap;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, 2.6vw, 1.35rem); color: var(--text);
}
.marquee li::after { content: ""; width: 9px; height: 9px; border: 1.5px solid var(--yellow); transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .marquee { animation: marquee 38s linear infinite; }
  .trades:hover .marquee { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { width: auto; }
  .marquee ul { flex-wrap: wrap; justify-content: center; }
  .marquee ul[aria-hidden] { display: none; }
}

/* ---------- 17. Job journey: search -> site -> call -> booked ----------
   A dot runs along a blueprint line and each step lights up in turn (8s loop). */
.journey { list-style: none; margin: 44px 0 0; padding: 0 0 0 34px; position: relative; display: grid; gap: 34px; --loop: 8s; --s0: 25px; --s1: 25px; --s2: 25px; --s3: 25px; }
.journey::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; border-left: 1.5px dashed rgba(77,163,255,.4); }
.journey::after {
  content: ""; position: absolute; left: 4px; top: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,200,87,.18);
}
.journey li { position: relative; }
.journey li::before {
  content: ""; position: absolute; left: -30px; top: 30px; width: 9px; height: 9px;
  background: var(--navy); border: 1.5px solid var(--blue); transform: rotate(45deg);
}
.journey h3 { margin: 16px 0 6px; font-size: 1.15rem; }
.journey p { margin: 0; color: var(--muted); font-size: .98rem; }
.j-card {
  height: 92px; border-radius: 14px; border: 1px solid rgba(77,163,255,.2); background: var(--card);
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; overflow: hidden;
  font-family: var(--font-head); font-weight: 700; transition: border-color .3s ease;
}
.j-search { justify-content: flex-start; }
.j-search .j-g { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #EEF3FA; color: #1A5FB4; flex: none; }
.j-search .j-q { flex: 1; padding: 9px 14px; border-radius: 99px; background: #EEF3FA; color: #1B2B40; font-family: var(--font-body); font-weight: 500; font-size: .92rem; white-space: nowrap; overflow: hidden; }
.j-search .j-q i { display: inline-block; width: 1.5px; height: 1em; background: #2F86E8; vertical-align: -2px; margin-left: 2px; }
.j-site { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 12px 14px; color: #fff;
  background: linear-gradient(0deg, rgba(10,14,20,.88), rgba(10,14,20,.2)), url(../images/roofer.jpg) center 30% / cover; }
.j-site b { font-size: .78rem; padding: 6px 12px; border-radius: 99px; background: #FF8A3D; color: #16191F; }
.j-call { color: #0B1A2E; background: #4DA3FF; border-color: #4DA3FF; }
.j-call svg { width: 26px; height: 26px; }
.j-booked { color: var(--navy); background: var(--yellow); border-color: var(--yellow); }
.j-booked svg { width: 28px; height: 28px; }

@media (prefers-reduced-motion: no-preference) {
  .journey::after { animation: j-run-v var(--loop) cubic-bezier(.45,0,.55,1) infinite; }
  .journey .j-card { animation: j-lit var(--loop) ease-in-out infinite; animation-delay: calc(var(--n) * var(--loop) / 4); }
  .j-search .j-q i { animation: blink 1s steps(1) infinite; }
  .j-call svg { animation: ring var(--loop) ease-in-out infinite; animation-delay: calc(var(--loop) / 2); }
}
/* The dot pauses at each step marker (--s0..--s3 are set per layout below) */
@keyframes j-run-v { 0%, 6% { top: var(--s0); } 25%, 31% { top: var(--s1); } 50%, 56% { top: var(--s2); } 75%, 94% { top: var(--s3); } 100% { top: var(--s0); opacity: 0; } }
@keyframes j-run-h { 0%, 6% { left: var(--s0); } 25%, 31% { left: var(--s1); } 50%, 56% { left: var(--s2); } 75%, 94% { left: var(--s3); } 100% { left: var(--s0); opacity: 0; } }
@keyframes j-lit {
  0%, 30%, 100% { transform: none; border-color: rgba(77,163,255,.2); box-shadow: none; }
  8%, 22% { transform: translateY(-4px); border-color: var(--yellow); box-shadow: 0 16px 30px -16px rgba(0,0,0,.8); }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes ring {
  0%, 4%, 100% { transform: none; }
  1% { transform: rotate(-14deg); } 2% { transform: rotate(12deg); } 3% { transform: rotate(-8deg); }
}
@media (min-width: 960px) {
  .journey { grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 34px 0 0; }
  .journey::before { left: 6%; right: 6%; top: 9px; bottom: auto; border-left: 0; border-top: 1.5px dashed rgba(77,163,255,.4); }
  .journey::after { top: 4px; left: 0; }
  .journey { --s0: calc(12.5% - 6px); --s1: calc(37.5% - 6px); --s2: calc(62.5% - 6px); --s3: calc(87.5% - 6px); }
  .journey li::before { left: 50%; top: -30px; margin-left: -4px; }
  .journey h3, .journey p { text-align: center; }
}
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .journey::after { animation-name: j-run-h; }
}

/* ---------- 18. Photo panel with an example enquiry popping in ---------- */
.photo-panel { position: relative; margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid rgba(77,163,255,.22); aspect-ratio: 4 / 3; }
.photo-panel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,21,42,.75), rgba(8,21,42,0) 55%); }
.photo-tag { position: absolute; top: 12px; left: 12px; padding: 4px 9px; border-radius: 6px; background: rgba(8,21,42,.8); color: var(--muted); font-family: var(--font-mono); font-size: .72rem; }
.notif {
  position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 14px; background: #F5F8FC; color: #13233A; box-shadow: 0 18px 36px -14px rgba(0,0,0,.8);
}
.notif b { font-family: var(--font-head); font-size: 1rem; }
.notif span:last-child { grid-column: 2; font-size: .9rem; color: #45566E; }
.notif-dot { grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; background: #1FB76A; box-shadow: 0 0 0 4px rgba(31,183,106,.2); }
@media (prefers-reduced-motion: no-preference) {
  .photo-panel img { transform: scale(1.08); transition: transform 1.6s cubic-bezier(.16,1,.3,1); }
  .photo-panel.visible img { transform: none; }
  .notif { opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .6s ease .7s, transform .7s cubic-bezier(.16,1,.3,1) .7s; }
  .photo-panel.visible .notif { opacity: 1; transform: none; }
}

/* ---------- 20. Hero, turned up ----------
   Bigger headline, a yellow marker ring that draws round "calls.",
   and the drawing's payoff: the phone rings. */
.hero-title { font-size: clamp(2.6rem, 9.5vw, 3.7rem); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: .45em; }
.mark { position: relative; white-space: nowrap; }
.mark-ring { position: absolute; left: -9%; top: -14%; width: 118%; height: 132%; overflow: visible; pointer-events: none; }
.mark-ring path { fill: none; stroke: var(--yellow); stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.plan-call {
  position: absolute; z-index: 3; left: 50%; bottom: 5%; width: 48%;
  display: grid; grid-template-columns: auto 1fr; column-gap: .7em; align-items: center;
  padding: .75em .9em; border-radius: 1em; font-size: 2.6cqw;
  background: #F5F8FC; color: #13233A; box-shadow: 0 18px 34px -14px rgba(0,0,0,.85);
}
.plan-call b { font-family: var(--font-head); font-size: 1.1em; line-height: 1.2; }
.plan-call span:last-child { grid-column: 2; color: #45566E; font-size: .92em; }
.pc-icon { grid-row: span 2; width: 2.4em; height: 2.4em; border-radius: 50%; display: grid; place-items: center; background: #1FB76A; color: #fff; }
.pc-icon svg { width: 1.2em; height: 1.2em; }

@media (prefers-reduced-motion: no-preference) {
  .mark-ring path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: mark-draw .9s cubic-bezier(.65,0,.35,1) 1.5s forwards; }
  .plan-call { opacity: 0; transform: translateY(14px) scale(.94); animation: call-in .6s cubic-bezier(.16,1,.3,1) 2.3s forwards; }
  .pc-icon { animation: call-ring 2.4s ease-in-out 2.9s infinite; }
  .pp-call { animation: call-pulse 2.4s ease-out 2.9s infinite; }
}
@keyframes mark-draw { to { stroke-dashoffset: 0; } }
@keyframes call-in { to { opacity: 1; transform: none; } }
@keyframes call-ring {
  0%, 30%, 100% { transform: none; }
  5% { transform: rotate(-14deg); } 10% { transform: rotate(12deg); } 15% { transform: rotate(-10deg); } 20% { transform: rotate(8deg); } 25% { transform: rotate(-4deg); }
}
@keyframes call-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,138,61,.55); } 70%, 100% { box-shadow: 0 0 0 1.2em rgba(255,138,61,0); } }

/* ---------- 21. Polish ---------- */
/* Phones and tablets: heading and words first, then the picture */
@media (max-width: 959px) {
  .split > .art, .split > .photo-panel { order: 2; }
  .split.flip > :first-child { order: 2; }
}
/* Drafting symbols only where the side margins are wide enough to hold them */
@media (max-width: 1399px) { .bg-shapes { display: none; } }
/* Job journey: keep "Roofing Co." readable on the photo */
.j-site { background: linear-gradient(0deg, rgba(10,14,20,.92) 25%, rgba(10,14,20,.45)), url(../images/roofer.jpg) center 30% / cover; }
.j-site span { text-shadow: 0 1px 3px rgba(0,0,0,.8); }
/* Trust badges: same height, text top-aligned */
.trust div { display: flex; flex-direction: column; justify-content: flex-start; }
/* Headline wraps tidily, no single words left alone */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* Headings for screen readers only (keeps the page outline in order) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }


/* ---------- 23. Live concept sites (home cards + Services "after") ----------
   A real concept page from concepts/, shown at phone width and scaled to fit its box. */
.ba2-view { container-type: inline-size; overflow: hidden; position: relative; }
/* Home concept cards: a real concept page, shown at phone width and scaled to fit */
.concept-screen { position: relative; height: 440px; overflow: hidden; background: var(--navy); border-bottom: 1px solid var(--line); }
.concept-screen iframe, .ba2-view iframe { position: absolute; top: 0; left: 0; width: 390px; height: calc(100% / var(--s, 1)); border: 0; transform: scale(var(--s, 1)); transform-origin: 0 0; pointer-events: none; }
@media (hover: hover) { .concept-screen iframe, .ba2-view iframe { pointer-events: auto; } }

/* Services: before and after */
.ba2 { display: grid; gap: 28px; margin-top: 40px; }
@media (min-width: 900px) { .ba2 { grid-template-columns: 1fr 1fr; gap: 32px; } }
.ba2-side { margin: 0; }
.ba2-side figcaption { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--font-head); font-weight: 700; }
.ba2-tag { padding: 3px 10px; border-radius: 6px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.ba2-tag.bad { background: #3A2326; color: #FFB4B4; }
.ba2-tag.good { background: var(--yellow); color: var(--navy); }
.ba2-screen { border-radius: 14px; overflow: hidden; border: 1px solid rgba(77,163,255,.22); box-shadow: 0 24px 48px -22px rgba(0,0,0,.8); background: #0E1622; }
.ba2-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1B2433; }
.ba2-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3A4658; }
.ba2-bar span { margin-left: 8px; padding: 3px 10px; border-radius: 6px; background: #0E1622; color: var(--muted); font-family: var(--font-mono); font-size: .72rem; }
.ba2-view { height: 420px; }
.ba2-notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.ba2-notes li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.ba2-notes li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: center / 10px no-repeat; }
.ba2-notes.bad li::before { background-color: #3A2326; background-image: linear-gradient(45deg, transparent 45%, #FFB4B4 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, #FFB4B4 45% 55%, transparent 55%); }
.ba2-notes.good li::before { background-color: var(--blue); background-image: linear-gradient(transparent, transparent); box-shadow: inset 0 0 0 5px var(--blue), inset 0 0 0 9px var(--navy); }

/* The "before" site: a believable dated trade website */
.old { height: 100%; font-size: 3cqw; background: #C9C9C9; color: #111; font-family: "Times New Roman", Times, serif; line-height: 1.3; }
.old-top { background: #003366; color: #FFFF66; padding: .8em 1em; text-align: center; }
.old-logo { display: block; font-family: Impact, "Arial Black", sans-serif; font-size: 1.6em; letter-spacing: .04em; }
.old-est { font-size: .75em; color: #fff; font-style: italic; }
.old-nav { background: #99CC00; color: #003366; text-align: center; padding: .35em; font-size: .78em; text-decoration: underline; }
.old-body { padding: .8em 1em; text-align: center; }
.old-h { margin: .2em 0 .5em; color: #CC0000; font-size: 1.5em; font-family: "Comic Sans MS", "Chalkboard SE", cursive; }
.old-img { display: flex; align-items: center; justify-content: center; gap: .4em; height: 6em; margin: 0 auto .6em; width: 80%; border: 1px solid #888; background: #E8E8E8; font-size: .7em; color: #555; }
.old-broken { width: 1.4em; height: 1.6em; border: 1px solid #888; background: linear-gradient(135deg, #fff 45%, #c00 45% 55%, #fff 55%); }
.old-p { margin: 0 0 .6em; font-size: .7em; text-align: justify; }
.old-uc { margin: .4em 0 .6em; color: #CC0000; font-weight: bold; font-size: .75em; }
.old-counter { display: inline-block; margin: .3em 0 .6em; padding: .2em .5em; background: #000; color: #33FF33; font-family: "Courier New", monospace; font-size: .7em; }
.old-foot { margin: 0; font-size: .6em; color: #444; }

/* ---------- 24. Chat box (bottom right) ---------- */
.chat { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
@media (min-width: 1100px) { .chat { right: 24px; bottom: 24px; } }
.chat-btn {
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--blue); color: #06111F;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,.8), 0 0 0 4px rgba(11,26,46,.9);
  transition: transform .2s ease, background .2s ease;
}
.chat-btn:hover { transform: translateY(-2px); background: #6BB3FF; }
.chat-btn svg { width: 26px; height: 26px; }
.chat-btn .i-close, .chat.is-open .chat-btn .i-open { display: none; }
.chat.is-open .chat-btn .i-close { display: block; }
.chat-hint {
  position: relative; max-width: 260px; padding: 14px 34px 14px 16px; border-radius: 16px 16px 4px 16px;
  background: #F5F8FC; color: #13233A; box-shadow: 0 18px 36px -14px rgba(0,0,0,.85); font-size: .95rem; cursor: pointer;
}
.chat-hint p { margin: 0; }
.chat-hint-x { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border: 0; background: none; color: #45566E; font-size: 1.2rem; cursor: pointer; border-radius: 50%; }
.chat-hint-x:hover { background: #E3EAF3; }
.chat-panel {
  width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 180px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; border: 1px solid rgba(77,163,255,.25); background: var(--navy-2);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.85);
}
.chat-panel[hidden], .chat-hint[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--card); border-bottom: 1px solid rgba(77,163,255,.18); }
.chat-head b { display: block; font-family: var(--font-head); }
.chat-head span { font-size: .82rem; color: var(--muted); }
.chat-badge { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--blue); color: #06111F; font-family: var(--font-head); font-weight: 700; }
.chat-close { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; }
.chat-close:hover { background: rgba(255,255,255,.06); color: var(--text); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chat-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: .95rem; line-height: 1.45; }
.chat-msg.bot { align-self: flex-start; background: var(--card); border: 1px solid rgba(77,163,255,.14); border-bottom-left-radius: 4px; }
.chat-msg.me { align-self: flex-end; background: var(--blue); color: #06111F; border-bottom-right-radius: 4px; }
.chat-msg a { color: var(--blue); }
.chat-link { display: inline-block; margin-top: 8px; font-weight: 600; text-underline-offset: 3px; }
.chat-acts { display: grid; gap: 6px; margin-top: 10px; }
.chat-act { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(77,163,255,.35); background: none; color: var(--text); font: 600 .88rem var(--font-head); text-decoration: none; cursor: pointer; }
.chat-act:first-child { background: var(--blue); color: #06111F; border-color: var(--blue); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chat-chip { padding: 7px 12px; border-radius: 99px; border: 1px solid rgba(77,163,255,.35); background: none; color: var(--text); font-size: .85rem; cursor: pointer; }
.chat-chip:hover { border-color: var(--blue); background: rgba(77,163,255,.1); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(77,163,255,.18); background: var(--card); }
.chat-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--navy); color: var(--text); font: inherit; font-size: .95rem; }
.chat-form input:focus { outline: none; border-color: var(--blue); }
.chat-form button { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--blue); color: #06111F; display: grid; place-items: center; cursor: pointer; }
.chat-form button svg { width: 20px; height: 20px; }
.chat-cb { display: grid; gap: 8px; }
.chat-cb p { margin: 0; }
.chat-cb label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; }
.chat-cb input { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--navy); color: var(--text); font: inherit; }
.chat-cb button { min-height: 42px; border-radius: 99px; border: 0; background: var(--blue); color: #06111F; font: 700 .92rem var(--font-head); cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .chat-panel:not([hidden]) { animation: chat-in .25s cubic-bezier(.16,1,.3,1); }
  .chat-hint:not([hidden]) { animation: chat-in .35s cubic-bezier(.16,1,.3,1); }
}
@keyframes chat-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) { .chat-hint { max-width: 220px; font-size: .9rem; } }

/* ---------- 25. Legal pages ---------- */
.legal { display: grid; gap: 32px; }
@media (min-width: 960px) { .legal { grid-template-columns: 260px 1fr; gap: 56px; align-items: start; } .legal-toc { position: sticky; top: 96px; } }
.legal-toc { padding: 18px 20px; border-radius: var(--radius); border: 1px solid rgba(77,163,255,.18); background: var(--card); }
.legal-toc p { margin: 0 0 8px; font-family: var(--font-head); font-weight: 700; }
.legal-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 2px; font-size: .92rem; }
.legal-toc a { display: inline-block; padding: 3px 0; color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--text); }
.legal-body h2 { display: flex; align-items: baseline; gap: 12px; font-size: 1.4rem; margin: 1.8em 0 .5em; scroll-margin-top: 96px; }
.legal-body h2:first-of-type { margin-top: .6em; }
.legal-body h3 { font-size: 1.05rem; margin: 1.3em 0 .3em; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin: 6px 0; }
.legal-num { flex: none; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 8px; display: inline-grid; place-items: center; background: rgba(77,163,255,.14); color: var(--blue); font-family: var(--font-mono); font-size: .85rem; }
.legal-note { padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--yellow); color: var(--yellow); font-size: .92rem; }

/* ---------- 26. Pricing: typical agency cost against ours ---------- */
.compare { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.cmp { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); text-align: center; }
.cmp-label { display: block; font-family: var(--font-head); font-weight: 700; }
.cmp-price { margin: 6px 0 2px; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.6rem, 9vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; }
.cmp-note { color: var(--muted); font-size: .95rem; }
.cmp-old .cmp-label, .cmp-old .cmp-price { color: var(--muted); }
.cmp-new { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 18px 40px -18px rgba(0,0,0,.75); }
.cmp-new .cmp-price { color: var(--blue); }
.cmp-save { max-width: 56ch; margin: 22px auto 0; text-align: center; font-size: 1.1rem; }
.cmp-save strong { color: var(--yellow); }
@media (min-width: 700px) { .compare { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* ---------- 27. Pricing: payback example (£175 in, one job, 10x back) ---------- */
.roi { display: grid; gap: 10px; justify-items: center; max-width: 980px; margin: 36px auto 0; }
.roi-step { width: 100%; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); text-align: center; }
.roi-label { display: block; font-family: var(--font-head); font-weight: 700; color: var(--muted); }
.roi-num { margin: 4px 0 2px; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 8vw, 3.2rem); line-height: 1; letter-spacing: -0.03em; }
.roi-note { color: var(--muted); font-size: .95rem; }
.roi-field { display: flex; align-items: center; justify-content: center; gap: 2px; margin: 6px auto 4px; max-width: 220px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 7vw, 2.6rem); line-height: 1.2; }
.roi-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(77,163,255,.25); }
.roi-field input { width: 100%; min-width: 0; min-height: var(--tap); border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; -moz-appearance: textfield; appearance: textfield; }
.roi-field input:focus { outline: none; }
.roi-field input::-webkit-inner-spin-button, .roi-field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.roi-op { font-family: var(--font-head); font-size: 1.8rem; color: var(--blue); line-height: 1; transform: rotate(90deg); }
.roi-op:nth-of-type(2) { transform: none; }
.roi-win { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow), 0 18px 40px -18px rgba(0,0,0,.75); }
.roi-win .roi-num { color: var(--yellow); }
.roi-small { margin: 18px auto 0; text-align: center; color: var(--muted); font-size: .85rem; }
@media (min-width: 860px) {
  .roi { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 16px; }
  .roi-op { transform: none; }
}

