/* Blue Unicorn Digital.
   White and light grey, near-black type, Saltire blue for actions. Large rounded cards, the product shown on
   devices, and scroll scenes driven by GSAP (site.js). Every page reads fully without JavaScript.
   Text meets WCAG AAA. */

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #515154;           /* 8:1 on white, 7.4:1 on --bg-2 */
  --line: #d2d2d7;
  --accent: #0050a0;          /* Saltire blue, 7.6:1 with white */
  --accent-deep: #003c78;
  --black: #000000;
  --navy: #071a33;            /* deep Saltire night */
  --sky: #e6f0fb;             /* pale Saltire tint */
  --sky-2: #cfe1f7;
  --on-navy-muted: #c3cedd;   /* 11:1 on --navy */
  --on-dark: #f5f5f7;
  --on-dark-muted: #c7c7cc;   /* 11:1 on black */

  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --t-hero: clamp(38px, 7.4vw, 112px);
  --t-h2: clamp(36px, 5vw, 72px);
  --t-h3: clamp(22px, 2vw, 30px);
  --t-lead: clamp(19px, 1.6vw, 24px);
  --t-body: 17px;
  --t-small: 14px;

  --max: 1240px;
  --pad: max(22px, calc((100% - var(--max)) / 2));
  --gap: clamp(14px, 1.6vw, 22px);
  --section: clamp(96px, 12vw, 168px);
  --radius: 28px;
  --radius-s: 14px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* On the sky tint the secondary grey is darkened to keep 7:1 */
.site-footer, .build, .cell--sky, .intro__stage { --muted: #3d4047; }
.cell--sky .more, .build a:not(.button), .site-footer a:not(.button) { color: var(--accent-deep); }

/* ── Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: #b8b8be transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body)/1.5 var(--sans);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  caret-color: var(--accent);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.4vw, 80px); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); text-decoration: none; transition: color 160ms ease; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
main p a:not(.button):not(.more), main li a:not(.button):not(.more):not(.card):not(.read):not(.tile__link), .faq__answer a { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
abbr[title] { text-decoration: none; }
strong, b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 60; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 999px; }
.skip-link:focus { top: 10px; color: #fff; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
main { display: block; }
main:focus { outline: none; }
main > section, .builder > section { padding-inline: var(--pad); margin-block: var(--section); }

/* Shared section opening: heading, then a sentence */
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(36px, 4.5vw, 64px); }
.section-intro p { font-size: var(--t-lead); color: var(--muted); max-width: 40ch; }
.section-intro--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
@media (max-width: 860px) { .section-intro { grid-template-columns: 1fr; } }

/* ── Buttons, links, fields ────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--accent); color: #fff;
  font: 500 17px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease);
}
.button:hover { background: var(--accent-deep); color: #fff; text-decoration: none; }
.button:active { transform: scale(0.97); }
.button--ghost { background: var(--accent); color: #fff; }
.button--ghost:hover { background: var(--accent-deep); color: #fff; }
/* On blue and navy: solid white with bold blue words */
.button.button--light, a.button.button--light { background: #fff; color: var(--accent); font-weight: 600; }
.button.button--light:hover, a.button.button--light:hover { background: var(--sky-2); color: var(--accent-deep); }
.more { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 500; }
.more::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin-left: 2px; transition: transform 240ms var(--ease); }
a:hover .more::after, a.more:hover::after { transform: translateX(3px) rotate(45deg); }
.link-button { min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.arrow { display: inline-block; width: 0.8em; transition: transform 200ms var(--ease); }
.arrow::before { content: "→"; }
a:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }

label { font-weight: 500; }
input, textarea, select {
  width: 100%; min-height: 52px; padding: 14px 16px;
  border: 1.5px solid #86868b; border-radius: 12px;
  background: var(--bg); color: var(--ink); font: 400 17px/1.4 var(--sans);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
textarea { min-height: 160px; resize: vertical; }
input:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 80, 160, 0.25); } /* taste-skill-ignore: focus ring */
input[type="checkbox"] { width: auto; min-height: 0; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field__hint { color: var(--muted); font-size: 15px; }
.field__error { color: #b00020; font-weight: 600; font-size: 15px; }
[aria-invalid="true"] { border-color: #b00020; }
.form-errors { padding: 20px 24px; margin-bottom: 28px; border-radius: var(--radius-s); background: #fdecee; color: #7a0016; }
.form-errors a { color: #7a0016; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; font-weight: 600; margin-bottom: 12px; }

/* Chips and toggles: tickable needs */
.chips, .toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.chip, .toggle { position: relative; display: inline-flex; }
.chip input, .toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span, .toggle__ui {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px;
  border-radius: 999px; background: var(--bg-2); color: var(--ink); font-size: 16px; font-weight: 500;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease);
}
.toggle__ui::before { content: ""; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #86868b; transition: box-shadow 200ms ease, background-color 200ms ease; } /* taste-skill-ignore: inset ring */
.chip input:checked + span, .toggle input:checked + .toggle__ui { background: var(--ink); color: #fff; }
.toggle input:checked + .toggle__ui::before { background: #fff; box-shadow: inset 0 0 0 5px var(--accent); } /* taste-skill-ignore: inset ring */
.chip input:hover + span, .toggle input:hover + .toggle__ui { background: #e8e8ed; }
.chip input:checked:hover + span, .toggle input:checked:hover + .toggle__ui { background: #333336; }
.chip input:active + span, .toggle input:active + .toggle__ui { transform: scale(0.97); }
.chip input:focus-visible + span, .toggle input:focus-visible + .toggle__ui { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ── Header: a light bar that stays at the top ─────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px 28px;
  min-height: 64px; padding: 8px var(--pad);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); /* taste-skill-ignore: a sticky bar over content */
}
.site-header__mark { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-right: auto; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.03em; }
.site-header__mark:hover { text-decoration: none; color: var(--ink); }
.site-header__mark img { width: auto; height: 48px; transition: transform 400ms var(--ease); }
.site-header__mark:hover img { transform: scale(1.04); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: var(--t-small); transition: color 160ms ease; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a[aria-current="page"] { font-weight: 600; }
.site-header__action { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: var(--t-small); font-weight: 500; transition: background-color 180ms ease, transform 160ms var(--ease); }
.site-header__action:hover { background: var(--accent-deep); color: #fff; text-decoration: none; }
.site-header__action:active { transform: scale(0.97); }
.site-header__menu { display: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--bg-2); color: var(--ink); font: 500 var(--t-small)/1 var(--sans); cursor: pointer; }
@media (max-width: 960px) {
  .site-header { flex-wrap: wrap; }
  .js .site-header__menu { display: inline-flex; align-items: center; order: 2; }
  .site-header__action { order: 3; }
  .site-nav { order: 4; flex-basis: 100%; }
  .js .site-nav[data-closed] { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 0 16px; }
  .site-nav a { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; min-height: 52px; }
}
@media (max-width: 420px) { .site-header__action { display: none; } }

.crumbs { padding: 18px var(--pad) 0; font-size: var(--t-small); color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.crumbs li + li::before { content: "›"; margin-right: 10px; }
.crumbs a { color: var(--muted); }

/* ── Home: the intro, with the product on a laptop and a phone ─────── */
.intro { margin-top: 0 !important; padding-top: clamp(48px, 7vw, 104px); text-align: center; overflow: clip; isolation: isolate; }
/* One word per headline in the serif italic, in Saltire blue: the place, or the point */
.brand-word { color: var(--accent); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: -0.02em; line-height: 0.9; }
.tile--dark .brand-word, .tile--accent .brand-word, .city .brand-word, .close .brand-word, .ai-hero .brand-word, .how .brand-word, .words .brand-word { color: inherit; }
.intro__stage { position: relative; }
.intro__stage::before { content: ""; position: absolute; z-index: -1; left: 50%; width: 100vw; top: 22%; bottom: -200px; transform: translateX(-50%); background: var(--sky); }
.intro__text { max-width: 980px; margin: 0 auto; }
.intro__title { font-size: var(--t-hero); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.intro__sub { margin: 24px auto 0; max-width: 36ch; font-size: var(--t-lead); color: var(--muted); }
.intro__ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 32px; }
.intro__stage { margin-top: clamp(48px, 6vw, 88px); }

.devices { position: relative; width: min(1080px, 100%); margin: 0 auto; padding-bottom: 4%; }
.laptop { width: 88%; margin: 0 auto; }
.laptop__lid { padding: 1.6% 1.6% 2.2%; border-radius: 22px 22px 0 0; background: #111113; box-shadow: inset 0 0 0 2px #3a3a3e; } /* taste-skill-ignore: the device bezel */
.laptop__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: #fff; text-align: left; }
.laptop__base { position: relative; height: clamp(10px, 1.5vw, 20px); width: 112%; margin-left: -6%; border-radius: 0 0 22px 22px / 0 0 14px 14px; background: #d4d5d9; }
.laptop__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 45%; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: #b9bbc1; }
.phone { position: absolute; right: 0; bottom: 0; width: 23%; padding: 1.1%; border-radius: 13% / 6.4%; background: #111113; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.45), inset 0 0 0 2px #3a3a3e; } /* taste-skill-ignore: the device floats over the laptop */
.phone__screen { aspect-ratio: 9 / 19.5; overflow: hidden; border-radius: 11% / 5.2%; background: #fff; padding: 16% 9% 9%; text-align: left; display: flex; flex-direction: column; gap: 6%; font-size: clamp(8px, 1.15vw, 14px); }
.phone__top { text-align: center; font-size: 0.95em; }
.phone__h { font-size: 1.6em; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.phone__day { color: var(--muted); font-size: 0.9em; }
.phone__slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.phone__slots li { padding: 0.6em; border-radius: 0.7em; background: var(--bg-2); text-align: center; font-weight: 500; }
.phone__slots .is-on { background: var(--accent); color: #fff; }
.phone__btn { margin-top: auto; padding: 0.8em; border-radius: 999px; background: var(--ink); color: #fff; text-align: center; font-weight: 600; }
.phone__note { color: var(--muted); font-size: 0.85em; text-align: center; }
@media (max-width: 700px) { .laptop { width: 100%; } .phone { width: 30%; right: -2%; bottom: -6%; } }

/* The sample site on the laptop screen (it scrolls as the page scrolls) */
.site { font-size: clamp(7px, 1.05vw, 14px); line-height: 1.35; color: var(--ink); }
.site__nav { display: flex; align-items: center; gap: 2.4em; padding: 1.4em 2.6em; font-size: 0.95em; color: var(--muted); }
.site__nav b { margin-right: auto; color: var(--ink); font-size: 1.15em; letter-spacing: -0.02em; }
.site__nav i, .site__hero i { font-style: normal; padding: 0.6em 1.2em; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; }
.site__hero { position: relative; margin: 0 1.4em; border-radius: 1em; overflow: hidden; }
.site__hero img { width: 100%; aspect-ratio: 16 / 7.4; object-fit: cover; }
.site__hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.42); }
.site__hero-text { position: absolute; z-index: 1; left: 2.6em; bottom: 2.4em; max-width: 30em; color: #fff; display: grid; gap: 0.9em; }
.site__h { font-size: 2.6em; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.site__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; padding: 2em 1.4em; }
.site__row div { padding: 1.4em; border-radius: 1em; background: var(--bg-2); display: grid; gap: 0.4em; }
.site__row b { font-size: 1.3em; }
.site__row span { color: var(--muted); }
.site__band { margin: 0 1.4em; padding: 2.4em; border-radius: 1em; background: var(--ink); color: #fff; display: grid; gap: 1.4em; }
.site__band .site__h { font-size: 2em; }
.site__band ul { display: flex; flex-wrap: wrap; gap: 0.8em; }
.site__band li { padding: 0.6em 1.2em; border-radius: 999px; background: #2c2c2e; }
.site__band .is-on { background: var(--accent); }
.site__split { display: grid; grid-template-columns: 1fr 1fr; gap: 2em; align-items: center; padding: 2em 1.4em; }
.site__split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1em; }
.site__split .site__h { font-size: 2em; margin-bottom: 0.6em; }
.site__foot { display: flex; justify-content: space-between; padding: 2em 2.6em; background: var(--bg-2); color: var(--muted); }
.site__foot b { color: var(--ink); }

/* ── Home: one statement, lit word by word as you scroll ─────────── */
.words { margin: 0 !important; padding-block: clamp(120px, 16vw, 240px); background: var(--accent); color: #fff; }
.words__text { max-width: 1000px; margin: 0 auto; font-size: clamp(30px, 4.2vw, 60px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; }
.words + section { margin-top: var(--section); }

/* ── Home: the bento of services ───────────────────────────────────── */
.bento__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(300px, auto); gap: var(--gap); }
.cell {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: clamp(26px, 2.8vw, 40px); border-radius: var(--radius); background: var(--bg-2); color: var(--ink); overflow: hidden;
  transition: transform 400ms var(--ease);
}
a.cell:hover { text-decoration: none; color: var(--ink); transform: scale(1.012); }
a.cell:active { transform: scale(0.99); }
.cell h3 { font-size: clamp(26px, 2.4vw, 36px); font-weight: 700; letter-spacing: -0.035em; }
.cell__text p { margin-top: 10px; color: var(--muted); max-width: 34ch; }
.cell__text .more { margin-top: 16px; }
.cell--wide { grid-column: span 2; grid-row: span 2; }
.cell--dark { grid-row: span 2; background: var(--navy); color: var(--on-dark); }
a.cell--dark:hover { color: var(--on-dark); }
.cell--dark .cell__text p { color: var(--on-navy-muted); }
.cell--sky { background: var(--sky); }
.cell--sky .kanban div, .cell--sky .stats p { background: #fff; }
.cell--dark .more { color: #fff; }
.cell--blue { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; background: var(--accent); color: #fff; }
.cell--blue .cell__text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; }
.cell--blue .cell__text p { margin: 0; max-width: 52ch; }
.cell--blue .cell__text .more { margin: 0; }
a.cell--blue:hover { color: #fff; }
.cell--blue .cell__text p, .cell--blue .more { color: #fff; }
.cell--score { justify-content: flex-start; gap: 24px; }
.cell--score .score { width: 104px; height: 104px; }
.cell--score .score b { font-size: 32px; }
.cell__art--site .mini { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35); } /* taste-skill-ignore: a product window */
.cell--wide .cell__art { margin-right: calc(clamp(26px, 2.8vw, 40px) * -1); margin-bottom: calc(clamp(26px, 2.8vw, 40px) * -1); }
.cell--wide .mini { border-radius: 14px 0 0 0; }
@media (max-width: 960px) { .bento__grid { grid-template-columns: 1fr 1fr; } .cell--wide { grid-column: span 2; grid-row: auto; } .cell--dark { grid-row: auto; } }
@media (max-width: 640px) { .bento__grid { grid-template-columns: 1fr; } .cell--wide { grid-column: auto; } }

.bubble { max-width: 88%; padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: #1d3354; color: #fff; font-size: 15px; }
.bubble + .bubble { margin-top: 10px; }
.bubble--in { margin-left: auto; border-radius: 18px 18px 6px 18px; background: var(--accent); }
.bubble--typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.bubble--typing span { width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; }
.motion .bubble--typing span { animation: typing 1.2s infinite ease-in-out; }
.motion .bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.motion .bubble--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.kanban { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kanban div { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 16px; background: #fff; }
.kanban p { font-size: 13px; font-weight: 600; color: var(--muted); }
.kanban i { font-style: normal; font-size: 14px; padding: 10px; border-radius: 10px; background: var(--bg-2); }
.kanban .is-won { background: var(--accent); color: #fff; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats p { display: grid; padding: 14px; border-radius: 16px; background: #fff; font-size: 14px; color: var(--muted); }
.stats b { font-size: 30px; letter-spacing: -0.04em; color: var(--ink); }
.score { position: relative; flex: none; width: 128px; height: 128px; }
.score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score circle { fill: none; stroke-width: 9; }
.score__track { stroke: #e3e3e8; }
.score__ring { stroke: #0b8a3e; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 3; }
.score b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 38px; letter-spacing: -0.04em; color: #0b6b31; }

/* Small drawn windows (bento, builder preview) */
.mini { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.35; letter-spacing: 0; }
.mini__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #ececf0; }
.mini__bar span { width: 10px; height: 10px; border-radius: 50%; background: #c4c4ca; }
.mini__bar span:nth-child(1) { background: #ff5f57; }
.mini__bar span:nth-child(2) { background: #febc2e; }
.mini__bar span:nth-child(3) { background: #28c840; }
.mini__bar b { margin-left: 12px; padding: 4px 14px; border-radius: 999px; background: #fff; font-weight: 500; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__page { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: clamp(16px, 2vw, 28px); }
.mini__nav { display: flex; gap: 18px; align-items: baseline; font-size: 13px; color: var(--muted); }
.mini__nav b { margin-right: auto; color: var(--ink); font-size: 16px; letter-spacing: -0.02em; }
.mini__h { font-size: clamp(18px, 2vw, 30px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.mini__p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.mini__btn { display: inline-block; margin-top: 12px; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; }
.mini__label { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mini__hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); align-items: center; }
.mini__hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.mini__products { display: grid; gap: 6px; }
.mini__products li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: #fff; }
.mini__products i { font-style: normal; font-weight: 600; font-size: 13px; color: var(--accent); }
.mini__slots { display: flex; flex-wrap: wrap; gap: 6px; }
.mini__slots li { padding: 6px 12px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; }
.mini__slots .is-on { background: var(--ink); color: #fff; }
.mini__msg { max-width: 90%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; font-size: 14px; }
.mini__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #fff; font-size: 13px; }
.mini__row .mini__btn { margin-top: 0; }
.mini__row i { font-style: normal; color: var(--accent-deep); font-weight: 600; }
.mini__row--quiet { justify-content: flex-start; gap: 14px; color: var(--muted); }
.mini__row--quiet span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #28c840; }
.mini__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.mini__part { padding: 14px; border-radius: 14px; background: var(--bg-2); }
.mini__part[hidden], .mini__hero[hidden] { display: none; }
.motion .mini__part, .motion .mini__hero { animation: part-in 500ms var(--ease) both; }
@keyframes part-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .mini__hero { grid-template-columns: 1fr; } .mini__nav span { display: none; } }

/* ── Home: Glasgow, full bleed ─────────────────────────────────────── */
.city { position: relative; margin-inline: 0; padding: 0 !important; min-height: min(92vh, 900px); display: grid; align-items: end; overflow: clip; color: #fff; background: var(--black); }
.city__pic { position: absolute; inset: 0; }
.city__pic picture, .city__pic img { width: 100%; height: 100%; object-fit: cover; }
.city__pic::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.city__text { position: relative; z-index: 1; padding: clamp(40px, 6vw, 96px) var(--pad); max-width: 1100px; }
.city__text h2 { font-size: clamp(44px, 7vw, 104px); letter-spacing: -0.045em; line-height: 0.98; }
.city__text p { margin-top: 24px; max-width: 42ch; font-size: var(--t-lead); color: #fff; }
@media (max-width: 700px) { .city { min-height: 72vh; } }

/* ── Home: names you know ──────────────────────────────────────────── */
.names { padding-inline: 0 !important; overflow: clip; }
.names__title { padding-inline: var(--pad); font-size: var(--t-h3); text-align: center; color: var(--muted); font-weight: 500; letter-spacing: -0.02em; }
.marquee { margin-top: 36px; overflow: hidden; }
.marquee__track { display: flex; gap: clamp(40px, 5vw, 80px); width: max-content; font-size: clamp(30px, 3.6vw, 52px); font-weight: 700; letter-spacing: -0.04em; color: var(--ink); white-space: nowrap; }
.marquee__track span:nth-child(even) { color: var(--accent); }
.motion .marquee__track { animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Home: work as a row of cards ──────────────────────────────────── */
.work { padding-inline: 0 !important; overflow-x: clip; }
.work .section-intro { padding-inline: var(--pad); }
.work__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.work__viewport::-webkit-scrollbar { display: none; }
.work__track { display: flex; gap: var(--gap); width: max-content; padding: 4px var(--pad) 24px; }
.work__track li { width: min(78vw, 460px); scroll-snap-align: start; }
.card { display: grid; gap: 10px; color: var(--ink); }
.card:hover { text-decoration: none; color: var(--ink); }
.card__pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 22px; background: var(--bg-2); }
.card__pic picture, .card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.card:hover .card__pic img { transform: scale(1.05); }
.card__client { font-size: var(--t-small); color: var(--muted); }
.card__title { margin-top: 8px; }
.card__title { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
.work__viewport.is-pinned { overflow: visible; }

/* ── Home: the builder ─────────────────────────────────────────────── */
.builder { display: block; }
.build { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(56px, 7vw, 96px) !important; margin-inline: clamp(0px, 2vw, 24px); border-radius: 40px; background: var(--sky); }
.build__head { grid-column: 1 / -1; }
.build__head p { margin-top: 18px; max-width: 46ch; font-size: var(--t-lead); color: var(--muted); }
.build__controls { position: sticky; top: 96px; }
.build__controls .toggle__ui { background: #fff; }
.build__controls .toggle input:hover + .toggle__ui { background: #e8e8ed; }
.build__controls .toggle input:checked + .toggle__ui { background: var(--ink); }
.build__biz { display: grid; gap: 8px; margin-top: 24px; }
.build__biz label { font-size: var(--t-small); color: var(--muted); }
.build__show { margin-top: 18px; }
.js .build__show { display: none; }
.build__stage { position: relative; }
.mini--build { box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.35); } /* taste-skill-ignore: a product window */
.mini--build .mini__page { min-height: clamp(360px, 34vw, 520px); }
.site-type__art { align-self: center; }
.site-type__art .mini { box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.35); } /* taste-skill-ignore: a product window */
.mini--build .mini__h { font-size: clamp(22px, 2.6vw, 40px); }
.build__price { margin-top: 20px; padding: 28px 30px; border-radius: 24px; background: var(--navy); color: #fff; }
.build__price .builder__price { font-size: clamp(52px, 5.4vw, 80px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.95; }
.build__price .builder__name { margin-top: 8px; font-weight: 600; }
.build__price .builder__label { color: #fff; }
.builder__included { margin-top: 14px; display: grid; gap: 4px; font-size: 15px; color: var(--on-navy-muted); }
.builder__included li { position: relative; padding-left: 22px; }
.builder__included li::before { content: ""; position: absolute; left: 2px; top: 0.35em; width: 6px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.motion .build__price .builder__price { animation: pop 420ms var(--ease) both; }
@keyframes pop { from { opacity: 0.4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .build { grid-template-columns: 1fr; border-radius: 28px; } .build__controls { position: static; } }
.send { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; margin-top: clamp(48px, 6vw, 80px) !important; }
.send__text h2 { font-size: clamp(30px, 3.4vw, 48px); }
.send__text p { margin-top: 14px; font-size: var(--t-lead); color: var(--muted); max-width: 40ch; }
.builder__send { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.builder__send .field { margin-bottom: 12px; }
.builder__send .button, .builder__send .builder__error { grid-column: 1 / -1; }
[data-builder-needs] { display: none; }
@media (max-width: 960px) { .send { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .builder__send { grid-template-columns: 1fr; } }

/* ── Home: plans ───────────────────────────────────────────────────── */
.plans__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3vw, 44px); border-radius: var(--radius); background: var(--bg-2); }
.plan h3 { font-size: 28px; font-weight: 700; }
.plan__tag { color: var(--muted); min-height: 3em; }
.plan__price { font-size: clamp(44px, 4.4vw, 64px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.tile--dark .plan__price small, .tile--accent .plan__price small { color: inherit; }
.plan__price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-right: 4px; }
.plan .button { align-self: flex-start; margin-block: 6px 10px; }
.plan__list { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.plan__list li, .ticks li { position: relative; padding-left: 26px; }
.plan__list li::before, .ticks li::before { content: ""; position: absolute; left: 3px; top: 0.3em; width: 7px; height: 12px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); }
.plan--featured { background: var(--accent); color: #fff; }
.plan--featured .plan__tag, .plan--featured .plan__price small { color: #fff; }
.plan--featured .plan__list { border-color: rgba(255, 255, 255, 0.35); }
.plan--featured .plan__list li::before { border-color: #fff; }
.plan--featured .button { background: #fff; color: var(--accent); font-weight: 600; }
.plan--featured .button:hover { background: var(--sky-2); color: var(--accent-deep); }
.plans__more { margin-top: 32px; text-align: center; }
.plans__more .more { display: inline; }
.plans__more .more::after { display: inline-block; vertical-align: 0.1em; margin-left: 6px; }
@media (max-width: 960px) { .plans__grid { grid-template-columns: 1fr; } }

/* ── How it works: five steps that travel sideways ─────────────────── */
.how { margin-inline: 0; padding: clamp(96px, 11vw, 160px) 0 !important; background: var(--navy); color: var(--on-dark); overflow: clip; }
.how__title { padding-inline: var(--pad); margin-bottom: clamp(40px, 5vw, 72px); }
.how__track { display: flex; gap: var(--gap); width: max-content; padding-inline: var(--pad); }
.step { width: min(80vw, 420px); flex: none; background: var(--navy); }
.step__pic { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 22px; background: #10264a; }
.step__pic picture, .step__pic img { width: 100%; height: 100%; object-fit: cover; }
.step__word { margin-top: 24px; font-size: clamp(40px, 4.4vw, 64px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.step__text { margin-top: 12px; color: var(--on-navy-muted); max-width: 34ch; }
@media (max-width: 899px) { .how .how__track { flex-direction: column; width: auto; gap: 56px; } .how .step { width: auto; } }

/* ── Testimonial ───────────────────────────────────────────────────── */
.voice blockquote { max-width: 1000px; margin: 0 auto; text-align: center; }
.voice p { font-size: clamp(24px, 4vw, 56px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; }
.voice footer { margin-top: 28px; color: var(--muted); font-size: var(--t-lead); }
.voice footer b { color: var(--ink); }

/* ── FAQ ───────────────────────────────────────────────────────────── */
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -0.02em; cursor: pointer; list-style: none; transition: color 160ms ease; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: 1.4em; font-weight: 300; line-height: 1; transition: transform 300ms var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--accent); }
.faq__answer { padding: 0 0 28px; max-width: 70ch; font-size: var(--t-lead); color: var(--muted); }
.faq__answer p + p { margin-top: 12px; }

/* ── Home: guides ──────────────────────────────────────────────────── */
.reads__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.read { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 240px; padding: clamp(26px, 2.6vw, 36px); border-radius: var(--radius); background: var(--bg-2); color: var(--ink); transition: transform 400ms var(--ease); }
.read:hover { text-decoration: none; color: var(--ink); transform: scale(1.015); }
.read__title { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.read__meta { color: var(--muted); font-size: var(--t-small); }
@media (max-width: 860px) { .reads__grid { grid-template-columns: 1fr; } .read { min-height: 0; } }

/* ── The close ─────────────────────────────────────────────────────── */
.close { margin: var(--section) 0 0 !important; padding: clamp(96px, 12vw, 168px) var(--pad) !important; text-align: center; background: var(--accent); color: #fff; }
.close__title { max-width: 14ch; margin: 0 auto; font-size: clamp(44px, 6.6vw, 96px); letter-spacing: -0.045em; line-height: 1; }
.close__lead { margin: 24px auto 0; max-width: 40ch; font-size: var(--t-lead); color: #fff; }
.close__actions { margin-top: 36px; }
.close :focus-visible { outline-color: #fff; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer { padding: 56px var(--pad) 40px; background: var(--sky); color: var(--muted); font-size: var(--t-small); }
.site-footer a { color: var(--ink); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.site-footer__say { max-width: 40ch; font-size: 17px; color: var(--ink); }
.site-footer__contact { display: grid; gap: 4px; font-style: normal; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--gap); padding-block: 32px; }
.site-footer__cols h3 { font-size: var(--t-small); font-weight: 600; letter-spacing: 0; color: var(--ink); margin-bottom: 10px; }
.site-footer__cols a { display: inline-flex; min-height: 30px; align-items: center; color: var(--muted); }
.site-footer__cols a:hover { color: var(--ink); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.site-footer__base ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer__base .link-button { color: var(--ink); font-size: var(--t-small); }
@media (max-width: 700px) { .site-footer__top { grid-template-columns: 1fr; } .site-footer__cols { grid-template-columns: 1fr 1fr; } }

/* ── Inner pages: the board of rounded cards ───────────────────────── */
main > .board, main > article { padding-inline: var(--pad); margin-block: var(--section); }
main > section:first-child, main > .crumbs + section, main > .crumbs + article { margin-top: clamp(24px, 3vw, 48px) !important; }
main > article > section, main > article > .board { margin-block: clamp(56px, 7vw, 104px); }
main > article > :first-child { margin-top: 0; }
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.board > * { grid-column: span 12; min-width: 0; }
.board > .s2 { grid-column: span 2; }
.board > .s3 { grid-column: span 3; }
.board > .s4 { grid-column: span 4; }
.board > .s5 { grid-column: span 5; }
.board > .s6 { grid-column: span 6; }
.board > .s7 { grid-column: span 7; }
.board > .s8 { grid-column: span 8; }
.board > .s12 { grid-column: span 12; }
@media (max-width: 1000px) { .board > .s3, .board > .s4 { grid-column: span 6; } .board > .s2, .board > .s5, .board > .s6, .board > .s7, .board > .s8 { grid-column: span 12; } }
@media (max-width: 640px) { .board > * { grid-column: span 12 !important; } }
.tile { position: relative; min-width: 0; padding: clamp(26px, 2.8vw, 40px); border-radius: var(--radius); background: var(--bg-2); }
.tile h2 { font-size: clamp(30px, 3.2vw, 48px); }
.tile h2 + *, .tile h3 + * { margin-top: 14px; }
.tile p + p { margin-top: 14px; }
.tile p, .tile li, .lead { max-width: 60ch; }
.tile--dark { background: var(--navy); color: var(--on-dark); }
.tile--dark a:not(.button):not(.plan__buy) { color: #fff; }
.tile--dark .muted, .tile--dark .tile__text { color: var(--on-navy-muted); }
.tile--dark .ticks li::before { border-color: #fff; }
.tile--accent { background: var(--accent); color: #fff; }
.tile--accent a:not(.button):not(.plan__buy), .tile--accent .muted, .tile--accent .muted-on-accent { color: #fff; }
.tile--accent .ticks li::before { border-color: #fff; }
.tile--white { padding: 0; background: none; }
.tile--picture { padding: 0; overflow: hidden; background: var(--bg-2); }
.tile--picture picture, .tile--picture img { width: 100%; height: 100%; object-fit: cover; }
.tile--picture.tall, .tile--picture.portrait { aspect-ratio: 4 / 5; }
.tile--picture.short { aspect-ratio: 16 / 10; }
.tile--picture figcaption { padding: 12px 16px; font-size: var(--t-small); color: var(--muted); }
/* the first block of an inner page is its headline, set straight on the page */
main > section:first-child > .tile:first-child, main > .crumbs + section > .tile:first-child, main > .crumbs + article > .board:first-child > .tile:first-child { padding: clamp(8px, 2vw, 24px) 0; background: none; color: var(--ink); }
a.tile:not(.tile--dark):not(.tile--accent), .tile__link { color: inherit; }
a.tile--dark, a.tile--dark:hover { color: var(--on-dark); }
a.tile--accent, a.tile--accent:hover { color: #fff; }
a.tile:hover, .tile__link:hover { text-decoration: none; }
.tile__link { display: grid; gap: 10px; }
.tile:has(> .tile__link) { transition: transform 400ms var(--ease); }
.tile:has(> .tile__link):hover { transform: scale(1.012); }
.tile__title { font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.tile__text { color: var(--muted); }
.tile__go { display: inline-flex; gap: 6px; align-items: center; color: var(--accent); font-weight: 500; }
.tile--dark .tile__go, .tile--accent .tile__go { color: #fff; }
.tile__figure { display: block; font-size: clamp(48px, 5vw, 76px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.tile__big { font-size: var(--t-hero); font-weight: 700; letter-spacing: -0.05em; line-height: 0.9; }
.board-note { margin-top: 28px; }
.statement { font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.hero-title { font-size: clamp(38px, 5.4vw, 80px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; }
.lead { font-size: var(--t-lead); line-height: 1.45; color: var(--muted); }
.tile--dark .lead, .tile--accent .lead { color: inherit; }
.hero-title + .lead, .hero-title + p { margin-top: 24px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { font-size: var(--t-lead); color: var(--muted); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }
.ticks { display: grid; gap: 10px; }
.tile h1 + .ticks { margin-top: 28px; }
.lost { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center; }
.lost figure { overflow: hidden; border-radius: var(--radius); }
.lost .lead { margin-top: 20px; }
.lost form { margin-top: 28px; }
main > nav.link-list { padding-inline: var(--pad); margin-block: var(--section); }
@media (max-width: 860px) { .lost { grid-template-columns: 1fr; } }
.board.plans .plan__price { font-size: clamp(40px, 3.6vw, 60px); white-space: nowrap; }
.plan__buy { margin-top: auto; display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 500; transition: background-color 180ms ease, transform 160ms var(--ease); }
.plan__buy:hover { background: var(--accent-deep); color: #fff; text-decoration: none; }
.plan__buy:active { transform: scale(0.97); }
.tile--dark .plan__buy, .tile--accent .plan__buy { background: #fff; color: var(--accent); font-weight: 600; }
.tile--dark .plan__buy:hover, .tile--accent .plan__buy:hover { background: var(--sky-2); color: var(--accent-deep); }
.link-list ul, .area-list, .next-steps ul { display: grid; gap: 4px; margin-top: 18px; }
.link-list a, .area-list a { display: inline-flex; min-height: 44px; align-items: center; font-size: var(--t-lead); font-weight: 500; }
.near-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 2px var(--gap); }
.near-list a { display: inline-flex; min-height: 44px; align-items: center; font-size: 19px; font-weight: 500; text-decoration: none !important; }
main > .region { margin-block: clamp(40px, 5vw, 72px); }
.region h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 16px; }
.region .section-head { margin-bottom: 0; }
.near-list a:hover { text-decoration: underline !important; }
/* Industry pages as sector cards of pills (/websites, sector pages and each industry page) */
.industries__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.industries__grid--one { grid-template-columns: 1fr; }
.industries__card { padding: clamp(24px, 2.6vw, 36px); border-radius: var(--radius); background: var(--bg-2); }
.industries__grid--one .industries__card { background: var(--sky); }
.industries__card h3 { font-size: clamp(22px, 1.9vw, 28px); margin-bottom: 18px; }
.industries__card h3 a { color: var(--ink); text-decoration: none; }
.industries__card h3 a:hover { color: var(--accent); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none !important; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease); }
.pill:hover { background: var(--accent); color: #fff; }
.pill:active { transform: scale(0.97); }
.pill[aria-current="page"] { background: var(--ink); color: #fff; }
.pill--more { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); } /* taste-skill-ignore: a quieter link pill */
@media (max-width: 960px) { .industries__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .industries__grid { grid-template-columns: 1fr; } }

/* A sector's parent page: a card for every industry in it */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--gap); }
.hub-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: clamp(22px, 2.2vw, 30px); border-radius: var(--radius); background: var(--bg-2); color: var(--ink); text-decoration: none !important; transition: transform 400ms var(--ease), background-color 300ms ease; }
.hub-card:hover { transform: translateY(-4px); background: var(--sky); color: var(--ink); }
.hub-card__title { font-size: clamp(20px, 1.7vw, 24px); font-weight: 700; letter-spacing: -0.03em; }
.hub-card__title::after { content: " →"; color: var(--accent); }
.hub-card__text { color: var(--muted); font-size: 15px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px 32px; margin-top: 28px; }
.facts > div { display: grid; gap: 2px; }
.facts dt { color: var(--muted); font-size: var(--t-small); }
.facts dd { margin: 0; font-weight: 500; }
.table-wrap { overflow-x: auto; margin-block: 28px; border-radius: var(--radius-s); background: var(--bg-2); }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
.prose { max-width: 70ch; font-size: 18px; line-height: 1.6; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(28px, 2.8vw, 40px); margin-top: 1.6em; }
.prose h3 { font-size: clamp(22px, 2vw, 28px); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose a { text-decoration: underline; text-underline-offset: 0.18em; }
.toc h2 { font-size: var(--t-h3); }
.toc ol { list-style: decimal; padding-left: 1.2em; display: grid; gap: 6px; margin-top: 12px; }
.toc a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; }
.byline { color: var(--muted); font-size: var(--t-small); margin-top: 20px; }
.results { display: grid; gap: 28px; }
.search-form__row { display: flex; gap: 12px; }
.search-form__row input { flex: 1; }
.case-tile .muted { font-size: var(--t-small); }
.case-tile__pic { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px; margin-bottom: 10px; }
.case-tile__pic picture, .case-tile__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.tile__link:hover .case-tile__pic img { transform: scale(1.05); }
.board > .s3 h3 { font-size: clamp(20px, 1.7vw, 26px); }
.next { display: grid; gap: 8px; }
.next .tile__title { font-size: clamp(20px, 2vw, 30px); }
.quote blockquote { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.muted-on-accent { color: #fff; }
.admin-notice { padding: 16px 20px; border-radius: var(--radius-s); background: var(--bg-2); }

/* The AI receptionist demo (AI pages) */
.chat { padding: clamp(24px, 2.6vw, 36px); border-radius: var(--radius); background: var(--navy); color: var(--on-dark); }
.chat > p { color: var(--on-navy-muted); font-size: 15px; margin: 8px 0 20px; }
.chat__title { font-size: var(--t-h3); }
.chat__log { display: flex; flex-direction: column; gap: 10px; min-height: 240px; }
.chat__log p { max-width: 86%; padding: 12px 16px; font-size: 16px; line-height: 1.45; }
.chat__out { align-self: flex-start; border-radius: 18px 18px 18px 6px; background: #1d3354; }
.chat__in { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--accent); color: #fff; }
.chat__done { align-self: stretch; max-width: none !important; border-radius: 14px; background: #fff; color: var(--ink); font-weight: 600; }
.chat__choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chat__choices button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 500 15px/1.2 var(--sans); cursor: pointer; transition: background-color 160ms ease, transform 160ms var(--ease); }
.chat__choices button:hover { background: var(--bg-2); }
.chat__choices button:active { transform: scale(0.97); }
.chat__choices button:focus-visible { outline-color: #fff; }
.motion .chat.is-live .chat__log > p { animation: part-in 300ms var(--ease) both; }

/* ── AI automation: /ai-automation, its ten automation pages and the teaser ── */
.icon { width: 24px; height: 24px; flex: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--accent); }
.eyebrow__icon .icon { width: 20px; height: 20px; }

/* The hero: deep Saltire night into Saltire blue, with a phone at work */
.ai-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px clamp(32px, 5vw, 80px); align-items: center;
  margin-inline: clamp(0px, 2vw, 24px); padding-block: clamp(56px, 7vw, 112px) !important; border-radius: 40px; overflow: clip;
  background: linear-gradient(150deg, var(--navy) 0%, #0a2a52 45%, var(--accent) 100%); color: #fff;
}
.ai-hero .eyebrow { color: var(--on-navy-muted); }
.ai-hero__title { font-size: clamp(40px, 5.6vw, 84px); letter-spacing: -0.045em; line-height: 1; }
.ai-hero__title--long { font-size: clamp(36px, 4.4vw, 64px); }
.ai-hero__lead { margin-top: 24px; max-width: 46ch; font-size: var(--t-lead); line-height: 1.45; color: #fff; }
.ai-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.ai-hero .more { color: #fff; }
.ai-hero__price { display: inline-flex; margin-top: 28px; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-weight: 500; }
.ai-hero :focus-visible { outline-color: #fff; }
@media (max-width: 960px) { .ai-hero { grid-template-columns: 1fr; border-radius: 28px; } }

/* A phone with an example conversation; the lines play in when it scrolls into view (site.js) */
.handset { position: relative; width: min(360px, 100%); margin: 0 auto; padding: 11px; border-radius: 52px; background: #111113; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.55), inset 0 0 0 2px #3a3a3e; } /* taste-skill-ignore: the device floats */
.handset::before { content: ""; position: absolute; z-index: 1; top: 22px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); border-radius: 999px; background: #111113; }
.handset__screen { display: flex; flex-direction: column; gap: 14px; min-height: 540px; padding: 58px 14px 20px; border-radius: 42px; background: #fff; color: var(--ink); text-align: left; }
.handset__top { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); text-align: center; font-size: 15px; }
.handset__top span { color: var(--muted); font-size: 13px; }
.thread { display: flex; flex-direction: column; gap: 8px; }
.thread li { max-width: 86%; padding: 10px 14px; font-size: 15px; line-height: 1.4; letter-spacing: -0.005em; }
.thread__biz { align-self: flex-start; border-radius: 18px 18px 18px 6px; background: #e9e9eb; }
.thread__cust { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--accent); color: #fff; }
.thread__note { align-self: center; max-width: none !important; padding: 4px 12px !important; border-radius: 999px; background: var(--sky); color: var(--accent-deep); font-size: 13px !important; font-weight: 600; text-align: center; }
.motion .thread[data-play] li { opacity: 0; transform: translateY(10px) scale(0.98); }
.motion .thread.is-on li { animation: part-in 500ms var(--ease) both; }
.motion .thread.is-on li:nth-child(2) { animation-delay: 0.5s; }
.motion .thread.is-on li:nth-child(3) { animation-delay: 1.1s; }
.motion .thread.is-on li:nth-child(4) { animation-delay: 1.7s; }
.motion .thread.is-on li:nth-child(5) { animation-delay: 2.3s; }
.motion .thread.is-on li:nth-child(6) { animation-delay: 2.9s; }

/* The three leaks */
.ai-pains__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.ai-pain { display: grid; align-content: start; gap: 12px; padding: clamp(26px, 2.8vw, 40px); border-radius: var(--radius); background: var(--sky); --muted: #3d4047; }
.ai-pain .icon { width: 30px; height: 30px; color: var(--accent); }
.ai-pain__figure { margin-top: 12px; font-size: clamp(56px, 6vw, 88px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.95; color: var(--accent); }
.ai-pain h3 { font-size: 22px; }
.ai-pain p:last-child { color: var(--muted); }
@media (max-width: 860px) { .ai-pains__grid { grid-template-columns: 1fr; } }

/* The ten automations */
.ai-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.ai-grid > :nth-last-child(-n + 2) { grid-column: span 2; } /* ten cards: the last two fill the third row */
@media (max-width: 1100px) { .ai-grid { grid-template-columns: 1fr 1fr; } .ai-grid > :nth-last-child(-n + 2) { grid-column: auto; } }
@media (max-width: 600px) { .ai-grid { grid-template-columns: 1fr; } }
.ai-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 2.4vw, 34px);
  border-radius: var(--radius); background: var(--bg-2);
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease), background-color 300ms ease;
}
.ai-card:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 30px 60px -30px rgba(7, 26, 51, 0.4); } /* taste-skill-ignore: card lift on hover */
.ai-card:has(a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.ai-card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 16px; background: var(--accent); color: #fff; }
.ai-card h3 { font-size: clamp(22px, 1.9vw, 26px); }
.ai-card h3 a { color: var(--ink); }
.ai-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ai-card h3 a:hover { text-decoration: none; }
.ai-card h3 a:focus-visible { outline: none; }
.ai-card__example { color: var(--muted); }
.ai-card__for { font-size: 15px; color: var(--muted); }
.ai-card__for b { display: block; color: var(--ink); }
.ai-card__price { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; }
.ai-card__price span { display: block; font-weight: 500; color: var(--accent); }
.ai-services__more { margin-top: 32px; max-width: 80ch; color: var(--muted); }

/* Packages: the home page plans, with a badge and the setup line */
.plan__badge { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--accent); font-size: 13px; font-weight: 700; }
.plan__price small:last-child { margin: 0 0 0 6px; }
.plan__setup { color: var(--muted); font-size: 15px; }
.plan--featured .plan__setup { color: #fff; }
.plan--featured a:not(.button) { color: #fff; }
.plans__more a { font-weight: 500; }

/* One automation: how it runs, step by step */
.ai-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: flow; }
.ai-flow li { display: grid; align-content: start; gap: 10px; padding: clamp(24px, 2.4vw, 34px); border-radius: var(--radius); background: var(--bg-2); counter-increment: flow; }
.ai-flow li::before { content: counter(flow); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.ai-flow h3 { font-size: 22px; }
.ai-flow p { color: var(--muted); }
@media (max-width: 960px) { .ai-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ai-flow { grid-template-columns: 1fr; } }
.ai-price { margin-top: 18px; font-size: clamp(48px, 5vw, 76px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.ai-price small { margin-left: 8px; font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.tile--dark .ai-price small { color: var(--on-navy-muted); }

/* Links to other automations, with their monthly price */
.ai-links, .ai-teaser__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.ai-link { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 14px; padding: 14px 18px; border-radius: 18px; background: var(--bg-2); color: var(--ink); transition: transform 300ms var(--ease), background-color 200ms ease; }
.ai-link:hover { text-decoration: none; color: var(--ink); background: var(--sky); transform: translateY(-3px); }
.ai-link__icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--accent); }
.ai-link__name { font-weight: 600; }
.ai-link__price { font-size: 14px; color: var(--muted); }

/* The teaser on the home and service pages */
.ai-teaser { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 7vw, 96px) !important; margin-inline: clamp(0px, 2vw, 24px); border-radius: 40px; background: var(--sky); --muted: #3d4047; }
.ai-teaser h2 { margin-top: 14px; }
.ai-teaser__lead { margin-top: 18px; max-width: 46ch; font-size: var(--t-lead); color: var(--muted); }
.ai-teaser__list { margin-top: 28px; }
.ai-teaser .ai-link { background: #fff; }
.ai-teaser .ai-link__icon { background: var(--sky); }
.ai-teaser .more { color: var(--accent-deep); }
@media (max-width: 960px) { .ai-teaser { grid-template-columns: 1fr; border-radius: 28px; } }

/* The enquiry band, the note on messages, and the button that follows you on phones */
.ai-enquire {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start;
  margin: var(--section) 0 0 !important; padding: clamp(80px, 10vw, 140px) var(--pad) !important;
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-deep) 55%, var(--navy) 100%); color: #fff;
}
.ai-enquire h2 { font-size: clamp(40px, 5vw, 72px); letter-spacing: -0.045em; line-height: 1; }
.ai-enquire__lead { margin-top: 20px; max-width: 40ch; font-size: var(--t-lead); }
.ai-enquire .ticks { margin-top: 28px; }
.ai-enquire .ticks li::before { border-color: #fff; }
.ai-enquire__text abbr { color: inherit; }
.ai-enquire :focus-visible { outline-color: #fff; }
.ai-enquire__note { grid-column: 1 / -1; max-width: 80ch; font-size: var(--t-small); color: #fff; }
.ai-form { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: #fff; color: var(--ink); }
.ai-form :focus-visible { outline-color: var(--accent); }
.ai-form__row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.ai-form .field { margin-bottom: 16px; }
.ai-form textarea { min-height: 110px; }
.ai-form .form-errors h3 { font-size: 20px; margin-bottom: 8px; }
.ai-form .button { width: 100%; }
.ai-form select { appearance: none; padding-right: 44px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d1d1f' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center; cursor: pointer; }
.ai-form select:hover { border-color: var(--ink); }
.check { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; font-size: 15px; line-height: 1.45; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
@media (max-width: 960px) { .ai-enquire { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ai-form__row { grid-template-columns: 1fr; } }
.ai-sticky { display: none; }
@media (max-width: 899px) {
  .ai-sticky { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: 12px; display: block; transition: transform 300ms var(--ease), opacity 300ms ease; }
  .ai-sticky .button { width: 100%; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.45); } /* taste-skill-ignore: floats over the page */
  .ai-sticky.is-hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }
  body:has(.ai-sticky) .site-footer { padding-bottom: 96px; }
}

/* ── Cookie banner ────────────────────────────────────────────────── */
.cookie { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: min(380px, calc(100vw - 32px)); padding: 22px; border-radius: 22px; background: rgba(29, 29, 31, 0.96); color: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); } /* taste-skill-ignore: a real overlay */
.cookie p { margin: 0 0 8px; font-size: 15px; }
.cookie a { color: #fff; text-decoration: underline; }
.cookie :focus-visible { outline-color: #fff; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cookie .button { min-height: 42px; }

/* ── Reveals (GSAP in site.js) and reduced motion ──────────────────── */
.gsap-ready [data-reveal] { opacity: 0; transform: translateY(40px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
