/* INTERGAJ — design system.
   ---------------------------------------------------------------------------
   Direction: the group's own register. INTERGAJ is a holding company, so the
   site is built as a public record rather than a brochure — figures, structure
   and legal facts stated plainly. Navy carries institutional weight; the brand
   red is spent sparingly so it still means something when it appears.

   Brand colours sampled from assets/img/intergaj-logo.png:
   red #EC1C24 (67% of opaque pixels), blue #0054A5 (32%).

   #EC1C24 measures 4.41:1 on white — under the 4.5:1 AA threshold — so it is
   reserved for the logo, rules and decorative accents, where 3:1 applies.
   Text and buttons use --red-ink (6.91:1).
   ------------------------------------------------------------------------- */

:root {
  --red:      #EC1C24;  /* brand red — decorative use only */
  --red-ink:  #B3151C;  /* AA-safe red for text and buttons */
  --red-dark: #8E1016;  /* button hover */
  --blue:     #0054A5;  /* brand blue, from the logo outline */
  --navy:     #072A4F;  /* institutional ground */
  --navy-hi:  #0D4277;  /* gradient highlight */
  --navy-lo:  #041A33;  /* gradient depth */
  --ink:      #0F1419;
  --muted:    #57606B;
  --line:     #DFE3E8;
  --bg:       #FFFFFF;
  --stone:    #EFF2F5;  /* cool grey — deliberately not a warm cream */

  /* Shadows carry a little navy rather than pure black, so depth reads as part
     of the palette instead of grey smudge. */
  --shadow-sm: 0 1px 2px rgba(7, 42, 79, 0.08), 0 2px 6px -2px rgba(7, 42, 79, 0.10);
  --shadow-md: 0 2px 4px rgba(7, 42, 79, 0.06), 0 14px 32px -14px rgba(7, 42, 79, 0.30);
  --shadow-lg: 0 30px 60px -24px rgba(2, 12, 26, 0.65);
  --shadow-red: 0 1px 2px rgba(142, 16, 22, 0.25), 0 10px 22px -10px rgba(179, 21, 28, 0.60);

  --on-navy:       #FFFFFF;
  --on-navy-muted: #A9C0DA;
  --on-navy-line:  #1D4570;

  --wrap:    1200px;
  --gap:     clamp(1.25rem, 3vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.625rem, 1.25rem + 1.6vw, 2.5rem); }
h3 { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); letter-spacing: -0.015em; }
p  { margin: 0 0 1.1em; max-width: 66ch; }

