/* ==========================================================================
   UIBBŽ — Udruga informatičara BBŽ
   Tokens — paleta sumraka (kao naslovna): tamni indigo, ljubičasta, periwinkle i breskva
   ========================================================================== */
:root {
  --bg: #140f36;          /* podloga: tamni indigo */
  --paper: #1d1648;       /* kartice, paneli */
  --surface: #241c55;     /* tiše površine */
  --ink: #f6f3ff;         /* tekst */
  --dim: rgba(236, 230, 255, .72);   /* sekundarni tekst */
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(255, 255, 255, .32);
  --blue: #b3bcff;        /* naglasak, linkovi (periwinkle) */
  --peach: #ffd3a8;       /* topli naglasak (horizont) */
  --pink: #ff9fb8;
  --glass: rgba(255, 255, 255, .06);         /* staklene kartice */
  --glass-line: rgba(255, 255, 255, .14);
  --grad: linear-gradient(100deg, #a4b2ff 0%, #c9a8ff 30%, #ff9fb8 60%, #ffd3a8 100%);
  --lav: #b4b1ff;         /* lavanda */
  --violet: #6a4dff;      /* LEGO kocka */
  --signal: #ff4a3d;      /* greške */
  --on-accent: #120d30;   /* tekst na naglasku */

  --f-display: "Unbounded", "Arial Black", sans-serif;
  --f-body: "Geist", "Segoe UI", system-ui, sans-serif;
  /* UI labels, menu, buttons, chips: modern grotesk. Real code bits keep the monospace (--f-code). */
  --f-mono: "Plus Jakarta Sans", "Geist", "Segoe UI", system-ui, sans-serif;
  --f-code: "Geist Mono", ui-monospace, "Cascadia Mono", monospace;

  --pad: clamp(1.1rem, 3.2vw, 3rem);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, .95rem + .2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.h-xl {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 1.2rem + 4.6vw, 6rem);
  line-height: .98;
  letter-spacing: -.04em;
}
.h-xxl {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 1rem + 7vw, 9.5rem);
  line-height: .92;
  letter-spacing: -.05em;
}

/* ==========================================================================
   Background layers
   ========================================================================== */
.gl {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: -2; pointer-events: none;
  background:
    radial-gradient(50% 45% at 90% 5%, rgba(180, 177, 255, .35), transparent 70%),
    radial-gradient(50% 50% at 5% 100%, rgba(43, 43, 255, .08), transparent 70%),
    var(--bg);
}
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ==========================================================================
   Loader
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; align-content: center; gap: 1.2rem;
  background: var(--bg);
  font-family: var(--f-mono); font-size: .8rem; color: var(--dim);
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader__ring { position: absolute; width: 140px; height: 140px; top: 50%; left: 50%; translate: -50% -50%; }
.loader__ring svg { width: 100%; height: 100%; rotate: -90deg; }
.loader__ring circle {
  fill: none; stroke: var(--blue); stroke-width: 1.2; stroke-dasharray: 340; stroke-dashoffset: 340;
  stroke-linecap: round; transition: stroke-dashoffset .3s linear;
}
.loader__count { position: relative; color: var(--ink); font-size: 1rem; letter-spacing: .05em; }
.loader__total { color: var(--dim); }
.loader__label { position: absolute; top: calc(50% + 100px); left: 50%; translate: -50% 0; white-space: nowrap; }
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  pointer-events: none;
}
.header > * { pointer-events: auto; }
/* Brand: the coat of arms in a glossy badge with a rotating gradient ring + terminal-style wordmark */
.brand { display: flex; align-items: center; gap: .85rem; }
.brand__badge { position: relative; flex: none; width: 50px; height: 50px; display: grid; place-items: center; perspective: 300px; }
.brand__ring {
  position: absolute; inset: 0; border-radius: 16px;
  background: conic-gradient(from var(--ang, 0deg), #2b2bff, #b4b1ff, #6a4dff, #ffd64d, #2b2bff);
  animation: ringSpin 6s linear infinite;
}
.brand__ring::after { content: ""; position: absolute; inset: -6px; border-radius: 20px; background: inherit; filter: blur(10px); opacity: .35; z-index: -1; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ringSpin { to { --ang: 360deg; } }
.brand__tile {
  position: relative; width: 42px; height: 42px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, #ffffff, #eeedf8); display: grid; place-items: center;
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 6px rgba(60, 50, 140, .12);
  transition: transform .6s var(--ease);
}
.brand__tile img { width: auto; height: 34px; filter: saturate(1.15) contrast(1.05); mix-blend-mode: multiply; }
.brand__shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%); transform: translateX(-120%); }
.brand:hover .brand__shine { animation: shine .9s var(--ease); }
.brand:hover .brand__tile { transform: rotateY(-14deg) rotateX(8deg) scale(1.05); }
@keyframes shine { to { transform: translateX(120%); } }
.brand__led { position: absolute; right: -2px; top: -2px; width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; border: 2px solid #fff; box-shadow: 0 0 8px #3ddc84; animation: pulse 2s infinite; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; gap: .2rem; }
.brand__text strong { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .01em; display: flex; align-items: baseline; }
.brand__cursor { color: var(--blue); font-family: var(--f-code); font-weight: 500; animation: caret 1s steps(1) infinite; margin-left: 1px; }
@keyframes caret { 50% { opacity: 0; } }
.brand__sub { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .02em; line-height: 1.25; color: var(--dim); }
.brand__sub em { font-style: normal; color: var(--blue); }

.pill {
  display: flex; align-items: center; gap: .25rem;
  padding: .35rem .4rem .35rem 1rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(40, 40, 90, .06);
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .02em;
}
.pill a { padding: .45rem .7rem; border-radius: 999px; color: var(--ink); transition: color .2s, background .2s; }
.pill a:hover { color: var(--blue); }
.pill__cta { background: var(--ink); color: #fff !important; }
.pill__cta:hover { background: var(--blue); }
.pill { position: relative; }
.pill a.is-current { color: var(--blue); }
.pill a.pill__cta.is-current { color: #fff; background: var(--blue); }
.pill__wave {   /* section marker: JS sets left/width to the current menu item */
  position: absolute; left: 0; bottom: 1px; width: 40px; height: 9px; pointer-events: none;
  opacity: 0; transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s;
}
.pill__wave.is-on { opacity: 1; }
.pill__wave svg { width: 100%; height: 100%; overflow: visible; }
.pill__wave path { fill: none; stroke: var(--blue); stroke-width: 1.2; stroke-dasharray: 4 3; animation: wave 1.6s linear infinite; }
@keyframes wave { to { stroke-dashoffset: -14; } }

.menu-btn { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .7); backdrop-filter: blur(10px); position: relative; }
.menu-btn span:not(.sr-only) { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span:nth-child(1) { top: 19px; } .menu-btn span:nth-child(2) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; padding: 7rem var(--pad) 2rem;
  background: rgba(247, 247, 250, .97); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: .4rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--f-display); font-size: 2.4rem; font-weight: 400; letter-spacing: -.03em; }
.mobile-menu a:nth-child(odd) { color: var(--blue); }
.mobile-menu__meta { margin-top: auto; font-family: var(--f-mono); font-size: .85rem; color: var(--dim); }

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btns { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.4rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent;
  font-family: var(--f-mono); font-size: .85rem; letter-spacing: .01em;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
  will-change: transform;
}
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--solid:hover { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }
.link-arrow { font-family: var(--f-mono); font-size: .85rem; color: var(--blue); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--ink); }

.seek__q { font-family: var(--f-mono); font-size: .8rem; color: var(--ink); margin-bottom: .8rem; }
.seek li + li, .work__filter li + li { margin-top: .35rem; }
.seek a, .work__filter button {
  font-family: var(--f-mono); font-size: .82rem; color: var(--blue);
  display: inline-flex; gap: .55rem; padding: .15rem 0; transition: color .2s, transform .3s var(--ease);
}
.seek a:hover, .work__filter button:hover, .work__filter button.is-active { color: var(--ink); transform: translateX(6px); }
.work__filter button.is-active .arr { color: var(--blue); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 7.5rem var(--pad) 2.2rem;
}
.hand {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 2; pointer-events: none;   /* ruka, dron i autić su ISPRED naslova: kockice stoje na slovima, a ne iza njih */
  will-change: filter, opacity;
}
.hero > :not(.hand) { position: relative; z-index: 1; }
.hero > .hero__bottom { z-index: 3; }
.hero__kicker { font-family: var(--f-mono); font-size: .8rem; color: var(--dim); display: flex; align-items: center; gap: .6rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px rgba(43, 43, 255, .5); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.hero__title {
  align-self: center;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 9.2vw, 13.5rem);
  line-height: .92;
  letter-spacing: -.055em;
  margin: 3rem 0;
  color: var(--ink);
  position: relative; z-index: 1;   /* ispod platna s rukom (.hand) */
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.hero__title .line--indent { padding-left: 14vw; }
.hero__title .word { display: inline-block; }
.hero__title .ch { display: inline-block; will-change: transform, font-variation-settings; }
/* letters of "Prema" get painted by the little drone (hand.js) */
.hero__title .line:first-child .word:first-child .ch { transition: color .6s ease; }
/* photo pill cycling through workshops, set inline in the headline */
.hero__pill {
  position: relative; display: inline-block; width: 1.45em; height: .74em; margin: 0 .04em; vertical-align: .06em;
  border-radius: 999px; overflow: hidden; background: var(--blue);
  box-shadow: 0 10px 30px rgba(43, 43, 255, .28), inset 0 0 0 2px rgba(255, 255, 255, .6);
  rotate: -4deg; transition: rotate .6s var(--ease), width .6s var(--ease);
}
.hero__title:hover .hero__pill { rotate: 3deg; width: 1.7em; }
.hero__pill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.15; transition: opacity .7s, scale 1.6s var(--ease); }
.hero__pill img.is-on { opacity: 1; scale: 1; }
/* "budućnosti": gradient ink that slowly drifts + a terminal cursor */
.word--future .ch {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, #2b2bff 0%, #6a4dff 30%, #ff6b8b 55%, #2b2bff 80%, #6a4dff 100%);
  background-size: calc(var(--n, 10) * 100%) 100%;
  background-position: calc(var(--i, 0) / (var(--n, 10) - 1) * 100%) 0;
  animation: futureHue 6s ease-in-out infinite alternate;
}
@keyframes futureHue { to { filter: hue-rotate(-35deg) saturate(1.2); } }
/* the LEGO car (hand.js) lays the letters of "budućnosti" as it drives past
   (only opacity + clip-path: transforms belong to the GSAP intro) — each letter "prints" from the baseline up */
.car-on .word--future .ch { clip-path: inset(-10% -10% -10% -10%); transition: opacity .25s ease, clip-path .5s cubic-bezier(.2, .8, .2, 1); }
.car-on .word--future .ch.is-unbuilt { opacity: 0; clip-path: inset(100% -10% -10% -10%); transition-duration: .2s; }
.hero__caret {
  display: inline-block; width: .42em; height: .09em; margin-left: .06em; vertical-align: baseline;
  background: var(--blue); animation: caret 1s steps(1) infinite;
}
@media (prefers-reduced-motion: reduce) { .word--future .ch, .hero__caret { animation: none; } }
@media (max-width: 600px) {
  .hero__title { font-size: 12vw; }
  .hero__title .line { white-space: normal; }
  .hero__title .line--indent { padding-left: 0; }
}

.hero__bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 2rem; align-items: end; }
.hero__aside { display: grid; gap: 1.3rem; justify-items: end; text-align: right; }
.hero__aside p { color: var(--dim); max-width: 34ch; }

/* small video, centre */
.clip { display: grid; gap: .5rem; justify-items: center; width: clamp(200px, 19vw, 300px); }
.clip__ticker {
  display: flex; width: 100%; overflow: hidden; white-space: nowrap;
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .04em; color: var(--ink);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.clip__ticker span { flex: none; padding-right: .4rem; animation: ticker 14s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }
.clip__frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: var(--surface); box-shadow: 0 20px 50px rgba(30, 30, 80, .18);
  transition: transform .6s var(--ease), border-radius .6s var(--ease);
}
.clip__frame video { width: 100%; height: 100%; object-fit: cover; }
.clip__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .85); color: var(--ink); font-size: .8rem; padding-left: 3px;
  backdrop-filter: blur(6px); transition: transform .4s var(--ease), background .3s;
}
.clip:hover .clip__frame { transform: scale(1.05); border-radius: 20px; }
.clip:hover .clip__play { transform: scale(1.15); background: var(--blue); color: #fff; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 1rem; translate: -50% 0;
  display: none;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 4vw;
  background: rgba(247, 247, 250, .82); backdrop-filter: blur(16px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox video { width: min(1200px, 100%); max-height: 84vh; border-radius: 18px; background: #000; box-shadow: 0 40px 100px rgba(20, 20, 60, .3); transform: scale(.94); transition: transform .5s var(--ease); }
.lightbox.is-open video { transform: none; }
.lightbox__close, .panel__close {
  display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem .55rem 1rem; border-radius: 999px;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); border: 1px solid var(--line-strong);
  font-family: var(--f-mono); font-size: .78rem;
}
.lightbox__close { position: absolute; top: 1.2rem; right: 1.2rem; }
.lightbox__close span, .panel__close span { padding: .15rem .45rem; border-radius: 6px; border: 1px solid var(--line); color: var(--dim); font-size: .68rem; }
.lightbox__close:hover, .panel__close:hover { border-color: var(--blue); color: var(--blue); }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { padding: 0 var(--pad); border-block: 1px solid var(--line); }
.stats__list { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 2rem 1.2rem 2rem 0; }
.stat + .stat { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.stat__value {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(2rem, 1rem + 3vw, 4rem);
  letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums;
}
.stat__label { margin-top: .6rem; font-size: .88rem; color: var(--dim); max-width: 18ch; }

/* ==========================================================================
   Workshops reel — cards glide through a soft rounded window
   ========================================================================== */
.work { position: relative; height: 520vh; }
.work__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  /* pastel glow around the window */
  background:
    radial-gradient(40% 50% at 0% 0%, rgba(255, 182, 214, .55), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(170, 236, 214, .55), transparent 70%),
    radial-gradient(45% 55% at 100% 100%, rgba(150, 170, 255, .55), transparent 70%),
    radial-gradient(40% 50% at 100% 0%, rgba(205, 190, 255, .6), transparent 70%);
}
.reel {
  position: absolute; inset: 10.4rem 7vw 1.4rem; border-radius: 44px; overflow: hidden;
  background: color-mix(in srgb, var(--bg) 70%, #ffffff);
  perspective: 1300px; perspective-origin: 50% 50%;
}
.reel::after { /* feathered edge: cards dissolve into the frame like on a curved screen */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 60px 34px color-mix(in srgb, var(--bg) 70%, #ffffff);
}
.reel__track { position: absolute; inset: 0; transform-style: preserve-3d; }
.card {
  --d: 0;
  position: absolute; left: 50%; top: 47%; width: min(48vw, 760px); height: min(50vh, 500px);
  border-radius: 30px; overflow: hidden; background: var(--surface);
  box-shadow: 0 30px 70px rgba(30, 30, 80, .18), inset 0 0 0 1px rgba(255, 255, 255, .35);
  filter: blur(calc(var(--d) * 3px)) saturate(calc(1 - var(--d) * .5));
  opacity: calc(1 - var(--d) * .25);
  transform-origin: 50% 50%; will-change: transform; cursor: pointer;
  transition: opacity .6s var(--ease), box-shadow .5s;
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.2s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 20, .2) 0%, transparent 28%, transparent 55%, rgba(14, 14, 20, .78) 100%); }
.card__num {
  position: absolute; top: 1rem; left: 1.3rem; z-index: 2;
  font-family: var(--f-mono); font-size: .8rem; color: #fff; letter-spacing: .08em;
  padding: .3rem .6rem; border-radius: 999px; background: rgba(14, 14, 20, .35); backdrop-filter: blur(8px);
}
.card__go {
  position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: .95rem;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(8px);
  transition: background .3s, transform .5s var(--ease);
}
.card__meta { position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1.2rem; z-index: 2; display: flex; align-items: end; justify-content: space-between; gap: 1rem; color: #fff; }
.card__txt { display: grid; gap: .35rem; min-width: 0; }
.card__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.2rem, .8rem + 1.4vw, 2.2rem); line-height: 1.05; letter-spacing: -.03em; }
.card__tag { font-size: .82rem; opacity: .85; max-width: 46ch; line-height: 1.35; }
.card__ages {
  flex: none; padding: .3rem .7rem; border-radius: 999px; font-family: var(--f-mono); font-size: .68rem;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px);
}
.card.is-active { box-shadow: 0 40px 90px rgba(43, 43, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .5); }
.card.is-active img { transform: scale(1); }
.card.is-active .card__go { background: var(--blue); border-color: var(--blue); transform: rotate(45deg); }
.card.is-off { opacity: .15; }
.work.is-filtered .reel { animation: reelPulse .7s var(--ease); }   /* a short "flash" so the change is noticed */
@keyframes reelPulse { 0% { box-shadow: inset 0 0 0 0 var(--blue); } 30% { box-shadow: inset 0 0 0 3px var(--blue); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
.work.is-filtered #sw-tot { animation: totPop .6s var(--ease); }
@keyframes totPop { 40% { transform: scale(1.6); color: var(--blue); } }
#sw-tot { display: inline-block; }

.work__top {
  position: absolute; left: 7vw; right: 7vw; top: 5.6rem; z-index: 4;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
}
.work__eyebrow { font-family: var(--f-mono); font-size: .72rem; color: var(--blue); margin-bottom: .35rem; }
.work__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.7rem, 1rem + 2vw, 3rem); letter-spacing: -.045em; line-height: 1; }
/* vertical, decoding workshop name on the left */
.reel__name {
  position: absolute; left: calc(7vw + 1.6rem); top: calc(50% + 4.5rem); z-index: 4; pointer-events: none;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  font-family: var(--f-code); font-weight: 500; font-size: clamp(.95rem, .6rem + 1.1vw, 1.6rem); letter-spacing: .08em; white-space: nowrap;
  max-height: 60vh; overflow: hidden;
}
/* progress rail on the right */
.reel__rail {
  position: absolute; right: calc(3.5vw - 1rem); top: calc(50% + 4.5rem); translate: 0 -50%; z-index: 4; width: 2rem;
  display: grid; justify-items: center; gap: .6rem; font-family: var(--f-mono); font-size: .68rem; color: var(--dim);
}
.reel__rail span:first-child { color: var(--ink); }
.reel__line { position: relative; display: block; width: 1px; height: 22vh; background: var(--ink); opacity: .7; }
.reel__line b { position: absolute; left: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 20%, transparent); }

