/* ============================================================
   PASSATO GROUP v2
   One locked light theme, keyed to the logo: blue #2440d8 on white.
   Type: Bricolage Grotesque (display) + Instrument Sans (body).
   Radius rule: surfaces 4px, buttons pill. Applied everywhere.
   No glows, no em-dashes, no eyebrow spam.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f2f4fd;        /* logo blue at ~5% on white */
  --bg-3: #e6eafb;
  --text: #0f1638;        /* logo hue, taken to near-black navy */
  --text-dim: #525a78;
  --accent: #2440d8;      /* logo blue, 6.9:1 on --bg */
  --accent-fill: #2440d8;
  --accent-deep: #1a2fa8; /* hover / pressed fills */
  --line: rgba(15, 22, 56, 0.12);
  --scrim: 9, 14, 40;     /* rgb for dark overlays on photos */

  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", sans-serif;

  --r-surface: 4px;
  --r-pill: 999px;

  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2.5rem;
  --s5: 4rem;
  --s6: 6.5rem;
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.h-hero { font-size: clamp(2.6rem, 5.5vw, 4.6rem); font-weight: 800; }
.h-sec  { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; }
.h-item { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 700; }
.lead   { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--text-dim); max-width: 34em; }
.dim    { color: var(--text-dim); }

/* ---------- anchors land below the floating nav (hero-b.css .hb-nav.is-stuck) ---------- */
:root { --head-h: 80px; }
html { scroll-padding-top: calc(var(--head-h) + 1rem); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wordmark { display: inline-flex; align-items: center; }
.wordmark img { height: 30px; width: auto; display: block; }
.site-foot .wordmark img { height: 34px; }

/* ---------- about (division pages + home): story left, verified facts or one real photo right ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: var(--s4) clamp(2.5rem, 6vw, 6rem);
}
.about-copy .lead { margin-top: 1.1rem; max-width: 42ch; }
.about-p { margin-top: 1rem; max-width: 54ch; color: var(--text-dim); }
.about-facts { display: grid; gap: var(--s3); }
.about-side .about-facts { padding-left: clamp(1.25rem, 3vw, 2.5rem); border-left: 2px solid var(--accent); }
.about-facts dt {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.about-facts dd { margin-top: 0.3rem; color: var(--text-dim); }
/* with a photo, the facts sit in a row under the copy */
.about--photo .about-facts {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 2px solid var(--accent);
}
.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-surface);
  box-shadow: 0 30px 60px -34px rgba(15, 22, 56, 0.45);
}
@media (max-width: 800px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-side .about-facts { padding-left: 0; border-left: 0; padding-top: var(--s3); border-top: 2px solid var(--accent); }
}

/* ---------- sections ---------- */
.section { padding: var(--s6) 0; }
.section--alt { background: var(--bg-2); }

/* ---------- full-bleed hero (garage) ---------- */
.hero-full { position: relative; min-height: min(88vh, 900px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-full > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--scrim), 0.1) 30%, rgba(var(--scrim), 0.88) 100%);
}
.hero-full .wrap { position: relative; z-index: 1; padding-top: var(--s5); padding-bottom: var(--s5); }

/* text that sits on a photo scrim stays white */
.hero-full .wrap, .bento .bento-label, .news-count {
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.8);
  --line: rgba(255, 255, 255, 0.3);
  color: var(--text);
}
.hero-full .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- compact page hero ---------- */
.hero-page { padding: var(--s5) 0 var(--s4); border-bottom: 1px solid var(--line); }

