/* =====================================================================
   MILO — Roots.
   Taken from concept 03 "Roots" (Milo-V2): an oxblood page, one
   typeface (Archivo, wide and heavy for display), square boxes with
   hairline borders, solid Longevity Red for buttons, a full-screen
   photo hero (with an optional vertical 9:16 story frame).
   Every page loads this file after shared/base.css and shared/kit.css.
   Colours start from the MILO 43 palette (master prompt, 4.2):
     43 Black #1A0000 · Longevity Red #C10016 · Stone Gray #D9D3C8
     Air Gray #E9EBE4 · Copper Brown #712F0D · Vibrant Orange #D74A1D
     Warm Peach #F2B277
   The Roots tones (#260D0C, #2E1615, #45302D, #BEB5AB) are tints
   derived from 43 Black, Copper Brown and Stone Gray.
   ===================================================================== */
:root {
  /* MILO 43 palette */
  --milo-black: #1A0000;
  --milo-red: #C10016;
  --milo-stone: #D9D3C8;
  --milo-air: #E9EBE4;
  --milo-brown: #712F0D;
  --milo-orange: #D74A1D;
  --milo-peach: #F2B277;

  /* Roots tones that never change with the theme */
  --oxblood: #260D0C;          /* Roots page colour: 43 Black lifted toward Copper Brown */
  --on-dark: #E9EBE4;
  --on-dark2: #BEB5AB;
  --hero-shade: rgba(38, 13, 12, .5);

  /* Light theme (derived): Air Gray page, Stone Gray boxes, oxblood ink */
  --bg: #E9EBE4;
  --bg2: #D9D3C8;
  --surface: #E0DCD3;
  --surface-strong: #D9D3C8;
  --fg: #260D0C;
  --fg2: #5E4336;
  --line: #CBC2B6;
  --line-strong: #A89A8B;
  --acc: #C10016;
  --acc-hover: #9E0013;
  --acc-ink: #E9EBE4;

  --f-w: "Archivo", "Helvetica Neue", Arial, sans-serif;   /* display: width 125 %, weight 800 */
  --f-b: "Archivo", "Helvetica Neue", Arial, sans-serif;   /* body, buttons, labels */
  --max: 1360px;
  --side: 32px;
  --pad: var(--side);
  --r: 0px;
  --hdr-h: 85px;
}

[data-theme="dark"] {
  /* Dark theme: the Roots concept as it is */
  --bg: #260D0C;
  --bg2: #2E1212;
  --surface: #2E1615;
  --surface-strong: #351B19;
  --fg: #E9EBE4;
  --fg2: #BEB5AB;
  --line: #45302D;
  --line-strong: #6A4D47;
  --acc: #C10016;
  --acc-hover: #9E0013;
  --acc-ink: #E9EBE4;
}


body {
  font-family: var(--f-b);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* SCROLLBAR — square, in the colours of the theme: a Stone/oxblood track (--bg2) with a hairline on its
   inner edge, the thumb in --line-strong (--fg2 on hover, --fg while dragged). 20 px wide: the Chromium
   default on Windows is 15 px, so 30 % wider. Applies to the page and to the boxes that scroll (menu,
   pop-ups). Chromium and Safari use the ::-webkit-scrollbar parts (they would ignore them if scrollbar-color
   or scrollbar-width were set, so those stay unset there); Firefox cannot change the width and gets the colours only. */
::-webkit-scrollbar { width: 20px; height: 20px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-track:vertical { border-left: 1px solid var(--line); }
::-webkit-scrollbar-track:horizontal { border-top: 1px solid var(--line); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--fg2); }
::-webkit-scrollbar-thumb:active { background: var(--fg); }
::-webkit-scrollbar-corner { background: var(--bg2); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--line-strong) var(--bg2); }
}

/* one content column, as in Roots */
.c { width: 100%; max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: var(--side); padding-right: var(--side); }