a { color: var(--red-ink); text-underline-offset: 0.15em; }
a:hover { color: var(--red-dark); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--alt { background: linear-gradient(180deg, var(--stone) 0%, #F5F7F9 100%); }

/* A second dark band mid-page, so the page has two moments of weight rather
   than one at the top. */
.section--navy {
  background:
    radial-gradient(ellipse 60% 80% at 10% 0%, var(--navy-hi) 0%, transparent 55%),
    linear-gradient(170deg, var(--navy) 0%, var(--navy-lo) 100%);
  color: var(--on-navy);
}
.section--navy h2, .section--navy h3 { color: var(--on-navy); }
.section--navy .eyebrow, .section--navy .lede, .section--navy p { color: var(--on-navy-muted); }
.section--navy .pillars { border-top-color: rgba(255, 255, 255, 0.35); }
.section--navy .pillars__item { border-color: var(--on-navy-line); }
.section--navy .pillars__item p { color: var(--on-navy-muted); }
.lede { font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem); color: var(--muted); max-width: 60ch; line-height: 1.5; }

/* Eyebrow — an administrative label, set like one. ------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.eyebrow--onnavy { color: var(--on-navy-muted); }

/* Masthead — the group states what it is, on institutional ground. -------- */
.masthead {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
  color: var(--on-navy);
  /* Less below than above: the figures already end in their own padding. */
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(1.5rem, 4vw, 3rem);
  border-bottom: 4px solid var(--red);
}
.masthead h1 { color: var(--on-navy); max-width: 20ch; }
.masthead .lede { color: var(--on-navy-muted); }
.masthead a { color: var(--on-navy); }

/* Page header — the shared opening for every inner page. ------------------ */
.pagehead {
  background: var(--stone);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.pagehead h1 { max-width: 18ch; }
.pagehead .lede { margin-bottom: 0; }

/* The header is already stone, so the band directly below it must not be —
   otherwise the two merge into one undifferentiated grey block. */
.pagehead + .section--alt { background: var(--bg); }

/* Jump index — gives long division pages their shape back. ---------------- */
.jumpnav { border-bottom: 1px solid var(--line); background: var(--bg); }
.jumpnav__inner {
  display: flex; align-items: baseline; gap: 1.5rem;
  flex-wrap: wrap; padding-block: 1.1rem;
}
.jumpnav__label {
  margin: 0; font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.jumpnav__list {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem;
  list-style: none; margin: 0; padding: 0;
}
.jumpnav__list a {
  color: var(--ink); text-decoration: none;
  font-size: 0.9375rem; font-weight: 600;
  display: inline-block; padding-block: 0.65rem 0.5rem;
  border-bottom: 2px solid transparent;
}
.jumpnav__list a:hover { color: var(--red-ink); border-bottom-color: var(--red); }

/* The anchored sections sit below a sticky header, so scroll needs an offset
   or each heading lands underneath it. */
main section[id] { scroll-margin-top: 5.5rem; }

/* Figures — the record, set in monospace so the numerals align. ----------- */
.figures__title { margin: clamp(2.5rem, 6vw, 4rem) 0 1rem; }

/* Four figures: 4-up on wide screens, 2-up below — always a whole number of
   columns, so the grid never leaves a ragged final row. */
.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--on-navy-line);
}
.figures__item {
  padding: 1.5rem 1.25rem 1.5rem 0;
  border-right: 1px solid var(--on-navy-line);
}
.figures__item:last-child { border-right: 0; }
/* Columns after the first start a divider's width in, never flush on the rule. */
.figures__item + .figures__item { padding-left: 1.5rem; }

@media (max-width: 48rem) {
  .figures { grid-template-columns: repeat(2, 1fr); }
  .figures__item:nth-child(2n) { border-right: 0; }
  .figures__item:nth-child(n+3) { border-top: 1px solid var(--on-navy-line); }
  .figures__item:nth-child(odd) { padding-left: 0; padding-right: 1rem; }
  .figures__item:nth-child(even) { padding-left: 1rem; }
}

.figures__value {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--on-navy);
  line-height: 1;
}
.figures__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--on-navy-muted);
}

/* Holdings — the signature. A holding company's list of holdings: one grid
   of cards, each ending in a single verified fact. The outbound marker on a
   card's website link is what tells an independent company from a division
   run directly — no headings needed for that. ---------------------------- */
.holdings {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; gap: 1rem;
}
@media (min-width: 48rem) { .holdings { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }

.holding {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.6rem 1.75rem 1.4rem;
  background: var(--bg);
  border: 1px solid var(--line);
}
.holding { box-shadow: var(--shadow-sm); }
.holding:hover, .holding:focus-within { border-color: var(--ink); box-shadow: var(--shadow-md); }

.holding__where {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 0.6rem;
}
.holding__name { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem); margin: 0 0 0.45rem; }
.holding__name a { color: var(--ink); text-decoration: none; }
.holding__name a::after { content: ""; position: absolute; inset: 0; }
.holding__work { color: var(--muted); margin: 0 0 1.4rem; max-width: 44ch; }

