/* TBS homepage prototype, Version 4.
   Tokens map directly to theme.json in the WordPress build.
   Colour rules:
   gold  = primary actions and the single hub highlight
   blue  = links, icons, the One Provider band and form focus
   cyan  = small accents on dark backgrounds only
   navy  = text and dark surfaces */
:root {
  --navy-900: #07172f;
  --navy-800: #0b2040;
  --blue-700: #073e90;
  --blue-100: #e8eef8;
  --gold-400: #ffd021;
  --gold-300: #ffdd5c;
  --cyan-400: #00d4ee;
  --teal-600: #007a9a;
  --slate-600: #58687c;
  --slate-300: #aebed2;
  --line: #dfe4ec;
  --mist: #f5f6f8;
  --white: #ffffff;
  --on-dark: #d7deea;
  --line-dark: rgba(174, 190, 210, .28);

  --font-head: Manrope, "Segoe UI", system-ui, sans-serif;
  --font-body: Inter, "Segoe UI", system-ui, sans-serif;

  /* Type scale. Every text size on the page comes from this list. */
  --fs-xs: .8125rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-h2: clamp(1.75rem, 3.2vw, 2.5rem);
  --fs-h1: clamp(2.125rem, 4.1vw, 3.5rem);

  --gutter: clamp(20px, 4.5vw, 64px);
  --section: clamp(44px, 7vw, 96px);
  --gap: 20px;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow: 0 16px 44px rgba(7, 23, 47, .12);
  --icon: 24px;
  --quote-lines: 7;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--navy-900); font: 400 var(--fs-base)/1.6 var(--font-body); }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 800; letter-spacing: -.02em; line-height: 1.14; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-700); }
a:hover { color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--blue-700); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .proto-bar :focus-visible, .site-footer :focus-visible { outline-color: var(--cyan-400); }

.wrap { width: min(100%, 1280px); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.eyebrow { margin-bottom: 12px; color: var(--teal-600); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dark .eyebrow { color: var(--cyan-400); }
.lead { color: var(--slate-600); font-size: var(--fs-md); }
.dark { color: var(--white); }
.dark .lead { color: var(--on-dark); }

.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: var(--r-sm); background: var(--white); }
.skip:focus { top: 12px; }

/* Buttons: one shape, one height. Gold is the primary action everywhere. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--r-sm); font: 700 var(--fs-base)/1.2 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .16s ease, border-color .16s ease; }
.btn-accent { background: var(--gold-400); color: var(--navy-900); }
.btn-accent:hover { background: var(--gold-300); color: var(--navy-900); }
.btn-primary { background: var(--blue-700); color: var(--white); }
.btn-primary:hover { background: var(--navy-900); color: var(--white); }
.btn-ghost { border-color: var(--slate-300); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; }
.link-arrow::after { content: "\2192"; transition: transform .16s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Prototype-only review items */
.proto-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; padding: 6px var(--gutter); background: var(--navy-900); color: var(--white); font-size: var(--fs-xs); }
.proto-bar button { min-height: 32px; padding: 2px 12px; border: 1px solid var(--slate-300); border-radius: 6px; background: transparent; color: var(--white); font: 600 var(--fs-xs) var(--font-body); cursor: pointer; }
.proto-bar button[aria-pressed="true"] { border-color: var(--white); background: var(--white); color: var(--navy-900); }
.review-tag { display: inline-block; padding: 0 7px; border-radius: 99px; background: #fff3c4; color: #5c4600; font: 600 var(--fs-xs)/1.6 var(--font-body); white-space: nowrap; }
.confirm { display: inline-block; padding: 0 6px; border-radius: 4px; background: #fff3c4; color: #5c4600; font-size: var(--fs-xs); font-weight: 600; line-height: 1.6; }
.toast { position: fixed; left: 50%; bottom: 84px; z-index: 90; width: min(92vw, 460px); padding: 12px 16px; border-radius: var(--r-sm); background: var(--navy-900); color: var(--white); font-size: var(--fs-sm); text-align: center; box-shadow: var(--shadow); transform: translateX(-50%); }
body.show-map [data-edit] { position: relative; outline: 2px dashed var(--teal-600); outline-offset: -4px; }
body.show-map [data-edit]::before { content: attr(data-edit); position: absolute; top: 8px; left: 8px; z-index: 30; max-width: min(92%, 560px); padding: 5px 10px; border-radius: 6px; background: var(--teal-600); color: var(--white); font: 600 var(--fs-xs)/1.35 var(--font-body); }

/* Top bar and header */
.top-bar { border-bottom: 1px solid var(--line); background: var(--mist); color: var(--slate-600); font-size: var(--fs-xs); }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.top-bar a { display: inline-flex; align-items: center; min-height: 36px; color: var(--navy-900); font-weight: 600; text-decoration: none; }
.top-bar a:hover { color: var(--blue-700); text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; min-height: 44px; }
.brand .logo { width: 148px; }
.brand .badge { width: 38px; padding-left: 0; }
.main-nav { flex: 1 1 auto; min-width: 0; }
.nav-list { display: flex; justify-content: center; gap: 0; }
.nav-top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--navy-900); font: 600 var(--fs-sm) var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; }
.nav-top:hover, .nav-top[aria-expanded="true"] { background: var(--mist); color: var(--blue-700); }
.nav-top[aria-expanded]::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.nav-top[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
.nav-acct { display: none; }
.header-util { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; margin-left: auto; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--navy-900); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--blue-700); }
.header-phone:hover { color: var(--blue-700); }
.header-util .btn { min-height: 44px; padding: 10px 18px; font-size: var(--fs-sm); }
.menu-toggle { display: none; min-width: 72px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); color: var(--navy-900); font: 700 var(--fs-sm) var(--font-body); cursor: pointer; }

/* Mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; padding-top: 8px; }
.mega[hidden] { display: none; }
.mega-inner { display: grid; grid-template-columns: 280px repeat(2, minmax(0, 1fr)); gap: 32px; width: min(100% - 2 * var(--gutter), 1152px); padding: 16px 32px 16px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); }
.mega-intro { padding: 20px; border-radius: var(--r-md); background: var(--mist); }
.mega-intro h2 { font-size: var(--fs-lg); letter-spacing: -.01em; }
.mega-intro p { margin: 6px 0 10px; color: var(--slate-600); font-size: var(--fs-sm); }
.mega-inner > div:not(.mega-intro) { padding-block: 16px 8px; }
.mega-group-title { margin-bottom: 6px; color: var(--slate-600); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mega a.mega-link { display: flex; align-items: center; min-height: 44px; margin-inline: -10px; padding: 6px 10px; border-radius: var(--r-sm); color: var(--navy-900); font-size: var(--fs-base); font-weight: 500; text-decoration: none; }
.mega a.mega-link:hover { background: var(--mist); color: var(--blue-700); }
.mega-plain { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 44px; font-weight: 500; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy-900); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(174, 190, 210, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(174, 190, 210, .06) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(115deg, transparent 40%, #000 100%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 5.5vw, 76px) clamp(64px, 6.5vw, 92px); }
.hero .sub { max-width: 540px; margin: 18px 0 26px; color: var(--on-dark); font-size: var(--fs-md); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 24px; color: var(--on-dark); font-size: var(--fs-sm); }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-400); }
.hub { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hub-lines { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; color: var(--cyan-400); opacity: .55; pointer-events: none; }
.hub-lines path { stroke-dasharray: 5 7; animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.hub-tile { display: flex; flex-direction: column; gap: 10px; min-height: clamp(128px, 12.5vw, 172px); padding: clamp(14px, 1.6vw, 22px); border: 1px solid var(--line-dark); border-radius: var(--r-lg); background: var(--navy-800); font: 700 var(--fs-base)/1.25 var(--font-head); }
.hub-tile svg { width: var(--icon); height: var(--icon); color: var(--cyan-400); }
.hub-tile:nth-of-type(2), .hub-tile:nth-of-type(4) { align-items: flex-end; text-align: right; }
.hub-tile:nth-of-type(3), .hub-tile:nth-of-type(4) { justify-content: flex-end; }
.hub-core { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: clamp(84px, 8vw, 108px); height: clamp(84px, 8vw, 108px); padding: 10px; border-radius: 50%; background: var(--gold-400); color: var(--navy-900); font: 800 var(--fs-sm)/1.15 var(--font-head); text-align: center; box-shadow: 0 0 0 8px var(--navy-900); transform: translate(-50%, -50%); }
.pulse { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 48px; color: var(--cyan-400); opacity: .4; }
.pulse path { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 3.2s ease-out .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Section heading block */
.section-head { max-width: 720px; margin-bottom: clamp(24px, 3.4vw, 40px); }

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.service-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); transition: border-color .16s ease, box-shadow .16s ease; }
.service-card:hover, .service-card:focus-within { border-color: var(--blue-700); box-shadow: var(--shadow); }
.service-card > svg { box-sizing: content-box; width: var(--icon); height: var(--icon); padding: 10px; border-radius: var(--r-sm); background: var(--blue-100); color: var(--blue-700); }
.service-card > p { min-height: 6.4em; color: var(--slate-600); }
.service-card > .card-line { display: none; }
.service-card ul { flex: 1; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.service-card li { padding: 3px 0; }
.service-card .review-tag { margin-top: 2px; }
.also { margin-top: 18px; color: var(--slate-600); font-size: var(--fs-sm); }

/* AI Receptionist */
.ai { background: var(--navy-900); }
.ai-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ai .lead { margin-top: 14px; }
.ai-points { display: grid; gap: 12px; margin: 22px 0; }
.ai-points li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; color: var(--on-dark); font-size: var(--fs-sm); }
.ai-points li::before { content: ""; grid-row: span 2; width: 12px; height: 7px; margin-top: 7px; border-left: 2px solid var(--cyan-400); border-bottom: 2px solid var(--cyan-400); transform: rotate(-45deg); }
.ai-points strong { color: var(--white); font: 700 var(--fs-base)/1.35 var(--font-head); }
.ai-price { margin-bottom: 22px; padding-top: 16px; border-top: 1px solid var(--line-dark); }
.ai-price strong { display: block; font: 800 var(--fs-xl)/1.25 var(--font-head); }
.ai-price span { display: block; margin-top: 4px; color: var(--on-dark); font-size: var(--fs-sm); }