.disp {
  font-family: var(--f-w);
  font-weight: 800;
  font-stretch: 125%;
  line-height: .92;
  letter-spacing: -.01em;
}

/* word-up reveal of display titles */
.wl { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w { display: inline-block; animation: wup 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes wup { from { transform: translateY(110%); } to { transform: none; } }
.fadeup { animation: fadeup .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  min-height: 48px;
  padding: 0 26px;
  gap: 10px;
  font-family: var(--f-b);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 0;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--solid { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.btn--solid:hover { background: var(--acc-hover); border-color: var(--acc-hover); color: var(--acc-ink); }
.btn--line { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn--line:hover { background: var(--fg); color: var(--bg); }

/* =====================================================================
   HEADER — built by shared/core.js (header) on every page: the logo, the
   page buttons and Contact (faded border), then the language box and the
   colour scheme box on the right. Below 1180 px the page buttons and
   Contact move into the menu panel, opened by the hamburger box.
   ===================================================================== */
.hdr {
  position: sticky; inset: auto; top: 0; height: auto; display: block; padding: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hdr.scrolled { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 20px; padding-top: 20px; padding-bottom: 20px; }
.brand { height: 38px; flex: 0 0 auto; margin-right: 28px; }
.lk { height: 38px; width: auto; }
.lk--red, [data-theme="light"] .lk--air { display: none; }
[data-theme="light"] .lk--red { display: block; }
.nav { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 14px; }
.nav-a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: border-color .3s var(--ease);
}
.nav-a:hover, .nav-a[aria-current="page"] { border-color: var(--fg); }
.hdr-r { flex: 0 0 auto; margin-left: auto; gap: 6px; }
.icon-btn { border: 1px solid var(--line); border-radius: 0; }
.icon-btn:hover { border-color: var(--fg); }
.lang-btn { font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.nav-toggle { display: none; }
.nav-toggle svg { width: 20px; height: 20px; pointer-events: none; }
@media (max-width: 1180px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 8px;
    padding: 16px var(--side) 24px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    max-height: calc(100svh - var(--hdr-h)); overflow-y: auto;
  }
  .hdr.nav-open .nav { display: flex; }
  .nav-a { min-height: 52px; }
}

/* =====================================================================
   HERO (index.html) — two picture layers behind the text:
     1 (top)    .hero-doors: the two halves of the roots photo, stretched over the hero;
     2 (bottom) the slideshow of the renders 01 to 07, uncovered when the halves slide apart.
   The sequence is run by shared/core.js (hero). Tune it here:
     --door-ms    how long the halves take to slide apart;
     --door-ease  their easing;
     data-hold (on .hero-doors, in index.html) = how long the roots photo stays, in ms;
     data-interval (on the slideshow, in index.html) = how long each render stays, in ms.
   The title "MILO": --milo-stretch = horizontal stretch (1.5 = 50 % wider);
     the motion blur on its left side: --blur-sharp, --blur-end, --blur-far, --blur-near, --blur-drift (below);
     the blur strength itself is the stdDeviation of the two SVG filters in index.html.
   ===================================================================== */
.hero {
  --door-ms: 2200ms;
  --door-ease: cubic-bezier(.6, 0, .4, 1);
  --milo-stretch: 1.5;
  --milo-em: 3.18;            /* width of the word "MILO" in em, before the stretch */
  --milo-bearing: .078;        /* empty space on the left of the letter "M", in em, before the stretch */
  --blur-sharp: .72;           /* how solid the sharp letters stay at the left edge of the word (1 = fully solid) */
  --blur-end: 50%;             /* where, across the word, the sharp letters are fully solid again */
  --blur-far: .55;             /* strength of the long streak (0 to 1) */
  --blur-near: .7;             /* strength of the short smear (0 to 1) */
  --blur-drift: 2600ms;        /* the long streak breathes in and out in this time */
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: max(560px, calc(100svh - var(--hdr-h)));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--oxblood);
  color: var(--on-dark);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg .slides { position: absolute; inset: 0; background: var(--oxblood); }
/* each render stays 5 s and zooms in slowly the whole time (5 s + the 1.8 s cross-fade) */
.hero-bg .slides .slide.is-on img, .hero-bg .slides .slide.was-on img { animation: kb 7s linear both; }
.hero-doors { position: absolute; inset: 0; z-index: 3; visibility: hidden; }
.hero-doors.is-on { visibility: visible; }
.hero-doors.is-gone { display: none; }
/* the halves are stretched (not cropped) so that together they fill the hero exactly */
.door { position: absolute; top: 0; width: 50%; height: 100%; max-width: none; object-fit: fill; transition: transform var(--door-ms) var(--door-ease); will-change: transform; }
.door--l { left: 0; width: calc(50% + 1px); z-index: 1; }
.door--r { left: 50%; }
.hero-doors.is-open .door--l { transform: translateX(-100%); }
.hero-doors.is-open .door--r { transform: translateX(100%); }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: var(--hero-shade); }
.hero .slides-count {
  top: 22px;
  left: max(var(--side), calc((100% - var(--max)) / 2 + var(--side)));
  color: var(--on-dark);
  font-weight: 700;
  font-size: 13px;
}
.hero-in {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 24px;
}
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; container-type: inline-size; }
/* kicker: "Brașov Training Club", in capitals like the other kickers */
.hero-kicker { font-size: 15px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
/* "MILO": as wide as the text column allows (216 px letters at most), stretched horizontally */
.hero-title {
  position: relative;
  align-self: flex-start;
  font-size: clamp(48px, calc(100cqi / (var(--milo-em) * var(--milo-stretch))), 216px);
  line-height: .86;
  letter-spacing: -.02em;
  white-space: nowrap;
  /* the letter "M" has a little empty space on its left (--milo-bearing, in em); pull the word back by it,
     so that the "M" itself starts on the same line as the logo and the other two texts */
  margin-left: calc(-1em * var(--milo-bearing) * var(--milo-stretch));
  transform: scaleX(var(--milo-stretch));
  transform-origin: 0 100%;
}
/* motion blur: the word looks smeared on its left side, as if it moved fast to the right, and is crisp on the right.
   Two copies of the word lie over the title, blurred horizontally only (SVG filters in index.html):
   .mblur--far = a long streak that reaches past the left edge of the word; .mblur--near = a short smear.
   Masks keep both to the left part of the word, and thin out the sharp letters there. */
.hero-title .wl {
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, var(--blur-sharp)) 0%, #000 var(--blur-end));
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, var(--blur-sharp)) 0%, #000 var(--blur-end));
}
.mblurs { position: absolute; inset: 0; pointer-events: none; opacity: 0; animation: mblur-in .9s var(--ease) .9s forwards; }
/* the box is widened to the left (padding) so that the streak is not cut at the edge of the word */
.mblur { position: absolute; left: -.7em; top: 0; padding-left: .7em; will-change: transform; }
/* the copies are drawn from data-text, so the h1 holds the word once (search engines read "MILO", not "MILOMILOMILO") */
.mblur::before { content: attr(data-text); }
.mblur--far {
  filter: url(#milo-blur-far);
  opacity: var(--blur-far);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 24%, transparent 56%);
  mask-image: linear-gradient(90deg, #000 0%, #000 24%, transparent 56%);
  transform: translateX(-.16em);
  animation: mblur-drift var(--blur-drift) ease-in-out infinite alternate;
}
.mblur--near {
  filter: url(#milo-blur-near);
  opacity: var(--blur-near);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 70%);
  mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 70%);
  transform: translateX(-.05em);
}
.hero-filters { position: absolute; width: 0; height: 0; }
@keyframes mblur-in { to { opacity: 1; } }
@keyframes mblur-drift { from { transform: translateX(-.1em); } to { transform: translateX(-.24em); } }
/* the line under "MILO": the size of the kicker, a sentence long (brand.intro in shared/content.js).
   No width cap: it fits on one line from 1024 px up (about 780 px wide, under the wider "MILO"); it wraps on smaller screens. */
.hero-tag { font-family: var(--f-w); font-stretch: 112%; font-weight: 700; font-size: 15px; line-height: 1.5; }
/* the footer of the home page: the social icons, transparent over the hero */
.hero-foot { display: flex; justify-content: flex-end; padding-bottom: 28px; }
.hero-soc, .ftr [data-m="social"] { display: flex; flex-direction: row; gap: 8px; }
.soc { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; text-decoration: none; transition: background-color .3s var(--ease), color .3s var(--ease); }
.soc svg { width: 18px; height: 18px; }
.hero .soc:hover { background: var(--on-dark); color: var(--oxblood); }

/* STORY TOGGLE (see data-story on <html> in index.html): the small slideshow is hidden unless "on" */
html:not([data-story="on"]) .story { display: none; }

/* story frame: a vertical 9:16 slideshow of athlete photos */
.story {
  position: relative;
  flex: 0 0 auto;
  height: min(calc(100svh - 220px), 640px);
  min-height: 420px;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--milo-black);
  box-shadow: 0 30px 80px -30px rgba(26, 0, 0, .6);
}
.story-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); transition: opacity .7s var(--ease), transform var(--story-ms, 4s) linear; }
.story-img.is-on { opacity: 1; transform: none; }
.story.is-paused .story-img { transition: opacity .7s var(--ease); }
.story-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 0, 0, .45) 0%, rgba(26, 0, 0, 0) 25%, rgba(26, 0, 0, 0) 55%, rgba(26, 0, 0, .75) 100%); }
.story-bars { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 4px; }
.story-bars i { flex: 1; height: 3px; background: rgba(233, 235, 228, .35); overflow: hidden; }
.story-bars b { display: block; height: 100%; background: var(--on-dark); transform: scaleX(0); transform-origin: left; }
.story-bars i.done b { transform: scaleX(1); }
.story-bars i.run b { transform: scaleX(1); transition: transform var(--story-ms, 4s) linear; }
.story-handle { position: absolute; top: 28px; left: 14px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--on-dark); }
.story-handle .logomark { height: 22px; }
.story-handle .logomark path { fill: var(--on-dark); }
.story-cap { position: absolute; left: 18px; right: 18px; bottom: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--on-dark); }
.story-t { font-family: var(--f-w); font-weight: 800; font-stretch: 125%; font-size: 30px; line-height: .95; }
.story-s { font-size: 14px; font-weight: 600; }

