/* Ranko Dzolic Handball Consulting — styles
   No external fonts or resources: everything is served from this origin. */

:root {
  --bg: #f8f7f3;
  --surface: #ffffff;
  --text: #161616;
  --muted: #5f5c55;
  --line: #e5e2d9;
  --ink: #0d0d0d;
  --band: var(--ink);        /* marquee strip */
  --accent: #c79a05;
  --accent-soft: #e0bc5c;
  --accent-text: #7f6000;
  --on-accent: #141414;
  --on-ink: #f4f1ea;
  --hero: #f3ede0;
  --glow: rgba(199, 154, 5, .22);
  --focus: #7f6000;          /* ≥ 3:1 on light backgrounds (WCAG 1.4.11) */
  --shadow: 0 1px 2px rgba(22, 22, 22, .04), 0 12px 32px -12px rgba(22, 22, 22, .14);

  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --surface: #1a1a18;
    --text: #efede6;
    --muted: #a8a59e;
    --line: #2d2d2a;
    --ink: #000000;
    --band: #1a1a18;           /* same tone as the header, softer than black */
    --hero: #171714;
    --accent: #d9ad1c;
    --accent-soft: #b8892a;
    --accent-text: #e6be38;
    --glow: rgba(217, 173, 28, .16);
    --focus: #d9ad1c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
main { flex: 1; outline: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
svg { display: block; }
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.site-footer :focus-visible, .marquee :focus-visible { outline-color: var(--accent); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600; transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

.eyebrow {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text); font-weight: 650; margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  background: var(--btn-bg); color: var(--on-accent);
  padding: 15px 26px; border-radius: 99px; border: 1px solid transparent;
  text-decoration: none; font-weight: 650; font-size: 16px; line-height: 1;
  transition: background-color .25s, box-shadow .3s var(--ease), border-color .25s;
  isolation: isolate; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { box-shadow: 0 10px 30px -10px var(--accent); }
.btn .ic { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn-ghost { --btn-bg: transparent; color: var(--text); border-color: var(--line); border-color: color-mix(in srgb, var(--text) 22%, transparent); }
.btn-ghost:hover { border-color: var(--text); box-shadow: none; }
.btn-ghost::after { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg); /* fallback for browsers without color-mix() */
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  /* Hairline as a shadow, not a border, so the header is exactly --header-h tall. */
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(0, 0, 0, .35); }
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.1; }
.logo-text span { color: var(--muted); font-weight: 400; }
.logo-mark {
  position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); flex: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
  transition: transform .5s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(180deg) scale(1.15); }

.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  position: relative; display: block; padding: 8px 14px; border-radius: 99px;
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--text); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.lang a { display: flex; align-items: center; padding: 6px 9px; border-radius: 99px; opacity: .5; transition: opacity .2s, background-color .2s; }
.lang a svg { width: 22px; height: 15px; border-radius: 3px; }
.lang a:hover { opacity: .9; }
.lang a[aria-current] { opacity: 1; background: var(--line); }

.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.burger { position: relative; width: 18px; height: 10px; }
.burger i { position: absolute; left: 0; right: 0; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger i:first-child { top: 0; }
.burger i:last-child { top: 8px; }
.menu-btn[aria-expanded="true"] .burger i:first-child { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:last-child { top: 4px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 39;
  background: var(--bg); padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: grid; gap: 4px; }
.mobile-menu li a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(30px, 9vw, 44px); text-decoration: none;
}
.mm-n { font-family: var(--sans); font-size: 13px; color: var(--accent-text); letter-spacing: .1em; }
.mm-foot a { color: var(--accent-text); font-weight: 600; text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  /* The hero sits under the transparent header, so it fills the whole first screen. */
  min-height: min(100vh, 940px);
  min-height: min(100svh, 940px);
  display: flex; align-items: center;
  padding: clamp(72px, 12vw, 128px) 0 clamp(96px, 12vw, 140px);
  border-bottom: 1px solid var(--line);
  margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(64px, 10vw, 112px));
}
.hero-bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(120deg, var(--hero), var(--bg) 70%); }
.hero-bg .glow {
  position: absolute; width: 60vmax; height: 60vmax; right: -18vmax; top: -22vmax; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.court {
  position: absolute; z-index: -1; right: -3%; bottom: -4%;
  width: min(72%, 900px); height: auto; pointer-events: none; opacity: .24;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40%);
  will-change: transform;
}
.hero-inner { position: relative; }
.hero-title { font-size: clamp(40px, 7vw, 82px); max-width: 13.5em; line-height: 1.04; letter-spacing: -.02em; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .w > span { display: inline-block; }
.hero-lead { max-width: 34em; margin: 28px 0 38px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); color: color-mix(in srgb, var(--text) 80%, transparent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.values { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 48px; font-size: 14px; color: var(--muted); }
.values li { display: flex; align-items: center; gap: 10px; }
.values li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.scroll-line { position: relative; width: 1px; height: 44px; background: var(--line); overflow: hidden; }
.scroll-line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: var(--accent); animation: scroll-line 2.2s var(--ease) infinite;
}
@keyframes scroll-line { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ---------- Marquee ---------- */
.marquee { position: relative; background: var(--band); color: var(--on-ink); overflow: hidden; padding: 20px 0; border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-toggle {
  display: none; position: absolute; z-index: 1; right: var(--gutter); top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; padding: 0; cursor: pointer;
  align-items: center; justify-content: center;
  background: var(--band); color: var(--on-ink); border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: -24px 0 24px 6px var(--band);
  transition: border-color .2s;
}
.js .marquee-toggle { display: inline-flex; }
.marquee-toggle:hover { border-color: var(--accent); }
.mq-icon { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.marquee.is-paused .mq-icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.marquee ul { display: flex; flex: none; }
.marquee li {
  display: flex; align-items: center; gap: 34px; padding-right: 34px;
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.6vw, 30px); white-space: nowrap;
}
.marquee li::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 132px) 0; }
.head { max-width: 42em; margin-bottom: clamp(36px, 5vw, 60px); }
.head h2 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 16px; }
.head p { color: var(--muted); font-size: 18px; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }

.card {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .35s, box-shadow .45s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--glow), transparent 60%);
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card .n { font-family: var(--serif); color: var(--accent-text); font-size: 15px; font-weight: 600; }
.card-ic {
  width: 46px; height: 46px; padding: 11px; border-radius: 14px;
  color: var(--accent-text); background: color-mix(in srgb, var(--accent) 12%, transparent);
  transition: transform .5s var(--ease), background-color .3s;
}
.card:hover .card-ic { transform: rotate(-8deg) scale(1.06); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.card h3 { font-size: 23px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Approach */
.approach { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.approach-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
.principles { counter-reset: p; }
.principle {
  position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 20px;
  padding: 34px 0;
}
.principle:first-child { padding-top: 6px; }
.p-n {
  font-family: var(--serif); font-size: 44px; line-height: 1; font-weight: 600;
  color: transparent; -webkit-text-stroke: 1.2px var(--accent);
}
.principle h3 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 10px; }
.principle p { color: var(--muted); font-size: 17px; max-width: 30em; }
.p-line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: 0 50%; }
.principle:last-child .p-line { display: none; }

/* Connect */
.connect { padding: clamp(56px, 7vw, 84px) 0 0; }
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.link {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; text-decoration: none;
  transition: border-color .3s, box-shadow .45s var(--ease);
}
.link::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx) var(--my), var(--glow), transparent 60%);
}
.link:only-child { width: 100%; max-width: 560px; margin-inline: auto; }
.link:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.link:hover::before { opacity: 1; }
.link-ic { width: 30px; height: 30px; flex: none; color: var(--accent-text); }
.link-body { min-width: 0; }
.link b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.link small { display: block; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.link .ar { margin-left: auto; width: 24px; height: 24px; flex: none; color: var(--accent-text); transition: transform .35s var(--ease); }
.link:hover .ar { transform: translate(4px, 0); }
.link[target]:hover .ar { transform: translate(3px, -3px); }

/* Contact */
.contact { text-align: center; }
.contact .head { margin-inline: auto; }
.contact .eyebrow { justify-content: center; }
.contact .eyebrow::after { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.mail {
  position: relative; display: inline-block;
  font-family: var(--serif); font-size: clamp(26px, 5.4vw, 56px); line-height: 1.2;
  color: var(--text); text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
  padding-bottom: 4px;
}
.mail:hover { color: var(--accent-text); background-size: 0 2px; background-position: 100% 100%; }
.mail-fallback { font-family: var(--serif); font-size: clamp(22px, 4vw, 36px); }
.contact-cta { margin-top: 40px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); padding: 22px 0; font-size: 13.5px; margin-top: clamp(40px, 6vw, 80px); }
.foot { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center; }
.foot small { font-size: inherit; opacity: .6; }
.foot ul { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot nav a { display: inline-block; padding: 4px 0; color: var(--on-ink); opacity: .75; text-decoration: none; transition: opacity .2s; }
.foot nav a:hover, .foot nav a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.legal-wrap { max-width: 860px; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; color: var(--accent-text); text-decoration: none; font-weight: 600; }
.back-ic { width: 18px; height: 18px; transform: rotate(180deg); transition: transform .3s var(--ease); }
.back:hover .back-ic { transform: rotate(180deg) translateX(4px); }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 12px; }
.legal-de { color: var(--muted); font-weight: 400; }
.legal-sub { color: var(--muted); margin-bottom: 28px; }
.legal-lead { padding: 22px 24px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; margin: 24px 0 8px; }
.legal h2 { font-size: 21px; margin: 38px 0 10px; }
.legal p { color: var(--muted); font-size: 16px; max-width: 46em; margin-bottom: 10px; }
.legal p strong { color: var(--text); }
.legal a { color: var(--accent-text); text-underline-offset: 3px; }
.todo { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); padding: 0 5px; border-radius: 4px; }

