/* Techno Team v2
   Layout idea: a black studio for the cinema (photography, film), a paper sheet for the facts (sheets, plans).
   One 12-column grid (7/5 split on its 8th line), one column gap (--col-gap), spacing on an 8px rhythm, one fluid type scale
   (320 → 1440 px linear, fixed above 1440 where the container stops). Primary buttons are flat accent with ink text; the logo gradient is kept for the rule, progress and hover lines. */
:root {
  --ink-0: #07080A;
  --ink: #0B0C0E;
  --surface-1: #14161A;
  --surface-2: #1C1F24;
  --line: #2A2D33;
  --line-strong: #666B74;
  --text: #EFEDE8;
  --body: #C3C6CC;
  --muted: #9A9EA6;
  --paper: #ECEAE5;
  --paper-ink: #16181C;
  --paper-muted: #5A5F68;
  --accent: #F28A5B;
  --accent-tint: rgba(242, 138, 91, .18);        /* marked placeholders in legal text */
  --on-photo: #D7D8DB;                           /* small mono text over photos and film */
  --side: 90deg;                                 /* towards the line end: 270deg on right-to-left pages (ar) */
  --grad: linear-gradient(var(--side), #EF7050, #E94260);
  --danger: #FF8A7A;
  --display: 'Archivo', 'Archivo Fallback', 'Arial Narrow', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* grid: 12 columns inside .wrap, one column gap (--col-gap 24 / 20 / 16); a column is --c (set on each grid container) */
  --max: 1400px;
  --gutter: clamp(20px, 5.3vw, 76px);
  --col-gap: 24px;
  --header-h: 72px;
  /* vertical rhythm: every fluid space is rounded down to 8px (gutter to 4px) where round() exists (@supports below) */
  --space-section: clamp(80px, 9vw, 144px);
  --space-head: 48px;
  --space-page-top: clamp(56px, 7vw, 104px);
  --space-page-bottom: clamp(40px, 5vw, 64px);
  --space-foot: clamp(64px, 8vw, 104px);
  --space-block: clamp(56px, 7vw, 96px);
  --space-hero-b: clamp(40px, 6vw, 80px);
  /* component spacing: 8px steps */
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px; --sp-5: 40px; --sp-6: 48px;

  /* type scale (Archivo), linear 320 → 1440 px, fixed above 1440; max/min ≤ 2.5 (WCAG 1.4.4)   320 / 768 / 1440 */
  --fs-xl: clamp(36px, 3.93vw + 23.4px, 80px);   /* d1 home + family H1        36 / 54 / 80 */
  /* phones: page H1 ≥ 1.25 × section H2 (390: 35.9 / 27.4 = 1.31; 320: 34 / 26) */
  --fs-l: clamp(34px, 2.679vw + 25.43px, 64px);  /* d2 page + product H1       34 / 46 / 64 */
  --fs-m: clamp(26px, 2.143vw + 19.06px, 50px);  /* d3 section H2              26 / 35.5 / 50 */
  --fs-s: clamp(24px, .71vw + 21.7px, 32px);     /* d4 sub-section H2/H3       24 / 27 / 32 */
  --fs-h: clamp(19px, .27vw + 18.1px, 22px);     /* heading: card, step, legal H2, form step, prev/next  19 / 20 / 22 */
  --fs-lead: clamp(18px, .18vw + 17.4px, 20px);  /* lead, key functions, address                      18 / 19 / 20 */
  --fs-body: 17px;                               /* body, tables, lists */
  --fs-small: 15px;                              /* small text, notes, hints, captions */
  --fs-meta: 13px;                               /* mono: buttons, menu, links, codes */
  --fs-label: 12px;                              /* mono: labels, chips, pills, table heads */
  --track-caps: .08em;                           /* uppercase mono letter spacing */

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}
@media (max-width: 1199px) { :root { --col-gap: 20px; } }
@media (max-width: 767px) { :root { --col-gap: 16px; --header-h: 64px; --space-head: 32px; } }
/* 8px rhythm: 1440 → section 128, page top 104 → 96, 1024 → section 88; content edges land on whole pixels (gutter 56 / 40 / 20) */
@supports (width: round(down, 10px, 8px)) {
  :root {
    --gutter: round(nearest, clamp(20px, 5.3vw, 76px), 4px);
    --space-section: round(down, clamp(80px, 9vw, 144px), 8px);
    --space-page-top: round(down, clamp(56px, 7vw, 104px), 8px);
    --space-page-bottom: round(down, clamp(40px, 5vw, 64px), 8px);
    --space-foot: round(down, clamp(64px, 8vw, 104px), 8px);
    --space-block: round(down, clamp(56px, 7vw, 96px), 8px);
    --space-hero-b: round(down, clamp(40px, 6vw, 80px), 8px);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
/* open menu / image viewer: page behind stays still (native scroll, no JS library) */
html.no-scroll, html.no-scroll body, html:has(dialog[open]), html:has(dialog[open]) body { overflow: hidden; }
.nav { overscroll-behavior: contain; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--display); font-size: var(--fs-body); line-height: 1.65; overflow-x: clip; }
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: #EF7050; color: var(--ink); }
/* author display rules (.btn inline-flex, .field grid…) must never override the hidden attribute */
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* logical sides (inset-inline-start…): on right-to-left pages (ar) an off-screen element sits off the RIGHT edge, never in
   the scrollable overflow on the left. Physical left/right only where both sides are set (symmetric); the RTL block at
   the end of this file mirrors what has no logical form (gradients, clip-paths, transforms). */
.skip { position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 200; background: var(--text); color: var(--ink); padding: 10px 14px; }
.skip:focus { inset-inline-start: 8px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--space-section); }
.section-b { padding-bottom: var(--space-section); }
/* --c: one column of the 12-column grid, resolved against the grid container's width */
.split, .fam-b, .finale, .gallery, .journey { --c: calc((100% - 11 * var(--col-gap)) / 12); }
/* 7/5: the second column starts on line 8 (7 columns + 7 gaps); the gutter between them stays 2 × --col-gap */
.split, .fam-b, .finale { grid-template-columns: minmax(0, calc(var(--c) * 7 + var(--col-gap) * 5)) minmax(0, 1fr); }
.split { display: grid; column-gap: calc(var(--col-gap) * 2); row-gap: 40px; }
.split.top { align-items: start; }
.split.end { align-items: end; }
@media (max-width: 1099px) { .split, .fam-b, .finale { grid-template-columns: minmax(0, 1fr); } }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: var(--space-head); }
.stack { display: grid; gap: 24px; align-content: start; }
.stack-s { display: grid; gap: 16px; align-content: start; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- type ---------- */
.display { font-family: var(--display); font-stretch: 72%; font-weight: 760; text-transform: uppercase; line-height: .92; letter-spacing: -.005em; text-wrap: balance; hyphens: manual; overflow-wrap: break-word; }
:lang(tr) .display { hyphens: auto; }
/* languages (content/i18n/langs.json): font stack per PAGE language (root only, so a language name inside the menu
   never pulls another script's font). Latin keeps Archivo; Cyrillic falls through to Roboto Flex, Arabic to IBM Plex
   Sans Arabic (fonts.css). Display headings of the new languages never hyphenate automatically (the browser's
   dictionary split 'FELDKRAN-KENHÄUSER', 'МО-ДУЛЬ'): long words break only at the U+00AD soft hyphens the build puts
   at compound/syllable boundaries (content/i18n/shy.json; also in the home mosaic captions); Turkish keeps hyphens: auto.
   Key functions and sheet values in long-word languages may hyphenate (lang-aware, never in EN/TR). */
:root:lang(ru) { --display: 'Archivo', 'Roboto Flex', 'Archivo Fallback', 'Arial Narrow', system-ui, sans-serif; }
:root:lang(ar) { --display: 'Archivo', 'IBM Plex Sans Arabic', 'Archivo Fallback', system-ui, sans-serif; --mono: 'IBM Plex Mono', 'IBM Plex Sans Arabic', ui-monospace, 'SFMono-Regular', Menlo, monospace; }
:is(:lang(fr), :lang(es), :lang(ru), :lang(de)) :is(.kf li, .sheet dd) { hyphens: auto; }
:lang(tr) .display { line-height: 1.0; }
.d-xl { font-size: var(--fs-xl); }
.d-l { font-size: var(--fs-l); }
.d-m { font-size: var(--fs-m); line-height: .95; }
.d-s { font-size: var(--fs-s); line-height: 1; letter-spacing: 0; }
:lang(tr) .d-m { line-height: 1.02; }
:lang(tr) .d-s { line-height: 1.05; }
.heading { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: var(--fs-h); line-height: 1.15; letter-spacing: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--body); max-width: 30em; }
.lead.intro { color: var(--text); }
.body { color: var(--body); max-width: 36em; }
.small { font-size: var(--fs-small); line-height: 1.55; color: var(--body); }
/* closing note under a block (certificate scope, references): ≤ 75 characters a line */
.aside-note { margin-top: 32px; max-width: 40em; color: var(--muted); }
.label { font-family: var(--mono); font-size: var(--fs-label); line-height: 1.4; letter-spacing: var(--track-caps); text-transform: uppercase; font-weight: 500; color: var(--muted); }
.code { font-family: var(--mono); font-size: var(--fs-meta); font-weight: 600; letter-spacing: .06em; color: var(--accent); font-variant-numeric: tabular-nums; }
/* family code in front of a heading: half the heading size, centred on its line */
.code.h-code { font-size: .5em; vertical-align: middle; }
/* accent label above a product's lead */
.label.tagline { display: block; margin-bottom: var(--sp-3); color: var(--accent); }
.rule { display: block; height: 3px; width: 72px; background: var(--grad); border: 0; margin: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 26px; font-family: var(--mono); font-size: var(--fs-meta); letter-spacing: var(--track-caps); text-transform: uppercase; font-weight: 600; text-decoration: none; border: 1px solid var(--text); color: var(--text); background: transparent; cursor: pointer; transition: background-color .24s var(--ease-out), color .24s var(--ease-out), border-color .24s; }
.btn-m { min-height: 48px; padding: 0 20px; }
.btn-s { min-height: 40px; padding: 0 16px; font-size: var(--fs-label); }
.btn .arr { width: 16px; height: 10px; flex: none; transition: transform .24s var(--ease-out); }
/* solid = flat accent, ink text (7.9:1); no gradient */
.btn.solid { position: relative; background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--surface-2); border-color: var(--accent); }
  .btn.solid:hover { background: var(--text); border-color: var(--text); color: var(--ink); }
  .sheet .btn.solid:hover { background: #DCD9D2; border-color: var(--paper-ink); }
  .btn:hover .arr { transform: translateX(4px); }
}
.link { position: relative; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: var(--fs-meta); letter-spacing: var(--track-caps); text-transform: uppercase; font-weight: 600; text-decoration: none; color: var(--text); padding: 9px 0 14px; margin: -9px 0 -8px; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--line-strong); transform-origin: left; transition: background-color .3s; }
.link .arr { width: 16px; height: 10px; transition: transform .24s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link:hover { color: var(--accent); } .link:hover::after { background: var(--accent); } .link:hover .arr { transform: translateX(4px); } }
.mail-link { font-size: var(--fs-body); color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-top: 15px; margin-top: -15px; }
.mail-link:hover { border-color: var(--accent); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h); transition: transform .4s var(--ease-out), background-color .3s var(--ease-out), border-color .3s; border-bottom: 1px solid transparent; }
/* scrolling down hides the header (transform only, no layout shift); transform:none at rest keeps the fixed mobile .nav anchored to the viewport */
.site-header.hide { transform: translateY(-100%); transition: transform .32s var(--ease-inout), background-color .3s var(--ease-out), border-color .3s; }
.filters { transition: top .4s var(--ease-out); }
.site-header.hide ~ main .filters { top: 0; }
.site-header.solid, .site-header.scrolled { background: rgba(11, 12, 14, .92); border-bottom-color: var(--line); }
/* blur lives on a pseudo layer: backdrop-filter on the header itself would make it the containing block of the fixed mobile .nav */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* .88 (not .8): the muted language chip keeps 4.5:1 even over the white paper plan / light photos under the blur */
@supports (backdrop-filter: blur(1px)) { .site-header.solid, .site-header.scrolled { background: rgba(11, 12, 14, .88); } .site-header.solid::before, .site-header.scrolled::before { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.site-header.over-film { border-bottom-color: transparent; }
.site-header.over-film::before { backdrop-filter: none; -webkit-backdrop-filter: none; }
/* transparent header (film, product/family hero at the top): the photo is the background. An ink scrim dark enough
   at the text band (with the hero's own top shade) for 4.5:1 on any photo, full-strength text, a soft shadow, and a dark
   plate behind the language chip */
.site-header:not(.solid):not(.scrolled) { background: linear-gradient(180deg, rgba(7, 8, 10, .72) 0%, rgba(7, 8, 10, .5) 60%, rgba(7, 8, 10, 0) 100%) border-box; }
@media (min-width: 901px) {
  .site-header:not(.solid):not(.scrolled) .nav a:not(.btn) { color: var(--text); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
  .site-header:not(.solid):not(.scrolled) .nav .lang-list a { text-shadow: none; }
  .site-header:not(.solid):not(.scrolled) .nav .lang { color: var(--text); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
  .site-header:not(.solid):not(.scrolled) .nav .lang { background: rgba(7, 8, 10, .6); border-color: rgba(239, 237, 232, .4); }
}
.site-header .bar { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; flex: none; align-items: center; min-height: 44px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand .wm { display: none; }
/* markup: .brand, .menu-btn, nav.nav > (.nav-links: 4 page links) + (.nav-tools: language + quote) + .nav-extra; DOM = tab order */
.nav { display: flex; align-items: center; gap: 20px; }
.nav-links, .nav-tools { display: flex; align-items: center; }
.nav-links { gap: 30px; }
.nav-tools { gap: 16px; }
.nav a { font-family: var(--mono); font-size: var(--fs-meta); letter-spacing: var(--track-caps); text-transform: uppercase; text-decoration: none; font-weight: 500; color: var(--body); transition: color .18s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
/* every header target is 44px tall; the current-page rule sits at the bottom of the target */
@media (min-width: 901px) { .nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; } .nav-links a { white-space: nowrap; } }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
/* body (not muted): over a bright photo seen through the scrolled header (home hero) the chip keeps ≥4.5:1. Weight 600
   (as in the phone menu): in the taller 44px chip the thin 500 strokes of 'TR' measured below 4.5:1 over the film */
.nav .lang { color: var(--body); padding: 0 10px; border: 1px solid var(--line); font-weight: 600; min-width: 44px; justify-content: center; }
.nav .lang:hover { color: var(--text); border-color: var(--line-strong); }
/* language menu: <details class="lang-menu"> > summary.lang (the chip) + ul.lang-list (every language in its own name).
   Works without JS; site.js adds Esc / outside click / Tab-out closing and focus return. The list is absolutely
   positioned, so opening it never moves the centred links. */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-family: var(--mono); font-size: var(--fs-meta); letter-spacing: var(--track-caps); text-transform: uppercase; user-select: none; -webkit-user-select: none; transition: color .18s, border-color .18s; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu[open] > summary { color: var(--text); border-color: var(--line-strong); }
.lang-menu .chev { width: 10px; height: 6px; flex: none; transition: transform .18s var(--ease-out); }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-list { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 2; min-width: 232px; margin: 0; padding: 8px 0; list-style: none; background: var(--surface-1); border: 1px solid var(--line-strong); }
.nav .lang-list a { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding: 0 16px; font-family: var(--display); font-stretch: 100%; font-size: var(--fs-body); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text); border: 0; text-shadow: none; }
.nav .lang-list a:hover { background: var(--surface-2); }
.nav .lang-list a:focus-visible { outline-offset: -2px; }
.lang-list .lc { font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-caps); color: var(--muted); }
.lang-list a[aria-current] .lc { color: var(--accent); font-weight: 600; }
.nav .btn { padding: 0 18px; min-height: 44px; box-shadow: none; white-space: nowrap; }
/* ≥901: the links sit in the middle of the space between the logo and the tools (bar gap = nav gap = 20px) */
@media (min-width: 901px) {
  .nav { flex: 1 1 auto; }
  .nav-links { margin-inline: auto; }
}
/* 901–1099: tighter gaps keep 'Teklif isteyin' / 'Request a quote' on one line down to 901 */
@media (min-width: 901px) and (max-width: 1099px) {
  .nav-links { gap: 20px; }
  .nav .btn { padding: 0 14px; }
  /* French and German labels are longer ('L’ENTREPRISE', 'DEMANDER UN DEVIS', 'ANGEBOT ANFORDERN'): tighter gaps keep
     the links on one line and the logo at full width down to 901 */
  :is(:lang(fr), :lang(de)) .site-header .bar, :is(:lang(fr), :lang(de)) .nav, :is(:lang(fr), :lang(de)) .nav-links, :is(:lang(fr), :lang(de)) .nav-tools { gap: 12px; }
  :is(:lang(fr), :lang(de)) .nav .btn { padding: 0 12px; }
}
/* 1100–1279, French: the tools column ('DEMANDER UN DEVIS') is wider than its half of the free space, which pushed the
   centred links 7 px off the page centre; a tighter link gap gives the side columns room again */
@media (min-width: 1100px) and (max-width: 1279px) { :lang(fr) .nav-links { gap: 24px; } }
/* ≥1100: three columns, the side columns share the free space equally, so the links sit on the page centre line
   (no measured widths: the columns follow the real logo and language + quote widths in either language). The nav
   landmark stays a real box (subgrid, not display: contents); without subgrid the ≥901 layout above applies. */
@supports (grid-template-columns: subgrid) {
  @media (min-width: 1100px) {
    .site-header .bar { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); }
    .site-header .nav { grid-column: 2 / 4; display: grid; grid-template-columns: subgrid; }
    .nav-links { margin-inline: 0; }
    .nav-tools { justify-self: end; }
  }
}
/* solid button text stays ink on the accent fill (≥4.5:1), also on hover where .nav a:hover would win */
.nav .btn.solid, .nav .btn.solid:hover { color: var(--ink); }
.menu-btn { display: none; min-width: 44px; min-height: 44px; background: none; border: 1px solid var(--line-strong); color: var(--text); padding: 0 14px; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--track-caps); text-transform: uppercase; cursor: pointer; }
.nav-extra { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .brand img { height: 38px; }
  /* phone menu: the two wrappers dissolve, links / language / quote stay one column as before */
  .nav-links, .nav-tools { display: contents; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); padding: 16px var(--gutter) 32px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .24s var(--ease-out), transform .24s var(--ease-out), visibility 0s .24s; }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .36s var(--ease-out), transform .36s var(--ease-out); }
  .nav a { font-family: var(--display); font-stretch: 72%; font-weight: 760; font-size: 34px; letter-spacing: 0; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .nav .lang-menu { align-self: stretch; margin-top: 24px; }
  .nav .lang { font-family: var(--mono); font-size: var(--fs-meta); font-weight: 600; letter-spacing: var(--track-caps); border: 1px solid var(--line-strong); padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; }
  /* phone: the list opens in the menu flow (one column, 44px rows) instead of floating */
  .lang-list { position: static; min-width: 0; margin-top: 8px; padding: 0; background: none; border: 0; border-top: 1px solid var(--line); }
  .nav .lang-list a { padding: 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 18px; font-family: var(--mono); font-size: var(--fs-meta); font-weight: 600; letter-spacing: var(--track-caps); min-height: 56px; border: 0; }
  .nav-extra { display: grid; gap: 0; margin-top: 24px; color: var(--body); font-size: var(--fs-small); }
  .nav-extra a { font-family: var(--display); font-stretch: 100%; font-weight: 400; font-size: var(--fs-body); border: 0; padding: 0; min-height: 44px; display: flex; align-items: center; text-transform: none; }
}