/* =====================================================================
   CLUB PAGES — panel (page head) & cards
   ===================================================================== */
.club { padding-top: clamp(48px, 8vh, 96px); padding-bottom: clamp(96px, 13vh, 144px); }

.panel { padding-top: 0; }
.panel-head {
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.panel-sub { font-size: 15px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--fg2); }
.panel-title { margin: 0; font-family: var(--f-w); font-weight: 800; font-stretch: 125%; font-size: clamp(44px, 7.4vw, 120px); line-height: .88; letter-spacing: -.02em; overflow-wrap: anywhere; }
.panel-msg { max-width: 56ch; margin-top: 10px; font-size: 18px; line-height: 1.6; color: var(--fg2); white-space: pre-line; }

.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .3s var(--ease);
}
.card:hover { border-color: var(--fg2); }
.card:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
/* card photos keep the Roots crop: full width, a fixed height, cover (220 px; coaches 280 px) */
.card-media, .card--discipline .card-media, .card--member .card-media, .card--service .card-media { aspect-ratio: auto; height: 220px; border-radius: 0; background: #2E1212; }
.card--coach .card-media { aspect-ratio: auto; height: 280px; }
.card-body { flex: 1; padding: 20px 22px 24px; gap: 10px; }
.card-title { font-family: var(--f-w); font-weight: 800; font-stretch: 112%; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.05; }
.card-lines li, .card-role, .card-creds, .card-pov { font-size: 15px; line-height: 1.45; color: var(--fg2); }
.card-role { color: var(--fg); font-weight: 600; }
.card-cta { margin-top: auto; padding-top: 8px; padding-bottom: 2px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg); border-bottom: 1px solid transparent; }
.card-cta::after { content: " +"; }
.card:hover .card-cta { border-color: var(--fg); }