/* ---------- buttons: pill ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8em 1.9em;
  border-radius: var(--r-pill);
  background: var(--accent-fill);
  color: #fff;
  transition: transform 0.15s, background 0.2s;
}
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: scale(0.98); }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--bg-3); border-color: var(--text-dim); }

/* ---------- bento (divisions) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s2);
}
.bento a {
  position: relative;
  display: block;
  border-radius: var(--r-surface);
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--line);
}
.bento a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.bento a:hover img { transform: scale(1.03); }
.bento a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(var(--scrim), 0.85) 100%);
}
.bento .bento-label {
  position: absolute;
  z-index: 1;
  left: var(--s3); right: var(--s3); bottom: var(--s3);
}
.bento .bento-label p { color: var(--text-dim); font-size: 0.95rem; max-width: 34em; }
.b-lg { grid-column: span 7; grid-row: span 2; min-height: 420px; }
.b-md { grid-column: span 5; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .b-lg, .b-md { grid-column: 1 / -1; grid-row: auto; min-height: 260px; }
}

/* ---------- split feature (photo + text) ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.feature-split img { border-radius: var(--r-surface); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 900px) { .feature-split { grid-template-columns: 1fr; } }

/* ---------- product list (steel) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
}
.product-grid figure {
  position: relative;
  border-radius: var(--r-surface);
  overflow: hidden;
  border: 1px solid var(--line);
}
.product-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-grid figcaption {
  padding: var(--s2) var(--s3);
  background: var(--bg-2);
}
.product-grid figcaption p { color: var(--text-dim); font-size: 0.92rem; }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

/* ---------- plain 3-up text (no cards, spacing only) ---------- */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}
.trio > div { border-top: 2px solid var(--accent); padding-top: var(--s2); }
.trio p { color: var(--text-dim); font-size: 0.98rem; }
@media (max-width: 800px) { .trio { grid-template-columns: 1fr; } }

/* ---------- businesses mosaic (home #divisi) ----------
   Photos shown straight away, captions below them. Asymmetric 12-column mosaic:
   the flagship spans two rows on the left, the rest vary in width so no two rows match. */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "g g g g g g g s s s s s"
    "g g g g g g g t t t t t"
    "c c c c c e e e e e e e";
  gap: clamp(1.5rem, 2.5vw, 2.25rem) var(--s3);
  margin-top: var(--s4);
}
.tile--g { grid-area: g; }
.tile--s { grid-area: s; }
.tile--t { grid-area: t; }
.tile--c { grid-area: c; }
.tile--e { grid-area: e; }