/* bottom: ages + tagline + button (centre), age chips (left), arrows (right) */
.work__caption {
  position: absolute; left: 50%; bottom: 2.4rem; translate: -50% 0; z-index: 4;
  display: flex; align-items: center; gap: .9rem; padding: .45rem .5rem .45rem 1.1rem; border-radius: 999px;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px); box-shadow: 0 12px 30px rgba(30, 30, 80, .12);
}
.work__caption .btn { padding: .7rem 1.2rem; white-space: nowrap; }
.work__ages { white-space: nowrap; }
.work__ages { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.work__tag { color: var(--dim); font-size: .9rem; }
.work__filter { display: flex; align-items: center; gap: .7rem; }
.work__filter .seek__q { font-size: .72rem; margin: 0; white-space: nowrap; }
.work__filter ul { display: flex; flex-wrap: nowrap; gap: .3rem; justify-content: flex-end; }
@media (max-width: 1200px) { .work__filter .seek__q { display: none; } .work__filter button { font-size: .64rem; padding: .32rem .55rem; } }
.work__filter li + li { margin: 0; }
.work__filter button {
  font-family: var(--f-mono); font-size: .7rem; padding: .35rem .65rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .6); color: var(--ink); transition: background .25s, color .25s;
}
.work__filter button:hover, .work__filter button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); transform: none; }
.work__switch { position: absolute; right: calc(7vw + 1.6rem + 110px); bottom: 2.4rem; z-index: 4; display: flex; gap: .4rem; }
.sw-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, .7); font-size: 1rem; transition: background .25s, color .25s; }
.sw-btn:hover { color: #fff; background: var(--blue); border-color: var(--blue); }

/* ==========================================================================
   Steps
   ========================================================================== */
/* pinned: the section is tall, the inner frame sticks while the monitor flips through the steps */
.steps { position: relative; height: calc(100vh + var(--n, 5) * 70vh); }
.steps__pin {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  padding: 6.5rem var(--pad) 3rem calc(var(--pad) + 1.5rem);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr); gap: clamp(1.5rem, 3vw, 3.5rem); align-items: center;
}
.steps__head { position: relative; z-index: 2; display: grid; gap: 1.4rem; align-content: center; }
.steps__head .h-xl { font-size: clamp(2rem, 4.8vw, 5.6rem); }
.steps__head p { color: var(--dim); max-width: 34ch; }
.steps__hint { display: flex; align-items: center; gap: .7rem; font-family: var(--f-mono); font-size: .72rem; }
.steps__mouse { position: relative; width: 18px; height: 28px; border: 1.5px solid currentColor; border-radius: 10px; flex: none; }
.steps__mouse::after { content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--blue); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(7px); opacity: 0; } 100% { opacity: 0; } }

