/* ============================================================================
   ARX Baltic - design system (theme.css)
   Faithful vanilla port of the Claude Design "ARX Baltic" system:
   one blue corporate accent, navy inverse panels, black ink on white,
   heavy Archivo display type, full-bleed interior photography, hairline rules.
   Tokens lifted verbatim from _ds/tokens/*. Components from _ds_bundle.js.
   ============================================================================ */

/* ARX corporate typeface: Nauman (brandbook section 08). Self-hosted, licensed by ARX. */
@font-face { font-family: "Nauman"; src: url("assets/fonts/Nauman-Regular.woff") format("woff");  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nauman"; src: url("assets/fonts/Nauman-Medium.woff") format("woff");   font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Nauman"; src: url("assets/fonts/Nauman-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Nauman"; src: url("assets/fonts/Nauman-Bold.woff") format("woff");     font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nauman"; src: url("assets/fonts/Nauman-ExtraBold.woff") format("woff");font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Nauman"; src: url("assets/fonts/Nauman-Black.woff") format("woff");    font-weight: 900; font-style: normal; font-display: swap; }

/* ============================== TOKENS ================================= */
:root {
  /* Brand blue family (brandbook) */
  --arx-blue:        #2C58A7;
  --arx-blue-bright: #1E75B6;
  --arx-navy:        #202D62;
  --arx-blue-700:    #234A8C;
  --arx-blue-tint:   #EAF0F9;

  /* Ink & paper */
  --arx-black:    #14161A;
  --arx-ink-soft: #3A3F47;
  --arx-white:    #FFFFFF;

  /* Cool architectural grey ramp */
  --arx-grey-50:  #F7F8F9;
  --arx-grey-100: #EFF1F3;
  --arx-grey-200: #E2E5E9;
  --arx-grey-300: #CBD0D6;
  --arx-grey-400: #A4ABB4;
  --arx-grey-500: #777E88;
  --arx-grey-600: #565C66;
  --arx-grey-700: #3D424A;
  --arx-grey-800: #262A30;
  --arx-grey-900: #14161A;

  /* Warm paper */
  --arx-paper:   #F5F3EF;
  --arx-paper-2: #ECE8E1;

  /* Semantic aliases */
  --text-primary:   var(--arx-black);
  --text-secondary: var(--arx-grey-600);
  --text-muted:     var(--arx-grey-500);
  --text-accent:    var(--arx-blue);
  --text-on-accent: var(--arx-white);

  --surface-page:    var(--arx-white);
  --surface-paper:   var(--arx-paper);
  --surface-card:    var(--arx-white);
  --surface-subtle:  var(--arx-grey-50);
  --surface-sunken:  var(--arx-grey-100);
  --surface-inverse: var(--arx-navy);
  --surface-accent:  var(--arx-blue);

  --border-subtle:  var(--arx-grey-200);
  --border-default: var(--arx-grey-300);
  --border-strong:  var(--arx-black);
  --border-inverse: rgba(255,255,255,0.18);
  --focus-ring:     var(--arx-blue-bright);

  /* Type */
  --font-sans:    "Nauman", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-display: var(--font-sans);
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700; --fw-black: 900;

  --fs-display-xl: clamp(3.25rem, 7vw, 6rem);
  --fs-display-l:  clamp(2.5rem, 5vw, 4rem);
  --fs-display-m:  clamp(2rem, 3.6vw, 3rem);
  --fs-h1: clamp(2rem, 3vw, 2.75rem);
  --fs-h2: clamp(1.6rem, 2.2vw, 2.125rem);
  --fs-h3: 1.5rem;
  --fs-h4: 1.25rem;
  --fs-body-lg: 1.1875rem;
  --fs-body:    1.0625rem;
  --fs-body-sm: 0.9375rem;
  --fs-caption: 0.8125rem;
  --fs-eyebrow: 0.75rem;

  --lh-tight: 1.04; --lh-snug: 1.18; --lh-normal: 1.5; --lh-relaxed: 1.65;
  --ls-display: -0.02em; --ls-tight: -0.01em; --ls-eyebrow: 0.16em; --ls-caps: 0.08em;

  /* Radius */
  --radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px; --radius-lg: 10px; --radius-pill: 999px;
  --border-w-strong: 2px;

  /* Layout */
  --container-max:  1240px;
  --container-wide: 1440px;
  --gutter:    clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 9vw, 144px);

  /* Motion */
  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms; --dur-base: 240ms; --dur-slow: 520ms;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(20,22,26,0.06);
  --shadow-sm: 0 1px 3px rgba(20,22,26,0.08), 0 1px 2px rgba(20,22,26,0.04);
  --shadow-md: 0 6px 18px rgba(20,22,26,0.08), 0 2px 6px rgba(20,22,26,0.05);
  --shadow-lg: 0 18px 48px rgba(20,22,26,0.12), 0 6px 16px rgba(20,22,26,0.06);

  --scrim-bottom: linear-gradient(to top, rgba(20,22,26,0.72) 0%, rgba(20,22,26,0.32) 38%, rgba(20,22,26,0) 70%);
  --scrim-navy:   linear-gradient(120deg, rgba(32,45,98,0.86) 0%, rgba(32,45,98,0.40) 60%, rgba(32,45,98,0.10) 100%);
  --ring-focus:   0 0 0 3px rgba(30,117,182,0.35);
}

/* ============================== BASE ================================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip (not hidden) prevents horizontal scroll WITHOUT creating a scroll container,
     so position:sticky headers keep sticking. */
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--arx-blue); color: #fff; }
:focus-visible { outline: none; box-shadow: var(--ring-focus); border-radius: var(--radius-xs); }

.arx-container { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--gutter); }
.arx-container--wide { max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter); }
.hidden { display: none !important; }

/* ============================ ANIMATIONS ============================== */
@keyframes arxmarq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes arxcue  { 0% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(8px); opacity: 1; } 100% { transform: translateY(0); opacity: .4; } }

[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal][data-shown] { opacity: 1; transform: none; }
[data-rd="1"] { transition-delay: .08s; } [data-rd="2"] { transition-delay: .16s; }
[data-rd="3"] { transition-delay: .24s; } [data-rd="4"] { transition-delay: .32s; }

[data-img-reveal] { clip-path: inset(100% 0 0 0); transition: clip-path 1.15s var(--ease-out); }
[data-img-reveal="right"] { clip-path: inset(0 0 0 100%); }
[data-img-reveal][data-shown] { clip-path: inset(0 0 0 0); }
[data-img-inner] { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.16); transition: transform 1.7s var(--ease-out); }
[data-img-reveal][data-shown] [data-img-inner] { transform: scale(1); }

/* Motion off (control-panel toggle or reduced-motion) */
body[data-motion="off"] [data-reveal],
body[data-motion="off"] [data-img-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
body[data-motion="off"] [data-img-inner] { transform: none !important; transition: none !important; }
body[data-motion="off"] .arxmarq { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-img-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  [data-img-inner] { transform: none !important; }
  .arxmarq { animation: none !important; }
}

/* ============================== NAV =================================== */
.arxnav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.arxnav__mark { height: 30px; width: auto; display: block; }
.arxnav__links { display: flex; align-items: center; gap: 32px; }
.arxnavlink { position: relative; cursor: pointer; color: var(--text-primary); font-size: 14px; font-weight: var(--fw-medium); letter-spacing: .005em; }
.arxnavlink::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1.5px; background: var(--arx-blue); transition: right .28s var(--ease-out); }
.arxnavlink:hover::after { right: 0; }
.arxnavlink:hover { color: var(--arx-blue); }
@media (max-width: 820px) { .arxnav__links { display: none; } }

/* ============================ EYEBROW ================================= */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow__rule { width: 32px; height: 2px; background: var(--arx-blue); flex: 0 0 auto; }
.eyebrow__text { font-size: var(--fs-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-accent); line-height: 1; }
.eyebrow--muted .eyebrow__text { color: var(--text-muted); }
.eyebrow--inverse .eyebrow__text { color: rgba(255,255,255,.75); }
.eyebrow--inverse .eyebrow__rule { background: rgba(255,255,255,.5); }