.tile { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.tile-img {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-surface);
  background: var(--bg-3);
  aspect-ratio: 16 / 10;
}
.tile--g .tile-img { flex: 1; aspect-ratio: auto; min-height: 0; } /* fills the two rows beside it */
.tile--g .tile-img img { position: absolute; inset: 0; } /* so the photo's own height never sets the row height */
.tile--c .tile-img, .tile--e .tile-img { aspect-ratio: auto; height: clamp(220px, 26vw, 380px); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.tile--g .tile-img img { object-position: 50% 58%; }

.tile-cap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: var(--s2);
  row-gap: 0.3rem;
}
.tile-cap b {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: color 0.25s;
}
.tile--g .tile-cap b { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.tile-cap .ph { font-size: 1.3rem; color: var(--text-dim); transition: color 0.25s, transform 0.25s; }
.tile-cap span { grid-column: 1 / -1; color: var(--text-dim); font-size: 0.97rem; max-width: 46ch; }
@media (hover: hover) {
  .tile:hover .tile-img img { transform: scale(1.04); }
  .tile:hover .tile-cap b, .tile:hover .tile-cap .ph { color: var(--accent); }
  .tile:hover .tile-cap .ph { transform: translate(2px, -2px); }
}
.tile:focus-visible .tile-cap b { color: var(--accent); }
.tile:active .tile-img img { transform: scale(1.02); }

@media (max-width: 800px) {
  /* flagship full width, then a 2x2 of the other four */
  .mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "g g" "s t" "c e";
    gap: var(--s3) var(--s2);
  }
  .tile--g .tile-img { flex: none; aspect-ratio: 4 / 3; }
  .tile--g .tile-img img { position: static; }
  .tile-img, .tile--c .tile-img, .tile--e .tile-img { height: auto; aspect-ratio: 4 / 5; }
  .tile--g .tile-img { aspect-ratio: 4 / 3; }
  .tile { gap: 0.6rem; }
  .tile-cap b { font-size: 1.15rem; }
  .tile--g .tile-cap b { font-size: 1.6rem; }
  .tile-cap span { font-size: 0.86rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tile-img img, .tile-cap b, .tile-cap .ph { transition: none; }
}

/* ---------- SEMA poster (home #sema) ----------
   Full-bleed photo, copy inside the frame but only in the headroom above the car.
   Desktop: everything top-left over the shutter wall. Phones: portrait photo,
   label + headline over the ceiling, text + button over the floor. A dark fade sits
   only where the copy is, so white type passes contrast without dimming the car. */
.sema {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: min(100svh, 62.5vw); /* the 16:10 photo, never taller than the screen */
  color: #fff;
}
.sema { --fade-h: clamp(170px, 27vh, 250px); }
.sema picture, .sema-bg { position: absolute; inset: 0; z-index: -2; }
/* focus pull from the hero: starts in the hero's paper blue, blurs the photo, then clears */
.sema-fade {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: var(--fade-h);
  z-index: 1;
  pointer-events: none;
  /* eased (smoothstep) ramps: flat at the seam, so the eye finds no edge where the hero ends */
  background: linear-gradient(180deg, rgba(238, 241, 252, 1.000) 0%, rgba(238, 241, 252, 1.000) 11%, rgba(238, 241, 252, 0.992) 22%, rgba(238, 241, 252, 0.908) 33%, rgba(238, 241, 252, 0.755) 44%, rgba(238, 241, 252, 0.563) 56%, rgba(238, 241, 252, 0.361) 67%, rgba(238, 241, 252, 0.181) 78%, rgba(238, 241, 252, 0.050) 89%, rgba(238, 241, 252, 0.000) 100%);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1.000) 0%, rgba(0,0,0,1.000) 11%, rgba(0,0,0,1.000) 22%, rgba(0,0,0,0.993) 33%, rgba(0,0,0,0.890) 44%, rgba(0,0,0,0.697) 56%, rgba(0,0,0,0.464) 67%, rgba(0,0,0,0.238) 78%, rgba(0,0,0,0.068) 89%, rgba(0,0,0,0.000) 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,1.000) 0%, rgba(0,0,0,1.000) 11%, rgba(0,0,0,1.000) 22%, rgba(0,0,0,0.993) 33%, rgba(0,0,0,0.890) 44%, rgba(0,0,0,0.697) 56%, rgba(0,0,0,0.464) 67%, rgba(0,0,0,0.238) 78%, rgba(0,0,0,0.068) 89%, rgba(0,0,0,0.000) 100%);
}
.sema-bg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.sema::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(var(--scrim), 0) 12%, rgba(var(--scrim), 0.55) 26%, rgba(var(--scrim), 0.3) 44%, rgba(var(--scrim), 0) 58%),
    linear-gradient(90deg, rgba(var(--scrim), 0.5) 0%, rgba(var(--scrim), 0) 55%);
}
.sema-over {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-top: calc(var(--fade-h) * 0.84);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.sema-head, .sema-foot { max-width: 34rem; }
.sema-foot { margin-top: 0.9rem; }
.sema-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.sema-title {
  margin-top: 0.8rem;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(var(--scrim), 0.35);
}
.sema-text { display: none; max-width: 38ch; font-size: 1.08rem; color: rgba(255, 255, 255, 0.9); }
.sema-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 1.5rem;
  padding: 0.85em 1.6em;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.sema-btn:hover { background: #e6eafb; }
.sema-btn .ph { transition: transform 0.2s; }
.sema-btn:hover .ph { transform: translateX(3px); }
.sema-btn:active { transform: scale(0.98); }

@media (max-width: 800px) {
  /* phones: portrait photo at its own shape with label + headline over the ceiling;
     text + button sit below the photo on the same navy the photo fades into */
  .sema { display: block; min-height: 0; background: rgb(var(--scrim)); --fade-h: 72px; }
  .sema picture { position: relative; inset: auto; z-index: auto; display: block; }
  .sema picture::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(var(--scrim), 0) 10%, rgba(var(--scrim), 0.7) 22%, rgba(var(--scrim), 0) 48%),
      linear-gradient(0deg, rgb(var(--scrim)) 0%, rgba(var(--scrim), 0) 22%);
  }
  .sema-bg { position: static; display: block; height: auto; aspect-ratio: 1080 / 1255; }
  .sema::before { display: none; }
  .sema-over { display: block; padding-top: 0; padding-bottom: 2.25rem; }
  .sema-head { position: absolute; top: calc(var(--fade-h) + 0.5rem); left: clamp(1.25rem, 4vw, 3rem); right: clamp(1.25rem, 4vw, 3rem); }
  .sema-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .sema-foot { position: relative; margin-top: 0.5rem; max-width: none; }
  .sema-text { display: block; font-size: 1rem; }
  .sema-btn { margin-top: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sema-btn, .sema-btn .ph { transition: none; }
}

/* ---------- contact (home #kontak) ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: var(--s3) var(--s5);
  align-items: start;
}
.contact .lead { margin-top: 1rem; }
.contact-list { list-style: none; border-top: 1px solid var(--line); }
.contact-row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s2);
  padding: 1.15rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s, padding 0.2s;
}
.contact-row b { font-family: var(--font-display); font-size: 1.15rem; }
.contact-row span { color: var(--text-dim); }
.contact-row .ph { font-size: 1.4rem; color: var(--accent); }
.contact-row:hover { background: var(--bg-2); padding-left: 0.75rem; }
@media (max-width: 800px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.2rem; }
  .contact-row span { grid-column: 1; grid-row: 2; font-size: 0.92rem; }
  .contact-row .ph { grid-column: 2; grid-row: 1 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-row { transition: none; }
}

/* ---------- flow (home "Saling menopang") ----------
   Steel supplies, Transport delivers, Lifestyle enjoys: a relay, so the rows
   step in to the right instead of sitting as three equal columns. */
.flow { margin-top: var(--s4); border-top: 2px solid var(--accent); }
.flow > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--s2) var(--s4);
  align-items: baseline;
  padding: var(--s3) 0;
}
.flow > div:nth-child(2) { margin-left: 8%; }
.flow > div:nth-child(3) { margin-left: 16%; }
.flow h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 800; }
.flow p { color: var(--text-dim); max-width: 38ch; }
@media (max-width: 800px) {
  .flow > div { grid-template-columns: 1fr; gap: 0.4rem; }
  .flow > div:nth-child(n) { margin-left: 0; }
}

