/* Self-hosted fonts (SIL Open Font License): DM Sans and Montserrat, latin subset, variable weight. */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Certus Spatial Solutions: website prototype stylesheet.
   Style follows the current site: white header, black logo, deep navy,
   Montserrat headings, DM Sans body, black pill buttons. */

:root {
  --ink: #1d1e20;
  --ink-soft: #44484d;
  --muted: #6b7178;
  --navy: #101a2c;
  --navy-2: #182842;
  --blue: #3a6ea5;
  --blue-light: #8fc1ea;
  --paper: #ffffff;
  --alt: #f3f5f8;
  --line: #e1e5ea;
  --note-bg: #fff6d6;
  --note-line: #e2c45a;
  --radius: 14px;
  --pill: 28px;
  --maxw: 1440px;
  --heading: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--ink); }
a:hover { color: var(--blue); }

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(24px, 4vw, 56px); }

.eyebrow {
  font-family: var(--heading);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.9em;
}

.lead { font-size: 1.13rem; color: var(--ink-soft); max-width: 42em; }

section { padding: 96px 0; }
section.tight { padding: 56px 0; }
.alt { background: var(--alt); }

/* Buttons: pill shape, Montserrat, like the current site */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--pill);
  font-family: var(--heading);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.btn-primary { background: #111214; color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { border-color: #111214; color: #111214; background: transparent; }
.btn-ghost:hover { background: #111214; color: #fff; }
.btn-light { border-color: #fff; color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-white { background: #fff; color: #111214; }
.btn-white:hover { background: var(--blue-light); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Prototype notes: visible only in the prototype, removed before launch */
.proto-note {
  background: var(--note-bg);
  border: 1px dashed var(--note-line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.86rem;
  color: #5c4a10;
  margin: 16px 0;
}
.proto-note::before { content: "PROTOTYPE NOTE · "; font-weight: 700; letter-spacing: 0.04em; }
.proto-banner {
  background: var(--note-bg);
  border-bottom: 1px solid var(--note-line);
  color: #5c4a10;
  font-size: 0.82rem;
  text-align: center;
  padding: 6px 16px;
}

/* Header: white, black logo */
.brand-group { display: flex; align-items: center; gap: 22px; }
.header-rics { display: flex; align-items: center; padding-left: 22px; border-left: 1px solid var(--line); height: 44px; }
.header-rics img { height: 40px; width: auto; display: block; }
.nav .nav-phone { font-weight: 600; white-space: nowrap; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 16px; }
.brand { display: flex; align-items: center; text-decoration: none; }
/* The current logo PNG has wide transparent padding, so crop to the artwork. */
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: #000; font-family: var(--heading); font-size: 0.95rem; font-weight: 400; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1.5px 0 #000; }
.nav .btn { padding: 10px 22px; color: #fff; }
.nav .btn:hover { color: #fff; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 8px 16px;
  font-family: var(--heading);
  font-size: 0.88rem;
  color: #000;
  cursor: pointer;
}

/* Hero: deep navy over the London night video, centred white text */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 0;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
}
.hero video, .hero .hero-overlay, .hero .hero-cloud { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero video { object-fit: cover; max-width: none; }
/* The point-cloud frames of the hero video leave a thin strip of photo (up to 108 px of 1920)
   at the right edge. Enlarge from the left so that strip always sits outside the hero. */
.hero video { transform: scale(1.08); transform-origin: left center; }
.hero .hero-overlay { background: linear-gradient(180deg, rgba(16, 26, 44, 0.55) 0%, rgba(16, 26, 44, 0.72) 100%); }
.hero .wrap { position: relative; text-align: center; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { color: #fff; max-width: 15em; margin-left: auto; margin-right: auto; }
.hero .lead { color: #dbe4ee; margin: 0 auto; }
.hero .eyebrow { color: var(--blue-light); }
.hero .btn-row { justify-content: center; }

/* Why choose us: typographic credentials, no stock icons */
.why { background: #fff; border-bottom: 1px solid var(--line); padding: 88px 0 80px; }
.why-head { max-width: 46rem; margin-bottom: 56px; }
.why-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.why-grid li { position: relative; padding: 30px 28px 4px; border-left: 1px solid var(--line); }
.why-grid li:first-child { border-left: 0; padding-left: 0; }
.why-grid li::before { content: ""; position: absolute; top: 0; left: 28px; width: 36px; height: 2px; background: var(--blue); }
.why-grid li:first-child::before { left: 0; }
.why-big { display: block; font-family: var(--heading); font-weight: 500; font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; color: var(--navy); margin-bottom: 18px; }
.why-grid h3 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.why-grid p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; }
.why-grid a { color: var(--ink); font-weight: 500; white-space: nowrap; }

/* RICS badge in footer: keep clear space around the mark */
.rics-badge { display: inline-block; margin-top: 22px; padding: 6px 0; }
.rics-badge img { width: 150px; height: auto; display: block; }

/* Cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 10px 30px rgba(16, 26, 44, 0.08); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; }
.card-link:hover .more { text-decoration: underline; }
.more { margin-top: auto; font-family: var(--heading); font-weight: 600; font-size: 0.88rem; text-decoration: none; color: #000; }
.more::after { content: " →"; }
.card-num { font-family: var(--heading); color: var(--blue); font-weight: 600; font-size: 0.9rem; margin-bottom: 16px; }

/* Process */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.steps li { position: relative; padding: 0 22px 0 0; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--heading); font-weight: 600; margin-bottom: 18px;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 21px; left: 54px; right: 12px; height: 1px; background: #c9d1db;
}
.steps h3 { font-size: 1.05rem; }
.steps p { font-size: 0.95rem; color: var(--ink-soft); }
.steps .promise { display: inline-block; background: #e3edf7; color: var(--navy-2); font-family: var(--heading); font-weight: 600; font-size: 0.78rem; padding: 4px 12px; border-radius: 99px; }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 15px 0 15px 36px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 22px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg);
}
.checklist strong { font-family: var(--heading); font-weight: 600; }

/* Point cloud / drawing comparison slider */
.compare-section { background: var(--navy); color: #c9d6e4; }
.compare-section h2 { color: #fff; }
.compare-section .lead { color: #c9d6e4; }
.compare-section .eyebrow { color: var(--blue-light); }
.compare-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 18px; }
.compare-tabs button {
  font-family: var(--heading); font-size: 0.85rem; font-weight: 500;
  background: transparent; color: #c9d6e4; border: 1px solid #3a4b66;
  padding: 8px 18px; border-radius: var(--pill); cursor: pointer;
}
.compare-tabs button[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.compare-intro { max-width: 46em; }
/* Text on top (description left, checklist right), slider full width below,
   so the drawing annotations stay readable. */
.compare-block { margin-top: 88px; }
.compare-text { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: start; margin-bottom: 28px; }
.compare-text > .compare-num, .compare-text > h3, .compare-text > p { grid-column: 1; }
.compare-text > .compare-points { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
.compare-num { font-family: var(--heading); font-weight: 600; color: var(--blue-light); margin: 0 0 6px; }
.compare-text h3 { color: #fff; font-size: 1.5rem; }
.compare-text p { color: #c9d6e4; }
.compare-points { list-style: none; padding: 0; margin: 18px 0 0; }
.compare-points li {
  position: relative; padding: 9px 0 9px 26px; border-top: 1px solid #22324b;
  font-size: 0.94rem; color: #dbe4ee;
}
.compare-points li::before {
  content: ""; position: absolute; left: 2px; top: 16px; width: 10px; height: 6px;
  border-left: 2px solid var(--blue-light); border-bottom: 2px solid var(--blue-light); transform: rotate(-45deg);
}
.compare-fig { margin: 0; min-width: 0; }
/* Portrait drawings (e.g. a long terrace plan) sit beside the text instead of below it. */
.compare-block.side { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
/* Tall, narrow plan: size it by height on desktop so the drawing reads large */
.compare-block.side .compare { height: min(980px, 86vh); width: auto; }
.compare-block.side .compare-text { grid-template-columns: 1fr; margin-bottom: 0; }
.compare-block.side .compare-text > .compare-points { grid-column: 1; grid-row: auto; margin-top: 18px; }
.compare-caption span { display: block; font-size: 0.72rem; color: #7d8ea3; margin-top: 2px; letter-spacing: 0.02em; }
.compare {
  --pos: 50%;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  aspect-ratio: 16 / 10;
  user-select: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.compare-layer { position: absolute; inset: 0; }
.compare-layer svg, .compare-layer canvas { width: 100%; height: 100%; display: block; }
.compare-drawing { background: #fff; }
.compare-drawing img { width: 100%; height: 100%; object-fit: fill; display: block; }
.compare-cloud { background: linear-gradient(180deg, #7b7c9c 0%, #5d5e86 100%); overflow: hidden; }
.compare-cloud.plan-bg { background: #474874; }
.compare-pc { position: absolute; height: auto; max-width: none; display: block; }
.compare-cloud { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 0 1px rgba(16, 26, 44, 0.25); pointer-events: none;
}
.compare-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy);
  display: grid; place-items: center; font-family: var(--heading); font-weight: 700; font-size: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); letter-spacing: 0.05em;
}
.compare-label {
  position: absolute; top: 14px; font-family: var(--heading); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; pointer-events: none;
}
.compare-label.left { left: 14px; background: rgba(255, 255, 255, 0.14); color: #fff; }
.compare-label.right { right: 14px; background: rgba(16, 26, 44, 0.08); color: var(--navy); }
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare input[type="range"]:focus-visible + .compare-handle::after { outline: 3px solid var(--blue-light); outline-offset: 2px; }
/* "Drag me" hint: a ring pulses out of the handle until the visitor first uses the slider. */
.compare-handle::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; border: 2px solid #fff; opacity: 0; animation: compare-pulse 1.8s ease-out infinite;
}
.compare.is-used .compare-handle::before { animation: none; opacity: 0; }
@keyframes compare-pulse {
  0% { transform: scale(1); opacity: 0.85; }
  70% { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .compare-handle::before { animation: none; } }
.compare-caption { font-size: 0.85rem; color: #93a5ba; margin-top: 14px; }

/* Case studies */
.case { padding: 0; overflow: hidden; }
.case-art { background: var(--navy); aspect-ratio: 16 / 8; }
.case-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.case-meta { font-family: var(--heading); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.case-fact { margin: 4px 0 18px; font-size: 0.93rem; color: var(--ink-soft); }
.case-fact b { color: var(--ink); }

/* Founder */
.founder { display: grid; grid-template-columns: 280px 1fr; gap: 52px; align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); background: linear-gradient(160deg, #e6ebf1, #cdd6e0);
  display: grid; place-items: center; color: var(--muted); font-size: 0.85rem; text-align: center; padding: 16px;
}
blockquote.pull { margin: 0 0 1em; font-family: var(--heading); font-weight: 500; font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.sig { font-family: var(--heading); font-weight: 600; }
.sig span { display: block; font-family: var(--body); font-weight: 400; color: var(--muted); font-size: 0.92rem; }

/* Testimonial slot */
.testimonial-slot {
  border: 1.5px dashed var(--note-line); background: var(--note-bg); border-radius: var(--radius);
  padding: 28px; color: #5c4a10; font-size: 0.95rem;
}

/* CTA band */
.cta-band { background: var(--navy); color: #c9d6e4; }
.cta-band h2 { color: #fff; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band p { margin: 0; max-width: 36em; }
.cta-contact { font-size: 0.95rem; margin-top: 12px !important; }
.cta-contact a { color: #fff; }

/* Services page */
.page-hero { padding: 72px 0 44px; }
.service-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.service-nav a {
  text-decoration: none; border: 1px solid var(--line); background: #fff;
  padding: 9px 18px; border-radius: var(--pill); font-family: var(--heading); font-size: 0.86rem; color: #000; font-weight: 500;
}
.service-nav a:hover { border-color: #000; }

.service { padding: 80px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
.service-grid h3 { font-size: 1rem; margin-top: 10px; }
.facts { background: var(--alt); border-radius: var(--radius); padding: 26px 28px; }
.facts dl { margin: 0; }
.facts dt { font-family: var(--heading); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-top: 18px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 4px 0 0; color: var(--ink); }
ul.plain { padding-left: 1.1em; margin: 0 0 1em; color: var(--ink-soft); }
ul.plain li { margin-bottom: 6px; }

/* Individual service pages */
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.svc-hero { padding: 56px 0 64px; }
.svc-hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.svc-hero img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; background: var(--alt); }
.svc-hero figure { margin: 0; }
.svc-hero figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
.facts-strip { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-strip li { font-size: 0.9rem; color: var(--ink-soft); }
.facts-strip strong { display: block; font-family: var(--heading); font-weight: 600; color: var(--ink); font-size: 1rem; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; }
.tile h3 { font-size: 1rem; margin-bottom: 0.35em; }
.tile p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.gallery figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.levels div { padding: 22px; border-right: 1px solid var(--line); }
.levels div:last-child { border-right: 0; }
.levels h3 { font-size: 1rem; }
.levels p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
table.deliver { width: 100%; border-collapse: collapse; margin-top: 28px; background: #fff; border-radius: var(--radius); overflow: hidden; }
table.deliver th, table.deliver td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 0.94rem; vertical-align: top; }
table.deliver th { font-family: var(--heading); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); background: var(--alt); }
table.deliver td:last-child { font-family: var(--heading); font-weight: 500; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); background: #fff; border-radius: var(--pill); padding: 8px 16px; font-size: 0.9rem; }
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.svc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow 0.2s, transform 0.2s; }
.svc-card:hover { box-shadow: 0 10px 30px rgba(16, 26, 44, 0.08); transform: translateY(-2px); color: var(--ink); }
.svc-card img, .svc-card .svc-art { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--alt); display: block; }
.svc-card div { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.svc-card p { color: var(--ink-soft); font-size: 0.95rem; }
.svc-card .more { margin-top: auto; }

.topo-fig { margin: 40px 0 0; }
.topo-fig img { width: 100%; background: #fff; }
.topo-fig a { display: block; cursor: zoom-in; }
.topo-fig figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 8px; }
.topo-fig figcaption span { display: block; font-size: 0.74rem; margin-top: 2px; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow 0.2s, transform 0.2s; }
.news-card:hover { box-shadow: 0 10px 30px rgba(16, 26, 44, 0.08); transform: translateY(-2px); color: var(--ink); }
.news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--alt); }
.news-card div { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-card h2, .news-card h3 { font-size: 1.15rem; }
.news-card img.fit-contain { object-fit: contain; background: #dfe8f2; }
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.news-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.news-head .news-grid { flex-basis: 100%; }
.news-card p { color: var(--ink-soft); font-size: 0.95rem; }
.news-meta { font-family: var(--heading); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 24px; }
.article h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.article .standfirst { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 1.4em; }
.article figure { margin: 28px 0; }
.article figure img { width: 100%; border-radius: var(--radius); }
.article figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.article-body p { font-size: 1.07rem; line-height: 1.78; }
.byline { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; font-size: 0.9rem; color: var(--muted); }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; }
.byline strong { color: var(--ink); font-family: var(--heading); font-weight: 600; }
.related { margin-top: 40px; padding: 22px 24px; background: var(--alt); border-radius: var(--radius); }
.related h2 { font-size: 1rem; margin-bottom: 0.6em; }
.related ul { margin: 0; padding-left: 1.1em; }

/* The practice */
.founder.practice-hero { grid-template-columns: 360px 1fr; }
.founder-photo { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: var(--alt); }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.contact-card { background: var(--alt); border-radius: var(--radius); padding: 28px; }
.contact-card dl { margin: 0; }
.contact-card dt { font-family: var(--heading); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-top: 18px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 4px 0 0; font-size: 1.02rem; }
.contact-card a { text-decoration: none; font-weight: 500; }

/* FAQ */
.faq details { border-bottom: 1px solid #d6dce3; padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--heading); font-weight: 600; font-size: 1rem; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -4px; font-size: 1.4rem; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* Form */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--heading); font-weight: 500; font-size: 0.85rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.98rem; padding: 12px 14px;
  border: 1px solid #c9d0d8; border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 22px; }
.consent input { margin-top: 5px; }
.form-msg { display: none; margin-top: 14px; font-weight: 600; color: var(--blue); }
.form-msg.show { display: block; }
.form-msg.error { color: #b42318; }

/* Footer */
.site-footer { background: #0b121f; color: #97a6b8; font-size: 0.9rem; padding: 60px 0 32px; }
.site-footer a { color: #d6dee8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.price-from { margin-top: 14px; font-size: 0.95rem; color: var(--ink-soft); }
.site-footer h4 { color: #fff; font-family: var(--heading); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-base { border-top: 1px solid #1d2a3d; margin-top: 40px; padding-top: 20px; font-size: 0.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); text-decoration: none;
  padding: 7px 18px 7px 7px; border-radius: 40px;
  box-shadow: 0 8px 26px rgba(16, 26, 44, 0.2);
  font-family: var(--heading);
  transition: transform 0.15s, box-shadow 0.15s;
}
.wa-float:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(16, 26, 44, 0.26); }
.wa-icon { width: 46px; height: 46px; border-radius: 50%; background: #25d366; display: grid; place-items: center; flex: none; }
.wa-icon svg { width: 26px; height: 26px; }
.wa-text strong { display: block; font-size: 0.9rem; font-weight: 600; line-height: 1.2; }
.wa-text small { display: block; font-family: var(--body); font-size: 0.75rem; color: var(--muted); line-height: 1.3; }

/* Respect reduced-motion: hide the background video */
@media (prefers-reduced-motion: reduce) {
  .hero video { display: none; }
  .card, .card:hover { transition: none; transform: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .why-grid li:nth-child(3) { border-left: 0; padding-left: 0; }
  .why-grid li:nth-child(3)::before { left: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps li:nth-child(2)::after { display: none; }
  .nav { gap: 20px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 70px; }
  .brand img { height: 36px; width: auto; }
  .brand-group { gap: 14px; }
  .header-rics { padding-left: 14px; height: 34px; }
  .header-rics img { height: 30px; }
  .menu-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--blue); }
  .nav .btn { margin-top: 14px; text-align: center; border-bottom: 0; }
  .hero { min-height: 0; }
  .hero .wrap { padding-top: 72px; padding-bottom: 72px; }
  .split, .founder, .service-grid, .grid-2, .grid-3, .footer-grid, .svc-hero .wrap, .svc-cards, .gallery, .levels, .news-grid, .contact-grid, .principles { grid-template-columns: 1fr; gap: 32px; }
  .article { padding: 40px 16px 16px; }
  .fig-pair { grid-template-columns: 1fr; }
  .founder.practice-hero { grid-template-columns: 1fr; }
  .practice-hero .founder-photo { max-width: 280px; }
  .levels { gap: 0; }
  .levels div { border-right: 0; border-bottom: 1px solid var(--line); }
  .tiles, .facts-strip { grid-template-columns: 1fr 1fr; }
  table.deliver td:last-child { white-space: normal; }
  .founder .portrait { max-width: 240px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 22px 18px; }
  .compare-block { margin-top: 56px; }
  .compare-block.side { grid-template-columns: 1fr; gap: 24px; }
  .compare-block.side .compare { height: auto; width: 100%; }
  .compare-text { grid-template-columns: 1fr; }
  .compare-text > .compare-points { grid-column: 1; grid-row: auto; margin-top: 16px; }
  .compare-label { top: 8px; font-size: 0.62rem; padding: 4px 9px; }
  .compare-handle::after { width: 36px; height: 36px; }
}

@media (max-width: 560px) {
  .grid-4, .steps, .tiles, .facts-strip { grid-template-columns: 1fr; }
  .why { padding: 56px 0 48px; }
  .why-head { margin-bottom: 36px; }
  .why-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .why-grid li, .why-grid li:nth-child(3) { border-left: 0; padding: 24px 0 0; }
  .why-grid li::before, .why-grid li:nth-child(3)::before { left: 0; }
  .steps li::after { display: none; }
  .btn-row .btn { flex: 1 1 100%; text-align: center; }
  .wa-float { padding: 5px; right: 14px; bottom: 14px; }
  .wa-text { display: none; }
  .wa-icon { width: 52px; height: 52px; }
}

/* Legal pages */
.legal h2 { font-size: 1.15rem; margin: 2em 0 0.6em; }
.legal-meta { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; line-height: 1.7; }

/* Small print under forms */
.form-small { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }

/* Who we work with: 2 columns on tablets and small laptops */
@media (min-width: 641px) and (max-width: 1100px) {
  .audience { grid-template-columns: repeat(2, 1fr); }
}

/* Laptops: header gets tight, so keep the phone in the mobile menu and the footer only */
@media (min-width: 861px) and (max-width: 1180px) {
  .nav .nav-phone { display: none; }
  .nav { gap: 22px; }
}
