/* GENERATED by monaro-src/build.mjs — edit the source files listed below, not this file. */

/* ===== tokens.css ===== */
/* ==========================================================================
   Monaro design tokens
   Source: Paper "00 Foundations & Components" and the page artboards (1440px).
   Every value used by the shared stylesheets and by page CSS lives here.
   Fluid tokens are clamp()s that equal Paper's value at a 1440px viewport and
   scale down to a 360px viewport.
   ========================================================================== */

:root {
  /* ---- Colour: palette (exact brand values) ---- */
  --color-background: #FFFFFF;
  --color-surface: #F7F9FB;
  --color-foreground: #000000;
  --color-ink: #0D1A2E;
  /* Muted text. The brand grey is #757575: 4.61:1 on white but 4.37:1 on the surface ground (#F7F9FB), under
     the 4.5:1 that small text needs. Three steps darker reads the same and passes on both (4.81 / 4.56).
     The hairline below keeps the brand value. To go back to the exact brand grey, restore #757575 here. */
  --color-muted: #727272;
  --color-rule: #7575754D;

  --color-on-dark: #FFFFFF;
  --color-on-dark-soft: #FFFFFFCC;      /* lead paragraphs on midnight */
  --color-on-dark-muted: #FFFFFFA6;     /* secondary text on midnight */
  --color-on-dark-faint: #FFFFFF66;     /* resting icons, separators, strong hairlines on midnight */
  --color-on-dark-border: #FFFFFF52;    /* outlined button on midnight */
  --color-on-dark-rule: #FFFFFF29;      /* hairlines on midnight */
  --color-on-dark-ghost: #FFFFFF12;     /* footer wordmark */

  --color-near-black: #03090F;
  --color-midnight: #021322;
  --color-navy: #031B2F;
  --color-petroleum: #06283A;

  --color-teal-deep: #075E62;
  --color-teal: #087F83;
  --color-emerald: #009C78;
  --color-aqua: #39B7B4;

  --color-error: #B42318;               /* form errors only */
  --color-success-tint: #E6F5F1;        /* "After" tag, success message, hover of the white button */
  --color-disabled: #D9D9D9;            /* disabled button ground */
  --color-ghost: rgb(33 42 90 / 0.05);  /* ghost numerals on white */
  --color-focus-halo: #39B7B440;        /* 4px halo around a focused field */
  --color-tag-border: #0D1A2E4D;

  /* ---- Colour: context (what a component should use) ----
     Light values here; .on-dark and every dark component re-point them.
     Components read these, so the same markup works on both grounds. */
  --c-ground: var(--color-background);
  --c-heading: var(--color-foreground);
  --c-text: var(--color-foreground);
  --c-muted: var(--color-muted);
  --c-ink: var(--color-ink);
  --c-rule: var(--color-rule);
  --c-rule-strong: var(--color-ink);
  --c-marker: var(--color-ink);
  --c-faint: var(--color-rule);
  --c-surface: var(--color-surface);
  --c-focus: var(--color-teal);
  --c-emph: var(--emph-color);
  --c-on-ink: var(--color-on-dark);                 /* text on an ink-filled control */
  --btn-primary-bg: var(--color-ink);
  --btn-primary-fg: var(--color-on-dark);
  --btn-primary-bg-hover: var(--color-navy);
  --btn-primary-icon-hover: var(--color-aqua);
  --btn-secondary-border: var(--color-rule);
  --btn-secondary-border-hover: var(--color-ink);

  /* ---- Emphasis (the phrase Paper sets in Medium Italic; upright in code) ---- */
  --emph-weight: 500;
  --emph-color: currentColor;
  --emph-color-on-dark: currentColor;

  /* ---- Type families ---- */
  --font-latin: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "DIN Next LT Arabic", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  --font-body: var(--font-latin);

  /* ---- Type weights ---- */
  --weight-light: 300;     /* uppercase labels, numerals */
  --weight-regular: 400;   /* headlines and body */
  --weight-medium: 500;    /* buttons, small interface text, headline emphasis */

  /* ---- Type sizes (px at 1440 → px at 360) ---- */
  --fs-display: clamp(2.75rem, 1.2rem + 7vw, 7.5rem);                /* 120 → 44 */
  --fs-h1: clamp(2.5rem, 1.5rem + 4.4444vw, 5.5rem);                 /* 88 → 40 */
  --fs-h2: clamp(2rem, 1.3333rem + 2.963vw, 4rem);                   /* 64 → 32 */
  --fs-h3: clamp(1.625rem, 1.3333rem + 1.2963vw, 2.5rem);            /* 40 → 26 */
  --fs-h4: clamp(1.375rem, 1.25rem + 0.5556vw, 1.75rem);             /* 28 → 22 */
  --fs-h5: clamp(1.1875rem, 1.125rem + 0.2778vw, 1.375rem);          /* 22 → 19 */
  --fs-lead: clamp(1.125rem, 1.0417rem + 0.3704vw, 1.375rem);        /* 22 → 18 */
  --fs-body: clamp(1rem, 0.9792rem + 0.0926vw, 1.0625rem);           /* 17 → 16 */
  --fs-small: 0.9375rem;                                             /* 15 */
  --fs-caption: 0.8125rem;                                           /* 13 */
  --fs-label: 0.8125rem;                                             /* 13 */
  --fs-micro: 0.6875rem;                                             /* 11 */

  /* ---- Line heights (Paper's px pairs as ratios) ---- */
  --lh-display: calc(116 / 120);
  --lh-h1: calc(90 / 88);
  --lh-h2: calc(68 / 64);
  --lh-h3: calc(46 / 40);
  --lh-h4: calc(34 / 28);
  --lh-h5: calc(28 / 22);
  --lh-lead: calc(32 / 22);
  --lh-body: calc(27 / 17);
  --lh-small: calc(23 / 15);
  --lh-caption: calc(18 / 13);
  --lh-label: calc(16 / 13);
  --lh-ui: calc(20 / 15);       /* buttons, navigation, links */

  /* ---- Tracking ---- */
  --tracking-display: -0.045em; /* Display and H1 specimens, closing statements */
  --tracking-tight: -0.04em;    /* 22px and above */
  --tracking-snug: -0.03em;     /* 17–20px interface values */
  --tracking-normal: -0.02em;   /* 18px and below, labels */

  /* ---- Spacing scale (4px base) ---- */
  --space-1: 0.25rem;   /* 4 */
  --space-2: 0.5rem;    /* 8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.25rem;   /* 20 */
  --space-6: 1.5rem;    /* 24 */
  --space-7: 1.75rem;   /* 28 */
  --space-8: 2rem;      /* 32 */
  --space-10: 2.5rem;   /* 40 */
  --space-12: 3rem;     /* 48 */
  --space-14: 3.5rem;   /* 56 */
  --space-16: 4rem;     /* 64 */
  --space-18: 4.5rem;   /* 72 */
  --space-22: 5.5rem;   /* 88 */
  --space-24: 6rem;     /* 96 */
  --space-30: 7.5rem;   /* 120 */
  --space-40: 10rem;    /* 160 */

  /* ---- Layout ---- */
  --container-max: 80rem;                                            /* 1280 */
  --gutter: clamp(1.25rem, 5.5556vw, 5rem);                          /* 80 → 20 */
  --grid-columns: 12;
  --grid-gap: 1.5rem;                                                /* 24 */
  --section-pad: clamp(4.5rem, 2.6667rem + 8.1481vw, 10rem);         /* 160 → 72 */
  --section-pad-tight: clamp(3.5rem, 2.1667rem + 5.9259vw, 7.5rem);  /* 120 → 56 */
  --section-gap: clamp(2.5rem, 1.5rem + 4.4444vw, 5.5rem);           /* 88 → 40, section header to content */
  --label-col: 18.875rem;                                            /* 302: three columns, the label column */
  --header-h: 6rem;                                                  /* 96 */
  --header-h-compact: 4.5rem;                                        /* 72, sticky header */
  --header-offset: 0px;                                              /* = header height on header-overlay pages */

  /* ---- Radii: 8 and 25, nothing else ---- */
  --radius-sm: 8px;
  --radius-lg: 25px;

  /* ---- Shadows ---- */
  --shadow-card: 0 2px 12px rgb(0 0 0 / 0.12);
  --shadow-panel: 0 24px 48px #03090F1A;
  --shadow-panel-dark: 0 24px 48px #00000073;
  --shadow-menu: 0 16px 40px #00000080;
  --shadow-float: 0 12px 32px #03090F47;
  --shadow-frame: 0 24px 64px #03090F1A;

  /* ---- Motion ---- */
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 450ms;
  --dur-slower: 700ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);

  /* ---- Layers ---- */
  --z-base: 0;
  --z-raised: 10;
  --z-floating: 150;   /* floating live action */
  --z-header: 200;
  --z-dropdown: 210;
  --z-menu: 300;       /* mobile menu */
  --z-skip: 1000;

  /* ---- Direction multiplier for transforms that must mirror (1 in LTR, -1 in RTL) ---- */
  --dir: 1;
}

[dir="rtl"] { --dir: -1; }

/* ---- Arabic: DIN Next LT Arabic (Regular only), no tracking, taller lines,
        emphasis by colour because there is no heavier weight ---- */
[lang="ar"] {
  --font-body: var(--font-arabic);

  --emph-weight: 400;
  --emph-color: var(--color-teal);
  --emph-color-on-dark: var(--color-aqua);

  --tracking-display: 0em;
  --tracking-tight: 0em;
  --tracking-snug: 0em;
  --tracking-normal: 0em;

  /* Arabic reads smaller than Latin at the same size: the text sizes step up, headings stay. */
  --fs-body: clamp(1.0625rem, 1.0417rem + 0.0926vw, 1.125rem);       /* 18 → 17 */
  --fs-small: 1rem;                                                  /* 16 */
  --fs-caption: 0.875rem;                                            /* 14 */
  --fs-label: 0.875rem;                                              /* 14 */
  --fs-micro: 0.8125rem;                                             /* 13 */

  --lh-display: 1.3;
  --lh-h1: 1.32;
  --lh-h2: 1.36;
  --lh-h3: 1.42;
  --lh-h4: 1.5;
  --lh-h5: 1.55;
  --lh-lead: 1.7;
  --lh-body: 1.8;
  --lh-small: 1.75;
  --lh-caption: 1.65;
  --lh-label: 1.5;
  --lh-ui: 1.5;
}

/* A Latin fragment marked lang="en" inside an Arabic page gets the Latin values back. */
[lang="en"] {
  --font-body: var(--font-latin);

  --emph-weight: 500;
  --emph-color: currentColor;
  --emph-color-on-dark: currentColor;
  --c-emph: currentColor;

  --tracking-display: -0.045em;
  --tracking-tight: -0.04em;
  --tracking-snug: -0.03em;
  --tracking-normal: -0.02em;

  --fs-body: clamp(1rem, 0.9792rem + 0.0926vw, 1.0625rem);
  --fs-small: 0.9375rem;
  --fs-caption: 0.8125rem;
  --fs-label: 0.8125rem;
  --fs-micro: 0.6875rem;

  --lh-display: calc(116 / 120);
  --lh-h1: calc(90 / 88);
  --lh-h2: calc(68 / 64);
  --lh-h3: calc(46 / 40);
  --lh-h4: calc(34 / 28);
  --lh-h5: calc(28 / 22);
  --lh-lead: calc(32 / 22);
  --lh-body: calc(27 / 17);
  --lh-small: calc(23 / 15);
  --lh-caption: calc(18 / 13);
  --lh-label: calc(16 / 13);
  --lh-ui: calc(20 / 15);
}

/* ---- Dark grounds: re-point the context tokens ----
     .on-dark is the utility; the dark components listed here include it by definition. */
.on-dark,
.section--midnight,
.hero--dark,
.cta-closing,
.site-footer {
  color: var(--color-on-dark);
  --c-ground: var(--color-midnight);
  --c-heading: var(--color-on-dark);
  --c-text: var(--color-on-dark);
  --c-muted: var(--color-on-dark-muted);
  --c-ink: var(--color-on-dark);
  --c-rule: var(--color-on-dark-rule);
  --c-rule-strong: var(--color-on-dark);
  --c-marker: var(--color-aqua);
  --c-faint: var(--color-on-dark-faint);
  --c-surface: var(--color-petroleum);
  --c-focus: var(--color-aqua);
  --c-emph: var(--emph-color-on-dark);
  --c-on-ink: var(--color-ink);
  --btn-primary-bg: var(--color-on-dark);
  --btn-primary-fg: var(--color-ink);
  --btn-primary-bg-hover: var(--color-success-tint);
  --btn-primary-icon-hover: var(--color-emerald);
  --btn-secondary-border: var(--color-on-dark-border);
  --btn-secondary-border-hover: var(--color-on-dark);
}

/* A light island inside a dark ground (a white card on midnight, for example). */
.on-light {
  --c-ground: var(--color-background);
  --c-heading: var(--color-foreground);
  --c-text: var(--color-foreground);
  --c-muted: var(--color-muted);
  --c-ink: var(--color-ink);
  --c-rule: var(--color-rule);
  --c-rule-strong: var(--color-ink);
  --c-marker: var(--color-ink);
  --c-faint: var(--color-rule);
  --c-surface: var(--color-surface);
  --c-focus: var(--color-teal);
  --c-emph: var(--emph-color);
  --c-on-ink: var(--color-on-dark);
  --btn-primary-bg: var(--color-ink);
  --btn-primary-fg: var(--color-on-dark);
  --btn-primary-bg-hover: var(--color-navy);
  --btn-primary-icon-hover: var(--color-aqua);
  --btn-secondary-border: var(--color-rule);
  --btn-secondary-border-hover: var(--color-ink);
  color: var(--c-text);
}

/* The header may overlay the first section (meta.json "headerOverlay": true).
   The first section then starts at the top of the page and must add this offset to its own top padding. */
.header-overlay { --header-offset: var(--header-h); }


/* ===== typography.css ===== */
/* ==========================================================================
   Typography
   English: Inter (variable, weight + optical size). Arabic: DIN Next LT Arabic Regular.
   Upright only: this website has no italic face and never synthesises one.
   ========================================================================== */

/* ---- Fonts (served locally) ---- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter/inter-latin-opsz-normal.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter/inter-latin-ext-opsz-normal.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;
}

@font-face {
  font-family: "DIN Next LT Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/din-next-lt-arabic/DINNextLTArabic-Regular.woff2") format("woff2");
}

/* ---- Base text ---- */
html {
  font-family: var(--font-body);
  font-synthesis: none;              /* never draw a fake bold or a fake slant */
  font-optical-sizing: auto;         /* Inter's display cut at large sizes, as in Paper */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-size: var(--fs-body);
  font-weight: var(--weight-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-normal);
  color: var(--c-text);
}

/* A fragment in the other language switches family with its lang attribute. */
[lang="ar"],
[lang="en"] { font-family: var(--font-body); }

/* No italics anywhere: neutralise every element browsers slant by default. */
em, i, cite, dfn, var, address, q, blockquote { font-style: normal; }

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: var(--weight-regular);
  line-height: inherit;
}

strong, b { font-weight: var(--weight-medium); }

/* ---- Type classes ---- */
.display,
.h1,
.h2,
.h3,
.h4,
.h5 {
  font-weight: var(--weight-regular);
  text-wrap: balance;
}

.display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
  color: var(--c-heading);
}

.h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--tracking-display);
  color: var(--c-heading);
}

.h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--tracking-tight);
  color: var(--c-heading);
}

.h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--tracking-tight);
  color: var(--c-ink);
}

.h4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  letter-spacing: var(--tracking-tight);
  color: var(--c-ink);
}

/* Row and item titles (22/28): FAQ questions, step titles, stage names. */
.h5 {
  font-size: var(--fs-h5);
  line-height: var(--lh-h5);
  letter-spacing: var(--tracking-tight);
  color: var(--c-ink);
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--tracking-tight);
  color: var(--c-text);
}

