/*
 * IBM Plex, self-hosted.
 *
 * Served from our own origin so no page view reaches fonts.googleapis.com
 * or fonts.gstatic.com. That removes a third-party request on every visit
 * and, with it, the transfer of every visitor's IP address to Google.
 *
 * IBM Plex is licensed under the SIL Open Font License 1.1; see
 * fonts/LICENSE.txt. Regenerate with tools/vendor-fonts (documented in
 * the README) - do not re-point these at a CDN.
 */

/* IBM Plex Sans 400 700 - latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Sans 400 700 - latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-var-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;
}

/* IBM Plex Mono 400 - latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono 400 - latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-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;
}

/* IBM Plex Mono 500 - latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono 500 - latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-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;
}

/* IBM Plex Mono 600 - latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono 600 - latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-600-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;
}

/* IBM Plex Mono 700 - latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono 700 - latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-700-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;
}


/* Brindle IT: shared visual system, components and responsive layouts.
 * Colour tokens support both themes. Fonts and assets are served locally.
 * Home composition uses open layouts; service detail and utility pages share
 * the same typography, controls and spacing.
 */

/* ------------------------------------------------------------------ */
/* 1. Tokens                                                           */
/* ------------------------------------------------------------------ */

:root {
  --background: 80 16% 97%;
  --foreground: 191 32% 13%;

  --card: 0 0% 100%;
  --card-foreground: 191 32% 13%;

  /* Electric teal - the tech accent */
  --primary: 175 88% 26%;
  --primary-foreground: 0 0% 100%;

  /* Warm amber - the AEC accent. Darkened from the original 50% lightness:
     at 50% it failed contrast against white for anything but large text.
     --secondary is the fill (white text sits on it); --secondary-text is the
     same hue as text, which has to go darker still because it is usually read
     against a tint of itself. One token cannot do both jobs at AA. */
  --secondary: 32 90% 34%;
  --secondary-foreground: 0 0% 100%;
  --secondary-text: 32 95% 26%;

  --muted: 140 13% 92%;
  --muted-foreground: 186 10% 36%;

  --accent: 220 15% 96%;
  --accent-foreground: 220 20% 5%;

  --border: 147 13% 86%;
  --input: 160 10% 67%;
  --ring: 175 88% 26%;

  --danger: 0 72% 42%;
  --success: 155 65% 27%;

  --grid-color: 220 15% 90%;
  --glow-primary: 175 85% 45%;

  --shadow-sm: 0 1px 2px hsl(220 20% 10% / 0.06);
  --shadow-md: 0 4px 16px hsl(220 20% 10% / 0.07);
  --shadow-lg: 0 12px 32px hsl(220 20% 10% / 0.10);

  /* Type */
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system,
               "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", "Segoe UI Mono",
               Consolas, "Liberation Mono", monospace;

  --step--1: clamp(0.8rem, 0.77rem + 0.15vw, 0.875rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --step-2:  clamp(1.375rem, 1.24rem + 0.65vw, 1.75rem);
  --step-3: clamp(1.875rem, 1.35rem + 2vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem);

  /* Spacing and shape */
  --radius: 0.25rem;
  --header-h: 5rem;
  --container: 80rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Section rhythm. The old site used a flat py-24/py-32 everywhere, which
     left the page mostly air; this scales with the viewport instead. */
  --section-y: clamp(3rem, 6vw, 5.5rem);
  --section-y-lg: clamp(3.5rem, 7vw, 6rem);
}

.dark {
  --background: 190 25% 9%;
  --foreground: 90 15% 94%;

  --card: 187 23% 12%;
  --card-foreground: 90 15% 94%;

  --primary: 166 44% 66%;
  --primary-foreground: 190 25% 9%;

  --secondary: 35 90% 55%;
  --secondary-foreground: 220 20% 6%;
  /* On a dark ground the tint is dark too, so text goes lighter, not darker. */
  --secondary-text: 35 90% 62%;

  --muted: 185 18% 16%;
  --muted-foreground: 170 13% 70%;

  --accent: 175 70% 35%;
  --accent-foreground: 210 20% 95%;

  --border: 177 14% 25%;
  --input: 175 13% 42%;
  --ring: 166 44% 66%;

  --danger: 0 70% 62%;
  --success: 155 55% 55%;

  --grid-color: 220 15% 13%;
  --glow-primary: 175 85% 45%;

  --shadow-sm: 0 1px 2px hsl(0 0% 0% / 0.4);
  --shadow-md: 0 4px 16px hsl(0 0% 0% / 0.45);
  --shadow-lg: 0 12px 32px hsl(0 0% 0% / 0.55);
}

/* ------------------------------------------------------------------ */
/* 2. Reset and base                                                   */
/* ------------------------------------------------------------------ */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

/*
 * The hidden attribute has to beat any display rule an element also matches.
 * Without !important, a class like .icon { display: inline-block } silently
 * outranks the user-agent's [hidden] rule, and both menu icons show at once.
 */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor targets must clear the fixed header, or #contact lands with its
     heading hidden underneath it. */
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  min-height: 100svh;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

a {
  color: hsl(var(--primary));
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: hsl(var(--primary) / 0.78); }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: hsl(var(--primary) / 0.22);
  color: hsl(var(--foreground));
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: hsl(var(--background)); }
::-webkit-scrollbar-thumb {
  background: hsl(var(--border));
  border-radius: 5px;
  border: 2px solid hsl(var(--background));
}
::-webkit-scrollbar-thumb:hover { background: hsl(var(--muted-foreground) / 0.55); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.625rem 1rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ */
/* 3. Layout                                                           */
/* ------------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--mid { max-width: 62rem; }
.container--narrow { max-width: 48rem; }

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--lg { padding-block: var(--section-y-lg); }
.section--muted { background: hsl(var(--muted) / 0.5); }
.section--card { background: hsl(var(--card)); }
.section--bordered { border-top: 1px solid hsl(var(--border)); }

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }

.stack > * + * { margin-top: 1rem; }
.stack--tight > * + * { margin-top: 0.5rem; }
.stack--loose > * + * { margin-top: 1.75rem; }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/*
 * Blueprint grid. Kept far fainter than the old site, where it ran at
 * opacity 0.2-0.4 directly behind body copy and read as noise. The mask
 * fades it out before it reaches the text.
 */
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, hsl(var(--grid-color)) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(var(--grid-color)) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 10%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 10%, transparent 78%);
  opacity: 0.55;
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.35), transparent);
}