/* ============================ BUTTONS ================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: var(--fw-semibold); letter-spacing: .005em; line-height: 1;
  border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  text-decoration: none; padding: 13px 24px; font-size: 15px;
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 8px 16px;  font-size: 14px; gap: 8px; }
.btn--md { padding: 13px 24px; font-size: 15px; gap: 10px; }
.btn--lg { padding: 17px 32px; font-size: 16px; gap: 12px; }
.btn__arrow { display: inline-flex; transform: translateY(.5px); }

.btn--primary { background: var(--arx-blue); color: var(--text-on-accent); }
.btn--primary:hover { background: var(--arx-blue-700); }
.btn--secondary { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--arx-grey-900); color: #fff; }
.btn--ghost { background: transparent; color: var(--text-primary); }
.btn--ghost:hover { background: var(--arx-grey-100); }
.btn--onDark { background: #fff; color: var(--arx-navy); }
.btn--onDark:hover { background: var(--arx-grey-100); }
.btn--onDarkOutline { background: transparent; color: #fff; border-color: var(--border-inverse); }
.btn--onDarkOutline:hover { background: rgba(255,255,255,.10); }
.btn--block { width: 100%; }

/* ========================= SECTION HEADING =========================== */
.shead__title { margin: 0; font-family: var(--font-display); font-size: var(--fs-display-l); font-weight: var(--fw-bold); line-height: var(--lh-tight); letter-spacing: var(--ls-display); color: var(--text-primary); text-wrap: balance; max-width: 20ch; }
.shead__title--m { font-size: var(--fs-display-m); }
.shead__title--xl { font-size: var(--fs-display-xl); }
.shead .eyebrow { margin-bottom: 20px; }
.shead__intro { margin: 20px 0 0; font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); color: var(--text-secondary); max-width: 56ch; text-wrap: pretty; }
.shead--inverse .shead__title { color: #fff; }
.shead--inverse .shead__intro { color: rgba(255,255,255,.74); }

/* =========================== SERVICE ROW ============================= */
.srow { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); padding: 28px 0; border-top: 1px solid var(--border-subtle); transition: background var(--dur-base) var(--ease-standard); }
.srow__n { font-family: var(--font-display); font-size: clamp(1.1rem, 1.4vw, 1.35rem); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; color: var(--text-muted); transition: color var(--dur-base) var(--ease-standard); min-width: 2.2ch; }
.srow:hover .srow__n { color: var(--arx-blue); }
.srow__title { margin: 0 0 10px; font-size: var(--fs-h3); font-weight: var(--fw-semibold); letter-spacing: var(--ls-tight); color: var(--text-primary); }
.srow__desc { margin: 0; font-size: var(--fs-body); line-height: var(--lh-relaxed); color: var(--text-secondary); max-width: 56ch; }
.srow--inverse { border-top-color: var(--border-inverse); }
.srow--inverse .srow__n { color: rgba(255,255,255,.55); }
.srow--inverse .srow__title { color: #fff; }
.srow--inverse .srow__desc { color: rgba(255,255,255,.72); }

/* =========================== PROJECT CARD ============================ */
.pcard { cursor: pointer; }
.pcard__frame { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-md); background: var(--arx-grey-100); }
.pcard__frame img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1); transition: transform var(--dur-slow) var(--ease-out); }
.pcard:hover .pcard__frame img { transform: scale(1.035); }
.pcard__meta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pcard__brand { font-size: var(--fs-h4); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); color: var(--text-primary); }
.pcard__cat { font-size: var(--fs-caption); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-muted); }
.pcard--over .pcard__scrim { position: absolute; inset: 0; background: var(--scrim-bottom); }
.pcard--over .pcard__meta { position: absolute; left: 20px; right: 20px; bottom: 18px; margin: 0; }
.pcard--over .pcard__brand { color: #fff; }
.pcard--over .pcard__cat { color: rgba(255,255,255,.8); }

/* ============================== STAT ================================= */
.stat__value { font-family: var(--font-display); font-weight: var(--fw-black); font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; letter-spacing: var(--ls-display); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 10px; font-size: var(--fs-body-sm); font-weight: var(--fw-medium); color: var(--text-secondary); line-height: 1.35; max-width: 22ch; }
.stat--inverse .stat__value { color: #fff; }
.stat--inverse .stat__label { color: rgba(255,255,255,.70); }

/* ============================== TAG ================================== */
.tag { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: var(--fw-medium); letter-spacing: .01em; line-height: 1; padding: 7px 13px; border-radius: var(--radius-pill); }
.tag--outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-default); }
.tag--inverse { background: rgba(255,255,255,.10); color: #fff; border: 1px solid var(--border-inverse); }

/* ============================= FIELD ================================= */
.field { display: block; }
.field__label { display: block; margin-bottom: 8px; font-size: var(--fs-caption); font-weight: var(--fw-semibold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-secondary); }
.field__control { width: 100%; font-family: var(--font-sans); font-size: var(--fs-body); font-weight: var(--fw-regular); color: var(--text-primary); background: var(--surface-page); border: 1px solid var(--border-default); border-radius: var(--radius-sm); padding: 0 14px; height: 48px; box-sizing: border-box; outline: none; transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard); }
textarea.field__control { padding: 13px 14px; height: auto; min-height: 120px; resize: vertical; }
select.field__control { appearance: none; -webkit-appearance: none; }
.field__control:focus { border-color: var(--focus-ring); box-shadow: var(--ring-focus); }
.field__select { position: relative; }
.field__caret { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-muted); font-size: 12px; }

/* ========================= CLIENT MARQUEE =========================== */
.marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.arxmarq { display: flex; gap: 0; width: max-content; align-items: center; animation: arxmarq 38s linear infinite; }
.marquee__item { display: inline-flex; align-items: center; padding: 0 36px; font-size: clamp(1rem, 1.6vw, 1.35rem); font-weight: var(--fw-bold); letter-spacing: .06em; color: var(--arx-grey-500); white-space: nowrap; }

/* ===================== LAYOUT VISIBILITY GATING ===================== */
/* hero variants */
.hero--editorial  { display: none; }
.hero--asymmetric { display: none; }
.hero--cinematic  { display: none; }
.hero--original   { display: none; }
body[data-layout="editorial"]  .hero--editorial,
body[data-layout="asymmetric"] .hero--asymmetric,
body[data-layout="cinematic"]  .hero--cinematic,
body[data-layout="original"]   .hero--original { display: block; }

/* projects variants (display type differs per variant, set with the .show gate) */
.pj { display: none; }
body[data-layout="editorial"]  .pj--editorial,
body[data-layout="original"]   .pj--original,
body[data-layout="asymmetric"] .pj--asymmetric,
body[data-layout="cinematic"]  .pj--cinematic { display: grid; }
.pj--cinematic { grid-template-columns: 1fr; gap: 24px; }

/* ========================= HERO: EDITORIAL ========================== */
.heroE__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,72px); align-items: center; padding: clamp(36px,5vw,72px) 0 clamp(28px,4vw,56px); }
.heroE h1 { margin: 24px 0 0; font-family: var(--font-display); font-size: var(--fs-display-l); font-weight: var(--fw-black); line-height: var(--lh-tight); letter-spacing: var(--ls-display); text-wrap: balance; }
.heroE__sub { margin: 26px 0 0; font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); color: var(--text-secondary); max-width: 52ch; text-wrap: pretty; }
.heroE__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.heroE__proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; list-style: none; padding: 0; }
.heroE__proof li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-secondary); font-weight: var(--fw-medium); }
.dot { width: 6px; height: 6px; background: var(--arx-blue); border-radius: var(--radius-pill); flex: none; }
.heroE__media { position: relative; }
.heroE__main { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.heroE__inset { position: absolute; left: -28px; bottom: -28px; width: 44%; border-radius: var(--radius-md); overflow: hidden; border: 5px solid #fff; box-shadow: var(--shadow-md); aspect-ratio: 1/1; }
.photo-cap { position: absolute; left: 22px; bottom: 20px; color: #fff; }
.photo-cap__k { font-size: 11px; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; opacity: .85; }
.photo-cap__t { font-size: 21px; font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); margin-top: 4px; }

/* ======================== HERO: ASYMMETRIC ========================= */
.heroA__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); align-items: center; padding: clamp(36px,5vw,64px) 0 clamp(28px,4vw,48px); }
.heroA h1 { margin: 24px 0 0; font-family: var(--font-display); font-size: var(--fs-display-m); font-weight: var(--fw-black); line-height: var(--lh-tight); letter-spacing: var(--ls-display); text-wrap: balance; }
.heroA__sub { margin: 24px 0 0; font-size: var(--fs-body); line-height: var(--lh-relaxed); color: var(--text-secondary); max-width: 46ch; }
.heroA__mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.heroA__wide { grid-column: 1 / -1; position: relative; border-radius: var(--radius-md); overflow: hidden; height: 248px; box-shadow: var(--shadow-md); }

/* ======================== HERO: CINEMATIC ========================== */
.heroC { position: relative; height: 90vh; min-height: 620px; overflow: hidden; background: var(--surface-inverse); }
.heroC__bg { position: absolute; inset: 0; overflow: hidden; }
.heroC__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,26,.30) 0%, rgba(20,22,26,.12) 38%, rgba(20,22,26,.84) 100%); }
.heroC__body { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(40px,5vw,72px); }
.heroC h1 { margin: 22px 0 0; font-family: var(--font-display); font-size: var(--fs-display-xl); font-weight: var(--fw-black); line-height: var(--lh-tight); letter-spacing: var(--ls-display); color: #fff; max-width: 18ch; text-wrap: balance; }
.heroC__sub { margin: 24px 0 0; font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); color: rgba(255,255,255,.82); max-width: 54ch; }
.heroC__cue { position: absolute; top: 26px; right: var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.7); }
.heroC__cue span:first-child { font-size: 10px; letter-spacing: .16em; writing-mode: vertical-rl; }
.heroC__cue i { width: 1px; height: 32px; background: rgba(255,255,255,.45); animation: arxcue 1.9s var(--ease-standard) infinite; }

/* ========================= HERO: ORIGINAL ========================== */
.heroO__head { text-align: center; padding: clamp(40px,5vw,80px) 0 clamp(20px,3vw,36px); display: flex; flex-direction: column; align-items: center; }
.heroO__head .eyebrow { justify-content: center; }
.heroO h1 { margin: 22px 0 0; font-family: var(--font-display); font-size: var(--fs-display-l); font-weight: var(--fw-black); line-height: var(--lh-tight); letter-spacing: var(--ls-display); max-width: 20ch; text-wrap: balance; }
.heroO__sub { margin: 24px 0 0; font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); color: var(--text-secondary); max-width: 56ch; text-wrap: pretty; }
.heroO__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; justify-content: center; }
.heroO__stage { position: relative; }
.heroO__frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: clamp(360px,52vw,620px); box-shadow: var(--shadow-lg); }

/* shared photo tile helper */
.tile { position: relative; border-radius: var(--radius-md); overflow: hidden; }
.tile .scrim { position: absolute; inset: 0; background: var(--scrim-bottom); }
.tile__cap { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.tile__cap--lg { left: 24px; right: 24px; bottom: 22px; }
.tile__t { color: #fff; font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); }
.tile__k { color: rgba(255,255,255,.82); font-size: 11px; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.tile__sub { color: rgba(255,255,255,.8); font-size: 11px; letter-spacing: var(--ls-caps); text-transform: uppercase; margin-top: 2px; }

/* ====================== PROJECTS: EDITORIAL 12col =================== */
.pj--editorial { grid-template-columns: repeat(12, 1fr); gap: 20px; }
.pjE-7 { grid-column: span 7; }
.pjE-5 { grid-column: span 5; display: flex; flex-direction: column; gap: 20px; }
.pjE-12 { grid-column: span 12; }
.pjE-6half { grid-column: span 6; }

/* "Drīz būs foto" placeholder for projects without photos yet */
.pj-soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--arx-navy), var(--arx-blue)); }
.pj-soon__mark { font-family: var(--font-display); font-weight: var(--fw-black); font-size: clamp(26px, 3vw, 38px); letter-spacing: .04em; color: rgba(255,255,255,.95); }
.pj-soon__txt { font-size: 11px; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: rgba(255,255,255,.72); }
.pcard__frame .pj-soon__mark { font-size: 30px; }

/* ====================== PROJECTS: ORIGINAL grid ==================== */
.pj--original { grid-template-columns: repeat(3, 1fr); gap: clamp(18px,2vw,28px); }

/* ===================== PROJECTS: ASYMMETRIC masonry ================ */
.pj--asymmetric { grid-template-columns: 1fr 1fr 1fr; gap: 20px; align-items: start; }