.body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-normal);
  color: var(--c-muted);
}

.small {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  letter-spacing: var(--tracking-normal);
  color: var(--c-muted);
}

.caption {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--tracking-normal);
  color: var(--c-muted);
}

.label {
  font-size: var(--fs-label);
  font-weight: var(--weight-light);
  line-height: var(--lh-label);
  letter-spacing: var(--tracking-normal);
  text-transform: uppercase;
  color: var(--c-text);
}

.lead,
.body,
.small,
.caption { text-wrap: pretty; }

/* Keep a name or a short phrase on one line (a Latin brand name inside Arabic text, for example). */
.nowrap { white-space: nowrap; }

/* Colour modifiers for the text classes. */
.text-strong { color: var(--c-text); }
.text-ink { color: var(--c-ink); }
.text-muted { color: var(--c-muted); }

/* ---- Emphasis: <em> inside a heading, upright ----
   English: Inter Medium, colour inherited. Arabic: Regular in the emphasis colour (tokens.css). */
:is(h1, h2, h3, h4, h5, h6, .display, .h1, .h2, .h3, .h4, .h5) em {
  font-weight: var(--emph-weight);
  color: var(--c-emph);
}

/* ---- Links inside running text ---- */
:is(p, dd, figcaption, .prose li) a:not([class]) {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color var(--dur-fast) var(--ease-standard);
}

:is(p, dd, figcaption, .prose li) a:not([class]):hover { text-decoration-color: var(--c-faint); }

/* ---- Arabic ---- */
/* Tracking breaks Arabic joining: the tokens are zero in Arabic, and this guard covers
   any letter-spacing written outside the tokens. A nested lang="en" fragment is not matched. */
:lang(ar) { letter-spacing: 0 !important; }

/* A Latin fragment marked lang="en" inside an Arabic heading (a sample's brand name in an H1, for example).
   The guard above leaves the fragment alone, but letter-spacing is inherited as a computed value and the
   Arabic heading's is zero, so the fragment would be set without any tracking. It takes the Latin tracking of
   the heading's level instead: inside [lang="en"] the tracking tokens hold their Latin values again (tokens.css).
   :where() keeps the weight low, so a page that sets its own tracking on a headline can repeat it on the fragment. */
:is(.display, .h1):where(:lang(ar)) [lang="en"] { letter-spacing: var(--tracking-display); }
:is(.h2, .h3, .h4, .h5):where(:lang(ar)) [lang="en"] { letter-spacing: var(--tracking-tight); }

/* ---- Line breaks that only exist on the desktop layout ----
   Write a space before the tag so the words stay apart when it is hidden:
   "A considered process. <br class="br-desktop">A clearer result." */
.br-desktop { display: inline; }

::selection {
  background-color: var(--color-ink);
  color: var(--color-on-dark);
}

:is(.on-dark, .section--midnight, .hero--dark, .cta-closing, .site-footer) ::selection {
  background-color: var(--color-aqua);
  color: var(--color-near-black);
}


/* ===== layout.css ===== */
/* ==========================================================================
   Layout: reset, container, grid, sections, section header, small utilities
   Base styles describe the 1440px desktop design; responsive.css adapts them.
   Logical properties only, so every rule mirrors under dir="rtl".
   ========================================================================== */

/* ---- Reset ---- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-tap-highlight-color: transparent;
  scroll-padding-block-start: calc(var(--header-h-compact) + var(--space-4));
}

body {
  min-block-size: 100vh;
  min-block-size: 100dvh;
  background-color: var(--color-background);
  overflow-wrap: break-word;
}

img,
picture,
video,
canvas,
svg { display: block; max-inline-size: 100%; }

img,
video { block-size: auto; }

input,
button,
textarea,
select { font: inherit; letter-spacing: inherit; color: inherit; }

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

ul,
ol { padding: 0; list-style: none; }

table { border-collapse: collapse; }

fieldset { min-inline-size: 0; padding: 0; border: 0; }
legend { padding: 0; }

summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

[hidden] { display: none !important; }

/* ---- Icons (inline SVG from the {{icon}} helper) ---- */
.icon {
  flex: none;
  inline-size: 1rem;
  block-size: 1rem;
}

/* Arrows that point along the reading direction flip in Arabic. */
[dir="rtl"] .icon-dir { scale: -1 1; }

/* ---- Focus ---- */
:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- Skip link (the build writes <a class="skip-link" href="#main">) ---- */
.skip-link {
  position: fixed;
  inset-block-start: var(--space-3);
  inset-inline-start: var(--space-3);
  z-index: var(--z-skip);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  background-color: var(--color-ink);
  color: var(--color-on-dark);
  font-size: var(--fs-small);
  font-weight: var(--weight-medium);
  line-height: var(--lh-ui);
  /* invisible until it has keyboard focus (not parked off-screen, so it never appears in a capture) */
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-1 * var(--space-2)));
  transition: opacity var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}

.skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  outline-color: var(--color-aqua);
}

/* ---- Visually hidden (still read by assistive technology) ---- */
.visually-hidden {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* ---- Scroll lock while the mobile menu is open (set by navigation.js) ---- */
html.is-scroll-locked,
html.is-scroll-locked body { overflow: hidden; }

/* ---- Container: 1280px content, 80px side margin at 1440 ---- */
.container {
  inline-size: min(100% - 2 * var(--gutter), var(--container-max));
  margin-inline: auto;
}

/* ---- 12-column grid, 24px gutter ----
   .col-N spans N columns; .col-start-N starts at column N.
   From 1024px down every column takes the full width unless it carries .col-md-N;
   from 768px down unless it carries .col-sm-N (responsive.css). */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: var(--grid-row-gap, 0px);
}

.col-1 { grid-column-end: span 1; }
.col-2 { grid-column-end: span 2; }
.col-3 { grid-column-end: span 3; }
.col-4 { grid-column-end: span 4; }
.col-5 { grid-column-end: span 5; }
.col-6 { grid-column-end: span 6; }
.col-7 { grid-column-end: span 7; }
.col-8 { grid-column-end: span 8; }
.col-9 { grid-column-end: span 9; }
.col-10 { grid-column-end: span 10; }
.col-11 { grid-column-end: span 11; }
.col-12 { grid-column-end: span 12; }

.col-start-1 { grid-column-start: 1; }
.col-start-2 { grid-column-start: 2; }
.col-start-3 { grid-column-start: 3; }
.col-start-4 { grid-column-start: 4; }
.col-start-5 { grid-column-start: 5; }
.col-start-6 { grid-column-start: 6; }
.col-start-7 { grid-column-start: 7; }
.col-start-8 { grid-column-start: 8; }
.col-start-9 { grid-column-start: 9; }
.col-start-10 { grid-column-start: 10; }
.col-start-11 { grid-column-start: 11; }
.col-start-12 { grid-column-start: 12; }

.align-start { align-items: start; }
.align-center { align-items: center; }
.align-end { align-items: end; }

/* ---- Stacks and clusters ---- */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, var(--space-6));
}

.stack--xs { --stack-gap: var(--space-2); }
.stack--sm { --stack-gap: var(--space-3); }
.stack--md { --stack-gap: var(--space-6); }
.stack--lg { --stack-gap: var(--space-10); }
.stack--xl { --stack-gap: var(--space-16); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, var(--space-3));
}

.cluster--lg { --cluster-gap: var(--space-7); }
.cluster--between { justify-content: space-between; }

/* ---- Measures: readable line lengths for a block that is not on the grid ---- */
.measure { max-inline-size: 39.25rem; }          /* 628: six columns */
.measure--narrow { max-inline-size: 30rem; }     /* 480 */
.measure--wide { max-inline-size: 46.0625rem; }  /* 737: seven columns */

/* ---- Section ---- */
.section {
  position: relative;
  padding-block: var(--section-pad);
  background-color: var(--c-ground);
  color: var(--c-text);
}

.section--tight { padding-block: var(--section-pad-tight); }

.section--surface { --c-ground: var(--color-surface); }

/* Midnight ground with the brand glow ("Midnight Diffusion"). Text turns white; see tokens.css. */
.section--midnight {
  --c-ground: var(--color-near-black);
  background-image: url("/assets/images/brand/glow-midnight.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Plain midnight, no image: add .on-dark to the section as well. */
.section--midnight-plain { --c-ground: var(--color-midnight); }

/* A section directly after another one of the same ground can drop its top padding. */
.section--flush-top { padding-block-start: 0; }
.section--flush-bottom { padding-block-end: 0; }

/* Content block that follows the section header. */
.section__body { margin-block-start: var(--section-gap); }

/* ---- Brand atmosphere: one treatment per section, two or three sections per page ----
   Background layers only; they never sit over text. Glows mirror in Arabic, the waveform
   artwork never does. */
.section--glow-corner {
  background-image:
    radial-gradient(48% 70% at 100% 8%, rgb(8 127 131 / 0.08) 0%, rgb(8 127 131 / 0) 70%),
    radial-gradient(44% 60% at 0% 100%, rgb(0 156 120 / 0.07) 0%, rgb(0 156 120 / 0) 70%);
  background-repeat: no-repeat;
}

[dir="rtl"] .section--glow-corner {
  background-image:
    radial-gradient(48% 70% at 0% 8%, rgb(8 127 131 / 0.08) 0%, rgb(8 127 131 / 0) 70%),
    radial-gradient(44% 60% at 100% 100%, rgb(0 156 120 / 0.07) 0%, rgb(0 156 120 / 0) 70%);
}

.section--glow-edge {
  background-image: radial-gradient(60% 46% at 50% 100%, rgb(0 156 120 / 0.10) 0%, rgb(0 156 120 / 0) 70%);
  background-repeat: no-repeat;
}

.section--glow-paired {
  background-image:
    radial-gradient(44% 34% at 4% 64%, rgb(8 127 131 / 0.11) 0%, rgb(8 127 131 / 0) 70%),
    radial-gradient(44% 34% at 97% 38%, rgb(0 156 120 / 0.10) 0%, rgb(0 156 120 / 0) 70%);
  background-repeat: no-repeat;
}

[dir="rtl"] .section--glow-paired {
  background-image:
    radial-gradient(44% 34% at 96% 64%, rgb(8 127 131 / 0.11) 0%, rgb(8 127 131 / 0) 70%),
    radial-gradient(44% 34% at 3% 38%, rgb(0 156 120 / 0.10) 0%, rgb(0 156 120 / 0) 70%);
}

/* Waveform cuts. Sizes and offsets are Paper's for a 1440px section, expressed against the
   section edges so they hold at other widths. Tune per section with the custom properties.
   Physical sides on purpose: the profile artwork is not mirrored. */
.section--wave-fan {
  background-image: url("/assets/images/brand/waveform-fan-soft.webp");
  background-size: var(--wave-size, 800px) auto;
  background-position: right var(--wave-x, -65px) top var(--wave-y, -270px);
  background-repeat: no-repeat;
}

.section--wave-fan.section--wave-faint { background-image: url("/assets/images/brand/waveform-fan-faint.webp"); }

.section--wave-crest {
  background-image: url("/assets/images/brand/waveform-crest-soft.webp");
  background-size: var(--wave-size, 630px) auto;
  background-position: left var(--wave-x, -60px) bottom var(--wave-y, -357px);
  background-repeat: no-repeat;
}

.section--wave-crest.section--wave-faint { background-image: url("/assets/images/brand/waveform-crest-faint.webp"); }

/* Dot texture tile. */
.bg-dots {
  background-image: url("/assets/images/brand/dot-texture.webp");
  background-size: 1400px 1399px;
  background-repeat: repeat;
}

/* ---- Eyebrow: uppercase label with the 6px square marker ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-label);
  font-weight: var(--weight-light);
  line-height: var(--lh-label);
  letter-spacing: var(--tracking-normal);
  text-transform: uppercase;
  color: var(--c-text);
}

.eyebrow::before {
  content: "";
  flex: none;
  inline-size: 6px;
  block-size: 6px;
  background-color: var(--c-marker);
}

.eyebrow--plain::before { content: none; }

/* ---- Section header: 302px label column + H2 (+ optional intro under the H2) ---- */
.section-header {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: start;
}

.section-header__label {
  grid-column: 1 / span 3;
  /* centred on the first line of the H2, as in Paper (68px tall label box) */
  min-block-size: calc(var(--fs-h2) * var(--lh-h2));
}

.section-header__title {
  grid-column: 4 / -1;
}

.section-header__intro {
  grid-column: 4 / -1;
  max-inline-size: 46.0625rem; /* 737: seven columns */
  margin-block-start: var(--space-6);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--tracking-tight);
  color: var(--c-muted);
  text-wrap: pretty;
}

/* Header without a label column: title spans the full width. */
.section-header--plain .section-header__title,
.section-header--plain .section-header__intro { grid-column: 1 / -1; }

/* ---- Hairline ---- */
.rule {
  block-size: 1px;
  border: 0;
  background-color: var(--c-rule);
}

/* Brand motif: a rule that starts 120px in from the content edge and runs to the edge of the page.
   Place it as a direct child of the section, outside .container. */
.rule--brand {
  margin-inline-start: calc(max(var(--gutter), (100% - var(--container-max)) / 2) + var(--brand-rule-inset, var(--space-30)));
}

/* ---- Anchors land below the sticky header ----
   A link target lands 24px under the compact header (72 + 24 = 96px at desktop widths). html already has a
   scroll padding of the compact header + 16px (above; it also keeps a focused control clear of the header),
   and a scroll margin is ADDED to it, so the target itself only needs the remaining 8px. Repeating the header
   height here made every in-page link land 184px down (88 + 96). */
:target { scroll-margin-block-start: calc(var(--space-6) - var(--space-4)); }


/* ===== components.css ===== */
/* ==========================================================================
   Components
   Markup for every component is documented in monaro-src/COMPONENTS.md.
   Values are Paper's (Foundations board and the page artboards) at 1440px.
   Components read the context tokens (--c-*), so they work on light and dark grounds.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Icons: sizes
   -------------------------------------------------------------------------- */
.icon:not([width]) { inline-size: var(--icon-size, 1rem); block-size: var(--icon-size, 1rem); }
.icon--sm { --icon-size: 1rem; }       /* 16: links, breadcrumbs, 52px buttons */
.icon--md { --icon-size: 1.125rem; }   /* 18: 44px and 60px buttons */
.icon--lg { --icon-size: 1.25rem; }    /* 20: controls, dropdown items */
.icon--xl { --icon-size: 1.5rem; }     /* 24: list rows with a large title */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-block-size: 3.25rem;                 /* 52 */
  padding-inline: 1.375rem;                /* 22 */
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: var(--weight-medium);
  line-height: var(--lh-ui);
  letter-spacing: var(--tracking-normal);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-base) var(--ease-standard),
    border-color var(--dur-base) var(--ease-standard),
    color var(--dur-base) var(--ease-standard);
}

.btn .icon {
  transition: translate var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-standard);
}

/* A trailing arrow sits 2px closer to the edge than the label, as drawn. */
.btn:has(> .icon:last-child) { padding-inline-end: 1.25rem; }

/* The ring takes the focus colour of its ground, like every other control: teal on light (4.8:1 on white),
   aqua on dark. A fixed aqua ring was 2.4:1 on white. */
.btn:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
}

/* Primary: ink on light grounds, white on midnight (the context decides). */
.btn--primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}

/* Secondary: hairline outline. */
.btn--secondary {
  border-color: var(--btn-secondary-border);
  color: var(--c-ink);
}

/* Outline: full-strength outline that fills on hover (project and live actions). */
.btn--outline {
  border-color: var(--c-ink);
  color: var(--c-ink);
}