/* ------------------------------------------------------------------ */
/* 4. Typography                                                       */
/* ------------------------------------------------------------------ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1, .h1 { font-size: var(--step-4); }
h2, .h2 { font-size: var(--step-3); }
h3, .h3 { font-size: var(--step-2); font-weight: 600; }
h4, .h4 { font-size: var(--step-1); font-weight: 600; }

p { text-wrap: pretty; }

.lead {
  font-size: var(--step-1);
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  max-width: 60ch;
}
.section__head--center .lead { margin-inline: auto; }

.muted { color: hsl(var(--muted-foreground)); }
.small { font-size: var(--step--1); }
.mono { font-family: var(--font-mono); }

/* Small technical labels give the otherwise simple typography its character. */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: hsl(var(--primary));
  margin-bottom: 0.875rem;
}

/* Second line of a display heading, set back in muted grey. */
.h-sub { color: hsl(var(--muted-foreground)); display: block; }
.text-primary { color: hsl(var(--primary)); }
.text-secondary { color: hsl(var(--secondary-text)); }

.list-check {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.list-check li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
}
/* The check is drawn as a mask rather than a coloured data URI, so its colour
   comes from the token and follows the theme. No extra request either way. */
.list-check li::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15em;
  background-color: hsl(var(--primary));
  -webkit-mask: center / 1.1rem no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
          mask: center / 1.1rem no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ */
/* 5. Components                                                       */
/* ------------------------------------------------------------------ */

/* --- Icons --------------------------------------------------------- */

/*
 * Icon styling lives here rather than on the sprite's <defs>. A <use> builds a
 * shadow tree whose inherited properties come from the <use> element in this
 * document, not from the symbol's original parent - so presentation attributes
 * on <defs> are ignored and every outline icon renders as a filled black blob.
 *
 * Symbols that really are filled carry fill/stroke attributes of their own,
 * which win here because they sit on the shadow content itself.
 */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  display: inline-block;
  vertical-align: -0.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.5em; height: 1.5em; }

/* --- Header -------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: hsl(var(--background) / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
  text-decoration: none;
  flex: none;
}
.brand:hover { color: hsl(var(--foreground)); }
.brand__mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: transparent;
  color: hsl(var(--primary));
  border-radius: 0;
  font-weight: 500;
  font-size: 1.25rem;
  border: 2px solid currentColor;
}
.brand__accent { color: hsl(var(--primary)); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}
.nav__link {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  text-transform: none;
  letter-spacing: 0;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  padding-block: 0.75rem;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: hsl(var(--primary)); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.icon-btn:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
}

/* Theme toggle shows exactly one glyph, chosen by the theme class. */
.theme-toggle .icon--moon { display: block; }
.theme-toggle .icon--sun { display: none; }
.dark .theme-toggle .icon--moon { display: none; }
.dark .theme-toggle .icon--sun { display: block; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: var(--radius);
  overflow: visible;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  gap: 0.125rem;
}
.lang-switch a {
  padding: 0.625rem 0.4375rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  min-height: 2.75rem;
}
.lang-switch a:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.lang-switch a[aria-current="true"] {
  background: transparent;
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 0.5rem;
}

