/* UPC Website Revamp: homepage v4 (v3 + the gradients and grid of the 2025 Annual Report). Decisions: DESIGN-v4.md */

:root {
  /* Balance: the structure is square, like the logo and the Annual Report (bands, photos, cards, tables);
     what people touch stays round (buttons, search, tabs, chips, dots, menus) */
  --r-card: 0;
  --r-panel: 0;
  --r-pill: 999px;
  --wrap: 1200px;
  --hdr-h: 104px;
  --logo-h: 80px;
  --ease-draw: cubic-bezier(.16, 1, .3, 1);

  /* Annual Report grid: thin sky lines on a 6-column module */
  --grid-line: rgba(146, 194, 230, .34);
  --grid-line-dark: rgba(146, 194, 230, .1);
  --grid-line-light: rgba(255, 255, 255, .24);
  /* Inner padding of the panels: their content (and their lines) fall on the page grid */
  --panel-pad: max(var(--gutter), calc((100% - var(--wrap)) / 2));

  /* Annual Report gradients, darkened where text sits on them (WCAG AA) */
  --grad-night:
    radial-gradient(110% 90% at 0% 0%, rgba(81, 70, 139, .85) 0%, rgba(81, 70, 139, 0) 62%),
    radial-gradient(80% 90% at 100% 100%, rgba(70, 114, 139, .55) 0%, rgba(70, 114, 139, 0) 64%),
    linear-gradient(160deg, #22295A 0%, #1C2452 52%, #20305E 100%);
  --grad-day:
    radial-gradient(85% 120% at 100% 0%, rgba(39, 112, 126, .95) 0%, rgba(39, 112, 126, 0) 66%),
    radial-gradient(75% 110% at 0% 100%, rgba(58, 79, 160, .95) 0%, rgba(58, 79, 160, 0) 66%),
    linear-gradient(135deg, #2E62A6 0%, #2C5D9F 100%);
  --grad-quote: linear-gradient(135deg, #4A5BA1 0%, #3F69AC 100%);
  --on-night-muted: #DDE5F0;  /* 6.2:1 on the lightest point of --grad-night */
  --on-day-muted: #E6EEF8;    /* 4.8:1 on the lightest point of --grad-day */
  --on-quote-muted: #F0F4FA;  /* 5.0:1 on the lightest point of --grad-quote */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--font-sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: inherit; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a, button, input, label { touch-action: manipulation; -webkit-tap-highlight-color: rgba(11, 99, 168, .14); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--focus-on-dark); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.ref { font: 500 14px/1.4 var(--font-mono); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: var(--z-skip); background: var(--white); color: var(--primary); padding: 12px 16px; border-radius: var(--r-pill); font-weight: 600; }
.skip:focus { top: 16px; }
.sample { display: inline-block; padding: 1px 8px; border-radius: var(--r-pill); background: var(--warning-tint); color: var(--warning); font: 600 12px/1.5 var(--font-sans); vertical-align: 1px; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-pill); background: transparent; color: inherit; font-size: 20px; cursor: pointer; }
.icon-btn:hover { background: rgba(0, 30, 51, .06); }

/* ---------- Annual Report grid ---------- */
/* Page grid: fixed behind everything, on the same 6-column module as .wrap */
.page-grid { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.page-grid .wrap { height: 100%; display: flex; justify-content: space-between; }
.page-grid span, .grid-lines span { flex: none; width: 1px; background: var(--grid-line); }
.page { position: relative; z-index: 1; }
/* Panel grid: the same lines continue inside the dark panels */
.grid-lines { position: absolute; top: 0; bottom: 0; left: var(--panel-pad); right: var(--panel-pad); z-index: 0; display: flex; justify-content: space-between; pointer-events: none; }
.grid-lines span { background: var(--grid-line-dark); }
.stats .grid-lines span { background: var(--grid-line-light); opacity: .45; }
@media (forced-colors: active) { .page-grid, .grid-lines { display: none; } }
/* Reading zones: the grid stays in the structure (hero, statement, section titles, figures, footer)
   and stops behind what people read or operate: news, tables, link lists */
.news, .tabs__panel, .biglinks { position: relative; background: var(--white); box-shadow: 0 0 0 24px var(--white); }
/* Uneven staircase, after the grid in the UPC logo: around each reading zone the lines do not stop all at once.
   Small white bars (under the text, z-index -1) cut the left lines most and the right lines least, with uneven
   steps (8-23px), so the staircase never looks mechanical; every edge has its own steps. */
:is(.news, .tabs__panel, .biglinks)::before, :is(.news, .tabs__panel, .biglinks)::after { content: ""; position: absolute; left: 0; right: 0; height: 96px; z-index: -1; pointer-events: none; }
:is(.news, .tabs__panel, .biglinks)::before { top: -120px; }
:is(.news, .tabs__panel, .biglinks)::after { top: calc(100% + 24px); }
.news::before, .news::after { left: var(--panel-pad); right: var(--panel-pad); }
/* Section titles: only the text sits on the white sheet (a tight box around the title and its note), so the lines that
   do not touch the text keep running through the title row and read as a grid, not as separators */
.sec:not(.sec--stats) .sec__head > :not(.tabs):not(.pill) { position: relative; background: var(--white); box-shadow: 0 0 0 20px var(--white); }
.news::before { background:
    linear-gradient(var(--white), var(--white)) 0% 100% / 13px 94px no-repeat,
    linear-gradient(var(--white), var(--white)) 16.667% 100% / 13px 72px no-repeat,
    linear-gradient(var(--white), var(--white)) 33.333% 100% / 13px 63px no-repeat,
    linear-gradient(var(--white), var(--white)) 50% 100% / 13px 41px no-repeat,
    linear-gradient(var(--white), var(--white)) 66.667% 100% / 13px 30px no-repeat,
    linear-gradient(var(--white), var(--white)) 83.333% 100% / 13px 12px no-repeat,
    linear-gradient(var(--white), var(--white)) 100% 100% / 13px 4px no-repeat; }
.news::after { background:
    linear-gradient(var(--white), var(--white)) 0% 0 / 13px 90px no-repeat,
    linear-gradient(var(--white), var(--white)) 16.667% 0 / 13px 81px no-repeat,
    linear-gradient(var(--white), var(--white)) 33.333% 0 / 13px 58px no-repeat,
    linear-gradient(var(--white), var(--white)) 50% 0 / 13px 46px no-repeat,
    linear-gradient(var(--white), var(--white)) 66.667% 0 / 13px 27px no-repeat,
    linear-gradient(var(--white), var(--white)) 83.333% 0 / 13px 19px no-repeat,
    linear-gradient(var(--white), var(--white)) 100% 0 / 13px 6px no-repeat; }
.tabs__panel::before { background:
    linear-gradient(var(--white), var(--white)) 0% 100% / 13px 96px no-repeat,
    linear-gradient(var(--white), var(--white)) 16.667% 100% / 13px 79px no-repeat,
    linear-gradient(var(--white), var(--white)) 33.333% 100% / 13px 70px no-repeat,
    linear-gradient(var(--white), var(--white)) 50% 100% / 13px 49px no-repeat,
    linear-gradient(var(--white), var(--white)) 66.667% 100% / 13px 35px no-repeat,
    linear-gradient(var(--white), var(--white)) 83.333% 100% / 13px 22px no-repeat,
    linear-gradient(var(--white), var(--white)) 100% 100% / 13px 8px no-repeat; }
.tabs__panel::after { background:
    linear-gradient(var(--white), var(--white)) 0% 0 / 13px 88px no-repeat,
    linear-gradient(var(--white), var(--white)) 16.667% 0 / 13px 74px no-repeat,
    linear-gradient(var(--white), var(--white)) 33.333% 0 / 13px 52px no-repeat,
    linear-gradient(var(--white), var(--white)) 50% 0 / 13px 43px no-repeat,
    linear-gradient(var(--white), var(--white)) 66.667% 0 / 13px 24px no-repeat,
    linear-gradient(var(--white), var(--white)) 83.333% 0 / 13px 14px no-repeat,
    linear-gradient(var(--white), var(--white)) 100% 0 / 13px 2px no-repeat; }
.biglinks::before { background:
    linear-gradient(var(--white), var(--white)) 0% 100% / 13px 92px no-repeat,
    linear-gradient(var(--white), var(--white)) 33.333% 100% / 13px 61px no-repeat,
    linear-gradient(var(--white), var(--white)) 66.667% 100% / 13px 38px no-repeat,
    linear-gradient(var(--white), var(--white)) 100% 100% / 13px 10px no-repeat; }
.biglinks::after { background:
    linear-gradient(var(--white), var(--white)) 0% 0 / 13px 86px no-repeat,
    linear-gradient(var(--white), var(--white)) 33.333% 0 / 13px 70px no-repeat,
    linear-gradient(var(--white), var(--white)) 66.667% 0 / 13px 34px no-repeat,
    linear-gradient(var(--white), var(--white)) 100% 0 / 13px 16px no-repeat; }

/* ---------- Pills (buttons) ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid transparent; font: 500 15px/1 var(--font-sans); white-space: nowrap; cursor: pointer; transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base) var(--ease); }
.pill i { font-size: 18px; transition: transform var(--t-base) var(--ease); }
.pill:hover i.ph-arrow-right { transform: translateX(3px); }
.pill--primary { background: var(--primary); color: var(--white); }
.pill--primary:hover { background: var(--primary-hover); }
.pill--ghost { border-color: var(--ink); color: var(--ink); }
.pill--ghost:hover { background: var(--ink); color: var(--white); }
.pill--white { background: var(--white); color: var(--navy); }
.pill--white:hover { background: #E6EEF8; }
.pill--light { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.pill--light:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.pill--ai { background: var(--ai); color: var(--white); width: 48px; padding: 0; }
.pill--ai:hover { background: var(--ai-hover); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); background: var(--white); color: var(--ink); font: 500 14px/1 var(--font-sans); }

/* ---------- Announcement ---------- */
.announce { background: var(--surface); font-size: 14px; }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; text-align: center; }
.announce strong { font-weight: 600; }

/* ---------- Header: one row ---------- */
.hdr { position: sticky; top: 0; z-index: var(--z-header); background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color var(--t-base) var(--ease); }
.hdr.is-stuck { border-bottom-color: var(--line); }
.hdr__inner { display: flex; align-items: center; gap: 20px; min-height: var(--hdr-h); }
.brand { flex: none; }
.brand img { height: var(--logo-h); width: auto; }
.hdr__tagline { font-size: 13px; line-height: 1.35; color: var(--ink-muted); max-width: 19ch; }
/* Header on two rows (brief 3.1): logo, catch phrase, compact search and languages on one line; the main menu below */
.hdr-search { display: flex; align-items: center; gap: 8px; width: 340px; height: 44px; margin-left: auto; padding: 0 4px 0 16px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.hdr-search:hover { border-color: var(--line-strong); }
.hdr-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--primary-tint); }
.hdr-search > i { flex: none; font-size: 18px; color: var(--ink-muted); }
.hdr-search input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.hdr-search input:focus { outline: none; }
.hdr-search input::placeholder { color: var(--ink-muted); }
.hdr-search__ai { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: var(--ai-tint); color: var(--ai); font: 600 13px/1 var(--font-sans); cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.hdr-search__ai:hover { background: var(--ai); color: var(--white); }
.hdr__tools .hdr__search-btn { display: none; }
.hdr__row2 { border-top: 1px solid var(--line); }
.nav { margin-left: -12px; }
.nav__list { min-height: 52px; align-items: center; }
/* Current page (brief 3.1): navy text and a 2px blue line sitting on the bottom edge of the menu row */
.nav__link[aria-current="page"] { background: var(--primary-tint); color: var(--primary-hover); font-weight: 600; }
.nav__list { display: flex; gap: 2px; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: none; font: 500 15px/1 var(--font-sans); color: var(--ink); cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.nav__link:hover { background: var(--surface); }
.nav__link { gap: 6px; }
.nav__caret { font-size: 12px; transition: transform var(--t-base) var(--ease); }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
.nav__link[aria-expanded="true"] { background: var(--ink); color: var(--white); }
.nav__mobile-extra { display: none; }
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: var(--z-menu); background: var(--white); border-top: 1px solid var(--line); border-radius: 0; box-shadow: 0 24px 48px rgba(0, 30, 51, .10); }
.mega__inner { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 48px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 4fr); }
.mega__title { padding-right: 40px; }
.mega__title { font: 300 40px/1.05 var(--font-display); letter-spacing: -.02em; }
.mega__links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 40px; align-content: start; }
.mega__links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; transition: color var(--t-fast) var(--ease); }
.mega__links a:hover { color: var(--primary); }
.hdr__tools { display: flex; align-items: center; gap: 8px; }
.round-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); color: var(--ink); font-size: 20px; cursor: pointer; transition: border-color var(--t-fast) var(--ease); }
.round-btn:hover { border-color: var(--ink); }
.hdr__burger { display: none; }
/* Language selector: the three codes always visible, as a small segmented control; the current one in navy */
.lang-codes { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--surface); }
.lang-codes a { display: grid; place-items: center; min-width: 40px; height: 38px; padding: 0 10px; border-radius: var(--r-pill); font: 600 13px/1 var(--font-sans); letter-spacing: .05em; color: var(--ink-muted); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.lang-codes a:hover { color: var(--ink); }
.lang-codes a[aria-current] { background: var(--navy); color: var(--white); }
/* On phones there is no room for three codes next to the logo: the compact dropdown stays there */
.lang-wrap { position: relative; display: none; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); font: 600 14px/1 var(--font-sans); letter-spacing: .04em; cursor: pointer; }
.lang-toggle:hover { border-color: var(--ink); }
.lang-toggle i { font-size: 14px; transition: transform var(--t-base) var(--ease); }
.lang-wrap.is-open .lang-toggle i { transform: rotate(180deg); }
.lang { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: var(--z-menu); min-width: 160px; padding: 6px; background: var(--white); border-radius: 0; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 30, 51, .10); }
.lang-wrap.is-open .lang { display: grid; }
.lang a { display: block; padding: 10px 14px; border-radius: 0; font-size: 15px; }
.lang a:hover { background: var(--surface); }
.lang a[aria-current] { font-weight: 600; background: var(--primary-tint); color: var(--primary-hover); }