/* ---------- home: film / story ---------- */
.story { position: relative; height: calc(var(--n, 4) * 72vh + 28vh); height: calc(var(--n, 4) * 72svh + 28svh); background: var(--ink-0); }
.story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story-media { position: absolute; inset: 0; }
.story-frame { position: absolute; inset: 0; }
.story-frame + .story-frame { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
.story-frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 55%); transform: scale(1.06); }
.story canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.story.film-ready canvas { opacity: 1; }
.story.film-ready .story-frame { visibility: hidden; }
.film-loading { position: absolute; z-index: 3; inset-inline-end: var(--gutter); top: calc(var(--header-h) + 16px); opacity: 0; transition: opacity .3s; }
.story.film-wait .film-loading { opacity: 1; }
.story-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(var(--side), rgba(7,8,10,.82) 0%, rgba(7,8,10,.5) 38%, rgba(7,8,10,0) 64%), linear-gradient(180deg, rgba(7,8,10,.55) 0%, rgba(7,8,10,0) 22%, rgba(7,8,10,0) 50%, rgba(7,8,10,.85) 100%); }
.story-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(72px, 12svh, 128px); }
.story-copy .wrap { position: relative; }
.story-line { display: grid; gap: var(--sp-3); max-width: 980px; }
/* the opening title stays inside the left scrim (3 lines in TR and EN), never over the white truck */
@media (min-width: 901px) { .story-line .display { max-width: 16ch; } }
.story-line + .story-line { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; opacity: 0; visibility: hidden; }
.story-line .lead { color: #DCDDE0; }
/* full text colour and 600 (not muted 500): the 12px label keeps ≥4.5:1 over the film */
.story-line .label { color: var(--text); font-weight: 600; }
/* text over the film (wide or landscape screens): a feathered ink plate hugs the copy block (label, title, lead; the block
   shrinks to its content), so a white vehicle under any line keeps ≥4.5:1 and the film stays open elsewhere. The plate is
   background + box-shadow, so the line is not positioned (the project card is placed against .wrap) */
@media (min-width: 901px), (orientation: landscape) {
  .story-line { width: fit-content; background: rgba(7, 8, 10, .36); box-shadow: 0 0 72px 56px rgba(7, 8, 10, .36); }
}
/* copy taller than the pinned screen (WCAG 1.4.12 text spacing, zoom, short landscape screens): site.js sets .tight; the
   opener stops pinning and grows with its copy (both chapters stacked, the project card in the flow), nothing sits under
   the header or off screen */
.story.fit-measure .story-line { transform: none !important; }
.story.tight { height: auto; }
.story.tight .story-pin { position: relative; height: auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 24px) 0 96px; }
.story.tight .story-copy { position: relative; bottom: auto; }
.story.tight .story-line { opacity: 1 !important; visibility: visible !important; transform: none !important; }
.story.tight .story-line + .story-line { position: static; margin-top: 48px; }
.story-hud { position: absolute; z-index: 2; left: 0; right: 0; bottom: 28px; }
.story-hud .wrap { display: flex; align-items: center; gap: var(--sp-2); color: var(--on-photo); }
.story-hud .track { flex: 1; max-width: 360px; height: 1px; margin-inline-start: auto; background: rgba(255,255,255,.22); position: relative; overflow: hidden; }
.story-hud .fill { position: absolute; inset: -0.5px 0 auto 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.story-hud .count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; transition: opacity .3s; }
.scroll-cue i { display: block; width: 1px; height: 26px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 1.8s var(--ease-out) 3; }
.story.moved .scroll-cue { opacity: 0; }
@keyframes cue { to { top: 110%; } }
.skip-film { position: absolute; z-index: 3; top: calc(var(--header-h) + 12px); inset-inline-start: var(--gutter); }
.skip-film:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* film (AVIF frames, static/assets/film.js): frame 1 is the film poster = film frame 0, kept unzoomed so the canvas takes
   over without a jump. */