.call-ui { overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--r-lg); background: var(--navy-800); box-shadow: 0 18px 48px rgba(0, 0, 0, .3); }
.call-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-dark); }
.call-icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--blue-700); color: var(--white); }
.call-icon svg { width: 20px; height: 20px; }
.call-who strong { display: block; font: 700 var(--fs-base)/1.3 var(--font-head); }
.call-who span { color: var(--on-dark); font-size: var(--fs-sm); }
.call-title { padding: 18px 20px 0; font-size: var(--fs-base); font-weight: 700; }
.call-thread { display: grid; gap: 10px; padding: 14px 20px; }
.bubble { max-width: 90%; padding: 10px 14px; font-size: var(--fs-sm); line-height: 1.5; }
.bubble span { display: block; margin-bottom: 2px; font-size: var(--fs-xs); font-weight: 600; }
.bubble.caller { justify-self: start; border-radius: 4px 12px 12px 12px; background: rgba(255, 255, 255, .1); }
.bubble.caller span { color: var(--on-dark); }
.bubble.agent { justify-self: end; border-radius: 12px 4px 12px 12px; background: var(--white); color: var(--navy-900); }
.bubble.agent span { color: var(--slate-600); }
.call-result { display: flex; align-items: center; gap: 12px; margin: 0 20px; padding: 12px 0 0; border-top: 1px solid var(--line-dark); font-size: var(--fs-sm); font-weight: 600; }
.call-result svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--cyan-400); }
.call-result span { display: block; color: var(--on-dark); font-size: var(--fs-xs); font-weight: 600; }
.call-ui small { display: block; padding: 10px 20px 16px; color: var(--on-dark); font-size: var(--fs-xs); }