/* ---------- Hero panel ---------- */
.hero { padding: 0; }
.hero__panel { position: relative; isolation: isolate; background: var(--navy); background: var(--grad-night); color: var(--white); border-radius: var(--r-panel); padding: 72px var(--panel-pad) 0; overflow: hidden; }
.hero__panel > :not(.grid-lines) { position: relative; z-index: 1; }
/* Not every hero line runs the full height: the last one starts a little above the title line
   (never exactly on it), leaving most of the title band open on the right */
.hero .grid-lines span:last-child { clip-path: inset(max(0px, calc(var(--title-end, 0px) - 64px)) 0 0 0); }
/* The hero clips its overflow, so lines that run past the grid stop exactly at the screen edge */
.hero__title { display: grid; font: 300 100px/.98 var(--font-display); letter-spacing: -.03em; }
.hero__line { display: block; }
/* Both lines start on grid line 1; the hairline under the title starts there too but runs on past the grid
   to the right edge of the screen (a break in the frame, in the reading direction) */
.hero__line--indent { position: relative; margin-left: 0; padding-bottom: 24px; }
.hero__line--indent::after { content: ""; position: absolute; left: 0; bottom: 0; right: -100vw; height: 1px; background: rgba(255, 255, 255, .24); }
/* The lead + search band sits centred between the title line and the services line: same space above and below */
.hero { --hero-band: 52px; }
.hero__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 4fr); align-items: center; margin-top: var(--hero-band); }
.hero__row > :first-child { padding-right: 40px; }
.hero__lead { font-size: 18px; line-height: 1.5; color: var(--on-night-muted); max-width: 30ch; }