.story[data-film] .story-frame:first-child img { transform: none !important; }
@media (orientation: portrait) and (max-width: 900px) {
  .story-media { bottom: 46svh; }
  .story-scrim { background: linear-gradient(180deg, rgba(7,8,10,.5) 0%, rgba(7,8,10,0) 18%, rgba(7,8,10,0) 40%, rgba(7,8,10,1) 54%); }
  .story-copy { bottom: 72px; }
  .story-line .display { font-size: var(--fs-xl); }
  .story-line { gap: 14px; }
  .story-line .lead { font-size: var(--fs-lead); }
}

/* ---------- home (design B): hero, project story, families, interiors, closing ---------- */
.home-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 48px) 0 var(--space-hero-b); overflow: hidden; background: var(--ink-0); }
.home-hero > img, .home-hero picture img { position: absolute; left: 0; right: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; object-position: var(--pos, 50% 58%); }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--side), rgba(7,8,10,.82) 0%, rgba(7,8,10,.45) 40%, rgba(7,8,10,0) 66%), linear-gradient(180deg, rgba(7,8,10,.55) 0%, rgba(7,8,10,0) 22%, rgba(7,8,10,0) 48%, rgba(7,8,10,.9) 100%); }
.home-hero-in { position: relative; z-index: 2; width: 100%; }
.home-hero-in .wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px calc(var(--col-gap) * 2); align-items: end; }
.home-hero-copy { display: grid; gap: 24px; justify-items: start; }
.home-hero-copy .lead { color: #DCDDE0; }
@media (max-width: 900px) { .home-hero-in .wrap { grid-template-columns: minmax(0, 1fr); } .home-hero-copy .row { width: 100%; } .home-hero-copy .btn { width: 100%; } }
/* up to 900px (single column, menu button): photo on top, copy on ink below; no text over the bright photo */
@media (max-width: 900px) {
  .home-hero { display: block; min-height: 0; padding: var(--header-h) 0 8px; background: var(--ink); }
  .home-hero > img, .home-hero picture img { position: static; height: auto; aspect-ratio: 3 / 2; transform: none !important; }
  .home-hero::after { bottom: auto; height: calc(var(--header-h) + 18vw); background: linear-gradient(180deg, rgba(7,8,10,.6) 0%, rgba(7,8,10,0) 100%); }
  .home-hero-in { padding-top: 28px; }
  .home-hero-copy { gap: 16px; }
}
@media (max-width: 767px) { .home-hero > img, .home-hero picture img { aspect-ratio: 4 / 3.6; } }
/* 5/7 on the grid: the second picture starts on line 6 */
.journey { display: grid; grid-template-columns: minmax(0, calc(var(--c) * 5 + var(--col-gap) * 4)) minmax(0, 1fr); gap: var(--col-gap); align-items: end; margin-top: var(--space-block); }
.journey figure { margin: 0; }
.journey .ph { overflow: hidden; background: var(--surface-1); }
.journey .j1 .ph { aspect-ratio: 4 / 4.4; }
.journey .j2 .ph { aspect-ratio: 4 / 3.2; }
.journey img { width: 100%; height: 100%; object-fit: cover; }
.journey .j1 img { object-position: 35% 50%; }
.journey figcaption { margin-top: 10px; display: flex; gap: 10px; align-items: baseline; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.proj { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
@media (max-width: 520px) { .journey { grid-template-columns: minmax(0, 1fr); } .journey .j1 .ph { aspect-ratio: 4 / 3; } }
.fam-b { display: grid; gap: 40px calc(var(--col-gap) * 2); align-items: start; }
.feat .ph { display: block; position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--surface-1); }
.feat .ph img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 60%); transition: transform .7s var(--ease-out); }
.feat-copy { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.feat-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
/* inline padding (no layout shift) keeps the family title link a ≥44px target at the smaller --fs-s */
.feat-meta h3 a { text-decoration: none; padding: 10px 0; }
.feat-meta h3 a:hover { color: var(--accent); }
.list-units { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.list-units a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--body); font-size: var(--fs-body); transition: color .18s; }
.list-units a span:first-child { transition: transform .3s var(--ease-out); }
.list-units .pf { font-size: var(--fs-small); color: var(--muted); }
.list-units a:hover { color: var(--text); }
.list-units a:hover span:first-child { transform: translateX(8px); }
.fam-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fam-index a { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: var(--sp-2); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: start; }
.fam-index .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-1); }
.fam-index img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 60%); transition: transform .7s var(--ease-out); }
.fam-index .t { display: grid; gap: 6px; min-width: 0; }
.fam-index .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.fam-index .heading { transition: color .18s; }
.fam-index .small { line-height: 1.5; max-width: 30em; }
@media (hover: hover) and (pointer: fine) { .fam-index a:hover .heading { color: var(--accent); } .fam-index a:hover img, .feat .ph:hover img { transform: scale(1.04); } }
@media (max-width: 520px) { .fam-index a { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } .fam-index .small { display: none; } }
/* 4 equal columns (lines 1, 4, 7, 10 like the process and features rows), the first picture spans 2 */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); }
.mosaic a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic .ph { display: block; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--surface-1); }
.mosaic a:first-child .ph { flex: 1; aspect-ratio: auto; min-height: 360px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.mosaic .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--body); font-size: var(--fs-small); line-height: 1.35; transition: color .18s; }
/* the name fills the row beside the code; when its longest word does not fit there, the code moves under the name
   instead of overlapping the next column (long words break at the build's U+00AD; break-word only as the last resort) */