@media (hover: hover) {
  .btn--primary:hover { background-color: var(--btn-primary-bg-hover); }
  .btn--primary:hover .icon { color: var(--btn-primary-icon-hover); }
  .btn:hover .icon:last-child { translate: calc(4px * var(--dir)) 0; }
  .btn--secondary:hover { border-color: var(--btn-secondary-border-hover); }
  .btn--outline:hover { background-color: var(--c-ink); color: var(--c-on-ink); }
}

.btn--primary:active { background-color: var(--btn-primary-bg-hover); }

/* Sizes */
.btn--sm {
  min-block-size: 2.75rem;                 /* 44 */
  padding-inline: 1.125rem;                /* 18 */
}
.btn--sm:has(> .icon:last-child) { padding-inline-end: 1rem; }
.btn--sm .icon:not([width]) { --icon-size: 1.125rem; }

.btn--lg {
  gap: 0.75rem;
  min-block-size: 3.75rem;                 /* 60 */
  padding-inline: 1.625rem;                /* 26 */
  font-size: var(--fs-body);
  line-height: calc(22 / 17);
}
.btn--lg:has(> .icon:last-child) { padding-inline-end: 1.5rem; }
.btn--lg .icon:not([width]) { --icon-size: 1.125rem; }

.btn--block { inline-size: 100%; }

/* Square icon button (next-project arrow). */
.btn--icon {
  inline-size: 4rem;
  min-block-size: 4rem;
  padding: 0;
}
.btn--icon .icon:not([width]) { --icon-size: 1.5rem; }

/* Disabled and loading */
.btn:disabled,
.btn[aria-disabled="true"] {
  border-color: transparent;
  background-color: var(--color-disabled);
  color: var(--color-muted);
  cursor: not-allowed;
  pointer-events: none;
}

.btn.is-loading { pointer-events: none; }
.btn__spinner { animation: btn-spin 0.9s linear infinite; }

@keyframes btn-spin { to { rotate: 360deg; } }

/* --------------------------------------------------------------------------
   Text link with arrow
   -------------------------------------------------------------------------- */
.link {
  position: relative;                      /* for the touch target below; the box itself does not move */
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  line-height: var(--lh-ui);
  letter-spacing: var(--tracking-normal);
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-underline-offset var(--dur-base) var(--ease-out), text-decoration-color var(--dur-base) var(--ease-standard);
}

/* 44px touch target without changing the 20px row (GUIDE §2.10). The area grows above and below the text only,
   by what is missing to 44px, so a link that is already that tall gets nothing. A page that wants it wider
   sets its own inset on the same pseudo-element. */
.link:where(a, button)::after {
  content: "";
  position: absolute;
  inset-block: min(0px, (100% - 2.75rem) / 2);
  inset-inline: 0;
}

.link .icon { transition: translate var(--dur-base) var(--ease-out); }

/* On hover the arrow moves the way it points. .icon-dir marks an arrow along the reading direction: it is
   flipped in Arabic, and so is its movement (--dir). A chevron that points down or up says so with .icon-down
   or .icon-up. Any other icon stays where it is. */
@media (hover: hover) {
  .link:hover { text-underline-offset: 6px; }
  .link:hover .icon-dir { translate: calc(4px * var(--dir)) 0; }
  .link:hover .icon-down { translate: 0 4px; }
  .link:hover .icon-up { translate: 0 -4px; }
}

/* Plain variant: no underline until hover (footer lists, quiet navigation). */
.link--quiet { text-decoration-color: transparent; }
@media (hover: hover) {
  .link--quiet:hover { text-decoration-color: currentColor; text-underline-offset: 4px; }
}

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */
.logo {
  position: relative;                      /* for the touch target below; the lockup itself does not move */
  display: inline-flex;
  align-items: center;
  gap: 0.6875rem;                          /* 11 */
  color: var(--c-ink);
  direction: ltr;                          /* the lockup is never mirrored: mark first, then the wordmark */
}

/* 44px touch target around the 26–28px lockup, as for .link: the area grows above and below only. */
.logo::after {
  content: "";
  position: absolute;
  inset-block: min(0px, (100% - 2.75rem) / 2);
  inset-inline: 0;
}

.logo__mark {
  flex: none;
  inline-size: 2.125rem;                   /* 34 */
  block-size: 1.3125rem;                   /* 21 */
}

.logo__word {
  font-size: 1.4375rem;                    /* 23 */
  line-height: calc(28 / 23);
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Site header
   .site-header is the in-flow box (96px); .site-header__bar is what you see.
   Classes set by the build on <body>: header-light | header-dark, header-overlay.
   Classes set by navigation.js: is-stuck, is-ready, is-visible, is-menu-open.
   -------------------------------------------------------------------------- */
.site-header {
  /* light theme (also the sticky and menu-open theme on every page) */
  --hdr-fg: var(--color-foreground);
  --hdr-logo: var(--color-ink);
  --hdr-bg: var(--color-background);
  --hdr-rule: var(--color-rule);
  --hdr-hover-line: var(--color-rule);
  --hdr-focus: var(--color-teal);

  --btn-primary-bg: var(--color-ink);
  --btn-primary-fg: var(--color-on-dark);
  --btn-primary-bg-hover: var(--color-navy);
  --btn-primary-icon-hover: var(--color-aqua);

  --dd-bg: var(--color-background);
  --dd-border: var(--color-rule);
  --dd-shadow: var(--shadow-panel);
  --dd-fg: var(--color-ink);
  --dd-fg-strong: var(--color-foreground);
  --dd-muted: var(--color-muted);
  --dd-item-hover: var(--color-surface);
  --dd-tile: var(--color-surface);
  --dd-tile-fg: var(--color-ink);
  --dd-tile-hover: var(--color-ink);
  --dd-tile-hover-fg: var(--color-on-dark);
  --dd-tile-current: var(--color-background);
  --dd-arrow: var(--color-rule);
  --dd-arrow-hover: var(--color-ink);
  --dd-foot-bg: var(--color-surface);
  --dd-marker: var(--color-ink);
  --dd-focus: var(--color-teal);
  --dd-gap: 1.25rem;                       /* trigger bottom to panel top: 20 */

  --bar-h: var(--header-h);

  position: relative;
  z-index: var(--z-header);
  block-size: var(--header-h);
}

.header-dark .site-header:not(.is-stuck, .is-menu-open) {
  --hdr-fg: var(--color-on-dark);
  --hdr-logo: var(--color-on-dark);
  --hdr-bg: var(--color-midnight);
  --hdr-rule: transparent;
  --hdr-hover-line: var(--color-on-dark-faint);
  --hdr-focus: var(--color-aqua);

  --btn-primary-bg: var(--color-on-dark);
  --btn-primary-fg: var(--color-ink);
  --btn-primary-bg-hover: var(--color-success-tint);
  --btn-primary-icon-hover: var(--color-emerald);

  --dd-bg: var(--color-midnight);
  --dd-border: var(--color-on-dark-rule);
  --dd-shadow: var(--shadow-panel-dark);
  --dd-fg: var(--color-on-dark);
  --dd-fg-strong: var(--color-on-dark);
  --dd-muted: var(--color-on-dark-muted);
  --dd-item-hover: var(--color-petroleum);
  --dd-tile: var(--color-petroleum);
  --dd-tile-fg: var(--color-on-dark);
  --dd-tile-hover: var(--color-on-dark);
  --dd-tile-hover-fg: var(--color-ink);
  --dd-tile-current: transparent;
  --dd-arrow: var(--color-on-dark-faint);
  --dd-arrow-hover: var(--color-on-dark);
  --dd-foot-bg: var(--color-near-black);
  --dd-marker: var(--color-aqua);
  --dd-focus: var(--color-aqua);
}

/* Overlay: the header lies over the first section and shows its ground.
   --header-home is unset (0) on every page. Below a pinned film hero, scroll-film.js sets it to the pinned
   distance once the pin has released: the header then sits where the hero now is, and leaves with it as it
   leaves the top of any other page. */
.header-overlay .site-header {
  position: absolute;
  inset-block-start: var(--header-home, 0px);
  inset-inline: 0;
}

/* While that hero is pinned (html.header-held, scroll-film.js) the full header stays in place over it.
   navigation.js makes no compact header in this state; the type colour follows the film through the
   header-light / header-dark class on <body>. */
html.header-held .header-overlay .site-header {
  position: fixed;
  inset-block-start: 0;
}

.header-overlay .site-header:not(.is-stuck, .is-menu-open) {
  --hdr-bg: transparent;
  --hdr-rule: transparent;
}

/* The in-flow box keeps the page's own header ground, so nothing shows through
   at the very top of the page while the bar is fixed. */
.site-header { background-color: var(--color-background); }
.header-dark .site-header { background-color: var(--color-midnight); }
.header-overlay .site-header { background-color: transparent; }

.site-header__bar {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 2;
  block-size: var(--bar-h);
  border-block-end: 1px solid var(--hdr-rule);
  background-color: var(--hdr-bg);
  color: var(--hdr-fg);
  transition:
    background-color var(--dur-base) var(--ease-standard),
    border-color var(--dur-base) var(--ease-standard),
    color var(--dur-base) var(--ease-standard);
}

/* Sticky compact header: the light header, 72px, slides in when the page is scrolled up. */
.site-header.is-stuck {
  --bar-h: var(--header-h-compact);
  --dd-gap: 0.5rem;
}

.site-header.is-stuck .site-header__bar {
  position: fixed;
  transform: translateY(-101%);
  opacity: 0;            /* parked above the viewport: also invisible, but still reachable by keyboard */
}

.site-header.is-stuck.is-ready .site-header__bar {
  transition:
    transform var(--dur-slow) var(--ease-out),
    opacity 0s linear var(--dur-slow),
    background-color var(--dur-base) var(--ease-standard),
    border-color var(--dur-base) var(--ease-standard),
    color var(--dur-base) var(--ease-standard);
}

.site-header.is-stuck.is-visible .site-header__bar,
.site-header.is-menu-open .site-header__bar {
  transform: none;
  opacity: 1;
}

.site-header.is-stuck.is-ready.is-visible .site-header__bar {
  transition:
    transform var(--dur-slow) var(--ease-out),
    opacity 0s linear 0s,
    background-color var(--dur-base) var(--ease-standard),
    border-color var(--dur-base) var(--ease-standard),
    color var(--dur-base) var(--ease-standard);
}

.site-header.is-menu-open .site-header__bar { position: fixed; }

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  block-size: 100%;
}

.site-header .logo { color: var(--hdr-logo); transition: color var(--dur-base) var(--ease-standard); }

/* The header button is the 44px size with the padding drawn in the header (20 / 18). */
.site-header__cta.btn { padding-inline: 1.25rem 1.125rem; }
.site-header__cta.btn:focus-visible { outline-color: var(--hdr-focus); }   /* follows the header variant */

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 3.125rem;                           /* 56 between the last label and the button, less the 6px item padding */
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;                            /* 40 between labels, less 2 × 6px item padding */
}

.site-nav__item--services { position: relative; }

.site-nav__link,
.site-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  block-size: 2rem;                        /* 32 in both languages: 20px line + 6px above and below */
  padding: 0 0.375rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  line-height: var(--lh-ui);
  letter-spacing: var(--tracking-normal);
  color: inherit;
  white-space: nowrap;
}

.site-nav__label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--dur-fast) var(--ease-standard);
}

@media (hover: hover) {
  .site-nav__link:hover .site-nav__label,
  .site-nav__trigger:hover .site-nav__label { text-decoration-color: var(--hdr-hover-line); }
}

.site-nav__trigger[aria-expanded="true"] .site-nav__label,
.site-nav__link[aria-current] .site-nav__label,
.site-nav__trigger.is-current .site-nav__label { text-decoration-color: currentColor; }

.site-nav__trigger .icon { transition: rotate var(--dur-base) var(--ease-out); }
.site-nav__trigger[aria-expanded="true"] .icon { rotate: 180deg; }

.site-nav__link:focus-visible,
.site-nav__trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--hdr-focus);
}

/* ---- Dropdown panels ---- */
.dropdown {
  position: absolute;
  z-index: var(--z-dropdown);
  padding-block-start: var(--dd-gap);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--dur-fast) var(--ease-standard),
    visibility 0s linear var(--dur-fast);
}

.dropdown--services {
  inset-block-start: 100%;
  inset-inline-start: -0.5rem;             /* panel starts 14px before the label */
  inline-size: 31.5rem;                    /* 504 */
}

/* Positioned against the header content box, so it ends at the content edge. */
.dropdown--industries {
  inset-block-start: calc(50% + 1rem);
  inset-inline-end: 0;
  inline-size: 41rem;                      /* 656 */
}

.site-nav__trigger[aria-expanded="true"] + .dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

/* Without the navigation script the panels still open, on focus or pointer. */
.site-header:not([data-nav-ready]) .site-nav__item:is(:hover, :focus-within) > .dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.dropdown__panel {
  overflow: hidden;
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-sm);
  background-color: var(--dd-bg);
  box-shadow: var(--dd-shadow);
  color: var(--dd-fg);
  translate: 0 -6px;
  transition: translate var(--dur-base) var(--ease-out);
}

.site-nav__trigger[aria-expanded="true"] + .dropdown .dropdown__panel,
.site-header:not([data-nav-ready]) .site-nav__item:is(:hover, :focus-within) > .dropdown .dropdown__panel { translate: 0 0; }

.dropdown__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2);
}

.dropdown__list--cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* a column grows for a long label, as drawn */
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
}

.dropdown__list--cols .dropdown__title { white-space: nowrap; }
.dropdown__list--cols .dropdown__text { min-inline-size: auto; }

.dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--dd-fg);
  transition: background-color var(--dur-fast) var(--ease-standard);
}

.dropdown__item--lg {
  gap: var(--space-4);
  padding: var(--space-4);
}

.dropdown__tile {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background-color: var(--dd-tile);
  color: var(--dd-tile-fg);
  transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}

.dropdown__tile .icon:not([width]) { --icon-size: 1.25rem; }

.dropdown__item--lg .dropdown__tile { inline-size: 3rem; block-size: 3rem; }
.dropdown__item--lg .dropdown__tile .icon:not([width]) { --icon-size: 1.5rem; }

.dropdown__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.125rem;
  min-inline-size: 0;
}

.dropdown__title {
  font-size: 1rem;
  line-height: calc(22 / 16);
  letter-spacing: var(--tracking-normal);
}

.dropdown__item--lg .dropdown__title {
  font-size: 1.125rem;
  line-height: calc(26 / 18);
}

.dropdown__desc {
  font-size: var(--fs-small);
  line-height: calc(22 / 15);
  letter-spacing: var(--tracking-normal);
  color: var(--dd-muted);
}

.dropdown__arrow {
  color: var(--dd-arrow);
  transition: color var(--dur-fast) var(--ease-standard), translate var(--dur-base) var(--ease-out);
}

.dropdown__item--lg .dropdown__arrow:not([width]) { --icon-size: 1.25rem; }

.dropdown__marker {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  inline-size: 1rem;
  block-size: 1rem;
}
.dropdown__item--lg .dropdown__marker { inline-size: 1.25rem; block-size: 1.25rem; }
.dropdown__marker::before {
  content: "";
  inline-size: 6px;
  block-size: 6px;
  background-color: var(--dd-marker);
}

@media (hover: hover) {
  .dropdown__item:hover { background-color: var(--dd-item-hover); color: var(--dd-fg-strong); }
  .dropdown__item:hover .dropdown__tile { background-color: var(--dd-tile-hover); color: var(--dd-tile-hover-fg); }
  .dropdown__item:hover .dropdown__arrow { color: var(--dd-arrow-hover); }
  .dropdown__item[aria-current]:hover .dropdown__tile { border-color: transparent; }
}

.dropdown__item[aria-current] .dropdown__tile {
  border-color: var(--dd-fg);
  background-color: var(--dd-tile-current);
  color: var(--dd-tile-fg);
}

.dropdown__item:focus-visible,
.dropdown__footer:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--dd-focus);
}