/* =====================================================================
   EVENIMENTE (index.html, under the hero) — the title and the arrow
   buttons, then one row of portrait cards that scrolls sideways (snapping
   to each card). The cards are the club page cards with a 4:5 photo.
   --ev-n = how many cards show across (the half shows that the row goes on).
   ===================================================================== */
.events { padding-top: clamp(64px, 10vh, 120px); padding-bottom: clamp(80px, 12vh, 140px); }
/* when the title and the arrows do not fit on one line (phones), the arrows go under the title, on the right */
.ev-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.ev-title { font-family: var(--f-w); font-weight: 800; font-stretch: 125%; font-size: clamp(44px, 7.4vw, 120px); line-height: .88; letter-spacing: -.02em; text-transform: uppercase; overflow-wrap: anywhere; }
.ev-arrows { display: flex; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.ev-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--fg); color: var(--fg); transition: background-color .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease); }
.ev-btn svg { width: 20px; height: 20px; }
.ev-btn:hover:not(:disabled) { background: var(--fg); color: var(--bg); }
.ev-btn:disabled { opacity: .3; cursor: default; }
.ev-fits .ev-arrows { display: none; }
.ev-track {
  --ev-n: 3.5; --ev-gap: 16px;
  display: flex; gap: var(--ev-gap);
  margin-top: 40px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.ev-track::-webkit-scrollbar { display: none; }
.ev-item { flex: 0 0 calc(100% / var(--ev-n) - var(--ev-gap)); display: flex; scroll-snap-align: start; }
.card--event { flex: 1; color: inherit; text-decoration: none; }
.card--event:focus-visible { outline-offset: -4px; }
.card--event .card-media { height: auto; aspect-ratio: 4 / 5; }
.card--event .card-cta { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; }
.card--event .card-cta::after { content: none; }
.card--event .card-cta svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card--event:hover .card-cta svg { transform: translateX(4px); }

/* =====================================================================
   NEWS PAGES (news/) — the link back to "Evenimente" as the kicker, the
   title, the photo of the card and the text in large type (22 px).
   --news-w = the width of the photo and of the text (about 65 characters a line).
   ===================================================================== */
.news { --news-w: 720px; padding-top: clamp(48px, 8vh, 96px); padding-bottom: clamp(96px, 13vh, 144px); }
.news-back { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.news-back svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.news-back:hover { color: var(--fg); }
.news-back:hover svg { transform: translateX(-4px); }
.news-media { position: relative; max-width: var(--news-w); aspect-ratio: 3 / 2; margin-top: 40px; overflow: hidden; border: 1px solid var(--line); background: #2E1212; }
.news-media img.ph { position: absolute; inset: 0; }
.news-body { max-width: var(--news-w); margin-top: 40px; font-size: 22px; line-height: 1.6; color: var(--fg); }
.news-body p + p { margin-top: 1em; }

/* card pop-up, Roots box */
.gal { --gal-bg: var(--surface); }
.gal-panel { border: 1px solid var(--line); }
.gal-scrim { background: rgba(26, 0, 0, .78); }
.gal-info { border-left: 1px solid var(--line); gap: 16px; }
.gal-kicker { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--fg2); }
.gal-title { font-family: var(--f-w); font-weight: 800; font-stretch: 125%; font-size: clamp(30px, 2.8vw, 46px); line-height: .98; overflow-wrap: anywhere; }
.gal-text { font-size: 16px; line-height: 1.55; color: var(--fg2); }
.gal-text .g-role { color: var(--fg); font-weight: 600; }
.gal-price { gap: 4px; }
.gp-l { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg2); }
.gp-v { font-family: var(--f-w); font-weight: 800; font-stretch: 125%; font-size: 52px; line-height: 1; color: var(--fg); }
.gp-v b { font-weight: 800; }
.gp-u { font-family: var(--f-b); font-stretch: 100%; font-weight: 600; font-size: 16px; color: var(--fg2); }
.gp-n { font-size: 15px; color: var(--fg2); }
.gal-info .gal-cta {
  justify-content: center; min-height: 48px; padding: 0 26px;
  background: var(--acc); color: var(--acc-ink); border: 0;
  font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .3s var(--ease);
}
.gal-info .gal-cta:hover { background: var(--acc-hover); }
.gal-close { width: 48px; height: 48px; justify-content: center; padding: 0; border: 1px solid var(--fg); color: var(--fg); background: var(--surface); }
.gal-close svg { width: 20px; height: 20px; }
.gal-ctrl { color: var(--on-dark); }
.gal-ctrl button { border-radius: 0; border-color: rgba(233, 235, 228, .5); }
.gal-count { font-weight: 700; }
.gal-slide figcaption { color: var(--on-dark); font-weight: 600; }
.gal-bars i { height: 3px; }

/* =====================================================================
   CONTACT PAGE (contact.html) — the visit invitation, then address,
   contact and opening hours
   ===================================================================== */
.visit {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 56px 32px;
  align-items: center;
  padding-top: clamp(48px, 8vh, 96px);
  padding-bottom: clamp(88px, 12vh, 144px);
}
.visit-m { grid-column: 1 / span 6; }
.visit h1 { margin-top: 14px; font-size: clamp(40px, 5vw, 76px); max-width: 14ch; }
.visit-m > p:not(.panel-sub) { margin-top: 24px; max-width: 48ch; font-size: 18px; line-height: 1.6; color: var(--fg2); }
.visit-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.visit-img { grid-column: 8 / -1; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); }
.visit-img .px-in { position: absolute; inset: -14% 0; }
.visit-img .px-in img.ph { position: absolute; inset: 0; }
.visit-seal {
  position: absolute; right: 18px; bottom: 18px; z-index: 3;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--acc);
}
.visit-seal [data-m="logo"] { height: 28px; }
.visit-seal .logomark path { fill: var(--acc-ink); }
.contact-info { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 40px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.6; }
.contact-h { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); margin-bottom: 8px; }
.contact-info a { text-decoration: underline; text-underline-offset: 3px; }
.contact-info .hours li { padding: 0; border: 0; justify-content: flex-start; gap: 12px; }