.menu-toggle { display: none; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 49;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-lg);
  padding: 1rem var(--gutter) 1.5rem;
}
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav .nav {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.mobile-nav .nav__link {
  padding-block: 0.875rem;
  border-bottom: 1px solid hsl(var(--border));
}

/* --- Buttons ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 0.75rem 1.5rem;
  min-height: 2.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.btn:disabled,
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.btn--primary {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: none;
}
.btn--primary:hover {
  background: hsl(var(--primary) / 0.9);
  color: hsl(var(--primary-foreground));
  box-shadow: none;
}

.btn--ghost {
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
  background: hsl(var(--background) / 0.5);
}
.btn--ghost:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.btn--lg {
  padding: 0.875rem 1.5rem;
  min-height: 3.25rem;
  font-size: 1rem;
}

.btn .icon { transition: transform 0.25s; }
.btn:hover .icon--arrow { transform: translateX(3px); }

/* --- Chips and tags ------------------------------------------------ */

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3125rem 0.75rem;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: hsl(var(--foreground));
  white-space: nowrap;
}


.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: hsl(var(--secondary) / 0.12);
  color: hsl(var(--secondary-text));
  border: 1px solid hsl(var(--secondary) / 0.3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Cards --------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: none;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.card > * + * { margin-top: 0.75rem; }

.card--link { text-decoration: none; color: inherit; }
.card--link:hover {
  color: inherit;
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card--link:hover .card__title { color: hsl(var(--primary)); }

.card__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  flex: none;
}
.card__icon--warm {
  background: hsl(var(--secondary) / 0.12);
  color: hsl(var(--secondary-text));
}

.card__title {
  font-family: var(--font-sans);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.3;
  transition: color 0.3s;
}

.card__body {
  color: hsl(var(--muted-foreground));
  font-size: var(--step-0);
}

.card__more {
  margin-top: auto;
  padding-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--primary));
}

/* --- Numbered steps ------------------------------------------------ */

.step { position: relative; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.5rem;
  padding-inline: 0;
  margin-bottom: 1rem;
  background: transparent;
  color: hsl(var(--primary));
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  align-self: flex-start;
}
.step--warm .step__num { background: transparent; color: hsl(var(--primary)); }

/* --- Homepage composition ----------------------------------------- */