.dropdown__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.875rem var(--space-6);
  border-block-start: 1px solid var(--dd-border);
  background-color: var(--dd-foot-bg);
  font-size: var(--fs-small);
  line-height: var(--lh-ui);
  letter-spacing: var(--tracking-normal);
  color: var(--dd-fg);
}

.dropdown--industries .dropdown__footer { padding-inline: var(--space-5); }

.dropdown__footer .icon { transition: translate var(--dur-base) var(--ease-out); }

@media (hover: hover) {
  .dropdown__footer:hover .icon { translate: calc(4px * var(--dir)) 0; }
}

/* ---- Menu button (shown from 1024px down) ---- */
.site-header__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  margin-inline-end: -0.625rem;            /* optical: the lines end at the content edge */
  border-radius: var(--radius-sm);
  color: inherit;
}

.site-header__menu-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--hdr-focus);
}

.menu-icon {
  position: relative;
  inline-size: 1.375rem;
  block-size: 0.625rem;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  block-size: 1.5px;
  border-radius: 1px;
  background-color: currentColor;
  transition: transform var(--dur-base) var(--ease-out), inset-block-start var(--dur-base) var(--ease-out);
}

.menu-icon::before { inset-block-start: 0; }
.menu-icon::after { inset-block-start: calc(100% - 1.5px); }

.site-header__menu-btn[aria-expanded="true"] .menu-icon::before { inset-block-start: calc(50% - 0.75px); transform: rotate(45deg); }
.site-header__menu-btn[aria-expanded="true"] .menu-icon::after { inset-block-start: calc(50% - 0.75px); transform: rotate(-45deg); }

/* ---- Mobile menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding-block-start: var(--bar-h);
  background-color: var(--color-background);
  color: var(--color-foreground);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-standard);
}

.mobile-menu.is-open { opacity: 1; }

.mobile-menu__scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  min-block-size: 100%;
  padding-block: var(--space-2) calc(var(--space-8) + env(safe-area-inset-bottom, 0px));
  translate: 0 -8px;
  transition: translate var(--dur-slow) var(--ease-out);
}

.mobile-menu.is-open .mobile-menu__inner { translate: 0 0; }

.mobile-menu__list { border-block-end: 1px solid var(--color-rule); }
.mobile-menu__list > li + li { border-block-start: 1px solid var(--color-rule); }

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  inline-size: 100%;
  min-block-size: 4rem;
  padding-block: var(--space-4);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  text-align: start;
}

.mobile-menu__link[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

.mobile-menu__link .icon:not([width]) { --icon-size: 1.25rem; transition: rotate var(--dur-base) var(--ease-out); }
.mobile-menu__link[aria-expanded="true"] .icon { rotate: 180deg; }

.mobile-menu__sub { padding-block-end: var(--space-4); }

.mobile-menu__sublink {
  display: flex;
  align-items: center;
  min-block-size: 2.75rem;
  padding-block: var(--space-2);
  font-size: var(--fs-body);
  line-height: var(--lh-ui);
  letter-spacing: var(--tracking-normal);
  color: var(--color-muted);
}

.mobile-menu__sublink[aria-current] { color: var(--color-ink); }

.mobile-menu__link:focus-visible,
.mobile-menu__sublink:focus-visible,
.mobile-menu__lang:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

.mobile-menu__foot {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-block-start: auto;
  padding-block-start: var(--space-10);
  --btn-primary-bg: var(--color-ink);
  --btn-primary-fg: var(--color-on-dark);
  --btn-primary-bg-hover: var(--color-navy);
  --btn-primary-icon-hover: var(--color-aqua);
}

.mobile-menu__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  font-size: var(--fs-small);
  line-height: var(--lh-ui);
  color: var(--color-muted);
}

.mobile-menu__lang {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: 2.75rem;
  color: var(--color-ink);
}

.mobile-menu__lang .icon:not([width]) { --icon-size: 1.125rem; }

/* The email link beside it is a 44px target too (it was the height of its text). */
.mobile-menu__meta > a:not(.mobile-menu__lang) {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
}

/* ---- Without JavaScript (html.no-js) ----
   The menu button needs the script. Two plain links stand in for it, and exist for this case only:
   "Menu" in the bar targets the panel, which :target then shows over the page with both groups open;
   "Close menu" at its top targets the page again. boot.js removes no-js before the first paint, so with a
   script running neither link is ever rendered. */
.site-header__menu-link,
.mobile-menu__close { display: none; }

@media (max-width: 1024px) {
  .no-js .site-header__menu-btn { display: none; }

  .no-js .site-header__menu-link {
    display: inline-flex;
    align-items: center;
    min-block-size: 2.75rem;
    padding-inline: var(--space-2);
    margin-inline-end: calc(-1 * var(--space-2));
    border-radius: var(--radius-sm);
    font-size: var(--fs-small);
    font-weight: var(--weight-medium);
    line-height: var(--lh-ui);
    letter-spacing: var(--tracking-normal);
    color: inherit;
  }

  .no-js .site-header__menu-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--hdr-focus);
  }

  /* above the bar (z-index 2): the panel brings its own way out */
  .no-js .mobile-menu:target {
    display: flex !important;
    z-index: 3;
    padding-block-start: 0;
    opacity: 1;
  }

  .no-js .mobile-menu:target .mobile-menu__inner { translate: 0 0; }
  .no-js .mobile-menu:target .mobile-menu__sub { display: block !important; }
  .no-js .mobile-menu__link[data-menu-group] { cursor: default; }
  .no-js .mobile-menu__link[data-menu-group] .icon { display: none; }

  .no-js .mobile-menu__close {
    display: flex;
    align-items: center;
    align-self: flex-end;
    min-block-size: 2.75rem;
    margin-block-end: var(--space-2);
    font-size: var(--fs-small);
    font-weight: var(--weight-medium);
    line-height: var(--lh-ui);
    letter-spacing: var(--tracking-normal);
    color: var(--color-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }

  .no-js .mobile-menu__close:focus-visible {
    outline: 2px solid var(--color-teal);
    outline-offset: 2px;
  }
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.625rem;
  row-gap: var(--space-1);
  font-size: var(--fs-caption);
  line-height: var(--lh-label);
  letter-spacing: var(--tracking-normal);
  color: var(--c-muted);
}

.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.625rem; }

.breadcrumbs li + li::before {
  content: "/";
  color: var(--c-muted);
  letter-spacing: 0;
}

.on-dark .breadcrumbs li + li::before,
.hero--dark .breadcrumbs li + li::before,
.section--midnight .breadcrumbs li + li::before { color: var(--color-on-dark-faint); }

.breadcrumbs a {
  position: relative;
  transition: color var(--dur-fast) var(--ease-standard);
}

/* 44px touch target without changing the 16px row */
.breadcrumbs a::after {
  content: "";
  position: absolute;
  inset: -0.875rem -0.375rem;
}

@media (hover: hover) {
  .breadcrumbs a:hover { color: var(--c-text); }
}

.breadcrumbs [aria-current="page"] { color: var(--c-text); }

/* --------------------------------------------------------------------------
   Hero (shared opening pattern)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block-start: calc(var(--header-offset) + var(--space-12));
  background-color: var(--c-ground);
  color: var(--c-text);
}

/* Midnight opening with the brand glow. Pair with "header": "dark", "headerOverlay": true. */
.hero--dark {
  --c-ground: var(--color-near-black);
  background-image: url("/assets/images/brand/glow-midnight.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--hero-gap, clamp(1.5rem, 2.7778vw, 2.5rem));                       /* 40 */
  padding-block-start: var(--hero-top, clamp(3rem, 7.2222vw, 6.5rem));        /* 104 */
  padding-block-end: var(--hero-bottom, clamp(2.5rem, 5vw, 4.5rem));          /* 72 */
}

/* Lead paragraphs on the midnight hero are 80% white, as drawn. */
.hero--dark .lead { color: var(--color-on-dark-soft); }

/* --------------------------------------------------------------------------
   Project metadata row (four columns)
   -------------------------------------------------------------------------- */
.meta-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6) var(--grid-gap);
}

.meta-row__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-block-start: var(--space-4);
  border-block-start: 1px solid var(--c-rule);
}

.meta-row dt {
  font-size: var(--fs-label);
  font-weight: var(--weight-light);
  line-height: var(--lh-label);
  letter-spacing: var(--tracking-normal);
  text-transform: uppercase;
  color: var(--c-muted);
}

.meta-row dd {
  font-size: var(--fs-body);
  line-height: calc(24 / 17);
  letter-spacing: var(--tracking-snug);
  color: var(--c-ink);
}

.meta-row__item--wide { grid-column: 1 / -1; }

/* --------------------------------------------------------------------------
   Media frame: 25px radius, hairline, cover image
   Set the ratio and the crop with custom properties:
   <figure class="media" style="--ratio:845/476; --pos:50% 0">{{img …}}</figure>
   --ratio  width / height of the frame      --pos   object-position (the crop anchor)
   --zoom   scale beyond cover (default 1)   --fit   object-fit (default cover)
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--ratio, auto);
  border: 1px solid var(--c-rule);
  border-radius: var(--radius-lg);
  background-color: var(--media-ground, var(--color-surface));
}

.media > picture,
.media > img,
.media > video,
.media > picture > img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
}

.media img,
.media video {
  object-fit: var(--fit, cover);
  object-position: var(--pos, 50% 50%);
  /* --zoom enlarges the picture beyond "cover" around the same anchor (a Paper crop tighter than cover) */
  scale: var(--zoom, 1);
  transform-origin: var(--pos, 50% 50%);
}

.media--sm { border-radius: var(--radius-sm); }
.media--plain { border: 0; }
.media--16x9 { --ratio: 16 / 9; }
.media--4x3 { --ratio: 4 / 3; }
.media--1x1 { --ratio: 1 / 1; }
.media--3x4 { --ratio: 3 / 4; }

/* A media frame inside a link scales its image slightly on hover, and so does the picture of a project card
   that contains a link (its title link covers the whole card). A card without any link is not a control and
   stays still. The two selectors are separate rules so that a browser without :has() keeps the first, and
   :where() keeps the second at the weight it always had (page rules and the reduced-motion rule override it). */
.media img { transition: transform var(--dur-slower) var(--ease-out); }

@media (hover: hover) {
  a:hover .media img { transform: scale(1.03); }
  .project-card:where(:has(a[href])):hover .media img { transform: scale(1.03); }
}

/* Caption under a figure */
.figcaption {
  margin-block-start: var(--space-4);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--tracking-normal);
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   Tags
   -------------------------------------------------------------------------- */
/* An inline block, not a flex container: a flex container makes each nested element a separate item and drops
   the space between it and the text that follows (an Arabic tag with a dir="ltr" name in it). */
.tag {
  display: inline-block;
  padding: 5px 10px 6px;
  border: 0.5px solid var(--color-tag-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  font-size: var(--fs-micro);
  line-height: calc(14 / 11);
  letter-spacing: var(--tracking-normal);
  text-transform: uppercase;
  color: var(--color-ink);
  white-space: nowrap;
}

.tag--after {
  border: 1px solid var(--color-emerald);
  background-color: var(--color-success-tint);
}

/* --------------------------------------------------------------------------
   Hairline lists and numbered rows
   <ol class="rule-list"> <li class="rule-list__row"> <span class="rule-list__key">…</span> <div class="rule-list__body">…</div>
   -------------------------------------------------------------------------- */
.rule-list { border-block-end: 1px solid var(--c-rule); }

.rule-list__row {
  display: flex;
  gap: var(--grid-gap);
  padding-block: var(--rule-pad-top, var(--space-7)) var(--rule-pad-bottom, var(--space-8));
  border-block-start: 1px solid var(--c-rule);
}

.rule-list__key {
  flex: none;
  inline-size: var(--rule-key, 7.5rem);    /* 120 */
  font-size: var(--fs-label);
  font-weight: var(--weight-light);
  line-height: calc(var(--fs-h5) * var(--lh-h5));   /* sits on the first line of the row title */
  letter-spacing: var(--tracking-normal);
  text-transform: uppercase;
  color: var(--c-muted);
}

/* A block, not a flex column, so a row's value can be plain text with inline elements. */
.rule-list__body {
  flex: 1 1 auto;
  min-inline-size: 0;
}

.rule-list__body > * + * { margin-block-start: var(--rule-body-gap, 0.625rem); }

/* Open at the bottom (no closing hairline) */
.rule-list--open { border-block-end: 0; }

/* Compact rows: definition lists, specification sheets (16px padding) */
.rule-list--compact {
  --rule-pad-top: var(--space-4);
  --rule-pad-bottom: var(--space-4);
  --rule-key: 8.5rem;                      /* 136 */
}

.rule-list--compact .rule-list__key {
  font-size: var(--fs-micro);
  line-height: calc(var(--fs-small) * var(--lh-small));   /* sits on the first line of the 15px value */
}

/* Numbered rows: 01, 02 … beside an H3 (observation rows) */
.rule-list--numbered {
  --rule-pad-top: 2.25rem;
  --rule-pad-bottom: var(--space-10);
  --rule-key: 3.75rem;                     /* 60 */
}

.rule-list--numbered .rule-list__key {
  line-height: calc(var(--fs-h3) * var(--lh-h3));
  text-transform: none;
}

.rule-list--numbered { --rule-body-gap: var(--space-3); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  padding: var(--card-pad, var(--space-8));
  border-radius: var(--radius-sm);
  background-color: var(--c-surface);
}

/* White sheet with a hairline (documents, specification panels) */
.card--outline {
  border: 1px solid var(--c-rule);
  background-color: var(--color-background);
}

.card--float { box-shadow: var(--shadow-card); }

/* ---- Project card ---- */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.project-card__meta {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  letter-spacing: var(--tracking-normal);
  color: var(--c-muted);
}

.project-card__actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-7);
}

.project-card__actions { padding-block-start: 1.125rem; }

/* The title link covers the whole card; other controls stay above it. */
.project-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project-card__title a:focus-visible { outline: none; }
.project-card__title a:focus-visible::after {
  border-radius: var(--radius-lg);
  outline: 2px solid var(--c-focus);
  outline-offset: 4px;
}

.project-card__actions :is(a, button) { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   FAQ (details / summary). Behaviour: modules/faq.js ([data-faq]).
   <details class="faq__item"> <summary class="faq__question">…</summary> <div class="faq__answer"><p>…</p></div>
   The answer panel itself carries no padding or margin, so its height can be animated from zero.
   -------------------------------------------------------------------------- */
.faq { border-block-end: 1px solid var(--c-rule); }

.faq__item {
  padding-block-end: var(--space-3);       /* 28 under a closed question: 16 on the summary + these 12 */
  border-block-start: 1px solid var(--c-rule);
  transition: padding-block-end var(--dur-slow) var(--ease-out), border-color var(--dur-base) var(--ease-standard);
}

.faq__item[open]:not([data-faq-closing]) {
  padding-block-end: 0;
  border-block-start-color: var(--c-rule-strong);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-7) var(--space-4);
  font-size: var(--fs-h5);
  line-height: calc(30 / 22);
  letter-spacing: var(--tracking-tight);
  color: var(--c-ink);
}

.faq__question:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: -2px;
}

.faq__question .icon:not([width]) { --icon-size: 1.25rem; }

/* Two icons in the summary: add-01 while closed, minus-sign while open. */
.faq__item:not([open]) .faq__icon--minus,
.faq__item[data-faq-closing] .faq__icon--minus,
.faq__item[open]:not([data-faq-closing]) .faq__icon--plus { display: none; }

.faq__answer {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-normal);
  color: var(--c-muted);
}

.faq__answer > * { max-inline-size: 37.5rem; }             /* 600 */
.faq__answer > * + * { margin-block-start: var(--space-4); }
.faq__answer > :last-child { padding-block-end: var(--space-8); }

/* --------------------------------------------------------------------------
   Closing CTA: midnight, the teal field and the waveform
   -------------------------------------------------------------------------- */