/* Pill search */
.bigsearch { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px; background: var(--white); color: var(--ink); border-radius: var(--r-pill); box-shadow: 0 0 0 2px transparent; transition: box-shadow var(--t-base) var(--ease); }
.bigsearch:focus-within { box-shadow: 0 0 0 3px var(--sky); }
.bigsearch[data-mode="ai"] { box-shadow: 0 0 0 2px #B9AEE0; }
.bigsearch__modes { display: inline-flex; flex: none; margin: 0; padding: 3px; border: 0; background: var(--surface); border-radius: var(--r-pill); }
.bigsearch__modes label { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); font: 500 14px/1 var(--font-sans); color: var(--ink-muted); cursor: pointer; transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease); }
.bigsearch__modes input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.bigsearch__modes label:has(input:checked) { background: var(--navy); color: var(--white); }
.bigsearch__modes label:has(input[value="ai"]:checked) { background: var(--ai); }
.bigsearch__modes label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 1px; }
.bigsearch input[type="search"] { flex: 1; min-width: 0; height: 52px; border: 0; padding: 0 12px; font: inherit; font-size: 17px; color: var(--ink); background: transparent; }
.bigsearch input[type="search"]:focus { outline: none; }
.bigsearch input[type="search"]::placeholder { color: var(--ink-muted); }
.bigsearch .pill { min-height: 52px; }
.bigsearch .pill--primary { background: var(--mint); color: var(--navy); font-weight: 600; }
.bigsearch .pill--primary:hover { background: #7FDCC9; }
.bigsearch[data-mode="ai"] .pill--primary { background: var(--ai); color: var(--white); }
.bigsearch[data-mode="ai"] .pill--primary:hover { background: var(--ai-hover); }
.ai-note { display: none; position: absolute; left: 16px; top: calc(100% + 10px); align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--ai-tint); color: var(--ai); font-size: 13px; line-height: 1.3; }
.bigsearch[data-mode="ai"] .ai-note { display: inline-flex; }

/* Services inside the panel */
.services { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: var(--hero-band); }
/* The line over the services runs from the left screen edge to the last grid line: it crosses the title line,
   which runs the other way (from line 1 to the right edge) */
.services::before { content: ""; position: absolute; top: 0; left: -100vw; right: 0; height: 1px; background: rgba(146, 194, 230, .22); }
.services__label { display: flex; gap: 8px; align-items: flex-start; padding: 26px 20px 0 0; font-size: 14px; line-height: 1.4; color: var(--on-night-muted); }
.services .services__label i { align-self: auto; margin-top: 1px; font-size: 16px; color: var(--sky); }
.services ul { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.services a { display: grid; grid-template-rows: auto auto 1fr; gap: 4px; height: 100%; padding: 24px 20px 32px; }
/* Each service carries its accent, with the same meaning as everywhere else (light tones, for the dark band):
   mint = people and registers, sky = information and decisions, light magenta = agenda, white = institutional texts */
.services li { --svc: var(--sky); }
.services li:nth-child(1) { --svc: var(--mint); }
.services li:nth-child(4) { --svc: #E59BC8; }
.services li:nth-child(5) { --svc: var(--white); }
/* At rest only the arrow carries the service colour; on hover the cell's left line draws down in that colour */
.services__title { font: 400 23px/1.15 var(--font-display); letter-spacing: -.01em; }
.services__desc { font-size: 14px; line-height: 1.4; color: var(--on-night-muted); }
.services i { align-self: end; margin-top: 12px; font-size: 20px; color: var(--svc); transition: transform var(--t-base) var(--ease); }
.services a:hover .services__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.services a:hover i.ph-arrow-right { transform: translateX(6px); }
.services a:hover i.ph-arrow-up-right { transform: translate(4px, -4px); }
.services a:focus-visible { outline-offset: -3px; }
/* Desktop hover, subtle: the cell between two grid lines lights up softly, and only its left grid line
   gets brighter, drawn from the top */
.services a { position: relative; isolation: isolate; }
.services a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--svc) 14%, transparent) 0%, color-mix(in srgb, var(--svc) 3%, transparent) 100%); opacity: 0; transition: opacity 400ms var(--ease); }
/* On hover the cell's left line simply appears in the service colour (no animation) */
.services a::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--svc); clip-path: inset(0 0 100% 0); }
@media (hover: hover) and (min-width: 1280px) {
  .services a:is(:hover, :focus-visible)::before { opacity: 1; }
  .services a:is(:hover, :focus-visible)::after { clip-path: inset(0); }
  .services a:hover .services__title { text-decoration: none; }
}

/* ---------- Photo under the panel ---------- */
.photo { padding: 0; }
/* Asymmetric on the grid: the photo bleeds to the left edge and stops on line 5; column 6 holds the caption */
.photo__stage { --col: calc((100% - 2 * var(--panel-pad)) / 6); display: grid; grid-template-columns: calc(var(--panel-pad) + 5 * var(--col)) var(--col) var(--panel-pad); }
.photo__frame { position: relative; height: clamp(360px, 40vw, 600px); overflow: hidden; background: var(--surface); isolation: isolate; }
.photo__slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--t-slow) var(--ease); }
.photo__slide.is-active { opacity: 1; }
.photo__slide img { width: 100%; height: 100%; object-fit: cover; }
.photo__meta { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 24px 0 0 24px; }
.photo__top { display: flex; align-items: center; gap: 12px; }
.photo__count { flex: none; font: 500 13px/1 var(--font-mono); color: var(--ink-muted); letter-spacing: .04em; }
.photo__count span { color: var(--ink); }
.photo__progress { flex: 1; height: 1px; background: var(--line); overflow: hidden; }
.photo__progress span { display: block; width: 100%; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
@keyframes photo-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.photo__pause { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); color: var(--ink); font-size: 14px; cursor: pointer; transition: border-color var(--t-fast) var(--ease); }
.photo__pause:hover { border-color: var(--ink); }
.photo__info { display: grid; gap: 20px; }
.photo__caption { font: 400 22px/1.2 var(--font-display); letter-spacing: -.01em; min-height: 2.4em; }
.photo__arrows { display: flex; gap: 8px; }
.photo__arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--white); color: var(--ink); font-size: 17px; cursor: pointer; transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease); }
.photo__arrow:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.photo__arrow:active { transform: scale(.96); }
.statement { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr); align-items: end; margin-top: 104px; }
.statement > :first-child { padding-right: 56px; }
.statement__text { font: 300 44px/1.12 var(--font-display); letter-spacing: -.02em; max-width: 26ch; }
.statement__side { display: grid; gap: 20px; justify-items: start; color: var(--ink-muted); font-size: 16px; line-height: 1.5; }

/* ---------- Sections ---------- */
/* Section rhythm: 104px of air, the grid line, 80px more before the title (184px in all) */
.sec { position: relative; margin-top: 104px; padding-top: 80px; }
.sec::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--grid-line); }
.sec--stats::before { display: none; }
.sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.sec__head h2 { font: 300 64px/1 var(--font-display); letter-spacing: -.025em; }
.sec__note { margin-top: 10px; font-size: 14px; color: var(--ink-muted); display: flex; gap: 8px; align-items: center; }
.sec__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.sec__foot .sec__note { margin: 0; }
.meta { display: flex; gap: 16px; align-items: baseline; font-size: 14px; color: var(--ink-muted); }
.meta time { font: 500 13px/1 var(--font-mono); color: var(--ink); }
/* Accents (brief 2.3): the Annual Report's secondary colours mark categories, statuses and the key action.
   One meaning per colour, used the same way everywhere:
   navy = institutional · blue = information and decisions · teal = people, open, in force · magenta = agenda and changes.
   Categories are a small dot + the name in that colour (all AA on white); statuses are tinted pills. */