/* The foot carries the one fact, and where the card leads. */
.holding__foot {
  margin-top: auto; padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.holding__fact {
  margin: 0; font-family: var(--mono); font-size: 0.8125rem;
  letter-spacing: 0.02em; color: var(--ink);
}
.holding__arrow { font-size: 1.25rem; line-height: 1; color: var(--ink); }
.holding__external {
  position: relative; z-index: 1;
  font-family: var(--mono); font-size: 0.8125rem; white-space: nowrap;
  display: inline-block; padding-block: 0.45rem;
}
/* The outbound marker still carries information: this one leaves the site. */
.holding__external::after { content: " \2197"; }

.holding__fact { flex: 1 1 auto; min-width: 0; }
.holding__arrow { flex: none; }
/* On a phone a website name and a fact can't share one line; stack only those
   cards, so the arrow cards keep their fact and arrow side by side. */
@media (max-width: 34rem) {
  .holding__foot:has(.holding__external) { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
}

/* Record — the legal facts, beside the story of how the group began. ------ */
.split--story { align-items: start; }
.record { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.record .eyebrow { margin-bottom: 0.5rem; }
.record__list { margin: 0; }
.record__list div {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1rem;
  padding: 0.95rem 0; border-bottom: 1px solid var(--line);
}
.record__list dt {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); padding-top: 0.2rem;
}
.record__list dd { margin: 0; font-weight: 600; }
@media (max-width: 34rem) { .record__list div { grid-template-columns: 1fr; gap: 0.25rem; } }

/* Stats — the light-ground twin of the masthead figures. ------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 1px solid var(--ink);
}
.stats__item { padding: 1.5rem 1.25rem 0 0; border-right: 1px solid var(--line); }
.stats__item:last-child { border-right: 0; }
.stats__item + .stats__item { padding-left: 1.5rem; }
.stats__value {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  color: var(--ink);
}
.stats__label { margin-top: 0.6rem; font-size: 0.8125rem; line-height: 1.35; color: var(--muted); }

@media (max-width: 48rem) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2n) { border-right: 0; }
  .stats__item:nth-child(odd) { padding-left: 0; }
  .stats__item:nth-child(even) { padding-left: 1rem; }
  .stats__item:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 1.5rem; }
}

/* Pillars — how the group operates. Same rule-and-column language as the
   figures and the register, so the page reads as one document. ------------ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  margin-top: 2.5rem;
}
.pillars__item { padding: 1.75rem 2rem 0 0; border-right: 1px solid var(--line); }
.pillars__item:last-child { border-right: 0; padding-right: 0; }
.pillars__item + .pillars__item { padding-left: 2rem; }
.pillars__item h3 { margin-bottom: 0.5rem; }
.pillars__item p { color: var(--muted); margin-bottom: 0; max-width: 34ch; }

.pillars--two { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
.pillars--two h2 { font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem); }

@media (max-width: 52rem) {
  .pillars, .pillars--two { grid-template-columns: 1fr; }
  .pillars__item, .pillars__item + .pillars__item { border-right: 0; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
  .pillars__item:last-child { border-bottom: 0; }
  .pillars__item p { max-width: none; }
}

/* Closing — contact and careers given equal standing. --------------------- */
.closing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  border-top: 1px solid var(--ink);
  padding-top: 2.5rem;
}
.closing h2 { font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem); }
@media (max-width: 52rem) { .closing { grid-template-columns: 1fr; gap: 2.5rem; } }

/* Facts — the legal record. ---------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.facts div { background: var(--bg); padding: 1.35rem 1.5rem; }
.facts dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.facts dd { margin: 0; font-weight: 600; }

/* Cards, used on inner pages only. ---------------------------------------- */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