/* ====================== PROJECTS: CINEMATIC stack ================= */
.pjCin { position: relative; border-radius: var(--radius-md); overflow: hidden; height: clamp(360px,46vw,560px); }
.pjCin .veil { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,22,26,.7), rgba(20,22,26,.15) 65%); }
.pjCin__cap { position: absolute; left: clamp(24px,3vw,44px); bottom: clamp(24px,3vw,40px); max-width: 30ch; }
.pjCin__cap .k { font-size: 11px; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: rgba(255,255,255,.82); }
.pjCin__cap .t { color: #fff; font-size: clamp(26px,3vw,40px); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); line-height: 1.05; margin-top: 6px; }

/* ============================ SECTIONS ============================= */
.section { padding-block: var(--section-y); }
.section--paper   { background: var(--surface-paper); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.section--subtle  { background: var(--surface-subtle); }
.section--inverse { background: var(--surface-inverse); color: #fff; }

.clients { padding: 30px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); overflow: hidden; margin-top: clamp(36px,5vw,64px); }
.clients__label { text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; }

.services__head { max-width: 780px; margin-bottom: 24px; }

.proj__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(28px,3vw,44px); }
.proj__foot { display: flex; justify-content: center; margin-top: clamp(32px,4vw,48px); }

.why__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px,5vw,72px); align-items: center; }
.why__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin-top: clamp(28px,3vw,44px); }
.why__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5/6; box-shadow: var(--shadow-lg); }

.process__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.pstep { border-top: var(--border-w-strong) solid var(--arx-blue); padding-top: 18px; }
.pstep__n { font-family: var(--font-display); font-size: clamp(2rem,2.6vw,2.6rem); font-weight: var(--fw-black); letter-spacing: var(--ls-display); color: var(--arx-blue); line-height: 1; margin-bottom: 12px; }
.pstep h3 { margin: 0 0 7px; font-size: var(--fs-h4); font-weight: var(--fw-semibold); letter-spacing: var(--ls-tight); }
.pstep p { margin: 0; font-size: var(--fs-body-sm); line-height: var(--lh-normal); color: var(--text-secondary); }

.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px,5vw,72px); align-items: start; }
.contact__mail { margin-top: 20px; font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--arx-blue); }
.contact__card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: clamp(24px,3vw,36px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact__card .span2 { grid-column: 1 / -1; }

.manifesto { position: relative; overflow: hidden; background: var(--surface-inverse); }
.manifesto__bg { position: absolute; inset: 0; overflow: hidden; }
.manifesto__veil { position: absolute; inset: 0; background: var(--scrim-navy); }
.manifesto__body { position: relative; }
.manifesto h2 { margin: 22px 0 0; font-family: var(--font-display); font-size: var(--fs-display-l); font-weight: var(--fw-black); line-height: var(--lh-tight); letter-spacing: var(--ls-display); color: #fff; max-width: 18ch; text-wrap: balance; }
.manifesto__sub { margin: 24px 0 0; font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); color: rgba(255,255,255,.82); max-width: 60ch; }
.manifesto__tags { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* ============================= FOOTER ============================== */
.foot { background: var(--arx-grey-900); color: #fff; padding: clamp(48px,6vw,72px) var(--gutter) 32px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border-inverse); }
.foot__logo { height: 34px; width: auto; display: block; margin-bottom: 18px; }
.foot__about { margin: 0; color: rgba(255,255,255,.6); font-size: var(--fs-body-sm); line-height: var(--lh-relaxed); max-width: 300px; }
.foot__h { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.foot__col { display: flex; flex-direction: column; gap: 11px; font-size: var(--fs-body-sm); color: rgba(255,255,255,.78); }
.foot__col a:hover { color: #fff; }
.foot__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; flex-wrap: wrap; }
.foot__bar span { font-size: var(--fs-caption); color: rgba(255,255,255,.45); }

/* ========================= CONTROL PANEL ========================== */
.cpanel { position: fixed; right: 20px; bottom: 20px; z-index: 200; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 15px 16px; width: 286px; font-family: var(--font-sans); }
.cpanel__head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.cpanel__title { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); }
.cpanel__led { width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--arx-blue); }
.cpanel__caret { width: 7px; height: 7px; border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted); transition: transform .2s; transform: rotate(45deg); }
.cpanel[data-open="false"] .cpanel__caret { transform: rotate(-135deg); }
.cpanel__group { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin: 13px 0 8px; }
.cpanel__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.cpanel__seg button { border: 1px solid var(--border-default); background: var(--surface-card); color: var(--text-muted); font-weight: 600; font-size: 11px; padding: 9px 6px; border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font-sans); transition: all .2s; line-height: 1.1; }
.cpanel__seg button:hover { border-color: var(--arx-grey-400); color: var(--text-primary); }
.cpanel__seg button.is-active { border-color: transparent; background: var(--arx-grey-900); color: #fff; }
.cpanel__motion { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--border-subtle); }
.cpanel__switch { position: relative; width: 42px; height: 24px; border-radius: var(--radius-pill); border: none; cursor: pointer; transition: background .2s; background: var(--arx-grey-300); }
.cpanel__switch.is-on { background: var(--arx-blue); }
.cpanel__knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.cpanel__switch.is-on .cpanel__knob { left: 21px; }
.cpanel__hint { font-size: 11px; line-height: 1.45; color: var(--text-muted); margin-top: 12px; }
.cpanel[data-open="false"] .cpanel__body { display: none; }

/* ============================ RESPONSIVE ========================== */
@media (max-width: 960px) {
  .heroE__grid, .heroA__grid, .why__grid, .contact__grid, .services__sticky-grid { grid-template-columns: 1fr !important; }
  .why__media { aspect-ratio: 16/10; }
}
@media (max-width: 820px) {
  .pj--editorial, .pj--asymmetric { grid-template-columns: 1fr !important; }
  .pjE-7, .pjE-5, .pjE-12, .pjE-6half { grid-column: auto !important; }
  .process__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .heroE__inset { display: none; }
  .cpanel { right: 12px; bottom: 12px; width: 260px; }
}
@media (max-width: 560px) {
  .pj--original, .process__grid, .foot__grid, .contact__card { grid-template-columns: 1fr; }
  .why__stats { grid-template-columns: 1fr 1fr; }
}

/* ---- Header phone link ------------------------------------------------- */
.arxnav__phone { font-weight: var(--fw-semibold); font-size: 14px; color: var(--text-primary); letter-spacing: .005em; white-space: nowrap; }
.arxnav__phone:hover { color: var(--arx-blue); }
@media (max-width: 720px) { .arxnav__phone { display: none; } }