.cta-closing {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(3.5rem, 8.3333vw, 7.5rem);                    /* 120 */
  min-block-size: clamp(30rem, 52.7778vw, 47.5rem);        /* 760 */
  padding-block: clamp(4.5rem, 9.7222vw, 8.75rem) clamp(3.5rem, 6.6667vw, 6rem);   /* 140 / 96 */
  overflow: hidden;
  background-color: var(--color-midnight);
  /* Physical positions on purpose: the profile artwork is not mirrored in Arabic.
     Sizes are Paper's (1900px wave on a 1440px section) expressed in viewport units. */
  background-image:
    linear-gradient(180deg, #0213228C 0%, #02132226 55%, #03090FBF 100%),
    url("/assets/images/brand/waveform-closing.webp"),
    url("/assets/images/brand/waves-teal.webp");
  background-size: cover, max(131.9444vw, 60rem) auto, cover;
  background-position: 50% 50%, 19.4444vw -22.9167vw, 50% 50%;
  background-repeat: no-repeat;
  color: var(--color-on-dark);
}

.cta-closing > .container {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: inherit;
}

.cta-closing__statement { letter-spacing: var(--tracking-display); }

.cta-closing__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8) var(--grid-gap);
}

.cta-closing__text {
  max-inline-size: 30rem;                  /* 480 */
  color: var(--color-on-dark);
}

.cta-closing__actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

/* The outlined button on the closing banner is a little stronger (40% white). */
.cta-closing .btn--secondary { border-color: var(--color-on-dark-faint); }
@media (hover: hover) {
  .cta-closing .btn--secondary:hover { border-color: var(--color-on-dark); }
}

/* --------------------------------------------------------------------------
   Next project (case studies)
   -------------------------------------------------------------------------- */
.next-project {
  display: block;
  border-block: 1px solid var(--color-rule);
  background-color: var(--color-surface);
  color: var(--color-foreground);
}

.next-project__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8) var(--grid-gap);
  padding-block: var(--space-14);
}

.next-project__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.next-project__label {
  font-size: var(--fs-label);
  font-weight: var(--weight-light);
  line-height: var(--lh-label);
  letter-spacing: var(--tracking-normal);
  text-transform: uppercase;
  color: var(--color-muted);
}

.next-project__visual {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--space-6);
}

.next-project__thumb {
  inline-size: 15rem;                      /* 240 × 135 */
  --ratio: 16 / 9;
}

.next-project__arrow {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  inline-size: 4rem;
  block-size: 4rem;
  border-radius: var(--radius-sm);
  background-color: var(--color-ink);
  color: var(--color-on-dark);
  transition: background-color var(--dur-base) var(--ease-standard);
}

.next-project__arrow .icon:not([width]) { --icon-size: 1.5rem; transition: translate var(--dur-base) var(--ease-out); }

@media (hover: hover) {
  .next-project:hover .next-project__arrow { background-color: var(--color-navy); }
  .next-project:hover .next-project__arrow .icon { translate: calc(4px * var(--dir)) 0; }
}

.next-project:focus-visible { outline-offset: -4px; }

/* --------------------------------------------------------------------------
   Browser frame (a website shown as a figure)
   -------------------------------------------------------------------------- */
.browser-frame {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  background-color: var(--color-background);
  box-shadow: var(--shadow-frame);
  color: var(--color-ink);
}

.browser-frame__bar {
  display: flex;
  flex: none;
  align-items: center;
  direction: ltr;                          /* browser chrome around a left-to-right website: not mirrored */
  gap: var(--space-5);
  block-size: 4rem;
  padding-inline: var(--space-7) var(--space-5);
  border-block-end: 1px solid var(--color-rule);
  background-color: var(--color-surface);
}

.browser-frame__controls {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.875rem;
  color: var(--color-muted);
}

.browser-frame__controls .icon:not([width]) { --icon-size: 1.125rem; }
.browser-frame__controls .is-dim { color: var(--color-rule); }

.browser-frame__address {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.625rem;
  min-inline-size: 0;
  block-size: 2.5rem;
  padding-inline: var(--space-4);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-sm);
  background-color: var(--color-background);
  font-size: var(--fs-small);
  line-height: var(--lh-ui);
  letter-spacing: var(--tracking-normal);
  color: var(--color-muted);
}

.browser-frame__url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-frame__url b { font-weight: inherit; color: var(--color-ink); }

.browser-frame__action {
  min-block-size: 2.5rem;
  padding-inline: var(--space-4) 0.875rem;
  --btn-primary-bg: var(--color-ink);
  --btn-primary-fg: var(--color-on-dark);
  --btn-primary-bg-hover: var(--color-navy);
  --btn-primary-icon-hover: var(--color-aqua);
}

.browser-frame__viewport {
  position: relative;
  aspect-ratio: var(--ratio, 16 / 9);
  overflow: hidden;
  background-color: var(--color-surface);
}

.browser-frame__viewport > picture,
.browser-frame__viewport > img,
.browser-frame__viewport > picture > img,
.browser-frame__viewport > iframe {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  border: 0;
}

.browser-frame__viewport img {
  object-fit: cover;
  object-position: var(--pos, 50% 0);
}

/* --------------------------------------------------------------------------
   Phone figure: one exported image of the standard iPhone frame
   -------------------------------------------------------------------------- */
.phone {
  inline-size: var(--phone-w, 17.5rem);    /* 280 */
  max-inline-size: 100%;
}

.phone > picture,
.phone > img,
.phone > picture > img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

/* --------------------------------------------------------------------------
   Floating live action (rendered only when a sample is live)
   -------------------------------------------------------------------------- */
.floating-live {
  position: fixed;
  inset-block-end: var(--space-8);
  inset-inline-end: var(--space-8);
  z-index: var(--z-floating);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-block-size: 3.25rem;
  padding-inline: var(--space-5) 1.125rem;
  border: 1px solid var(--color-on-dark-rule);
  border-radius: var(--radius-sm);
  background-color: var(--color-ink);
  box-shadow: var(--shadow-float);
  font-size: var(--fs-small);
  font-weight: var(--weight-medium);
  line-height: var(--lh-ui);
  letter-spacing: var(--tracking-normal);
  color: var(--color-on-dark);
}

.floating-live::before {
  content: "";
  flex: none;
  inline-size: 6px;
  block-size: 6px;
  background-color: var(--color-emerald);
}

.floating-live .icon:not([width]) { --icon-size: 1.125rem; }

.floating-live--light {
  border-color: var(--color-rule);
  background-color: var(--color-background);
  color: var(--color-ink);
}

.floating-live:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Form controls
   -------------------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-inline-size: 0;
}

.field__label {
  font-size: var(--fs-caption);
  line-height: var(--lh-label);
  letter-spacing: var(--tracking-normal);
  color: var(--color-ink);
}

.field__optional { color: var(--color-muted); }

.input,
.textarea,
.select select {
  display: block;
  inline-size: 100%;
  min-block-size: 3.5rem;                  /* 56 */
  padding: 0 var(--space-4);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  font-size: var(--fs-body);
  line-height: calc(24 / 17);
  letter-spacing: var(--tracking-normal);
  color: var(--color-foreground);
  appearance: none;
  transition:
    border-color var(--dur-fast) var(--ease-standard),
    background-color var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard);
}

.textarea {
  min-block-size: 8.25rem;                 /* 132 */
  padding-block: var(--space-4);
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder { color: var(--color-muted); opacity: 1; }

@media (hover: hover) {
  .input:hover,
  .textarea:hover,
  .select select:hover { border-color: var(--color-muted); }
}

.input:focus,
.textarea:focus,
.select select:focus {
  outline: 1px solid var(--color-ink);     /* with the border: the drawn 1.5–2px ink edge */
  outline-offset: -2px;
  border-color: var(--color-ink);
  background-color: var(--color-background);
  box-shadow: 0 0 0 4px var(--color-focus-halo);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"],
.select select[aria-invalid="true"],
.field.is-invalid :is(.input, .textarea, select) {
  outline: 1px solid var(--color-error);
  outline-offset: -2px;
  border-color: var(--color-error);
  background-color: var(--color-background);
}

.input:disabled,
.textarea:disabled,
.select select:disabled {
  border-color: var(--color-rule);
  background-color: var(--color-surface);
  color: var(--color-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Select: native control, Hugeicons chevron on the trailing side */
.select { position: relative; }
.select select { padding-inline-end: var(--space-12); cursor: pointer; }
.select .icon {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: var(--space-4);
  translate: 0 -50%;
  color: var(--color-ink);
  pointer-events: none;
}

.field__help,
.field__error {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--tracking-normal);
}

.field__help { color: var(--color-muted); }

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  color: var(--color-error);
}

.field__error .icon { margin-block-start: 1px; }

/* Choice cards (radio group drawn as two panels) */
.choice-group {
  display: flex;
  gap: var(--space-3);
  border: 0;
  padding: 0;
  min-inline-size: 0;
}

.choice {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-inline-size: 0;
  cursor: pointer;
}

.choice input {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice__box {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  block-size: 100%;
  padding: var(--space-4);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  transition: background-color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}

.choice__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-block-size: 1rem;
}

.choice__num {
  font-size: var(--fs-label);
  font-weight: var(--weight-light);
  line-height: var(--lh-label);
  color: var(--color-muted);
}

.choice__title {
  font-size: var(--fs-body);
  line-height: calc(24 / 17);
  letter-spacing: var(--tracking-snug);
  color: var(--color-ink);
}

.choice__tick { display: none; color: var(--color-on-dark); }

@media (hover: hover) {
  .choice:hover .choice__box { border-color: var(--color-muted); }
}

.choice input:checked + .choice__box {
  border-color: var(--color-ink);
  background-color: var(--color-ink);
}

.choice input:checked + .choice__box .choice__num { color: var(--color-on-dark-muted); }
.choice input:checked + .choice__box .choice__title { color: var(--color-on-dark); }
.choice input:checked + .choice__box .choice__tick { display: block; }

.choice input:focus-visible + .choice__box {
  outline: 2px solid var(--color-aqua);
  outline-offset: 3px;
}

/* Checkbox (consent lines) */
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  letter-spacing: var(--tracking-normal);
  color: var(--color-muted);
  cursor: pointer;
}

.check input {
  flex: none;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  margin: 0.0625rem 0 0;
  border: 1px solid var(--color-muted);
  border-radius: 4px;
  background-color: var(--color-background);
  appearance: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}

.check input:checked {
  border-color: var(--color-ink);
  background-color: var(--color-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 14 3.5 3.5L19 6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}

.check input:focus-visible {
  outline: 2px solid var(--color-aqua);
  outline-offset: 3px;
}

/* Messages */
.notice {
  display: flex;
  gap: 0.875rem;
  padding: 1.125rem 1.125rem var(--space-5);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  color: var(--color-ink);
}

.notice .icon:not([width]) { --icon-size: 1.25rem; margin-block-start: 2px; }

.notice__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-inline-size: 0;
}

.notice__title {
  font-size: var(--fs-body);
  line-height: calc(24 / 17);
  letter-spacing: var(--tracking-snug);
}

.notice__text {
  font-size: var(--fs-small);
  line-height: calc(22 / 15);
  letter-spacing: var(--tracking-normal);
}

.notice--success {
  border-color: var(--color-emerald);
  background-color: var(--color-success-tint);
}
.notice--success .icon { color: var(--color-emerald); }

.notice--error { border-color: var(--color-error); background-color: var(--color-background); }
.notice--error .icon { color: var(--color-error); }

/* --------------------------------------------------------------------------
   Site footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-block-start: var(--space-24);
  background-color: var(--color-near-black);
  color: var(--color-on-dark);
}

.site-footer__top {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  padding-block-end: var(--space-14);
}

.site-footer__brand {
  display: flex;
  grid-column: 1 / span 4;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-7);
}

.site-footer .logo { color: var(--color-on-dark); }

.site-footer__intro {
  max-inline-size: 23.75rem;               /* 380 */
  color: var(--color-on-dark);
}

.site-footer__cols {
  display: flex;
  grid-column: 6 / -1;
  gap: var(--grid-gap);
}

.site-footer__col {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: var(--space-3);
  min-inline-size: 0;
}

/* Column proportions as drawn */
.site-footer__col--industries { flex-grow: 1.35; }
.site-footer__col--company { flex-grow: 0.8; }
/* The email address is kept on one line and its column is never narrower than it. Between about 1025 and
   1180px the column was, and the address broke as "contact@monaro." / "sa". The three other columns give way
   by a few pixels there; from 1180px up nothing changes. */
.site-footer__col--contact { flex-grow: 1.1; min-inline-size: min-content; }
.site-footer__list a[href^="mailto:"] { white-space: nowrap; }

.site-footer__heading {
  padding-block-end: var(--space-2);
  font-size: var(--fs-label);
  font-weight: var(--weight-light);
  line-height: var(--lh-label);
  letter-spacing: var(--tracking-normal);
  text-transform: uppercase;
  color: var(--color-on-dark-muted);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--fs-small);
  line-height: calc(22 / 15);
  letter-spacing: var(--tracking-normal);
}

.site-footer__list a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--dur-fast) var(--ease-standard);
}

.site-footer__list a.is-underlined { text-decoration-color: currentColor; }

@media (hover: hover) {
  .site-footer__list a:hover { text-decoration-color: currentColor; }
  .site-footer__list a.is-underlined:hover { text-decoration-color: var(--color-on-dark-faint); }
}

.site-footer__place { color: var(--color-on-dark-muted); }

/* Utilities row: language switcher at the start, Ask AI under the first link column */
.site-footer__utilities {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: start;
  padding-block-end: var(--space-18);
}

.site-footer__lang { grid-column: 1 / span 4; }
.site-footer__ask { grid-column: 6 / -1; }

/* ---- Language switcher ---- */
.lang-switch {
  position: relative;
  display: inline-block;
}

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-block-size: 2.75rem;
  padding-inline: 0.875rem;
  border: 1px solid var(--color-on-dark-rule);
  border-radius: var(--radius-sm);
  background-color: var(--color-midnight);
  font-size: var(--fs-small);
  font-weight: var(--weight-medium);
  line-height: var(--lh-ui);
  letter-spacing: var(--tracking-normal);
  color: var(--color-on-dark);
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}

.lang-switch__btn .icon:first-child:not([width]) { --icon-size: 1.125rem; }
.lang-switch__btn .icon:last-child { color: var(--color-on-dark-muted); transition: rotate var(--dur-base) var(--ease-out); }

@media (hover: hover) {
  .lang-switch__btn:hover { border-color: var(--color-on-dark-faint); background-color: var(--color-petroleum); }
}

.lang-switch[open] .lang-switch__btn { border-color: var(--color-on-dark-faint); background-color: var(--color-petroleum); }
.lang-switch[open] .lang-switch__btn .icon:last-child { rotate: 180deg; }

.lang-switch__btn:focus-visible {
  outline: 2px solid var(--color-aqua);
  outline-offset: 2px;
}

.lang-switch__list {
  position: absolute;
  inset-block-start: calc(100% + var(--space-2));
  inset-inline-start: 0;
  z-index: var(--z-raised);
  inline-size: 13rem;                      /* 208 */
  overflow: hidden;
  border: 1px solid var(--color-on-dark-rule);
  border-radius: var(--radius-sm);
  background-color: var(--color-midnight);
  box-shadow: var(--shadow-menu);
  scroll-margin-block-end: var(--space-4);   /* localization.js scrolls an opened list into view */
}

.lang-switch__list li + li { border-block-start: 1px solid var(--color-on-dark-rule); }

.lang-switch__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-block-size: 2.75rem;
  padding-inline: 0.875rem;
  font-size: var(--fs-small);
  font-weight: var(--weight-medium);
  line-height: var(--lh-ui);
  letter-spacing: var(--tracking-normal);
  color: var(--color-on-dark);
  transition: background-color var(--dur-fast) var(--ease-standard);
}