.card { border: 1px solid var(--line); padding: 1.6rem; background: var(--bg); }
.card h3 { margin-bottom: 0.35em; }
.card p  { color: var(--muted); margin-bottom: 0.75em; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  background: linear-gradient(180deg, #C11A22 0%, var(--red-ink) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 2px;
  box-shadow: var(--shadow-red);
}
.btn:hover { background: linear-gradient(180deg, var(--red-ink) 0%, var(--red-dark) 100%); color: #fff; }
.btn--ghost { background: var(--bg); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-md); }
/* Buttons that go somewhere carry an arrow that leans toward it on hover. */
.btn::after { content: "\2192"; font-weight: 400; }
/* …but a phone number or an address isn't a destination, and a link that
   leaves the site says so. */
.btn[href^="tel:"]::after, .btn[href^="mailto:"]::after { content: none; }
.btn[target="_blank"]::after { content: "\2197"; }
.btn--onnavy { background: var(--red); color: #fff; }
.btn--onnavy:hover { background: #fff; color: var(--navy); }

/* Utility bar — legal identity and the things needed from any page. ------- */
.utility {
  background: var(--navy);
  color: var(--on-navy-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.utility__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; min-height: 2.75rem;
}
.utility__id { margin: 0; }
.utility__links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
/* The bar is slim, but its two links are the most-used controls on a phone:
   give them a full 44px target without making the bar look taller. */
.utility__links a {
  color: var(--on-navy); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 2.75rem;
}
.utility__links a:hover { color: var(--on-navy-muted); text-decoration: underline; }

/* On a phone the full legal string wraps to three lines and pushes the bar to
   ~90px. The phone number and language switcher are what's actually useful
   there, so the entity line steps aside. */
@media (max-width: 40rem) {
  .utility__id { display: none; }
  .utility__inner { justify-content: flex-end; }
}

/* Header ------------------------------------------------------------------ */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(255, 255, 255, 0.94); z-index: 30;
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); border-bottom-color: transparent; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.15rem; }
.site-header__logo { display: block; padding-block: 0.4rem; }

.nav__list { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__item { position: relative; }

.nav__link {
  color: var(--ink); text-decoration: none;
  font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.005em;
  padding: 0.45rem 0; display: inline-block;
}
.nav__link:hover { color: var(--red-ink); }
.nav__link.is-current { color: var(--red-ink); box-shadow: inset 0 -2px 0 var(--red); }

/* Divisions panel — a native <details>, so it works without JavaScript. --- */
.menu__summary { cursor: pointer; list-style: none; user-select: none; }
.menu__summary::-webkit-details-marker { display: none; }
.menu__summary::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 0.4rem; height: 0.4rem; margin-left: 0.5rem;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.menu[open] > .menu__summary::after { transform: translateY(1px) rotate(-135deg); }

.menu__panel {
  position: absolute; top: calc(100% + 1.15rem); left: 50%; transform: translateX(-50%);
  width: min(46rem, calc(100vw - 2rem));
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 1.5rem;
  z-index: 40;
}
.menu__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem 2rem; list-style: none; margin: 0; padding: 0;
}
.menu__grid a { display: block; padding: 0.7rem 0.75rem; text-decoration: none; color: var(--ink); }
.menu__grid a:hover { background: var(--stone); }
.menu__grid a[aria-current="page"] { background: var(--stone); box-shadow: inset 3px 0 0 var(--red); }
.menu__name { display: block; font-weight: 700; font-size: 0.9375rem; }
.menu__work { display: block; font-size: 0.8125rem; color: var(--muted); line-height: 1.4; margin-top: 0.15rem; }

.nav-toggle { display: none; }

@media (max-width: 62rem) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: none; border: 1px solid var(--line); border-radius: 0;
    padding: 0.5rem 0.85rem; font: inherit; font-size: 0.9rem; cursor: pointer; color: var(--ink);
    min-height: 2.75rem;
  }
  .nav-toggle__bar,
  .nav-toggle__bar::before,
  .nav-toggle__bar::after {
    display: block; width: 18px; height: 2px; background: var(--ink); content: ""; position: relative;
  }
  .nav-toggle__bar::before { top: -6px; position: absolute; }
  .nav-toggle__bar::after  { top:  6px; position: absolute; }

  /* Without wrapping, the nav is a flex item competing for room on the logo's
     row and collapses to a sliver instead of dropping below it. */
  .site-header__inner { flex-wrap: wrap; }

  .nav { display: none; width: 100%; order: 3; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 1rem; }
  .nav__item { border-top: 1px solid var(--line); }
  .nav__link { padding: 0.9rem 0; width: 100%; }

  /* The panel stops floating and becomes part of the stacked list. */
  .menu__panel {
    position: static; transform: none; width: auto;
    border: 0; border-left: 3px solid var(--red);
    padding: 0.25rem 0 0.75rem 0.85rem; margin-bottom: 0.5rem;
  }
  .menu__grid { grid-template-columns: 1fr; }
  .menu[open] > .menu__panel { animation: none; }
  .menu__grid a { padding: 0.55rem 0.5rem; }
  .menu__work { display: none; }
}