/* ---- Scroll-reactive headers (A starts navy then switches to paper; B transparent then dark glass) --- */
.a-head { position: sticky; top: 0; z-index: 60; transition: background .4s var(--ease-out), box-shadow .4s, border-color .4s; }
.a-head__bar { max-width: var(--container-max); margin: 0 auto; padding: 13px var(--gutter); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.a-head__logo { display: inline-flex; align-items: center; }
.a-mark { height: 24px; width: auto; display: block; }
.a-nav-links { display: flex; justify-content: center; gap: clamp(16px, 2vw, 36px); font-size: var(--fs-body-sm); font-weight: 500; }
.a-head__actions { display: flex; align-items: center; gap: 12px; justify-self: end; }
.a-head__phone { font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: color .3s; }
.a-head__phone:hover { color: var(--arx-blue); }
.a-btn--head, .a-wa--head { height: 36px; padding: 0 16px; font-size: 13px; }
/* Header CTA carries a full label on desktop and a compact one on mobile (see mobile block). */
.a-btn--head .lbl-min { display: none; }
/* Never let the header CTA shrink below its label. .a-btn has overflow:hidden, so a shrunk
   button clips the text (e.g. "Sazinaties" becomes "Saz"). Keep it at content width. */
.a-head__actions .a-btn--head, .site-head__actions .a-btn--head { flex-shrink: 0; white-space: nowrap; }
.a-head__phone, .site-head__phone { flex-shrink: 0; }
/* top state: navy bar */
.a-head[data-scrolled="0"] { background: var(--arx-navy); }
.a-head[data-scrolled="0"] .a-mark--dark { display: none; }
.a-head[data-scrolled="0"] .a-mark--light { display: block; }
.a-head[data-scrolled="0"] .a-nav a, .a-head[data-scrolled="0"] .a-head__phone { color: #fff; }
.a-head[data-scrolled="0"] .a-wa--head { color: #fff; border-color: rgba(255,255,255,.5); }
.a-head[data-scrolled="0"] .a-wa--head::before { background: #fff; }
.a-head[data-scrolled="0"] .a-wa--head:hover { color: var(--arx-navy); border-color: #fff; }
/* scrolled state: paper bar */
.a-head[data-scrolled="1"] { background: rgba(245,243,239,.92); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--arx-grey-200); box-shadow: 0 8px 24px -16px rgba(20,22,26,.3); }
.a-head[data-scrolled="1"] .a-mark--light { display: none; }
.a-head[data-scrolled="1"] .a-mark--dark { display: block; }
.a-head[data-scrolled="1"] .a-nav a, .a-head[data-scrolled="1"] .a-head__phone { color: var(--arx-black); }
.b-head { transition: background .4s var(--ease-out), backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
.b-head[data-scrolled="1"] { background: rgba(10,15,32,.82); backdrop-filter: saturate(1.3) blur(14px); border-bottom-color: rgba(255,255,255,.1); }
@media (max-width: 1040px) { .a-nav-links { display: none !important; } }
@media (max-width: 560px) { .a-head__phone { font-size: 12.5px; } }

/* Homepage hamburger + mobile nav (variant A). Burger appears where the desktop nav hides. */
.a-burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 10px 8px; margin-left: 2px; }
.a-burger span { width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: background .3s var(--ease-out); }
.a-head[data-scrolled="0"] .a-burger span { background: #fff; }
.a-head[data-scrolled="1"] .a-burger span { background: var(--arx-black); }
.a-mobnav { display: none; }
@media (max-width: 1040px) {
  .a-burger { display: flex; }
  .a-mobnav {
    display: flex; flex-direction: column; padding: 0 var(--gutter);
    background: rgba(245,243,239,.98); backdrop-filter: saturate(1.4) blur(14px);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s var(--ease-out), visibility 0s .3s;
  }
  .a-head.nav-open .a-mobnav { max-height: 340px; visibility: visible; border-top: 1px solid var(--arx-grey-200); box-shadow: 0 14px 26px -16px rgba(20,22,26,.32); padding-bottom: 12px; transition: max-height .3s var(--ease-out); }
  .a-mobnav a { padding: 14px 0; font-size: 16px; font-weight: 600; color: var(--arx-black); text-decoration: none; border-bottom: 1px solid var(--arx-grey-200); }
  .a-mobnav a:last-child { border-bottom: 0; }
}

/* ---- Per-layout sections (JS-rendered, inline-styled): helpers -------- */
.arxhide { scrollbar-width: none; }
.arxhide::-webkit-scrollbar { display: none; }
#services, #projects, #process, #contact { scroll-margin-top: 80px; }

/* Mobile stacking for the inline grids inside the JS-rendered sections.
   Inline styles win, so these overrides are scoped + !important. */
@media (max-width: 860px) {
  #whySlot [style*="grid-template-columns"],
  #process [style*="grid-template-columns"],
  #contact [style*="grid-template-columns"],
  #servicesSlot [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  #process [style*="position:sticky"], #whySlot [style*="position:sticky"] { position: static !important; }
  #servicesSlot [style*="margin-top:clamp(28px,4vw,56px)"] { margin-top: 0 !important; }
}
@media (min-width: 561px) and (max-width: 860px) {
  /* keep stat/why card rows two-up rather than a single tall column */
  #whySlot [style*="repeat(4"] { grid-template-columns: 1fr 1fr !important; }
}

/* ============================================================================
   v3 design overhaul: control panel 3-stack + variation A/B/C interactions
   ============================================================================ */
.cpanel__seg--3 { grid-template-columns: 1fr; }

/* ---- Variation A (Atsauce) -------------------------------------------- */
.a-nav a { position: relative; transition: color .2s var(--ease-out); }
.a-nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--arx-blue); transition: width .3s var(--ease-out); }
.a-nav a:hover { color: var(--arx-blue); }
.a-nav a:hover::after { width: 100%; }
.a-cli { position: relative; overflow: hidden; isolation: isolate; transition: color .35s var(--ease-out); }
.a-cli > span { position: relative; z-index: 1; }
.a-cli::before { content: ""; position: absolute; inset: 0; background: var(--arx-blue); transform: translateX(-101%); transition: transform .42s var(--ease-out); z-index: 0; }
.a-cli:hover { color: #fff !important; }
.a-cli:hover::before { transform: translateX(0); }
.a-num { background-image: linear-gradient(90deg,#7FB0F5 0 50%,currentColor 50% 100%); background-size: 200% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; transition: background-position .5s var(--ease-out); }
.a-srow { transition: padding-left .35s var(--ease-out); }
.a-srow:hover { padding-left: 12px; }
.a-srow .a-srow-n { transition: transform .35s var(--ease-out); }
.a-srow:hover .a-srow-n { transform: translateX(5px); }
.a-srow:hover .a-srow-t { color: var(--arx-blue); }
.a-tiles > .a-rev { transition: box-shadow .4s var(--ease-out); }
.a-tiles > .a-rev:hover { z-index: 1; box-shadow: 0 18px 40px -22px rgba(20,22,26,.45); }
.a-why { transition: border-top-color .35s var(--ease-out); }
.a-why:hover { border-top-color: var(--arx-blue); }
.a-why .a-why-n { transition: transform .35s var(--ease-out); }
.a-why:hover .a-why-n { transform: translateY(-3px); }
.a-step { transition: transform .4s var(--ease-out); }
.a-step:hover { transform: translateY(-7px); }
.a-step .a-step-n { transition: color .3s var(--ease-out), transform .4s var(--ease-out); }
.a-step:hover .a-step-n { color: #fff; transform: scale(1.06); }
.a-stepbar { display: block; height: 3px; background: var(--arx-blue-bright); width: 0; margin-top: 14px; transition: width .5s var(--ease-out); }
.a-step:hover .a-stepbar { width: 42px; }
.a-wa { display: inline-flex; align-items: center; gap: 9px; background: transparent; color: var(--arx-black); border: 1.5px solid var(--arx-grey-300); font-family: var(--font-sans); font-weight: 600; letter-spacing: .01em; border-radius: var(--radius-sm); text-decoration: none; position: relative; overflow: hidden; isolation: isolate; transition: color .35s var(--ease-out), border-color .35s var(--ease-out); }
.a-wa > * { position: relative; z-index: 1; }
.a-wa::before { content: ""; position: absolute; inset: 0; background: var(--arx-black); transform: translateX(-101%); transition: transform .42s var(--ease-out); z-index: 0; }
.a-wa:hover { color: #fff; border-color: var(--arx-black); }
.a-wa:hover::before { transform: translateX(0); }
.a-cta-hero .a-wa { color: #fff; border-color: rgba(255,255,255,.5); }
.a-cta-hero .a-wa::before { background: #fff; }
.a-cta-hero .a-wa:hover { color: var(--arx-navy); border-color: #fff; }
.a-btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; background: var(--arx-blue); color: #fff; border: 0; cursor: pointer; font-family: var(--font-sans); font-weight: 600; letter-spacing: .01em; border-radius: var(--radius-sm); text-decoration: none; transition: transform .15s var(--ease-out); }
.a-btn span { position: relative; z-index: 1; }
.a-btn::before { content: ""; position: absolute; inset: 0; background: var(--arx-navy); transform: translateX(-101%); transition: transform .42s var(--ease-out); z-index: 0; }
.a-btn:hover::before { transform: translateX(0); }
.a-btn:active { transform: translateY(1px); }
.a-cta-hero .a-btn::before { background: #0F1530; }
.a-rev { position: relative; overflow: hidden; }
.a-rev-panel { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, rgba(32,45,98,.55) 0%, var(--arx-navy) 62%); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; padding: clamp(26px,2.8vw,40px); transform: translateX(-101%); transition: transform .5s var(--ease-out); z-index: 3; }
.a-rev:hover .a-rev-panel { transform: translateX(0); }
.a-rev-panel .s { font-size: var(--fs-caption); letter-spacing: var(--ls-caps); text-transform: uppercase; color: #9DB4E0; }
/* The "Mes stradajam ar" tiles are narrow (5-col ~212px). The longest category words
   (MAZUMTIRDZNIECIBA, KOMERCINTERJERS) overflowed the eyebrow, so shrink + tighten it
   in this context, trim the panel padding a touch, and add an ellipsis as a hard safety. */
.a-tiles .a-rev-panel { padding: clamp(20px,2.2vw,30px); }
.a-tiles .a-rev-panel .s { font-size: 10.5px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-rev-panel .t { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3); letter-spacing: var(--ls-tight); line-height: 1.05; }
.a-rev-panel .d { font-size: var(--fs-body-sm); color: rgba(255,255,255,.85); line-height: 1.5; margin-top: 2px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
/* On the narrowest tiles (desktop 5-col), even the eyebrow + title + 3 lines can crowd;
   drop the description there and let the image + title carry the tile. */
@media (min-width: 1041px) { .a-tiles .a-rev-panel .d { -webkit-line-clamp: 2; line-clamp: 2; } }
/* The cross-slide band (.a-rev-x) is tall and full-bleed: let its caption breathe with more lines. */
.a-rev-x .a-rev-panel .d { -webkit-line-clamp: 3; line-clamp: 3; }
.a-rev-x > img { transition: transform .85s var(--ease-out); }
.a-rev-x:hover > img { transform: translateX(42%); }
.a-rev-x .a-rev-panel { transition: transform .85s var(--ease-out); }
@media (max-width: 920px) {
  .a-hero, .a-2col { grid-template-columns: 1fr !important; }
  .a-nav-links { display: none !important; }
  .a-tiles { grid-template-columns: repeat(2,1fr) !important; }
  .a-proc { grid-template-columns: 1fr 1fr !important; }
  .a-proc-line { display: none !important; }
  .a-foot { grid-template-columns: 1fr 1fr !important; }
  .a-clientgrid { grid-template-columns: repeat(2,1fr) !important; }
}

/* ---- Variation B (Imersivs, dark) ------------------------------------- */
@keyframes bMarqL { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes bMarqR { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
@keyframes bCue { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(7px); opacity: 1; } }
.b-nav a { transition: color .2s var(--ease-out); }
.b-nav a:hover { color: #fff !important; }
.b-btn { display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 24px; border-radius: var(--radius-sm); font-family: var(--font-sans); font-weight: 600; font-size: 15px; cursor: pointer; border: 0; text-decoration: none; transition: transform .15s var(--ease-out), box-shadow .25s; }
.b-btn--primary { background: var(--arx-blue); color: #fff; box-shadow: var(--shadow-accent); }
.b-btn--primary:hover { transform: translateY(-2px); }
.b-btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.b-btn--ghost:hover { background: #fff; color: var(--arx-navy); border-color: #fff; }
.b-btn--sm { height: 40px; padding: 0 16px; font-size: 13.5px; }
/* Homepage (b-head) mobile menu: top bar = logo + WhatsApp + burger; nav + language + phone in the dropdown. */
.b-burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 10px 6px; margin-left: 2px; }
.b-burger span { width: 22px; height: 2px; border-radius: 2px; background: #fff; }
.b-mobnav { display: none; }
.b-head.is-compact .b-nav-links { display: none !important; }
.b-head.is-compact .b-head__actions .lang-switch,
.b-head.is-compact .b-head__actions .b-nav-tel,
.b-head.is-compact .b-head__actions .b-btn--primary { display: none; }
.b-head.is-compact .b-head__actions .b-btn--ghost { display: inline-flex !important; }
.b-head.is-compact .b-burger { display: flex; }
.b-head.is-compact .b-mobnav { display: flex; flex-direction: column; gap: 2px; padding: 0 var(--gutter); max-height: 0; overflow: hidden; visibility: hidden; background: #0C1226; transition: max-height .3s var(--ease-out), visibility 0s .3s; }
.b-head.is-compact.nav-open { background: rgba(10,15,32,.96); backdrop-filter: saturate(1.3) blur(14px); }
.b-head.is-compact.nav-open .b-mobnav { max-height: 540px; visibility: visible; padding-bottom: 18px; border-top: 1px solid rgba(255,255,255,.12); transition: max-height .3s var(--ease-out); }
.b-head.is-compact .b-mobnav a { padding: 13px 0; font-size: 16px; font-weight: 600; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1); }
.b-head.is-compact .b-mobnav a:last-of-type { border-bottom: 0; }
.b-head.is-compact .b-mobnav__lang { padding: 18px 0 4px; }
.b-head.is-measuring .b-head__bar > *,
.b-head.is-measuring .b-head__actions > * { flex-shrink: 0 !important; }
@media (max-width: 900px) {
  .b-2col, .b-do { grid-template-columns: 1fr !important; }
  .b-tiles { grid-template-columns: 1fr 1fr !important; }
}

/* ---- Variation C (Redakcionals, left rail) ---------------------------- */
.ri-item:hover { color: var(--arx-blue) !important; }
/* "Mes stradajam ar" project cards (B + C) */
.proj-card { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.proj-card img { transition: transform .6s var(--ease-out); }
.proj-card:hover { transform: translateY(-6px); box-shadow: 0 26px 52px -24px rgba(10,15,32,.6); }
.proj-card:hover img { transform: scale(1.06); }
/* C sector list rows */
.c-sector { transition: padding-left .35s var(--ease-out); }
.c-sector:hover { padding-left: 10px; }
.c-sector__n, .c-sector__t { transition: color .3s var(--ease-out); }
.c-sector:hover .c-sector__n, .c-sector:hover .c-sector__t { color: var(--arx-blue); }

/* Hero uses the same engine reveal as every other section (data-rise copy + data-img image).
   Navy backdrop covers the brief moment before the hero photo decodes. */
.a-hero__art { background: var(--arx-navy); }

/* Hover slideshow: stacked images, slow crossfade */
.slideshow { position: absolute; inset: 0; }
.slideshow .ss-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease-out); }
.slideshow .ss-img:first-child { opacity: 1; }

/* Izceltie projekti (A): full-bleed edge-to-edge bands; hover panel PARTIALLY covers the image */
.izb-list { margin-top: clamp(32px,4vw,52px); display: flex; flex-direction: column; gap: 12px; }
.izb { position: relative; height: clamp(460px,58vh,600px); overflow: hidden; }
.izb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.izb__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(24px,3vw,46px); display: flex; flex-direction: column; gap: 6px; background: linear-gradient(180deg, transparent, rgba(15,21,48,.82)); color: #fff; transition: opacity .4s var(--ease-out); }
.izb__cap .k { font-size: var(--fs-caption); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.izb__cap .t { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-display-m); line-height: 1; }
.izb:hover .izb__cap { opacity: 0; }
.izb__panel { position: absolute; left: 0; top: 0; bottom: 0; z-index: 3; width: min(46%, 540px); background: rgba(20,29,62,.97); color: #fff; padding: clamp(22px,2.6vw,40px); display: flex; flex-direction: column; justify-content: center; gap: 9px; overflow-y: auto; transform: translateX(-101%); transition: transform .55s var(--ease-out); }
.izb__panel p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; padding-bottom: 1px; }
.izb:hover .izb__panel { transform: translateX(0); }
.izb__panel .izb__k { font-size: var(--fs-caption); letter-spacing: .1em; text-transform: uppercase; color: #9DB4E0; }
.izb__panel h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); margin: 0; line-height: 1.05; }
.izb__panel p { margin: 0; font-size: var(--fs-body-sm); line-height: 1.5; color: rgba(255,255,255,.84); }
.izb__b { list-style: none; margin: 2px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.izb__b li { position: relative; padding-left: 18px; font-size: var(--fs-body-sm); color: rgba(255,255,255,.82); line-height: 1.4; }
.izb__b li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 2px; background: #7FB0F5; }
.izb__q { font-style: italic; border-left: 2px solid var(--arx-blue-bright); padding-left: 12px; font-size: var(--fs-body-sm); color: #fff !important; }
.izb__cta { margin-top: 4px; height: 44px; padding: 0 20px; font-size: 13px; align-self: flex-start; }
@media (max-width: 760px) { .izb__panel { width: 100%; } .izb { height: clamp(440px,66vh,580px); } .izb__cap .t { font-size: var(--fs-h2); } }
.c-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; background: var(--arx-blue); color: #fff; border: 0; border-radius: var(--radius-sm); font-family: var(--font-sans); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .25s var(--ease-out); }
.c-btn:hover { background: var(--arx-blue-700); }
@media (max-width: 1024px) {
  .cgrid { display: block !important; }
  .rail { position: relative !important; height: auto !important; border-right: 0 !important; border-bottom: 1px solid var(--arx-grey-200) !important; }
  .rail-index { display: none !important; }
  .twocol { grid-template-columns: 1fr !important; }
}

/* ============================================================================
   Mobile optimization (v3). Inline-styled grids are collapsed via attribute
   substring selectors so the JS-rendered variations all reflow on small screens.
   ============================================================================ */
@media (max-width: 860px) {
  /* two-column content splits -> single column */
  #app [style*="minmax(0,.92fr)"], #app [style*="1.05fr .95fr"], #app [style*=".92fr 1.08fr"],
  #app [style*="1.08fr .92fr"], #app [style*=".85fr 1.15fr"], #app [style*=".9fr 1.1fr"],
  #app [style*=".7fr 1.3fr"], #app [style*="1.08fr .92fr"], #app [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  /* 4/5-col bands -> 2 col; 3-col -> 1 col */
  #app [style*="repeat(5,1fr)"], #app [style*="repeat(4,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
  #app [style*="repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
  .a-hero { min-height: auto !important; }
  /* B sticky service image: unstick when stacked */
  #app [style*="position:sticky;top:96px"] { position: static !important; }
}
@media (max-width: 600px) {
  .a-tiles, .b-tiles { grid-template-columns: 1fr 1fr !important; }
  .b-head .b-nav[href^="tel"] { display: none; }
  /* WhatsApp lives in the hero CTAs on mobile; drop the header copy so the phone + CTA fit */
  .a-wa--head, .b-head a.b-btn--ghost { display: none; }
  .a-head__bar, .b-head > div { gap: 8px !important; padding-left: 18px !important; padding-right: 18px !important; }
  .a-btn--head, .b-btn--sm { padding: 0 11px !important; font-size: 12px !important; height: 34px !important; }
}
@media (max-width: 560px) {
  /* Keep BOTH the phone and the CTA visible; the CTA switches to its compact label. */
  .a-btn--head .lbl-full { display: none; }
  .a-btn--head .lbl-min { display: inline; }
  .a-btn--head { padding: 0 12px !important; font-size: 12px !important; height: 34px !important; }
  .site-head__phone, .a-head__phone { font-size: 12px; }
  .site-head__bar { gap: 8px !important; }
  .site-burger { padding: 9px 6px; margin-left: 2px; }
  /* Scale the homepage hero headline so long Latvian words fit without clipping (no mid-word breaks). */
  .a-hero__copy h1 { font-size: clamp(29px,7.4vw,40px) !important; }
}
@media (max-width: 380px) {
  /* Ultra-narrow: tighten the phone so the number + CTA + burger still fit on one row. */
  .site-head__phone, .a-head__phone { font-size: 11.5px; letter-spacing: -.01em; }
  .a-btn--head { padding: 0 10px !important; }
}
@media (max-width: 440px) {
  .a-tiles, .b-tiles, #app [style*="repeat(2,1fr)"] { grid-template-columns: 1fr !important; }
  #app [style*="repeat(5,1fr)"], #app [style*="repeat(4,1fr)"] { grid-template-columns: 1fr 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  [data-px] { transform: none !important; }
}

/* ==========================================================================
   MULTI-PAGE CHROME + PAGES (Atsauce design, sub-pages via site.js)
   ========================================================================== */
/* The header is injected into <div data-site-header>. Left as a normal block, that wrapper
   becomes the sticky containing block and is only header-tall, so the header un-sticks after
   the first scroll. display:contents removes the wrapper box so the header sticks against <body>. */
[data-site-header] { display: contents; }
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245,243,239,.92); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--arx-grey-200); transition: box-shadow .25s var(--ease-out);
}
.site-head.scrolled { box-shadow: 0 8px 24px -16px rgba(20,22,26,.3); }
/* padding-block only, so the container's padding-inline (var(--gutter)) applies and the
   logo lines up with the page content on every width (a shorthand "padding:13px 0" was
   zeroing the horizontal padding, leaving the logo flush to the edge on mobile). */
.site-head__bar { display: flex; align-items: center; gap: clamp(16px,3vw,40px); padding-block: 13px; }
/* Skip-link (a11y bypass-blocks) */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--arx-navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-size: var(--fs-body-sm); font-weight: 600; text-decoration: none; transition: top .2s var(--ease-out); }
.skip-link:focus { top: 8px; }
.site-head__logo { display: inline-flex; align-items: center; }
.site-head__logo img { height: 24px; width: auto; display: block; }
.site-nav { display: flex; gap: clamp(14px,1.8vw,30px); margin-left: 8px; }
.site-nav a {
  font-size: var(--fs-body-sm); font-weight: 500; color: var(--arx-grey-700);
  text-decoration: none; letter-spacing: .01em; padding: 6px 0; position: relative; white-space: nowrap;
}
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--arx-blue); transition: width .3s var(--ease-out); }
.site-nav a:hover { color: var(--arx-black); }
.site-nav a:hover::after { width: 100%; }
.site-nav a.is-active { color: var(--arx-blue); }
.site-nav a.is-active::after { width: 100%; }
.site-head__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.site-head__phone { font-size: var(--fs-body-sm); font-weight: 600; color: var(--arx-black); text-decoration: none; }
.site-burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 11px; margin-left: auto; }
.site-burger span { width: 22px; height: 2px; background: var(--arx-black); border-radius: 2px; }
.site-nav-mobile { display: none; }

/* Content-aware header collapse. Priority = the CTAs (phone + button). The inline
   nav only shows when the full nav + CTAs actually fit; otherwise it folds into the
   burger. JS toggles .is-compact by MEASURING fit, so it adapts to language/label
   width instead of a fixed breakpoint. Header defaults to compact (no-JS safe:
   stays as logo + phone + CTA + burger); JS removes .is-compact when there's room. */
.site-head.is-compact .site-nav { display: none; }
.site-head.is-compact .site-head__phone { font-size: 12.5px; }
.site-head.is-compact .site-burger { display: flex; margin-left: 0; }
.site-head.is-compact .site-head__actions { gap: 8px; }
.site-head.is-compact .site-head__actions .a-btn--head,
.site-head.is-compact .site-head__actions .lang-switch,
.site-head.is-compact .site-head__actions .site-head__phone { display: none; }
.site-head.is-compact .site-head__actions .a-wa--head { display: inline-flex; }
.site-head.is-compact .site-nav-mobile__lang { padding: 18px 0 4px; }
.site-head.is-compact .site-nav-mobile {
  display: flex; flex-direction: column; gap: 2px; padding: 0 var(--gutter);
  max-height: 0; overflow: hidden; visibility: hidden;
  transition: max-height .3s var(--ease-out), visibility 0s .3s;
}
.site-head.is-compact.nav-open .site-nav-mobile { max-height: 520px; visibility: visible; border-top: 1px solid var(--arx-grey-200); padding-bottom: 18px; transition: max-height .3s var(--ease-out); }
.site-head.is-compact .site-nav-mobile a { padding: 13px 0; font-size: 16px; font-weight: 600; color: var(--arx-black); text-decoration: none; border-bottom: 1px solid var(--arx-grey-200); }
.site-head.is-compact .site-nav-mobile a.is-active { color: var(--arx-blue); }
/* Fit measurement: freeze flex-shrink so squished/overlapping items register as overflow. */
.site-head.is-measuring .site-head__bar > *,
.site-head.is-measuring .site-head__actions > * { flex-shrink: 0 !important; }

/* Page hero (sub-page headers) */
.page-hero { padding: clamp(48px,7vw,104px) 0 clamp(28px,3vw,44px); border-bottom: 1px solid var(--arx-grey-200); }
.page-hero__ey { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--arx-blue); }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-display-l);
  line-height: var(--lh-tight); letter-spacing: var(--ls-display); margin: 14px 0 0; max-width: 20ch; color: var(--arx-black);
  /* Never break words mid-syllable; wrap only at spaces. */
  overflow-wrap: normal; word-break: normal; hyphens: none; text-wrap: balance;
}
/* Scale the headline down on small screens so long Latvian words fit without breaking. */
@media (max-width: 600px) { .page-hero h1 { font-size: clamp(1.85rem, 8vw, 2.5rem); } }
@media (max-width: 380px) { .page-hero h1 { font-size: 1.7rem; } }
.page-hero p { margin: 18px 0 0; max-width: 62ch; font-size: var(--fs-body); line-height: var(--lh-relaxed); color: var(--arx-grey-600); }
.page-section { padding: var(--section-y) 0; }

/* About */
.about-lead { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.25; letter-spacing: var(--ls-tight); color: var(--arx-black); max-width: 30ch; }
.about-body { display: flex; flex-direction: column; gap: 18px; max-width: 66ch; }
.about-body p { margin: 0; font-size: var(--fs-body); line-height: var(--lh-relaxed); color: var(--arx-grey-700); }
.about-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(28px,5vw,72px); align-items: start; }
.about-facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--arx-grey-200); border: 1px solid var(--arx-grey-200); margin-top: clamp(28px,4vw,48px); }
.about-facts > div { background: #fff; padding: clamp(20px,2.4vw,30px); }
.about-facts .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px,3.4vw,46px); color: var(--arx-blue); line-height: 1; }
.about-facts .l { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--arx-grey-600); margin-top: 8px; line-height: 1.4; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/* Services */
.svc-list { display: flex; flex-direction: column; }
.svc-row { display: grid; grid-template-columns: 64px minmax(0,1fr) minmax(0,1.1fr); gap: clamp(18px,3vw,44px); align-items: center; padding: clamp(26px,3.5vw,48px) 0; border-top: 1px solid var(--arx-grey-200); }
.svc-row:last-child { border-bottom: 1px solid var(--arx-grey-200); }
.svc-row__n { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: clamp(30px,3vw,44px); color: var(--arx-blue); line-height: .9; }
.svc-row__t { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); margin: 0 0 8px; letter-spacing: -.01em; }
.svc-row__d { margin: 0; font-size: var(--fs-body-sm); line-height: var(--lh-relaxed); color: var(--arx-grey-600); }
.svc-row__img { overflow: hidden; border-radius: var(--radius-xs); aspect-ratio: 4/3; }
.svc-row__img img { width: 100%; height: 100%; object-fit: cover; }
.svc-row__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 18px; border: 1.5px solid var(--arx-grey-300); border-radius: var(--radius-sm); font-size: var(--fs-body-sm); font-weight: 600; color: var(--arx-blue); letter-spacing: .01em; transition: gap .3s var(--ease-out), color .25s var(--ease-out), background .25s var(--ease-out), border-color .25s var(--ease-out); }
.svc-row__cta:hover { gap: 12px; color: #fff; background: var(--arx-blue); border-color: var(--arx-blue); }
@media (max-width: 760px) { .svc-row { grid-template-columns: 44px 1fr; } .svc-row__img { grid-column: 1/-1; margin-top: 6px; } }

/* Pakalpojumi: process steps + sectors grid */
.svc-steps { display: grid; grid-template-columns: repeat(5,1fr); gap: clamp(18px,2vw,30px); margin-top: clamp(32px,4vw,52px); }
.svc-steps > div { border-top: 2px solid var(--arx-blue); padding-top: 16px; }
.svc-steps .n { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); color: var(--arx-blue); line-height: 1; }
.svc-steps h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4); margin: 10px 0 6px; letter-spacing: var(--ls-tight); }
.svc-steps p { font-size: var(--fs-body-sm); line-height: var(--lh-relaxed); color: var(--arx-grey-600); margin: 0; }
@media (max-width: 860px) { .svc-steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .svc-steps { grid-template-columns: 1fr; } }
.sector-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--arx-grey-200); border: 1px solid var(--arx-grey-200); margin-top: clamp(28px,4vw,48px); }
.sector-grid > div { background: #fff; padding: clamp(22px,2.4vw,32px); }
.sector-grid h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4); margin: 0 0 6px; letter-spacing: var(--ls-tight); }
.sector-grid p { font-size: var(--fs-body-sm); line-height: var(--lh-relaxed); color: var(--arx-grey-600); margin: 0; }
@media (max-width: 760px) { .sector-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px) { .sector-grid { grid-template-columns: 1fr; } }