/* =====================================================================
   FOOTER — one slim row at the end of every page (on the home page the
   social icons also sit at the bottom of the hero)
   ===================================================================== */
.ftr { padding: 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--fg2); }
.ftr-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.ftr .soc { color: var(--fg); }
.ftr .soc:hover { background: var(--fg); color: var(--bg); text-decoration: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .visit { grid-template-columns: 1fr; }
  .visit-m, .visit-img { grid-column: 1; }
  .visit-img { max-width: 520px; width: 100%; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-track { --ev-n: 2.4; }
}
@media (max-width: 760px) {
  :root { --side: 20px; --hdr-h: 73px; }
  .hdr-in { padding-top: 16px; padding-bottom: 16px; gap: 10px; }
  .lk { height: 30px; }
  .brand { height: 30px; margin-right: 0; }
  .hero-in { gap: 32px; padding-top: 56px; padding-bottom: 20px; }
  .hero-foot { padding-bottom: 24px; }
  .story { height: auto; width: 100%; min-height: 0; }
  .panel-title { font-size: 9.6vw; }
  .cards, .cards--2 { grid-template-columns: 1fr; }
  .ev-track { --ev-n: 1.25; margin-top: 32px; }
  .ev-title { font-size: 9.6vw; }
  .ev-head { padding-bottom: 24px; }
  .ev-btn { width: 44px; height: 44px; }
  .news-media, .news-body { margin-top: 32px; }
  .contact-info { grid-template-columns: 1fr; gap: 28px; }
}

/* =====================================================================
   PAGE TOGGLE (see data-page on <html>)
   ===================================================================== */
html[data-page="launch"] .site { display: none !important; }
html:not([data-page="launch"]) .launch { display: none !important; }
html[data-page="launch"] body { padding-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .w, .fadeup { animation: none !important; }
  .story-img { transform: none !important; }
  .mblurs { opacity: 1; animation: none; }
  .mblur--far { animation: none; }
  .door { transition: none; }
}

/* =====================================================================
   ERROR PAGE (error.html) — shown when a server action fails. The
   illustration (inline SVG) covers the whole page under the header,
   scaled proportionally and cropped at the edges (preserveAspectRatio
   xMaxYMax slice: the runner stays on the right, on the ground); the
   title "Lipsă de electroliți" sits over it, top left.
   On desktop the gap between the header and the title equals the
   height of one line of the title: --err-fs × --err-lh. On phones the
   gap is 32px.
   Colours follow the theme: the runner in --line-strong, the sweat in
   --fg (the colour of the title), the battery's last bar in --acc.
   ===================================================================== */
.err {
  --err-fs: clamp(38px, 8.4vw, 150px);    /* title font size */
  --err-lh: .92;                           /* title line height */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: max(480px, calc(100svh - var(--hdr-h)));
  display: flex;
  align-items: flex-start;
}
.err-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; }
.err-in { padding-top: calc(var(--err-fs) * var(--err-lh)); padding-bottom: clamp(32px, 6vh, 72px); }
.err-t { font-size: var(--err-fs); line-height: var(--err-lh); max-width: 11ch; color: var(--fg); animation: fadeup .9s cubic-bezier(.2, .8, .2, 1) both; }