/* the computer */
.monitor { position: relative; display: grid; justify-items: center; width: min(100%, 560px, 62vh); justify-self: center; }
.monitor__body {
  position: relative; width: 100%; padding: 5.5% 5.5% 0; border-radius: 26px 26px 20px 20px;
  background: linear-gradient(165deg, #ffffff 0%, #eceaf8 45%, #d3d0ea 100%);
  box-shadow: inset 0 2px 0 #fff, inset 0 -8px 18px rgba(60, 50, 140, .18), 0 40px 80px -20px rgba(43, 43, 255, .45), 0 0 0 1px rgba(255, 255, 255, .4);
}
.monitor__screen {
  position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #16164a 0%, #0a0a22 70%, #05050f 100%);
  box-shadow: inset 0 0 0 6px #1a1a24, inset 0 0 40px rgba(0, 0, 0, .9), 0 0 0 2px #b8b5d6;
  color: #e8e6ff; font-family: var(--f-code);
}
.monitor__screen::before { /* scanlines */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px);
}
.monitor__screen::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  background: linear-gradient(150deg, rgba(255, 255, 255, .14) 0%, transparent 32%), radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, .45));
}
.steps.is-glitch .monitor__screen { animation: glitch .45s steps(3); }
@keyframes glitch { 0% { filter: brightness(1.8) hue-rotate(40deg); transform: translateX(3px); } 50% { filter: brightness(.7); transform: translateX(-2px); } 100% { filter: none; transform: none; } }
.monitor__chin { display: flex; align-items: center; justify-content: space-between; padding: 4% 2% 4.5%; }
.monitor__brand { font-family: var(--f-mono); font-size: .7rem; color: #6a6a7c; letter-spacing: .06em; }
.monitor__brand b { color: #2b2bff; font-weight: 500; }
.monitor__slot { width: 28%; height: 6px; border-radius: 4px; background: #1a1a24; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6), 0 1px 0 #fff; }
.monitor__led { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; animation: pulse 2.2s infinite; }
.monitor__neck { width: 16%; height: 34px; background: linear-gradient(90deg, #c9c6e2, #f2f1fb 50%, #c9c6e2); }
.monitor__foot { width: 46%; height: 14px; border-radius: 10px 10px 14px 14px; background: linear-gradient(#f4f3fb, #c7c4df); box-shadow: 0 18px 30px rgba(0, 0, 0, .35); }
.monitor__kbd {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; width: 78%; margin-top: 16px; padding: 8px; border-radius: 12px;
  background: linear-gradient(#efeef8, #cfcce6); box-shadow: 0 14px 26px rgba(0, 0, 0, .35), inset 0 1px 0 #fff;
  transform: perspective(500px) rotateX(38deg);
}
.monitor__kbd i { height: 12px; border-radius: 3px; background: #fff; box-shadow: 0 2px 0 #bdb9d6; }
.monitor__kbd i.w { grid-column: 3 / 9; }
.monitor__kbd i:nth-child(3n) { animation: key 2.4s infinite; }
.monitor__kbd i:nth-child(4n) { animation: key 1.9s infinite .5s; }
@keyframes key { 0%, 80%, 100% { transform: none; background: #fff; } 85% { transform: translateY(2px); background: #b4b1ff; box-shadow: none; } }

/* screens */
.scr {
  position: absolute; inset: 0; z-index: 1; padding: 5% 6% 6%;
  display: grid; grid-template-rows: auto 1fr auto; gap: 4%;
  opacity: 0; transform: translateY(14%) scale(.96); transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.scr.is-prev { transform: translateY(-14%) scale(.96); }
.scr.is-on { opacity: 1; transform: none; }
.scr__bar { display: flex; align-items: center; gap: .7rem; font-size: clamp(.55rem, .45rem + .3vw, .72rem); color: #9d9ad0; border-bottom: 1px solid rgba(180, 177, 255, .2); padding-bottom: .5rem; }
.scr__dots { display: flex; gap: 4px; } .scr__dots i { width: 7px; height: 7px; border-radius: 50%; background: #ff5f57; } .scr__dots i + i { background: #febc2e; } .scr__dots i + i + i { background: #28c840; }
.scr__file { flex: 1; } .scr__n { color: #ffd64d; }
.scr__art { display: grid; place-items: center; min-height: 0; }
.scr__txt h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.1rem, .7rem + 1.4vw, 2rem); letter-spacing: -.035em; color: #fff; margin-bottom: .3rem; }
.scr__txt p { font-family: var(--f-body); font-size: clamp(.7rem, .55rem + .4vw, .92rem); line-height: 1.4; color: #b9b7e0; max-width: 46ch; }

/* scene: idea */
.art-idea { position: relative; display: grid; place-items: center; }
.art-idea svg { width: clamp(46px, 8vw, 88px); fill: none; stroke: #ffd64d; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 12px rgba(255, 214, 77, .6)); }
.art-idea .rays { animation: piBlink 1.4s ease-in-out infinite; }
.art-idea .bubble { position: absolute; left: 62%; top: -4%; white-space: nowrap; font-size: clamp(.5rem, .4rem + .35vw, .72rem); padding: .3rem .6rem; border-radius: 10px 10px 10px 2px; background: #2b2bff; color: #fff; animation: bubble 3s ease-in-out infinite; }
/* scene: build */
.art-build { position: relative; width: clamp(90px, 16vw, 170px); aspect-ratio: 1.3; }
.art-build .b { position: absolute; left: 50%; width: 46%; height: 18%; margin-left: -23%; border-radius: 4px; animation: drop 3.2s var(--ease) infinite both; }
.art-build .b::before, .art-build .b::after { content: ""; position: absolute; top: -26%; left: 14%; width: 22%; height: 26%; border-radius: 3px 3px 0 0; background: inherit; }
.art-build .b::after { left: auto; right: 14%; }
.art-build .b1 { bottom: 10%; background: #2b2bff; color: #2b2bff; animation-delay: 0s; }
.art-build .b2 { bottom: 30%; background: #ffd64d; color: #ffd64d; animation-delay: .35s; margin-left: -30%; }
.art-build .b3 { bottom: 50%; background: #b4b1ff; color: #b4b1ff; animation-delay: .7s; margin-left: -16%; }
.art-build .b4 { bottom: 70%; background: #ff6b8b; color: #ff6b8b; animation-delay: 1.05s; }
.art-build .floor { position: absolute; left: 10%; right: 10%; bottom: 6%; height: 4%; border-radius: 4px; background: rgba(180, 177, 255, .3); }
@keyframes drop { 0% { transform: translateY(-260%); opacity: 0; } 18%, 82% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
/* scene: code */
.art-code { margin: 0; justify-self: stretch; padding-left: 4%; font-size: clamp(.55rem, .42rem + .5vw, .9rem); line-height: 1.7; color: #e8e6ff; white-space: pre; }
.art-code .l { display: block; overflow: hidden; width: 0; animation: type 6s steps(28) infinite; }
.art-code .l2 { animation-delay: .9s; } .art-code .l3 { animation-delay: 1.8s; } .art-code .l4 { animation-delay: 2.9s; }
.art-code b { color: #b4b1ff; font-weight: 500; } .art-code em { color: #ffd64d; font-style: normal; }
.art-code .caret { display: inline-block; width: .5em; height: 1em; vertical-align: -2px; background: #3ddc84; animation: caret 1s steps(1) infinite; }
@keyframes type { 0% { width: 0; } 30%, 90% { width: 100%; } 100% { width: 0; } }
/* scene: test */
.art-test { width: min(86%, 300px); display: grid; gap: .45rem; font-size: clamp(.55rem, .42rem + .45vw, .85rem); }
.art-test .bar { height: 8px; border-radius: 6px; background: rgba(180, 177, 255, .2); overflow: hidden; margin-bottom: .3rem; }
.art-test .bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff5f57, #ffd64d, #3ddc84); animation: bar 4.5s ease-in-out infinite; }
.art-test p { opacity: 0; animation: line 4.5s infinite; } .art-test .t1 b { color: #ff5f57; } .art-test .t2 b { color: #ffd64d; } .art-test .t3 b { color: #3ddc84; }
.art-test .t2 { animation-delay: 1s; } .art-test .t3 { animation-delay: 2s; }
@keyframes bar { 0% { width: 0; } 70%, 100% { width: 100%; } }
@keyframes line { 0% { opacity: 0; transform: translateX(-8px); } 10%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* scene: show */
.art-show { position: relative; display: grid; place-items: center; width: 60%; aspect-ratio: 2; }
.art-show .star { font-size: clamp(2.2rem, 1.5rem + 3vw, 4.4rem); color: #ffd64d; text-shadow: 0 0 24px rgba(255, 214, 77, .7); animation: starPop 2.4s var(--ease) infinite; }
.art-show .clap { position: absolute; bottom: -6%; font-size: clamp(.55rem, .42rem + .4vw, .8rem); color: #fff; padding: .2rem .6rem; border-radius: 999px; background: rgba(43, 43, 255, .8); }
.art-show .cf { position: absolute; left: 50%; top: 45%; width: 7px; height: 7px; border-radius: 2px; animation: confetti 2.4s ease-out infinite; }
.art-show .c1 { background: #ff6b8b; --tx: -90px; --ty: -40px; } .art-show .c2 { background: #b4b1ff; --tx: 90px; --ty: -46px; animation-delay: .1s; }
.art-show .c3 { background: #ffd64d; --tx: -60px; --ty: 30px; animation-delay: .2s; } .art-show .c4 { background: #3ddc84; --tx: 70px; --ty: 34px; animation-delay: .15s; }
.art-show .c5 { background: #2b2bff; --tx: -20px; --ty: -60px; animation-delay: .25s; } .art-show .c6 { background: #fff; --tx: 30px; --ty: -64px; animation-delay: .05s; }
@keyframes starPop { 0% { transform: scale(.4) rotate(-30deg); } 25% { transform: scale(1.15) rotate(8deg); } 40%, 100% { transform: scale(1) rotate(0); } }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) rotate(320deg); opacity: 0; } }

/* step list on the right */
.steps__dots { position: relative; display: grid; gap: .3rem; justify-self: end; }
.steps__dots::before { content: ""; position: absolute; right: 5px; top: .6rem; bottom: .6rem; width: 1px; background: var(--line-strong); }
.steps__dots::after { content: ""; position: absolute; right: 5px; top: .6rem; width: 1px; height: calc((100% - 1.2rem) * var(--p, 0)); background: var(--blue); }
.sdot { display: flex; align-items: center; gap: .7rem; padding: .45rem 0; font-family: var(--f-mono); font-size: .76rem; color: var(--dim); text-align: right; justify-content: flex-end; width: 100%; transition: color .3s; }
.sdot__n { opacity: .6; }
.sdot i { position: relative; z-index: 1; flex: none; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--bg); transition: transform .4s var(--ease), background .3s, border-color .3s, box-shadow .3s; }
.sdot.is-done i { background: var(--blue); border-color: var(--blue); }
.sdot.is-on { color: var(--ink); }
.sdot.is-on i { background: var(--blue); border-color: var(--blue); transform: scale(1.45); box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 25%, transparent), 0 0 16px var(--blue); }
.sdot:hover { color: var(--ink); }
@media (max-width: 1100px) {
  .steps__pin { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; }
  .sdot__t { display: none; }
}
@media (max-width: 860px) {
  .steps__dots { display: flex; justify-self: center; gap: .9rem; }
  .steps__dots::before, .steps__dots::after { display: none; }
  .sdot { flex-direction: column-reverse; gap: .35rem; padding: 0; }
}
/* ==========================================================================
   Bee-Bot game
   ========================================================================== */
.bee {
  margin: 0 var(--pad); padding: clamp(2rem, 5vw, 4rem);
  border-radius: calc(var(--radius) * 1.6);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(255, 214, 77, .35), transparent 60%),
    linear-gradient(160deg, #efeeff, #ffffff);
  border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.bee__text { display: grid; gap: 1.3rem; min-width: 0; }
.bee__text .h-xl { font-size: clamp(2rem, .8rem + 3.4vw, 4.6rem); }
.bee__text p { color: var(--dim); max-width: 40ch; }
.bee__text strong { color: var(--ink); }
.bee__status { font-family: var(--f-mono); font-size: .85rem; color: var(--violet) !important; }
.bee__play { display: grid; gap: 1rem; justify-items: center; }
.bee__board {
  --n: 5;
  position: relative; width: min(100%, 420px); aspect-ratio: 1;
  display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px;
  padding: 4px; border-radius: 18px; background: rgba(14, 14, 20, .06);
}
.cell { border-radius: 10px; background: #fff; display: grid; place-items: center; font-size: clamp(1.2rem, 4vw, 2rem); }
.cell--rock { background: rgba(255, 255, 255, .5); }
.cell--rock::before { content: ""; width: 46%; height: 46%; border-radius: 30% 40% 35% 45%; background: #a9a9bb; box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .15); }
.cell--goal::before { content: "✿"; color: var(--violet); text-shadow: 0 0 14px rgba(106, 77, 255, .4); }
.beebot {
  position: absolute; top: 4px; left: 4px;
  width: calc((100% - 8px - 4px * (var(--n) - 1)) / var(--n));
  aspect-ratio: 1; display: grid; place-items: center;
  transition: transform .45s var(--ease);
  pointer-events: none;
}
.beebot__body { width: 74%; height: 74%; transition: transform .35s var(--ease); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .15)); }
.beebot.is-bump .beebot__body { animation: bump .4s; }
@keyframes bump { 30% { translate: 0 -12%; } 60% { translate: 0 6%; } }
.bee__program {
  width: min(100%, 420px); min-height: 52px; padding: .5rem; border-radius: 14px;
  border: 1px dashed var(--line-strong); display: flex; flex-wrap: wrap; gap: .35rem; align-items: center;
  font-family: var(--f-mono); font-size: .8rem; background: rgba(255, 255, 255, .6);
}
.bee__empty { color: var(--dim); padding-left: .4rem; }
.op { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 214, 77, .35); color: var(--ink); font-size: 1rem; }
.op.is-run { background: var(--ink); color: #ffd64d; }
.bee__pad { width: min(100%, 420px); display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.bee__pad button {
  min-height: 56px; border-radius: 14px; border: 1px solid var(--line-strong); background: #fff;
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1; padding: .4rem 0;
  transition: background .2s, transform .15s;
}
.bee__pad button small { font-family: var(--f-mono); font-size: .62rem; color: var(--dim); margin-top: .2rem; }
.bee__pad button:hover { background: var(--surface); }
.bee__pad button:active { transform: scale(.95); }
.bee__pad .bee__go { grid-column: span 2; background: #ffd64d; color: var(--ink); border-color: #ffd64d; font-family: var(--f-mono); font-size: .95rem; }
.bee__pad .bee__go:hover { background: #ffcb1f; }
.bee__pad .bee__clr { grid-column: span 2; font-family: var(--f-mono); font-size: .85rem; }

/* ==========================================================================
   Section heads, projects, news lists
   ========================================================================== */
.section-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2rem; align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.section-head p { color: var(--dim); max-width: 40ch; }

.projects { padding: clamp(6rem, 13vw, 11rem) var(--pad) clamp(4rem, 8vw, 6rem); position: relative; }
.proj {
  position: relative; display: grid; grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 22rem) 3rem; gap: 1.5rem; align-items: center;
  padding: 1.6rem 0; border-top: 1px solid var(--line); cursor: pointer;
}
.projects__list li:last-child .proj { border-bottom: 1px solid var(--line); }
.proj__year { font-family: var(--f-mono); font-size: .78rem; color: var(--dim); }
.proj__title {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(1.5rem, .9rem + 2.6vw, 3.6rem);
  letter-spacing: -.045em; line-height: 1.02;
  transition: transform .5s var(--ease), color .3s, font-variation-settings .5s var(--ease);
  font-variation-settings: "wght" 300;
}
.proj__sum { color: var(--dim); font-size: .92rem; }
.proj__go { justify-self: end; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--f-mono); font-size: .8rem; transition: background .3s, color .3s, transform .4s var(--ease); }
.proj:hover .proj__title, .proj:focus-visible .proj__title { transform: translateX(1rem); color: var(--blue); font-variation-settings: "wght" 600; }
.proj:hover .proj__go { background: var(--blue); color: #fff; border-color: var(--blue); transform: rotate(-45deg); }

.projects__preview {
  position: fixed; top: 0; left: 0; z-index: 60; width: 300px; aspect-ratio: 4 / 3;
  border-radius: 16px; overflow: hidden; pointer-events: none;
  opacity: 0; scale: .8; transition: opacity .3s, scale .4s var(--ease);
  box-shadow: 0 30px 70px rgba(30, 30, 80, .25);
}
.projects__preview.is-on { opacity: 1; scale: 1; }
.projects__preview img { width: 100%; height: 100%; object-fit: cover; }

/* Pillars */
/* Depth gallery — pixel robot of photos → 3D cloud you fly through */
.depth { position: relative; height: 760vh; }
.depth__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.depth__world { position: absolute; inset: 0; transform-style: preserve-3d; perspective-origin: 50% 50%; }
.dthumb, .dwin { position: absolute; left: 50%; top: 50%; will-change: transform, opacity; backface-visibility: hidden; }
.dthumb { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 6px; overflow: hidden; background: #2b2bff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.dthumb:nth-child(5n) { background: #b4b1ff; } .dthumb:nth-child(7n) { background: #ffd64d; }
.dthumb img, .dwin img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dthumb img { opacity: .92; }
.dwin {
  width: min(46vw, 640px); aspect-ratio: 16 / 10; margin: calc(min(46vw, 640px) / -2 * .625) 0 0 calc(min(46vw, 640px) / -2);
  border-radius: 18px; overflow: hidden; background: #16164a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .15);
}
.dwin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 20, .55)); pointer-events: none; }
.dwin__n { position: absolute; left: 1rem; bottom: .8rem; z-index: 1; font-family: var(--f-mono); font-size: .8rem; color: #fff; }
.dwin:hover img { transform: scale(1.04); transition: transform .8s var(--ease); }

.depth__intro {
  position: absolute; left: 0; right: 0; bottom: 8vh; z-index: 2; pointer-events: none;
  display: grid; justify-items: center; text-align: center; gap: .7rem; padding: 0 var(--pad);
  opacity: var(--intro, 1); transform: translateY(calc((1 - var(--intro, 1)) * -30px));
}
.depth__eyebrow { font-family: var(--f-mono); font-size: .78rem; color: var(--blue); }
.depth__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.8rem, 1rem + 3vw, 3.8rem); letter-spacing: -.045em; line-height: 1.02; }
.depth__lead { color: var(--dim); max-width: 40ch; }
.depth__cap {
  position: absolute; left: calc(var(--pad) + 1.5rem); bottom: 6vh; z-index: 2; display: flex; align-items: flex-end; gap: 1rem;
  opacity: 0; transition: opacity .5s; pointer-events: none; max-width: min(560px, 80vw);
}
.depth.has-cap .depth__cap { opacity: calc(1 - var(--outro, 0)); }
.depth__num { font-family: var(--f-display); font-weight: 200; font-style: italic; font-size: clamp(2.6rem, 1.6rem + 3vw, 4.6rem); line-height: .8; letter-spacing: -.05em; color: var(--ink); display: inline-block; }
.depth__meta { display: grid; gap: .2rem; padding-bottom: .2rem; }
.depth__name { font-family: var(--f-display); font-size: clamp(1rem, .8rem + .6vw, 1.35rem); letter-spacing: -.02em; line-height: 1.15; display: block; }
.depth__kind { font-family: var(--f-mono); font-size: .72rem; color: var(--dim); display: block; }
.depth__bar { position: absolute; right: calc(var(--pad) + 130px); bottom: 6vh; width: min(220px, 30vw); height: 2px; background: var(--line-strong); z-index: 2; }
.depth__bar i { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(var(--p, 0)); }
.depth__outro {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 1.4rem; text-align: center; padding: var(--pad);
  opacity: var(--outro, 0); pointer-events: none;
  background: radial-gradient(60% 50% at 50% 50%, color-mix(in srgb, var(--bg) 80%, transparent), transparent);
}
.depth__outro p { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.5rem, 1rem + 2vw, 2.8rem); letter-spacing: -.04em; max-width: 22ch; line-height: 1.1; }
.depth.is-end .depth__outro { pointer-events: auto; }
@media (max-width: 760px) {
  .depth { height: 640vh; }
  .dthumb { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .dwin { width: 78vw; margin: calc(78vw / -2 * .625) 0 0 -39vw; border-radius: 14px; }
  .depth__bar { display: none; }
}

/* "Aktualno" badge for projects in progress */
.proj__live, .d-live {
  display: inline-flex; align-items: center; gap: .4rem; vertical-align: middle;
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  padding: .25rem .6rem .25rem .5rem; border-radius: 999px; background: #3ddc84; color: #06281a; margin-left: .7rem;
}
.proj__live::before, .d-live::before, .proj-legend i { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.d-live { margin-left: 0; }
.proj-legend { display: inline-flex; align-items: center; gap: .45rem; margin-top: .6rem; font-family: var(--f-mono); font-size: .74rem; }
.proj-legend i { display: inline-block; flex: none; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }

/* Winter robotics school sign-up — a "ticket" centred at the top of the hero.
   Icy main part with a robot in a beanie peeking over the edge, perforated tear-off stub on the right. */
.hero__top { display: flex; justify-content: center; overflow-x: clip; overflow-y: visible; padding-top: 30px; margin-top: -30px; }   /* flakes may drift sideways but never widen the page */
.ticket {
  --ice: linear-gradient(120deg, #eaf4ff 0%, #f3efff 50%, #dcedff 100%);
  position: relative; display: flex; align-items: stretch; margin-top: .4rem;
  filter: drop-shadow(0 18px 34px rgba(50, 90, 255, .25)); transform: rotate(-1.5deg);
  transition: transform .6s var(--ease), filter .4s; color: #0e0e14;
  animation: ticketFloat 6s ease-in-out infinite;
}
@keyframes ticketFloat { 50% { translate: 0 -6px; } }
.ticket:hover { transform: rotate(0deg) scale(1.03); filter: drop-shadow(0 26px 44px rgba(50, 90, 255, .35)); }
.ticket__main, .ticket__stub {
  position: relative; display: grid; align-content: center;
  /* punched half-circles where the two parts meet */
  -webkit-mask: radial-gradient(circle 11px at var(--hx) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 11px at var(--hx) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 11px at var(--hx) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 11px at var(--hx) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket__main {
  --hx: 100%; gap: .18rem; padding: .7rem 1.5rem .7rem 1.1rem; border-radius: 18px 0 0 18px;
  background: var(--ice); overflow: visible;
}
.ticket__main::after { /* frosty sheen */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%);
  transform: translateX(-110%); animation: frost 5s ease-in-out infinite 1.2s;
}
@keyframes frost { 0%, 55% { transform: translateX(-110%); } 85%, 100% { transform: translateX(110%); } }
.ticket__kicker { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--f-mono); font-weight: 600; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: #2b2bff; }
.ticket__live { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.ticket__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1rem, .75rem + .8vw, 1.35rem); letter-spacing: -.035em; line-height: 1.05; white-space: nowrap; }
.ticket__title em { font-style: normal; background: linear-gradient(100deg, #2b2bff, #6a4dff 50%, #3aa0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ticket__meta { font-family: var(--f-mono); font-size: .64rem; color: #4a5a8a; }
.ticket__stub {
  --hx: 0%; place-items: center; gap: .25rem; min-width: 5.8rem; padding: .6rem .85rem .6rem 1.1rem; border-radius: 0 18px 18px 0;
  background: #0e0e14; color: #fff; text-align: center;
  transform-origin: 0% 50%; transition: transform .6s var(--ease), background .3s;
}
.ticket__stub::before { /* perforation line */
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; border-left: 2px dashed rgba(255, 255, 255, .35);
}
.ticket:hover .ticket__stub { transform: rotate(6deg) translateX(6px); background: #2b2bff; }   /* "tearing off" */
.ticket__cta { font-family: var(--f-mono); font-weight: 700; font-size: .72rem; line-height: 1.15; letter-spacing: .02em; }
.ticket__arrow { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #0e0e14; font-size: .85rem; transition: transform .5s var(--ease); }
.ticket:hover .ticket__arrow { transform: rotate(45deg); }
.ticket__code { width: 50px; height: 9px; opacity: .55; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 8px, #fff 8px 11px, transparent 11px 12px); }
/* robot in a beanie peeking over the ticket */
.ticket__bot {
  position: absolute; left: 1.1rem; top: -22px; width: 34px; height: 27px; border-radius: 40% 40% 36% 36%;
  background: linear-gradient(160deg, #fff, #cfcbea); box-shadow: inset -3px -4px 8px rgba(70, 60, 140, .25), 0 4px 10px rgba(40, 30, 120, .2);
  display: flex; justify-content: center; align-items: center; gap: 8px; z-index: 2;
  transform-origin: 50% 100%; animation: peek 5s ease-in-out infinite;
}
@keyframes peek { 0%, 100% { transform: translateY(8px) rotate(-4deg); } 30%, 70% { transform: translateY(0) rotate(4deg); } }
.ticket__eye { width: 6px; height: 8px; margin-top: 5px; border-radius: 50%; background: #2b2bff; box-shadow: 0 0 6px #2b2bff; animation: blink 3.4s infinite; }
.ticket__hat {
  position: absolute; left: 2px; right: 2px; top: -12px; height: 15px; border-radius: 20px 20px 5px 5px;
  background: repeating-linear-gradient(90deg, #ff6b8b 0 5px, #ff8aa3 5px 10px); box-shadow: inset 0 -4px 0 #fff;
}
.ticket__hat::after { content: ""; position: absolute; left: 50%; top: -6px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.ticket__arm { position: absolute; right: -9px; top: 12px; width: 10px; height: 8px; border-radius: 6px; background: #e6e3f5; transform-origin: 0 50%; animation: armWave 1.2s ease-in-out infinite; }
@keyframes armWave { 50% { transform: rotate(-35deg); } }
/* snowflakes drifting around the ticket */
.ticket__flakes { position: absolute; inset: -30px -40px; pointer-events: none; z-index: 3; }
.ticket__flakes i { position: absolute; top: 0; font-style: normal; color: #8fb6ff; font-size: 12px; opacity: 0; animation: flake 6s linear infinite; text-shadow: 0 0 6px #fff; }
.ticket__flakes i:nth-child(1) { left: 4%; animation-delay: 0s; } .ticket__flakes i:nth-child(2) { left: 18%; animation-delay: -1.4s; font-size: 9px; }
.ticket__flakes i:nth-child(3) { left: 34%; animation-delay: -3.1s; } .ticket__flakes i:nth-child(4) { left: 52%; animation-delay: -4.2s; font-size: 10px; }
.ticket__flakes i:nth-child(5) { left: 68%; animation-delay: -2.2s; font-size: 14px; } .ticket__flakes i:nth-child(6) { left: 84%; animation-delay: -5s; font-size: 9px; }
.ticket__flakes i:nth-child(7) { left: 96%; animation-delay: -.7s; }
@keyframes flake { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { transform: translate(14px, 130px) rotate(200deg); opacity: 0; } }
@media (max-width: 600px) {
  .hero__top { margin-bottom: 22px; }   /* room for the little drone above "Prema" */
  .ticket { transform: rotate(-1deg); }
  .ticket__main { padding: .55rem 1rem .55rem .85rem; }
  .ticket__title { font-size: .9rem; }
  .ticket__meta { display: none; }
  .ticket__kicker { font-size: .52rem; letter-spacing: .08em; }
  .ticket__stub { min-width: 4.6rem; padding: .5rem .6rem .5rem .9rem; }
  .ticket__cta { font-size: .64rem; }
  .ticket__arrow { width: 20px; height: 20px; font-size: .7rem; }
  .ticket__bot { scale: .8; left: .8rem; }   /* "scale" so it does not fight the peek animation (transform) */
  .ticket__code { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ticket, .ticket__main::after, .ticket__bot, .ticket__arm, .ticket__flakes i, .ticket__live { animation: none; } }
/* Floating sticker: rotating text ring around a little robot in a winter beanie */
.sticker {
  position: fixed; right: clamp(.8rem, 2vw, 1.6rem); bottom: clamp(.8rem, 2vw, 1.6rem); z-index: 90;
  width: 112px; height: 112px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #e6eeff 60%, #d3defd);
  box-shadow: 0 18px 40px rgba(43, 43, 255, .3), inset 0 0 0 1px #fff;
  animation: stickerIn .9s var(--ease) 1.2s both;
}
@keyframes stickerIn { from { opacity: 0; transform: translateY(30px) scale(.6) rotate(-20deg); } }
.sticker__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.sticker__ring text { font-family: var(--f-mono); font-weight: 700; font-size: 9.6px; letter-spacing: .5px; fill: #2b2bff; }
.sticker:hover .sticker__ring { animation-duration: 4s; }
.sticker__bot {
  position: relative; width: 46px; height: 38px; margin-top: 10px; border-radius: 40% 40% 36% 36%;
  background: linear-gradient(160deg, #ffffff, #cfcbea); box-shadow: inset -3px -4px 8px rgba(70, 60, 140, .25), 0 4px 10px rgba(40, 30, 120, .2);
  display: flex; justify-content: center; align-items: center; gap: 9px; transition: transform .5s var(--ease);
}
.sticker__eye { width: 7px; height: 9px; border-radius: 50%; background: #2b2bff; box-shadow: 0 0 6px #2b2bff; animation: blink 3.6s infinite; margin-top: 6px; }
.sticker__hat { /* knitted beanie with a pompom */
  position: absolute; left: 3px; right: 3px; top: -14px; height: 18px; border-radius: 22px 22px 6px 6px;
  background: repeating-linear-gradient(90deg, #ff6b8b 0 5px, #ff8aa3 5px 10px); box-shadow: inset 0 -5px 0 #fff;
}
.sticker__hat::after { content: ""; position: absolute; left: 50%; top: -7px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.sticker:hover .sticker__bot { transform: rotate(-8deg) scale(1.08); }
.sticker__tip {
  position: absolute; right: calc(100% + .6rem); top: 50%; translate: 0 -50%; white-space: nowrap;
  padding: .45rem .75rem; border-radius: 12px 12px 4px 12px; background: #0e0e14; color: #fff;
  font-family: var(--f-mono); font-weight: 600; font-size: .78rem;
  opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none;
}
.sticker:hover .sticker__tip, .sticker.is-hint .sticker__tip { opacity: 1; transform: none; }
@media (max-width: 600px) { .sticker { width: 88px; height: 88px; } .sticker__bot { transform: scale(.82); } }
.mobile-menu__winter { color: #2b2bff !important; }
@media (prefers-reduced-motion: reduce) { .winter::before, .winter__snow i, .winter__ic svg, .sticker__ring { animation: none; } }

/* Film — the team and kids about the workshops */
.film { padding: clamp(5rem, 10vw, 8rem) var(--pad); display: grid; gap: clamp(2rem, 4vw, 3rem); }
.film__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 1rem 3rem; align-items: end; }
.film__eyebrow { grid-column: 1 / -1; font-family: var(--f-mono); font-size: .78rem; color: var(--blue); }
.film__lead { color: var(--dim); }
.film__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: 1.2rem; align-items: stretch; }
.film__player {
  position: relative; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: #000;
  box-shadow: 0 40px 100px -30px color-mix(in srgb, var(--blue) 55%, transparent), 0 0 0 1px rgba(255, 255, 255, .1);
}
.film__player video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film__play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 1rem;
  color: #fff; background: linear-gradient(180deg, rgba(5, 5, 20, .1), rgba(5, 5, 20, .55)); transition: opacity .4s, visibility .4s;
}
.film__play-ic {
  display: grid; place-items: center; width: clamp(70px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%; padding-left: .3em;
  font-size: clamp(1.3rem, 2vw, 1.8rem); background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(10px); transition: transform .5s var(--ease), background .3s;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .4); animation: filmPulse 2.4s infinite;
}
@keyframes filmPulse { 70% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.film__play-txt { font-family: var(--f-display); font-size: clamp(1.1rem, .8rem + 1vw, 1.6rem); letter-spacing: -.02em; }
.film__play-txt small { font-family: var(--f-mono); font-size: .7rem; opacity: .75; margin-left: .4rem; }
.film__play:hover .film__play-ic { transform: scale(1.1); background: var(--blue); border-color: var(--blue); }
.film.is-playing .film__play { opacity: 0; visibility: hidden; }
.film__now {
  position: absolute; left: 1rem; top: 1rem; z-index: 3; display: grid; gap: .1rem; padding: .5rem .8rem; border-radius: 12px;
  background: rgba(5, 5, 20, .55); backdrop-filter: blur(10px); color: #fff; opacity: 0; translate: 0 -6px; transition: opacity .4s, translate .4s;
  pointer-events: none;
}
.film__now span:first-child { font-family: var(--f-display); font-size: .95rem; }
.film__now span:last-child { font-family: var(--f-mono); font-size: .64rem; opacity: .75; }
.film.is-playing.has-now .film__now { opacity: 1; translate: 0 0; }

.film__chapters {
  position: relative; display: grid; align-content: start; gap: .3rem; padding: .5rem; border-radius: 22px; overflow-y: auto;
  max-height: 100%; min-height: 0; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
@media (min-width: 981px) { .film__chapters { contain: size; } }   /* list takes the player's height and scrolls */
.chap {
  width: 100%; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: .8rem; align-items: center; text-align: left;
  padding: .45rem; border-radius: 14px; color: var(--ink); transition: background .25s;
}
.chap:hover { background: rgba(255, 255, 255, .06); }
.chap.is-on { background: color-mix(in srgb, var(--blue) 22%, transparent); }
.chap__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #111; }
.chap__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .3s; }
.chap:hover .chap__thumb img, .chap.is-on .chap__thumb img { opacity: 1; }
.chap__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.chap.is-on .chap__bar { transform: scaleX(var(--prog, 0)); }
.chap.is-past .chap__bar { transform: scaleX(1); opacity: .5; }
.chap__txt { display: grid; gap: .1rem; min-width: 0; }
.chap__name { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chap__role { font-family: var(--f-mono); font-size: .64rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chap--team .chap__role { color: var(--blue); }
.chap__time { font-family: var(--f-mono); font-size: .7rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.film__note { font-family: var(--f-mono); font-size: .68rem; color: var(--dim); max-width: 70ch; }
@media (max-width: 980px) {
  .film__head { grid-template-columns: 1fr; }
  .film__body { grid-template-columns: 1fr; }
  .film__chapters { display: flex; overflow-x: auto; overflow-y: hidden; max-height: none; gap: .4rem; scroll-snap-type: x mandatory; }
  .film__chapters li { flex: 0 0 auto; scroll-snap-align: start; }
  .chap { width: 150px; grid-template-columns: 1fr; gap: .4rem; }
  .chap__time { position: absolute; margin: .35rem; padding: .1rem .35rem; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; }
  .chap { position: relative; }
}
@media (prefers-reduced-motion: reduce) { .film__play-ic { animation: none; } }

/* "Preskoči" on long pinned sections */
.skip {
  display: inline-flex; align-items: center; gap: .5rem; justify-self: start;
  padding: .55rem .95rem; border-radius: 999px; border: 1px solid var(--line-strong);
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; color: var(--ink);
  background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(10px);
  transition: background .25s, color .25s, border-color .25s;
}
.skip span { display: inline-block; animation: skipBob 1.6s ease-in-out infinite; }
@keyframes skipBob { 50% { transform: translateY(3px); } }
.skip:hover { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }
.skip--work { position: absolute; left: calc(7vw + 1.6rem); bottom: 2.4rem; z-index: 4; }
.skip--depth { position: absolute; right: var(--pad); top: 6rem; z-index: 4; }
@media (max-width: 860px) {
  .skip--work { left: auto; right: 5vw; bottom: auto; top: 5.2rem; }
  .skip--depth { top: 5.2rem; }
}

/* photo credit under a panel hero image (licensed photos) */
.d-credit { position: relative; margin: .5rem 0 1.2rem; font-family: var(--f-mono); font-size: .64rem; color: var(--dim); }
.d-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.footer__legal a, .form__note a, .mobile-menu__meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.d-permalink { margin-left: auto; color: var(--dim); text-decoration: underline; text-underline-offset: 2px; }
.d-permalink:hover { color: var(--blue); }

/* Članstvo in the nav pill */
.pill__member span { color: var(--blue); font-size: .8em; }

/* Pillars — "Zašto mi": sticky intro + cards that stack on top of each other while scrolling */
.pillars { padding: clamp(4rem, 8vw, 7rem) var(--pad); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.pillars__intro { position: sticky; top: 18vh; display: grid; gap: 1.2rem; justify-items: start; }
.pillars__eyebrow { font-family: var(--f-mono); font-size: .78rem; color: var(--blue); }
.pillars__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(2rem, 1rem + 3vw, 4rem); letter-spacing: -.045em; line-height: 1.02; }
.pillars__fun { position: relative; display: inline-block; font-weight: 600; color: var(--blue); }
.pillars__fun svg { position: absolute; left: 0; right: 0; bottom: -.18em; width: 100%; height: .3em; overflow: visible; }
.pillars__fun path { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 230; stroke-dashoffset: 230; transition: stroke-dashoffset 1.4s var(--ease) .3s; }
.pillars.is-in .pillars__fun path { stroke-dashoffset: 0; }
.pillars__lead { color: var(--dim); max-width: 30ch; }
.pillars__smile { position: relative; width: 74px; height: 74px; border-radius: 50%; margin-top: 1rem; background: #ffd64d; box-shadow: 0 14px 30px rgba(255, 180, 0, .35); animation: smile 6s ease-in-out infinite; }
.pillars__smile span { position: absolute; top: 30%; width: 9px; height: 13px; border-radius: 50%; background: #0e0e14; animation: blink 4s infinite; }
.pillars__smile span:first-child { left: 30%; } .pillars__smile span:nth-child(2) { right: 30%; }
.pillars__smile i { position: absolute; left: 28%; right: 28%; top: 52%; height: 16px; border: 3px solid #0e0e14; border-top: 0; border-radius: 0 0 40px 40px; }
@keyframes smile { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg) translateY(-6px); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

.pillars__stack { display: grid; gap: 2.2rem; padding-bottom: 6vh; }
.pcard {
  --c-bg: #2b2bff; --c-ink: #fff; --c-dim: rgba(255, 255, 255, .78); --c-chip: rgba(255, 255, 255, .16);
  position: sticky; top: calc(14vh + var(--i) * 1.6rem);
  min-height: min(68vh, 30rem); padding: clamp(1.4rem, 3vw, 2.4rem);
  display: grid; grid-template-rows: auto 1fr auto; gap: 1.4rem;
  border-radius: 28px; background: var(--c-bg); color: var(--c-ink);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .25) inset, 0 30px 60px -20px rgba(20, 10, 80, .35);
  transform-origin: 50% 0; will-change: transform; overflow: hidden;
}
.pcard::after { /* soft glow that follows the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 80%) var(--my, 10%), rgba(255, 255, 255, .22), transparent 60%);
}
.pcard--lav { --c-bg: #b4b1ff; --c-ink: #0e0e14; --c-dim: rgba(14, 14, 20, .72); --c-chip: rgba(14, 14, 20, .08); }
.pcard--sun { --c-bg: #ffd64d; --c-ink: #0e0e14; --c-dim: rgba(14, 14, 20, .72); --c-chip: rgba(14, 14, 20, .08); }
.pcard--ink { --c-bg: #0e0e14; --c-ink: #f3f3f8; --c-dim: #a2a2b8; --c-chip: rgba(255, 255, 255, .1); }
.pcard__top { display: flex; justify-content: space-between; align-items: start; }
.pcard__n { font-family: var(--f-display); font-weight: 200; font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: .8; letter-spacing: -.06em; }
.pcard__n small { font-family: var(--f-mono); font-size: .75rem; letter-spacing: 0; opacity: .6; margin-left: .3rem; }
.pcard__icon { width: clamp(64px, 8vw, 104px); aspect-ratio: 1; }
.pcard__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.pcard__punch { align-self: center; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 1rem + 2vw, 2.7rem); letter-spacing: -.04em; line-height: 1.05; max-width: 18ch; }
.pcard__body { display: grid; gap: .6rem; }
.pcard__title { font-family: var(--f-mono); font-weight: 500; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.pcard__text { color: var(--c-dim); max-width: 56ch; font-size: .98rem; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.pcard__tags li { font-family: var(--f-mono); font-size: .72rem; padding: .35rem .7rem; border-radius: 999px; background: var(--c-chip); }

/* icon animations */
.pi-spin { transform-box: fill-box; transform-origin: center; animation: spin 9s linear infinite; }
.pi-rev { animation-direction: reverse; animation-duration: 6s; }
.pi-blink { animation: piBlink 2.2s ease-in-out infinite; }
.pi-d { animation-delay: .4s; } .pi-d2 { animation-delay: .8s; } .pi-d3 { animation-delay: 1.2s; }
@keyframes piBlink { 50% { opacity: .15; } }
.pi-slide { animation: piSlide 3.6s var(--ease) infinite; }
@keyframes piSlide { 0%, 15% { transform: translateX(14px); opacity: .5; } 45%, 85% { transform: translateX(-6px); opacity: 1; } 100% { transform: translateX(14px); opacity: .5; } }
.pi-pulse { transform-box: fill-box; transform-origin: center; animation: piPulse 2.4s ease-in-out infinite; }
@keyframes piPulse { 50% { transform: scale(1.35); fill: currentColor; } }
@media (prefers-reduced-motion: reduce) { .pi-spin, .pi-blink, .pi-slide, .pi-pulse, .pillars__smile, .pillars__smile span { animation: none; } }

/* News */
.news { padding: clamp(6rem, 12vw, 10rem) var(--pad) clamp(4rem, 8vw, 6rem); }
.news__feature {
  position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.4rem; align-items: end;
  margin-bottom: 2.5rem;
}
.news__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); }
.news__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.news__feature:hover .news__img img { transform: scale(1.04); }
.news__meta { font-family: var(--f-mono); font-size: .78rem; color: var(--blue); margin-bottom: .9rem; display: block; }
.news__ftitle { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 1rem + 1.5vw, 2.3rem); letter-spacing: -.035em; line-height: 1.08; }
.news__fex { color: var(--dim); margin-top: 1rem; }
.nrow {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr) 6rem; gap: 1.5rem; align-items: center;
  padding: 1.25rem 0; border-top: 1px solid var(--line); cursor: pointer;
}
.news__list li:last-child .nrow { border-bottom: 1px solid var(--line); }
.nrow__date { font-family: var(--f-mono); font-size: .78rem; color: var(--dim); }
.nrow__title { font-weight: 500; font-size: clamp(1.02rem, .95rem + .4vw, 1.3rem); transition: color .25s, transform .45s var(--ease); }
.nrow__thumb { justify-self: end; width: 6rem; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
.nrow__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.8); transition: filter .4s; }
.nrow:hover .nrow__title { color: var(--blue); transform: translateX(.6rem); }
.nrow:hover .nrow__thumb img { filter: none; }

/* Voices */
.voices { padding: clamp(4rem, 9vw, 8rem) var(--pad); position: relative; }
.voices__track { display: grid; }
.voice { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.voice.is-on { opacity: 1; visibility: visible; }
.voice blockquote {
  margin: 0; max-width: 24ch;
  font-family: var(--f-display); font-weight: 200; font-size: clamp(1.6rem, 1rem + 2.8vw, 3.8rem); letter-spacing: -.04em; line-height: 1.1;
}
.voice--long blockquote { max-width: 32ch; font-size: clamp(1.3rem, .9rem + 1.9vw, 2.7rem); }
.voice__count { display: block; font-family: var(--f-mono); font-size: .75rem; color: var(--dim); margin-bottom: 1.4rem; }
.voice figcaption { margin-top: 2rem; font-size: .95rem; display: flex; align-items: center; gap: .9rem; }
.voice__av {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: .8rem; background: var(--ink); color: var(--bg);
}
.voice__who span { color: var(--dim); display: block; font-size: .88rem; }
.voices__nav { display: flex; gap: .5rem; margin-top: 2.5rem; }
.voices__nav button { width: 44px; height: 6px; border-radius: 6px; background: var(--line-strong); position: relative; overflow: hidden; }
.voices__nav button::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.voices__nav button.is-on::after { animation: fill 7s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

/* About + team */
.about { padding: clamp(6rem, 12vw, 10rem) var(--pad) clamp(4rem, 8vw, 6rem); }
.about__intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.about__text { display: grid; gap: 1rem; justify-items: start; }
.about__text p { color: var(--dim); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.member {
  position: relative; padding: 1.3rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 52px 1fr; gap: .9rem; align-items: center; overflow: hidden; isolation: isolate;
}
.member::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(140px 140px at var(--mx, 50%) var(--my, 50%), rgba(180, 177, 255, .45), transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.member:hover::before { opacity: 1; }
.member__av {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 500; font-size: .95rem; color: #fff;
  background: conic-gradient(from var(--a, 0deg), var(--blue), var(--lav), var(--violet), var(--blue));
}
.member__name { font-weight: 600; line-height: 1.25; }
.member__school { font-size: .85rem; color: var(--dim); }
.member__role { font-family: var(--f-mono); font-size: .72rem; color: var(--blue); }

/* About: tabs */
.tabs {
  position: relative; display: flex; gap: .25rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  padding: .35rem; margin-bottom: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .55); backdrop-filter: blur(10px);
  width: max-content; max-width: 100%;
}
.tab {
  position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.2rem; border-radius: 999px; font-family: var(--f-mono); font-size: .82rem; color: var(--dim);
  transition: color .3s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: #fff; }
.tab__count { padding: .05rem .45rem; border-radius: 999px; font-size: .68rem; background: var(--line); color: inherit; }
.tab.is-active .tab__count { background: rgba(255, 255, 255, .22); }
.tabs__ink {
  position: absolute; z-index: 0; top: .35rem; bottom: .35rem; left: 0; width: 0; border-radius: 999px;
  background: var(--ink); transition: transform .55s var(--ease), width .55s var(--ease);
}
.tabpanel[hidden] { display: none; }

/* basic info */
.info-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.info-card {
  padding: clamp(1.3rem, 2.5vw, 2rem); border-radius: 24px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(30, 30, 80, .06); display: grid; align-content: start; gap: 1.2rem;
}
.info-card--ink { background: var(--ink); color: #fff; border-color: transparent; --line: rgba(255, 255, 255, .14); --line-strong: rgba(255, 255, 255, .3); --dim: rgba(255, 255, 255, .6); }
.info-card__h { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; letter-spacing: -.03em; }
.info-card__note { font-size: .8rem; color: var(--dim); }
.kv { margin: 0; display: grid; }
.kv__row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.kv__row:last-child { border-bottom: 1px solid var(--line); }
.kv dt { font-family: var(--f-mono); font-size: .72rem; color: var(--dim); }
.kv dd { margin: 0; font-size: .95rem; }
.kv dd a { color: var(--blue); }
.kv dd a:hover { text-decoration: underline; }
.kv .chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.kv--tight .kv__row { grid-template-columns: 1fr; gap: .3rem; }
.kv__row--copy dd { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.mono { font-family: var(--f-code); font-size: .9rem; letter-spacing: .02em; overflow-wrap: anywhere; }
@media (max-width: 680px) { .mono { font-size: .82rem; } }
.info-card--ink .copy { color: #fff; }
.info-card--ink .copy:hover { border-color: var(--lav); color: var(--lav); }
.people { display: grid; gap: .7rem; }
.people li { display: flex; align-items: center; gap: .8rem; }
.people__av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--f-display); font-size: .85rem; color: #fff; background: conic-gradient(from 40deg, var(--blue), var(--lav), var(--violet), var(--blue)); }
.people strong { display: block; font-weight: 600; }
.people span:not(.people__av) { font-family: var(--f-mono); font-size: .72rem; color: var(--dim); }
.contact-list { display: grid; }
.contact-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.contact-list li span { font-family: var(--f-mono); font-size: .72rem; color: var(--dim); }
.contact-list a:hover { color: var(--blue); }

.timeline { margin-top: clamp(2rem, 4vw, 3.5rem); }
.timeline__h { font-family: var(--f-mono); font-weight: 400; font-size: .78rem; color: var(--dim); margin-bottom: 1.2rem; }
/* horizontal timeline: years on a line, click one → a bubble with that year's events */
.timeline__hint { color: var(--blue); }
.htl { position: relative; }
.htl__scroll { overflow-x: auto; scrollbar-width: none; padding: .4rem 0 .6rem; }
.htl__scroll::-webkit-scrollbar { display: none; }
.htl__line { position: relative; display: flex; justify-content: space-between; min-width: 640px; gap: .4rem; padding: 0; }
.htl__line::before { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 1.05rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--line-strong), var(--blue)); }
.htl__line > li { flex: 1; display: flex; justify-content: center; }
.htl__node { position: relative; display: grid; justify-items: center; gap: .35rem; padding: 0 .3rem; color: var(--ink); cursor: pointer; }
.htl__dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--blue); color: #fff; font-size: .9rem;
  transition: transform .35s var(--ease), background .25s, box-shadow .25s;
}
.htl__node:hover .htl__dot { transform: scale(1.15); box-shadow: 0 0 0 6px color-mix(in srgb, var(--blue) 15%, transparent); }
.htl__node.is-active .htl__dot { background: var(--blue); transform: scale(1.15); box-shadow: 0 0 0 7px color-mix(in srgb, var(--blue) 18%, transparent); }
.htl__node--star .htl__dot { width: 2.6rem; height: 2.6rem; margin-top: -.25rem; background: #0e0e14; border-color: #0e0e14; color: #ffd64d; font-size: 1.1rem; box-shadow: 0 8px 20px rgba(14, 14, 20, .25); }
.htl__node--star.is-active .htl__dot { background: var(--blue); border-color: var(--blue); }
.htl__y { font-family: var(--f-display); font-weight: 400; font-size: clamp(1rem, .8rem + .6vw, 1.35rem); letter-spacing: -.03em; line-height: 1; transition: color .2s; }
.htl__node:hover .htl__y, .htl__node.is-active .htl__y { color: var(--blue); }
.htl__marks { display: flex; gap: 3px; min-height: 6px; }
.htl__marks i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.htl__marks i.tl__tag--projekt { background: #2b2bff; } .htl__marks i.tl__tag--radionice { background: #6a4dff; }
.htl__marks i.tl__tag--edukacija { background: #0bb36b; } .htl__marks i.tl__tag--nagrada { background: #f2b600; } .htl__marks i.tl__tag--udruga { background: #8a8a9a; }
.htl__badge { font-family: var(--f-mono); font-size: .58rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: .15rem .45rem; border-radius: 999px; background: #0e0e14; color: #ffd64d; white-space: nowrap; }

/* the bubble */
.htl__pop {
  --ax: 50%;
  position: absolute; top: calc(100% + .4rem); left: 0; z-index: 30; width: min(640px, 100%);
  padding: 1.1rem 1.1rem 1.2rem; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 30px 70px -20px rgba(30, 30, 90, .35);
  opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: var(--ax) 0; transition: opacity .25s, transform .35s var(--ease);
  max-height: min(70vh, 640px); overflow-y: auto; overscroll-behavior: contain;
}
.htl__pop.is-open { opacity: 1; transform: none; }
.htl__arrow { position: absolute; top: -8px; left: calc(var(--ax) - 8px); width: 16px; height: 16px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.htl__close { position: absolute; top: .55rem; right: .6rem; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; line-height: 1; color: var(--dim); }
.htl__close:hover { color: var(--blue); border-color: var(--blue); }
.htl__year { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: -.04em; margin: 0 0 .7rem; color: var(--ink); }
.htl__items { display: grid; gap: .55rem; }
.tl__item { display: flex; }
.tl__link {
  position: relative; flex: 1; display: grid; align-content: start; gap: .25rem; padding: .8rem 2.2rem .85rem .95rem;
  border-radius: 14px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); transition: border-color .25s, transform .35s var(--ease);
}
.tl__link > * { margin: 0; }
a.tl__link:hover { border-color: var(--blue); transform: translateX(3px); }
.tl__go { position: absolute; top: .75rem; right: .85rem; font-family: var(--f-mono); color: var(--dim); }
a.tl__link:hover .tl__go { color: var(--blue); }
.tl__tag { justify-self: start; font-family: var(--f-mono); font-weight: 600; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; padding: .18rem .5rem; border-radius: 999px; }
.tl__tag--projekt { background: #e4e4ff; color: #2b2bff; }
.tl__tag--radionice { background: #efeaff; color: #6a4dff; }
.tl__tag--edukacija { background: #dcf7ea; color: #0b7a4b; }
.tl__tag--nagrada { background: #fff2c2; color: #8a6200; }
.tl__tag--udruga { background: #ececf2; color: #3a3a48; }
.tl__title { margin: 0; font-family: var(--f-body); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.tl__text { margin: 0; font-size: .84rem; color: var(--dim); line-height: 1.5; }
/* the big project inside the bubble */
.tl__item--big { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); border-radius: 16px; overflow: hidden; background: #0e0e14; color: #f3f3f8; }
.tl__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl__item--big .tl__body { display: grid; align-content: center; gap: .4rem; padding: 1rem 1.1rem; }
.tl__item--big .tl__title { font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; letter-spacing: -.03em; color: #fff; }
.tl__item--big .tl__text { color: #b9b7d0; font-size: .82rem; }
.tl__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: .4rem 0 .2rem; }
.tl__stats div { padding: .5rem .55rem; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.tl__stats dt { font-family: var(--f-display); font-size: .95rem; letter-spacing: -.03em; color: #fff; }
.tl__stats dd { margin: .1rem 0 0; font-size: .66rem; color: #a2a2b8; }
.tl__more { justify-self: start; margin-top: .2rem; background: #fff !important; color: #0e0e14 !important; border-color: #fff !important; padding: .55rem 1rem; font-size: .78rem; }
.tl__more:hover { background: #b4b1ff !important; border-color: #b4b1ff !important; }
@media (max-width: 760px) {
  .htl__line { min-width: 560px; }
  .htl__badge { display: none; }
  .htl__pop { width: 100%; max-height: 65vh; }
  .tl__item--big { grid-template-columns: 1fr; }
  .tl__img { display: none; }
}
/* goals */
.goals__lead { display: grid; gap: .8rem; max-width: 62rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.goals__kicker { font-family: var(--f-mono); font-size: .78rem; color: var(--blue); }
.goals__activity { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.3rem); line-height: 1.2; letter-spacing: -.035em; }
.goals__area { color: var(--dim); }
.goals__h { font-family: var(--f-mono); font-weight: 400; font-size: .78rem; color: var(--dim); margin-bottom: 1rem; }
.goals__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.goal {
  padding: 1.4rem; border-radius: 22px; background: #fff; border: 1px solid var(--line); display: grid; align-content: start; gap: .7rem;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.goal:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(43, 43, 255, .12); border-color: rgba(43, 43, 255, .3); }
.goal__ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #efeeff; }
.goal__ic svg { width: 24px; height: 24px; fill: none; stroke: var(--violet); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.goal h4 { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.25; }
.goal p { font-size: .88rem; color: var(--dim); }
.methods { margin-top: 1rem; border-radius: 22px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.methods summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem;
  font-weight: 600;
}
.methods summary::-webkit-details-marker { display: none; }
.methods__n { font-family: var(--f-mono); font-size: .72rem; font-weight: 400; color: var(--dim); }
.methods__plus { margin-left: auto; position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; transition: transform .4s var(--ease), background .3s; }
.methods__plus::before, .methods__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); translate: -50% -50%; }
.methods__plus::after { rotate: 90deg; transition: rotate .4s var(--ease); }
.methods[open] .methods__plus { background: var(--ink); }
.methods[open] .methods__plus::before, .methods[open] .methods__plus::after { background: #fff; }
.methods[open] .methods__plus::after { rotate: 0deg; }
.methods__list { columns: 2; column-gap: 2.5rem; padding: 0 1.4rem 1.4rem; }
.methods__list li { break-inside: avoid; position: relative; padding: .55rem 0 .55rem 1.3rem; border-top: 1px solid var(--line); font-size: .92rem; color: #3a3a48; }
.methods__list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }
.goals__src { margin-top: 1.2rem; font-size: .85rem; color: var(--dim); }
.goals__src a { color: var(--blue); border-bottom: 1px solid currentColor; }

/* documents */
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.doc {
  display: grid; grid-template-rows: auto 1fr auto; gap: 1.2rem; padding: 1.5rem; border-radius: 24px;
  background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.doc:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(30, 30, 80, .12); }
.doc__file {
  position: relative; width: 58px; height: 72px; border-radius: 8px 18px 8px 8px;
  background: linear-gradient(160deg, #ff6b5e, #e3392c); display: grid; place-items: end center; padding-bottom: 10px;
  box-shadow: 0 12px 24px rgba(227, 57, 44, .25);
}
.doc__file::before { content: ""; position: absolute; top: 0; right: 0; width: 18px; height: 18px; border-radius: 0 18px 0 6px; background: rgba(255, 255, 255, .45); }
.doc__file span { font-family: var(--f-mono); font-size: .7rem; font-weight: 500; color: #fff; letter-spacing: .06em; }
.doc__body { display: grid; align-content: start; gap: .4rem; }
.doc__type { font-family: var(--f-mono); font-size: .72rem; color: var(--blue); }
.doc__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; letter-spacing: -.03em; line-height: 1.15; }
.doc__desc { font-size: .9rem; color: var(--dim); }
.doc__size { font-family: var(--f-mono); font-size: .72rem; color: var(--dim); }
.doc__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.doc__actions .btn { min-height: 42px; padding: .6rem 1.1rem; }
.docs__note { margin-top: 1.2rem; font-size: .85rem; color: var(--dim); }
.docs__note a { color: var(--blue); }

@media (max-width: 1100px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-card--wide { grid-column: span 2; }
  .goals__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .docs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .tabs { border-radius: 18px; }
  .info-grid, .docs { grid-template-columns: 1fr; }
  .info-card--wide { grid-column: auto; }
  .kv__row { grid-template-columns: 1fr; gap: .2rem; }
  .goals__grid { grid-template-columns: 1fr; }
  .methods__list { columns: 1; }

}

/* Press */
.press { padding: 0 var(--pad) clamp(5rem, 10vw, 8rem); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3rem; }
.press__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.6rem, 1rem + 1.6vw, 2.6rem); letter-spacing: -.04em; }
.press__item a { display: grid; grid-template-columns: 10rem 1fr 2rem; gap: 1.2rem; align-items: baseline; padding: 1rem 0; border-top: 1px solid var(--line); transition: color .25s; }
.press__item:last-child a { border-bottom: 1px solid var(--line); }
.press__outlet { font-family: var(--f-mono); font-size: .78rem; color: var(--blue); }
.press__item a:hover { color: var(--blue); }
.press__item a::after { content: "↗"; justify-self: end; font-family: var(--f-mono); color: var(--dim); }

/* Collab */
.collab { padding: clamp(6rem, 12vw, 10rem) var(--pad); }
.collab__title { margin-bottom: clamp(3rem, 6vw, 5rem); }
.collab__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.collab__card { display: grid; align-content: start; gap: 1.1rem; padding: 0 2rem 0 0; }
.collab__card + .collab__card { padding-left: 2rem; border-left: 1px solid var(--line); }
.collab__card h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; letter-spacing: -.03em; }
.collab__card p { color: var(--dim); }
.collab__card .btn { justify-self: start; margin-top: .4rem; }
.collab__iban { font-family: var(--f-mono); font-size: .82rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.collab__iban span { color: var(--ink); }
.copy { padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--f-mono); font-size: .72rem; }
.copy:hover { border-color: var(--blue); color: var(--blue); }

/* Contact */
.contact {
  margin: 0 var(--pad); padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: calc(var(--radius) * 1.6); border: 1px solid var(--line);
  background: linear-gradient(150deg, #ffffff, #f0efff);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem);
}
.contact__info { display: grid; gap: 1.5rem; align-content: start; }
.contact__info > p { color: var(--dim); max-width: 38ch; }
.contact__dl { display: grid; gap: 1.1rem; margin: .5rem 0 0; }
.contact__dl dt { font-family: var(--f-mono); font-size: .75rem; color: var(--dim); }
.contact__dl dd { margin: .2rem 0 0; font-size: 1.05rem; }
.contact__dl a:hover { color: var(--blue); }
.form { display: grid; gap: 1.3rem; align-content: start; }
.field { display: grid; gap: .35rem; }
.field span { font-family: var(--f-mono); font-size: .75rem; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong); padding: .6rem 0; border-radius: 0;
  transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--signal); }
.form .btn { justify-self: start; }
.form__note { font-size: .82rem; color: var(--dim); }

/* Footer */
.footer { padding: clamp(5rem, 10vw, 8rem) var(--pad) 2rem; overflow: hidden; }
.footer__big {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(5rem, 24vw, 26rem); line-height: .8; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(43, 43, 255, .35);
  margin-bottom: 3rem; white-space: nowrap;
}
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.footer h3 { font-family: var(--f-mono); font-weight: 400; font-size: .75rem; color: var(--dim); margin-bottom: .8rem; }
.footer__grid > div:first-child h3 { font-family: var(--f-body); font-weight: 600; font-size: 1rem; color: var(--ink); }
.footer p, .footer li { font-size: .9rem; color: var(--dim); }
.footer li + li { margin-top: .35rem; }
.footer a:hover { color: var(--blue); }
.footer__members { margin-top: 2.6rem; font-size: .88rem; }
/* bottom line: copyright on the left, credits + privacy on the right; right padding leaves room for the round sticker */
.footer__legal {
  margin-top: 1.2rem; padding: 1.2rem clamp(90px, 9vw, 130px) 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .9rem 2.5rem; align-items: start; color: var(--dim);
}
.footer__copy { display: grid; gap: .25rem; }
.footer .footer__copy p { margin: 0; max-width: 62ch; font-size: .78rem; line-height: 1.55; }
.footer__meta { list-style: none; margin: 0; padding: 0; display: grid; justify-items: end; gap: .45rem; }
.footer .footer__meta li { margin: 0; font-size: .78rem; color: var(--dim); }
.footer__made {
  display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .8rem .38rem .55rem;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .55);
}
.footer__spark {
  display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; font-size: .7rem; color: #fff;
  background: linear-gradient(135deg, #2b2bff, #6a4dff 55%, #ff6b8b); flex: none;
}
.footer__legal strong, .footer__members strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .footer__legal { grid-template-columns: 1fr; padding-right: 0; padding-bottom: 5.5rem; }   /* the sticker sits below on phones */
  .footer__meta { justify-items: start; }
}

/* ==========================================================================
   Detail panel
   ========================================================================== */
.panel { position: fixed; inset: 0; z-index: 120; }
.panel[hidden] { display: none; }
.panel__bg { position: absolute; inset: 0; background: rgba(230, 230, 242, .55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s var(--ease); }
.panel__sheet {
  position: absolute; top: .6rem; right: .6rem; bottom: .6rem;
  width: min(960px, calc(100% - 1.2rem)); overflow-y: auto; overscroll-behavior: contain;
  border-radius: calc(var(--radius) * 1.2); border: 1px solid var(--line);
  background: #fff; box-shadow: 0 40px 120px rgba(30, 30, 80, .2);
  transform: translateX(105%); transition: transform .7s var(--ease);
}
.panel.is-open .panel__bg { opacity: 1; }
.panel.is-open .panel__sheet { transform: none; }
.panel__close { position: sticky; top: 1rem; float: right; margin: 1rem 1rem 0 0; z-index: 3; }
.panel__content { padding: 0 clamp(1.2rem, 4vw, 3.5rem) 4rem; }
.d-hero { margin: 0 calc(-1 * clamp(1.2rem, 4vw, 3.5rem)); aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--radius) * 1.2) calc(var(--radius) * 1.2) 0 0; background: var(--surface); }
.d-hero img { width: 100%; height: 100%; object-fit: cover; }
.d-hero--tall { aspect-ratio: 4 / 3; }
.d-hero--tall img { object-fit: contain; }
.d-meta { margin-top: 2rem; font-family: var(--f-mono); font-size: .78rem; color: var(--blue); display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.d-title { margin-top: .8rem; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 1rem + 3vw, 3.4rem); letter-spacing: -.045em; line-height: 1.02; max-width: 20ch; }
.d-lead { margin-top: 1.2rem; font-size: 1.2rem; color: var(--ink); max-width: 52ch; }
.d-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; }
.chip { padding: .35rem .75rem; border-radius: 999px; background: #efeeff; color: var(--violet); font-family: var(--f-mono); font-size: .75rem; }
.d-facts { margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); border-top: 1px solid var(--line); }
.d-facts div { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.d-facts dt { font-family: var(--f-mono); font-size: .72rem; color: var(--dim); }
.d-facts dd { margin: .2rem 0 0; font-weight: 600; }
.prose { margin-top: 2.2rem; max-width: 66ch; color: #3a3a48; }
.prose p + p, .prose p + ul, .prose ul + p, .prose h3 + p, .prose h3 + ul { margin-top: 1rem; }
.prose h3, .prose h2, .prose h4 { margin-top: 2.2rem; font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; letter-spacing: -.02em; color: var(--ink); }
.prose ul { display: grid; gap: .5rem; }
.prose li { position: relative; padding-left: 1.4rem; }
.prose li::before { content: ""; position: absolute; left: 0; top: .7em; width: .6rem; height: 1px; background: var(--blue); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--blue); border-bottom: 1px solid currentColor; word-break: break-word; }
.d-gallery { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .6rem; }
.d-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.d-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.d-pager { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; font-family: var(--f-mono); font-size: .8rem; }
.d-pager a { max-width: 45%; color: var(--dim); }
.d-pager a:hover { color: var(--blue); }
.d-pager a span { display: block; color: var(--ink); font-family: var(--f-body); font-size: .95rem; margin-top: .3rem; }

/* ==========================================================================
   Section themes: elements that keep their own light look whatever the page colour
   ========================================================================== */
.pill, .menu-btn, .mobile-menu, .panel, .lightbox, .loader, .bee, .contact, .work__switch, .bot__bubble {
  --bg: #18123f; --ink: #f6f3ff; --dim: rgba(236, 230, 255, .72);
  --line: rgba(255, 255, 255, .13); --line-strong: rgba(255, 255, 255, .32);
  --blue: #b3bcff; --on-accent: #120d30;
  color: var(--ink);
}

/* Left scroll rail */
.rail {
  position: fixed; left: .7rem; top: 50%; translate: 0 -50%; z-index: 95;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; color: var(--ink);
  pointer-events: none;
}
.rail__label, .rail__sec { writing-mode: vertical-rl; rotate: 180deg; white-space: nowrap; }
.rail__label { color: var(--dim); animation: railHint 2.4s ease-in-out infinite; }
@keyframes railHint { 50% { transform: translateY(6px); } }
.rail__track { position: relative; width: 1px; height: 22vh; background: var(--line-strong); overflow: hidden; }
.rail__fill { position: absolute; inset: 0; background: var(--blue); transform-origin: top; transform: scaleY(0); }
.rail__pct { font-variant-numeric: tabular-nums; color: var(--blue); }
.rail__sec { min-height: 6rem; transition: opacity .3s; }
@media (max-width: 860px) { .rail { display: none; } }

/* ==========================================================================
   Modern companion robot holding the hero video in its visor
   ========================================================================== */
.bot {
  position: relative; display: grid; justify-items: center;
  width: clamp(220px, 19vw, 300px); padding-top: 22px;
  --shell: radial-gradient(120% 95% at 30% 12%, #ffffff 0%, #f1f0f8 40%, #cfcce2 100%);
  --rim: 0 0 0 1px rgba(255, 255, 255, .7);
}
.bot__head {
  position: relative; z-index: 2; width: 100%; aspect-ratio: 1.42;
  border-radius: 44% 44% 40% 40% / 50% 50% 44% 44%;
  background: var(--shell);
  box-shadow: inset -10px -14px 26px rgba(70, 60, 140, .2), inset 8px 10px 16px rgba(255, 255, 255, .95), 0 26px 50px rgba(40, 30, 120, .22);
  padding: 10% 9% 12%;
  animation: botFloat 5s ease-in-out infinite;
  transition: rotate .6s var(--ease);
}
@keyframes botFloat { 50% { transform: translateY(-9px); } }
.bot__visor {
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden;
  border-radius: 40% / 48%; background: #05050a;
  box-shadow: inset 0 6px 22px rgba(0, 0, 0, .85), 0 0 0 3px rgba(106, 77, 255, .28), 0 0 26px rgba(106, 77, 255, .35);
  animation: visor 3.2s ease-in-out infinite;
}
@keyframes visor { 50% { box-shadow: inset 0 6px 22px rgba(0, 0, 0, .85), 0 0 0 3px rgba(43, 43, 255, .45), 0 0 36px rgba(43, 43, 255, .5); } }
.bot__visor video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) contrast(1.05); }
.bot__glass {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(158deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, .06) 30%, transparent 42%),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55));
}
.bot__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; padding-left: 3px;
  background: rgba(255, 255, 255, .2); color: #fff; font-size: .78rem;
  backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .45);
  transition: transform .4s var(--ease), background .3s;
}
.bot__ear {
  position: absolute; top: 34%; width: 15%; aspect-ratio: 1; border-radius: 50%;
  background: var(--shell); box-shadow: inset -3px -4px 8px rgba(70, 60, 140, .25), 0 6px 14px rgba(40, 30, 120, .15);
}
.bot__ear--l { left: -7%; } .bot__ear--r { right: -7%; }
.bot__ear::after {
  content: ""; position: absolute; inset: 26%; border-radius: 50%;
  background: radial-gradient(circle, #8b80ff, #2b2bff); box-shadow: 0 0 12px #2b2bff;
  animation: pulse 1.8s infinite;
}
.bot__ear--r::after { animation-delay: .9s; }
.bot__antenna {
  position: absolute; left: 50%; top: -14px; translate: -50% 0; width: 6px; height: 16px; border-radius: 4px;
  background: linear-gradient(#e5e3f2, #bdb9d6);
}
.bot__antenna::after {
  content: ""; position: absolute; top: -9px; left: 50%; translate: -50% 0; width: 12px; height: 12px; border-radius: 50%;
  background: #ffd64d; box-shadow: 0 0 14px #ffd64d; animation: pulse 1.4s infinite;
}
.bot__body {
  position: relative; z-index: 1; width: 44%; aspect-ratio: 1.1; margin-top: 6%;
  border-radius: 46% 46% 50% 50% / 38% 38% 62% 62%;
  background: var(--shell);
  box-shadow: inset -8px -10px 20px rgba(70, 60, 140, .2), inset 6px 6px 12px rgba(255, 255, 255, .9), 0 18px 30px rgba(40, 30, 120, .18);
  display: grid; place-items: center; align-content: center; gap: 4px;
  animation: botFloat 5s ease-in-out infinite .25s;
}
.bot__core {
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, #2b2bff, #b4b1ff, #6a4dff, #2b2bff);
  box-shadow: 0 0 18px rgba(43, 43, 255, .55), inset 0 0 0 4px rgba(255, 255, 255, .7);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.bot__label { font-family: var(--f-mono); font-size: .55rem; letter-spacing: .14em; color: #6a6a7c; }
.bot__hand {
  position: absolute; bottom: 13%; width: 12%; aspect-ratio: .8; border-radius: 50% 50% 46% 46%;
  background: var(--shell); box-shadow: inset -3px -5px 8px rgba(70, 60, 140, .22), 0 10px 16px rgba(40, 30, 120, .16);
  animation: handL 5s ease-in-out infinite;
}
.bot__hand--l { left: 19%; }
.bot__hand--r { right: 19%; animation-name: handR; transform-origin: 30% 90%; }
@keyframes handL { 50% { transform: translateY(-12px); } }
@keyframes handR { 0%, 40%, 100% { transform: translateY(-4px) rotate(0); } 55% { transform: translate(6px, -30px) rotate(-25deg); } 65% { transform: translate(6px, -30px) rotate(20deg); } 75% { transform: translate(6px, -30px) rotate(-20deg); } }
.bot__shadow {
  width: 46%; height: 12px; margin-top: 10px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(30, 20, 90, .28), transparent);
  animation: shadow 5s ease-in-out infinite;
}
@keyframes shadow { 50% { transform: scale(.82); opacity: .6; } }

.bot__bubble {
  position: absolute; top: -6px; right: -16%; z-index: 3;
  padding: .45rem .8rem; border-radius: 14px 14px 14px 4px; background: #fff; border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: .7rem; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(30, 30, 80, .12);
  animation: bubble 4.5s ease-in-out infinite;
}
@keyframes bubble { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
.bot:hover .bot__head { rotate: -5deg; }
.bot:hover .bot__play { transform: scale(1.15); background: #2b2bff; border-color: #2b2bff; }
.bot:hover .bot__hand--r { animation-duration: 1.6s; }

/* Ghost robot — the hero robot's "spirit" that floats behind every section */
.ghost {
  position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none;
  width: clamp(140px, 14vw, 230px); opacity: 0; color: var(--blue);
  will-change: transform, opacity; transform-origin: 50% 50%;
}
.ghost__in { position: relative; display: grid; justify-items: center; padding-top: 18px; animation: ghostBob 4.6s ease-in-out infinite; }
@keyframes ghostBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
.ghost__head, .ghost__body, .ghost__ear, .ghost__hand {
  background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(236, 234, 255, .55));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 0 40px color-mix(in srgb, currentColor 35%, transparent);
}
.ghost__head { position: relative; z-index: 2; width: 100%; aspect-ratio: 1.42; border-radius: 44% 44% 40% 40% / 50% 50% 44% 44%; padding: 10% 9% 12%; }
.ghost__visor {
  position: relative; display: flex; justify-content: center; align-items: center; gap: 22%;
  width: 100%; height: 100%; border-radius: 40% / 48%; background: rgba(8, 8, 18, .88);
  box-shadow: inset 0 6px 18px rgba(0, 0, 0, .8), 0 0 0 2px color-mix(in srgb, currentColor 45%, transparent);
}
.ghost__eyes { display: flex; gap: 2.6em; font-size: clamp(8px, .9vw, 14px); margin-top: -8%; transition: transform .4s; }
.ghost__eye { flex: none; width: 1.3em; height: 1.6em; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; animation: blink 3.8s infinite; }
.ghost__mouth { position: absolute; left: 50%; bottom: 24%; translate: -50% 0; width: 16%; height: 8%; border: 2px solid currentColor; border-top: 0; border-radius: 0 0 40px 40px; opacity: .85; }
.ghost__ear { position: absolute; top: 36%; width: 14%; aspect-ratio: 1; border-radius: 50%; }
.ghost__ear--l { left: -6%; } .ghost__ear--r { right: -6%; }
.ghost__antenna { position: absolute; left: 50%; top: -12px; translate: -50% 0; width: 5px; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .8); }
.ghost__antenna::after { content: ""; position: absolute; top: -8px; left: 50%; translate: -50% 0; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; animation: pulse 1.4s infinite; }
.ghost__body {
  position: relative; width: 46%; aspect-ratio: .9; margin-top: 5%;
  border-radius: 46% 46% 0 0 / 40% 40% 0 0;
  -webkit-mask: linear-gradient(#000 45%, transparent 98%); mask: linear-gradient(#000 45%, transparent 98%);
}
.ghost__body::before { /* wavy ghost hem */
  content: ""; position: absolute; left: 0; right: 0; bottom: 4%; height: 18%;
  background: radial-gradient(circle at 12.5% 100%, transparent 58%, rgba(255, 255, 255, .5) 60%) 0 0 / 25% 100% repeat-x;
  animation: hem 1.6s linear infinite;
}
@keyframes hem { to { background-position: 25% 0; } }
.ghost__core { position: absolute; left: 50%; top: 24%; translate: -50% 0; width: 30%; aspect-ratio: 1; border-radius: 50%; background: currentColor; opacity: .75; box-shadow: 0 0 18px currentColor; animation: pulse 2s infinite; }
.ghost__hand { position: absolute; top: 62%; width: 11%; aspect-ratio: .8; border-radius: 50%; }
.ghost__hand--l { left: 17%; animation: handL 4s ease-in-out infinite; }
.ghost__hand--r { right: 17%; transform-origin: 30% 90%; animation: handR 5s ease-in-out infinite; }
@media (max-width: 860px) { .ghost { width: 110px; } }
@media (prefers-reduced-motion: reduce) { .ghost__in, .ghost__body::before, .ghost__hand { animation: none; } }

/* ==========================================================================
   Marquee bands
   ========================================================================== */
.marquee { position: relative; overflow: hidden; padding: clamp(3.2rem, 7vw, 6rem) 0; }
.mq-band { width: 116vw; margin-left: -8vw; }
.mq-band--a {
  position: relative; z-index: 2; rotate: -2.4deg; padding: clamp(.9rem, 1.6vw, 1.5rem) 0;
  background: var(--blue); color: var(--on-accent);
  box-shadow: 0 24px 60px color-mix(in srgb, var(--blue) 35%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.mq-band--b {
  position: absolute; left: 0; top: 50%; z-index: 1; translate: 0 -50%; rotate: 5deg; padding: .75rem 0;
  background: var(--ink); color: var(--bg);
}
.marquee--rev .mq-band--a { rotate: 2.4deg; }
.marquee--rev .mq-band--b { rotate: -5deg; }
.marquee__track {
  display: flex; width: max-content; align-items: center; gap: clamp(1.2rem, 2.6vw, 2.6rem);
  font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 6.4vw, 7rem);
  letter-spacing: -.045em; line-height: 1; white-space: nowrap; will-change: transform;
}
.mq { display: inline-flex; align-items: center; gap: .3em; }
.mq--o { color: transparent; -webkit-text-stroke: 1.5px var(--on-accent); font-weight: 300; }
.mq__ic {
  flex: none; display: grid; place-items: center; width: .82em; height: .82em; border-radius: 30%;
  background: var(--on-accent); color: var(--blue); rotate: -6deg; transition: rotate .4s var(--ease);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.mq--o .mq__ic { background: transparent; color: var(--on-accent); box-shadow: inset 0 0 0 1.5px var(--on-accent); rotate: 6deg; }
.mq__ic svg { width: 58%; height: 58%; }
.mq__star { display: inline-grid; width: .42em; height: .42em; color: #ffd64d; animation: spin 7s linear infinite; }
.mq__star svg { width: 100%; height: 100%; }
.mq-small { font-family: var(--f-mono); font-weight: 500; font-size: clamp(.68rem, .55rem + .3vw, .85rem); letter-spacing: .22em; gap: 1.3rem; }
.mq-small i { font-style: normal; color: var(--blue); font-size: .7em; }
@media (prefers-reduced-motion: reduce) { .mq__star { animation: none; } }

/* Animated text helpers */
.hw { display: inline-block; white-space: nowrap; }
.hc { display: inline-block; will-change: transform; }
.voice .pw { display: inline-block; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .stats__list { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .proj { grid-template-columns: 5rem minmax(0, 1fr) 3rem; }
  .proj__sum { display: none; }
  .hero__bottom .seek { visibility: hidden; }
}

@media (max-width: 860px) {
  .pill { display: none; }
  .menu-btn { display: block; }
  .brand__sub { display: none; }

  .hero { padding-top: 6.5rem; }
  .hero__title { margin: 1.5rem 0 auto; align-self: start; }
  .hero__bottom { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero__bottom .seek { display: block; visibility: visible; order: 3; }
  .hero__aside { justify-items: start; text-align: left; order: 2; }
  .clip { order: 1; justify-self: start; width: min(62vw, 260px); }
  /* phones: the video robot smaller and in the middle */
  .clip.bot { justify-self: center; width: min(50vw, 200px); padding-top: 16px; }

  .stats__list { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 1.4rem 1rem 1.4rem 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat:last-child { grid-column: span 2; }

  .work { height: 440vh; }
  .reel { inset: 9.6rem 9vw 1rem; border-radius: 30px; }
  .work__top { left: 5vw; right: 5vw; top: 5rem; display: grid; gap: .5rem; }
  .work__filter ul { justify-content: flex-start; }
  .card__tag { display: none; }
  .reel::after { box-shadow: inset 0 0 36px 20px color-mix(in srgb, var(--bg) 70%, #ffffff); }
  .card { width: 70vw; height: min(42vh, 340px); border-radius: 22px; top: 46%; }
  .work__title { font-size: 1.5rem; }
  .work__eyebrow { font-size: .64rem; max-width: 52vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .reel__name { left: calc(4.5vw - .55em); top: calc(50% + 4.3rem); font-size: .74rem; letter-spacing: .04em; }
  .reel__rail { right: calc(4.5vw - 1rem); top: calc(50% + 4.3rem); }
  .reel__line { height: 16vh; }
  .work__caption { bottom: 1.8rem; gap: .6rem; padding-left: .9rem; left: 5vw; translate: 0 0; }   /* leave the corner to the sticker */
  .work__ages { font-size: .62rem; letter-spacing: .04em; }
  .work__caption .btn { padding: .6rem 1rem; font-size: .78rem; }
  .work__filter .seek__q { display: none; }
  .work__filter ul { flex-wrap: nowrap; max-width: none; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .work__filter button { white-space: nowrap; }
  .work__switch { display: none; }
  .pillars, .press { grid-template-columns: 1fr; }
  .steps__pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; align-content: center; gap: 1.2rem; padding: 5rem var(--pad) 1.5rem; }
  .steps__head { gap: .6rem; }
  .steps__head .h-xl { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .steps__head p:not(.steps__hint) { font-size: .86rem; }
  .steps__hint { display: none; }
  .monitor { width: min(100%, 360px, 48vh); }
  .monitor__kbd { display: none; }
  .scr { gap: 2%; padding: 4% 5% 5%; }
  .scr__txt p { font-size: .66rem; line-height: 1.35; }

  .bee { grid-template-columns: 1fr; margin: 0 .6rem; }
  .section-head, .about__intro, .news__feature { grid-template-columns: 1fr; }
  .proj { grid-template-columns: 1fr 2.6rem; gap: .4rem 1rem; }
  .proj__year, .proj__title { grid-column: 1; }
  .proj__go { grid-column: 2; grid-row: 1 / span 2; }
  .projects__preview { display: none; }
  .nrow { grid-template-columns: 1fr 5rem; gap: .3rem 1rem; }
  .nrow__date, .nrow__title { grid-column: 1; }
  .nrow__thumb { grid-column: 2; grid-row: 1 / span 2; width: 5rem; }
  .pillars__intro { position: static; }
  .pillars__smile { display: none; }
  .pcard { top: calc(12vh + var(--i) * 1rem); min-height: 0; border-radius: 22px; }
  .pcard__punch { font-size: 1.5rem; }
  .press__item a { grid-template-columns: 1fr 1.5rem; gap: .2rem 1rem; }
  .press__outlet { grid-column: 1; }
  .press__item a::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .collab__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .collab__card, .collab__card + .collab__card { padding: 2rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .contact { grid-template-columns: 1fr; margin: 0 .6rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .panel__sheet { top: .4rem; right: .4rem; bottom: .4rem; width: calc(100% - .8rem); }
}

@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .bee__pad button small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { animation: none; }
}

/* ==========================================================================
   Standalone pages (radionice/…, projekti/…, novosti/…, privatnost/, 404) —
   generated by .claude/izradi-stranice.js, same look as the side panel
   ========================================================================== */
body.page {
  min-height: 100vh;
  background: radial-gradient(60% 40% at 0% 0%, #ebe9ff, transparent 70%), radial-gradient(50% 40% at 100% 0%, #e3edff, transparent 70%), var(--bg);
}
.page__bar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem var(--pad); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.page__main { padding: clamp(1.5rem, 4vw, 3rem) var(--pad) 2.5rem; }
.page__sheet {
  max-width: 920px; margin: 0 auto; overflow: hidden; background: #fff; border-radius: calc(var(--radius) * 1.2);
  padding: 0 clamp(1.2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3rem); box-shadow: 0 30px 80px -30px rgba(43, 43, 255, .25), 0 0 0 1px var(--line);
}
.page__sheet > .d-meta:first-child { margin-top: clamp(1.8rem, 4vw, 3rem); }
.page__foot { max-width: 920px; margin: 0 auto; padding: 0 var(--pad) 3rem; display: grid; gap: .4rem; text-align: center; font-size: .85rem; color: var(--dim); }
.page__foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) { .page__bar .brand__sub { display: none; } .page__bar .btn { padding: .6rem .9rem; font-size: .8rem; } }
/* ==========================================================================
   Phones only: Projects, News and Media as swipeable carousels (like the testimonials)
   ========================================================================== */
.proj__img, .mnav, .news__list > li.only-m { display: none; }
@media (max-width: 760px) {
  .mcar {
    display: flex !important; gap: .8rem; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--pad)); padding: .3rem var(--pad) .8rem;
  }
  .mcar::-webkit-scrollbar { display: none; }
  .mcar > li { flex: 0 0 84%; scroll-snap-align: center; display: flex; }
  .news__list.mcar > li.only-m { display: flex; }      /* newest post joins the carousel… */
  .news__feature { display: none; }                    /* …so the big feature card is not needed on phones */
  .mcar > li > a { flex: 1; }

  /* shared card look */
  .projects__list.mcar .proj, .news__list.mcar .nrow, .press__list.mcar .press__item a {
    border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden;
    background: color-mix(in srgb, var(--ink) 4%, transparent);
  }

  /* project card: photo, year, title (+ Aktualno), short summary */
  .projects__list.mcar .proj { display: flex; flex-direction: column; gap: .45rem; padding: 0 0 1.1rem; border-top: 1px solid var(--line-strong); }
  .projects__list.mcar li:last-child .proj { border-bottom: 1px solid var(--line-strong); }
  .projects__list.mcar .proj__img { display: block; aspect-ratio: 16 / 10; margin-bottom: .35rem; background: rgba(0, 0, 0, .15); }
  .projects__list.mcar .proj__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .projects__list.mcar .proj__year, .projects__list.mcar .proj__title, .projects__list.mcar .proj__sum { padding: 0 1.1rem; }
  .projects__list.mcar .proj__title { font-size: 1.35rem; line-height: 1.12; }
  .projects__list.mcar .proj__live { margin: .4rem 0 0; display: inline-flex; }
  .projects__list.mcar .proj__sum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .86rem; }
  .projects__list.mcar .proj__go { display: none; }
  .projects__list.mcar .proj:hover .proj__title { transform: none; }

  /* news card: photo on top, date, title */
  .news__list.mcar .nrow { display: flex; flex-direction: column; gap: .4rem; padding: 0 0 1.1rem; border-top: 1px solid var(--line-strong); }
  .news__list.mcar li:last-child .nrow { border-bottom: 1px solid var(--line-strong); }
  .news__list.mcar .nrow__thumb { order: -1; width: 100%; aspect-ratio: 16 / 10; border-radius: 0; margin-bottom: .4rem; }
  .news__list.mcar .nrow__thumb img { filter: none; }
  .news__list.mcar .nrow__date, .news__list.mcar .nrow__title { padding: 0 1.1rem; }
  .news__list.mcar .nrow:hover .nrow__title { transform: none; }

  /* media card: outlet + headline */
  .press__list.mcar .press__item a {
    display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
    min-height: 10.5rem; height: 100%; padding: 1.1rem 1.2rem; border-top: 1px solid var(--line-strong);
  }
  .press__list.mcar .press__item:last-child a { border-bottom: 1px solid var(--line-strong); }
  .press__list.mcar .press__outlet { font-size: .8rem; }
  .press__list.mcar .press__item a > span:last-child { font-size: 1.05rem; line-height: 1.3; font-weight: 500; }
  .press__list.mcar .press__item a::after { align-self: flex-end; }

  /* progress bars + counter under each carousel (same style as the testimonials) */
  .mnav { display: flex; align-items: center; gap: .9rem; margin-top: .6rem; padding-right: 84px; }   /* keep clear of the round sticker */
  .mnav__count { flex: none; font-family: var(--f-mono); font-size: .74rem; color: var(--dim); font-variant-numeric: tabular-nums; }
  .mnav__count b { color: var(--ink); font-weight: 600; }
  .mnav__bars { display: flex; gap: 4px; flex: 1; }
  .mnav__bars button { flex: 1; max-width: 40px; height: 5px; border-radius: 5px; background: var(--line-strong); position: relative; overflow: hidden; padding: 0; }
  .mnav__bars button::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; }
  .mnav__bars button.is-done::after { transform: scaleX(1); }
  .mnav__bars button.is-on::after { animation: fill 7s linear forwards; }
}
/* ==========================================================================
   HERO (v2): dusk sky · field of LEGO studs (back canvas) · giant headline ·
   the UIBBŽ robot (front canvas, in front of "budućnosti") — 3D in hero3d.js
   ========================================================================== */
.hero.hero--nx {
  display: block; position: relative; overflow: hidden; isolation: isolate;
  min-height: max(100svh, 680px);
  padding: 9rem var(--pad) 0;
  background: #120d30; color: #fff;
}
.hero--nx > .nx__sky {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #0a0924 0%, #161349 20%, #33227a 37%, #7a3a95 49%, #e0607f 58%, #ff9a7e 64%, #ffbf91 69%, #6a2f6f 82%, #1a0f30 100%);
}
.nx__sun {
  position: absolute; left: 66%; top: 47%; width: 52vmax; height: 52vmax; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 222, 180, .9) 0%, rgba(255, 160, 125, .42) 18%, rgba(255, 110, 150, .12) 40%, rgba(255, 110, 150, 0) 62%);
}
.nx__stars {
  position: absolute; inset: 0 0 52% 0; opacity: .6;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 22%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 19% 9%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 31% 30%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 44% 14%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 57% 26%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 71% 11%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 83% 33%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 93% 17%, #fff 50%, transparent 52%);
}
.hero--nx > .nx__field, .hero--nx > .nx__bot { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: block; }
.hero--nx > .nx__field { z-index: 1; }
.hero--nx > .nx__bot { z-index: 3; }
/* soft shade over the bottom of the field so the text there stays readable */
.hero.hero--nx::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 13, 48, 0), rgba(18, 13, 48, .55));
}
/* thin line with two glowing nodes under the header */
.hero--nx > .nx__rule {
  position: absolute; z-index: 2; left: var(--pad); right: var(--pad); top: 5.3rem; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3) 10%, rgba(255, 255, 255, .3) 90%, transparent);
}
.nx__rule i { position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #b3bcff; }
.nx__rule i:first-child { left: 24%; } .nx__rule i:last-child { left: 76%; }

/* winter school sign-up: a glassy pill at the top centre */
.hero--nx > .nx__winter {
  position: absolute; z-index: 4; top: 6.4rem; left: 50%; translate: -50% 0;
  display: inline-flex; align-items: center; gap: .7rem; padding: .4rem .42rem .4rem .9rem; border-radius: 999px;
  background: rgba(20, 14, 56, .42); border: 1px solid rgba(255, 255, 255, .24); backdrop-filter: blur(10px);
  color: #fff; font-family: var(--f-mono); font-size: .8rem; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(10, 6, 40, .3); transition: border-color .3s, background .3s;
}
.hero--nx > .nx__winter:hover { border-color: #b3bcff; background: rgba(43, 43, 255, .38); }
.nx__live { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .22); animation: pulse 2s infinite; }
.nx__wtxt b { font-weight: 700; }
.nx__wsub { color: rgba(255, 255, 255, .72); }
.nx__wcta { padding: .38rem .85rem; border-radius: 999px; background: #fff; color: #120d30; font-weight: 700; transition: background .3s, color .3s; }
.nx__winter:hover .nx__wcta { background: #ffd64d; }

/* headline: two lines top left, "budućnosti" huge along the bottom, behind the robot */
.hero--nx .hero__title {
  position: static; z-index: auto; align-self: auto; margin: 0;
  font-size: clamp(2.4rem, 6vw, 7.2rem); line-height: .95; letter-spacing: -.055em; color: #fff;
}
.hero--nx .hero__title .line { position: relative; z-index: 2; }
.hero--nx .hero__title .line--b { padding-left: .95em; }
.hero--nx .hero__title .line--c {
  position: absolute; left: var(--pad); right: var(--pad); bottom: -.04em;
  font-size: clamp(3.2rem, 14.6vw, 19rem); line-height: .86; letter-spacing: -.065em;
  overflow: visible; padding-top: .14em;   /* room for the accent on "ć" */
}
.hero--nx .word--future .ch { background-image: linear-gradient(100deg, #a4b2ff 0%, #c9a8ff 26%, #ff9fb8 50%, #ffd3a8 72%, #a4b2ff 100%); }
.hero--nx .hero__caret { background: #ffd3a8; }
/* the box the robot is drawn into (hero3d.js reads it) */
.hero--nx .nx__spot { position: absolute; z-index: 0; left: 41%; right: 19%; top: 7.6rem; bottom: 3.5vw; display: block; pointer-events: none; }
.nx__head { position: absolute; display: block; }

.hero--nx > .hero__aside { position: relative; z-index: 4; display: grid; gap: 1.3rem; justify-items: start; text-align: left; margin-top: 2.2rem; max-width: 30rem; }
.hero--nx .nx__lead { color: rgba(240, 236, 255, .84); font-size: clamp(.95rem, .85rem + .3vw, 1.1rem); line-height: 1.5; max-width: 34ch; }
.hero--nx .btn { border-color: rgba(255, 255, 255, .4); color: #fff; }
.hero--nx .btn:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .1); }
.hero--nx .btn--solid { background: #fff; color: #120d30; border-color: #fff; }
.hero--nx .btn--solid:hover { background: #ffd64d; border-color: #ffd64d; color: #120d30; }

.hero--nx > .seek { position: absolute; z-index: 4; right: var(--pad); top: 9.4rem; display: block; visibility: visible; text-align: right; }
.hero--nx .seek__q { color: rgba(255, 255, 255, .62); }
.hero--nx .seek a { color: #d9ddff; }
.hero--nx .seek a:hover { color: #fff; transform: translateX(-6px); }
/* the workshop clip on the robot's chest screen: hero3d.js gives it a perspective transform each frame */
.hero--nx > .nx__clip {
  position: absolute; left: 0; top: 0; z-index: 3; width: 320px; height: 196px; transform-origin: 0 0;
  overflow: hidden; border-radius: 6px; pointer-events: none; opacity: 0; transition: opacity .9s ease;
  background: #11124a; backface-visibility: hidden;
}
.hero--nx > .nx__clip.is-on { opacity: 1; }
.nx__clip video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* no WebGL: a soft glow stands in for the 3D scene */
.nx-nogl .hero--nx .nx__spot { background: radial-gradient(circle at 50% 45%, rgba(179, 188, 255, .35), transparent 60%); }

@media (max-width: 1100px) {
  .hero--nx > .seek { display: none; }
  .hero--nx .nx__spot { left: 46%; right: 2%; }
}
@media (max-width: 760px) {
  .hero.hero--nx { min-height: 0; padding: 6.6rem var(--pad) 2.6rem; }
  .hero--nx > .nx__rule { top: 4.9rem; }
  .hero--nx > .nx__winter { position: relative; top: auto; left: auto; translate: none; display: flex; width: fit-content; max-width: 100%; margin: 0 auto 1.6rem; font-size: .74rem; }
  .nx__wsub { display: none; }
  .hero--nx .hero__title { font-size: 9.4vw; }
  .hero.hero--nx::after { height: 50%; background: linear-gradient(180deg, rgba(18, 13, 48, 0), rgba(18, 13, 48, .82) 45%, #120d30); }
  .hero--nx .hero__title .line { white-space: nowrap; }
  .hero--nx .hero__title .line--b { padding-left: 0; }
  .hero--nx .nx__spot { position: relative; inset: auto; height: 84vw; margin: .2rem 0 0; }
  .hero--nx .hero__title .line--c { position: relative; left: auto; right: auto; bottom: auto; font-size: 15vw; margin-top: -9vw; }
  .hero--nx > .hero__aside { margin-top: 1.4rem; }
  .hero--nx > .seek { display: block; position: relative; top: auto; right: auto; text-align: left; margin-top: 2rem; }
  .hero--nx .seek ul { display: flex; flex-wrap: wrap; gap: .45rem; }
  .hero--nx .seek li + li { margin-top: 0; }
  .hero--nx .seek a { display: inline-block; padding: .42rem .75rem; border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; font-size: .74rem; background: rgba(20, 14, 56, .35); }
  .hero--nx .seek a:hover { transform: none; }
  .hero--nx .seek .arr { display: none; }
}
/* ==========================================================================
   DUSK STYLE for the whole page (follows the hero): deep indigo sections,
   dark glass cards, white primary buttons, periwinkle / peach / pink accents
   ========================================================================== */
::selection { background: #ff9fb8; color: #120d30; }
/* header + menus */
.pill { background: rgba(24, 18, 63, .55); border-color: var(--line-strong); backdrop-filter: blur(12px); }
.pill__cta { background: #fff; color: #120d30 !important; }
.pill__cta:hover { background: #ffd64d; }
.pill a.pill__cta.is-current { color: #120d30; background: #ffd3a8; }
.menu-btn { background: rgba(24, 18, 63, .6); }
.mobile-menu { background: rgba(18, 13, 48, .97); }
.lightbox { background: rgba(10, 8, 30, .86); }
.lightbox__close, .panel__close { background: rgba(29, 22, 72, .9); color: var(--ink); }
.panel__bg { background: rgba(8, 6, 26, .6); }
.panel__sheet { background: #17113d; }
.chip { background: rgba(179, 188, 255, .14); color: #d4d9ff; }
.prose { color: rgba(236, 230, 255, .82); }
/* workshops reel + filters */
.reel { background: linear-gradient(180deg, rgba(106, 77, 255, .22), rgba(255, 159, 184, .12)); border: 1px solid var(--glass-line); }
.work__caption { background: rgba(24, 18, 63, .72); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); border: 1px solid var(--glass-line); }
.work__filter button { background: rgba(255, 255, 255, .06); }
.work__filter button:hover, .work__filter button.is-active { background: #fff; color: #120d30; border-color: #fff; }
.sw-btn { background: rgba(255, 255, 255, .06); }
.sw-btn:hover { color: #120d30; background: #ffd3a8; border-color: #ffd3a8; }
.proj:hover .proj__go { background: #ffd3a8; color: #120d30; border-color: #ffd3a8; }
/* Bee-Bot game */
.bee { background: radial-gradient(70% 90% at 100% 0%, rgba(255, 159, 184, .22), transparent 60%), linear-gradient(160deg, #241b5c, #150f3a); border-color: var(--glass-line); }
.bee__board { background: rgba(255, 255, 255, .06); }
.cell { background: rgba(255, 255, 255, .1); }
.cell--rock { background: rgba(255, 255, 255, .04); }
.cell--goal::before { color: #ffd3a8; text-shadow: 0 0 14px rgba(255, 211, 168, .5); }
.bee__status { color: #ffd3a8 !important; }
.bee__program { background: rgba(255, 255, 255, .05); }
.op { background: rgba(255, 214, 77, .22); }
.bee__pad button { background: rgba(255, 255, 255, .07); color: var(--ink); }
.bee__pad button:hover { background: rgba(255, 255, 255, .14); }
.bee__pad .bee__go { background: #ffd64d; color: #120d30; }
/* "Zašto mi" cards: colours of the dusk sky */
.pcard { --c-bg: linear-gradient(150deg, #2b2bff, #6a4dff); }
.pcard--lav { --c-bg: linear-gradient(150deg, #33227a, #7a3a95); --c-ink: #fff; --c-dim: rgba(255, 255, 255, .8); --c-chip: rgba(255, 255, 255, .14); }
.pcard--sun { --c-bg: linear-gradient(150deg, #ff9a7e, #ffc79a); --c-ink: #120d30; --c-dim: rgba(18, 13, 48, .74); --c-chip: rgba(18, 13, 48, .1); }
.pcard--ink { --c-bg: linear-gradient(150deg, #0d0b2a, #1d1650); --c-ink: #f6f3ff; --c-dim: rgba(236, 230, 255, .7); }
/* association: tabs, cards, timeline, goals, documents */
.tabs { background: rgba(255, 255, 255, .05); }
.tab.is-active { color: #120d30; }
.tab.is-active .tab__count { background: rgba(18, 13, 48, .14); }
.info-card, .goal, .methods, .doc { background: var(--glass); border-color: var(--glass-line); box-shadow: none; }
.info-card--ink { background: linear-gradient(150deg, #2b2bff, #6a4dff); color: #fff; }
.goal__ic { background: rgba(179, 188, 255, .14); }
.methods[open] .methods__plus { background: #fff; }
.methods[open] .methods__plus::before, .methods[open] .methods__plus::after { background: #120d30; }
.methods__list li { color: var(--dim); }
.htl__node--star .htl__dot { background: #ffd3a8; border-color: #ffd3a8; color: #120d30; }
.htl__pop, .htl__arrow, .htl__close { background: #1d1648; }
.tl__tag--projekt { background: rgba(179, 188, 255, .18); color: #d4d9ff; }
.tl__tag--radionice { background: rgba(201, 168, 255, .18); color: #e2d2ff; }
.tl__tag--nagrada { background: rgba(255, 214, 77, .18); color: #ffe08a; }
.tl__tag--udruga { background: rgba(255, 255, 255, .1); color: #e6e3f5; }
/* contact + footer */
.contact { background: radial-gradient(60% 80% at 100% 0%, rgba(255, 159, 184, .18), transparent 60%), linear-gradient(150deg, #241b5c, #150f3a); border-color: var(--glass-line); }
.footer__made { background: rgba(255, 255, 255, .06); }
/* subpages (radionice/…, projekti/…, novosti/…) */
body.page { background: radial-gradient(60% 40% at 0% 0%, rgba(106, 77, 255, .35), transparent 70%), radial-gradient(50% 40% at 100% 0%, rgba(255, 159, 184, .16), transparent 70%), var(--bg); }
.page__sheet { background: #1a1443; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5), 0 0 0 1px var(--glass-line); }
/* the winter-school "ticket" (restored) at the top centre of the new hero */
.hero--nx > .hero__top { position: absolute; z-index: 4; left: 0; right: 0; top: 5.4rem; margin: 0; }
@media (min-width: 761px) {
  /* bottom padding = the height of the giant "budućnosti", so the text and buttons above never run into it:
     on short screens the hero simply grows taller */
  .hero.hero--nx { padding-top: 12rem; padding-bottom: calc(clamp(3.2rem, 14.6vw, 19rem) * 1.04 + 1.6rem); }
  .hero--nx .nx__spot { top: 11.6rem; }
}
.hero--nx .ticket { filter: drop-shadow(0 18px 34px rgba(10, 6, 40, .45)) drop-shadow(0 0 22px rgba(179, 188, 255, .25)); }
.hero--nx .ticket__stub { background: #120d30; }
.hero--nx .ticket:hover .ticket__stub { background: #2b2bff; }

@media (max-width: 760px) {
  .hero.hero--nx { padding-top: 6.2rem; }
  .hero--nx > .hero__top { position: relative; top: auto; margin: 0 0 1.5rem; }
}
/* a smaller winter ticket in the hero */
.hero--nx .ticket__main { gap: .1rem; padding: .48rem 1.05rem .48rem .8rem; }
.hero--nx .ticket__title { font-size: clamp(.86rem, .68rem + .45vw, 1.04rem); }
.hero--nx .ticket__kicker { font-size: .52rem; letter-spacing: .1em; }
.hero--nx .ticket__meta { font-size: .56rem; }
.hero--nx .ticket__stub { min-width: 4.4rem; gap: .18rem; padding: .4rem .6rem .4rem .85rem; }
.hero--nx .ticket__stub::before { top: 10px; bottom: 10px; }
.hero--nx .ticket__cta { font-size: .62rem; }
.hero--nx .ticket__arrow { width: 19px; height: 19px; font-size: .68rem; }
.hero--nx .ticket__code { width: 38px; height: 7px; }
.hero--nx .ticket__bot { scale: .78; top: -19px; }
.hero--nx .ticket__flakes i { font-size: 9px; }
@media (max-width: 600px) {
  .hero--nx .ticket__title { font-size: .8rem; }
  .hero--nx .ticket__main { padding: .42rem .85rem .42rem .7rem; }
  .hero--nx .ticket__stub { min-width: 3.9rem; padding: .36rem .5rem .36rem .75rem; }
  .hero--nx .ticket__bot { scale: .68; }
}
/* robot chooser (only with ?izbor in the address, for picking a robot before publishing) */
.nx__pick {
  position: fixed; z-index: 140; left: 50%; bottom: 1.2rem; translate: -50% 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; max-width: calc(100vw - 2rem);
  padding: .45rem .5rem .45rem .9rem; border-radius: 999px; background: rgba(18, 13, 48, .82); border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(12px); font-family: var(--f-mono); font-size: .78rem; color: #fff; box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
}
.nx__pick a { padding: .4rem .8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); color: #fff; white-space: nowrap; }
.nx__pick a:hover { background: rgba(255, 255, 255, .12); }
.nx__pick a.is-on { background: #fff; color: #120d30; border-color: #fff; font-weight: 700; }
@media (max-width: 600px) { .nx__pick { border-radius: 18px; bottom: .6rem; font-size: .7rem; } .nx__pick span { width: 100%; text-align: center; } }
/* wide screens: the winter ticket sits up in the header bar, centred in the gap between the logo and the menu,
   and everything in the hero moves up so "budućnosti" is visible without scrolling */
@media (min-width: 1180px) {
  .hero--nx > .hero__top { top: 10px; left: calc(50% - 134px); right: auto; translate: -50% 0; padding-top: 0; margin: 0; }
  .hero--nx .ticket { scale: .82; }
  .hero.hero--nx { padding-top: 6.6rem; }
  .hero--nx .nx__spot { top: 6.2rem; }
  .hero--nx > .seek { top: 7rem; }
  .hero--nx .hero__title { font-size: clamp(2.4rem, 5.6vw, 7rem); }
  .hero--nx > .hero__aside { margin-top: 1.5rem; gap: 1.1rem; }
  .hero.hero--nx { padding-bottom: calc(clamp(3.2rem, 14.6vw, 19rem) * .94 + .2rem); min-height: max(100svh, 560px); }
}
/* who answers which phone (contact section) */
.contact__who { font-family: var(--f-mono); font-size: .72rem; color: var(--dim); margin-left: .35rem; }
/* ==========================================================================
   WORKSHOPS (v2): shorter scroll, dusk glow, richer cards with "what kids learn" chips
   ========================================================================== */
.work { height: 360vh; }                                   /* was 520vh: less scrolling per workshop */
.work__sticky {
  background:
    radial-gradient(45% 55% at 0% 0%, rgba(106, 77, 255, .35), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(255, 159, 184, .22), transparent 70%),
    radial-gradient(40% 50% at 100% 0%, rgba(58, 107, 255, .25), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(255, 211, 168, .14), transparent 70%);
}
.reel { background: linear-gradient(180deg, rgba(29, 22, 72, .75), rgba(20, 15, 54, .55)); border: 1px solid var(--glass-line); }
.reel::after { box-shadow: inset 0 0 60px 34px rgba(20, 15, 54, .95); }   /* edges fade into the dark frame, not into white */
.card { background: #1d1648; box-shadow: 0 30px 70px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.card::after { background: linear-gradient(180deg, rgba(18, 13, 48, .35) 0%, transparent 26%, transparent 45%, rgba(18, 13, 48, .92) 100%); }
.card.is-active { box-shadow: 0 40px 100px rgba(106, 77, 255, .45), 0 0 0 1px rgba(255, 211, 168, .55), inset 0 0 0 1px rgba(255, 255, 255, .25); }
.card.is-active .card__go { background: #ffd3a8; border-color: #ffd3a8; color: #120d30; }
.card__num { background: rgba(18, 13, 48, .55); border: 1px solid rgba(255, 255, 255, .22); }
.card__title { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.card__skills { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.card__skills i {
  font-style: normal; font-family: var(--f-mono); font-size: .66rem; font-weight: 600; letter-spacing: .02em;
  padding: .28rem .6rem; border-radius: 999px; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .26); backdrop-filter: blur(6px);
}
.card__skills i:first-child { background: rgba(255, 211, 168, .9); border-color: transparent; color: #120d30; }
.card__ages { background: rgba(18, 13, 48, .55); border-color: rgba(255, 255, 255, .3); }
.reel__line { background: var(--line-strong); opacity: 1; }
.reel__line b { background: #ffd3a8; box-shadow: 0 0 0 4px rgba(255, 211, 168, .2), 0 0 14px rgba(255, 211, 168, .6); }
@media (max-width: 860px) {
  .work { height: 320vh; }
  .card__skills i:nth-child(n + 3) { display: none; }       /* phones: two chips are enough */
}
/* pointer label: a round peach bubble with a word, only over cards and links that open something */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; display: none;
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
}
.cursor__label {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%;
  background: #ffd3a8; color: #120d30; font-family: var(--f-mono); font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  box-shadow: 0 10px 30px rgba(10, 6, 40, .35), 0 0 24px rgba(255, 211, 168, .35);
  transform: scale(0); opacity: 0; transition: transform .35s var(--ease), opacity .25s;
}
.cursor.is-on .cursor__label { transform: scale(1); opacity: 1; }
@media (pointer: fine) { .cursor { display: block; } }
@media (prefers-reduced-motion: reduce) { .cursor__label { transition: none; } }
/* the 3D track itself must not catch the pointer, otherwise it sits "on top" of the flat, centred card:
   with this the cards get hover/click (and the pointer label "otvori") */
.reel__track { pointer-events: none; }
.reel__track .card { pointer-events: auto; }
/* ==========================================================================
   Tighter spacing between sections (about a third less empty space)
   ========================================================================== */
.projects { padding: clamp(4rem, 8.5vw, 7rem) var(--pad) clamp(2.5rem, 5vw, 4rem); }
.film { padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad); }
.pillars { padding: clamp(3rem, 5.5vw, 5rem) var(--pad); }
.news { padding: clamp(4rem, 8vw, 6.5rem) var(--pad) clamp(2.5rem, 5vw, 4rem); }
.voices { padding: clamp(3rem, 6vw, 5.5rem) var(--pad); }
.about { padding: clamp(4rem, 8vw, 6.5rem) var(--pad) clamp(2.5rem, 5vw, 4rem); }
.press { padding: 0 var(--pad) clamp(3.5rem, 7vw, 5.5rem); }
.collab { padding: clamp(4rem, 8vw, 6.5rem) var(--pad) clamp(3rem, 6vw, 5rem); }

/* ==========================================================================
   Footer: the giant "UIBBŽ" is now the BACKGROUND of the very end of the page
   (behind the footer text, where the scroll rail shows 99–100), not a block of its own
   ========================================================================== */
.footer { position: relative; isolation: isolate; padding: clamp(3rem, 6vw, 5rem) var(--pad) 2rem; }
.footer__big {
  position: absolute; z-index: -1; left: 0; bottom: -.1em; margin: 0; pointer-events: none;
  font-size: clamp(6rem, 31vw, 34rem); line-height: .8; letter-spacing: -.07em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(179, 188, 255, .16);
  background: linear-gradient(180deg, rgba(179, 188, 255, .1), rgba(255, 159, 184, .06) 60%, transparent);
  -webkit-background-clip: text; background-clip: text;
}
.footer::before {   /* soft dusk glow behind the letters */
  content: ""; position: absolute; z-index: -2; inset: 30% 0 0; pointer-events: none;
  background: radial-gradient(60% 80% at 50% 100%, rgba(106, 77, 255, .22), transparent 70%);
}
.footer__grid { position: relative; padding-top: 0; border-top: 0; }
/* even tighter: ~70–100 px between sections (top ≈ 40–56 px, bottom ≈ 24–40 px) */
:root { --sec-t: clamp(2.4rem, 3.6vw, 3.5rem); --sec-b: clamp(1.5rem, 2.4vw, 2.5rem); }
.projects, .news, .about, .collab, .film, .pillars, .voices { padding-top: var(--sec-t); padding-bottom: var(--sec-b); }
.press { padding-bottom: var(--sec-b); }
.pillars__stack { padding-bottom: 2vh; }
.footer { padding-top: var(--sec-t); }
.contact { margin-bottom: var(--sec-b); }
/* ==========================================================================
   Detail views (panel + stand-alone pages): the cover photo is shown WHOLE (never cropped);
   empty sides are filled with a soft, blurred copy of the same photo. Long text is justified.
   ========================================================================== */
.d-hero, .d-hero--tall {
  position: relative; isolation: isolate; aspect-ratio: auto; display: grid; place-items: center;
  background: #120d30; overflow: hidden;
}
.d-hero::before {
  content: ""; position: absolute; inset: -40px; z-index: -1;
  background: var(--img) center / cover no-repeat; filter: blur(28px) brightness(.55) saturate(1.2);
}
.d-hero img, .d-hero--tall img {
  position: relative; width: 100%; height: auto; max-height: min(72vh, 680px); object-fit: contain;
}
.prose p, .prose li, .about__text p {
  text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto;
}
/* pointer label (v2): smaller, with a vivid dusk gradient and a soft glow */
.cursor { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor__label {
  color: #fff; font-size: .64rem; letter-spacing: .05em; text-shadow: 0 1px 6px rgba(18, 13, 48, .45);
  background: conic-gradient(from 210deg, #2b2bff, #6a4dff, #ff6b8b, #ff9a5a, #2b2bff);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), 0 10px 26px rgba(106, 77, 255, .55), 0 0 32px rgba(255, 107, 139, .45);
}
.cursor.is-on .cursor__label { animation: cursorSpin 6s linear infinite; }
.cursor__label::after { content: ""; }
@keyframes cursorSpin { to { background: conic-gradient(from 570deg, #2b2bff, #6a4dff, #ff6b8b, #ff9a5a, #2b2bff); } }

/* winter sticker: a bit smaller and closer to the corner */
.sticker { width: 88px; height: 88px; right: clamp(.6rem, 1.4vw, 1.1rem); bottom: clamp(.6rem, 1.4vw, 1.1rem); }
.sticker__bot { scale: .78; margin-top: 8px; }
@media (max-width: 600px) { .sticker { width: 72px; height: 72px; } .sticker__bot { transform: none; scale: .64; } }