/* Projects grid */
.proj-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,2vw,28px); }
@media (max-width: 900px) { .proj-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-card { display: block; text-decoration: none; color: inherit; transition: transform .5s var(--ease-out); }
.proj-card:hover { transform: translateY(-6px); }
/* Grid (listing + related) cards: a contained white frame so the caption is padded
   (not flush to the edge) and the hover lift reads as one cohesive card rather than a
   floating image with edge text. Scoped to .proj-grid so the homepage overlay cards
   (cardOver, which also use .proj-card) keep their own styling. */
.proj-grid .proj-card { background: #fff; border: 1px solid var(--arx-grey-200); border-radius: var(--radius-sm); overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s var(--ease-out); }
.proj-grid .proj-card:hover { box-shadow: 0 26px 52px -30px rgba(20,22,26,.55); border-color: transparent; }
.proj-card__img { position: relative; overflow: hidden; aspect-ratio: 4/5; background: var(--arx-grey-200); }
.proj-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.proj-card:hover .proj-card__img img { transform: scale(1.05); }
.proj-card__body { padding: clamp(15px,1.4vw,19px) clamp(17px,1.6vw,21px) clamp(17px,1.6vw,22px); }
.proj-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.proj-card__brand { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px,1.5vw,21px); letter-spacing: var(--ls-tight); color: var(--arx-black); }
.proj-card__year { font-size: var(--fs-caption); color: var(--arx-grey-500); font-variant-numeric: tabular-nums; flex: none; }
.proj-card__sub { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--arx-grey-600); margin-top: 7px; }