.mosaic .cap { flex-wrap: wrap; row-gap: 2px; }
.mosaic .cap > span:first-child { flex: 1 1 0%; min-width: min-content; max-width: 100%; overflow-wrap: break-word; }
.mosaic .cap .code { flex: none; }
@media (hover: hover) and (pointer: fine) { .mosaic a:hover img { transform: scale(1.04); } .mosaic a:hover .cap { color: var(--text); } }
@media (max-width: 900px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mosaic a:first-child { grid-column: 1 / -1; grid-row: auto; } .mosaic a:first-child .ph { flex: none; min-height: 0; aspect-ratio: 4 / 3; } }
.finale { display: grid; gap: 48px calc(var(--col-gap) * 2); align-items: start; }
.steps-b ol { list-style: none; margin: var(--space-head) 0 0; padding: 0; border-top: 1px solid var(--line); }
.steps-b li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 16px; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.steps-b li .code { padding-top: 4px; }
.steps-b h3 { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: var(--fs-h); line-height: 1.15; }
.steps-b p { color: var(--body); font-size: var(--fs-body); margin-top: 6px; max-width: 34em; }
.steps-b li.first h3 { font-stretch: 72%; font-weight: 760; text-transform: uppercase; font-size: var(--fs-s); line-height: 1; }
:lang(tr) .steps-b li.first h3 { line-height: 1.05; }
.steps-b li.first .code { padding-top: 12px; }
.finale .sheet { margin-top: 12px; }
.sheet-in { padding: var(--sp-4) var(--sp-3); display: grid; gap: var(--sp-3); }
.sheet-in p { color: var(--paper-muted); font-size: var(--fs-body); line-height: 1.5; }
.sheet .mail-link { color: var(--paper-ink); border-color: #A9A6A0; justify-self: start; overflow-wrap: anywhere; }
.sheet .mail-link:hover { border-color: var(--paper-ink); }
@media (max-width: 767px) { .steps-b li { grid-template-columns: 44px minmax(0, 1fr); } }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); }
.step { display: grid; gap: 12px; align-content: start; padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.step:first-child { border-top: 2px solid; border-image: var(--grad) 1; }
.step h3 { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: var(--fs-h); line-height: 1.15; }
.step p { color: var(--body); font-size: var(--fs-body); }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { display: grid; gap: var(--sp-4); justify-items: start; }
.cta .display { max-width: 22ch; }
@media (max-width: 767px) { .cta .display { max-width: none; } }
.cta .row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- footer: brand + direct contact / menu / product families / addresses, then wordmark and bottom row ---------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--space-foot) 0 0; overflow: hidden; }
/* on the 12-column grid: brand 4, menu 2, families 3, addresses 3 (lines 1, 5, 7, 10) */
.foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--col-gap); }
.foot > :nth-child(1) { grid-column: span 4; }
.foot > :nth-child(2) { grid-column: span 2; }
.foot > :nth-child(3), .foot > :nth-child(4) { grid-column: span 3; }
.foot h2 { margin: 0 0 var(--sp-2); font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; color: var(--body); font-size: var(--fs-small); padding: 3px 0; display: inline-block; }
.foot a:hover { color: var(--text); }
.ft-brand .brand { display: inline-block; padding: 0; }
.ft-brand .brand img { height: 44px; width: auto; }
.ft-brand p { margin: var(--sp-3) 0; max-width: 34ch; }
.ft-direct a { color: var(--text); font-size: var(--fs-body); }
.ft-direct a:hover { color: var(--accent); }
.ft-loc + .ft-loc { margin-top: var(--sp-3); }
.ft-loc h3 { margin: 0 0 4px; }
.foot address { font-style: normal; color: var(--body); font-size: var(--fs-small); line-height: 1.6; }
.wordmark { font-family: var(--display); font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 17.5vw, 290px); line-height: .78; letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 1px var(--line-strong); white-space: nowrap; user-select: none; margin: var(--space-block) 0 0; text-align: center; }
.legal { position: relative; padding: var(--sp-3) 0 var(--sp-4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; color: var(--muted); font-size: var(--fs-meta); }
.legal p { margin: 0; }
.ft-copy { margin-inline-end: auto !important; color: var(--body); }
.ft-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.ft-legal a, .ft-legal button { display: inline-block; padding: 6px 11px; margin: 0 -11px; font: inherit; font-size: var(--fs-meta); color: var(--body); text-decoration: none; background: none; border: 0; cursor: pointer; }
.ft-legal a:hover, .ft-legal button:hover, .ft-top:hover { color: var(--text); }
html:not(.js) .cc-li { display: none; }
.ft-top { font-family: var(--mono); font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--text); text-decoration: none; padding: 6px 0; }
.ft-note { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 24px; }
@media (max-width: 1099px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot > :nth-child(n) { grid-column: auto; } .foot > .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot { gap: 32px var(--col-gap); } .foot > .ft-locs { grid-column: 1 / -1; } }
/* phones: every footer link is a full-width row at least 44px tall (WCAG 2.5.5 target size) */
@media (max-width: 767px) {
  .foot ul { gap: 0; } .foot li > a { display: flex; align-items: center; min-height: 44px; padding: 0; overflow-wrap: anywhere; }
  .ft-copy { flex-basis: 100%; }
  .ft-legal { gap: 0 22px; } .ft-legal a, .ft-legal button, .ft-top { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
  /* short items ('Künye') reach 44px wide: 11px each side into the 22px gap (neighbours touch, never overlap) */
  .ft-legal a, .ft-legal button { padding: 0 11px; }
}

/* ---------- cookie preferences dialog ---------- */
dialog.cc { width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 0; margin: auto; border: 1px solid var(--line-strong); background: var(--surface-1); color: var(--text); overflow: auto; overscroll-behavior: contain; }
dialog.cc::backdrop { background: rgba(0, 0, 0, .72); }
.cc-in { padding: clamp(22px, 4vw, 32px); display: grid; gap: 16px; }
.cc-in > * { margin: 0; }
.cc h2:focus { outline: none; }
.cc-cats { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cc-cats li { padding: 14px 0; display: grid; gap: 6px; }
.cc-cat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.cc-cat input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.cc-cat .t { font-weight: 600; }
.cc-cat .label { margin-inline-start: auto; color: var(--accent); }
.cc-in a { color: var(--text); text-decoration-color: var(--line-strong); text-underline-offset: 3px; display: inline-block; padding: 6px 0; }
.cc-in a:hover { color: var(--accent); }
.cc-act { display: flex; flex-wrap: wrap; gap: 12px; }
.cc-act .btn { min-height: 48px; flex: 1 1 auto; }

/* ---------- page head ---------- */
.page-head { padding-top: calc(var(--header-h) + var(--space-page-top)); padding-bottom: var(--space-page-bottom); border-bottom: 1px solid var(--line); }
.page-head .split { align-items: end; }
.page-head .display { margin-top: var(--sp-2); }

/* ---------- units index ---------- */
.filters { position: sticky; top: var(--header-h); z-index: 20; background: var(--ink); border-bottom: 1px solid var(--line); }
.filters .wrap { display: flex; gap: 8px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(var(--side), #000 85%, transparent); mask-image: linear-gradient(var(--side), #000 85%, transparent); }
.filters .wrap::-webkit-scrollbar { display: none; }
/* ≥901 (mouse): every chip visible without sideways scrolling; a second row when the labels need it. The sideways scroll
   with the fade stays on phones and tablets */
@media (min-width: 901px) { .filters .wrap { flex-wrap: wrap; overflow-x: visible; -webkit-mask-image: none; mask-image: none; } }
.chip { flex: none; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--track-caps); text-transform: uppercase; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); background: transparent; color: var(--body); cursor: pointer; white-space: nowrap; transition: color .18s, border-color .18s, background-color .18s; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--surface-2); color: var(--text); border-color: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.chip .c { color: var(--muted); margin-inline-start: 6px; }
.group { padding-top: 64px; }
.group[hidden] { display: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px var(--col-gap); }
.card { text-decoration: none; display: grid; gap: 12px; align-content: start; }
.card .ph { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-1); }
.card .ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.card img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 55%); transition: transform .7s var(--ease-out); }
.card .meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.card .pill { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--body); border: 1px solid var(--line-strong); padding: 3px 8px; max-width: 100%; }
/* one line while it fits; a long platform label (DE 'BODENAUFSTELLUNG, LKW-AUFBAU ODER ANHÄNGER' at 1120) wraps inside the card */
.card h3 { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: var(--fs-h); line-height: 1.15; min-height: 2.3em; transition: color .18s; }
@media (hover: hover) and (pointer: fine) { .card:hover img { transform: scale(1.04); } .card:hover .ph::after { transform: scaleX(1); } .card:hover h3 { color: var(--accent); } }
.card-cta { display: grid; align-content: space-between; gap: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--line-strong); text-decoration: none; min-height: 100%; }
.card-cta:hover { border-color: var(--accent); }

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line-strong); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th, .cmp td { text-align: start; padding-block: 16px; padding-inline: 0 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp th { font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); }
.cmp td a { color: var(--text); text-decoration: none; font-weight: 600; padding: 14px 0; }
.cmp td a:hover { color: var(--accent); }
.cmp td { color: var(--body); font-size: var(--fs-body); }
/* phones: comparison and legal tables become one card per row, the column name above each value (data-label from the
   build); nothing scrolls sideways or is cut. The header row stays for screen readers; ARIA roles keep the semantics. */