.home-hero { padding-block: calc(var(--header-h) + clamp(2.5rem, 5vw, 5rem)) clamp(3rem, 6vw, 5rem); }
.home-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.home-hero__copy h1 { margin-block: 0.5rem 1.5rem; font-weight: 500; line-height: 1.04; text-wrap: initial; }
.home-hero__copy h1 span { color: hsl(var(--primary)); }
.home-hero__copy .lead { max-width: 48ch; font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.text-link { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; text-underline-offset: 0.35em; }
.technology-line { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin-top: 2rem; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.technology-line span { color: hsl(var(--primary)); }
.model-visual { padding: clamp(1.25rem, 2.5vw, 2rem); border: 1px solid hsl(var(--border)); background: hsl(var(--muted)); }
.model-visual__label { display: flex; justify-content: space-between; gap: 1rem; font: 400 0.625rem/1.5 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.model-drawing { width: 100%; margin-block: 1.5rem; stroke-linejoin: round; }
.model-drawing__dot { fill: hsl(var(--primary) / 0.22); }
.model-drawing__ground { fill: none; stroke: hsl(var(--primary) / 0.2); }
.model-drawing__top, .model-drawing__left, .model-drawing__right { stroke: hsl(var(--primary)); stroke-width: 1.25; }
.model-drawing__top { fill: hsl(var(--background)); }
.model-drawing__left { fill: hsl(var(--primary) / 0.08); }
.model-drawing__right { fill: hsl(var(--primary) / 0.18); }
.model-drawing__grid { fill: none; stroke: hsl(var(--primary) / 0.55); }
.model-drawing__selection { fill: hsl(var(--primary) / 0.15); stroke: hsl(var(--foreground)); stroke-width: 2; }
.model-drawing__leader { fill: none; stroke: hsl(var(--foreground)); stroke-dasharray: 3 4; }
.model-drawing__point { fill: hsl(var(--primary)); stroke: hsl(var(--background)); stroke-width: 3; }
.model-visual__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; list-style: none; padding: 1rem 0 0; border-top: 1px solid hsl(var(--border)); }
.model-visual__steps li { font-size: 0.875rem; }
.model-visual__steps span { display: block; margin-bottom: 0.5rem; font: 400 0.625rem var(--font-mono); color: hsl(var(--primary)); }
.model-visual figcaption { margin-top: 1.25rem; color: hsl(var(--muted-foreground)); font-size: 0.6875rem; }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.section-intro .lead { align-self: end; max-width: 42ch; font-size: 1.125rem; }
.section-intro h2 { max-width: 18ch; }
.case-previews { gap: 2rem 3rem; }
.case-preview { border-top: 1px solid hsl(var(--border)); padding-top: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; }
.case-preview h3 { font-size: 1.5rem; }
.case-preview h3 a { color: inherit; }
.case-preview h3 a:hover { color: hsl(var(--primary)); }
.case-preview__result { font-size: 0.9375rem; }
.case-preview > .text-link { margin-top: auto; padding-top: 1.5rem; }
.case-flow, .case-technologies { list-style: none; padding: 0; }
.case-reference { border-left: 2px solid hsl(var(--primary)); padding-left: 1.25rem; }
.case-page .page-head .eyebrow { display: block; margin-top: 0; }
.case-preview__animation { width: 100%; margin-bottom: 1.5rem; }
.project-schematic { --scene-accent: hsl(var(--primary)); --scene-warm: #a56d25; --scene-alt: #7962a3; width: 100%; margin: 0; padding: clamp(0.875rem, 2vw, 1.5rem); border: 1px solid hsl(var(--border)); background: hsl(var(--card)); border-radius: 4px; }
.dark .project-schematic { --scene-warm: #dbb26e; --scene-alt: #b4a2d6; }
.schematic-heading { display: flex; justify-content: space-between; gap: 1rem; color: hsl(var(--muted-foreground)); font: 400 0.625rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.schematic-scene { width: 100%; height: auto; display: block; margin-block: 0.75rem; overflow: hidden; }
.schematic-scene text { font: 400 18px var(--font-sans); fill: hsl(var(--foreground)); }
.schematic-scene .scene-title { font: 500 17px var(--font-sans); }
.schematic-scene .scene-small { font: 400 16px var(--font-sans); fill: hsl(var(--muted-foreground)); }
.scene-panel { fill: hsl(var(--background)); stroke: hsl(var(--border)); stroke-width: 1.5; }
.scene-rule, .scene-grid { fill: none; stroke: hsl(var(--border)); stroke-width: 1.2; }
.scene-issue rect { fill: hsl(var(--muted)); stroke: hsl(var(--border)); }
.scene-issue circle { fill: hsl(var(--muted-foreground)); }
.scene-issue path { stroke: hsl(var(--muted-foreground) / 0.45); stroke-width: 2; }
.scene-selected rect { fill: hsl(var(--primary) / 0.12); stroke: var(--scene-accent); stroke-width: 2; }
.scene-selected circle, .scene-transfer, .scene-dike-transfer { fill: var(--scene-accent); }
.scene-link { stroke: var(--scene-accent); stroke-width: 2; fill: none; stroke-linecap: round; }
.scene-transfer { transform: translateX(0); transition: transform 1s ease-in-out; }
.scene-dike-transfer { transition: transform 1s ease-in-out; }
.project-schematic[data-step="1"] .scene-dike-transfer, .project-schematic[data-step="2"] .scene-dike-transfer { transform: translateX(23px); }
.scene-floor { fill: hsl(var(--muted)); stroke: hsl(var(--border)); }
.scene-surface { fill: hsl(var(--primary) / 0.05); stroke: var(--scene-accent); stroke-width: 1.5; }
.scene-wall { fill: hsl(var(--primary) / 0.08); stroke: var(--scene-accent); stroke-width: 1.5; }
.scene-highlight { fill: hsl(var(--primary) / 0.65); stroke: var(--scene-accent); stroke-width: 2; }
.scene-pin path { stroke: var(--scene-accent); stroke-width: 2; }
.scene-pin circle, .scene-extension circle { fill: var(--scene-accent); }
.scene-pin .scene-pin-halo { fill: hsl(var(--primary) / 0.16); }
.scene-pin rect { fill: hsl(var(--background)); stroke: var(--scene-accent); }
.scene-building-front { fill: hsl(var(--background)); stroke: var(--scene-accent); stroke-width: 1.5; }
.scene-building-side { fill: hsl(var(--muted)); stroke: var(--scene-accent); stroke-width: 1.5; }
.scene-building-roof { fill: hsl(var(--primary) / 0.18); stroke: var(--scene-accent); stroke-width: 1.5; }
.scene-building-roof-far { fill: hsl(var(--primary) / 0.08); stroke: var(--scene-accent); stroke-width: 1.5; }
.scene-building-window { fill: hsl(var(--primary) / 0.16); stroke: hsl(var(--primary) / 0.65); stroke-width: 1; }
.scene-building-floors, .scene-building-door-line { fill: none; stroke: hsl(var(--primary) / 0.35); stroke-width: 1; }
.scene-building-door { fill: hsl(var(--primary) / 0.25); stroke: var(--scene-accent); }
.scene-pin .scene-pin-marker { fill: var(--scene-accent); stroke: hsl(var(--background)); stroke-width: 2; }
.scene-pin .scene-pin-core { fill: hsl(var(--background)); }
.scene-pin .scene-pin-label { fill: hsl(var(--foreground)); font-weight: 600; paint-order: stroke; stroke: hsl(var(--background)); stroke-width: 4px; stroke-linejoin: round; }
.scene-terrain { fill: none; stroke: hsl(var(--primary) / 0.17); stroke-width: 1.2; }
.scene-baseline { stroke: var(--scene-accent); fill: none; stroke-width: 2; stroke-dasharray: 5 6; }
.scene-subassembly { fill: none; stroke: var(--scene-accent); stroke-width: 3; stroke-linejoin: round; }
.scene-corridor { fill: none; stroke: var(--scene-accent); stroke-width: 1; }
.scene-earth { fill: hsl(var(--primary) / 0.18); }
.scene-crest { fill: hsl(var(--primary) / 0.38); }
.scene-ground-band { fill: hsl(var(--primary) / 0.06); stroke: hsl(var(--primary) / 0.4); }
.scene-earth-far { fill: hsl(var(--primary) / 0.1); }
.scene-crest-section { stroke: hsl(var(--primary) / 0.45); }
.scene-dike-front { fill: hsl(var(--primary) / 0.13); stroke: none; }
.scene-dike-profile { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.scene-option-b { stroke: var(--scene-warm); }
.scene-option-c { stroke: var(--scene-alt); }
.scene-option-b, .scene-option-c { fill: none; stroke-width: 3; stroke-dasharray: 8 5; }
.scene-endpoint { fill: var(--scene-accent); stroke: hsl(var(--background)); stroke-width: 2; }
.rel-model, .scene-highlight, .scene-pin, .scene-extension, .scene-corridor, .scene-alternatives, .scene-geometry-label { transition: opacity 0.7s ease, transform 0.7s ease; }
.project-schematic[data-enhanced] .scene-highlight, .project-schematic[data-enhanced] .scene-pin, .project-schematic[data-enhanced] .scene-extension, .project-schematic[data-enhanced] .scene-alternatives { opacity: 0; }
.project-schematic[data-enhanced][data-step="0"] .rel-model { opacity: 0.35; }
.project-schematic[data-enhanced][data-step="0"] .scene-corridor { opacity: 0; transform: translateY(10px); }
.project-schematic[data-step="1"] .scene-transfer, .project-schematic[data-step="2"] .scene-transfer { transform: translateX(64px); }
.project-schematic[data-step="2"] .scene-highlight, .project-schematic[data-step="2"] .scene-pin, .project-schematic[data-step="2"] .scene-extension, .project-schematic[data-step="2"] .scene-alternatives { opacity: 1; }
.project-schematic[data-step="2"] .scene-geometry-label { opacity: 0; }
.project-schematic:not([data-enhanced]) .scene-geometry-label { opacity: 0; }
.schematic-summary { color: hsl(var(--foreground)); font-size: 0.9375rem; line-height: 1.5; }
.schematic-note { color: hsl(var(--muted-foreground)); font-size: 0.75rem; line-height: 1.5; margin-top: 0.375rem; }
.schematic-player { margin-top: 1rem; padding-top: 0.875rem; border-top: 1px solid hsl(var(--border)); }
.schematic-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.schematic-play, .schematic-seek button { min-height: 44px; border: 1px solid hsl(var(--border)); border-radius: 3px; background: transparent; color: hsl(var(--foreground)); font: 500 0.8125rem var(--font-sans); cursor: pointer; }
.schematic-play { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; }
.schematic-play svg { width: 0.875rem; height: 0.875rem; fill: currentColor; }
.schematic-pause-icon, .project-schematic[data-playing="true"] .schematic-play-icon { display: none; }
.project-schematic[data-playing="true"] .schematic-pause-icon { display: block; }
.schematic-seek { display: flex; gap: 0.375rem; }
.schematic-seek button { min-width: 44px; padding: 0.5rem; font-family: var(--font-mono); }
.schematic-seek button[aria-pressed="true"] { border-color: var(--scene-accent); background: hsl(var(--primary) / 0.1); color: var(--scene-accent); }
.schematic-play:hover, .schematic-seek button:hover { border-color: var(--scene-accent); }
.schematic-status { font-size: 0.8125rem; line-height: 1.6; color: hsl(var(--muted-foreground)); margin-top: 0.75rem; min-height: 3.2em; }
.case-preview .schematic-status { min-height: 6.4em; }
.project-schematic .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 47.99rem) { .schematic-status { min-height: 6.4em; } }
@media (prefers-reduced-motion: reduce) {
  .project-schematic *, .project-schematic *::before, .project-schematic *::after { transition: none !important; animation: none !important; }
}
@media print {
  .schematic-player { display: none; }
  .project-schematic[data-enhanced] .scene-highlight, .project-schematic[data-enhanced] .scene-pin, .project-schematic[data-enhanced] .scene-extension, .project-schematic[data-enhanced] .scene-alternatives, .project-schematic[data-enhanced][data-step="0"] .rel-model, .project-schematic[data-enhanced][data-step="0"] .scene-corridor { opacity: 1; transform: none; }
  .project-schematic .scene-geometry-label { display: none; }
}
.work-section { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.work-section .eyebrow, .work-section .text-link, .work-section .workflow-number { color: #9ad4c4; }
.work-section .lead, .product-workflow p { color: #d0dfd9; font-size: 1rem; }
.work-section h2 { max-width: 20ch; }
.status-label { font: 400 0.6875rem var(--font-mono); color: #d0dfd9; border-left: 1px solid #536e66; padding-left: 1rem; }
.product-workflow ol, .delivery-steps { list-style: none; padding: 0; }
.product-workflow li, .delivery-steps li { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid #435b54; }
.product-workflow li:first-child { padding-top: 0; }
.workflow-number { font: 400 0.75rem var(--font-mono); color: hsl(var(--primary)); padding-top: 0.25rem; }
.product-workflow h3, .delivery-steps h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.product-workflow li p { margin-top: 0.5rem; }
.product-workflow .product-workflow__note { font-size: 0.8125rem; margin-top: 1rem; }
.dark .work-section { background: #192f2e; color: #f0f4f1; }
.service-row { display: grid; grid-template-columns: 2.5rem 1fr 1.15fr; gap: 1.5rem; padding-block: 1.75rem; border-top: 1px solid hsl(var(--border)); }
.service-row__number { font: 400 0.75rem var(--font-mono); color: hsl(var(--primary)); padding-top: 0.5rem; }
.service-row h3 { font-size: 1.5rem; }
.service-row p { color: hsl(var(--muted-foreground)); }
.service-row__links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1rem; }
.service-row__links a { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; padding-block: 0.25rem; }
.service-row__links .icon { width: 1rem; height: 1rem; }
.approach-grid, .about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); }
.approach-grid .lead { max-width: 35ch; font-size: 1rem; }
.delivery-steps li { border-color: hsl(var(--border)); padding-block: 1.5rem; }
.delivery-steps li:first-child { padding-top: 0; }
.delivery-steps p { color: hsl(var(--muted-foreground)); margin-top: 0.75rem; }
.delivery-steps__outcome { display: block; margin-top: 0.75rem; font-size: 0.8125rem; color: hsl(var(--primary)); }
.company-facts { margin-top: 2rem; }
.company-facts > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; border-top: 1px solid hsl(var(--border)); padding-block: 0.875rem; font-size: 0.875rem; }
.company-facts dt { color: hsl(var(--muted-foreground)); }
.contact-section { background: hsl(var(--muted) / 0.5); border-top: 1px solid hsl(var(--border)); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-intro .lead { max-width: 35ch; font-size: 1.125rem; }
.contact-email { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border)); }
.contact-email > span, .contact-email p { display: block; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.contact-email > a { display: inline-block; font-size: 1.25rem; margin-block: 0.5rem; }
.contact-form-panel { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid hsl(var(--border)); background: hsl(var(--card)); }
.contact-form-panel h3 { font-size: 1.5rem; }
.contact-form-panel .form { margin-top: 1.5rem; }
.contact-form-panel .form__row { grid-template-columns: 1fr 1fr; }
.contact-form-panel .checkbox { font-size: 0.8125rem; }
.site-footer .brand { font-size: 1.375rem; color: hsl(var(--foreground)); }
.header__cta { padding: 0.625rem 1rem; font-size: 0.875rem; }
.consent .btn { min-height: 2.75rem; padding-block: 0.5rem; font-size: 0.8125rem; }
.consent #consent-accept { background: transparent; border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
.consent #consent-accept:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }

/* Interior service pages: open content groups and a consistent enquiry route. */
.service-page .page-head h1 { max-width: 20ch; }
.service-page .page-head .lead { max-width: 55ch; }
.service-page .page-head .hero-actions { margin-top: 1.5rem; }
.service-page .section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.service-page .card { padding: 1.25rem 0; border: 0; border-top: 1px solid hsl(var(--border)); background: transparent; }
.service-page .card__title { font-size: 1.25rem; }
.service-page .grid--2 { gap: 2rem 3rem; }
.service-page .prose { max-width: 65ch; }
.service-page .step__num { margin-bottom: 0.5rem; }
.service-page .chip { font-family: var(--font-sans); white-space: normal; }
.service-page .section > .container--narrow { max-width: 62rem; }

@media (max-width: 61.99rem) {
  .home-hero__grid { grid-template-columns: 1fr 0.85fr; gap: 2rem; }
  .home-hero__copy h1 { font-size: 3rem; }
  .model-visual { padding: 1.25rem; }
}
@media (max-width: 47.99rem) {
  :root { --header-h: 4.5rem; }
  .home-hero__grid, .work-grid, .section-intro, .approach-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .home-hero { padding-top: calc(var(--header-h) + 2.5rem); }
  .home-hero__copy h1 { font-size: clamp(2.375rem, 7vw + 0.75rem, 3.25rem); }
  .home-hero__copy .lead { font-size: 1.0625rem; }
  .model-drawing { max-height: 15rem; }
  .model-visual { max-width: 32rem; width: 100%; }
  .section-intro h2 { max-width: 22ch; }
  .service-row { grid-template-columns: 1.5rem 1fr; gap: 0.75rem; }
  .service-row > div { grid-column: 2; }
  .service-row h3 { font-size: 1.375rem; }
  .work-section h2 { max-width: 24ch; }
  .contact-intro .lead { max-width: 48ch; }
  .site-header__inner { gap: 0.5rem; }
  .header__actions { gap: 0.125rem; }
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1; }
}
@media (max-width: 24rem) {
  .brand { font-size: 1.125rem; }
  .site-header .brand__mark { display: none; }
  .contact-form-panel .form__row { grid-template-columns: 1fr; }
  .model-visual__steps li { font-size: 0.75rem; }
}

/* --- Page header (interior pages) ---------------------------------- */

.page-head {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4rem));
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.4);
  overflow: hidden;
}
.dark .page-head { background: none; }
.page-head__inner { position: relative; z-index: 1; }

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.backlink:hover { color: hsl(var(--primary)); }

/* --- FAQ ----------------------------------------------------------- */

.faq { border-top: 1px solid hsl(var(--border)); }
.faq__item { border-bottom: 1px solid hsl(var(--border)); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  flex: none;
  border-right: 2px solid hsl(var(--muted-foreground));
  border-bottom: 2px solid hsl(var(--muted-foreground));
  transform: rotate(45deg) translateY(-0.15rem);
  transition: transform 0.25s;
}
.faq__item[open] summary::after { transform: rotate(-135deg) translateY(-0.15rem); }
.faq__item summary:hover { color: hsl(var(--primary)); }
.faq__answer {
  padding-bottom: 1.25rem;
  color: hsl(var(--muted-foreground));
  max-width: 68ch;
}

/* --- Forms --------------------------------------------------------- */

.form { display: grid; gap: 1.25rem; }
.form__row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}

.field { display: grid; gap: 0.375rem; }
.field__label {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: hsl(var(--foreground));
}
.field__hint {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
.field__error {
  font-size: 0.8125rem;
  color: hsl(var(--danger));
  min-height: 0;
}
.field__error:empty { display: none; }

.input,
.textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder,
.textarea::placeholder { color: hsl(var(--muted-foreground)); }
.input:focus,
.textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.18);
}
.input[aria-invalid="true"],
.textarea[aria-invalid="true"] { border-color: hsl(var(--danger)); }
.textarea { resize: vertical; min-height: 8rem; }

.checkbox {
  display: grid;
  grid-template-columns: 1.125rem 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}
.checkbox input {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.2em;
  accent-color: hsl(var(--primary));
  cursor: pointer;
}

/* The honeypot. Hidden from sight and from assistive technology, and taken
   out of the tab order, so only an automated filler will put anything in it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  font-size: 0.9375rem;
}
.form__status[data-state="ok"] {
  border-color: hsl(var(--success) / 0.4);
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
}
.form__status[data-state="error"] {
  border-color: hsl(var(--danger) / 0.4);
  background: hsl(var(--danger) / 0.08);
  color: hsl(var(--danger));
}
.form__status[hidden] { display: none; }

/* --- Prose (privacy, cookies, terms) ------------------------------- */

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.125rem; }
.prose h2 {
  font-size: var(--step-2);
  margin-top: 2.75rem;
  padding-top: 0.25rem;
}
.prose h3 {
  font-size: var(--step-1);
  margin-top: 2rem;
}
.prose p,
.prose li { color: hsl(var(--muted-foreground)); }
.prose ul,
.prose ol { padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.prose li::marker { color: hsl(var(--primary)); }
.prose strong { color: hsl(var(--foreground)); font-weight: 600; }
.prose dl { display: grid; gap: 0.75rem; }
.prose dt { font-weight: 600; color: hsl(var(--foreground)); font-family: var(--font-mono); font-size: var(--step--1); }
.prose dd { margin: 0; color: hsl(var(--muted-foreground)); }

.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
}
.table th,
.table td {
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: top;
}
.table th {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground));
  font-weight: 600;
  white-space: nowrap;
}
.table td { color: hsl(var(--muted-foreground)); }
.table tbody tr:last-child td { border-bottom: 0; }