/* Project detail + gallery */
.pd-lead { width: 100%; height: clamp(320px,52vh,600px); overflow: hidden; position: relative; margin: clamp(8px,2vw,24px) 0 0; background: var(--arx-navy); }
.pd-lead img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.pd-head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: end; }
.pd-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: var(--fs-body-sm); color: var(--arx-grey-600); }
.pd-meta b { color: var(--arx-black); font-weight: 700; }
.gal-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(10px,1.4vw,18px); }
.gal-grid .gal-item:first-child { grid-column: 1 / -1; }
@media (max-width: 640px) { .gal-grid { grid-template-columns: 1fr; } .gal-grid .gal-item:first-child { grid-column: auto; } }
.gal-item { position: relative; overflow: hidden; border-radius: var(--radius-xs); aspect-ratio: 3/2; background: var(--arx-grey-200); cursor: zoom-in; border: 0; padding: 0; display: block; width: 100%; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.gal-item:hover img { transform: scale(1.04); }

/* Lightbox */
.lbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(20,22,26,.94); padding: 4vw; }
.lbox.open { display: flex; }
.lbox__img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: var(--radius-sm); }
.lbox__close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; opacity: .8; }
.lbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 34px; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; }
.lbox__nav:hover { background: rgba(255,255,255,.2); }
.lbox__prev { left: 3vw; } .lbox__next { right: 3vw; }
.lbox__close:hover { opacity: 1; }

/* Footer (sub-pages): refined multi-column. Brand + contacts on the left,
   four grouped link columns (incl. a team column) on the right. */