@media (max-width: 767px) {
  .table-wrap { overflow: visible; }
  table.cmp { display: block; min-width: 0; }
  .cmp thead, .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cmp tbody, .cmp tr, .cmp td, .prose table tbody, .prose table tr, .prose table td { display: block; }
  .cmp tr, .prose table tr { padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
  .cmp td, .prose table td { padding: 0; border: 0; overflow-wrap: anywhere; }
  .cmp td + td, .prose table td + td { margin-top: 10px; }
  .cmp td + td::before, .prose table td + td::before { content: attr(data-label); content: attr(data-label) / ""; display: block; margin-bottom: 2px; font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); }
  .prose table td:first-child { color: var(--text); font-weight: 600; }
  .prose table { border-top: 1px solid var(--line); }
}

/* ---------- product page ---------- */
.p-hero { position: relative; height: calc(100vh - 64px); height: calc(100svh - 64px); min-height: 560px; max-height: 920px; overflow: hidden; background: var(--ink-0); }
.p-hero > img, .p-hero picture img { position: absolute; left: 0; right: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; object-position: var(--pos, 50% 55%); }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--side), rgba(7,8,10,.8) 0%, rgba(7,8,10,.45) 34%, rgba(7,8,10,0) 60%), linear-gradient(180deg, rgba(7,8,10,.55) 0%, rgba(7,8,10,0) 22%, rgba(7,8,10,0) 55%, var(--ink) 100%); }
.p-hero .label { color: var(--on-photo); }
.p-hero .over { position: absolute; left: 0; right: 0; bottom: var(--space-hero-b); z-index: 2; }
/* widths in ch shrink with the type: wide enough for 2–3 lines of the smaller scale */
.p-hero .display { max-width: 16ch; margin-top: 16px; }
.p-hero .display[data-long] { font-size: var(--fs-l); max-width: 22ch; }
/* text over the photo: one feathered ink plate behind the label and the title (not the whole photo), so white
   vehicle bodies under the text keep ≥4.5:1 for the label and ≥3:1 for the title; the photo stays open elsewhere.
   The text block shrinks to its content (same left edge as .wrap) so the plate follows the title's width. */