.lang-switch__option[lang="ar"] { font-size: 1rem; font-weight: var(--weight-regular); }

@media (hover: hover) {
  a.lang-switch__option:hover { background-color: var(--color-petroleum); }
}

a.lang-switch__option:focus-visible {
  outline: none;
  background-color: var(--color-petroleum);
  box-shadow: inset 0 0 0 2px var(--color-aqua);
}

/* ---- Ask AI about Monaro ---- */
.ask-ai {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.ask-ai__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.ask-ai__list li { display: flex; }

.ask-ai__link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--fs-small);
  line-height: calc(22 / 15);
  letter-spacing: var(--tracking-normal);
  color: var(--color-on-dark);
  white-space: nowrap;
}

.ask-ai__mark {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  inline-size: 1.125rem;                   /* fixed 18px slot */
  block-size: 1.375rem;
}

/* Platform marks keep their own proportions at 16px tall. */
.ask-ai__mark .icon {
  inline-size: auto;
  block-size: 1rem;
  max-inline-size: 1.125rem;
}

.ask-ai__label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--dur-fast) var(--ease-standard);
}

@media (hover: hover) {
  .ask-ai__link:hover .ask-ai__label { text-decoration-color: currentColor; }
}

.ask-ai__link:focus-visible {
  outline: 2px solid var(--color-aqua);
  outline-offset: 4px;
}

/* ---- World clocks: outlined modules, no fill ---- */
.site-footer__clocks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
  padding-block: var(--space-10);
  border-block-start: 1px solid var(--color-on-dark-rule);
}

.clock {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-inline-size: 0;
  block-size: 5rem;                        /* 80 */
  padding-inline: var(--space-2) var(--space-4);
  border: 1px solid var(--color-on-dark-rule);
  border-radius: var(--radius-sm);
}

.clock__face {
  flex: none;
  inline-size: 3.875rem;                   /* 62 */
  block-size: 3.875rem;
}

/* Hands are drawn at 12 o'clock and stay hidden until the script has set the real time,
   so a cached page or a page without JavaScript never shows a wrong time. */
.clock__hands {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-standard);
}

.clock[data-clock-ready] .clock__hands { opacity: 1; }

.clock__labels {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-inline-size: 0;
}

.clock__code {
  font-size: var(--fs-body);
  line-height: calc(22 / 17);
  letter-spacing: var(--tracking-normal);
  color: var(--color-on-dark);
}

.clock__city {
  overflow: hidden;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--tracking-normal);
  color: var(--color-on-dark-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Digital time: kept current by the script; hidden visually (the design shows code and city only).
   Remove .visually-hidden from the element to show it. */
.clock__time {
  margin-inline-start: auto;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--color-on-dark-muted);
  font-variant-numeric: tabular-nums;
}

/* ---- Legal line ---- */
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-8);
  padding-block: var(--space-6);
  border-block-start: 1px solid var(--color-on-dark-rule);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--tracking-normal);
  color: var(--color-on-dark-muted);
}

/* ---- Ghost wordmark ---- */
.site-footer__wordmark {
  block-size: 0.6895em;                    /* 262 of 380 */
  /* cropped at the bottom only: the last letter may overhang its box by the negative tracking */
  overflow-x: visible;
  overflow-y: clip;
  font-size: clamp(5rem, 26.3889vw, 23.75rem);   /* 380 at 1440 */
  line-height: 0.8684;                     /* 330 of 380 */
  letter-spacing: -0.045em;
  white-space: nowrap;
  color: var(--color-on-dark-ghost);
  user-select: none;
}

/* --------------------------------------------------------------------------
   Reduced motion: keep states, drop movement
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .btn .icon,
  .link .icon,
  .dropdown__footer .icon,
  .next-project__arrow .icon,
  .media img,
  .dropdown__panel,
  .mobile-menu__inner,
  .site-header.is-stuck.is-ready .site-header__bar,
  .site-header.is-stuck.is-ready.is-visible .site-header__bar,
  .menu-icon::before,
  .menu-icon::after,
  .site-nav__trigger .icon,
  .lang-switch__btn .icon:last-child,
  .mobile-menu__link .icon { transition: none; }

  .btn:hover .icon:last-child,
  .link:hover .icon,
  .dropdown__footer:hover .icon,
  .next-project:hover .next-project__arrow .icon { translate: 0 0; }

  a:hover .media img,
  .project-card:hover .media img { transform: none; }

  .dropdown__panel,
  .mobile-menu__inner { translate: 0 0; }

  .btn__spinner { animation-duration: 2.4s; }
}


/* ===== forms.css ===== */
/* ==========================================================================
   Project enquiry form (Contact page)
   The controls themselves come from components.css: .field, .field__label, .field__optional, .input,
   .textarea, .select, .field__help, .field__error, .choice-group / .choice, .notice, .btn.
   This file adds only what the form needs on top of them: the surface panel, the form layout, the larger
   service tiles of the Contact page, the conditional website field, and the form's states (unavailable,
   error summary, failed send, sending, sent, test mode, no-JavaScript fallback).

   Markup contract: monaro-src/FORMS.md.   Behaviour: assets/js/modules/forms.js.
   Values are Paper's ("21 Contact", section 02, and "10 Contact form states"). Every custom property has a
   fallback so the file also works before tokens.css. Logical properties only.
   ========================================================================== */

/* ---- Panel: the surface block that holds the form ---- */
.form-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-7, 1.75rem);                               /* 28 */
  padding: clamp(1.25rem, 0.6667rem + 2.5926vw, 3rem);        /* 48 → 20 */
  border-radius: var(--radius-sm, 8px);
  background-color: var(--color-surface, #F7F9FB);
}

.form-panel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2, 0.5rem) var(--space-6, 1.5rem);
  padding-block-end: var(--space-5, 1.25rem);
  border-block-end: 1px solid var(--color-rule, #7575754D);
}

.form-panel__title {
  font-size: var(--fs-lead, 1.375rem);                        /* 22/32 */
  line-height: var(--lh-lead, 1.4545);
  letter-spacing: var(--tracking-tight, -0.04em);
  color: var(--color-ink, #0D1A2E);
}

.form-panel__note {
  font-size: var(--fs-caption, 0.8125rem);                    /* 13/16 */
  line-height: var(--lh-label, 1.2308);
  letter-spacing: var(--tracking-normal, -0.02em);
  color: var(--color-muted, #757575);
}

/* On the surface panel the controls are white (on a white ground components.css draws them on surface). */
.form-panel :is(.input, .textarea, .select select, .choice__box) {
  background-color: var(--color-background, #FFFFFF);
}

/* ---- Form layout ---- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-7, 1.75rem);
  min-inline-size: 0;
  /* the form adapts to its own width, wherever a page places it */
  container-type: inline-size;
  container-name: enquiry;
}

/* The hidden attribute always wins inside the form, whatever display a component sets. */
.form [hidden] { display: none !important; }

.form__fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-7, 1.75rem);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-7, 1.75rem) var(--space-4, 1rem);          /* 16 between the two fields */
}

/* Service tiles and the website field that depends on them */
.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-5, 1.25rem);                               /* 20 */
  padding-block-start: var(--space-2, 0.5rem);
}

/* A fieldset used as a field. The legend is floated at full width so that it becomes an ordinary box and
   takes part in the field's column gap (a rendered legend does not). float: left at 100% width is the same
   in both directions. */
