/* ==========================================================================
   Zipline Prizren — styles.css
   Colours are taken from the logo (navy, blue, orange) plus warm neutrals;
   the photos bring the landscape colours. Change them here, nowhere else.
   (The map drawings in index.html repeat navy/blue/orange as hex values;
   the map's own land colours are set in tools/build-map.py.)
   ========================================================================== */
:root {
  --navy: #041B54;      /* main text, dark sections ("ZIPLINE" dark end) */
  --blue: #0A5CB5;      /* brand blue ("ZIPLINE" light end), map outlines */
  --orange: #F76B08;    /* accent + every call-to-action ("Prizreni") */
  --orange-hi: #FF8226;
  --warm: #FAF8F4;      /* page background */
  --stone: #D9D4CC;     /* borders, quiet backgrounds */
  --stone-soft: #F0ECE5;
  --ink-soft: #3B4A7A;  /* secondary text on light */
  --on-navy: #C9D6F2;   /* secondary text on navy */
  --navy-deep: #020F35; /* dark sections fade from navy into it */
  --paper: #F5F2E9;     /* map paper (same as PAPER in tools/build-map.py) */
  --ridge-h: clamp(84px, 12.5vw, 180px);

  --display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
  --text: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --hh: 72px;           /* header height */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.is-locked, html.is-locked body { overflow: hidden; }
body {
  margin: 0; background: var(--warm); color: var(--navy);
  font: 400 1.05rem/1.65 var(--text); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
section[id] { scroll-margin-top: calc(var(--hh) - 6px); }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.rules :focus-visible, .footer :focus-visible { outline-color: var(--orange); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(56px, 10vw, 130px); position: relative; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .005em; }
h2 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: .92; }
h3 { font-size: 1.5rem; line-height: 1.05; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font: 700 .82rem/1 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--blue);
}
.kicker::before { content: ''; width: 34px; height: 3px; background: var(--orange); transform: skewX(-35deg); }
.kicker--light { color: #BFD3F5; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 780px; }
.section-sub { margin-top: 18px; color: var(--ink-soft); max-width: 56ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--orange); color: var(--navy);
  font: 700 1rem/1.1 var(--text); letter-spacing: .01em; text-decoration: none;
  transform: skewX(-8deg); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  box-shadow: 0 6px 0 rgba(4, 27, 84, .16);
}
.btn > * { transform: skewX(8deg); }
.btn:hover { transform: skewX(-8deg) translateY(-2px); box-shadow: 0 9px 0 rgba(4, 27, 84, .18); background: var(--orange-hi); }
.btn:active { transform: skewX(-8deg) translateY(2px); box-shadow: 0 2px 0 rgba(4, 27, 84, .2); }
.btn--sm { padding: 10px 18px; font-size: .92rem; box-shadow: none; }
.btn--sm .ico { width: 19px; height: 19px; }
.btn--lg { padding: 17px 28px; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; box-shadow: inset 0 0 0 2px var(--navy), 0 9px 0 rgba(4, 27, 84, .18); }
.ico { width: 22px; height: 22px; flex: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--stone); }
.bar { width: min(1400px, 100% - 2 * var(--gutter)); margin-inline: auto; height: var(--hh); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { flex: none; }
.brand img { height: 58px; width: auto; }
.nav { display: none; gap: clamp(16px, 2.4vw, 34px); font-weight: 500; font-size: .98rem; }
.nav a { text-decoration: none; position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.bar__right { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1.5px solid var(--navy); border-radius: 3px; overflow: hidden; }
.lang-btn { background: transparent; color: var(--navy); border: 0; padding: 7px 12px; font: 700 .82rem/1 var(--text); letter-spacing: .08em; cursor: pointer; }
.lang-btn.is-on { background: var(--navy); color: #fff; }
.menu-btn { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.menu-btn span { width: 24px; height: 2.5px; background: var(--navy); transition: transform .3s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 899px) {
  .nav { position: absolute; left: 0; right: 0; top: var(--hh); flex-direction: column; gap: 0; background: var(--warm); border-bottom: 1px solid var(--stone); padding: 8px var(--gutter) 20px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid var(--stone-soft); }
  .hide-sm { display: none; }
  .brand img { height: 50px; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}

/* ---------- hero: photo + headline left, map right ---------- */
.hero { position: relative; background: var(--warm); overflow: hidden; }
.hero__text { position: relative; z-index: 2; padding: 30px var(--gutter) 34px; }
.hero__head { position: relative; }
.hero__photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--navy); }
.hero__photo picture { display: block; height: 100%; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; }
.hero__photo::after { content: ''; position: absolute; inset: 0; }
.hero__head > :not(.hero__photo) { position: relative; z-index: 1; }
.eyebrow { font: 700 .82rem/1.4 var(--text); letter-spacing: .16em; text-transform: uppercase; color: #FFC48F; margin-bottom: 14px; text-shadow: 0 1px 10px rgba(4, 20, 40, .5); }
.hero h1 { font-size: clamp(3.3rem, 15vw, 5.6rem); line-height: .86; color: #fff; letter-spacing: -.005em; text-shadow: 0 2px 26px rgba(4, 20, 50, .45); }
.hero__sub { margin-top: 20px; font-size: 1.12rem; max-width: 42ch; color: var(--ink-soft); }
.hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 18px; }
/* quick links over the hero photo: the opening hours on Google as a small glass ghost button in the hero's slant,
   then "Na ndiq" + the social logos in glass rings. Only the logos bring their own colours.
   The slant and the glass are drawn on ::before, so the text itself is never transformed and stays sharp. */
.quick { display: grid; justify-items: start; gap: 16px; max-width: 440px; margin-top: 22px; }
.quick__btn::before, .quick__social a {
  background: rgba(4, 22, 66, .5); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  transition: transform .25s var(--ease), background .2s, box-shadow .2s;
}
.quick__btn {
  position: relative; isolation: isolate; min-height: 52px; display: flex; align-items: center; gap: 10px;
  width: 262px; max-width: 100%; padding: 7px 22px 7px 9px; color: #fff; text-decoration: none; font: 700 .92rem/1.15 var(--text);
  transition: transform .25s var(--ease);
}
.quick__btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 3px; transform: skewX(-8deg); }
.quick__btn:hover { transform: translateY(-2px); }
.quick__btn:hover::before { background: rgba(4, 22, 66, .72); box-shadow: inset 0 0 0 1.5px #fff; }
.quick__chip { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.quick__chip svg { width: 19px; height: 19px; }
.quick__btn b { display: block; }
.quick__btn small { display: block; margin-top: 2px; font-size: .78rem; font-weight: 500; color: rgba(255, 255, 255, .86); }
.quick__social { display: flex; align-items: center; gap: 14px; }
.quick__lbl { display: inline-flex; align-items: center; gap: 10px; font: 700 .74rem/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: #FFC48F; text-shadow: 0 1px 2px rgba(2, 15, 53, .6); }
.quick__lbl::before { content: ''; width: 22px; height: 3px; background: var(--orange); transform: skewX(-35deg); }
.quick__social ul { display: flex; gap: 10px; }
.quick__social a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; }
.quick__social a:hover { transform: translateY(-2px); background: rgba(4, 22, 66, .72); box-shadow: inset 0 0 0 1.5px #fff, 0 0 0 3px var(--orange); }
.quick__social svg { width: 24px; height: 24px; }

.hero__map { position: relative; z-index: 1; }
.hero__frame { position: relative; height: clamp(380px, 100vw, 600px); background: var(--paper); border-top: 4px solid var(--orange); border-bottom: 1px solid var(--stone); overflow: hidden; }
.hero__route { display: flex; margin: 16px var(--gutter) 0; }
.map-slot { position: absolute; inset: 0; }
.map { width: 100%; height: 100%; }
.hero__open { position: absolute; inset: 0; z-index: 2; width: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; display: flex; align-items: flex-end; justify-content: flex-end; }
.hero__open.is-on-place { cursor: pointer; }
.hero__open:focus-visible { outline-offset: -6px; }
.chip {
  margin: 0 14px 14px 0; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px;
  background: var(--navy); color: #fff; font: 700 .92rem/1 var(--text); border-radius: 3px;
  transform: skewX(-8deg); box-shadow: 0 6px 0 rgba(4, 27, 84, .16); transition: background .2s, color .2s, transform .25s var(--ease);
}
.chip > * { transform: skewX(8deg); }
.chip svg { width: 18px; height: 18px; }
.hero__open:hover .chip, .hero__open:focus-visible .chip { background: var(--orange); color: var(--navy); transform: skewX(-8deg) translateY(-2px); }
.legend { position: absolute; z-index: 3; left: 12px; top: 12px; display: grid; gap: 5px; padding: 9px 12px; background: rgba(255, 255, 255, .94); border: 1px solid #E2E0D6; border-radius: 3px; font-size: .78rem; font-weight: 500; pointer-events: none; }
.legend li { display: flex; align-items: center; gap: 9px; }
.legend__zip { flex: none; width: 26px; height: 0; border-top: 3.5px solid var(--orange); }
.legend__walk { flex: none; width: 26px; height: 0; border-top: 3.5px dotted var(--blue); }
.compass { position: absolute; z-index: 3; top: 12px; right: 12px; width: 44px; height: 44px; pointer-events: none; }
.compass svg { width: 100%; height: 100%; }
/* OpenStreetMap credit in the map corner (required by the map data licence), kept small like on other maps */
.map-credit { position: absolute; z-index: 3; right: 0; bottom: 0; padding: 2px 7px; font-size: .66rem; line-height: 1.35; color: #5B6785; background: rgba(255, 255, 255, .78); border-top-left-radius: 3px; text-decoration: none; }
.map-credit:hover { color: var(--navy); text-decoration: underline; }
.map-credit--x { right: auto; left: var(--panel-w); bottom: var(--panel-h); border-radius: 0 3px 0 0; }

/* phones: photo band with the headline, then the big map + Google Maps button, then the rest */
@media (max-width: 999px) {
  .hero { display: flex; flex-direction: column; }
  .hero__text { display: contents; }
  .hero__text > * { margin-inline: var(--gutter); }
  .hero__head { order: 1; margin-inline: 0; padding: clamp(110px, 30svh, 230px) var(--gutter) 64px; border-radius: 0 0 30px 30px; overflow: hidden; }
  .hero__photo::after { background: linear-gradient(180deg, rgba(4, 27, 84, .18) 0%, rgba(4, 27, 84, .05) 30%, rgba(4, 27, 84, .7) 68%, rgba(2, 15, 53, .96) 100%); }
  /* the kid in the sky above the headline: the helmet 40px under the header, arms wide, the shoes just above
     the eyebrow. min-height keeps the photo's bottom under the column's on taller boxes */
  .hero__photo img {
    position: absolute; top: 0; right: 0; width: 134%; height: auto; min-height: calc((100% - 40px) * 1.646); max-width: none;
    object-fit: cover; object-position: 62% 0; transform: translateY(calc(40px - 39.25%));
  }
  .eyebrow { margin-bottom: 8px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
  .hero__sub { margin-top: 12px; font-size: 1.02rem; line-height: 1.5; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 12px rgba(4, 20, 40, .5); }
  .hero__map { order: 2; margin: -40px var(--gutter) 0; position: relative; z-index: 3; }
  .hero__frame { border: 0; border-radius: 22px; height: clamp(360px, 104vw, 520px); box-shadow: 0 18px 40px rgba(4, 27, 84, .28), 0 0 0 4px #fff; }
  .hero__route { margin: 14px 0 0; width: 100%; }
  .hero__cta { order: 4; margin-top: 18px; margin-bottom: 34px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__cta [data-open-map] { display: none; }   /* the map itself opens the full map */
  .quick { margin-top: 18px; }
}
@media (min-width: 640px) and (max-width: 999px) { .hero__photo img { width: 100%; } }   /* tablets: the column is wide enough already */
@media (max-width: 639px) {
  .legend { display: none; }
  .hero .lm--minor, .hero .area, .hero .pois, .hero .streets { display: none; }   /* fewer labels on the small map; all of them show in the full map */
  .hero__open { align-items: flex-start; justify-content: flex-start; }   /* chip top-left, clear of the start pin */
  .chip { margin: 12px 0 0 12px; padding: 10px 15px; font-size: .86rem; }
}

/* speed lines under the buttons, like the swooshes under "ZIPLINE" in the logo; the facts strip under the hero (desktop only) */
.speedlines, .facts { display: none; }
@media (min-width: 1000px) {
  :root { --facts-h: 104px; }
  /* hero + facts strip fill the first screen, so the break before the sunset band shows right away */
  .hero { display: grid; grid-template-columns: minmax(400px, 35fr) 65fr; min-height: calc(100svh - var(--hh) - var(--facts-h)); background: var(--navy); }
  /* the photo fills the left column and runs on under the slanted map edge */
  .hero__text, .hero__head { position: static; z-index: auto; }   /* a grid item with a z-index would lift the photo above the map */
  /* left padding follows the page grid, but never squeezes the text column below ~450px on very wide screens */
  .hero__text { align-self: center; padding: 44px 34px 52px max(var(--gutter), min(calc((100vw - 1320px) / 2), calc(35vw - 480px))); }
  /* the quick links sit inside .hero__head (for the phone layout); here they go under the buttons and speed lines */
  .hero__text { display: flex; flex-direction: column; }
  .hero__head { display: contents; }
  .hero__cta { order: 1; }
  .speedlines { order: 2; }
  .quick { order: 3; margin-top: 18px; }
  .hero__text > :not(.hero__head), .hero__head > :not(.hero__photo) { position: relative; z-index: 2; }
  .hero__photo { inset: 0 auto 0 0; width: calc(max(400px, 35%) + 7%); }
  /* hero-desktop.jpg (the kid on the launch seat): 112% of the column wide, from its left edge, and moved down
     so the column ends at 66% of the photo's height, just under the kid's shoes. The kid sits beside the
     buttons, arms wide, with the sky behind the headline. min-height keeps the photo's top above the column's. */
  .hero__photo img {
    position: absolute; left: 0; bottom: 0; width: 112%; height: auto; min-height: 151.5%; max-width: none;
    object-fit: cover; object-position: 0 100%; transform: translateY(34%);
  }
  /* a light shade only, enough for the white text; the rider and the Kalaja stay clear */
  .hero__photo::after {
    background:
      linear-gradient(90deg, rgba(4, 20, 48, .42) 0%, rgba(4, 20, 48, .16) 50%, rgba(4, 20, 48, 0) 78%),
      linear-gradient(180deg, rgba(4, 27, 84, 0) 0%, rgba(4, 27, 84, 0) 55%, rgba(2, 15, 53, .5) 100%);
  }
  .hero .eyebrow { text-shadow: 0 1px 3px rgba(4, 20, 40, .55), 0 1px 14px rgba(4, 20, 40, .6); }
  .hero h1 { font-size: clamp(4.4rem, 6.6vw, 7.8rem); text-shadow: 0 2px 4px rgba(4, 20, 50, .25), 0 2px 30px rgba(4, 20, 50, .5); }
  .hero__sub { max-width: 36ch; color: #fff; text-shadow: 0 1px 3px rgba(4, 20, 40, .7), 0 1px 16px rgba(4, 20, 40, .6); }
  .hero .btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
  .hero .btn--ghost:hover { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px #fff, 0 9px 0 rgba(0, 0, 0, .22); }
  .hero__edge { position: absolute; inset: 0; filter: drop-shadow(-7px 0 0 var(--orange)); }
  .hero__frame { position: absolute; inset: 0; height: auto; border: 0; clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); }
  .hero__route { position: absolute; z-index: 4; left: 7%; bottom: 20px; margin: 0; }
  .legend { top: 18px; left: 11%; }
  .compass { top: 18px; right: 18px; width: 52px; height: 52px; }
  .chip { margin: 0 18px 18px 0; }
  .speedlines { display: block; width: min(100%, 360px); height: 28px; margin-top: 22px; pointer-events: none; }
  .speedlines i { position: absolute; display: block; height: 5px; transform: skewX(-35deg); transform-origin: left center; animation: sweep 1.15s .25s var(--ease) both; }
  .speedlines i:nth-child(1) { top: 10px; left: 10%; width: 68%; background: var(--orange); }
  .speedlines i:nth-child(2) { top: 22px; left: 24%; width: 62%; height: 3px; background: #7FB0EE; animation-delay: .4s; }
  .speedlines i:nth-child(3) { top: 0; left: 0; width: 34%; height: 3px; background: var(--orange); opacity: .7; animation-delay: .55s; }

  /* facts strip: a band of page colour between the hero and the sunset photo */
  .facts { display: flex; align-items: center; min-height: var(--facts-h); background: var(--warm); border-bottom: 1px solid var(--stone-soft); }
  .facts__list { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .facts__list li { display: grid; gap: 4px; padding: 6px clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--stone); }
  .facts__list li:first-child { padding-left: 0; border-left: 0; }
  .facts__k { font: 700 .74rem/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
  .facts__v { font: italic 800 clamp(1.2rem, 1.75vw, 1.6rem)/1.05 var(--display); text-transform: uppercase; color: var(--navy); white-space: nowrap; }
}
@keyframes sweep { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
/* small laptops: the map panel is too narrow for the route button and the chip side by side, so the chip goes up next to the compass */
@media (min-width: 1000px) and (max-width: 1199px) {
  .hero__open { align-items: flex-start; }
  .chip { margin: 22px 82px 0 0; }
}

/* ---------- the map (hero + full screen) ---------- */
@property --h { syntax: '<number>'; inherits: true; initial-value: 1; }
.map { --k: 1; --h: 1; -webkit-user-select: none; user-select: none; font-family: var(--text); }
.sc__i { transform: scale(calc(var(--k) * var(--h))); }
.lm { transition: --h .25s var(--ease); }

.lm__name { font-size: 13px; font-weight: 700; fill: var(--navy); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.lm__name--start { text-anchor: start; }
.lm__name--end { text-anchor: end; }
.lm__name--big { font-family: var(--display); font-size: 23px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .04em; stroke-width: 5px; }
.lm__name--zip { font-family: var(--display); font-size: 19px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .03em; fill: var(--orange); stroke-width: 5px; }
.area { font-size: calc(11px * var(--k)); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; fill: #6F7C92; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: calc(4px * var(--k)); stroke-linejoin: round; }
.poi text { font-size: 11px; font-weight: 500; fill: #3E4C74; paint-order: stroke; stroke: #fff; stroke-width: 3.2px; stroke-linejoin: round; }
.poi .poi__l { text-anchor: end; }
.poi .poi__b { text-anchor: middle; }
.streets path { fill: none; }
.streets text { font-size: calc(9.5px * var(--k)); font-style: italic; font-weight: 500; letter-spacing: .03em; fill: #8C7B62; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: #fff; stroke-width: calc(3px * var(--k)); stroke-linejoin: round; }
.area--dir { text-anchor: end; letter-spacing: .06em; text-transform: none; font-style: italic; fill: #6D8CC4; }
.river { font-size: calc(12px * var(--k)); font-style: italic; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; fill: #6E9ADA; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: calc(3px * var(--k)); }

.route__halo { fill: none; stroke: #fff; stroke-width: calc(8px * var(--k)); stroke-linecap: round; stroke-linejoin: round; }
.route__line { fill: none; stroke: var(--blue); stroke-width: calc(3.6px * var(--k)); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .1 calc(8px * var(--k)); animation: walk 1.6s linear infinite; }
@keyframes walk { to { stroke-dashoffset: calc(-8.1px * var(--k)); } }
.route__pill { fill: #fff; stroke: var(--blue); stroke-width: 1.5px; }
.route__walker { fill: none; stroke: var(--blue); stroke-width: 1.8px; stroke-linecap: round; stroke-linejoin: round; }
.route__txt { font-size: 12px; font-weight: 700; fill: var(--blue); text-anchor: middle; }

.zip__halo { fill: none; stroke: #fff; stroke-width: calc(9px * var(--k)); stroke-linecap: round; }
.zip__cable { fill: none; stroke: var(--orange); stroke-width: calc(3.6px * var(--k)); stroke-linecap: round; }
.zip__label { font-family: var(--display); font-size: 17px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .06em; fill: var(--orange); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.stairs__halo { fill: none; stroke: #fff; stroke-width: calc(7px * var(--k)); stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.stairs__steps { fill: none; stroke: var(--navy); stroke-width: calc(1.5px * var(--k)); stroke-linecap: round; }
.stairs__txt { text-anchor: end; font-size: 13px; font-weight: 700; fill: var(--navy); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }   /* same as the other map names (e.g. Ulja) */
.pulse { fill: none; stroke: var(--orange); stroke-width: 2.5px; transform-box: fill-box; transform-origin: center; animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: .95; } to { transform: scale(3.4); opacity: 0; } }

.mapx .lm { cursor: pointer; }
.lm.is-hover { --h: 1.12; }
@media (hover: hover) { .mapx .lm:hover { --h: 1.12; } }   /* touch screens keep :hover after a tap, which looked like a selection */
.lm.is-hot { --h: 1.25; }
.lm.is-hot .lm__name { fill: var(--orange); }

/* ---------- full-screen map ---------- */
.mapx { position: fixed; inset: 0; z-index: 100; background: var(--paper); --panel-w: 0px; --panel-h: 0px; }
.mapx__stage { position: absolute; top: 0; right: 0; bottom: var(--panel-h); left: var(--panel-w); overflow: hidden; background: var(--paper); touch-action: none; cursor: grab; }
.mapx__stage.is-drag { cursor: grabbing; }
.mapx__stage .map { position: absolute; inset: 0; }
.mapx__top { position: absolute; z-index: 3; top: 0; right: 0; left: var(--panel-w); display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px; pointer-events: none; }
.mapx__top > * { pointer-events: auto; }
.mapx__title { font: 800 italic 1.25rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; background: #fff; padding: 12px 14px; border: 1.5px solid var(--navy); border-radius: 3px; }
.mapx__tools { display: flex; gap: 8px; }
/* the language switch in the map: the header's SQ/EN, as tall as the map buttons, right next to them */
.mapx__lang { margin-left: auto; height: 46px; background: #fff; }
.mapx__lang .lang-btn { padding: 0 14px; font-size: .86rem; }
.tool { width: 46px; height: 46px; display: grid; place-items: center; background: #fff; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 3px; cursor: pointer; transition: background .2s, color .2s; }
.tool svg { width: 20px; height: 20px; }
.tool:hover { background: var(--stone-soft); }
.tool--close { background: var(--navy); color: #fff; }
.tool--close:hover { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.compass--x { top: 70px; right: 12px; left: auto; }
.mapx .compass--x { position: absolute; }
.mapx__scale { position: absolute; z-index: 3; right: 14px; bottom: calc(var(--panel-h) + 14px); display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: .75rem; font-weight: 700; color: var(--navy); pointer-events: none; }
.mapx__scale i { display: block; height: 8px; border: 2px solid var(--navy); border-top: 0; background: rgba(255, 255, 255, .8); }

.mapx__panel { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; max-height: 48svh; overflow: auto; background: #fff; border-top: 1px solid var(--stone); border-radius: 14px 14px 0 0; box-shadow: 0 -12px 30px rgba(4, 27, 84, .12); padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); }
.mapx__dest .kicker { margin-bottom: 8px; }
.mapx__dest-name { font: 800 italic 1.5rem/1 var(--display); text-transform: uppercase; }
.mapx__gps { margin: 8px 0 14px; font-size: .9rem; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mapx__gps b { color: var(--navy); font-variant-numeric: tabular-nums; }
.mapx__copy { border: 1.5px solid var(--stone); background: #fff; border-radius: 3px; padding: 4px 10px; font-size: .8rem; font-weight: 700; cursor: pointer; }
.mapx__copy:hover { border-color: var(--navy); }
.mapx__hint { margin-top: 12px; font-size: .84rem; color: var(--ink-soft); }
.mapx__walk { margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #F2F6FC; border-radius: 4px; font-size: .9rem; font-weight: 500; }
.mapx__places-title { margin: 20px 0 10px; font: 700 .78rem/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.mapx__places { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.mapx__places > li { flex: none; }   /* never squeeze a chip (Safari shrank them and cut the names off); the row scrolls instead */
.place { scroll-snap-align: start; display: flex; align-items: center; gap: 10px; min-width: 200px; max-width: 250px; padding: 10px 12px; background: #fff; border: 1.5px solid #E3E7EF; border-radius: 4px; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.place.is-on { border-color: var(--navy); background: #F7F9FD; }
@media (hover: hover) { .place:hover { border-color: var(--navy); background: #F7F9FD; } }
.place svg { flex: none; width: 44px; height: 38px; }
.place__txt { display: block; }
.place b { display: block; font-size: .92rem; line-height: 1.25; }
.place__desc { display: block; font-size: .8rem; line-height: 1.35; color: var(--ink-soft); margin-top: 2px; }
@media (max-width: 899px) {
  .mapx__dest .kicker, .mapx__dest-name, .mapx__hint, .mapx__walk, .mapx__places-title, .place__desc { display: none; }
  .mapx__panel { padding-top: 14px; }
  .mapx__dest { display: flex; flex-direction: column; }
  .mapx__dest .btn { order: -1; padding-block: 16px; font-size: 1.05rem; }
  .mapx__gps { margin: 10px 0 0; font-size: .82rem; justify-content: center; }
  .mapx__places { margin-top: 12px; }
  .place { min-width: 0; max-width: none; padding: 8px 12px; }
  .place b { white-space: nowrap; }
  .place svg { width: 34px; height: 30px; }
  .mapx__title { display: none; }
  .mapx__top { justify-content: space-between; }
  .mapx__lang { margin-left: 0; }   /* phones: top-left, away from the zoom buttons */
}
@media (min-width: 900px) {
  .mapx { --panel-w: 390px; }
  .mapx__panel { top: 0; right: auto; width: var(--panel-w); max-height: none; border-radius: 0; border-top: 0; border-right: 1px solid var(--stone); box-shadow: none; padding: 28px 26px 22px; }
  .mapx__places { flex-direction: column; overflow: visible; }
  .place { min-width: 0; max-width: none; width: 100%; }
  .compass--x { top: 74px; right: 14px; }
}

/* popover on a landmark */
.mapx__pop { position: absolute; z-index: 2; width: min(300px, 82vw); padding: 12px 14px 14px; background: #fff; border: 2px solid var(--navy); border-radius: 3px; box-shadow: 6px 6px 0 var(--orange); transform: translate(-50%, calc(-100% - 16px)); font-size: .9rem; line-height: 1.45; cursor: default; }
.mapx__pop b { display: block; font: 800 italic 1.2rem/1.05 var(--display); text-transform: uppercase; margin-bottom: 4px; }
.mapx__pop p { color: var(--ink-soft); }
.mapx__pop .btn { margin-top: 12px; padding: 11px 16px; font-size: .9rem; }
.mapx__pop.has-img { padding-top: 0; }
.pop__img { position: relative; margin: 0 -14px 12px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone-soft); border-bottom: 2px solid var(--navy); }
.pop__img img { width: 100%; height: 100%; object-fit: cover; animation: pop-in .45s var(--ease) both; }
.pop__img figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 8px 4px; font-size: .66rem; line-height: 1.3; text-align: right; color: rgba(255, 255, 255, .92); background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .55)); }
.pop__img figcaption a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.pop__img figcaption a:hover { border-color: #fff; }
@keyframes pop-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@media (max-width: 639px) { .pop__img { aspect-ratio: 2 / 1; } .mapx__pop { font-size: .86rem; } }
.mapx__pop::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; background: #fff; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateX(-50%) rotate(45deg); }
.mapx__pop.is-below { transform: translate(-50%, 0); }
.mapx__pop.is-below::after { bottom: auto; top: -9px; transform: translateX(-50%) rotate(225deg); }

/* intro: castle → cable → rider → map */
.mapx__intro { position: absolute; inset: 0; z-index: 10; background: var(--warm); cursor: pointer; }
.mapx__intro svg { width: 100%; height: 100%; }
.intro__castle path { fill: none; stroke: var(--navy); stroke-width: .55; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__castle .thin { stroke: var(--blue); stroke-width: .32; }
.intro__castle .hill { stroke: var(--blue); stroke-width: .6; }
.intro__castle .flag { stroke: var(--orange); stroke-width: .55; }
.intro__cable { fill: none; stroke: var(--navy); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__lines path { fill: none; stroke-width: 9; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__lines path:nth-child(1) { stroke: var(--orange); }
.intro__lines path:nth-child(2) { stroke: var(--blue); stroke-width: 5; }
.intro__lines path:nth-child(3) { stroke: var(--orange); stroke-width: 4; opacity: .7; }
.intro__skip { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); font-size: .82rem; letter-spacing: .08em; color: var(--ink-soft); }

/* ---------- the setting: sunset band, reels, photos of the place ---------- */
.view { position: relative; padding-bottom: calc(var(--ridge-h) + clamp(40px, 5vw, 72px)); overflow: hidden; background: var(--warm); }
.band { position: relative; min-height: clamp(480px, 88vh, 880px); display: flex; align-items: flex-end; overflow: hidden; background: var(--navy); color: #fff; }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform: scale(1.08); transition: transform 2.6s var(--ease); }
.band.in .band__img { transform: none; }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 27, 84, 0) 35%, rgba(4, 27, 84, .45) 62%, rgba(2, 15, 53, .9) 100%), linear-gradient(90deg, rgba(4, 27, 84, .5) 0%, rgba(4, 27, 84, 0) 55%); }
.band__text { position: relative; z-index: 1; padding-block: 120px clamp(44px, 7vw, 100px); }
.band h2 { color: #fff; font-size: clamp(3.2rem, 10vw, 8.4rem); line-height: .84; text-shadow: 0 2px 30px rgba(2, 15, 53, .45); }
.band__sub { margin-top: 20px; max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, .92); text-shadow: 0 1px 12px rgba(2, 15, 53, .5); }
@media (max-width: 639px) {
  .band { display: block; min-height: 0; }
  .band__img { position: relative; height: auto; aspect-ratio: 4 / 3; object-position: 40% 50%; }
  .band::after { inset: 0 0 auto; height: calc(75vw + 2px); background: linear-gradient(180deg, rgba(4, 27, 84, 0) 55%, var(--navy) 100%); }
  .band__text { padding-block: 0 44px; margin-top: -34px; }
}

.reels__head { margin-top: clamp(56px, 8vw, 110px); margin-bottom: clamp(18px, 2.4vw, 28px); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 28px; }
.reels__head h3 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: .92; }
.reels__head p { color: var(--ink-soft); max-width: 44ch; }
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: min(60vw, 280px); gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 6px; background: var(--navy); scroll-snap-align: start; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(rgba(2, 15, 53, 0), rgba(2, 15, 53, .78)); pointer-events: none; }
.reel__cap { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; font: 800 italic 1.3rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; color: #fff; pointer-events: none; }
/* the whole tile pauses / plays; the corner icon shows which */
.reel__play { position: absolute; inset: 0; z-index: 2; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.reel__play::before { content: ''; position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(2, 15, 53, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='white'/%3E%3C/svg%3E") center / 20px no-repeat; transition: background-color .2s; }
.reel.is-playing .reel__play::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 7v10M16 7v10' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); opacity: .75; }
.reel__play:hover::before { background-color: var(--orange); opacity: 1; }
.reel__play:focus-visible { outline-offset: -4px; }
@media (min-width: 900px) {
  .reels { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: 0; grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); gap: 14px; overflow: visible; }
}
.view .gallery { margin-top: clamp(10px, 1.4vw, 14px); }
@media (min-width: 900px) { .view .gallery { margin-top: 14px; } }

/* mountain ridges between sections; the near layer has the colour of the next section */
.ridge { position: absolute; left: 0; bottom: 0; display: block; width: 100%; height: var(--ridge-h); max-width: none; pointer-events: none; }
.ridge__far { fill: #D3DAE8; }
.ridge__mid { fill: #9AA9C9; }
.ridge__near { fill: var(--navy); }
.ridge__post { fill: none; stroke: var(--navy); stroke-width: 3.5; stroke-linecap: round; }
.ridge__cable { fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-opacity: .8; }
.ridge--foot { bottom: 100%; }
/* phones: B wide on top, A tall + D/E stacked, C wide at the bottom. Desktop: A | B over D+E | C */
.gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 54vw 40vw 40vw 64vw; gap: 8px; padding: 0 var(--gutter); }
.g { margin: 0; position: relative; overflow: hidden; border-radius: 4px; background: var(--stone); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g:hover img { transform: scale(1.04); }
.g--b { grid-column: 1 / 3; grid-row: 1; }
.g--b img { object-position: 50% 58%; }
.g--a { grid-column: 1; grid-row: 2 / 4; }
.g--a img { object-position: 64% 50%; }
.g--d { grid-column: 2; grid-row: 2; }
.g--e { grid-column: 2; grid-row: 3; }
.g--c { grid-column: 1 / 3; grid-row: 4; }
.g--c img { object-position: 50% 40%; }
.g--d img { object-position: 50% 22%; }
.g--e img { object-position: 50% 45%; }
@media (min-width: 640px) { .gallery { grid-template-rows: 46vw 34vw 34vw 50vw; gap: 12px; } }
@media (min-width: 900px) {
  .gallery { width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: 0; grid-template-columns: 5fr 4fr 4fr 5fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(520px, 42vw, 680px); }
  .g--a { grid-column: 1; grid-row: 1 / 3; clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%, 0 93%); }
  .g--b { grid-column: 2 / 4; grid-row: 1; }
  .g--c { grid-column: 4; grid-row: 1 / 3; }
  .g--d { grid-column: 2; grid-row: 2; }
  .g--e { grid-column: 3; grid-row: 2; }
}

/* ---------- rules ---------- */
.rules { background: url("images/topo-lines.svg") center / cover no-repeat, linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; overflow: hidden; }
.rules h2 { color: #fff; }
.rules .section-sub { color: var(--on-navy); }
.rules__grid { display: grid; gap: 14px; counter-reset: rule; }
.rule { counter-increment: rule; position: relative; display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: start; padding: 22px 22px 22px 20px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .12); border-radius: 4px; }
.rule::after { content: counter(rule, decimal-leading-zero); position: absolute; top: 14px; right: 16px; font: 800 italic 1.5rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .28); }
.rule__ico { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(247, 107, 8, .15); color: var(--orange); }
.rule__ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rule h3 { color: #fff; font-size: 1.35rem; margin: 4px 36px 10px 0; }
.rule__list { display: grid; gap: 7px; }
.rule__list li { position: relative; padding-left: 20px; color: var(--on-navy); font-size: .98rem; line-height: 1.5; }
.rule__list li::before { content: ''; position: absolute; left: 0; top: .72em; width: 10px; height: 2.5px; background: var(--orange); transform: skewX(-35deg); }
@media (min-width: 720px) { .rules__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 719px) {
  .rules__grid { gap: 10px; }
  .rule { grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 16px 16px 14px; }
  .rule::after { top: 12px; right: 12px; font-size: 1.2rem; }
  .rule__ico { width: 40px; height: 40px; }
  .rule__ico svg { width: 22px; height: 22px; }
  .rule h3 { font-size: 1.2rem; margin: 2px 32px 8px 0; }
  .rule__list li { font-size: .95rem; }
}

/* ---------- ERCA ---------- */
.erca__grid { display: grid; gap: 44px; align-items: center; }
.erca__badge { margin: 0; display: grid; justify-items: center; gap: 26px; }
.erca__seal { width: min(300px, 100%); height: auto; transform: rotate(-3deg); filter: drop-shadow(0 22px 26px rgba(4, 27, 84, .16)) drop-shadow(0 3px 6px rgba(4, 27, 84, .1)); transition: transform .5s var(--ease); }
.erca__badge:hover .erca__seal { transform: rotate(0deg) translateY(-4px); }
.erca__cap { max-width: 30ch; text-align: center; font-size: .92rem; line-height: 1.45; color: var(--ink-soft); }
.erca__cap b { display: block; margin-bottom: 4px; font: 800 italic 1.35rem/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--navy); }
.erca h2 { margin-bottom: 22px; }
.erca__lead { font-size: 1.15rem; }
.erca__body > p + p { margin-top: 14px; color: var(--ink-soft); }
.erca__facts { margin-top: 26px; display: grid; gap: 12px; }
.erca__facts li { position: relative; padding-left: 34px; font-weight: 500; }
.erca__facts li::before { content: ''; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
@media (min-width: 900px) { .erca__grid { grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); } }
@media (max-width: 899px) {
  .erca__grid { gap: 30px; }
  .erca__badge { order: 2; grid-template-columns: 120px 1fr; align-items: center; justify-items: start; gap: 20px; }
  .erca__seal { width: 120px; }
  .erca__cap { text-align: left; font-size: .86rem; }
  .erca__cap b { font-size: 1.15rem; }
}
.partners { margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--stone); }
.partners__list { display: grid; gap: 14px; }
.partner { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; padding: 20px 22px; background: #fff; border: 1px solid var(--stone); border-radius: 4px; }
.partner__logo { display: grid; place-items: center; height: 84px; }
.partner__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.partner__logo .is-heavy { max-height: 76%; }   /* the IDE Cert mark is much bolder: a bit smaller so the two logos read as equals */
.partner__txt { display: grid; gap: 4px; }
.partner__txt b { font: 800 italic 1.35rem/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--navy); }
.partner__where { font: 700 .74rem/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.partner__desc { margin-top: 4px; font-size: .95rem; line-height: 1.45; color: var(--ink-soft); }
@media (min-width: 900px) { .partners__list { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (max-width: 479px) {
  .partner { grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; }
  .partner__logo { height: 60px; }
  .partner__txt b { font-size: 1.15rem; }
  .partner__desc { font-size: .9rem; }
}

/* ---------- contact ---------- */
.contact { background: var(--stone-soft); padding-bottom: calc(var(--ridge-h) + clamp(56px, 7vw, 100px)); }
.contact__grid { display: grid; gap: 40px; }
.contact h2 { margin-bottom: 18px; }
.contact__intro > p { color: var(--ink-soft); max-width: 44ch; }
.contact__direct-lbl { margin-top: 28px; font-weight: 500; }
.contact__number { margin-top: 8px; display: inline-flex; align-items: center; gap: 12px; font: 800 italic clamp(2rem, 5vw, 2.8rem)/1 var(--display); letter-spacing: .02em; text-decoration: none; color: var(--navy); border-bottom: 3px solid var(--orange); padding-bottom: 4px; }
.contact__number svg { width: 34px; height: 34px; color: var(--orange); }
.contact__number:hover { color: var(--blue); }
.contact__social { margin-top: 26px; display: grid; gap: 12px; font-weight: 500; }
.contact__social a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; border-bottom: 1px solid var(--stone); padding-bottom: 3px; }
.contact__social a:hover { border-color: var(--orange); }
.contact__social svg { width: 26px; height: 26px; flex: none; }
.form { background: #fff; padding: clamp(22px, 4vw, 40px); border-radius: 4px; display: grid; gap: 20px; box-shadow: 12px 12px 0 var(--orange); align-self: start; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
label, legend { font: 700 .8rem/1.2 var(--text); letter-spacing: .12em; text-transform: uppercase; padding: 0; }
label em { font-style: normal; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--ink-soft); }
legend { margin-bottom: 8px; }
input, textarea { font: 500 1.05rem/1.4 var(--text); color: var(--navy); background: #fff; border: 1.5px solid var(--stone); border-radius: 3px; padding: 13px 14px; width: 100%; min-height: 50px; }
textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(10, 92, 181, .22); outline-offset: 0; }
[aria-invalid="true"] { border-color: #B3261E; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { position: relative; }
.topic input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.topic span { display: inline-block; padding: 9px 15px; border: 1.5px solid var(--stone); border-radius: 999px; font-size: .92rem; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.topic span:hover { border-color: var(--navy); }
.topic input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.topic input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.err { color: #B3261E; font-size: .88rem; }
.err:empty { display: none; }
.form__hint { font-size: .84rem; color: var(--ink-soft); text-align: center; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 110px); } }

/* ---------- footer ---------- */
.footer { position: relative; background: url("images/topo-lines.svg") center / cover no-repeat, linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--on-navy); padding-top: clamp(48px, 6vw, 80px); }
.footer a { text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
.footer__grid { display: grid; gap: 40px 28px; padding-bottom: clamp(40px, 5vw, 64px); }
.footer__logo { display: inline-block; margin-bottom: 18px; }
.footer__logo img { width: clamp(200px, 21vw, 260px); height: auto; filter: drop-shadow(0 8px 22px rgba(0, 8, 30, .35)); }
.footer__tag { font: 800 italic clamp(1.7rem, 2.4vw, 2.1rem)/1 var(--display); text-transform: uppercase; color: #fff; }
.footer__social { margin-top: 22px; display: flex; gap: 10px; }
.footer__social a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); transition: transform .25s var(--ease), border-color .2s, background .2s; }
.footer__social a:hover { transform: translateY(-2px); border-color: var(--orange); background: rgba(255, 255, 255, .08); }
.footer__social svg { width: 24px; height: 24px; }
.footer h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: #fff; font-size: 1.3rem; }
.footer h3 svg { width: 20px; height: 20px; flex: none; color: var(--orange); }
.footer__small { font-size: .88rem; color: var(--on-navy); }
.footer__phone { display: inline-block; margin: 4px 0 16px; padding-bottom: 3px; border-bottom: 2px solid var(--orange); font: 800 italic 1.7rem/1 var(--display); letter-spacing: .02em; color: #fff; }
.footer__phone:hover { color: var(--orange-hi); }
.footer__link { display: inline-block; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .28); }
.footer__link:hover { border-color: var(--orange); }
.footer__list { display: grid; gap: 12px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; }
/* huge outlined name, cut off by the bottom bar */
.footer__mark { overflow: hidden; height: clamp(46px, 8.6vw, 128px); pointer-events: none; user-select: none; }
.footer__mark span { display: block; white-space: nowrap; text-align: center; font: 800 italic clamp(4rem, 13.2vw, 12.5rem)/.82 var(--display); letter-spacing: .01em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .13); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .16); padding-block: 22px 100px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .86rem; color: var(--on-navy); }
.footer__bottom a { border-bottom: 1px solid rgba(255, 255, 255, .28); }
.footer__bottom a:hover { border-color: var(--orange); color: #fff; }
@media (min-width: 560px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) {
  .footer__grid { grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 0; }
  .footer__brand { grid-column: auto; padding-right: 32px; }
  .footer__col { padding: 6px 0 6px clamp(24px, 2.6vw, 40px); border-left: 1px solid rgba(255, 255, 255, .13); }
  .footer__bottom { padding-bottom: 28px; padding-right: 84px; } /* keeps the text clear of the floating WhatsApp button */
}

/* ---------- floating "question?" button ---------- */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; width: 62px; height: 62px; border-radius: 50%; background: var(--orange); color: var(--navy); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(4, 27, 84, .35); transition: transform .25s var(--ease); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: translateY(-3px); }
.wa-float.is-away { transform: translateY(140%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
.wa-float:focus-visible { outline-color: var(--navy); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
/* very narrow phones: a bit smaller so the language switch and the four map buttons fit on one row */
@media (max-width: 359px) {
  .tool, .mapx__lang { width: auto; height: 42px; }
  .tool { width: 42px; }
  .mapx__lang .lang-btn { padding: 0 10px; }
}