.site-foot { background: var(--arx-navy); color: rgba(255,255,255,.72); padding: clamp(52px,6vw,88px) 0 clamp(24px,3vw,36px); }
.site-foot a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .25s var(--ease-out); }
.site-foot a:hover { color: #fff; }
.site-foot__top { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,3fr); gap: clamp(32px,4vw,72px); }
.site-foot__brand img { height: 27px; width: auto; display: block; margin-bottom: 18px; }
.site-foot__brand p { font-size: var(--fs-body-sm); line-height: var(--lh-relaxed); color: rgba(255,255,255,.55); max-width: 34ch; margin: 0 0 24px; }
.site-foot__contact { display: flex; flex-direction: column; gap: 12px; font-size: var(--fs-body-sm); }
.site-foot__contact > a, .site-foot__contact > span { display: inline-flex; align-items: flex-start; gap: 11px; color: rgba(255,255,255,.78); }
.site-foot__contact > span { color: rgba(255,255,255,.55); }
.site-foot__contact svg { flex: none; margin-top: 2px; opacity: .65; }
.site-foot__cols { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(22px,2.4vw,40px); }
.site-foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.site-foot__h { font-family: var(--font-sans); font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: rgba(255,255,255,.42); margin: 0 0 5px; }
.site-foot__col > a { font-size: var(--fs-body-sm); position: relative; }
.site-foot__col > a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--arx-blue-bright, #7FB0F5); transition: width .3s var(--ease-out); }
.site-foot__col > a:hover::after { width: 100%; }
.site-foot__person { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 15px; font-size: var(--fs-body-sm); }
.site-foot__person .tm-name { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: var(--fs-body); color: #fff; margin-bottom: 2px; }
.site-foot__person .tm-role { color: rgba(255,255,255,.45); font-size: var(--fs-caption); margin-bottom: 5px; }
.site-foot__person a { color: rgba(255,255,255,.72); }
.site-foot__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 28px; border-top: 1px solid rgba(255,255,255,.12); margin-top: clamp(40px,5vw,68px); padding-top: 20px; }
.site-foot__base span { font-size: var(--fs-caption); color: rgba(255,255,255,.4); }
@media (max-width: 1000px) {
  .site-foot__top { grid-template-columns: 1fr; gap: 40px; }
  .site-foot__cols { grid-template-columns: repeat(2,1fr); gap: 30px 24px; }
}
@media (max-width: 460px) {
  .site-foot__cols { grid-template-columns: 1fr; }
}

/* Contact */
.contact-cols { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px,5vw,72px); align-items: start; }
@media (max-width: 800px) { .contact-cols { grid-template-columns: 1fr; } }
.contact-block { margin-bottom: 28px; }
.contact-block h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4); margin: 0 0 8px; }
.contact-block p, .contact-block a { font-size: var(--fs-body-sm); line-height: var(--lh-relaxed); color: var(--arx-grey-700); text-decoration: none; display: block; }
.contact-block a { padding-block: 2px; }
.contact-block a:hover { color: var(--arx-blue); }
.contact-person { padding: 18px 0; border-top: 1px solid var(--arx-grey-200); }
.contact-person:first-of-type { padding-top: 6px; border-top: 0; }
.contact-person b { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4); letter-spacing: var(--ls-tight); display: block; }
/* Role: quiet sentence-case line, not the wide all-caps that felt cramped under the name. */
.contact-person .r { font-size: var(--fs-body-sm); color: var(--arx-grey-500); margin: 3px 0 9px; letter-spacing: .005em; text-transform: none; }

/* Contact form: success + inline-error states */
.contact-formwrap { min-width: 0; }
/* Header dropdowns (Pakalpojumi / Projekti) on every header: homepage .b-nav, sub-pages
   .site-nav, legal page (site.js). Hover or keyboard focus opens; a 12px bridge keeps it
   open while the pointer travels down. */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-dd__caret { font-size: .7em; opacity: .7; transition: transform .2s var(--ease-out); }
.nav-dd:hover .nav-dd__caret, .nav-dd:focus-within .nav-dd__caret { transform: rotate(180deg); }
.nav-dd__menu { position: absolute; top: 100%; left: -18px; margin-top: 12px; min-width: 240px; padding: 8px 0; display: flex; flex-direction: column; background: #0F1530; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); box-shadow: 0 24px 48px -20px rgba(0,0,0,.75); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility 0s .18s; z-index: 80; }
.nav-dd__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-dd:hover .nav-dd__menu, .nav-dd:focus-within .nav-dd__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--ease-out), transform .18s var(--ease-out); }
.nav-dd__menu a { display: block; padding: 9px 20px !important; font-size: 14px !important; font-weight: 500; line-height: 1.3; color: rgba(255,255,255,.82) !important; white-space: nowrap; text-decoration: none; }
.nav-dd__menu a::after { display: none !important; }
.nav-dd__menu a:hover, .nav-dd__menu a:focus-visible { background: rgba(255,255,255,.06); color: #fff !important; }
.nav-dd__menu a.nav-dd__all { font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 6px; padding-bottom: 12px !important; }
/* Mobile menus: sub-pages indented under their parent; the longer list scrolls inside the panel. */
.site-nav-mobile a.nav-sub, .b-mobnav a.nav-sub { padding: 9px 0 9px 18px !important; font-size: 14px !important; font-weight: 500 !important; color: rgba(255,255,255,.72) !important; border-bottom: 0 !important; }
.site-head.is-compact.nav-open .site-nav-mobile, .b-head.is-compact.nav-open .b-mobnav { max-height: calc(100svh - 70px) !important; overflow-y: auto !important; }
/* Service landing pages stack the homepage blocks back to back; their own padding
   (up to 144px top AND bottom) doubled into ~290px gaps. Tighter rhythm here only. */
body[data-page="service"] #main > section[id^="b-"] { padding-top: clamp(56px,6vw,96px) !important; padding-bottom: clamp(56px,6vw,96px) !important; }
/* Alternate the section grounds like the homepage does (why #0F1530, projects page ground,
   timeline #0F1530, stats image, form #0F1530), so neighbouring blocks read as separate. */
body[data-page="service"] #b-proc { background: #0F1530; }
/* JKonsult agency credit in every footer bottom row (same pattern as nordbus / komanda24 / vilsa). */
.footer-credit { display: inline-flex; align-items: center; gap: 8px; }
.footer-credit-link { display: inline-flex; align-items: center; opacity: .55; transition: opacity .2s; }
.footer-credit-link:hover { opacity: .9; }
.footer-credit-logo { height: 22px; width: auto; display: block; }
/* Kontakti form: same dark panel + fields as the homepage #b-form, sticky beside the long team list.
   Sticky only on wide AND tall viewports, so the whole form always fits under the header. */
.contact-formpanel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px,2vw,22px); background: #0F1530; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-md); padding: clamp(24px,3vw,40px); color: #fff; }
.contact-formpanel[hidden] { display: none; }
@media (max-width: 520px) { .contact-formpanel { grid-template-columns: 1fr; } }
/* Form panel ~571px + 63px header: sticky whenever it fits under the header (laptops included). */
@media (min-width: 801px) and (min-height: 680px) { .contact-formwrap--sticky { position: sticky; top: 80px; } }
.form-note { margin: 14px 0 0; padding: 12px 15px; border-radius: var(--radius-sm); font-size: var(--fs-body-sm); line-height: 1.5; }
.form-note--error { background: #FBEDED; color: #9B1C1C; }
.form-note a { color: inherit; font-weight: 700; text-decoration: underline; }
.form-done { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: clamp(28px,3vw,40px); border: 1px solid var(--arx-grey-200); border-radius: var(--radius-md); background: var(--arx-paper); }
/* display:flex above would otherwise defeat the [hidden] attribute, so the panel must
   explicitly hide when hidden (same reason we only reveal it via JS on success). */
.form-done[hidden] { display: none; }
.form-done__ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--arx-blue); color: #fff; margin-bottom: 14px; }
.form-done h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3); margin: 0; letter-spacing: var(--ls-tight); }
.form-done p { margin: 8px 0 0; font-size: var(--fs-body); line-height: var(--lh-relaxed); color: var(--arx-grey-700); }
.form-done a { color: var(--arx-blue); font-weight: 600; }

/* Reveal (sub-pages): the shared Engine (engine.js) drives motion via inline styles
   plus the data-shown marker, exactly like the homepage. These rules only pre-hide
   static markup to prevent a flash before the Engine boots. Scoped to sub-pages
   (body[data-page]) so the homepage (body[data-variant], no data-page) is never
   affected. NO CSS transform here on purpose: the Engine clears the inline transform
   to "" on reveal, so any CSS transform would reappear and shift elements down. */
body[data-page] [data-rise]:not([data-shown]) { opacity: 0; }
body[data-page] [data-img]:not([data-shown]) { clip-path: inset(0 100% 0 0); }
@media (prefers-reduced-motion: reduce) {
  body[data-page] [data-rise]:not([data-shown]) { opacity: 1; }
  body[data-page] [data-img]:not([data-shown]) { clip-path: none; }
}