/* Footer ------------------------------------------------------------------ */
/* Follows the Intergaj Stanovi footer: no underlines, bold white links that
   warm to a light red on hover, and a base row for the copyright and credit. */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-lo) 100%);
  color: var(--on-navy); margin-top: 0;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #FF8A8E; }

.site-footer__grid {
  display: grid; gap: 2.5rem var(--gap);
  padding-block: clamp(3.5rem, 7vw, 5rem) 2.5rem;
}
@media (min-width: 48rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

.site-footer__logo { display: inline-block; }
.site-footer__logo img { display: block; width: auto; height: 34px; }
.site-footer__lede { margin: 1.1rem 0 0; color: var(--on-navy-muted); max-width: 30ch; }

.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; }
.site-footer__col a { font-weight: 600; padding-block: 0.4rem; }
.site-footer__col span { color: var(--on-navy-muted); padding-block: 0.4rem; }
.site-footer__heading {
  font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--on-navy-muted); margin-bottom: 0.6rem;
}

.site-footer__base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.5rem; padding-block: 1.4rem 1.8rem;
  border-top: 1px solid var(--on-navy-line);
  font-size: 0.8125rem; color: var(--on-navy-muted);
}
.site-footer__credit { display: inline-flex; align-items: center; gap: 0.45rem; }
/* The Blink wordmark is black; turn it white to sit with the footer text. */
.site-footer__blink { display: inline-flex; opacity: 0.75; }
.site-footer__blink:hover { opacity: 1; }
.site-footer__blink img { display: block; width: auto; height: 1.35em; filter: brightness(0) invert(1); }
@media (max-width: 34rem) { .site-footer__base { justify-content: center; text-align: center; } }

/* Photography ------------------------------------------------------------
   Real photographs of the group only — never stock, never ad creatives.
   Every photo is cropped by its frame (aspect-ratio + object-fit), so the
   layout holds whatever the source proportions are. */
.photo { display: block; overflow: hidden; background: var(--stone); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

figure { margin: 0; }
figcaption {
  margin-top: 0.75rem;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}

/* Masthead: statement left, the group's own building right. */
.masthead__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.masthead__photo .photo { aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); outline: 1px solid rgba(255, 255, 255, 0.08); outline-offset: -1px; }
.masthead__photo figcaption { color: var(--on-navy-muted); }
@media (min-width: 62rem) {
  .masthead__grid { grid-template-columns: 1.1fr 0.9fr; }
  .masthead h1 { font-size: clamp(2.25rem, 1.4rem + 2.4vw, 3.5rem); }
}
@media (max-width: 61.99rem) {
  .masthead__photo .photo { aspect-ratio: 16 / 10; }
}

/* A full-width band under an inner page header. */
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.band .photo { aspect-ratio: 21 / 9; }
.band .photo img { object-position: center 40%; }
@media (max-width: 48rem) { .band .photo { aspect-ratio: 4 / 3; } }

