/* ==========================================================================
   IPS — home page blocks (v2): hero showcase, numbers, two directions,
   selected projects, process line, materials index, brand tiles, journal
   ========================================================================== */

/* ---------- Hero: featured projects list (synced with the slideshow) ---------- */
.hero__list {
  position: absolute; right: var(--pad); top: calc(var(--header-h) + 14px); width: min(360px, 32vw); z-index: 2;
  padding: 14px 14px 6px; border-radius: 4px; color: var(--white);
  background: rgba(20, 28, 45, .28); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .12);
}
.hero__list-label { display: block; color: rgba(255, 255, 255, .6); margin: 0 2px 10px; }
.hero__items { display: grid; }
.hl { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px 2px 12px; border-top: 1px solid rgba(255, 255, 255, .12); opacity: .62; transition: opacity .5s var(--ease); }
.hl:hover, .hl.is-active { opacity: 1; }
.hl__thumb { display: block; aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.hl__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hl:hover .hl__thumb img { transform: scale(1.08); }
.hl__text small { display: block; font-family: var(--f-latin); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .62); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[lang="ka"] .hl__text small { font-family: var(--f-text); letter-spacing: .03em; font-size: 11px; text-transform: none; }
.hl__text strong { display: block; font-weight: 500; font-size: 14.5px; line-height: 1.25; }
.hl__bar { position: absolute; left: 2px; right: 2px; bottom: -1px; height: 1px; overflow: hidden; }
.hl__bar b { position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.hl.is-active .hl__bar b { animation: dotFill var(--slide-dur, 6.5s) linear forwards; }
.hero__items.is-paused .hl.is-active .hl__bar b { animation-play-state: paused; }
.hero__now { display: none; }

/* caption next to the second title line: two lines, last line sits exactly on the title baseline
   (offset depends on the title font metrics, so it is set per language) */
.hero__caption { max-width: clamp(300px, 30vw, 440px); padding-bottom: calc(clamp(46px, 8.6vw, 156px) * .186); }
html[lang="en"] .hero__caption { padding-bottom: calc(clamp(42px, 7.6vw, 140px) * .055); }
@media (max-width: 1100px) { .hero__caption, html[lang="en"] .hero__caption { padding-bottom: 0; max-width: 460px; margin-top: 10px; } }

/* CTA bar now holds only the button (the slide nav moved into the list) */
.hero__bar { grid-template-columns: 1fr; }

@media (max-width: 1180px) { .hero__list { width: 300px; } .hl { grid-template-columns: 54px 1fr; } }
@media (max-width: 1024px) {
  .hero__list { display: none; }
  .hero__bar { grid-template-columns: 1fr auto; }
  .hero__now { display: inline-flex; align-items: center; gap: 12px; padding: 0 4px 0 14px; font-size: 13px; color: rgba(255, 255, 255, .85); }
  .hero__now strong { font-weight: 500; max-width: 42vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero__now .arr { width: 13px; height: 13px; flex: none; }
  /* slide progress: one short bar per featured project; the current one fills while it is shown (swipe = next) */
  .hero__segs { display: inline-flex; gap: 4px; flex: none; }
  .hero__segs i { position: relative; width: 16px; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .28); overflow: hidden; }
  .hero__segs b { position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
  .hero__segs .is-done b { transform: none; }
  .hero__segs .is-on b { animation: dotFill var(--slide-dur, 6.5s) linear forwards; }
}
@media (max-width: 560px) {
  .hero__bar { grid-template-columns: 1fr; }
  .hero__now { height: 44px; padding: 0 2px; gap: 14px; }
  .hero__now strong { flex: 1 1 auto; min-width: 0; max-width: none; }
  .hero__caption { font-size: 15px; }
}

/* ---------- Statement + 4 numbers in one compact row ---------- */
.statement { padding-bottom: clamp(48px, 5vw, 88px); }
.statement__text { max-width: 1100px; }
.kpis { margin-top: clamp(40px, 5vw, 80px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); text-align: left; }
.kpi { display: flex; flex-direction: column; gap: 6px; padding: clamp(18px, 2vw, 28px) clamp(14px, 1.6vw, 24px) 6px 0; border-right: 1px solid var(--line); }
.kpi + .kpi { padding-left: clamp(14px, 1.6vw, 24px); }
.kpi:last-child { border-right: 0; }
.kpi__value { font-size: clamp(44px, 5.4vw, 92px); line-height: .95; white-space: nowrap; }
.kpi__value .unit { font-size: .34em; margin-left: .12em; font-weight: 300; letter-spacing: 0; }
.kpi__label { font-weight: 500; font-size: 15px; margin-top: 8px; }
.kpi__note { max-width: 280px; }
.kpi--link { transition: background-color .5s var(--ease); }
.kpi--link:hover .kpi__label { color: var(--slate); }
.kpi--link .kpi__label::after { content: " ↗"; color: var(--text-3); }
@media (max-width: 1024px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { border-bottom: 1px solid var(--line); }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(3) { padding-left: 0; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr; }
  .kpi, .kpi + .kpi { padding-left: 0; border-right: 0; }
}

/* ---------- Directions: two halves of the screen ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; height: calc(var(--vh, 1vh) * 100); min-height: 560px; max-height: 960px; }
.duo__half { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: var(--white); isolation: isolate; clip-path: inset(0 round var(--radius)); }
/* the photo carries the card's rounded corners itself: it is the element that grows into the direction page during
   a page transition, and the browser captures it without its parent's clipping */
.duo__img { position: absolute; inset: 0; z-index: -2; background: var(--ink); border-radius: inherit; overflow: hidden; }
/* the photo stays on its own layer, so the rounded clip never drops for a frame when the hover zoom starts */
.duo__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 2s var(--ease), opacity .9s var(--ease); will-change: transform; }
.duo__half:hover .duo__img img { transform: scale(1.0); }
.duo__half::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 28, 45, .42) 0%, rgba(20, 28, 45, .08) 34%, rgba(20, 28, 45, .82) 100%); transition: opacity .8s var(--ease); }
.duo__top { position: absolute; top: clamp(18px, 2vw, 28px); left: clamp(18px, 2vw, 32px); right: clamp(18px, 2vw, 32px); display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .78); }
.duo__icon { width: 40px; height: 40px; }
.duo__facts { margin-left: auto; display: flex; gap: clamp(16px, 2vw, 32px); text-align: right; }
.duo__facts span { display: grid; gap: 2px; }
.duo__facts b { font-family: var(--f-latin); font-weight: 300; font-size: clamp(22px, 2.2vw, 36px); line-height: 1; color: var(--white); letter-spacing: -.01em; }
.duo__facts small { font-size: 12px; color: rgba(255, 255, 255, .7); }
.duo__body { position: absolute; left: clamp(18px, 2vw, 32px); right: clamp(18px, 2vw, 32px); bottom: clamp(22px, 2.6vw, 40px); display: grid; gap: 16px; max-width: 600px; }
.duo__title { font-weight: 700; font-size: clamp(44px, 6vw, 108px); line-height: .96; letter-spacing: -.01em; }
html[lang="en"] .duo__title { font-family: var(--f-latin); font-weight: 800; letter-spacing: -.02em; }
/* one short line, large enough to read on any photo */
.duo__text { max-width: 430px; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.45; color: rgba(255, 255, 255, .92); }
.duo__more { display: inline-flex; align-items: center; gap: 10px; width: fit-content; margin-top: 4px; font-size: 14px; font-weight: 500; padding-bottom: 3px; border-bottom: 1px solid rgba(255, 255, 255, .5); transition: border-color .5s var(--ease); }
.duo__more .arr { width: 14px; height: 14px; transition: transform .7s var(--ease); }
.duo__half:hover .duo__more { border-color: var(--white); }
.duo__half:hover .duo__more .arr { transform: translateX(5px); }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; height: auto; max-height: none; padding: 6px; gap: 6px; }
  .duo__half { height: calc(var(--vh, 1vh) * 78); min-height: 520px; }
}