@media (min-width: 768px) {
  .p-hero .over .wrap { position: relative; width: fit-content; margin-inline-start: max(0px, calc((100% - var(--max)) / 2)); margin-inline-end: 0; }
  .p-hero .over .wrap::before { content: ""; position: absolute; z-index: -1; inset-block: -48px -40px; inset-inline: -50vw -112px; pointer-events: none; background: rgba(7, 8, 10, .4);
    -webkit-mask-image: linear-gradient(var(--side), #000 calc(100% - 112px), transparent), linear-gradient(180deg, transparent, #000 48px, #000 calc(100% - 40px), transparent);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(var(--side), #000 calc(100% - 112px), transparent), linear-gradient(180deg, transparent, #000 48px, #000 calc(100% - 40px), transparent); mask-composite: intersect; }
}
@media (max-width: 767px) {
  .p-hero { height: auto; min-height: 0; max-height: none; padding-top: var(--header-h); background: var(--ink); }
  .p-hero > img, .p-hero picture img { position: static; height: auto; aspect-ratio: 3 / 2; top: 0; }
  .p-hero::after { display: none; }
  .p-hero .over { position: static; padding-top: 24px; }
  .p-hero .display, .p-hero .display[data-long] { font-size: var(--fs-l); max-width: none; }
}
.sumbar { border-bottom: 1px solid var(--line); }
.sumbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
.sumbar .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.sumbar .crumbs a { color: var(--body); text-decoration: none; }
/* 44×44 target without moving anything: the link box grows 6px left/right (into the gap and the space after the '/') and to
   44px tall (16px up into the bar padding, 11.2px down, less than the 12px row gap); negative margins keep the 16.8px line
   and the 4.8px top padding keeps the text on it. Only the current page (not a link) wraps to a second row, down to 320px
   (qa/erisim.mjs dokunma checks that no two targets overlap) */
.sumbar .crumbs li { display: flex; align-items: center; }
.sumbar .crumbs a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; padding: 4.8px 6px 0; margin: -16px -6px calc(1.4em - 28px); }
.sumbar .crumbs a:hover { color: var(--accent); }
.sumbar .crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--line-strong); }
.sumbar .push { margin-inline-start: auto; }
@media (max-width: 767px) { .sumbar .push { display: none; } }
.kf { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); counter-reset: kf; }
.kf li { counter-increment: kf; display: grid; grid-template-columns: 56px minmax(0, 1fr); overflow-wrap: break-word; padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-lead); }
.kf li::before { content: counter(kf, decimal-leading-zero); font-family: var(--mono); font-size: var(--fs-meta); font-weight: 600; color: var(--accent); padding-top: 5px; letter-spacing: .06em; }
.sheet { background: var(--paper); color: var(--paper-ink); align-self: start; position: sticky; top: calc(var(--header-h) + 32px); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.sheet .hd { padding: var(--sp-3); border-bottom: 1px solid #CFCCC5; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sheet .hd .label, .sheet .label { color: var(--paper-muted); }
.sheet .hd .code { color: #B4472A; }
.sheet dl { margin: 0; }
.sheet .r { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 14px 24px; border-bottom: 1px solid #DAD7D0; }
:lang(de) .sheet .r { grid-template-columns: 120px minmax(0, 1fr); }   /* 'RAUMAUFTEILUNG' (14 letters) needs 114 px; dd hyphenates */
.sheet dt { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--paper-muted); padding-top: 3px; }
.sheet dd { margin: 0; font-size: var(--fs-body); overflow-wrap: break-word; }
.sheet .act { padding: var(--sp-3); display: grid; gap: 12px; }
.sheet .btn { width: 100%; }
.sheet .btn.ghost { color: var(--paper-ink); border-color: var(--paper-ink); }
.sheet .btn.ghost:hover { background: #DCD9D2; border-color: var(--paper-ink); }
.sheet .note { color: var(--paper-muted); font-size: var(--fs-small); line-height: 1.5; }
@media (max-width: 1099px) { .sheet { position: static; } }
.defined { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); }
.defined > div { border-top: 1px solid var(--line); padding-top: var(--sp-2); display: grid; gap: 10px; align-content: start; }
@media (max-width: 900px) { .defined { grid-template-columns: 1fr 1fr; } }
/* same 8th line as the sheet column above (7 columns + 6 gaps, then one --col-gap) */
.gallery { display: grid; grid-template-columns: minmax(0, calc(var(--c) * 7 + var(--col-gap) * 6)) minmax(0, 1fr); gap: var(--col-gap); height: clamp(380px, 44vw, 660px); }
.gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--surface-1); }
.gallery button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gallery figure:hover img { transform: scale(1.03); } }
.figcap { position: absolute; inset-inline-start: 0; bottom: 0; padding-block: 9px; padding-inline: 14px 20px; background: rgba(7, 8, 10, .82); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%); pointer-events: none; }
@media (max-width: 767px) { .gallery { grid-template-columns: 1fr; height: auto; } .gallery figure { aspect-ratio: 4 / 3.3; } .gallery figure + figure { aspect-ratio: 3 / 4; } }
.plan { margin: var(--col-gap) 0 0; position: relative; background: var(--paper); padding: clamp(32px, 5vw, 72px) clamp(16px, 4vw, 56px); }
@supports (width: round(down, 10px, 8px)) { .plan { padding: round(down, clamp(32px, 5vw, 72px), 8px) round(down, clamp(16px, 4vw, 56px), 8px); } }
.plan button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.plan img { width: 100%; max-width: 1180px; margin: 0 auto; mix-blend-mode: multiply; filter: contrast(1.04); }
.plan .figcap { inset-inline-start: auto; inset-inline-end: 0; top: 0; bottom: auto; background: var(--ink); clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%); padding-inline: 20px 14px; }
.pn { margin-top: var(--space-block); display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pn a { padding: var(--sp-4) 0; text-decoration: none; display: grid; gap: 10px; }
.pn a + a { text-align: end; border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.pn a:first-child { padding-inline-end: 24px; }
.pn strong { font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: var(--fs-h); text-transform: uppercase; line-height: 1.05; transition: color .18s; }
.pn a:hover strong { color: var(--accent); }
@media (max-width: 480px) {
  .pn { grid-template-columns: 1fr; }
  .pn a:first-child { padding-inline-end: 0; }
  .pn a + a { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: 0; }
}
.mbar { display: none; }
@media (max-width: 767px) {
  .mbar { display: flex; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; align-items: center; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(20, 22, 26, .96); border-top: 1px solid var(--line); transform: translateY(110%); visibility: hidden; transition: transform .3s var(--ease-out), visibility 0s .3s; }
  /* hidden below the screen = not focusable/read (visibility); shown = focusable again, visible at once */
  .mbar.show { transform: none; visibility: visible; transition: transform .3s var(--ease-out); }
  .mbar .t { flex: 1; min-width: 0; display: grid; }
  .mbar .t span:last-child { font-size: var(--fs-small); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.has-mbar .site-footer { padding-bottom: 80px; }
  /* keyboard focus never lands behind the fixed quote bar (≈66px) */
  html:has(body.has-mbar) { scroll-padding-bottom: 88px; }
}

/* lightbox */
dialog.lb { padding: 0; border: 0; background: rgba(7, 8, 10, .96); width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; color: var(--text); }
dialog.lb::backdrop { background: rgba(0, 0, 0, .8); }
dialog.lb .in { position: absolute; inset: 64px 24px 72px; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
dialog.lb img { max-width: 100%; max-height: 100%; object-fit: contain; }
dialog.lb img.paper { background: var(--paper); padding: 24px; }
dialog.lb .bar { position: absolute; left: 24px; right: 24px; top: 16px; display: flex; justify-content: space-between; align-items: center; }
dialog.lb .nav2 { position: absolute; left: 24px; right: 24px; bottom: 16px; display: flex; justify-content: space-between; }
dialog.lb button { min-width: 44px; min-height: 44px; background: none; border: 1px solid var(--line-strong); color: var(--text); font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--track-caps); text-transform: uppercase; padding: 0 14px; cursor: pointer; }

/* ---------- company ---------- */
.facts { display: grid; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 160px 1fr; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.facts p { color: var(--body); }
@media (max-width: 767px) { .facts > div { grid-template-columns: 1fr; gap: 6px; } }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.trio .ph { aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--surface-1); }
.trio img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .trio { grid-template-columns: 1fr; } }
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); }
.place { border-top: 1px solid var(--line-strong); padding-top: var(--sp-3); display: grid; gap: 12px; align-content: start; }
.place address { font-style: normal; color: var(--text); font-size: var(--fs-lead); line-height: 1.5; }
@media (max-width: 767px) { .places { grid-template-columns: 1fr; } }
.map { margin: var(--sp-1) 0 0; display: grid; gap: 8px; }
.map-ph { display: block; border: 1px solid var(--line); overflow: hidden; }
.map img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.map figcaption { font-size: var(--fs-label); color: var(--muted); }
/* 24 px target (WCAG 2.5.8): vertical padding on the inline link grows its hit box without moving the line (stays an
   inline text link); 3 px below keeps it clear of the 'Open in maps' links */