.err-art .ea-ground { fill: none; stroke: var(--line); stroke-width: 2; }
.err-art .ea-shadow { fill: var(--line); opacity: .7; }
.err-art .ea-drag, .err-art .ea-motion { fill: none; stroke: var(--line-strong); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 18 16; opacity: .7; }
.err-art .ea-line { fill: none; stroke: var(--line-strong); stroke-width: 8; stroke-linejoin: round; }
.err-art .ea-body { fill: var(--line-strong); stroke: var(--line-strong); stroke-linecap: round; stroke-linejoin: round; }
.err-art .ea-body path { fill: none; }
.err-art .ea-torso { stroke-width: 92; }
.err-art .ea-leg { stroke-width: 44; }
.err-art .ea-arm { stroke-width: 32; }
.err-art .ea-drop { fill: var(--fg); }
.err-art .ea-puff { fill: none; stroke: var(--line-strong); stroke-width: 5; }
.err-art .ea-nub { fill: var(--line-strong); }
.err-art .ea-low { fill: var(--acc); }

/* the runner sags and drags on, the sweat drips, the last bar of the battery blinks */
@media (prefers-reduced-motion: no-preference) {
  .err-art .ea-run { transform-box: fill-box; transform-origin: 50% 100%; animation: ea-sag 2.6s ease-in-out infinite; }
  .err-art .ea-sweat { animation: ea-drip 2.6s ease-in infinite; }
  .err-art .ea-puff { animation: ea-puff 2.6s ease-out infinite; }
  .err-art .ea-low { animation: ea-blink 1.3s steps(1) infinite; }
}
@keyframes ea-sag { 0%, 100% { transform: none; } 50% { transform: translateY(10px) rotate(1.2deg); } }
@keyframes ea-drip { 0%, 30% { transform: none; opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
@keyframes ea-puff { 0% { opacity: 0; transform: none; } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -10px); } }
@keyframes ea-blink { 0% { opacity: 1; } 50% { opacity: .15; } }

@media (max-width: 760px) {
  .err-in { padding-top: 32px; }
}