/* Cyber security */
.cyber-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 5vw, 72px); align-items: end; margin-bottom: clamp(24px, 3.4vw, 40px); }
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.capability { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.capability h3 { margin-bottom: 12px; }
.capability ul { display: grid; gap: 8px; }
.capability li { position: relative; padding-left: 22px; font-size: var(--fs-base); line-height: 1.45; }
.capability li::before { content: ""; position: absolute; left: 1px; top: 7px; width: 11px; height: 6px; border-left: 2px solid var(--blue-700); border-bottom: 2px solid var(--blue-700); transform: rotate(-45deg); }
.framework-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 5vw, 72px); margin-top: var(--gap); padding: 24px; border-radius: var(--r-lg); background: var(--mist); }
.framework-label { margin-bottom: 6px; color: var(--slate-600); font-size: var(--fs-sm); font-weight: 600; }
.framework-names { display: flex; flex-wrap: wrap; gap: 4px 20px; font: 700 var(--fs-lg)/1.3 var(--font-head); }
.framework-note { margin-top: 6px; color: var(--slate-600); font-size: var(--fs-sm); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border: 1px solid var(--slate-300); border-radius: var(--r-sm); background: var(--white); color: var(--navy-900); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.chips a:hover { border-color: var(--blue-700); color: var(--blue-700); }
.cyber-more { margin-top: 14px; }

/* One Provider */
.provider { background: var(--blue-700); }
.provider .lead { max-width: 680px; margin-top: 12px; }
.steps { counter-reset: step; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.steps::before { content: ""; position: absolute; left: 20px; right: 25%; top: 19px; height: 1px; background: rgba(255, 255, 255, .4); }
.steps li { counter-increment: step; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--white); color: var(--blue-700); font: 800 var(--fs-base) var(--font-head); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: #e6ebf3; }

/* Why choose TBS */
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.mission { margin-top: 14px; color: var(--slate-600); font-size: var(--fs-md); }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.value { padding-top: 14px; border-top: 2px solid var(--line); }
.value:last-child { grid-column: 1 / -1; }
.value h3 { margin-bottom: 4px; }
.value p { color: var(--slate-600); font-size: var(--fs-sm); line-height: 1.6; }

/* Testimonials */
.quotes { background: var(--mist); }
.quotes-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.quote-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.quote-controls button { display: inline-flex; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--slate-300); border-radius: var(--r-sm); background: var(--white); color: var(--navy-900); font: 600 var(--fs-sm) var(--font-body); cursor: pointer; }
.quote-controls button:hover { border-color: var(--blue-700); color: var(--blue-700); }
.quote-controls svg { width: 18px; height: 18px; }
.quote-status { min-width: 64px; color: var(--slate-600); font-size: var(--fs-sm); }
.quote-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; align-content: start; }
.quote-list li[hidden] { display: none; }
.quote { display: flex; flex-direction: column; gap: 12px; height: 100%; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.quote::before { content: "\201C"; display: block; height: 26px; color: var(--blue-700); font: 800 3rem/1 var(--font-head); }
.quote blockquote { margin: 0; font-size: var(--fs-base); line-height: 1.65; }
.quote blockquote.clamped { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: var(--quote-lines); }
.quote-more { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--blue-700); font: 700 var(--fs-sm) var(--font-body); cursor: pointer; }
.quote-more:hover { color: var(--navy-900); text-decoration: underline; }
.quote-more[hidden] { display: block; visibility: hidden; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--slate-600); font-size: var(--fs-sm); line-height: 1.4; }
.quote figcaption strong { display: block; color: var(--navy-900); font-size: var(--fs-base); }
.avatar { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--navy-900); color: var(--white); font: 700 var(--fs-xs) var(--font-head); }