.map figcaption a { color: inherit; padding: 7px 0 3px; }
.map-links { display: flex; flex-wrap: wrap; gap: 0 var(--sp-3); }

/* ---------- contact / form ---------- */
/* four equal steps; a step whose longest word is wider than its share (FR 'COORDONNÉES', DE 'EINZELHEITEN' at 320) takes
   the room it needs from the others instead of overlapping them or leaving the screen */
.steps-ind { display: grid; grid-template-columns: repeat(4, minmax(min-content, 1fr)); gap: 8px; margin: var(--sp-2) 0 var(--sp-4); list-style: none; padding: 0; }
.steps-ind li { display: grid; gap: 8px; }
.steps-ind li::before { content: ""; height: 2px; background: var(--line); }
.steps-ind li[aria-current="step"]::before, .steps-ind li.done::before { background: var(--grad); }
.steps-ind li[aria-current="step"] .label { color: var(--text); }
fieldset.step-f { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.step-f[hidden] { display: none; }
fieldset.step-f legend { padding: 0; margin-bottom: 24px; font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: var(--fs-h); line-height: 1.15; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.field { display: grid; gap: 8px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field > label, .field .flabel { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); }
.req { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; background: var(--surface-1); border: 1px solid var(--line-strong); color: var(--text); font: inherit; font-size: var(--fs-body); padding: 14px 16px; border-radius: 0; transition: border-color .18s, box-shadow .18s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #7D828B; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); outline: 2px solid transparent; }
.field textarea { min-height: 170px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: var(--fs-small); }
.field .err:empty { display: none; }
.hint { color: var(--muted); font-size: var(--fs-small); }
.form-hint { margin-bottom: var(--sp-3); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: var(--fs-meta); letter-spacing: .06em; color: var(--body); transition: all .18s; }
.choices input:checked + span { background: var(--surface-2); color: var(--text); border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--body); font-size: var(--fs-small); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #EF7050; }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.form-actions .push { margin-inline-start: auto; }
.err-summary { border-inline-start: 2px solid var(--danger); padding: 12px 16px; background: rgba(255, 138, 122, .06); color: var(--text); margin-bottom: 24px; }
.err-summary[hidden] { display: none; }
.kvkk { margin-top: 24px; color: var(--muted); font-size: var(--fs-small); line-height: 1.55; }
.kvkk a { color: var(--body); }
.result { border: 1px solid var(--line-strong); background: var(--surface-1); padding: var(--sp-3); display: grid; gap: var(--sp-2); margin-top: var(--sp-4); }
.result[hidden] { display: none; }
.result pre { margin: 0; white-space: pre-wrap; font-family: var(--mono); font-size: var(--fs-meta); line-height: 1.6; color: var(--body); background: var(--ink); border: 1px solid var(--line); padding: 16px; max-height: 280px; overflow: auto; }
.result .row { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-side { display: grid; border-top: 1px solid var(--line); align-content: start; }
.contact-side > div { padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.contact-side .big { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: var(--fs-h); text-decoration: none; color: var(--text); overflow-wrap: anywhere; padding: 7px 0; margin: -7px 0; }
.contact-side .big:hover { color: var(--accent); }
.contact-side address { font-style: normal; font-size: var(--fs-body); color: var(--body); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } .steps-ind .label { font-size: var(--fs-label); letter-spacing: .04em; } }

/* ---------- prose (legal) ---------- */
.prose { max-width: 72ch; }
/* reading lines ≤ 75 characters (was 93) */
.prose > p, .prose > ul, .prose > ol { max-width: 32em; }
.prose h2 { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: var(--fs-h); line-height: 1.15; margin: 40px 0 12px; }
.prose h3 { font-size: var(--fs-body); margin: 28px 0 10px; }
.prose p, .prose li { color: var(--body); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-inline-start: 22px; margin: var(--sp-2) 0; }
.prose li + li { margin-top: 6px; }
.prose em { color: var(--muted); }
mark.todo { background: var(--accent-tint); color: var(--text); padding: 0 4px; }
.prose a { color: var(--accent); }
/* in-text links: vertical padding on the inline box makes the target ≥24px tall (WCAG 2.5.8) without moving the lines */
.prose a { padding: 3px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--sp-2) 0; font-size: var(--fs-small); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: start; padding-block: 10px; padding-inline: 0 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); font-weight: 500; }
.draft-note { border-inline-start: 2px solid var(--accent); padding: 12px 16px; background: var(--surface-1); color: var(--body); font-size: var(--fs-small); margin-bottom: 40px; max-width: 72ch; }

/* ---------- motion (reveal from a visible resting state) ---------- */
.js .pre { opacity: 0; transform: translateY(32px); }
.js .rv { transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-expo); transition-delay: var(--d, 0ms); }
.js .pre-img::before { transform: scaleY(1); }
.js [data-reveal-img] { position: relative; }
.js [data-reveal-img]::before { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--ink); transform: scaleY(0); transform-origin: top; pointer-events: none; }
.js .rv-img::before { transition: transform 1s var(--ease-expo); }
@media (max-width: 767px) { .js .pre { transform: translateY(20px); } .js .rv { transition-duration: .8s, .95s; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .pre { opacity: 1; transform: none; }
  .js .pre-img::before { transform: scaleY(0); }
  .site-header.hide { transform: none; }
  .scroll-cue i::after { animation: none; }
  .story-frame img, .p-hero img, .home-hero img { transform: none !important; }
  .card img, .mosaic img, .fam-index img, .feat img, .gallery img { transition: none; }
  .lang-menu .chev { transition: none; }
}
@media (forced-colors: active) {
  .btn, .btn.solid, .chip { border: 1px solid ButtonText; }
  .rule, .story-hud .fill { background: Highlight; }
  .lang-list { border: 1px solid CanvasText; }
}
@media print {
  .site-header, .mbar, .story, .filters, .cta, .wordmark, .cc-li, .ft-top, dialog.cc { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- real photos, references, certificates ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.pgrid figure { margin: 0; position: relative; overflow: hidden; background: var(--surface-1); aspect-ratio: 4 / 3; }
.pgrid button, .ref-hero button, .cert-img { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.pgrid button:focus-visible, .ref-hero button:focus-visible, .cert-img:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pgrid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.pgrid figure:hover img { transform: scale(1.03); }
@media (max-width: 1099px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .pgrid { grid-template-columns: 1fr; } }
.ref-hero { margin: 0; position: relative; overflow: hidden; background: var(--surface-1); aspect-ratio: 3 / 2; }
.ref-hero img { width: 100%; height: 100%; object-fit: cover; }
.ref-media { position: relative; overflow: hidden; background: var(--surface-1); aspect-ratio: 16 / 10; }
.ref-media a { display: block; height: 100%; }
.ref-media img { width: 100%; height: 100%; object-fit: cover; }
.ref-media .tag { position: absolute; inset-inline-start: 0; bottom: 0; padding-block: 9px; padding-inline: 14px 20px; background: rgba(7, 8, 10, .82); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%); }
.cert-row { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cert-row a { display: inline-block; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--text); text-decoration: none; padding: 8px 12px; border: 1px solid var(--line-strong); }
.cert-row a:hover { border-color: var(--accent); color: var(--accent); }
.row .cert-row { margin: 0; }
/* auto-fit: as many equal columns as there are certificates (3 or 4) before wrapping; no empty column on the right */
.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--col-gap); }
.cert { display: grid; gap: var(--sp-3); align-content: start; padding: 16px 16px 24px; background: var(--surface-1); border: 1px solid var(--line); }
.cert-img { background: var(--paper); aspect-ratio: 495 / 702; overflow: hidden; }
.cert-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cert-dl { margin: 4px 0 0; display: grid; gap: 10px; }
.cert-dl > div { display: grid; gap: 2px; }
.cert-dl dd { margin: 0; color: var(--body); font-size: var(--fs-small); }
.details { margin: 0; display: grid; border-top: 1px solid var(--line); }
.details > div { display: grid; grid-template-columns: 200px 1fr; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.details dd { margin: 0; color: var(--body); overflow-wrap: anywhere; }
@media (max-width: 767px) { .details > div { grid-template-columns: 1fr; gap: 6px; } }
.pgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 639px) { .pgrid.two { grid-template-columns: 1fr; } }

/* ---------- phones: bordered chips and buttons reach a 44px touch target (WCAG 2.5.5) ---------- */
@media (max-width: 767px) {
  .cert-row a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; }
  .chip { min-height: 44px; }
  .btn-s { min-height: 44px; }
  .choices span { min-width: 44px; justify-content: center; }
}