/* ---------- stats (plain, no cards) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s3);
}
.stats .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
}
.stats .lbl { color: var(--text-dim); margin-top: 0.4em; font-size: 0.95rem; }

/* ---------- process (real sequence) ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s3); counter-reset: step; }
.process > div { border-top: 1px solid var(--line); padding-top: var(--s2); }
.process h3 { font-size: 1.15rem; margin-bottom: 0.3em; }
.process p { color: var(--text-dim); font-size: 0.92rem; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------- partner marks ---------- */
.partners { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; }
.partners .mark {
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 1.05rem;
}
.partners .mark svg { width: 34px; height: 34px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s5) 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }

/* ---------- footer ---------- */
/* footer: brand + three link columns, a quiet base row, and the logo mark oversized as the page's last line.
   Same markup on every page. */
.site-foot {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 9vw, 7.5rem);
  border-top: 1px solid var(--line);
}
.site-foot .wrap { position: relative; z-index: 1; }
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--s4) var(--s3);
}
.foot-tag { margin-top: 0.9rem; max-width: 26ch; color: var(--text-dim); }
.site-foot h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; }
.foot-col ul { list-style: none; display: grid; gap: 0.7rem; }
.foot-col a { color: var(--text-dim); transition: color 0.2s; }
.foot-contact a { display: inline-flex; align-items: center; gap: 0.55rem; }
.foot-contact .ph { font-size: 1.15rem; color: var(--accent); }
.foot-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.9rem;
}
.foot-up { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--text); }
.foot-up .ph { transition: transform 0.2s; }
/* the mark, oversized behind the footer's lower half and cut by the page edge: a brand sign-off
   inside the footer, pale enough that the links and the base row read over it */