/* Logos */
.logos-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 12px; }
.logos-head h2 { font-size: var(--fs-base); font-weight: 700; letter-spacing: -.01em; }
.logo-block + .logo-block { margin-top: 24px; }
.logo-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.logo-block.partners .logo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.logo-tile { display: flex; align-items: center; justify-content: center; height: 72px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.logo-tile img { max-width: 100%; max-height: 44px; width: auto; }
.logo-pending { border-style: dashed; color: var(--slate-600); font-size: var(--fs-xs); text-align: center; }

/* Contact */
.contact { background: var(--navy-900); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.contact .lead { margin-top: 12px; }
.contact-call { margin-top: 24px; }
.contact-list { display: grid; gap: 2px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-dark); }
.contact-list li { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.contact-list svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--cyan-400); }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); font-size: var(--fs-sm); text-underline-offset: 3px; overflow-wrap: anywhere; }
.enquiry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: var(--white); color: var(--navy-900); box-shadow: 0 18px 48px rgba(0, 0, 0, .3); }
.enquiry h3 { grid-column: 1 / -1; font-size: var(--fs-xl); font-weight: 800; }
.field { display: grid; gap: 4px; font-size: var(--fs-sm); font-weight: 600; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid var(--slate-600); border-radius: var(--r-sm); background: var(--white); color: var(--navy-900); font: 400 var(--fs-base) var(--font-body); }
.field input:focus, .field textarea:focus { border-color: var(--blue-700); outline: 2px solid var(--blue-700); outline-offset: 0; }
.dark .enquiry :focus-visible { outline-color: var(--blue-700); }
.enquiry .note { grid-column: 1 / -1; color: var(--slate-600); font-size: var(--fs-xs); }
.enquiry .btn { grid-column: 1 / -1; min-height: 52px; font-size: var(--fs-md); }