/* Contact form: collapse the email/phone pair to one column on small phones (R2) */
@media (max-width: 520px) {
  #contactForm > div[style*="1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ============================================================================
   IMERSIVS (dark) THEME for all sub-pages.
   Client direction: the WHOLE site uses the immersive dark design, not only the
   homepage. Sub-pages are scoped by body[data-page] (the homepage uses
   body[data-variant] and is unaffected). We remap the surface + text tokens to
   a dark palette so the existing token-based markup flips automatically, then
   add targeted overrides for the few hard-coded light surfaces + the chrome.
   Accent text uses the bright blue (#7FB0F5) to read on dark; buttons keep the
   solid brand blue background.
   ============================================================================ */
body[data-page] {
  /* surfaces */
  --arx-white:    #121A33;
  --arx-paper:    #0F1530;
  --arx-paper-2:  #0C1226;
  --arx-navy:     #172150;
  /* text */
  --arx-black:    #F3F6FC;
  --arx-ink-soft: rgba(255,255,255,.74);
  --arx-grey-900: #F3F6FC;
  --arx-grey-800: #E7EBF5;
  --arx-grey-700: rgba(255,255,255,.80);
  --arx-grey-600: rgba(255,255,255,.66);
  --arx-grey-500: rgba(255,255,255,.54);
  --arx-grey-400: rgba(255,255,255,.44);
  /* lines / faint fills */
  --arx-grey-300: rgba(255,255,255,.20);
  --arx-grey-200: rgba(255,255,255,.13);
  --arx-grey-100: rgba(255,255,255,.08);
  --arx-grey-50:  rgba(255,255,255,.05);
  background: #0C1226;
  color: var(--arx-black);
}
/* accent text (numbers, eyebrows) needs the bright blue on dark */
body[data-page] .page-hero__ey,
body[data-page] .about-facts .n,
body[data-page] .svc-row__n,
body[data-page] .svc-steps .n,
body[data-page] .svc-row__cta,
body[data-page] .contact-block a:hover,
body[data-page] .site-nav a.is-active { color: #7FB0F5; }
body[data-page] .svc-steps > div { border-top-color: #7FB0F5; }
body[data-page] .svc-row__cta { border-color: rgba(127,176,245,.5); }
body[data-page] .svc-row__cta:hover { color: #fff; background: var(--arx-blue); border-color: var(--arx-blue); }

/* Hard-coded light block fills -> dark cards */
body[data-page] .about-facts > div,
body[data-page] .sector-grid > div,
body[data-page] .proj-grid .proj-card { background: #121A33; }
body[data-page] .about-facts,
body[data-page] .sector-grid { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.13); }
body[data-page] .proj-grid .proj-card { border-color: rgba(255,255,255,.12); }
body[data-page] .proj-grid .proj-card:hover { box-shadow: 0 26px 52px -28px rgba(0,0,0,.7); border-color: rgba(127,176,245,.4); }
body[data-page] .proj-card__img { background: #0C1226; }

/* Header: dark, translucent, matches the homepage b-head */
body[data-page] .site-head {
  background: rgba(10,15,32,.72); backdrop-filter: saturate(1.3) blur(14px);
  border-bottom-color: rgba(255,255,255,.10);
}
body[data-page] .site-head.scrolled { background: rgba(10,15,32,.9); box-shadow: 0 10px 30px -18px rgba(0,0,0,.8); }
body[data-page] .site-head__logo img { content: url("assets/brand/arx-mark-white.png"); }
body[data-page] .site-nav a { color: rgba(255,255,255,.8); }
body[data-page] .site-nav a:hover { color: #fff; }
body[data-page] .site-head__phone { color: rgba(255,255,255,.9); }
body[data-page] .site-nav-mobile { background: #0C1226; }
body[data-page] .site-head.nav-open .site-nav-mobile { border-top-color: rgba(255,255,255,.12); }
body[data-page] .site-nav-mobile a { color: #fff; border-bottom-color: rgba(255,255,255,.1); }

/* Footer: darkest band on the page */
body[data-page] .site-foot { background: #070B19; border-top: 1px solid rgba(255,255,255,.08); }

/* Page hero + section rhythm on dark */
body[data-page] .page-hero { border-bottom-color: rgba(255,255,255,.12); }
body[data-page] .pd-lead { background: #0C1226; }

/* Full-bleed image hero (used by rebuilt sub-page heroes) */
.page-hero--img { position: relative; min-height: clamp(360px,60vh,560px); display: flex; align-items: flex-end; overflow: hidden; padding: 0; border-bottom: 0; }
.page-hero--img > .phi-bg { position: absolute; inset: 0; overflow: hidden; }
.page-hero--img > .phi-bg img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; transform: scale(1.12); }
.page-hero--img > .phi-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(12,18,38,.62) 0%,rgba(12,18,38,.5) 38%,rgba(12,18,38,.86) 82%,rgba(12,18,38,.96) 100%); }
.page-hero--img .phi-inner { position: relative; width: 100%; padding: 0 var(--gutter) clamp(40px,6vw,84px); }
.page-hero--img .page-hero__ey { color: rgba(255,255,255,.82) !important; text-shadow: 0 1px 10px rgba(0,0,0,.55); }

/* Language switcher (LV/EN/DE) - lives in the dark headers. */
.lang-switch { display: inline-flex; align-items: center; gap: 1px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 3px; flex: none; }
.lang-switch__b { background: none; border: 0; color: rgba(255,255,255,.6); font-family: var(--font-sans); font-size: 11.5px; font-weight: 700; letter-spacing: .03em; padding: 4px 8px; border-radius: 999px; cursor: pointer; line-height: 1; transition: color .2s var(--ease-out), background .2s var(--ease-out); }
.lang-switch__b:hover { color: #fff; }
.lang-switch__b.is-active { color: #0C1226; background: #fff; }
@media (max-width: 400px) { .lang-switch__b { padding: 4px 6px; font-size: 11px; } }

/* Homepage hero: keep the headline readable + correctly sized on mobile. */
@media (max-width: 600px) {
  .b-hero { min-height: 90vh; }
  .b-hero__h1 { font-size: clamp(2.1rem, 9.5vw, 3.1rem) !important; }
}

/* Disciplines: desktop = sticky swapping image (b-do-desk); mobile = accordion. */
.b-do-mob { display: none; }
@media (max-width: 860px) {
  .b-do-desk { display: none !important; }
  .b-do-mob { display: block; }
}
.b-acc { border-top: 1px solid rgba(255,255,255,.14); }
.b-acc:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.b-acc__hd { display: flex; align-items: center; gap: 16px; width: 100%; background: none; border: 0; padding: 20px 2px; cursor: pointer; text-align: left; color: #fff; }
.b-acc__n { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4); color: #7FB0F5; line-height: 1; flex: none; }
.b-acc__t { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4); color: #fff; flex: 1; line-height: 1.15; }
.b-acc__chev { width: 11px; height: 11px; border-right: 2px solid rgba(255,255,255,.55); border-bottom: 2px solid rgba(255,255,255,.55); transform: rotate(45deg); transition: transform .3s var(--ease-out); flex: none; margin: -4px 4px 0 0; }
.b-acc.is-open .b-acc__chev { transform: rotate(-135deg); margin-top: 2px; }
.b-acc__panel { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease-out); }
.b-acc.is-open .b-acc__panel { max-height: 760px; }
.b-acc__inner { padding: 0 2px 24px; }
.b-acc__img { overflow: hidden; border-radius: var(--radius-xs); aspect-ratio: 16/10; margin-bottom: 14px; background: #161D38; }
.b-acc__img img { width: 100%; height: 100%; object-fit: cover; }
.b-acc__panel p { margin: 0; color: rgba(255,255,255,.72); font-size: var(--fs-body-sm); line-height: var(--lh-relaxed); }
/* Image heroes: let the headline spread HORIZONTALLY (wider max-width, fluid size,
   tighter leading) so long Latvian headings wrap into fewer lines instead of
   stacking tall and overflowing the hero on short/wide viewports. */
.page-hero--img h1 { color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.42), 0 8px 40px rgba(0,0,0,.5); max-width: min(100%, 34ch); font-size: clamp(2rem, 3.6vw + .6rem, 3.6rem); line-height: 1.04; }
.page-hero--img p { color: rgba(255,255,255,.9); text-shadow: 0 1px 12px rgba(0,0,0,.6); }
/* Mobile tap targets: keep the header CTA a comfortable height (R3) */
@media (max-width: 600px) {
  .site-head .a-btn--head { min-height: 40px; }
}

/* ==========================================================================
   Cookie consent (banner + settings modal) + form consent + legal pages
   ========================================================================== */
.cookie-banner { position: fixed; left: clamp(12px,2vw,24px); bottom: clamp(12px,2vw,24px); z-index: 300; max-width: 460px; background: var(--arx-navy); color: rgba(255,255,255,.86); border-radius: var(--radius-md); box-shadow: 0 22px 55px -20px rgba(20,22,26,.65); padding: 22px 24px; font-size: var(--fs-body-sm); line-height: 1.55; }
.cookie-banner strong { color: #fff; }
.cookie-banner a { color: #9DB4E0; text-decoration: underline; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookie-btn { font-family: var(--font-sans); font-size: 13px; font-weight: 600; border-radius: var(--radius-sm); padding: 9px 15px; cursor: pointer; border: 1.5px solid transparent; transition: background .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out); }
.cookie-btn--solid { background: var(--arx-blue); color: #fff; }
.cookie-btn--solid:hover { background: #3765c4; }
.cookie-btn--ghost { background: transparent; color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.28); }
.cookie-btn--ghost:hover { border-color: #fff; color: #fff; }
@media (max-width: 560px) { .cookie-banner { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 18px; } .cookie-banner__actions .cookie-btn { flex: 1 1 auto; } }

.cookie-modal { position: fixed; inset: 0; z-index: 320; display: flex; align-items: center; justify-content: center; background: rgba(20,22,26,.55); padding: 20px; }
.cookie-modal__card { background: #fff; color: var(--arx-black); border-radius: var(--radius-md); max-width: 520px; width: 100%; padding: clamp(24px,3vw,36px); position: relative; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.cookie-modal__close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--arx-grey-500); }
.cookie-modal__close:hover { color: var(--arx-black); }
.cookie-modal__card h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3); margin: 0 0 8px; letter-spacing: var(--ls-tight); }
.cookie-modal__lead { font-size: var(--fs-body-sm); color: var(--arx-grey-600); line-height: 1.55; margin: 0 0 16px; }
.cookie-opt { display: flex; align-items: flex-start; gap: 14px; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--arx-grey-200); font-size: var(--fs-body-sm); line-height: 1.5; }
.cookie-opt span { color: var(--arx-grey-700); }
.cookie-opt b { color: var(--arx-black); }
.cookie-opt input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--arx-blue); cursor: pointer; }
.cookie-opt--fixed input { cursor: not-allowed; opacity: .6; }
.cookie-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.cookie-modal__actions .cookie-btn--ghost { color: var(--arx-grey-700); border-color: var(--arx-grey-300); }
.cookie-modal__actions .cookie-btn--ghost:hover { border-color: var(--arx-black); color: var(--arx-black); }

/* Form GDPR consent line: colors inherit so it reads on the light (A/contact) and dark (B) forms. */
.form-consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 0; font-size: var(--fs-caption); line-height: 1.5; color: inherit; opacity: .82; cursor: pointer; }
.form-consent input { width: 17px; height: 17px; flex: none; margin-top: 1px; accent-color: var(--arx-blue); cursor: pointer; }
.form-consent a { color: currentColor; text-decoration: underline; font-weight: 600; }
/* Immersive (B) homepage form sits on a dark band: force a light consent line. */
body[data-variant="B"] .form-consent { color: rgba(255,255,255,.82); }
body[data-variant="B"] .form-consent a { color: #9BC1FF; }

/* Legal / policy prose */
.legal { max-width: 820px; }
.legal .legal-updated { font-size: var(--fs-body-sm); color: var(--arx-grey-500); margin: 0 0 6px; }
.legal h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3); letter-spacing: var(--ls-tight); margin: clamp(26px,3vw,40px) 0 10px; }
.legal h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4); margin: 22px 0 8px; }
.legal p, .legal li { font-size: var(--fs-body); line-height: var(--lh-relaxed); color: var(--arx-grey-700); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { margin: 0 0 7px; }
.legal a { color: var(--arx-blue); text-decoration: underline; }
.legal strong { color: var(--arx-black); }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: var(--fs-body-sm); }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--arx-grey-200); vertical-align: top; }
.legal th { background: var(--arx-paper); font-weight: 700; color: var(--arx-black); }
.legal .legal-tablewrap { overflow-x: auto; }