.cat { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; letter-spacing: .01em; }
.cat::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cat--court { color: var(--navy); }
.cat--stats { color: var(--primary); }
.cat--people { color: var(--teal); }
.cat--events { color: var(--magenta); }

/* News */
/* Full-width grid: margin | 6 columns | margin. The lead story reads first: its photo runs from the
   left screen edge to line 3; column 4 is air; the list takes columns 5-6 */
.news { display: grid; grid-template-columns: var(--panel-pad) repeat(6, minmax(0, 1fr)) var(--panel-pad); align-items: start; }
.news__lead { grid-column: 1 / 5; grid-row: 1; }
.news__lead > :not(.news__img) { grid-column: 2 / -1; }
.news__img { grid-column: 1 / -1; }
/* The list and, under it, the button to all news */
.news__side { grid-column: 6 / 8; grid-row: 1; display: grid; gap: 32px; }
.news__side > .pill { justify-self: start; }
.news__lead { display: grid; grid-template-columns: subgrid; gap: 18px 0; }
.news__img { aspect-ratio: 16 / 10; border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.news__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.news__lead:hover .news__img img { transform: scale(1.02); }
.news__lead-title { font: 400 36px/1.12 var(--font-display); letter-spacing: -.015em; max-width: 24ch; }
.news__lead:hover .news__lead-title, .news__list a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.news__list { border-top: 1px solid var(--ink); }
/* Small stories: a square-cornered 4:3 thumbnail, then date and title */
.news__list a { display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 20px; row-gap: 8px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.news__thumb { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.news__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.news__list a:hover .news__thumb img { transform: scale(1.04); }
.news__list .meta { grid-column: 2; }
.news__list h3 { grid-column: 2; font: 400 21px/1.2 var(--font-display); letter-spacing: -.01em; }
.news__list i { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 22px; color: var(--primary); transition: transform var(--t-base) var(--ease); }
.news__list a:hover i { transform: translateX(6px); }

/* Tabs (pill segmented) */
.tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: var(--surface); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs__tab { flex: none; min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: none; font: 500 15px/1 var(--font-sans); color: var(--ink-muted); cursor: pointer; transition: background-color var(--t-base) var(--ease), color var(--t-fast) var(--ease); }
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] { background: var(--navy); color: var(--white); }
.tabs__panel:focus-visible { outline-offset: 8px; }

/* Board */
/* Board: three reading levels on the grid.
   1. the day (column 1): a big serif number, weekday and month small; today in a navy square
   2. the hearing (columns 2-4): time in mono, the kind of hearing as the title (serif), the case number under it (mono, link)
   3. the data (columns 5-6): division with the city first, language as a code; statuses and categories as colour tags */
.board { width: 100%; border-collapse: collapse; table-layout: fixed; }
.board thead th { width: 16.667%; padding: 0 16px 12px 16px; text-align: left; font: 500 12px/1.4 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 1px solid var(--ink); }
.board thead th:first-child { padding-left: 0; }
.board thead th:nth-child(3) { width: 33.333%; }
.board tbody + tbody { border-top: 1px solid var(--ink); }
.board td { padding: 22px 16px; vertical-align: top; font-size: 15px; line-height: 1.4; border-bottom: 1px solid var(--line); transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.board tbody tr:last-child td { border-bottom: 0; }
.board__date { padding: 22px 16px 22px 0; text-align: left; vertical-align: top; font-weight: 400; border-bottom: 0; }
td.board__date { border-bottom: 1px solid var(--line); }
.board__dnum { display: grid; place-items: center start; font: 300 52px/.9 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.board__dname { display: block; margin-top: 10px; font-size: 13px; line-height: 1.35; color: var(--ink-muted); }
.board__dname span { display: block; }
.board__date--sm .board__dnum { font-size: 40px; }
.is-today .board__dnum { place-items: center; width: 64px; height: 64px; background: var(--navy); color: var(--white); font-size: 38px; letter-spacing: -.02em; }
.today { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--navy); color: var(--white); font: 600 12px/1.3 var(--font-sans); }
.board__time { font: 500 24px/1.05 var(--font-mono) !important; color: var(--navy); letter-spacing: -.02em; }
.board__type { display: block; font: 400 21px/1.25 var(--font-display); letter-spacing: -.01em; color: var(--ink); max-width: 30ch; }
.board .ref { display: inline-block; margin-top: 8px; color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-size: 13px; }
.board .ref--lg { margin-top: 0; font-size: 16px; }
.board span.ref { color: var(--ink-muted); text-decoration: none; }
.board__city { display: block; font-weight: 600; color: var(--ink); }
.board__unit { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-muted); }
.code { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font: 600 12px/1 var(--font-sans); letter-spacing: .06em; color: var(--ink); }
/* Status and category tags: the Annual Report's secondary colours on tints (all AA) */
.tag i { font-size: 14px; }
.tag--cancelled { background: var(--magenta-tint); color: var(--magenta); }
.tag--order { background: var(--teal-tint); color: var(--teal); }
.tag--decision, .tag--action { background: var(--primary-tint); color: var(--primary-hover); }
.tag--appeal { background: #E8EBF3; color: var(--navy); }
.board__case .tag { margin-bottom: 2px; }
.board__case .tag + .ref { display: block; }
/* Cancelled: the row steps back, the tag says why */
.is-cancelled :is(.board__time, .board__city, .board__unit) { color: var(--line-strong); }
.is-cancelled .board__time, .board .is-cancelled .ref { text-decoration: line-through; text-decoration-thickness: 1px; }
.board .is-cancelled .ref { color: var(--ink-muted); }
/* Row hover: the row lights up softly and its first grid line turns blue (as in the hero services) */
@media (hover: hover) {
  .board tbody tr:hover td { background: rgba(11, 99, 168, .035); }
  .board tbody tr:hover td:not(.board__date):first-of-type { box-shadow: inset 2px 0 0 var(--primary); }
}
.board [hidden] { display: none !important; }

/* Figures as cards */
.sec--stats { margin-top: 240px; padding-top: 0; }
.stats { position: relative; isolation: isolate; padding: 80px var(--panel-pad) 72px; border-radius: var(--r-panel); background: var(--primary-hover); background: var(--grad-day); color: var(--white); }
.stats__in { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stats__in > .sec__head { grid-column: 1 / 5; grid-row: 1; padding-right: 40px; }
.stats .cards { grid-column: 1 / 5; grid-row: 2; }
.stats .langbar { grid-column: 1 / -1; grid-row: 3; }
/* The key figure: navy (the logo's colour), columns 5-6, rising 80px above the band */
.stats__key { grid-column: 5 / 7; grid-row: 1 / 3; margin: -160px 0 0; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 28px 28px 32px; background: var(--navy); color: var(--white); }
.stats__key .card__l { color: var(--on-navy-muted); }
/* The key figure reads as one card: the number with its label at the top, the link to all statistics at the foot */
.stats__figure { display: grid; gap: 20px; }
.stats__key .pill { align-self: flex-start; }
/* Room under the band, so the report can rise across the section line without touching it */
.sec--stats + .sec { margin-top: 200px; }
.stats .sec__note, .stats .langbar__legend { color: var(--on-day-muted); }
.stats .langbar__legend strong { color: var(--white); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--grid-line-light); border-bottom: 1px solid var(--grid-line-light); }
.card { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 280px; padding: 28px; border-radius: var(--r-card); background: var(--surface); }
/* Open cells (no fill): the figure and its label start right on the grid line, like the title above;
   only the filled navy cell keeps an inner margin */
.stats .card { min-height: 300px; padding: 28px 28px 32px 0; border-radius: 0; background: none; }
.stats .card .card__l { color: var(--on-day-muted); }
.card__n { font: 300 104px/.9 var(--font-sans); letter-spacing: -.05em; }
.card__l { font-size: 16px; line-height: 1.4; max-width: 20ch; }
.langbar { margin-top: 40px; display: grid; gap: 12px; }
.langbar__title { font-weight: 600; font-size: 15px; }
.stats .langbar { margin-top: 48px; }
.langbar__bar { display: flex; gap: 3px; height: 10px; border-radius: var(--r-pill); overflow: hidden; }
.langbar__bar span { flex: 0 0 var(--w); background: var(--c); }
.langbar__legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--ink-muted); }
.langbar__legend li { display: inline-flex; align-items: center; gap: 8px; }
.langbar__legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.langbar__legend strong { color: var(--ink); font-weight: 600; }

/* Practitioners: big links */
/* Full-width grid: the big links take columns 1-3 (column 4 is air); the report takes columns 5-6,
   runs on to the right screen edge and rises across the section line */
.practice { container-type: inline-size; display: grid; grid-template-columns: var(--panel-pad) repeat(6, minmax(0, 1fr)) var(--panel-pad); align-items: start; }
.practice > :first-child { grid-column: 2 / 5; grid-row: 1; }
.report { grid-column: 6 / -1; grid-row: 1; }
.biglinks { border-top: 1px solid var(--ink); }
.biglinks a { display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 4px 24px; align-items: center; padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.biglinks__d { grid-column: 1; grid-row: 2; }
.biglinks i { grid-column: 2; grid-row: 1 / span 2; }
.biglinks__t { font: 300 34px/1.12 var(--font-display); letter-spacing: -.02em; transition: color var(--t-fast) var(--ease); }
.biglinks__d { font-size: 14px; color: var(--ink-muted); }
.biglinks i { font-size: 22px; color: var(--primary); transition: transform var(--t-base) var(--ease); }
.biglinks a:hover .biglinks__t { color: var(--primary); }
.biglinks a:hover i { transform: translateX(6px); }
.report { display: grid; gap: 14px; padding: 0 0 28px; border-radius: var(--r-panel); background: #3F69AC; background: var(--grad-quote); color: var(--white); margin-top: -160px; }
.report__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
/* Its text keeps the cell inset and still ends on the last grid line */
.report > :not(.report__img) { margin-left: 28px; margin-right: max(var(--gutter), calc((100cqw - var(--wrap)) / 2)); }
.report__img img { width: 100%; height: 100%; object-fit: cover; }
.report__title { font: 400 28px/1.15 var(--font-display); letter-spacing: -.01em; margin-top: 6px; }
.report p { color: var(--on-quote-muted); font-size: 15px; line-height: 1.5; }
.report__langs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.report__langs .pill { min-width: 64px; padding: 0 18px; }

/* ---------- Footer ---------- */
.ftr { margin-top: 184px; }
.ftr__panel { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); background: var(--grad-night); color: var(--white); border-radius: var(--r-panel); padding: 72px var(--panel-pad) 24px; }
.ftr__panel > :not(.grid-lines) { position: relative; z-index: 1; }
.ftr__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.ftr__claim { font: 300 48px/1.08 var(--font-display); letter-spacing: -.025em; max-width: 20ch; }
.ftr__top img { height: 88px; width: auto; }
.ftr__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 64px; padding-top: 32px; }
/* Footer lines escape the grid like the hero's (the panel clips them at the screen edge):
   the line over the columns starts on grid line 1 and runs to the right edge;
   the line over the legal row comes in from the left edge and stops on the last grid line */
.ftr__cols::before, .ftr__legal::before { content: ""; position: absolute; top: 0; height: 1px; background: rgba(146, 194, 230, .22); pointer-events: none; }
.ftr__cols::before { left: 0; right: -100vw; }
.ftr__legal::before { left: -100vw; right: 0; }
.ftr__cols > * { padding-right: 24px; }
.ftr__cols h2 { font: 500 14px/1.3 var(--font-sans); color: var(--on-night-muted); margin-bottom: 14px; }
.ftr__cols ul { display: grid; gap: 8px; }
.ftr__cols li { display: flex; align-items: center; gap: 8px; }
.ftr a:hover, .ftr .linklike:hover { text-decoration: underline; text-underline-offset: 4px; }
.open { padding: 2px 8px; border-radius: var(--r-pill); background: var(--mint); color: var(--navy); font: 600 12px/1.3 var(--font-sans); }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 20px; font-size: 14px; color: var(--on-night-muted); }
.ftr__legal ul { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.ftr__legal a, .ftr__legal .linklike { color: var(--white); }

/* ---------- AI panel ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font: 600 13px/1.4 var(--font-sans); }
.tag--ai { background: var(--ai-tint); color: var(--ai); }
.ai-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-panel); width: var(--ai-panel-w); max-width: 100%; display: flex; flex-direction: column; background: var(--white); border-left: 3px solid var(--ai); box-shadow: var(--shadow-overlay); }
.ai-panel[hidden] { display: none; }
@media (min-width: 1280px) {
  html.ai-open .page { margin-right: var(--ai-panel-w); }
  /* The page gets narrower while the assistant is open: the header falls back to the menu button */
  html.ai-open .hdr__tagline, html.ai-open .nav__list, html.ai-open .nav { display: none; }
  html.ai-open .hdr__tools { margin-left: auto; }
}
.nav__link { white-space: nowrap; }
.ai-panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 16px 12px 24px; }
.ai-panel__heading { display: grid; gap: 8px; justify-items: start; }
.ai-panel__heading h2 { font: 400 26px/1.15 var(--font-display); }
.ai-panel__disclaimer { display: flex; gap: 8px; margin: 0 24px; padding: 12px 14px; border-radius: 14px; background: var(--ai-tint); font-size: 13px; line-height: 1.45; }
.ai-panel__disclaimer i { color: var(--ai); font-size: 18px; flex: none; }
.ai-panel__thread { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 24px; display: grid; gap: 24px; align-content: start; }
.ai-q { justify-self: end; max-width: 88%; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: var(--surface); font-weight: 500; line-height: 1.45; }
.ai-a { display: grid; gap: 12px; border-left: 3px solid var(--ai); padding-left: 16px; }
.ai-a__label { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ai-a p { line-height: 1.55; }
.ai-a h3 { font-size: 14px; font-weight: 600; color: var(--ink-muted); margin-top: 8px; }
.ai-a__list { display: grid; gap: 8px; }
.ai-a__list li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.ai-a__list .item__ref { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.ai-a__list .item__meta { font-size: 14px; font-weight: 500; }
.ai-a__sources { display: flex; flex-wrap: wrap; gap: 8px; }
.rule-tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font: 500 13px/1.4 var(--font-mono); white-space: nowrap; }
.rule-tag:hover { border-color: var(--primary); color: var(--primary-hover); background: var(--primary-tint); }
.ai-a__feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-muted); }
.ai-a__feedback .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--ink); border-radius: var(--r-pill); background: none; color: var(--ink); font: 500 14px/1 var(--font-sans); cursor: pointer; }
.ai-a__feedback .btn[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.ai-a .btn--secondary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--ink); border-radius: var(--r-pill); font-weight: 500; }
.ai-loading { display: grid; gap: 10px; border-left: 3px solid var(--ai-tint); padding-left: 16px; }
.ai-loading p { font-size: 14px; color: var(--ai); display: flex; align-items: center; gap: 6px; }
.ai-loading span { height: 12px; border-radius: var(--r-pill); background: var(--ai-tint); animation: pulse 1.2s var(--ease) infinite; }
.ai-loading span:nth-child(3) { width: 82%; animation-delay: .15s; }
.ai-loading span:nth-child(4) { width: 64%; animation-delay: .3s; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.ai-panel__ask { display: flex; gap: 8px; padding: 16px 24px 8px; border-top: 1px solid var(--line); }
.ai-panel__ask input { flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font: inherit; font-size: 16px; color: var(--ink); }
.ai-panel__ask input:focus { outline: none; border-color: var(--ai); box-shadow: 0 0 0 3px var(--ai-tint); }
.ai-panel__classic { display: inline-flex; align-items: center; gap: 6px; margin: 0 24px 16px; font-size: 14px; font-weight: 500; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .ai-panel { width: 100%; border-left: 0; } html.ai-open body { overflow: hidden; } }

/* ---------- Back to top, cookies ---------- */
.to-top { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: var(--z-header); width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--white); color: var(--ink); border: 1px solid var(--line); font-size: 22px; box-shadow: 0 12px 32px rgba(0, 30, 51, .12); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), background-color var(--t-fast) var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--white); }
html.ai-open .to-top { right: calc(var(--ai-panel-w) + 24px); }
@media (max-width: 1279px) { html.ai-open .to-top { display: none; } }
.cookie { position: fixed; left: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: var(--z-cookie); width: min(440px, calc(100% - 32px)); padding: 24px; background: var(--white); border-radius: 20px; box-shadow: 0 24px 64px rgba(0, 30, 51, .16); display: grid; gap: 12px; font-size: 15px; line-height: 1.5; }
.cookie[hidden] { display: none; }
.cookie__title { font: 400 24px/1.2 var(--font-display); }
.cookie a { text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.cookie__actions .pill { flex: 1 1 auto; }

/* ---------- Motion: reveal on load and scroll ---------- */
/* Hero intro, about 2 s, only on arrival (opacity and transform only):
   1. the grid draws itself: the vertical lines grow down from the header, left to right (0-360 ms start)
   2. the title rises line by line (250 / 400 ms)
   3. the title hairline draws to the right, out to the screen edge (700 ms)
   4. lead text and search fade up (650 ms)
   5. the services line draws in from the left edge (900 ms), then the services appear one by one (1000-1300 ms) */
.js .hero .grid-lines span { transform: scaleY(0); transform-origin: top; transition: transform 1200ms var(--ease-draw); }
.js .hero .grid-lines span:nth-child(2) { transition-delay: 60ms; }
.js .hero .grid-lines span:nth-child(3) { transition-delay: 120ms; }
.js .hero .grid-lines span:nth-child(4) { transition-delay: 180ms; }
.js .hero .grid-lines span:nth-child(5) { transition-delay: 240ms; }
.js .hero .grid-lines span:nth-child(6) { transition-delay: 300ms; }
.js .hero .grid-lines span:nth-child(7) { transition-delay: 360ms; }
.js .hero.is-in .grid-lines span { transform: none; }
.js .hero__line { opacity: 0; transform: translateY(32px); transition: opacity 1000ms var(--ease), transform 1000ms var(--ease-draw); transition-delay: 250ms; }
.js .hero__line:nth-child(2) { transition-delay: 400ms; }
.js .is-in .hero__line { opacity: 1; transform: none; }
.js .hero__line--indent::after { transform: scaleX(0); transform-origin: left; transition: transform 1400ms var(--ease-draw) 700ms; }
.js .hero.is-in .hero__line--indent::after { transform: none; }
.js .hero__row { opacity: 0; transform: translateY(16px); transition: opacity 800ms var(--ease) 650ms, transform 800ms var(--ease-draw) 650ms; }
.js .hero.is-in .hero__row { opacity: 1; transform: none; }
.js .services::before { transform: scaleX(0); transform-origin: left; transition: transform 1400ms var(--ease-draw) 900ms; }
.js .hero.is-in .services::before { transform: none; }
.js :is(.services__label, .services li) { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease), transform 700ms var(--ease-draw); }
.js .services__label { transition-delay: 1000ms; }
.js .services li:nth-child(1) { transition-delay: 1060ms; }
.js .services li:nth-child(2) { transition-delay: 1120ms; }
.js .services li:nth-child(3) { transition-delay: 1180ms; }
.js .services li:nth-child(4) { transition-delay: 1240ms; }
.js .services li:nth-child(5) { transition-delay: 1300ms; }
.js .hero.is-in :is(.services__label, .services li) { opacity: 1; transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .hdr__tagline { display: none; }
  .hdr__burger { display: grid; }
  .hdr-search { display: none; }
  .hdr__tools .hdr__search-btn { display: grid; }
  .hdr__row2 { border-top: 0; }
  .hdr__row2 .wrap { padding: 0; }
  .nav { display: none; position: fixed; inset: var(--menu-top, var(--hdr-h)) 0 0 0; z-index: var(--z-menu); margin: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--white); padding: 16px var(--gutter) 64px; }
  .hdr.menu-open .nav { display: block; }
  /* The open menu must be fixed to the viewport: a backdrop-filter on the header would trap it */
  .hdr.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .hdr__tools { margin-left: auto; }
  .services__label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .services ul { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services li:nth-child(n+4) { border-top: 1px solid rgba(146, 194, 230, .22); }
  .nav__list { flex-direction: column; gap: 0; min-height: 0; align-items: stretch; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; min-height: 64px; padding: 0; border-radius: 0; font: 300 30px/1.1 var(--font-display); justify-content: space-between; }
  .nav__link:hover, .nav__link[aria-expanded="true"] { background: none; color: var(--primary); }
  .nav__link[aria-current="page"] { background: none; color: var(--primary); font-weight: 300; }
  .nav__caret { font-size: 20px; }
  .mega { position: static; box-shadow: none; border-radius: 0; }
  .mega__inner { display: block; padding: 0 0 16px; }
  .mega__title { display: none; }
  .mega__links { grid-template-columns: 1fr; }
  .nav__mobile-extra { display: grid; gap: 12px; padding-top: 24px; font-weight: 600; }
}
@media (max-width: 1023px) {
  .hero__title { font-size: 76px; }
  .hero__row { grid-template-columns: 1fr; gap: 24px; }
  .hero__row > :first-child { padding-right: 0; }
  .services ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services li:nth-child(n+4) { border-top: 0; }
  .services li { border-bottom: 1px solid rgba(146, 194, 230, .22); }
  .services li:first-child { grid-column: 1 / -1; }
  .services a, .services li:first-child a { padding: 20px 20px 24px 20px; }
  .services li:nth-last-child(-n+2) { border-bottom: 0; }
  .statement { grid-template-columns: 1fr; }
  .news, .practice { grid-template-columns: var(--panel-pad) minmax(0, 1fr) var(--panel-pad); }
  .statement > :first-child { padding-right: 0; }
  .photo__stage { grid-template-columns: calc(100% - var(--panel-pad)) var(--panel-pad); }
  .photo__meta { grid-column: 1; gap: 12px; padding: 16px 0 0 var(--panel-pad); }
  .photo__info { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
  .photo__caption { min-height: 0; font-size: 20px; }
  .news__lead { grid-column: 1 / 3; grid-row: 1; }
  .news__side { grid-column: 2 / 3; grid-row: 2; }
  .practice > :first-child { grid-column: 2 / 3; grid-row: 1; }
  .report { grid-column: 2 / -1; grid-row: 2; }
  .news { row-gap: 40px; }
  .statement { gap: 24px; }
  .practice { row-gap: 56px; }
  .biglinks::before { background:
        linear-gradient(var(--white), var(--white)) 0% 100% / 13px 94px no-repeat,
    linear-gradient(var(--white), var(--white)) 16.667% 100% / 13px 72px no-repeat,
    linear-gradient(var(--white), var(--white)) 33.333% 100% / 13px 63px no-repeat,
    linear-gradient(var(--white), var(--white)) 50% 100% / 13px 41px no-repeat,
    linear-gradient(var(--white), var(--white)) 66.667% 100% / 13px 30px no-repeat,
    linear-gradient(var(--white), var(--white)) 83.333% 100% / 13px 12px no-repeat,
    linear-gradient(var(--white), var(--white)) 100% 100% / 13px 4px no-repeat; }
  .biglinks::after { background:
        linear-gradient(var(--white), var(--white)) 0% 0 / 13px 90px no-repeat,
    linear-gradient(var(--white), var(--white)) 16.667% 0 / 13px 81px no-repeat,
    linear-gradient(var(--white), var(--white)) 33.333% 0 / 13px 58px no-repeat,
    linear-gradient(var(--white), var(--white)) 50% 0 / 13px 46px no-repeat,
    linear-gradient(var(--white), var(--white)) 66.667% 0 / 13px 27px no-repeat,
    linear-gradient(var(--white), var(--white)) 83.333% 0 / 13px 19px no-repeat,
    linear-gradient(var(--white), var(--white)) 100% 0 / 13px 6px no-repeat; }
  .stats__in { display: block; }
  .stats__in > .sec__head { padding-right: 0; }
  .stats__key { margin: 0; min-height: 240px; }
  .stats .card { min-height: 240px; }
  .report { margin-top: 0; }
  .sec--stats { margin-top: 160px; }
  .sec--stats + .sec { margin-top: 104px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec__head h2 { font-size: 52px; }
}
@media (max-width: 767px) {
  :root { --hdr-h: 80px; --logo-h: 60px; }
  .hdr__inner { gap: 8px; }
  .lang-codes { display: none; }
  .lang-wrap { display: block; }
  .round-btn, .lang-toggle { height: 40px; }
  .round-btn { width: 40px; }
  .lang-toggle { padding: 0 10px; }
  .hero__panel { padding: 48px var(--panel-pad) 0; }
  .hero__title { font-size: 46px; line-height: 1; }
  .hero { --hero-band: 36px; }
  /* Phones: a 2-column grid (edges and centre); the title lines start on the first line */
  .page-grid span:not(:nth-child(3n+1)), .grid-lines span:not(:nth-child(3n+1)) { display: none; }
  .hero__line--indent { margin-left: 0; padding-bottom: 12px; }
  .bigsearch { flex-wrap: wrap; border-radius: 24px; padding: 8px; }
  .bigsearch input[type="search"] { flex-basis: 100%; order: 2; height: 48px; }
  .bigsearch .pill { order: 3; flex: 1; }
  .bigsearch__modes { order: 1; }
  .ai-note { position: static; order: 4; margin: 4px 4px 0; }
  .services ul { grid-template-columns: 1fr; }
  .services li { border-bottom: 1px solid rgba(146, 194, 230, .22); }
  .services li:last-child { border-bottom: 0; }
  .services a, .services li:first-child a, .services li:nth-child(odd):not(:first-child) a { grid-template-columns: 1fr auto; grid-template-rows: auto auto; padding: 16px 0 16px 20px; }
  .services i { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; }
  .photo__frame { height: 280px; }
  .photo__arrow { width: 44px; height: 44px; }
  .statement { margin-top: 56px; gap: 24px; }
  .statement__text { font-size: 30px; }
  .sec { margin-top: 56px; padding-top: 56px; }
  .sec--stats { margin-top: 112px; }
  .stats { padding: 48px var(--panel-pad) 40px; }
  .stats .cards { grid-template-columns: 1fr; }
  .stats .card, .stats__key { min-height: 0; }
  .stats .card + .card { border-top: 1px solid var(--grid-line-light); }
  .sec__head h2 { font-size: 40px; }
  .news__lead-title { font-size: 28px; }
  .news__list h3 { font-size: 19px; }
  .news__list a { grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card__n { font-size: 80px; }
  .biglinks a { grid-template-columns: minmax(0, 1fr) 24px; gap: 4px 16px; }
  .biglinks__t { font-size: 26px; }
  .biglinks__d { grid-column: 1; grid-row: 2; }
  .biglinks i { grid-column: 2; grid-row: 1 / span 2; }
  .board, .board tbody, .board tr, .board td, .board th { display: block; width: 100%; }
  .board thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .board tbody { border-top: 1px solid var(--ink); }
  .board tr { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .board tbody tr:last-child { border-bottom: 0; }
  .board td, td.board__date { padding: 0; border: 0; }
  .board th.board__date { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 4px 0 10px; }
  .board th.board__date .board__dname { margin: 0; }
  .board th.board__date .board__dname span { display: inline; }
  .board th.board__date .today { margin: 0 0 0 auto; }
  .board__dnum { font-size: 40px; }
  .is-today .board__dnum { width: 52px; height: 52px; font-size: 30px; }
  .board :is(.board__time, td.board__date) { grid-column: 1; grid-row: span 3; }
  .board td:not(.board__time):not(.board__date) { grid-column: 2; }
  td.board__date .board__dnum { font-size: 30px; }
  td.board__date .board__dname { margin-top: 4px; font-size: 12px; }
  .board__lang:empty { display: none !important; }
  .board__time { font-size: 18px !important; }
  .board__type { font-size: 19px; }
  @media (hover: hover) { .board tbody tr:hover td { background: none; } .board tbody tr:hover td:not(.board__date):first-of-type { box-shadow: none; } }
  .ftr { margin-top: 112px; }
  .ftr__panel { padding: 48px var(--panel-pad) 20px; }
  .ftr__claim { font-size: 34px; }
  .ftr__cols { grid-template-columns: 1fr; gap: 28px; }
  .to-top { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .cookie { left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 20px; }
}

/* ---------- German (brief 5.3: texts about 30% longer) ----------
   Tested with the German menu, catch phrase, hero and services. The menu, header and services hold; only the hero title
   ("Ein einheitliches Patentgericht") would break onto a third line and push the services below the fold, so in German
   the hero title and the service titles run one step smaller. Drupal sets lang on <html>, so this needs no extra markup. */
html[lang="de"] .hero__title { font-size: 90px; }
html[lang="de"] .services__title { font-size: 21px; }
@media (max-width: 1023px) { html[lang="de"] .hero__title { font-size: 70px; } }
@media (max-width: 767px) { html[lang="de"] .hero__title { font-size: 42px; } }

/* ---------- Short laptop screens (1366x768, 1280x800, 1536x864): the five service tiles stay above the fold (brief 3.4) ----------
   The hero tightens vertically; the logo keeps its 80px so it stays legible */
@media (min-width: 1280px) and (max-height: 880px) {
  :root { --hdr-h: 92px; }
  .nav__list { min-height: 46px; }
  .hero__panel { padding-top: 44px; }
  .hero__title { font-size: 84px; }
  .hero { --hero-band: 34px; }
  html[lang="de"] .hero__title { font-size: 76px; }
  html[lang="de"] .services__title { font-size: 20px; }
  .hero__line--indent { padding-bottom: 18px; }
  .services a { padding: 18px 20px 20px; }
  .services i { margin-top: 6px; }
  .services__label { padding-top: 20px; }
}

/* ---------- Motion across the home (with Lenis smooth scroll) ----------
   One language: the grid draws itself and the content rises out of it. Only opacity, transform,
   scale, translate and clip-path; everything inside no-preference, so reduced motion shows the page still. */
@media (prefers-reduced-motion: no-preference) {
  /* Page grid: the vertical lines grow down on arrival */
  .js .page-grid span { transform: scaleY(0); transform-origin: top; transition: transform 1600ms var(--ease-draw); }
  .js .page-grid span:nth-child(2) { transition-delay: 70ms; }
  .js .page-grid span:nth-child(3) { transition-delay: 140ms; }
  .js .page-grid span:nth-child(4) { transition-delay: 210ms; }
  .js .page-grid span:nth-child(5) { transition-delay: 280ms; }
  .js .page-grid span:nth-child(6) { transition-delay: 350ms; }
  .js .page-grid span:nth-child(7) { transition-delay: 420ms; }
  .js.is-loaded .page-grid span { transform: none; }

  /* Section lines draw left to right when the section arrives */
  .js .sec::before { transform: scaleX(0); transform-origin: left; transition: transform 1400ms var(--ease-draw); }
  .js .sec.is-in::before { transform: none; }

  /* Titles rise out of a mask; their note, tabs and button follow */
  .js :is(.sec__head, .statement, .news, .biglinks, .cards, .tabs__panel)[data-reveal] { opacity: 1; transform: none; }
  .js :is(.sec__head h2, .statement__text, .ftr__claim) { clip-path: inset(-100% -5% 100% -5%); transform: translateY(100%); transition: clip-path 1100ms var(--ease-draw), transform 1100ms var(--ease-draw); }
  .js :is(.sec__head.is-in h2, .statement.is-in .statement__text, .ftr.is-in .ftr__claim) { clip-path: inset(-20% -5% -25% -5%); transform: none; }
  .js :is(.sec__head .sec__note, .sec__head .tabs, .sec__head > .pill, .statement__side) { opacity: 0; transform: translateY(16px); transition: opacity 800ms var(--ease) 250ms, transform 800ms var(--ease-draw) 250ms; }
  .js :is(.sec__head.is-in .sec__note, .sec__head.is-in .tabs, .sec__head.is-in > .pill, .statement.is-in .statement__side) { opacity: 1; transform: none; }

  /* Photos: uncovered from the side they run to, while the picture settles from a slight zoom;
     then they drift a little slower than the page (parallax, --py set by the script) */
  .js :is(.photo__slide, .news__img, .report__img) img { height: calc(100% + 56px); margin-top: -28px; translate: 0 var(--py, 0px); scale: 1.12; transition: scale 2000ms var(--ease-draw) 200ms; }
  .js :is(.photo__stage.is-in .photo__slide, .news.is-in .news__img, .report.is-in .report__img) img { scale: 1; }
  .js .photo__frame, .js .news__img { clip-path: inset(0 100% 0 0); transition: clip-path 1500ms var(--ease-draw) 200ms; }
  .js .photo__stage.is-in .photo__frame, .js .news.is-in .news__img { clip-path: inset(0); }
  .js .report[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 0 100%); transition: clip-path 1500ms var(--ease-draw); }
  .js .report.is-in { clip-path: inset(0); }
  .js :is(.photo__meta, .news__lead > :not(.news__img)) { opacity: 0; transform: translateY(16px); transition: opacity 800ms var(--ease) 700ms, transform 800ms var(--ease-draw) 700ms; }
  .js :is(.photo__stage.is-in .photo__meta, .news.is-in .news__lead > :not(.news__img)) { opacity: 1; transform: none; }

  /* Lists arrive item by item */
  .js :is(.news__list li, .news__side > .pill, .biglinks li, .tabs__panel .board tbody, .ftr__cols > *) { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease-draw); }
  .js :is(.news.is-in .news__list li, .news.is-in .news__side > .pill, .biglinks.is-in li, .tabs__panel.is-in .board tbody, .ftr.is-in .ftr__cols > *) { opacity: 1; transform: none; }
  .js .news__list li:nth-child(1) { transition-delay: 300ms; }
  .js .news__list li:nth-child(2) { transition-delay: 410ms; }
  .js .news__list li:nth-child(3) { transition-delay: 520ms; }
  .js .news__side > .pill { transition-delay: 760ms; }
  .js .biglinks li:nth-child(2) { transition-delay: 80ms; }
  .js .biglinks li:nth-child(3) { transition-delay: 160ms; }
  .js .biglinks li:nth-child(4) { transition-delay: 240ms; }
  .js .biglinks li:nth-child(5) { transition-delay: 320ms; }
  .js .biglinks li:nth-child(6) { transition-delay: 400ms; }
  .js .tabs__panel .board tbody:nth-of-type(2) { transition-delay: 90ms; }
  .js .tabs__panel .board tbody:nth-of-type(3) { transition-delay: 180ms; }
  .js .tabs__panel .board tbody:nth-of-type(4) { transition-delay: 270ms; }
  .js .tabs__panel .board tbody:nth-of-type(5) { transition-delay: 360ms; }
  .js .tabs__panel .board tbody:nth-of-type(6) { transition-delay: 450ms; }
  .js .ftr__cols > :nth-child(1) { transition-delay: 300ms; }
  .js .ftr__cols > :nth-child(2) { transition-delay: 400ms; }
  .js .ftr__cols > :nth-child(3) { transition-delay: 500ms; }

  /* Figures band: its grid draws, the cells follow, the numbers count up (script), the language bar fills */
  .js :is(.stats, .ftr) .grid-lines span { transform: scaleY(0); transform-origin: top; transition: transform 1400ms var(--ease-draw); }
  .js :is(.stats, .ftr) .grid-lines span:nth-child(2) { transition-delay: 70ms; }
  .js :is(.stats, .ftr) .grid-lines span:nth-child(3) { transition-delay: 140ms; }
  .js :is(.stats, .ftr) .grid-lines span:nth-child(4) { transition-delay: 210ms; }
  .js :is(.stats, .ftr) .grid-lines span:nth-child(5) { transition-delay: 280ms; }
  .js :is(.stats, .ftr) .grid-lines span:nth-child(6) { transition-delay: 350ms; }
  .js :is(.stats, .ftr) .grid-lines span:nth-child(7) { transition-delay: 420ms; }
  .js :is(.stats.is-in, .ftr.is-in) .grid-lines span { transform: none; }
  .js .stats .card { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 800ms var(--ease-draw); }
  .js .stats .card:nth-child(2) { transition-delay: 140ms; }
  .js .cards.is-in .card { opacity: 1; transform: none; }
  .js .langbar__bar span { transform: scaleX(0); transform-origin: left; transition: transform 1200ms var(--ease-draw); }
  .js .langbar__bar span:nth-child(1) { transition-delay: 250ms; }
  .js .langbar__bar span:nth-child(2) { transition-delay: 370ms; }
  .js .langbar__bar span:nth-child(3) { transition-delay: 490ms; }
  .js .langbar__bar span:nth-child(4) { transition-delay: 610ms; }
  .js .langbar.is-in .langbar__bar span { transform: none; }

  /* Footer lines draw in when the footer arrives, each in the direction it escapes */
  .js .ftr__cols::before { transform: scaleX(0); transform-origin: left; transition: transform 1400ms var(--ease-draw) 200ms; }
  .js .ftr__legal::before { transform: scaleX(0); transform-origin: left; transition: transform 1400ms var(--ease-draw) 450ms; }
  .js .ftr.is-in :is(.ftr__cols, .ftr__legal)::before { transform: none; }

  /* Footer: logo and legal line follow the claim */
  .js :is(.ftr__top img, .ftr__legal) { opacity: 0; transition: opacity 900ms var(--ease) 500ms; }
  .js .ftr.is-in :is(.ftr__top img, .ftr__legal) { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; transition-delay: 0ms !important; animation-duration: 0ms !important; animation-iteration-count: 1 !important; }
  .js .hero__line, .js [data-reveal], .js .hero__row, .js :is(.services__label, .services li) { opacity: 1; transform: none; }
  .js .hero .grid-lines span, .js .hero__line--indent::after, .js .services::before { transform: none; }
}