/* Footer */
.site-footer { padding-block: 48px 24px; background: var(--navy-800); color: var(--on-dark); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) 1.2fr; gap: 32px; }
.footer-logo { width: 148px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--white); }
.footer-brand p { margin-top: 12px; }
.site-footer h2 { margin-bottom: 8px; color: var(--white); font: 700 var(--fs-base) var(--font-body); letter-spacing: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 34px; color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer li { line-height: 1.5; }
.footer-legal li { padding: 4px 0; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: var(--fs-xs); }

/* Phone accordions, enabled by main.js. Without it all text simply shows. */
.disclose-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.disclose-btn::after { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin: -4px 4px 0 0; border-right: 2px solid var(--slate-600); border-bottom: 2px solid var(--slate-600); transform: rotate(45deg); }
.disclose-btn[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }

/* Sticky phone bar */
.call-bar { display: none; transition: transform .2s ease; }
.call-bar.is-away { transform: translateY(100%); }

/* About history page */
.history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.history-grid figure { margin: 0; }
.history-grid img { border-radius: var(--r-lg); }
.history-grid figcaption { margin-top: 10px; color: var(--slate-600); font-size: var(--fs-sm); }

/* Small laptop and tablet: menu button */
@media (max-width: 1239px) {
  .header-inner { position: relative; }
  .menu-toggle { display: block; }
  .nav-acct { display: list-item; }
  .main-nav { position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 100%; max-height: calc(100vh - 80px); overflow-y: auto; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
  .main-nav:not(.open) { display: none; }
  .nav-list { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .nav-top { justify-content: space-between; width: 100%; min-height: 48px; font-size: var(--fs-base); }
  .mega { position: static; padding-top: 0; }
  .mega-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; width: 100%; padding: 4px 10px 12px; border: 0; background: none; box-shadow: none; }
  .mega-intro { grid-column: 1 / -1; padding: 10px 12px; }
  .mega-intro h2 { display: none; }
  .mega-intro p { margin-top: 0; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card > p { min-height: 0; }
  .service-card ul { flex: 0 1 auto; }
  .service-card .link-arrow { margin-top: auto; }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .footer-brand { display: flex; align-items: center; gap: 16px; grid-column: 1 / -1; }
  .footer-brand p { margin: 0; }
}

/* Tablet */
@media (max-width: 899px) {
  .ai-inner, .contact-inner, .history-grid, .why-grid { grid-template-columns: minmax(0, 1fr); }
  .why-grid { gap: 24px; }
  .capability { padding: 18px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
  .steps::before { display: none; }
  .quote-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-tile { height: 64px; }
  .top-bar a, .site-footer ul a { min-height: 44px; }
}

/* Hero stacks only when two columns would be cramped */
@media (max-width: 699px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .cyber-head, .capability-grid, .framework-band { grid-template-columns: minmax(0, 1fr); }
}

/* Phone */
@media (max-width: 599px) {
  :root { --gutter: 18px; --section: 40px; --gap: 12px; --quote-lines: 5; }
  body { line-height: 1.5; }
  .lead, .mission { font-size: var(--fs-base); }
  .eyebrow { margin-bottom: 8px; }
  .btn { padding: 10px 12px; font-size: var(--fs-sm); }
  .btn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .btn-row .btn { width: 100%; }
  .ai .btn-row { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
  .section-head { margin-bottom: 16px; }

  .proto-bar { padding-block: 4px; }
  .top-bar, .header-util { display: none; }
  .header-inner { min-height: 60px; gap: 10px; }
  .brand .logo { width: 104px; }
  .brand .badge { width: 30px; }
  .menu-toggle { margin-left: auto; }
  .main-nav { max-height: calc(100vh - 60px); }
  .mega-inner { grid-template-columns: minmax(0, 1fr); }

  .hero-inner { gap: 18px; padding-block: 28px 40px; }
  .hero .sub { margin: 10px 0 16px; font-size: var(--fs-base); }
  .hero-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; margin-top: 12px; font-size: var(--fs-xs); }
  .hub { gap: 8px; }
  .hub-lines, .hub-core { display: none; }
  .hub-tile, .hub-tile:nth-of-type(n) { flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; min-height: 48px; padding: 8px 10px; border-radius: var(--r-sm); font-size: var(--fs-sm); text-align: left; }
  .hub-tile svg { flex: 0 0 20px; width: 20px; height: 20px; }
  .pulse { height: 24px; }

  /* Service cards: the capability list carries the detail, so the summary sentence steps back. */
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; height: auto; padding: 12px 14px; }
  .service-card > svg { grid-row: 1; width: 20px; height: 20px; padding: 10px; }
  .service-card h3 { font-size: var(--fs-md); }
  .service-card > p { display: none; }
  .service-card > .card-line { display: block; grid-column: 2 / -1; grid-row: 2; min-height: 0; margin-top: -8px; font-size: var(--fs-sm); line-height: 1.3; }
  .service-card ul { grid-column: 1 / -1; grid-row: 3; padding-top: 6px; font-size: var(--fs-sm); color: var(--slate-600); }
  .service-card li { padding: 1px 0; }
  .service-card .link-arrow { grid-column: 3; grid-row: 1; margin: 0; font-size: var(--fs-sm); }
  .service-card:hover, .service-card:focus-within { box-shadow: none; }
  .also { margin-top: 12px; }

  .ai-inner { gap: 20px; }
  .ai-points { gap: 6px; margin: 14px 0; }
  .ai-desc { display: none; }
  .ai-points li::before { grid-row: auto; }
  .ai-price { margin-bottom: 14px; padding-top: 12px; }
  .ai-price strong { font-size: var(--fs-lg); }
  .ai-price span { font-size: var(--fs-xs); line-height: 1.45; }
  .call-head { padding: 10px 14px; }
  .call-icon { flex-basis: 34px; height: 34px; }
  .call-title { padding: 12px 14px 0; }
  .call-thread { gap: 8px; padding: 10px 14px; }
  .bubble { max-width: 94%; padding: 8px 11px; line-height: 1.4; }
  .call-result { margin: 0 14px; padding-top: 10px; line-height: 1.35; }
  .call-ui small { padding: 8px 14px 12px; line-height: 1.35; }

  .cyber-head { gap: 6px; margin-bottom: 12px; }
  .capability-grid { gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); }
  .capability { padding: 0 14px; border: 0; border-radius: 0; }
  .capability + .capability { border-top: 1px solid var(--line); }
  .capability h3 { margin: 0; font-size: var(--fs-base); }
  .capability ul { gap: 4px; padding-bottom: 12px; }
  .capability ul[hidden] { display: none; }
  .capability li { font-size: var(--fs-sm); }
  .capability li::before { top: 6px; }
  .framework-band { gap: 12px; margin-top: 10px; padding: 14px; border-radius: var(--r-md); }
  .framework-names { font-size: var(--fs-base); }
  .framework-note { display: none; }
  .chips a { padding: 4px 12px; }
  .cyber-more { margin-top: 6px; }

  .provider .lead { margin-top: 8px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
  .steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; }
  .steps li::before { grid-row: span 2; width: 32px; height: 32px; margin: 0; font-size: var(--fs-sm); }
  .steps h3 { margin: 0; font-size: var(--fs-base); }
  .steps p { font-size: var(--fs-sm); line-height: 1.4; }

  .why-grid { gap: 12px; }
  .mission { margin-top: 8px; }
  .values { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
  .value { padding: 0; border-top: 0; border-bottom: 1px solid var(--line); }
  .value h3 { margin: 0; font-size: var(--fs-base); }
  .value p { padding-bottom: 10px; }

  .quotes-head { margin-bottom: 12px; gap: 10px; }
  .quote-list { grid-template-columns: minmax(0, 1fr); }
  .quote-controls { width: 100%; }
  .quote-controls .ctl-label { display: none; }
  .quote-status { order: 4; min-width: 0; margin-left: auto; }
  .quote { gap: 8px; padding: 16px; }
  .quote::before { height: 20px; font-size: 2.25rem; }
  .quote blockquote { line-height: 1.55; }
  .quote-more[hidden] { display: none; }
  .quote figcaption { padding-top: 10px; }
  .avatar { flex-basis: 36px; height: 36px; }

  .logo-block + .logo-block { margin-top: 16px; }
  .logos-head { margin-bottom: 8px; }
  .logo-grid, .logo-block.partners .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .logo-tile { height: 56px; padding: 8px; border-radius: var(--r-sm); }
  .logo-tile img { max-height: 34px; }

  .contact-inner { gap: 18px; }
  .contact .lead { margin-top: 6px; }
  .contact-call { margin-top: 14px; width: 100%; }
  .contact-list { margin-top: 10px; padding-top: 6px; }
  .enquiry { gap: 10px; padding: 16px; }
  .enquiry h3 { font-size: var(--fs-lg); }
  .field { gap: 2px; font-size: var(--fs-xs); }
  .field input, .field textarea { min-height: 44px; padding: 8px 10px; }

  .site-footer { padding-block: 26px 74px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .footer-brand, .footer-legal { grid-column: 1 / -1; }
  .footer-brand { display: block; }
  .footer-logo { width: 116px; }
  .footer-brand p { margin-top: 8px; }
  .footer-legal ul { display: flex; flex-wrap: wrap; gap: 2px 14px; }
  .footer-legal li { padding: 2px 0; }
  .footer-base { margin-top: 16px; padding-top: 10px; }

  .call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; padding: 6px 10px; border-top: 1px solid var(--line); background: var(--white); box-shadow: 0 -4px 14px rgba(7, 23, 47, .08); }
  .call-bar .btn { min-height: 44px; padding: 6px; }
  .toast { bottom: 70px; }
}

@media (max-width: 359px) {
  .btn, .review-tag { white-space: normal; }
  .enquiry { grid-template-columns: minmax(0, 1fr); }
  .btn-row, .ai .btn-row { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pulse path { stroke-dashoffset: 0; }
}