fieldset.field {
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset.field > legend {
  float: left;
  inline-size: 100%;
  padding: 0;
}

/* ---- Text and telephone values that are always left-to-right (email, URL, phone) ----
   In the Arabic form these inputs carry dir="ltr" so that an address or a number with spaces keeps its
   order; the text still starts from the same edge as the other fields. */
[dir="rtl"] .form .input[dir="ltr"] { text-align: end; }

/* ---- Project Description: 156px tall on the Contact page ---- */
.form .textarea { min-block-size: 9.75rem; }

/* ---- Select: the "Select your industry" prompt reads as a placeholder ---- */
.form .select select:invalid { color: var(--color-muted, #757575); }
.form .select select option { color: var(--color-foreground, #000000); }

/* ---- Input with a leading icon (Current Website URL) ---- */
.form__icon-input { position: relative; }

.form__icon-input > .icon {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: var(--space-4, 1rem);
  inline-size: 1.125rem;                                      /* 18 */
  block-size: 1.125rem;
  translate: 0 -50%;
  color: var(--color-ink, #0D1A2E);
  pointer-events: none;
}

.form__icon-input > .input {
  padding-inline-start: calc(var(--space-4, 1rem) + 1.125rem + var(--space-3, 0.75rem));
}

/* The input is dir="ltr" in the Arabic form, so its own start edge is the far side from the icon. */
[dir="rtl"] .form__icon-input > .input[dir="ltr"] {
  padding-inline-start: var(--space-4, 1rem);
  padding-inline-end: calc(var(--space-4, 1rem) + 1.125rem + var(--space-3, 0.75rem));
}

/* ---- Service tiles as drawn on the Contact page: larger, with a line of description ---- */
.form .choice__box {
  gap: var(--space-7, 1.75rem);                               /* 28 */
  padding: var(--space-5, 1.25rem);                           /* 20 */
}

.form .choice__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;                                              /* 6 */
}

.form .choice__title {
  font-size: 1.25rem;                                         /* 20/26 */
  line-height: var(--lh-h5, 1.3);
}

.form .choice__text {
  font-size: var(--fs-small, 0.9375rem);                      /* 15/22 */
  line-height: var(--lh-small, 1.4667);
  letter-spacing: var(--tracking-normal, -0.02em);
  color: var(--color-muted, #757575);
}

.form .choice input:checked + .choice__box .choice__text { color: var(--color-on-dark-muted, #FFFFFFA6); }

/* A missing choice is marked on both tiles, together with the message below them. */
.form .field.is-invalid .choice input:not(:checked) + .choice__box {
  border-color: var(--color-error, #B42318);
  outline: 1px solid var(--color-error, #B42318);
  outline-offset: -2px;
}

/* ---- Current Website URL: a full field for a redesign, an optional row otherwise ---- */
.form__reveal-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 0.5rem);
  padding-inline-start: var(--space-5, 1.25rem);
  border-inline-start: 2px solid var(--color-ink, #0D1A2E);
}

.form__reveal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4, 1rem);
  inline-size: 100%;
  min-block-size: 3rem;                                       /* 48 */
  border-block: 1px solid var(--color-rule, #7575754D);
  font-size: var(--fs-small, 0.9375rem);                      /* 15/20 */
  line-height: var(--lh-ui, 1.3333);
  letter-spacing: var(--tracking-normal, -0.02em);
  color: var(--color-muted, #757575);
  text-align: start;
  cursor: pointer;
  transition: color var(--dur-fast, 150ms) var(--ease-standard, ease);
}

.form__reveal-label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;                                              /* 10 */
}

.form__reveal-note { font-size: var(--fs-caption, 0.8125rem); }

@media (hover: hover) {
  .form__reveal:hover { color: var(--color-ink, #0D1A2E); }
}

.form__reveal:focus-visible { color: var(--color-ink, #0D1A2E); }

/* ---- Consent line and send button ---- */
.form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5, 1.25rem) var(--space-8, 2rem);
  padding-block-start: var(--space-7, 1.75rem);
  border-block-start: 1px solid var(--color-rule, #7575754D);
}

.form__consent {
  max-inline-size: 20.625rem;                                 /* 330 */
  font-size: var(--fs-caption, 0.8125rem);                    /* 13/20 */
  line-height: var(--lh-small, 1.5385);
  letter-spacing: var(--tracking-normal, -0.02em);
  color: var(--color-muted, #757575);
}

.form__submit { flex: none; }

/* Sending: the spinner replaces the send icon; the label is changed by the script. */
.form__submit .btn__spinner { display: none; }
.form__submit.is-loading .btn__spinner { display: block; }
.form__submit.is-loading .form__submit-icon { display: none; }

/* ---- Messages (they use .notice from components.css) ---- */
/* The "temporarily unavailable" notice: white with an ink edge, so it stands out on the surface panel. */
.form__notice {
  border-color: var(--color-ink, #0D1A2E);
  background-color: var(--color-background, #FFFFFF);
}

.form__summary-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1, 0.25rem);
  margin-block-start: var(--space-1, 0.25rem);
  font-size: var(--fs-small, 0.9375rem);
  line-height: var(--lh-small, 1.4667);
  letter-spacing: var(--tracking-normal, -0.02em);
}

.form :is(.form__summary-list, .notice__text) a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.form__retry {
  align-self: flex-start;
  margin-block-start: var(--space-3, 0.75rem);
}

.form__turnstile { min-block-size: 4.0625rem; }

/* Local test mode only. It must be impossible to miss. */
.form__test {
  align-self: flex-start;
  padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
  border: 1px dashed var(--color-ink, #0D1A2E);
  border-radius: var(--radius-sm, 8px);
  background-color: var(--color-background, #FFFFFF);
  font-size: var(--fs-caption, 0.8125rem);
  font-weight: var(--weight-medium, 500);
  line-height: var(--lh-label, 1.2308);
  letter-spacing: var(--tracking-normal, -0.02em);
  color: var(--color-ink, #0D1A2E);
}

/* After a confirmed send the fields are locked but stay fully readable. */
.form[data-state="sent"] :is(.input, .textarea, .select select):disabled {
  color: var(--color-ink, #0D1A2E);
  opacity: 1;
  cursor: default;
}

/* ---- Not for people: the trap field and the live region ---- */
.form__trap,
.form__status {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- Without JavaScript ----
   The form posts to /api/contact, which redirects back to this page with #enquiry-sent, #enquiry-unavailable
   or #enquiry-error. The matching message is shown by :target. These rules stop applying as soon as the
   script marks the form with data-js. !important is needed to lift the hidden attribute for this one case. */
.form:not([data-js]) :is(.form__notice, .form__error, .form__success):target { display: flex !important; }
.form:not([data-js]) .form__retry { display: none; }
.form:not([data-js]):has(.form__success:target) :is(.form__fields, .form__actions) { display: none; }

/* ---- Narrow form (a phone, a small tablet): one field per row ----
   The form adapts to its own width, but only where the shared grid has stacked (1024px and down: the same
   breakpoint as .grid in responsive.css). Above it the page is in its two-column desktop layout and the form
   keeps Paper's two fields per row. Without the width condition the two breakpoints disagreed: between 1025
   and about 1235px the form's column is narrower than 34rem, so the form fell to one field per row beside a
   page that was still two columns. */
@media (max-width: 1024px) {
  @container enquiry (max-width: 34rem) {
    .form__row { grid-template-columns: minmax(0, 1fr); }
    .form .choice-group { flex-direction: column; }
    .form .choice__box { gap: var(--space-4, 1rem); }

    .form__actions {
      flex-direction: column;
      align-items: stretch;
    }

    .form__consent { max-inline-size: none; }
    .form__submit { inline-size: 100%; }
  }
}

/* ---- Reduced motion: no spinning; the label "Sending enquiry" carries the state ---- */
@media (prefers-reduced-motion: reduce) {
  .form__submit .btn__spinner { animation: none; }
  .form__reveal { transition: none; }
}


/* ===== animations.css ===== */
/* ==========================================================================
   Motion: starting states for the entrance effects, the pieces SplitText creates,
   and the few keyframes the site uses. Author reference: monaro-src/ANIMATIONS.md

   The rule that matters: every hidden starting state is scoped under html.anim.
   boot.js adds that class only when a script is running AND the visitor has not
   asked for reduced motion, and removes it again if the motion system does not
   report in. Without it (no JavaScript, reduced motion, a failed script) every
   element below is simply visible.

   Elements are hidden with opacity or clip-path, never visibility or display,
   so they stay in the accessibility tree and keep their place in the layout.
   A played element carries data-anim-state ("run", then "done") and is no
   longer matched.
   ========================================================================== */

/* ---- Text and block entrances: hidden until played ---- */
html.anim :is(
  [data-anim="chars-up"],
  [data-anim="chars-fade"],
  [data-anim="words-up"],
  [data-anim="rise"],
  [data-anim="fade"]
):not([data-anim-state]) { opacity: 0; }

html.anim [data-anim-group] [data-anim-item]:not([data-anim-state]) { opacity: 0; }

/* ---- scrub-words: the whole statement starts dim; the module then dims word by word ---- */
html.anim [data-anim="scrub-words"]:not([data-anim-state]) { opacity: var(--scrub-dim, 0.18); }

/* ---- Image entrances (data-reveal is on the wrapper of the image) ---- */
html.anim :is([data-reveal="scale"], [data-reveal="fade"], [data-reveal="rise"]):not([data-anim-state]) { opacity: 0; }
html.anim [data-reveal="mask"]:not([data-anim-state]) { clip-path: inset(100% 0 0 0); }

/* While a mask or scale entrance runs, the picture is enlarged inside its frame and must be clipped by it.
   The module enlarges it through the `scale` property (a multiple of the picture's own scale, so a .media crop
   with --zoom keeps its crop); `transform` stays with the hover zoom. */
[data-reveal="mask"][data-anim-state="run"],
[data-reveal="scale"][data-anim-state="run"] { overflow: hidden; }
[data-reveal][data-anim-state="run"] :is(img, video) { will-change: transform, scale; }

/* ---- Pieces SplitText creates (they exist only while a text effect is playing) ----
   A line is the clipping edge the pieces rise from. It is clipped with clip-path and NEGATIVE insets rather
   than overflow, so the visible area reaches a little beyond the line box: descenders, accents and Arabic
   marks above and below the line are never cut, and nothing is added to the layout. */
.split-line {
  display: block;
  clip-path: inset(-0.14em -1em -0.24em -1em);
}
[lang="ar"] .split-line { clip-path: inset(-0.3em -1em -0.34em -1em); }
[lang="ar"] [lang="en"] .split-line { clip-path: inset(-0.14em -1em -0.24em -1em); }

.split-word,
.split-char { display: inline-block; }

/* scrub-words pieces stay inline: only their opacity changes, so line breaks and bidi order are untouched. */
.split-fade-word { display: inline; }

/* A run of Latin words inside right-to-left text, kept in reading order while its words are separate boxes. */
.split-ltr { unicode-bidi: isolate; }

/* ---- Visually hidden copy of a split statement, read by assistive technology ---- */
.anim-sr {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- Keyframes ---- */

/* The short line under the film hero's scroll cue: it travels down and fades, on a loop. */
@keyframes scroll-cue {
  0% { transform: scaleY(0); transform-origin: 50% 0%; opacity: 1; }
  45% { transform: scaleY(1); transform-origin: 50% 0%; opacity: 1; }
  55% { transform: scaleY(1); transform-origin: 50% 100%; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: 50% 100%; opacity: 0.2; }
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue__line::after { animation: scroll-cue 2.4s var(--ease-in-out, cubic-bezier(0.65, 0, 0.35, 1)) infinite; }
}


/* ===== interactive.css ===== */
/* ==========================================================================
   Interactive modules: before/after slider, Architecture walkthrough, scroll
   film hero, Arcline loader overlay, FAQ, portfolio filter.
   Markup contracts and options: monaro-src/ANIMATIONS.md

   Logical properties throughout, so everything mirrors under dir="rtl".
   Tokens are read with fallbacks, so this file works before tokens.css loads.
   The few physical properties are marked: they centre something symmetric or
   describe a clip-path side, which has no logical form.
   ========================================================================== */

/* ==========================================================================
   Before / after slider
   Paper: "00 Foundations & Components", 06 Before / after comparison.
   Markup, sizes and the hint line: monaro-src/ANIMATIONS.md §5.

   --ba-pos is the divider position from the inline-start edge (set by JS,
   50% without it). --ba-ratio is the shape of the viewport.

   Three sizes of controls, named as Paper names them:
     .before-after--large     56px handle, 240px glow, 12px tags 24px from the
                              corners, light hairline and deep frame shadow
     (no modifier) standard   44px handle, 180px glow, 11px tags 20px from the
                              corners
     .before-after--compact   32px handle, 120px glow, 10px tags 12px from the
                              corners, 8px frame radius
   A size only sets the custom properties below and every part reads them. A
   page may set one of them where Paper draws that page differently (with a
   comment saying so). A page never restyles the parts themselves.
   ========================================================================== */

/* No specificity: .grid, .section__body or a column class on the same element keep their display and margin. */
:where(.before-after) {
  display: block;
  margin: 0;
}

.before-after {
  --ba-pos: 50%;
  --ba-ratio: 16 / 9;
  --ba-radius: var(--radius-lg, 25px);
  --ba-frame-shadow: none;
  --ba-handle: 2.75rem;                                        /* 44 */
  --ba-handle-shadow: 0 8px 24px rgb(3 9 15 / 0.45);
  --ba-glow: 11.25rem;                                         /* 180 wide */
  --ba-glow-out: 2.5rem;                                       /* 40 past the frame, above and below */
  --ba-tag-size: var(--fs-micro, 0.6875rem);                   /* 11 */
  --ba-tag-leading: calc(14 / 11);
  --ba-tag-pad: 6px 12px 7px;
  --ba-tag-inset: 1.25rem;                                     /* 20 */
}

/* Where container units exist, the tags' distance from the corners follows the width of the picture itself:
   20px on an 845px frame and wider, 16px on a 628px one, never under 12px. */
@supports (inline-size: 1cqi) {
  .before-after__viewport { container-type: inline-size; }
  .before-after { --ba-tag-inset: clamp(0.75rem, 2.548cqi, 1.25rem); }
}

.before-after--large {
  --ba-frame-shadow: 0 clamp(1rem, 2.7778vw, 2.5rem) clamp(3rem, 8.3333vw, 7.5rem) rgb(0 0 0 / 0.5);   /* 0 40px 120px */
  --ba-handle: 3.5rem;                                         /* 56 */
  --ba-handle-shadow: 0 8px 28px rgb(3 9 15 / 0.45);
  --ba-glow: 15rem;                                            /* 240 */
  --ba-glow-out: 3.75rem;                                      /* 60 */
  --ba-tag-size: calc(var(--fs-micro, 0.6875rem) + 1px);       /* 12 */
  --ba-tag-leading: calc(14 / 12);
  --ba-tag-pad: 7px 13px 8px;
  --ba-tag-inset: 1.5rem;                                      /* 24 */
}

@supports (inline-size: 1cqi) {
  .before-after--large { --ba-tag-inset: clamp(0.75rem, 1.875cqi, 1.5rem); }
}

.before-after--compact {
  --ba-radius: var(--radius-sm, 8px);
  --ba-handle: 2rem;                                           /* 32 */
  --ba-handle-shadow: 0 4px 14px rgb(3 9 15 / 0.35);
  --ba-glow: 7.5rem;                                           /* 120 */
  --ba-glow-out: 1.875rem;                                     /* 30 */
  --ba-tag-size: calc(var(--fs-micro, 0.6875rem) - 1px);       /* 10 */
  --ba-tag-leading: 1.2;
  --ba-tag-pad: 5px 10px 6px;
  --ba-tag-inset: 0.75rem;                                     /* 12 */
}

/* On a phone a large comparison is a small picture: it takes the standard handle and tags.
   (Its glow and its tag inset already follow the width of the picture.) */
@media (max-width: 768px) {
  .before-after--large {
    --ba-handle: 2.75rem;
    --ba-handle-shadow: 0 8px 24px rgb(3 9 15 / 0.45);
    --ba-tag-size: var(--fs-micro, 0.6875rem);
    --ba-tag-leading: calc(14 / 11);
    --ba-tag-pad: 6px 12px 7px;
  }
}

/* Arabic: the tag text is one step larger (the --fs-micro token) and keeps one line ratio in every size;
   the tighter Latin ratios of the large and compact tags would crowd its marks. */
.before-after:lang(ar) { --ba-tag-leading: calc(14 / 11); }

.before-after__viewport {
  position: relative;
  inline-size: 100%;
  aspect-ratio: var(--ba-ratio);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--c-rule, #7575754D);
  border-radius: var(--ba-radius);
  /* The placeholder ground stops at the border. Under a translucent hairline (white at 16% on midnight) it
     would show through and turn the line near white. */
  background-color: var(--c-surface, #F7F9FB);
  background-clip: padding-box;
  box-shadow: var(--ba-frame-shadow);
  /* A horizontal drag moves the divider; a vertical one still scrolls the page. */
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

/* Paper frames the large comparison with the light hairline on every ground, white pages included. */
.before-after--large .before-after__viewport { border-color: var(--color-on-dark-rule, #FFFFFF29); }

.before-after__after,
.before-after__before {
  position: absolute;
  inset: 0;
}

/* Both pictures always fill the whole viewport; only the clip changes, so nothing is ever resized. */
.before-after__viewport :is(.before-after__after, .before-after__before) :is(picture, img) {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  max-inline-size: none;
}
.before-after__viewport :is(.before-after__after, .before-after__before) img {
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* The before picture shows from the inline-start edge to the divider.
   clip-path has no logical sides: the right side is inset in LTR, the left side in RTL. */
.before-after__before { clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0); }
[dir="rtl"] .before-after__before { clip-path: inset(0 0 0 calc(100% - var(--ba-pos))); }

/* The emerald glow behind the divider, on every comparison, with and without JavaScript. The artwork is a
   symmetric beam (never mirrored), stretched to its box. It follows --ba-pos, reaches past the frame above and
   below so its faded ends are clipped away, and lies over both pictures, under the line, the handle and the
   tags. On a small picture it is at most 30% of the width. */
.before-after__viewport::before {
  content: "";
  position: absolute;
  inset-block: calc(-1 * min(var(--ba-glow-out), 13%));
  inset-inline-start: var(--ba-pos);
  z-index: 2;
  inline-size: min(var(--ba-glow), 30%);
  margin-inline-start: calc(min(var(--ba-glow), 30%) / -2);
  background: url("/assets/images/brand/divider-glow.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}

/* Static divider line for the no-JavaScript state; the module replaces it with the real divider. */
.before-after:not([data-ba-ready]) .before-after__viewport::after,
.before-after__divider {
  position: absolute;
  inset-block: 0;
  inset-inline-start: var(--ba-pos);
  z-index: 3;
  inline-size: 2px;
  margin-inline-start: -1px;
  background-color: var(--color-on-dark, #FFFFFF);
  pointer-events: none;
}
.before-after:not([data-ba-ready]) .before-after__viewport::after { content: ""; }

.before-after__handle {
  position: absolute;
  /* Centred on a 2px line: symmetric, so physical offsets are correct in both directions. */
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  inline-size: var(--ba-handle);
  block-size: var(--ba-handle);
  border-radius: var(--radius-sm, 8px);
  background-color: var(--color-on-dark, #FFFFFF);
  color: var(--color-ink, #0D1A2E);
  box-shadow: var(--ba-handle-shadow);
  transform: translate(-50%, -50%);
  transition: transform var(--dur-base, 250ms) var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
  pointer-events: auto;
  cursor: ew-resize;
}
/* Hugeicons arrow-horizontal, written by the module: 20px in every size, as on Paper's pages. */
.before-after__handle svg {
  inline-size: 1.25rem;
  block-size: 1.25rem;
}
/* A handle smaller than 44px keeps a 44px area to take hold of. */
.before-after__handle::after {
  content: "";
  position: absolute;
  inset: min(0px, (var(--ba-handle) - 2.75rem) / 2);
}
.before-after[data-ba-dragging] .before-after__handle { transform: translate(-50%, -50%) scale(0.94); }
.before-after[data-ba-ready] .before-after__viewport { cursor: ew-resize; }

/* The real control: a native range input laid over the viewport. Invisible, focusable, and out of the way of the
   pointer (the viewport handles dragging). Its focus ring is drawn on the handle. */
.before-after__range {
  position: absolute;
  inset: 0;
  z-index: 1;
  inline-size: 100%;
  block-size: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
/* Keyboard focus as Paper draws it: a 2px aqua ring 3px off the handle, the gap filled with near-black so the
   ring holds over any picture. */
.before-after__range:focus-visible ~ .before-after__divider .before-after__handle {
  outline: 2px solid var(--color-aqua, #39B7B4);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--color-near-black, #03090F), var(--ba-handle-shadow);
}

/* Tags: pinned to the lower outer corners, above the line and the handle (Paper's layer order).
   Arabic: the comparison mirrors and the tags mirror with it, so each tag stays in the lower outer corner of
   its own picture ("Before" lower right, "After" lower left). That is the one rule; no page moves a tag. */
.before-after__tag {
  position: absolute;
  inset-block-end: var(--ba-tag-inset);
  z-index: 4;
  padding: var(--ba-tag-pad);
  border-radius: var(--radius-sm, 8px);
  color: var(--color-ink, #0D1A2E);
  font-size: var(--ba-tag-size);
  line-height: var(--ba-tag-leading);
  letter-spacing: var(--tracking-normal, -0.02em);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity var(--dur-base, 250ms) var(--ease-standard, cubic-bezier(0.2, 0, 0, 1));
}
.before-after__tag--before {
  inset-inline-start: var(--ba-tag-inset);
  border: 0.5px solid var(--color-tag-border, #0D1A2E4D);
  background-color: var(--color-surface, #F7F9FB);
}
.before-after__tag--after {
  inset-inline-end: var(--ba-tag-inset);
  border: 1px solid var(--color-emerald, #009C78);
  background-color: var(--color-success-tint, #E6F5F1);
}
/* A tag fades out when its own side is too narrow to hold it, so it never labels the other picture. */
.before-after[data-ba-near-start] .before-after__tag--before,
.before-after[data-ba-near-end] .before-after__tag--after { opacity: 0; }

/* "Drag to compare": the icon and one short line. .before-after__hint is the look (Paper's 15/23 line; --label
   is the 13px uppercase label Paper uses in section headers, --muted the secondary colour). The page places it:
   inside the figure as its <figcaption>, or anywhere else in the same <section>. */
.before-after__hint {
  display: flex;
  align-items: center;
  gap: 0.625rem;                                               /* 10 */
  font-size: var(--fs-small, 0.9375rem);
  font-weight: var(--weight-regular, 400);
  line-height: var(--lh-small, calc(23 / 15));
  letter-spacing: var(--tracking-normal, -0.02em);
  color: var(--c-text, #000000);
}
.before-after__hint .icon {
  --icon-size: 1.25rem;                                        /* 20 */
  color: var(--c-marker, #0D1A2E);
}
.before-after__hint--label {
  font-size: var(--fs-label, 0.8125rem);
  font-weight: var(--weight-light, 300);
  line-height: var(--lh-label, calc(16 / 13));
  text-transform: uppercase;
}
.before-after__hint--muted { color: var(--c-muted, #757575); }

/* [data-ba-hint]: "Drag to compare" is only true once a slider works. Inside a figure it waits for that
   figure; anywhere else the module marks it when a slider in the same section is ready. Its space is always
   kept, so nothing shifts. */
[data-ba-hint]:not([data-ba-ready]) { visibility: hidden; }
.before-after[data-ba-ready] [data-ba-hint] { visibility: visible; }

/* Example selector ([data-ba-group]): its buttons do nothing until the module runs, so they are not offered
   before that. Each slider but the active one carries the `hidden` attribute. */
[data-ba-group]:not([data-ba-group-ready]) [data-ba-selector] { display: none; }
.before-after[hidden] { display: none; }

/* ==========================================================================
   Architecture walkthrough
   Static (default): the first photograph alone. Pinned (set by JS on wide,
   fine-pointer screens with motion allowed): a full-viewport stage with the
   views stacked.
   ========================================================================== */
.walkthrough {
  position: relative;
  inline-size: 100%;
  margin: 0;
  background-color: var(--walkthrough-ground, #A28366); /* average tone of the first view, behind it while it loads */
}

.walkthrough__stage {
  position: relative;
  inline-size: 100%;
  block-size: 100vh;
  block-size: 100svh;
  overflow: hidden;
}

.walkthrough__view {
  position: absolute;
  inset: 0;
}
.walkthrough__view :is(picture, img) {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  max-inline-size: none;
}
.walkthrough__view img {
  object-fit: cover;
  object-position: var(--walkthrough-focus, 50% 50%);
}

/* Static: only the first view exists for the visitor (the others are lazy and never requested). */
.walkthrough__view + .walkthrough__view { display: none; }

[data-walkthrough-state="pinned"] .walkthrough__view + .walkthrough__view {
  display: block;
  opacity: 0;
}
[data-walkthrough-state="pinned"] .walkthrough__view img {
  will-change: transform;
  backface-visibility: hidden;
}

/* A produced film or frame sequence, when one is configured, plays above the photographs. */
.walkthrough__film {
  position: absolute;
  inset: 0;
  z-index: 1;
  inline-size: 100%;
  block-size: 100%;
  max-inline-size: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--dur-slow, 450ms) var(--ease-standard, cubic-bezier(0.2, 0, 0, 1));
}
[data-walkthrough-ready] .walkthrough__film { opacity: 1; }

/* Narrow screens: the photograph in its own shape instead of a tall crop. */
@media (max-width: 1023.98px) {
  .walkthrough__stage {
    block-size: auto;
    aspect-ratio: var(--walkthrough-static-ratio, 16 / 9);
  }
}

/* ==========================================================================
   Scroll film hero
   Static (default): the final still, the shade and the introduction.
   Film: html.film-ok (set before first paint by boot.js) and no
   data-film-state="static" on the section.
   ========================================================================== */
.scroll-film {
  position: relative;
  display: grid;
  inline-size: 100%;
  min-block-size: 100vh;
  min-block-size: 100svh;
  overflow: hidden;
  background-color: var(--film-ground-final, #92765B); /* average tone of the final still */
}

.scroll-film__media {
  position: absolute;
  inset: 0;
}
.scroll-film__media :is(picture, img, video, canvas) {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  max-inline-size: none;
}
.scroll-film__media :is(img, video, canvas) {
  object-fit: cover;
  object-position: var(--film-focus, 50% 50%);
}

/* The two stills sit in wrappers (.scroll-film__final, .scroll-film__poster) so the build's image helper can be
   used inside them. The opening poster is lazy and not rendered in the static state, so it is never downloaded there. */
.scroll-film__final,
.scroll-film__poster {
  position: absolute;
  inset: 0;
}
.scroll-film__poster { display: none; }

/* Two film layers, both created by the module: the one-frame opener, then the film itself. A still image and a
   video frame are not painted alike (the video is a little brighter), so each layer arrives with a fade
   rather than a cut. */
.scroll-film__video {
  opacity: 0;
  transition: opacity var(--dur-slow, 450ms) var(--ease-standard, cubic-bezier(0.2, 0, 0, 1));
}
.scroll-film[data-film-opener] .scroll-film__video--opener,
.scroll-film[data-film-ready] .scroll-film__video--film { opacity: 1; }

/* A soft shade under the introduction so light text holds over the café. */
.scroll-film__shade {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to top, rgb(3 9 15 / 0.74) 0%, rgb(3 9 15 / 0.34) 46%, rgb(3 9 15 / 0.16) 100%);
  pointer-events: none;
}

.scroll-film__opening,
.scroll-film__intro {
  position: relative;
  grid-area: 1 / 1;
  align-self: end;
  justify-self: start;
  box-sizing: border-box;
  inline-size: 100%;
  /* The page's content edge, the same one the header's container has: the gutter, or, on a screen wider than
     the container, the container's own edge. (With the gutter alone the text drifted outward above 1440px.) */
  padding-inline: max(var(--gutter, clamp(1.25rem, 5.5556vw, 5rem)), (100% - var(--container-max, 80rem)) / 2);
  padding-block: calc(var(--header-h, 6rem) + 1.5rem) clamp(2rem, 7vh, 4.5rem);
}
.scroll-film__opening { display: none; }

/* ---- film state ---- */
html.film-ok .scroll-film:not([data-film-state="static"]) {
  block-size: 100vh;
  block-size: 100svh;
  background-color: var(--film-ground-poster, #CEC6C3); /* average tone of the opening frame */
}
html.film-ok .scroll-film:not([data-film-state="static"]) .scroll-film__poster { display: block; }
html.film-ok .scroll-film:not([data-film-state="static"]) .scroll-film__final { opacity: 0; }
html.film-ok .scroll-film:not([data-film-state="static"]) .scroll-film__opening { display: block; }
html.film-ok .scroll-film:not([data-film-state="static"]) .scroll-film__shade { opacity: 0; }
html.film-ok .scroll-film:not([data-film-state="static"]) .scroll-film__intro {
  opacity: 0;
  pointer-events: none;
}
html.film-ok .scroll-film[data-film-intro-on]:not([data-film-state="static"]) .scroll-film__intro { pointer-events: auto; }

/* Keyboard: the introduction shows itself whenever focus is inside it, at any point of the film, so
   "Explore the Project" is always reachable and never focused while invisible. */
.scroll-film .scroll-film__intro:focus-within {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* The film failed or was too slow: one fade from the opening still to the final still. */
.scroll-film[data-film-fallback] .scroll-film__poster {
  display: block;
  opacity: 0;
  transition: opacity var(--dur-slower, 700ms) var(--ease-standard, cubic-bezier(0.2, 0, 0, 1));
}
.scroll-film[data-film-fallback] :is(.scroll-film__intro, .scroll-film__shade, .scroll-film__final) {
  transition: opacity var(--dur-slower, 700ms) var(--ease-standard, cubic-bezier(0.2, 0, 0, 1));
}

/* Scroll cue inside the opening block: a label and a short line (animated in animations.css). */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.scroll-cue__line {
  position: relative;
  inline-size: 1px;
  block-size: 2.5rem;
  background-color: rgb(128 128 128 / 0.3);
  background-color: color-mix(in srgb, currentColor 22%, transparent);
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: currentColor;
}

/* ==========================================================================
   Arcline loader overlay
   Never rendered unless boot.js armed it (html.loader-armed) or the module is
   running it (data-arcline-state). No JavaScript, reduced motion, a repeat
   visit in the tab: display none, from the first paint.
   ========================================================================== */
[data-arcline-loader] { display: none; }

html.loader-armed [data-arcline-loader],
[data-arcline-loader][data-arcline-state] {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader, 900);
  display: block;
  overflow: hidden;
  background-color: #000000;
}
[data-arcline-loader][hidden] { display: none !important; }

.arcline-loader__film {
  position: absolute;
  /* Centred both ways; symmetric, so physical offsets are correct in both directions. */
  top: 50%;
  left: 50%;
  /* As tall as the screen on wide screens. On tall screens the frame is made wider than the screen (190vw) so
     that the sketch, which sits in the middle half of the frame, spans the width; what falls outside is the
     frame's own black, the same black as the overlay. */
  inline-size: min(190vw, 177.78vh);
  max-inline-size: none;
  block-size: auto;
  aspect-ratio: 16 / 9;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s linear;
  pointer-events: none;
}
[data-arcline-state="playing"] .arcline-loader__film,
[data-arcline-state="held"] .arcline-loader__film,
[data-arcline-state="leaving"] .arcline-loader__film { opacity: 1; }

/* ==========================================================================
   FAQ
   The answer's height is animated inline by faq.js. data-faq-closing is set
   on a <details> while it is closing (its `open` attribute is still present),
   so a rotating icon can turn back at the start of the close, not the end.
   ========================================================================== */
[data-faq] summary { cursor: pointer; }
[data-faq] summary::-webkit-details-marker { display: none; }

/* ==========================================================================
   Portfolio filter
   Low-specificity defaults (:where) so the component styles win without effort.
   ========================================================================== */
:where([data-filter-group]) :where([data-filter]) {
  cursor: pointer;
  transition:
    color var(--dur-base, 250ms) var(--ease-standard, cubic-bezier(0.2, 0, 0, 1)),
    background-color var(--dur-base, 250ms) var(--ease-standard, cubic-bezier(0.2, 0, 0, 1)),
    border-color var(--dur-base, 250ms) var(--ease-standard, cubic-bezier(0.2, 0, 0, 1));
}
:where([data-filter-group]) :where([data-filter][aria-pressed="true"]) { color: var(--c-heading, #000000); }
[data-filter-item][hidden],
[data-filter-empty][hidden] { display: none; }


/* ===== responsive.css ===== */
/* ==========================================================================
   Responsive rules for everything shared
   Paper is drawn at 1440px only; these smaller layouts are designed in code.
   Breakpoints (max-width): 1280 · 1024 · 768 · 480. This file is last in site.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   ≤ 1280: the header tightens before it collapses
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .site-header__nav { gap: var(--space-8); }
  .site-nav__list { gap: var(--space-4); }
}

/* --------------------------------------------------------------------------
   ≤ 1024: tablet. Navigation becomes a menu, multi-column sections stack.
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --header-h: 4.5rem;          /* 72 */
    --header-h-compact: 4rem;    /* 64 */
  }

  /* Paper's desktop line breaks are released; the text reflows. */
  .br-desktop { display: none; }

  /* Header */
  .site-nav { display: none; }
  .site-header__menu-btn { display: inline-flex; }
  .site-header__nav { gap: var(--space-3); }
  .site-header__inner { gap: var(--space-4); }

  /* Grid: every column takes the full width unless it asks for a tablet span. */
  .grid { --grid-row-gap: var(--space-10); }
  .grid > :is([class^="col-"], [class*=" col-"]) { grid-column: 1 / -1; }
  .grid > .col-md-3 { grid-column: auto / span 3; }
  .grid > .col-md-4 { grid-column: auto / span 4; }
  .grid > .col-md-5 { grid-column: auto / span 5; }
  .grid > .col-md-6 { grid-column: auto / span 6; }
  .grid > .col-md-7 { grid-column: auto / span 7; }
  .grid > .col-md-8 { grid-column: auto / span 8; }
  .grid > .col-md-9 { grid-column: auto / span 9; }

  /* Section header: the label sits above the title. */
  .section-header { row-gap: var(--space-5); }
  .section-header__label,
  .section-header__title,
  .section-header__intro { grid-column: 1 / -1; }
  .section-header__label { min-block-size: 0; }
  .section-header__intro { margin-block-start: 0; }

  .rule--brand { --brand-rule-inset: var(--space-16); }

  /* Footer */
  .site-footer { padding-block-start: var(--space-18); }
  .site-footer__top { row-gap: var(--space-14); }
  .site-footer__brand,
  .site-footer__cols { grid-column: 1 / -1; }
  .site-footer__utilities { row-gap: var(--space-10); padding-block-end: var(--space-14); }
  .site-footer__lang { grid-column: 1 / span 4; }
  .site-footer__ask { grid-column: 5 / -1; }

  /* Next project */
  .next-project__thumb { inline-size: 11.25rem; }

  /* Wave treatments are drawn for wide sections. */
  .section--wave-fan { background-size: calc(var(--wave-size, 800px) * 0.75) auto; }
  .section--wave-crest { background-size: calc(var(--wave-size, 630px) * 0.75) auto; }
}

/* --------------------------------------------------------------------------
   ≤ 768: one column
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root { --grid-gap: 1rem; }

  /* Large Latin type set on several lines needs a little more air (Arabic keeps its own values). */
  [lang="en"] {
    --lh-display: 1.02;
    --lh-h1: 1.06;
    --lh-h2: 1.1;
  }

  .grid { --grid-row-gap: var(--space-8); }
  .grid > :is([class^="col-"], [class*=" col-"]) { grid-column: 1 / -1; }
  .grid > .col-sm-6 { grid-column: auto / span 6; }

  /* Project metadata: two by two */
  .meta-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Hairline rows: the key sits above its row */
  .rule-list__row {
    flex-direction: column;
    gap: var(--space-2);
    --rule-pad-top: var(--space-6);
    --rule-pad-bottom: var(--space-7);
  }
  .rule-list__key { inline-size: auto; line-height: var(--lh-label); }
  .rule-list--compact .rule-list__row { --rule-pad-top: var(--space-4); --rule-pad-bottom: var(--space-4); gap: var(--space-1); }
  .rule-list--compact .rule-list__key { line-height: var(--lh-label); }

  /* Numbered rows keep the numeral beside the text */
  .rule-list--numbered .rule-list__row { flex-direction: row; gap: var(--space-4); }
  .rule-list--numbered .rule-list__key { inline-size: 2rem; line-height: calc(var(--fs-h3) * var(--lh-h3)); }

  /* FAQ */
  .faq__question { gap: var(--space-4); padding-block: var(--space-6) var(--space-3); }
  .faq__answer > :last-child { padding-block-end: var(--space-7); }

  /* Closing CTA */
  .cta-closing__row { flex-direction: column; align-items: flex-start; }
  .cta-closing { background-position: 50% 50%, 8vw -12vw, 50% 50%; }

  /* Next project */
  .next-project__inner { flex-direction: column; align-items: flex-start; padding-block: var(--space-12); }
  .next-project__visual { inline-size: 100%; justify-content: space-between; }

  /* Browser frame */
  .browser-frame__bar { gap: var(--space-3); block-size: 3.25rem; padding-inline: var(--space-4) var(--space-3); }
  .browser-frame__controls { gap: var(--space-2); }
  .browser-frame__address { block-size: 2.25rem; padding-inline: var(--space-3); }
  .browser-frame__action { min-block-size: 2.75rem; }

  /* Floating live action docks closer to the edge */
  .floating-live { inset-block-end: var(--space-4); inset-inline-end: var(--space-4); }

  /* Footer */
  .site-footer__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-10) var(--grid-gap);
  }
  .site-footer__col--contact { min-inline-size: 0; }   /* a grid cell here: the track decides its width */
  /* 44px touch targets for the link lists */
  .site-footer__list { gap: 0; }
  .site-footer__list a,
  .site-footer__list span { display: inline-flex; align-items: center; min-block-size: 2.75rem; padding-block: 0.375rem; }
  .site-footer__heading { padding-block-end: var(--space-1); }
  .ask-ai__list { gap: 0; }
  .ask-ai__link { min-block-size: 2.75rem; }

  .site-footer__utilities { row-gap: var(--space-8); }
  .site-footer__lang,
  .site-footer__ask { grid-column: 1 / -1; }

  .site-footer__clocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: var(--space-8);
  }

  .site-footer__legal { padding-block: var(--space-5); }
}

/* --------------------------------------------------------------------------
   ≤ 480: phone
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --header-h: 4rem;            /* 64 */
    --header-h-compact: 3.5rem;  /* 56 */
  }

  /* The call to action lives in the menu; the bar keeps the logo and the menu button. */
  .site-header__cta { display: none; }

  .logo__mark { inline-size: 1.875rem; block-size: 1.1875rem; }
  .logo__word { font-size: 1.3125rem; }

  .meta-row { grid-template-columns: minmax(0, 1fr); }

  /* Buttons that sit side by side on wider screens stack and fill the width. */
  .cta-closing__actions { inline-size: 100%; }
  .cta-closing__actions .btn { flex: 1 1 100%; }

  .choice-group { flex-direction: column; }

  .browser-frame__controls { display: none; }

  .next-project__thumb { inline-size: 9rem; }
  .next-project__arrow { inline-size: 3.25rem; block-size: 3.25rem; }

  .site-footer__clocks { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }

  .site-footer__legal { flex-direction: column; align-items: flex-start; }

  .floating-live { inset-inline: var(--space-4); justify-content: center; }
}