/* ---------- Selected projects: two large and three smaller photos, one 4:3 frame for all, the caption under
   the photo (nothing printed over the picture) ---------- */
.showcase { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(30px, 3.2vw, 52px) var(--gap); }
.showcase > .pcard { grid-column: span 2; min-width: 0; }
.showcase > .pcard:nth-child(-n + 2) { grid-column: span 3; }
.showcase .pcard .media { margin-bottom: 14px; }
.showcase .pcard .media img { transition: transform 1.6s var(--ease), opacity .9s var(--ease); }
.showcase .pcard:hover .media img { transform: scale(1.04); }
.showcase .pcard__meta { margin-bottom: 6px; }
.showcase > .pcard:nth-child(-n + 2) .pcard__title { font-size: clamp(21px, 1.8vw, 30px); }

/* ---------- Process: four steps on a line drawn by scrolling ---------- */
.process { padding-top: clamp(40px, 4vw, 72px); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); padding-top: 34px; }
.steps__line { position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line); }
.steps__line i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.step { position: relative; display: flex; flex-direction: column; gap: 10px; padding-right: clamp(8px, 1.4vw, 24px); }
.step__dot { position: absolute; top: -34px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); transition: background-color .5s var(--ease), border-color .5s var(--ease), transform .6s var(--ease); }
.step.is-on .step__dot { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
.step__num { font-family: var(--f-latin); font-weight: 200; font-size: clamp(34px, 3.4vw, 56px); line-height: .9; color: var(--mist); transition: color .6s var(--ease); }
.step.is-on .step__num { color: var(--ink); }
.step__title { font-weight: 500; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.28; }
.step__text { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.step__img { margin-top: auto; aspect-ratio: 16 / 10; border-radius: 4px; }
.step__img img { filter: grayscale(1); opacity: .85; transition: filter .9s var(--ease), opacity .9s var(--ease), transform 1.4s var(--ease); }
.step.is-on .step__img img { filter: none; opacity: 1; }
.step:hover .step__img img { transform: scale(1.05); }
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps__line { display: none; }
  .step__dot { top: -20px; }
  .step { padding-top: 4px; }
}
/* phones and small tablets: a vertical timeline. The line runs down the left edge and draws itself as you scroll;
   each step rises in as it reaches the screen and lights up when the line gets to its dot (home.js) */
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding: 4px 0 0 34px; }
  .steps__line { display: block; left: 6px; right: auto; top: 18px; bottom: 0; width: 1px; height: auto; }
  .steps__line i { transform-origin: 50% 0; transform: scaleY(0); }
  .step { padding: 0 0 40px; gap: 8px; }
  .step:last-child { padding-bottom: 0; }
  .step__dot { top: 12px; left: -34px; }
  .step__num { font-size: 40px; }
  .step__title { font-size: 19px; }
  .step__text { font-size: 15px; max-width: 46ch; }
  .step__img { margin-top: 8px; aspect-ratio: 16 / 9; }
  /* the photos stay in colour on phones: a grayscale filter fading out while the page scrolls repaints the whole
     photo every frame (the step still lights up: the dot and the number) */
  .step__img img, .step.is-on .step__img img { filter: none; opacity: 1; }
}
/* small tablets: text and photo side by side in each step */
@media (min-width: 561px) and (max-width: 860px) {
  .step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); grid-template-rows: auto auto 1fr; column-gap: 24px; align-content: start; }
  .step > :not(.step__img):not(.step__dot) { grid-column: 1; }
  .step__img { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Materials: an interactive index on a dark band (desktop: names + a large photo that changes with
   the hovered name and drifts a little with the pointer; phones: a swipe rail of photo cards) ---------- */
.mlib { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.mlib .sec-head__aside { color: rgba(255, 255, 255, .66); }
.mlib__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.mlib__list { grid-column: 1 / span 6; border-top: 1px solid var(--line-inv); }
.mrow { position: relative; display: grid; grid-template-columns: clamp(36px, 3.4vw, 52px) minmax(0, 1fr) auto 18px; align-items: center; column-gap: 16px; padding: clamp(15px, 1.55vw, 23px) 0; border-bottom: 1px solid var(--line-inv); color: rgba(255, 255, 255, .5); transition: color .6s var(--ease); }
.mrow::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: rgba(255, 255, 255, .85); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.mrow.is-on, .mrow:focus-visible { color: var(--white); }
.mrow.is-on::after { transform: scaleX(1); }
.mrow__img { display: none; }
.mrow__n { font-family: var(--f-latin); font-size: 11px; letter-spacing: .1em; color: rgba(255, 255, 255, .38); transition: color .6s var(--ease); }
.mrow.is-on .mrow__n { color: var(--accent-2); }
.mrow__name { font-weight: 500; font-size: clamp(19px, 1.8vw, 30px); line-height: 1.16; transition: transform .8s var(--ease); }
html[lang="en"] .mrow__name { font-family: var(--f-latin); font-weight: 600; letter-spacing: -.015em; }
.mrow.is-on .mrow__name { transform: translateX(10px); }
.mrow__meta { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.mrow__tag { padding: 4px 9px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 2px; font-size: 12px; color: rgba(255, 255, 255, .62); }
.mrow__count { min-width: 86px; text-align: right; font-size: 13px; color: rgba(255, 255, 255, .5); }
.mrow__go { width: 14px; height: 14px; opacity: 0; transform: translateX(-8px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.mrow.is-on .mrow__go { opacity: 1; transform: none; }

/* the photo is as tall as the list beside it (eight rows), never taller than the screen */
.mlib__view { --mx: 0px; --my: 0px; grid-column: 8 / span 5; position: relative; aspect-ratio: 6 / 7; max-height: min(calc(var(--vh, 1vh) * 78), 680px); width: 100%; justify-self: end; border-radius: var(--radius); overflow: hidden; isolation: isolate; clip-path: inset(0 round var(--radius)); background: rgba(255, 255, 255, .04); }
.mview__img { position: absolute; inset: -16px; margin: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1.05s var(--ease); transform: translate3d(var(--mx), var(--my), 0); }
.mview__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.8s var(--ease); }
.mview__img.is-on { clip-path: inset(0 0 0 0); z-index: 2; }
.mview__img.is-on img { transform: scale(1); }
.mview__img.is-was { clip-path: inset(0 0 0 0); z-index: 1; transition: none; }
.mview__img.is-was img { transform: scale(1); }
.mlib__view::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(20, 28, 45, 0) 55%, rgba(20, 28, 45, .72) 100%); }
.mview__cap { position: absolute; left: clamp(16px, 1.8vw, 26px); right: clamp(16px, 1.8vw, 26px); bottom: clamp(16px, 1.8vw, 24px); z-index: 4; display: grid; gap: 4px; transition: opacity .18s linear, transform .5s var(--ease); }
.mview__cap.is-swap { opacity: 0; transform: translateY(6px); }
.mview__name { font-weight: 500; font-size: clamp(16px, 1.25vw, 19px); }
.mview__brands { font-family: var(--f-latin); font-size: 12px; letter-spacing: .04em; color: rgba(255, 255, 255, .72); }
@media (max-width: 1024px) {
  .mlib__list { grid-column: 1 / span 7; }
  .mlib__view { grid-column: 8 / span 5; }
  .mrow__count { display: none; }
}
@media (max-width: 860px) {
  /* phones and small tablets: a swipe rail of photo cards (name, direction, project count) */
  .mlib__grid { display: block; }
  .mlib__view { display: none; }
  .mlib__list {
    display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    margin: 0 calc(var(--pad) * -1); padding: 0 0 4px var(--pad); border-top: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .mlib__list::-webkit-scrollbar { display: none; }
  .mlib__list::after { content: ""; flex: 0 0 calc(var(--pad) - 10px); }
  .mlib__list > li { flex: 0 0 calc((100% - var(--pad)) * .72); scroll-snap-align: start; min-width: 0; }
  .mrow { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0; border: 0; color: var(--white); }
  .mrow::after, .mrow__n, .mrow__go { display: none; }
  .mrow__img { display: block; aspect-ratio: 4 / 3; margin-bottom: 4px; background: rgba(255, 255, 255, .06); }
  .mrow__name, .mrow.is-on .mrow__name { transform: none; font-size: 18px; }
  .mrow__meta { gap: 10px; }
  .mrow__count { display: inline; min-width: 0; text-align: left; }
  .mlib .rail-dots i { background: rgba(255, 255, 255, .22); }
  .mlib .rail-dots i.is-on { background: var(--white); }
}
@media (min-width: 561px) and (max-width: 860px) {
  .mlib__list > li { flex-basis: calc((100% - var(--pad)) * .44); }
}
@media (prefers-reduced-motion: reduce) {
  .mview__img, .mview__img img, .mrow__name { transition: none; }
}

/* ---------- Geography: a compact dark band — heading, city chips and the picked city's projects next to
   a dot map of Georgia (desktop ~600px tall; phones: heading, map, chip row, a rail of the city's projects) ---------- */
.geo { background: var(--ink); color: var(--white); overflow: hidden; padding-top: clamp(52px, 5.2vw, 84px); padding-bottom: clamp(52px, 5.2vw, 84px); }
/* rows 1 and 4 take what the map needs beyond the text, so the text column sits centred next to it */
.geo__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto auto 1fr; column-gap: var(--gap); }
.geo__text { grid-column: 1 / span 6; grid-row: 2; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.geo__text .marker { display: flex; }
.geo__title { margin: 14px 0 12px; font-size: clamp(30px, 2.9vw, 46px); }
.geo__lead { font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.geo__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(20px, 2vw, 28px); }
.geo__chip {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 2px; font-size: 14.5px; color: rgba(255, 255, 255, .8);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.geo__chip sup { font-family: var(--f-latin); font-size: 10.5px; line-height: 1; opacity: .62; top: -.45em; }
.geo__chip:hover { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.geo__chip.is-sel { background: var(--white); border-color: var(--white); color: var(--ink); }
.geo__chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.geo__strip { grid-column: 1 / span 6; grid-row: 3; margin-top: clamp(18px, 1.8vw, 26px); min-width: 0; }
.geo__swap { transition: opacity .2s linear; }
.geo__swap.is-out { opacity: 0; }
.geo__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.geo__p { position: relative; display: grid; gap: 9px; align-content: start; transition: opacity .55s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--k, 0) * 55ms); }
.geo__swap.is-enter .geo__p { opacity: 0; transform: translate3d(0, 12px, 0); transition: none; }
.geo__p .media { aspect-ratio: 4 / 3; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.geo__p .media img { transition: transform 1.2s var(--ease), opacity .6s var(--ease); }
.geo__p:hover .media img { transform: scale(1.06); }
/* names: two lines at most, so the strip keeps one height whichever city is picked */
.geo__pn { font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .84); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; transition: color .3s; }
.geo__p:hover .geo__pn { color: var(--white); }
/* "Other cities": each card names its town */
.geo__tag { position: absolute; left: 6px; top: 6px; z-index: 1; padding: 3px 7px; border-radius: 2px; background: rgba(20, 28, 45, .74); font-size: 11.5px; line-height: 1.3; color: var(--white); pointer-events: none; }
.geo__all { margin-top: 14px; color: var(--white); }
.geo__all .arr { width: 13px; height: 13px; margin-left: 4px; }
.geo__map { grid-column: 7 / span 6; grid-row: 1 / span 4; align-self: center; padding-left: clamp(0px, 2.4vw, 40px); }
.geo__map svg { width: 100%; height: auto; display: block; overflow: visible; }
/* the map: relief + vectors (tools/map/georgia_map.py) fade in as the block arrives; markers pop in on top */
.geo__base { opacity: 0; transition: opacity 1.6s var(--ease); }
.geo.is-in .geo__base { opacity: 1; }
.geo__sea { font-family: var(--f-text); font-size: 10.5px; font-style: italic; font-weight: 400; letter-spacing: .32em; fill: rgba(201, 214, 236, .42); text-anchor: middle; pointer-events: none; }
html[lang="en"] .geo__sea { font-family: var(--f-latin); font-size: 9.5px; }
.geo__credit { font-family: var(--f-latin); font-size: 6.5px; letter-spacing: .04em; fill: rgba(255, 255, 255, .26); text-anchor: end; pointer-events: none; }
.geo__hit { fill: transparent; cursor: pointer; }
.geo__m { cursor: pointer; }
.geo__dot { fill: var(--accent); stroke: var(--ink); stroke-width: 2; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .8s cubic-bezier(.34, 1.56, .64, 1), fill .45s var(--ease); transition-delay: calc(.3s + var(--i) * .07s), 0s; }
.geo.is-in .geo__dot { transform: scale(1); }
/* the picked city (or town group) is orange, the other cities step back to light grey */
.geo__map.has-sel .geo__m:not(.is-sel) .geo__dot { fill: #c3c9d3; }
.geo__ring { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.geo__m.is-sel .geo__ring { animation: geoPulse 2.2s var(--ease) infinite; animation-delay: calc(var(--k, 0) * -.45s); }
@keyframes geoPulse { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.6); } }
.geo__lbl { font-family: var(--f-text); font-size: 12px; font-weight: 500; fill: var(--white); opacity: 0; transition: opacity .4s var(--ease); paint-order: stroke; stroke: rgba(32, 45, 71, .9); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
/* names: the picked towns and the big cities, unless there is no room next to the dot (home.js places them) */
.geo.is-in .geo__m.is-main .geo__lbl, .geo__m.is-sel .geo__lbl { opacity: 1; }
.geo .geo__m.is-quiet .geo__lbl { opacity: 0; }
/* tablets: the heading beside the map; under them one row of chips and the city's projects in one row */
@media (min-width: 761px) and (max-width: 1024px) {
  .geo__grid { grid-template-rows: 1fr auto auto auto 1fr auto auto; }
  .geo__text { display: contents; }
  .geo__text > .marker { grid-column: 1 / span 6; grid-row: 2; }
  .geo__title { grid-column: 1 / span 6; grid-row: 3; }
  .geo__lead { grid-column: 1 / span 6; grid-row: 4; }
  .geo__map { grid-column: 7 / span 6; grid-row: 1 / span 5; padding-left: 0; }
  .geo__chips { grid-column: 1 / -1; grid-row: 6; margin-top: 26px; }
  .geo__strip { grid-column: 1 / -1; grid-row: 7; margin-top: 18px; }
  .geo__lbl { font-size: 19px; stroke-width: 6px; }
}
/* phones: heading, the map, one swipeable chip row, then the city's projects as a rail */
@media (max-width: 760px) {
  .geo__grid { display: flex; flex-direction: column; align-items: stretch; }
  .geo__text { display: contents; }
  .geo__text > .marker { order: 1; }
  .geo__title { order: 2; margin: 12px 0 8px; font-size: clamp(28px, 7.8vw, 34px); }
  .geo__lead { order: 3; font-size: 15px; }
  .geo__map { order: 4; margin-top: 18px; padding-left: 0; }
  .geo__chips { order: 5; margin-top: 16px; }
  .geo__strip { order: 6; margin-top: 16px; }
  .geo__chip { height: 44px; font-size: 15px; }
  .geo__cards {
    display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    gap: 10px; margin: 0 calc(var(--pad) * -1); padding: 0 0 0 var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .geo__cards::after { content: ""; flex: 0 0 calc(var(--pad) - 10px); }
  .geo__cards::-webkit-scrollbar { display: none; }
  .geo__p { flex: 0 0 calc((100% - var(--pad)) * .44); scroll-snap-align: start; } /* two cards and a peek of the third */
  .geo__pn { font-size: 14px; }
  .geo__tag { font-size: 12px; }
  /* city names on the small map stay readable (SVG units are scaled down ~0.6x on a phone) */
  .geo__lbl { font-size: 21px; stroke-width: 6px; }
  .geo__sea { font-size: 15px; }
  .geo__credit { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .geo__m.is-sel .geo__ring { animation: none; }
  .geo__swap, .geo__p { transition: none; }
}
/* endless animations rest while their block is off screen (class set by home.js) */
.geo:not(.is-vis) .geo__ring { animation-play-state: paused; }

/* ---------- Brands on the home page: 2 clean rows of logo tiles ---------- */
.home-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1180px) { .home-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Journal ---------- */
.journal { padding-top: 0; }

/* ==========================================================================
   Phones: compact, thumb-friendly home
   ========================================================================== */
/* horizontal snap rails instead of long vertical stacks (the process steps stay vertical: see above) */
.rail-dots { display: none; }
@media (max-width: 860px) {
  .showcase, .journal .cards {
    display: flex; grid-template-columns: none; grid-template-rows: none; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); gap: 10px;
    margin: 0 calc(var(--pad) * -1); padding: 0 0 4px var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .showcase::-webkit-scrollbar, .journal .cards::-webkit-scrollbar { display: none; }
  /* end spacer: the last card stops one page margin from the edge in every browser (end padding is not reliable) */
  .showcase::after, .journal .cards::after { content: ""; flex: 0 0 calc(var(--pad) - 10px); }
  .showcase > .pcard, .showcase > .pcard:nth-child(-n + 2) { flex: 0 0 calc((100% - var(--pad)) * .82); scroll-snap-align: start; grid-column: auto; }
  .showcase .pcard .media { aspect-ratio: 4 / 5; }
  .showcase > .pcard:nth-child(-n + 2) .pcard__title { font-size: 19px; }
  .journal .cards > .post-card { flex: 0 0 calc((100% - var(--pad)) * .82); scroll-snap-align: start; }
  /* little progress dots under each rail (light ones on the dark map block) */
  .rail-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .rail-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mist-2); transition: background-color .3s, transform .3s var(--ease); }
  .rail-dots i.is-on { background: var(--ink); transform: scale(1.25); }
  .geo .rail-dots i { background: rgba(255, 255, 255, .22); }
  .geo .rail-dots i.is-on { background: var(--white); }
}
@media (max-width: 760px) {
  /* i·p·s: a shorter sticky track on phones (less scrolling, same story) */
  .ips__track { height: calc(var(--vh, 1vh) * 240); }
  .ips__head > .t-label + .t-label { letter-spacing: .1em; text-wrap: balance; }
  /* numbers: two per row; sized so "13 000 m²" fits its half on a 360px phone */
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 12px 14px 0; }
  .kpi + .kpi { padding-left: 0; }
  .kpi:nth-child(even) { border-right: 0; padding-left: 14px; }
  .kpi__value { font-size: clamp(30px, 9.2vw, 44px); }
  .kpi__note { display: none; }

  /* one swipeable row of choices under a drawing (map cities, facade layers): the picked one and its
     result stay on screen together; the right edge fades while there is more to swipe */
  .geo__chips {
    flex-wrap: nowrap;
    display: flex; gap: 8px; margin: 16px calc(var(--pad) * -1) 0; padding: 0 0 0 var(--pad); border-top: 0;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-padding-inline: var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  }
  .geo__chips.is-end { -webkit-mask-image: none; mask-image: none; }
  .geo__chips::after { content: ""; flex: 0 0 calc(var(--pad) - 8px); }
  .geo__chips::-webkit-scrollbar { display: none; }
  .geo__chips > * { flex: none; }
  .geo__chip {
    display: inline-flex; align-items: center; gap: 8px; width: auto; min-height: 44px; padding: 0 15px; white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, .22); border-radius: 2px; color: rgba(255, 255, 255, .82);
    transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
  }
  .geo__chip.is-sel { padding-left: 15px; background: var(--white); border-color: var(--white); color: var(--ink); }

  /* text links get a thumb-sized hit area without moving anything */
  .geo__all::before { content: ""; position: absolute; inset: -12px -8px; }

  /* brand tiles: three per row, three rows */
  .home-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .home-tiles .btile:nth-child(n + 10) { display: none; }
  /* directions: each half grows with its content (never clipped), text sits at the bottom */
  .duo__half { height: auto; min-height: calc(var(--vh, 1vh) * 72); display: flex; flex-direction: column; justify-content: flex-end; padding: 92px 18px 22px; }
  /* on a narrow card the text covers half the photo: a deeper scrim keeps it readable on bright photos */
  .duo__half::after { background: linear-gradient(180deg, rgba(20, 28, 45, .5) 0%, rgba(20, 28, 45, .1) 22%, rgba(20, 28, 45, .36) 40%, rgba(20, 28, 45, .82) 64%, rgba(20, 28, 45, .9) 100%); }
  .duo__body { position: relative; left: auto; right: auto; bottom: auto; gap: 12px; }
  .duo__top { left: 18px; right: 18px; top: 18px; }
  .duo__top > .t-label { display: none; } /* icon + numbers only: the title below names the direction */
  .duo__facts { gap: 22px; }
  .duo__facts b { font-size: 22px; white-space: nowrap; }
  .duo__title { font-size: clamp(40px, 12vw, 56px); }
  .duo__text { font-size: 16px; }
}
/* tablets: the rails show two cards and a peek instead of one screen-sized card */
@media (min-width: 561px) and (max-width: 860px) {
  .showcase > .pcard, .showcase > .pcard:nth-child(-n + 2), .journal .cards > .post-card { flex-basis: calc((100% - var(--pad)) * .44); }
}
/* tablets: the CTA band's side lines would cross its centred paragraph */
@media (max-width: 1024px) { .cta-band__lines { display: none; } }
/* very narrow phones: the article rail keeps its meta on one line (category + date) */
@media (max-width: 380px) { .journal .post-card__meta i:nth-of-type(2), .journal .post-card__meta > span:nth-of-type(3) { display: none; } }
@media (max-width: 330px) { .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-tiles .btile:nth-child(n + 9) { display: none; } }