/* ---------- 404 ---------- */
.nf { padding: clamp(96px, 16vw, 180px) 0; }
.nf h1 { font-size: clamp(40px, 7vw, 76px); margin-bottom: 20px; max-width: 12em; }
.nf h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.nf h1 .w > span { display: inline-block; }
.nf p { color: var(--muted); font-size: 18px; margin-bottom: 32px; }

/* ---------- Animation start states (only with JS + motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero intro is pure CSS so the headline (LCP) never waits for JavaScript. */
  [data-hero-title] .w > span { animation: word-up .95s var(--ease) both; }
  [data-hero-title] .w:nth-child(1) > span { animation-delay: .10s; }
  [data-hero-title] .w:nth-child(2) > span { animation-delay: .17s; }
  [data-hero-title] .w:nth-child(3) > span { animation-delay: .24s; }
  [data-hero-title] .w:nth-child(4) > span { animation-delay: .31s; }
  [data-hero-title] .w:nth-child(5) > span { animation-delay: .38s; }
  [data-hero-title] .w:nth-child(6) > span { animation-delay: .45s; }
  [data-hero-title] .w:nth-child(7) > span { animation-delay: .52s; }
  [data-hero-title] .w:nth-child(n+8) > span { animation-delay: .59s; }

  [data-hero-item] { animation: rise .9s var(--ease) both; }
  .eyebrow[data-hero-item] { animation-delay: .02s; }
  [data-hero-item]:nth-child(3) { animation-delay: .55s; }
  [data-hero-item]:nth-child(4) { animation-delay: .66s; }
  [data-hero-item]:nth-child(5) { animation-delay: .77s; }
  .scroll-cue[data-hero-item] { animation: fade-in 1s .9s both; }

  /* Scroll reveals wait for Motion; un-hidden by a 3 s failsafe otherwise. */
  .js:not(.static) [data-reveal],
  .js:not(.static) [data-reveal-item] { opacity: 0; transform: translateY(26px); }
  .js:not(.static) [data-court] > g { opacity: 0; }
  .js:not(.static) .p-line { transform: scaleX(0); }
}
@keyframes word-up { from { transform: translateY(110%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .main-nav { display: none; }
  .js .menu-btn { display: inline-flex; }
  .approach { grid-template-columns: 1fr; }
  .approach-head { position: static; margin-bottom: 8px; }
}
/* Without JS the menu button can't work — show a compact nav instead. */
@media (max-width: 920px) {
  html:not(.js) .main-nav { display: block; }
  html:not(.js) .main-nav ul { gap: 0; }
  html:not(.js) .main-nav a { padding: 8px; font-size: 14px; }
  html:not(.js) .logo-text span { display: block; font-size: .72em; }
}
@media (max-width: 640px) {
  :root { --header-h: 62px; }
  body { font-size: 16px; }
  .nav { gap: 14px; }
  .logo { font-size: 15px; gap: 10px; }
  .logo-text { white-space: nowrap; }
  .logo-text span { display: block; margin-top: 2px; font-size: .75em; }
  .court { width: 150%; right: -60%; bottom: 0; opacity: .14; }
  .hero { min-height: auto; }
  .scroll-cue { display: none; }
  .hero .eyebrow { font-size: 11.5px; letter-spacing: .12em; }
  .hero .eyebrow::before { width: 18px; }
  .values { margin-top: 36px; }
  .principle { grid-template-columns: 56px 1fr; gap: 14px; }
  .p-n { font-size: 34px; }
  .card { padding: 26px 22px 28px; }
  .link { padding: 20px; }
}
@media (max-width: 380px) {
  .lang a { padding: 6px 7px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Very narrow phones (≤ 360px): keep logo, flags and menu button on one line. */
@media (max-width: 360px) {
  .nav { gap: 8px; }
  .nav-right { gap: 6px; }
  .logo { font-size: 13px; gap: 8px; }
  .lang a { padding: 6px; }
  .lang a svg { width: 20px; height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
  .js .marquee-toggle { display: none; }
}

@media print {
  .site-header, .marquee, .scroll-cue, .court, .hero-bg, .connect, .contact-cta { display: none !important; }
  body { background: #fff; color: #000; }
  .legal p { color: #000; }
}