/* ---------- right-to-left pages (ar): the LAYOUT is mirrored, never the pictures ----------
   Grids and flex rows follow dir="rtl" on their own (photo/text sides, header: logo right and links in mirrored order,
   footer columns, cards, form, the centred desktop links); sides above are logical (inset-inline, margin-inline…).
   Here only what has no logical form: direction-bearing icons, gradient/scrim/mask direction (--side), clip-path corners,
   progress-bar origins, hover nudges, the select chevron and the crumb separator. Photos, film frames, maps, the logo
   and certificates are NEVER flipped (no scaleX(-1) on img/video/canvas: lettering on vehicles and the layout of doors and
   stairs would read wrong); the crop focus (--pos) is mirrored by the build. Test: qa/rtl.mjs. */
[dir="rtl"] { --side: 270deg; }
[dir="rtl"] .rule { clip-path: polygon(0 0, 100% 0, 100% 100%, 3px 100%); }
[dir="rtl"] .arr { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) { [dir="rtl"] .btn:hover .arr, [dir="rtl"] .link:hover .arr { transform: scaleX(-1) translateX(4px); } [dir="rtl"] .list-units a:hover span:first-child { transform: translateX(-8px); } }
[dir="rtl"] .link::after, [dir="rtl"] .story-hud .fill, [dir="rtl"] .card .ph::after { transform-origin: right; }
[dir="rtl"] .story-frame + .story-frame { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
[dir="rtl"] .journey .j1 img { object-position: 65% 50%; }
[dir="rtl"] .sheet { clip-path: polygon(0 22px, 22px 0, 100% 0, 100% 100%, 0 100%); }
[dir="rtl"] .figcap, [dir="rtl"] .ref-media .tag { clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%); }
[dir="rtl"] .plan .figcap { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%); }
[dir="rtl"] .sumbar .crumbs li + li::before { content: "\\"; }
[dir="rtl"] .field select { background-position: 10px 52%, 16px 52%; }
/* Arabic type: the letters join, so no letter spacing (it would break the joins), no capitals, no condensed width and
   no italics; taller lines so dots and vowel marks never touch the next line. Latin parts marked lang="tr"/"en" (addresses,
   legal name, other languages in the menu) keep their own setting; the outlined wordmark is the brand and stays as is. */
:root:lang(ar) { --track-caps: 0; }
:root:lang(ar) :lang(ar), :root:lang(ar) :lang(ar)::before, :root:lang(ar) :lang(ar)::after { letter-spacing: 0 !important; text-transform: none !important; font-stretch: 100% !important; font-style: normal !important; }
:root:lang(ar) p.wordmark { letter-spacing: -.01em !important; text-transform: uppercase !important; font-stretch: 62% !important; }
:lang(ar) .display, :lang(ar) .steps-b li.first h3 { line-height: 1.3; }
:lang(ar) :is(.heading, .steps-b h3, .step h3, .card h3, .pn strong, fieldset.step-f legend, .prose h2) { line-height: 1.45; }
:lang(ar) .lead { line-height: 1.6; }