.callout {
  padding: 1rem 1.25rem;
  border-left: 3px solid hsl(var(--primary));
  background: hsl(var(--muted) / 0.6);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p { color: hsl(var(--muted-foreground)); }

/* --- Footer -------------------------------------------------------- */

.site-footer {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.site-footer__grid {
  display: grid;
  gap: 2rem clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
}
.site-footer h2 {
  font-size: 0.875rem;
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  color: hsl(var(--foreground));
  font-weight: 600;
  margin-bottom: 0.875rem;
}
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.9375rem;
}
.site-footer a:hover { color: hsl(var(--primary)); }

.site-footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
.site-footer__ids {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

/* --- Consent banner ------------------------------------------------ */

.consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  padding: 0.875rem var(--gutter);
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  box-shadow: 0 -2px 16px hsl(190 25% 9% / 0.06);
}
.consent[hidden] { display: none; }
.consent__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 1.5rem;
  justify-content: space-between;
}
.consent__text {
  flex: 1 1 24rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.consent .btn { padding-inline: 1.25rem; }

/* --- Video facade -------------------------------------------------- */

.video {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  background: hsl(var(--card));
  box-shadow: var(--shadow-lg);
}
.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.video__play img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: opacity 0.3s;
}
.video__play:hover img { opacity: 1; }
.video__play span {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-inline: auto;
  border-radius: 50%;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s;
}
.video__play:hover span { transform: scale(1.08); }
.video__note {
  padding: 0.875rem 1rem;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.4);
  text-align: center;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

/* ------------------------------------------------------------------ */
/* 6. Utilities                                                        */
/* ------------------------------------------------------------------ */

.center { text-align: center; }
.centred { margin-inline: auto; }

/* The inline icon sprite. Kept out of the layout without an inline style
   attribute, so the Content-Security-Policy needs no 'unsafe-inline'. */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flow-auto { margin-top: auto; }
.full { width: 100%; }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------------ */
/* 7. Responsive                                                       */
/* ------------------------------------------------------------------ */

@media (min-width: 62rem) {
  .grid--2-fixed { grid-template-columns: 1fr 1fr; }
}



@media (max-width: 61.99rem) {
  .site-header .nav--primary,
  .site-header .header__cta { display: none; }
  .menu-toggle { display: grid; }
}

/* ------------------------------------------------------------------ */
/* 8. Motion and print                                                 */
/* ------------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

/*
 * The old site animated unconditionally. Anyone who has asked their OS to
 * reduce motion gets the end state immediately instead.
 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header,
  .mobile-nav,
  .consent,
  .grid-bg,
  .skip-link,
  .video__play { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section, .home-hero, .page-head { padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .card, .contact-form-panel { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}