.foot-mark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: clamp(150px, 24vw, 340px);
  overflow: hidden;
  pointer-events: none;
}
.foot-mark img {
  display: block;
  width: min(100%, 1400px);
  height: auto;
  margin: 0 auto;
  opacity: 0.07;
}
@media (hover: hover) {
  .foot-col a:hover { color: var(--accent); }
  .foot-up:hover .ph { transform: translateY(-2px); }
}
@media (max-width: 900px) {
  .foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-col:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .foot-up .ph, .foot-col a { transition: none; } }

/* ---------- lightbox (lightbox.js): any [data-lightbox] group of images opens full screen ---------- */
[data-lightbox] img { cursor: zoom-in; }
.lb {
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 0;
  border: 0;
  background: rgba(var(--scrim), 0.94);
  color: #fff;
}
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem clamp(1rem, 3vw, 1.75rem); }
.lb-count { font-size: 0.92rem; color: rgba(255, 255, 255, 0.8); font-variant-numeric: tabular-nums; }
/* one fixed cell, so the photo's max-height has a real height to resolve against (an auto row would
   let tall portrait photos overflow the screen); the dvh cap is a second guard */
.lb-stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; padding: 0 clamp(0.5rem, 5vw, 5rem); touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: min(100%, calc(100dvh - 8.5rem)); object-fit: contain; border-radius: 10px; user-select: none; -webkit-user-drag: none; }
.lb-cap { padding: 0.75rem clamp(1rem, 3vw, 1.75rem) 1.25rem; text-align: center; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); min-height: 3rem; }
.lb-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.2rem;
  transition: background 0.2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.24); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }
.lb-prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.lb-next { right: clamp(0.5rem, 2vw, 1.5rem); }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: 0.5rem; transform: none; }
  .lb-stage { padding-bottom: 3.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .lb-img.is-in { animation: lb-in 0.25s ease-out; }
}
@keyframes lb-in { from { opacity: 0.3; } to { opacity: 1; } }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .bento a img { transition: none; }
}

/* ---------- a11y ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ============================================================
   NEWS BOARD
   A photo stage beside a manifest of headlines. The active row's
   rule fills as the timer runs, so the headline is the progress
   indicator and no dot nav is needed.
   ============================================================ */
.news-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
}
.news-all {
  font-size: 0.9rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.news-all:hover { color: var(--text); border-color: var(--accent); }

.news-board {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: var(--s4);
}

.news-shot {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-surface);
  background: var(--bg-3);
}
.news-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.6s ease;
}
.news-shot.is-swapping img { opacity: 0.15; }
.news-shot:hover img { transform: scale(1.02); }
.news-count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-pill);
  background: rgba(var(--scrim), 0.78);
  backdrop-filter: blur(6px);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.news-copy { margin-top: var(--s3); }