/* Text beside a photograph. */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__photo .photo { aspect-ratio: 16 / 10; }
.split__photo--tall .photo { aspect-ratio: 4 / 5; }
/* Cap the figure, not the image, so photo and caption stay one column wide. */
.split__photo--tall { width: 100%; max-width: 28rem; justify-self: end; }
@media (max-width: 61.99rem) { .split__photo--tall { justify-self: stretch; max-width: none; } .split__photo--tall .photo { aspect-ratio: 4 / 3; } }
@media (min-width: 62rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__text { order: 2; }
}

/* Offer — the Semberski salaš facilities as photo cards. Two featured
   offers across the top, three below: a 6-column grid spans them 3+3, 2+2+2,
   so no row is ever ragged. --------------------------------------------- */
.offer { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.offer__item {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.offer__item .photo { aspect-ratio: 4 / 3; }
.offer__body { padding: 1.4rem 1.5rem 1.6rem; }
.offer__body h3 { margin-bottom: 0.4rem; }
.offer__body p { color: var(--muted); margin: 0; }
/* The stud photo is a tall portrait; frame it on the horse, not the sky. */
.offer__item[data-offer="ergela"] .photo img { object-position: 50% 42%; }

@media (min-width: 48rem) {
  .offer { grid-template-columns: repeat(2, 1fr); }
  .offer__item:first-child { grid-column: 1 / -1; }
  .offer__item:first-child .photo { aspect-ratio: 21 / 9; }
}
@media (min-width: 62rem) {
  .offer { grid-template-columns: repeat(6, 1fr); }
  .offer__item { grid-column: span 2; }
  .offer__item:first-child { grid-column: span 3; }
  .offer__item:nth-child(2) { grid-column: span 3; }
  .offer__item:first-child .photo,
  .offer__item:nth-child(2) .photo { aspect-ratio: 16 / 9; }
}

/* A row of buttons. */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero motion graphic — the group drawn as a survey sheet (includes/hero-motion.php).
   Everything sits in the navy's own tints so the type above stays the loudest
   thing in the hero; only the INTERGAJ marker is red. ---------------------- */
.hm { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
/* Stacked layouts crop the sheet to a narrow centre strip that sits right
   behind the type, so there it is held back to a quarter of its strength until
   below the lede. A mask, not a colour gradient: the navy itself stays flat. */
@media (max-width: 61.99rem) {
  .hm {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.22) 42%, #000 62%);
            mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.22) 42%, #000 62%);
  }
}
.hm-grid { fill: none; stroke: rgba(169, 192, 218, 0.07); stroke-width: 1; }
.hm-strip { fill: none; stroke: rgba(169, 192, 218, 0.16); stroke-width: 1; }
.hm-rows { fill: none; stroke: rgba(169, 192, 218, 0.20); stroke-width: 1; }
.hm-plough { fill: #fff; }
.hm-block { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.2; }
.hm-hatch { stroke: rgba(255, 255, 255, 0.2); stroke-width: 1.5; }
.hm-site { fill: url(#hm-hatch); }
.hm-road-edge { fill: none; stroke: rgba(169, 192, 218, 0.3); stroke-width: 30; }
.hm-road-bed { fill: none; stroke: var(--navy); stroke-width: 27.5; }
.hm-road-dash { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.4; stroke-dasharray: 12 20; }
.hm-car, .hm-trolley, .hm-horse { fill: #fff; }
.hm-crane { fill: none; stroke: rgba(255, 255, 255, 0.65); stroke-width: 1.6; }
.hm-crane-weight { fill: rgba(255, 255, 255, 0.35); }
.hm-mast { fill: var(--navy); stroke: rgba(255, 255, 255, 0.65); stroke-width: 1.4; }
.hm-pool { fill: rgba(0, 84, 165, 0.45); stroke: rgba(169, 192, 218, 0.45); stroke-width: 1; }
.hm-ripple { fill: none; stroke: rgba(255, 255, 255, 0.6); stroke-width: 1; }
.hm-arena { fill: none; stroke: rgba(169, 192, 218, 0.35); stroke-width: 1.2; stroke-dasharray: 3 6; }
.hm-pulse { fill: none; stroke: var(--red); stroke-width: 1.5; }
.hm-marker { fill: var(--red); }
.hm-label { fill: rgba(169, 192, 218, 0.55); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; }

@media (prefers-reduced-motion: no-preference) {
  .hm-draw {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: hm-draw 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    animation-delay: var(--d, 0s);
  }
  @keyframes hm-draw { to { stroke-dashoffset: 0; } }
  .hm-site { opacity: 0; animation: hm-fade 1.2s ease 2.6s forwards; }
  @keyframes hm-fade { to { opacity: 1; } }
  .hm-road-dash { animation: hm-dash 1.6s linear infinite; }
  @keyframes hm-dash { to { stroke-dashoffset: -32; } }
  /* Off-screen, the drawing stops costing anything. */
  .hm.is-paused, .hm.is-paused * { animation-play-state: paused; }
}

/* Motion ------------------------------------------------------------------
   One quiet system rather than scattered effects: the masthead settles on load,
   content rises once as it scrolls into view, and interactive things respond
   on hover. All of it lives inside no-preference, so reduced motion gets a
   still page, and .reveal is only ever added by JS that can also remove it. */
@media (prefers-reduced-motion: no-preference) {
  :root { --ease: cubic-bezier(0.2, 0.7, 0.2, 1); }

  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .reveal.is-in { opacity: 1; transform: none; }

  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

  .masthead .eyebrow,
  .masthead h1,
  .masthead .lede,
  .masthead .figures__title,
  .figures__item { animation: rise 0.8s var(--ease) both; }
  .masthead h1 { animation-delay: 80ms; }
  .masthead .lede { animation-delay: 180ms; }
  .masthead .figures__title { animation-delay: 300ms; }
  .figures__item:nth-child(1) { animation-delay: 360ms; }
  .figures__item:nth-child(2) { animation-delay: 420ms; }
  .figures__item:nth-child(3) { animation-delay: 480ms; }
  .figures__item:nth-child(4) { animation-delay: 540ms; }
  .masthead__photo img { animation: settle 1.4s var(--ease) both; animation-delay: 120ms; }

  .site-footer__blink { transition: opacity 0.2s ease; }
  .btn, .nav__link, .jumpnav__list a, .menu__grid a, .holding, .holding__arrow,
  .holding__name a, .site-footer a, .utility__links a, a {
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  }

  @keyframes panel { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
  .menu[open] > .menu__panel { animation: panel 0.18s var(--ease); }
  .menu__summary::after { transition: transform 0.2s var(--ease); }

  .photo img { transition: transform 1.2s var(--ease); }

  .btn { transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s ease, border-color 0.18s ease, color 0.18s ease; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
  .btn::after { transition: transform 0.25s var(--ease); }
  .btn:hover::after { transform: translateX(3px); }

  .holding { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.2s ease; }
  .holding:hover, .holding:focus-within { transform: translateY(-3px); }
  .offer__item { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
  .offer__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .offer__item:hover .photo img { transform: scale(1.03); }

  .site-header { transition: box-shadow 0.25s ease, border-color 0.25s ease; }


  .photo:hover img { transform: scale(1.02); }
}

/* Holding tiles: a short red rule draws in along the top on hover — the one
   place the brand red moves. */
.holding::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 0; height: 2px; background: var(--red);
}
@media (prefers-reduced-motion: no-preference) {
  .holding::before { transition: width 0.35s var(--ease); }
}
.holding:hover::before, .holding:focus-within::before { width: 3rem; }
.holding:hover .holding__name a { color: var(--red-ink); }
@media (prefers-reduced-motion: no-preference) {
  .holding__arrow { transition: transform 0.3s var(--ease); }
}
.holding:hover .holding__arrow, .holding:focus-within .holding__arrow { transform: translateX(4px); color: var(--red-ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