.news-meta {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.news-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 800;
  margin-top: 0.5rem;
}
.news-title a { transition: color 0.2s; }
.news-title a:hover { color: var(--accent); }
.news-excerpt {
  color: var(--text-dim);
  margin-top: 0.7rem;
  max-width: 44em;
}
.news-read {
  display: inline-block;
  margin-top: var(--s2);
  font-size: 0.95rem;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.news-read:hover { border-color: currentColor; }

.news-index { display: flex; flex-direction: column; list-style: none; }
.news-row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: var(--s2);
  align-items: baseline;
  width: 100%;
  text-align: left;
  padding: 0.95rem 0 1.05rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  position: relative;
  transition: color 0.25s;
}
.news-index li:last-child .news-row { border-bottom: 1px solid var(--line); }
.news-row:hover { color: var(--text); }
.news-row[aria-current="true"] { color: var(--text); }
.news-division {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.news-row[aria-current="true"] .news-division { color: var(--accent); }
.news-line {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.news-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
}
.news-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}
.news-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- news page ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s3);
  margin-top: var(--s4);
}
.news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  overflow: hidden;
  background: var(--bg-2);
  transition: border-color 0.25s, transform 0.25s;
}
.news-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.news-card-shot { position: relative; aspect-ratio: 16 / 10; background: var(--bg-3); }
.news-card-shot img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: var(--s3); }
.news-card-body .h-item { margin-top: 0.5rem; }
.news-card-body .news-excerpt { margin-top: 0.6rem; font-size: 0.95rem; }

.news-back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: var(--s3);
  transition: color 0.2s;
}
.news-back:hover { color: var(--text); }
.news-article { max-width: 68rem; }
.news-prose { max-width: 46rem; margin-top: var(--s3); }
.news-article .h-sec { margin-top: 0.6rem; }
.news-article .lead { margin-top: var(--s2); }
.news-body { margin-top: var(--s4); }
.news-body > * + * { margin-top: 1.1em; }
.news-body h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-top: 2rem; }
.news-body h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.news-body ul { list-style: disc; padding-left: 1.4em; }
.news-body ol { list-style: decimal; padding-left: 1.4em; }
.news-body li + li { margin-top: 0.35em; }
.news-body a { color: var(--accent); border-bottom: 1px solid currentColor; }
.news-body blockquote {
  border-left: 2px solid var(--accent);
  padding-left: var(--s3);
  color: var(--text-dim);
  font-size: 1.1rem;
}
.news-body hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.news-body img { border-radius: var(--r-surface); }

/* ---------- gallery header (article) ---------- */
.gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: stretch;
  gap: var(--s2);
  margin-top: var(--s3);
}
.gallery-head.is-single { grid-template-columns: minmax(0, 1fr); }

.gallery-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-surface);
  background: var(--bg-3);
}
.gallery-stage img { width: 100%; height: 100%; object-fit: cover; }

.gallery-rail-wrap { position: relative; min-height: 0; }
.gallery-rail {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 22, 56, 0.25) transparent;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: min-content;
  align-content: start;
  gap: var(--s1);
}
/* Two or three tiles divide the stage height exactly, so a short rail fills
   its column instead of scrolling. */
.gallery-rail.is-narrow {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  align-content: stretch;
  overflow-y: hidden;
}
.gallery-rail.is-narrow .gallery-thumb { aspect-ratio: auto; min-height: 0; }
.gallery-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-surface);
  background: var(--bg-3);
  opacity: 0.5;
  transition: opacity 0.2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 0.82; }
.gallery-thumb[aria-current="true"] {
  opacity: 1;
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.gallery-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery-caption {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: var(--s2);
}

.news-pager {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}
.news-pager-next { margin-left: auto; }
.news-pager-link { color: var(--text-dim); font-size: 0.9rem; transition: color 0.2s; }
.news-pager-link:hover { color: var(--text); }

@media (max-width: 900px) {
  .news-board { grid-template-columns: minmax(0, 1fr); }
  .news-index { margin-top: var(--s3); }
  .news-row { grid-template-columns: 5.5rem minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .news-row { grid-template-columns: 1fr; gap: 0.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .news-shot img,
  .news-card,
  .news-bar i { transition: none; }
  .news-bar { display: none; }
}
@media (max-width: 900px) {
  .gallery-head { grid-template-columns: minmax(0, 1fr); }
  .gallery-rail-wrap { position: static; }
  .gallery-rail {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: var(--s1);
    padding-bottom: 0.35rem;
  }
  .gallery-thumb { flex: 0 0 104px; aspect-ratio: 4 / 3; }
}
