/* Bricolage Grotesque (SIL OFL), poslužuje se s ove domene, bez Google Fonts */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2) format("woff2-variations"), url(/fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-opsz-normal.woff2) format("woff2-variations"), url(/fonts/bricolage-grotesque-latin-opsz-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --paper: #ffffff;
  --mist: #eef8fe;
  --ink: #26262b;
  --ink-2: #5d5d66;
  --ink-3: #8a8a93;
  --line: rgba(38, 38, 43, 0.12);
  --sun: #ffc93c;
  --sun-deep: #f5a314;
  --sky: #3bbcf2;
  --sky-soft: #d6f0fc;
  --link: #0877b5;
  --lock: #5f5f66;
  --on-bright: #1d1d22;
  --deep: #1f2a44;
  --on-deep: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --blob-o: 0.5;
  --bg-grouped: #f2f2f7;
  --cell: #ffffff;
  --field: #f2f2f7;
  --sheet: #ffffff;
  --sep: rgba(60, 60, 67, 0.16);
  --green: #34c759;
  --green-text: #1f7a37;
  --green-tint: #e3f6e8;
  --switch-off: #e9e9eb;
  --danger: #d70015;
  --shadow: 0 30px 80px rgba(20, 30, 60, 0.22);
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1220;
    --mist: #111c31;
    --ink: #f3f5f9;
    --ink-2: #aab3c2;
    --ink-3: #7f8899;
    --line: rgba(255, 255, 255, 0.12);
    --sun: #ffd15c;
    --sun-deep: #ffb938;
    --sky: #5cc8f5;
    --sky-soft: #173452;
    --link: #7fd3f7;
    --lock: #3b4866;
    --deep: #16213a;
    --on-deep: #f3f5f9;
    --nav-bg: rgba(11, 18, 32, 0.8);
    --blob-o: 0.26;
    --bg-grouped: #0b1220;
    --cell: #16213a;
    --field: #1f2b45;
    --sheet: #16213a;
    --sep: rgba(255, 255, 255, 0.12);
    --green: #30d158;
    --green-text: #4ade80;
    --green-tint: rgba(48, 209, 88, 0.16);
    --switch-off: #39393d;
    --danger: #ff453a;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1220;
  --mist: #111c31;
  --ink: #f3f5f9;
  --ink-2: #aab3c2;
  --ink-3: #7f8899;
  --line: rgba(255, 255, 255, 0.12);
  --sun: #ffd15c;
  --sun-deep: #ffb938;
  --sky: #5cc8f5;
  --sky-soft: #173452;
  --link: #7fd3f7;
  --lock: #3b4866;
  --deep: #16213a;
  --on-deep: #f3f5f9;
  --nav-bg: rgba(11, 18, 32, 0.8);
  --blob-o: 0.26;
  --bg-grouped: #0b1220;
  --cell: #16213a;
  --field: #1f2b45;
  --sheet: #16213a;
  --sep: rgba(255, 255, 255, 0.12);
  --green: #30d158;
  --green-text: #4ade80;
  --green-tint: rgba(48, 209, 88, 0.16);
  --switch-off: #39393d;
  --danger: #ff453a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
html.is-admin body { background: var(--bg-grouped); }
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40;
  background: transparent;
}
html.is-scrolled body::before, html.is-admin body::before {
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; padding: 15px 26px; cursor: pointer;
  font-weight: 650; font-size: 17px; letter-spacing: -0.01em; text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.22s ease, background-color 0.2s ease;
}
.btn:hover { transform: translateY(-3px); text-decoration: none; }
.btn:active { transform: translateY(0) scale(0.97); }
.btn.sun { background: var(--sun); color: var(--on-bright); box-shadow: 0 10px 28px -12px var(--sun-deep); }
.btn.sun:hover { box-shadow: 0 16px 34px -12px var(--sun-deep); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.white { background: #ffffff; color: var(--on-bright); }
.btn.outline-dark { background: transparent; color: var(--on-bright); box-shadow: inset 0 0 0 2px rgba(29, 29, 34, 0.35); }
.btn.sm { padding: 9px 18px; font-size: 15px; }

/* ---------- Nav ---------- */
.progress {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; z-index: 45;
  width: 100%; height: 3px; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--sun), var(--sky));
}
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
html.is-scrolled .nav {
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; display: block; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink); font-weight: 550; font-size: 15px; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 3px; border-radius: 3px;
  background: var(--sun); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav-links a:hover { text-decoration: none; }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--blob-o); will-change: transform; pointer-events: none; }
.blob.a { width: 48vmax; height: 48vmax; background: var(--sun); top: -16vmax; right: -14vmax; }
.blob.b { width: 40vmax; height: 40vmax; background: var(--sky); top: 45vh; left: -16vmax; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; }
.hero-block { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 84px 0 40px; }
.hero-block.b { min-height: 85vh; padding: 0 0 14vh; }
.lock-col { position: relative; }
.h-hero {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(50px, 8.4vw, 124px); line-height: 0.95; letter-spacing: -0.045em;
}
.h-hero .line { display: block; }
html.js .h-hero .line { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
html.js .h-hero .line:nth-child(2) { animation-delay: 0.1s; }
html.js .h-hero .line:nth-child(3) { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(0.4em) rotate(2deg); } to { opacity: 1; transform: none; } }
.hero-lead { margin: 28px 0 0; max-width: 30em; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; color: var(--ink-2); }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.lock-art { position: sticky; top: calc(50vh - 190px); margin: calc(50vh - 190px) auto 0; width: min(100%, 400px); }
.lock-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 6; }
.ring { fill: none; stroke: url(#ring-grad); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 880; stroke-dashoffset: 880; opacity: 0; }
@keyframes draw { from { stroke-dashoffset: 880; } to { stroke-dashoffset: 0; } }
#keyhole { opacity: 0; }
.scroll-hint {
  position: absolute; left: 50%; top: calc(100vh - 86px); top: calc(100svh - 86px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2);
}
.scroll-hint i { display: block; width: 24px; height: 38px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--ink-3); position: relative; }
.scroll-hint i::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--sun-deep); animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Tapes ---------- */
.tapes { position: relative; overflow: hidden; padding: 64px 0 28px; }
.tape {
  position: relative; width: 112%; margin-left: -6%; white-space: nowrap; overflow: hidden;
  padding: 16px 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(28px, 4.6vw, 58px); line-height: 1.1; color: var(--on-bright);
}
.tape.sun { background: var(--sun); transform: rotate(-3deg); z-index: 2; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.35); }
.tape.sky { background: var(--sky); transform: rotate(2.4deg); margin-top: -30px; }
.tape-track { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; will-change: transform; }
.tape-track svg { width: 0.62em; height: 0.62em; flex: none; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; position: relative; }
.sec-head { max-width: 760px; }
.h2 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 6.4vw, 88px); line-height: 0.98; letter-spacing: -0.045em;
}
.lead { margin: 18px 0 0; max-width: 32em; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.42; color: var(--ink-2); }

/* Reveal */
html.js [data-reveal] {
  opacity: 0; transform: translateY(56px);
  transition: opacity 0.8s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js [data-reveal="clip"] {
  transform: none;
  clip-path: inset(16% 8% 0 8% round 36px);
  transition: clip-path 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.7s ease, transform 0.3s ease-out;
  transition-delay: calc(var(--i, 0) * 110ms), calc(var(--i, 0) * 110ms), 0s;
}
html.js [data-reveal="clip"].in { clip-path: inset(0 0 0 0 round 32px); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 56px; }
.pillar {
  position: relative; overflow: hidden; border-radius: 32px; padding: 36px;
  min-height: 340px; display: flex; flex-direction: column; justify-content: space-between;
}
.pillar:nth-child(1) { grid-column: span 4; }
.pillar:nth-child(2) { grid-column: span 2; }
.pillar:nth-child(3) { grid-column: span 2; }
.pillar:nth-child(4) { grid-column: span 4; }
.pillar::after {
  content: ""; position: absolute; width: 240px; height: 240px; right: -70px; bottom: -80px;
  border-radius: 50%; border: 30px solid var(--ring, rgba(255, 255, 255, 0.35));
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); pointer-events: none;
}
.pillar:hover::after { transform: scale(1.18) translate(-14px, -10px); }
.pillar h3 {
  margin: 28px 0 10px; font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 3.2vw, 44px); line-height: 1; letter-spacing: -0.035em; max-width: 12em;
}
.pillar p { margin: 0; max-width: 28em; font-size: 17px; line-height: 1.45; position: relative; z-index: 1; }
.p-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.55); }
.p-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.p-sun { background: var(--sun); color: var(--on-bright); }
.p-sky { background: var(--sky); color: var(--on-bright); }
.p-deep { background: var(--deep); color: var(--on-deep); --ring: rgba(255, 201, 60, 0.28); }
.p-deep .p-icon { background: rgba(255, 255, 255, 0.1); color: var(--sun); }
.p-mist { background: var(--mist); color: var(--ink); --ring: rgba(59, 188, 242, 0.28); }
.p-mist .p-icon { background: var(--sky); color: var(--on-bright); }
.p-mist p { color: var(--ink-2); }

/* ---------- Steps (stacking) ---------- */
.steps { margin-top: 56px; display: flex; flex-direction: column; gap: 16vh; padding-bottom: 4vh; }
.step {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px + var(--i) * 26px);
  min-height: min(58vh, 540px); border-radius: 40px; padding: clamp(28px, 5vw, 60px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: end;
  transform-origin: 50% 0; will-change: transform;
  box-shadow: 0 -20px 50px -30px rgba(0, 0, 0, 0.35);
}
.step-n {
  font-family: var(--display); font-weight: 800; line-height: 0.78;
  font-size: clamp(120px, 19vw, 280px); letter-spacing: -0.06em;
}
.step h3 { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.4vw, 62px); line-height: 0.98; letter-spacing: -0.04em; }
.step p { margin: 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; max-width: 26em; }
.s-sun { background: var(--sun); color: var(--on-bright); }
.s-sky { background: var(--sky); color: var(--on-bright); }
.s-deep { background: var(--deep); color: var(--on-deep); }
.s-deep .step-n { color: var(--sun); }

/* ---------- News rail ---------- */
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rail-ctrl { display: flex; gap: 10px; }
.round {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--mist); color: var(--ink); display: grid; place-items: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.round:hover { transform: scale(1.06); background: var(--sun); color: var(--on-bright); }
.round svg { width: 10px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rail {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-top: 44px; padding: 8px max(24px, calc((100% - 1152px) / 2)) 28px;
  scroll-padding-inline: max(24px, calc((100% - 1152px) / 2));
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail-msg { padding: 0; margin: 0; }
.ncard {
  flex: 0 0 min(80vw, 340px); scroll-snap-align: start;
  display: flex; flex-direction: column; text-align: left; cursor: pointer;
  background: none; border: 0; padding: 0; color: var(--ink);
}
.ncard.first { flex-basis: min(88vw, 580px); }
.art {
  display: block; position: relative; overflow: hidden; height: 220px; border-radius: 28px;
  background: var(--art-bg);
}
.ncard.first .art { height: 300px; }
.art i, .art b, .sheet-art i, .sheet-art b { position: absolute; display: block; border-radius: 50%; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.art i, .sheet-art i { width: 190px; height: 190px; left: -40px; bottom: -70px; background: var(--art-1); }
.art b, .sheet-art b { width: 100px; height: 100px; right: 28px; top: 28px; border: 20px solid var(--art-2); }
.ncard:hover .art i { transform: translate(28px, -18px) scale(1.1); }
.ncard:hover .art b { transform: translate(-16px, 14px) scale(0.9); }
.ncard.first .art i { width: 260px; height: 260px; }
.ncard.first .art b { width: 140px; height: 140px; border-width: 26px; }
.c-poziv { --art-bg: var(--sun); --art-1: var(--sky); --art-2: #ffffff; }
.c-radionica { --art-bg: var(--sky); --art-1: var(--sun); --art-2: #ffffff; }
.c-novosti { --art-bg: var(--sky-soft); --art-1: var(--sky); --art-2: var(--sun); }
.c-projekt { --art-bg: var(--deep); --art-1: var(--sun); --art-2: var(--sky); }
.c-blog { --art-bg: var(--sun); --art-1: #ffffff; --art-2: var(--sky); }
.c-resursi { --art-bg: var(--sky); --art-1: var(--deep); --art-2: var(--sun); }
.nc-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 6px 0; }
.chip { align-self: flex-start; font-size: 13px; font-weight: 650; padding: 4px 12px; border-radius: 999px; background: var(--mist); color: var(--ink); }
.nc-title { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.05; letter-spacing: -0.03em; }
.ncard.first .nc-title { font-size: clamp(28px, 3vw, 38px); }
.nc-ex { color: var(--ink-2); font-size: 16px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nc-date { color: var(--ink-3); font-size: 14px; }

/* ---------- About ---------- */
.about-big {
  margin: 36px 0 0; font-family: var(--display); font-weight: 750;
  font-size: clamp(30px, 4.6vw, 66px); line-height: 1.06; letter-spacing: -0.035em; max-width: 19em;
}
.about-big .w { opacity: 0.16; transition: opacity 0.4s ease, color 0.4s ease; }
.about-big .w.lit { opacity: 1; }
.about-big .w.hl.lit { color: var(--sun-deep); }
.about-foot { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; margin-top: 64px; }
.about-foot p { margin: 0; max-width: 34em; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.badge { width: 200px; height: 200px; position: relative; flex: none; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.badge text { font-family: var(--display); font-weight: 700; font-size: 15.5px; letter-spacing: 0.06em; fill: var(--ink); }
.badge img { position: absolute; width: 116px; height: 116px; left: 42px; top: 42px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; background: var(--sky); color: var(--on-bright);
  border-radius: 48px 48px 0 0; padding: 120px 0 170px;
}
.cta-sun { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--sun); right: -120px; top: -140px; will-change: transform; }
.cta-ring { position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, 0.4); left: -90px; bottom: 40px; will-change: transform; }
.cta .wrap { position: relative; }
.say { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(96px, 21vw, 300px); line-height: 0.82; letter-spacing: -0.065em; }
.say .wd { display: inline-block; white-space: nowrap; }
.say .ch { display: inline-block; }
html.js .say .ch { opacity: 0; transform: translateY(0.35em) rotate(10deg); }
html.js .say.in .ch { animation: pop 0.8s cubic-bezier(0.3, 1.5, 0.5, 1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes pop { from { opacity: 0; transform: translateY(0.35em) rotate(10deg); } to { opacity: 1; transform: none; } }
.cta-lead { margin: 28px 0 0; max-width: 28em; font-size: clamp(19px, 2vw, 24px); line-height: 1.4; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.social {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.5); color: var(--on-bright); font-weight: 600; font-size: 15px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.social:hover { background: #ffffff; transform: translateY(-2px); text-decoration: none; }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Footer ---------- */
.footer {
  position: relative; margin-top: -48px; border-radius: 48px 48px 0 0;
  background: var(--deep); color: var(--on-deep); padding: 56px 0 48px; font-size: 14px;
}
.footer .wrap { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; }
.footer .brand { color: var(--on-deep); }
.footer p { margin: 6px 0 0; opacity: 0.72; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a, .foot-links button { color: var(--on-deep); opacity: 0.8; background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; }
.foot-links a:hover, .foot-links button:hover { opacity: 1; text-decoration: underline; }

/* ---------- Grouped lists (admin) ---------- */
.group { list-style: none; margin: 0; padding: 0; background: var(--cell); border-radius: 14px; overflow: hidden; }
.row-button { display: flex; align-items: center; gap: 14px; padding-left: 16px; min-height: 60px; width: 100%; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink); }
.row-button:hover { background: rgba(127, 127, 127, 0.08); }
.row-text { flex: 1; min-width: 0; padding: 12px 16px 12px 0; display: flex; align-items: center; gap: 12px; }
.row-text > span:first-child { flex: 1; min-width: 0; }
li + li .row-text { border-top: 1px solid var(--sep); }
.row-title { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; }
.row-sub { display: block; color: var(--ink-2); font-size: 15px; line-height: 1.38; margin-top: 2px; }
.chev { flex: none; width: 8px; height: 14px; color: var(--ink-3); }
.chev path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--sun); color: var(--on-bright); }
.tile svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sheets ---------- */
dialog.sheet {
  border: 0; padding: 0; background: var(--sheet); color: var(--ink);
  width: min(700px, calc(100% - 32px)); max-width: none; max-height: min(88vh, 920px);
  border-radius: 28px; box-shadow: var(--shadow); overflow: hidden;
}
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheet-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
dialog.sheet::backdrop { background: rgba(10, 16, 30, 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(40px) scale(0.98); } to { opacity: 1; transform: none; } }
.sheet-scroll { overflow: auto; flex: 1; padding: 36px 34px calc(32px + env(safe-area-inset-bottom, 0px)); -webkit-overflow-scrolling: touch; }
.sheet-art { display: block; position: relative; overflow: hidden; height: 170px; margin: -36px -34px 28px; background: var(--art-bg); }
.close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  border: 0; cursor: pointer; background: rgba(255, 255, 255, 0.85); color: #1d1d22; display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.close svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.article .chip { margin-bottom: 12px; display: inline-block; }
.article h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5vw, 42px); line-height: 1.02; letter-spacing: -0.035em; }
.article .date { display: block; margin-top: 12px; color: var(--ink-3); font-size: 14px; }
.article .excerpt { margin: 22px 0 0; font-size: 21px; line-height: 1.4; color: var(--ink-2); }
.article .body p { margin: 1em 0 0; font-size: 18px; line-height: 1.6; }
.policy h2 { margin: 0 44px 6px 0; font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.03em; line-height: 1.1; }
.policy p { margin: 0.9em 0 0; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 12px 22px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1); max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Admin ---------- */
.admin { min-height: 100%; }
.admin-bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--sep);
}
.admin-bar .wrap { display: flex; align-items: center; gap: 18px; height: 60px; max-width: 780px; }
.admin-bar .brand img { width: 34px; height: 34px; }
.admin-bar .brand span { font-size: 20px; }
.admin-bar .spacer { flex: 1; }
.link-btn { font-size: 15px; color: var(--link); background: none; border: 0; cursor: pointer; padding: 6px 0; }
.admin-main { max-width: 780px; margin: 0 auto; padding: 32px 24px 80px; }
.admin-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-title h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.035em; }
.admin-title p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.notice { background: var(--cell); border-radius: 14px; padding: 14px 16px; margin-bottom: 20px; font-size: 15px; color: var(--ink-2); display: flex; gap: 12px; align-items: flex-start; }
.status { flex: none; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--field); color: var(--ink-2); }
.status.on { background: var(--green-tint); color: var(--green-text); }
.empty { text-align: center; padding: 48px 24px; background: var(--cell); border-radius: 14px; color: var(--ink-2); }
.empty p { margin: 0 0 16px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.login { min-height: calc(100vh - 40px); display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: min(400px, 100%); text-align: center; }
.login-card > img { width: 96px; height: 96px; display: block; margin: 0 auto 18px; }
.login-card h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 36px; letter-spacing: -0.035em; }
.login-card > p { margin: 6px 0 28px; color: var(--ink-2); }
.login-card form { text-align: left; }
.login-card .btn { width: 100%; margin-top: 8px; }
.demo-note { margin-top: 20px; font-size: 13px; color: var(--ink-3); text-align: center; line-height: 1.45; }
.form-error { color: var(--danger); font-size: 14px; min-height: 1.4em; margin: 6px 0 0; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); margin: 0 0 6px 4px; }
.field small { display: block; font-size: 13px; color: var(--ink-3); margin: 6px 0 0 4px; }
.input { width: 100%; border: 0; border-radius: 12px; background: var(--field); color: var(--ink); font: inherit; font-size: 17px; padding: 13px 14px; }
.login .input { background: var(--cell); }
textarea.input { resize: vertical; min-height: 96px; line-height: 1.45; }
textarea.input.tall { min-height: 220px; }
.input:focus { outline: 2px solid var(--sky); outline-offset: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggle-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; background: var(--field); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.toggle-row strong { display: block; font-weight: 600; font-size: 17px; }
.toggle-row span { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.switch { appearance: none; -webkit-appearance: none; flex: none; margin: 0; cursor: pointer; width: 51px; height: 31px; border-radius: 31px; background: var(--switch-off); position: relative; transition: background-color 0.2s ease; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.16); transition: transform 0.2s ease; }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); }
.editor h2 { margin: 0 44px 22px 0; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.03em; }
.editor-actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.editor-actions .grow { flex: 1; }
.danger-btn { background: none; border: 0; color: var(--danger); cursor: pointer; padding: 10px 0; font-size: 17px; }
.danger-btn.armed { font-weight: 700; }
.ghost-btn { background: var(--field); color: var(--ink); border: 0; border-radius: 999px; padding: 13px 22px; cursor: pointer; font-size: 17px; }

/* ---------- Floating menu ---------- */
.nav .wrap > .btn { margin-left: auto; }
.fmenu {
  position: fixed; z-index: 35;
  right: calc(16px + env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding: 6px;
  border-radius: 30px; background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 14px 40px -14px rgba(20, 30, 60, 0.4), inset 0 0 0 1px var(--line);
}
.fmenu a {
  display: flex; flex-direction: row-reverse; align-items: center;
  border-radius: 24px; color: var(--ink); text-decoration: none;
  transition: background-color 0.2s ease;
}
.fmenu a:hover { text-decoration: none; background: var(--mist); }
.fi { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s cubic-bezier(0.3, 1.5, 0.5, 1); }
.fi svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fmenu a:hover .fi { transform: scale(1.08); }
.fmenu a[aria-current="true"] .fi { background: var(--sun); color: var(--on-bright); }
.fl {
  display: block; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  font-weight: 650; font-size: 15px; padding-left: 0;
  transition: max-width 0.38s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.25s ease, padding 0.38s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fmenu a:nth-child(2) .fl { transition-delay: 30ms; }
.fmenu a:nth-child(3) .fl { transition-delay: 60ms; }
.fmenu a:nth-child(4) .fl { transition-delay: 90ms; }
@media (hover: hover) {
  .fmenu:hover .fl { max-width: 140px; opacity: 1; padding-left: 18px; }
}
.fmenu:has(a:focus-visible) .fl, .fmenu.peek .fl { max-width: 140px; opacity: 1; padding-left: 16px; }
.fmenu.peek a.tapped { background: var(--mist); }

/* ---------- Calls ---------- */
.calls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; margin-top: 48px; }
.call {
  position: relative; overflow: hidden; border-radius: 30px; padding: 28px;
  background: var(--paper); box-shadow: inset 0 0 0 2px var(--line);
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
html.js .call[data-reveal] { transition: opacity 0.8s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease; transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s; }
.call::before {
  content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%;
  right: -52px; top: -62px; background: var(--tc); transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.call:hover { box-shadow: inset 0 0 0 2px var(--tc); }
.call:hover::before { transform: scale(1.15) translate(-10px, 10px); }
.call > * { position: relative; }
.call h3 { margin: 6px 0 0; padding-right: 56px; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.04; letter-spacing: -0.03em; }
.call-proj { margin: 0; font-size: 15px; color: var(--ink-2); }
.call-proj strong { color: var(--ink); font-weight: 650; }
.call-sum { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.deadline { display: inline-flex; font-size: 13px; font-weight: 650; padding: 5px 12px; border-radius: 999px; background: var(--green-tint); color: var(--green-text); }
.deadline.closed { background: var(--field); color: var(--ink-2); }
.call-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.call.closed h3, .call.closed .call-sum { opacity: 0.6; }
.call.closed::before { opacity: 0.35; }
.t-sky { --tc: var(--sky); }
.t-sun { --tc: var(--sun); }
.t-deep { --tc: var(--deep); }
.t-mist { --tc: var(--sky-soft); }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.proj {
  position: relative; overflow: hidden; text-align: left; border: 0; cursor: pointer;
  border-radius: 32px; padding: 32px; min-height: 300px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  background: var(--pc-bg); color: var(--pc-ink);
}
.proj::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px;
  border-radius: 50%; border: 34px solid var(--ring, rgba(255, 255, 255, 0.35));
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); pointer-events: none;
}
.proj:hover::after { transform: scale(1.2) translate(-16px, 18px); }
.proj > span { position: relative; z-index: 1; }
.pc-sun { --pc-bg: var(--sun); --pc-ink: var(--on-bright); }
.pc-sky { --pc-bg: var(--sky); --pc-ink: var(--on-bright); }
.pc-deep { --pc-bg: var(--deep); --pc-ink: var(--on-deep); --ring: rgba(255, 201, 60, 0.26); }
.pc-mist { --pc-bg: var(--mist); --pc-ink: var(--ink); --ring: rgba(59, 188, 242, 0.25); }
.proj-meta { display: flex; flex-wrap: wrap; gap: 8px; padding-right: 90px; }
.tag { font-size: 13px; font-weight: 650; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); color: var(--on-bright); }
.pc-deep .tag { background: rgba(255, 255, 255, 0.12); color: var(--on-deep); }
.pc-mist .tag { background: var(--paper); color: var(--ink); }
.proj-title { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; letter-spacing: -0.04em; }
.proj-sum { display: -webkit-box; margin-top: 12px; max-width: 30em; font-size: 17px; line-height: 1.45; opacity: 0.85; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.proj-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 650; font-size: 15px; }
.proj-arrow { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.6); color: var(--on-bright); transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1); }
.pc-deep .proj-arrow { background: var(--sun); }
.pc-mist .proj-arrow { background: var(--sky); }
.proj-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.proj:hover .proj-arrow { transform: translateX(5px); }

/* ---------- Detail sheet ---------- */
.article .date + .date { margin-top: 2px; }
.detail-h { margin: 30px 0 4px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.detail-text p { margin: 0.7em 0 0; font-size: 17px; line-height: 1.6; }
.detail-text ul { margin: 10px 0 0; padding: 0; list-style: none; }
.detail-text li { position: relative; padding-left: 22px; margin-top: 8px; line-height: 1.5; }
.detail-text li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--sun-deep); }
.detail-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.detail-calls { margin-top: 12px; }
.detail-calls .group { background: var(--field); }

/* ---------- Admin tabs ---------- */
.seg { display: flex; padding: 3px; border-radius: 12px; background: var(--field); margin-bottom: 24px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 8px 10px; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg button[aria-selected="true"] { background: var(--cell); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }

@media (max-width: 900px) {
  .fmenu { top: auto; transform: none; right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 5px; }
  .fi { width: 42px; height: 42px; }
  .fi svg { width: 20px; height: 20px; }
  .projects { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .fl, .fi, .call::before, .proj::after, .proj-arrow { transition: none; }
}

/* ---------- Tabs ---------- */
.nav .wrap > .btn { margin-left: 0; }
.tabs { display: flex; gap: 28px; margin-left: auto; margin-right: 6px; }
.tabs a { position: relative; padding: 6px 0; color: var(--ink); font-weight: 600; font-size: 15px; opacity: 0.75; white-space: nowrap; transition: opacity 0.2s ease; }
.tabs a:hover { opacity: 1; text-decoration: none; }
.tabs a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px;
  background: var(--sun); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tabs a:hover::after { transform: scaleX(0.4); }
.tabs a[aria-current="page"] { opacity: 1; font-weight: 750; }
.tabs a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Views ---------- */
html.js .view.enter { animation: view-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.page-hero { position: relative; overflow: hidden; padding: 168px 0 72px; }
.page-hero .wrap { position: relative; }
.h-page { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(60px, 11vw, 150px); line-height: 0.88; letter-spacing: -0.055em; }
.page-hero .lead { margin-top: 24px; }
.ph-deco { position: absolute; inset: calc(env(safe-area-inset-top, 0px) + 76px) 0 0; overflow: hidden; pointer-events: none; }
@media (max-width: 760px) { .ph-deco { top: calc(env(safe-area-inset-top, 0px) + 112px); } }
.ph-deco i, .ph-deco b { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.ph-deco i { width: 380px; height: 380px; right: -90px; top: -110px; background: var(--d1); }
.ph-deco b { width: 220px; height: 220px; right: 230px; top: 150px; border: 40px solid var(--d2); }
.deco-a { --d1: var(--sun); --d2: var(--sky); }
.deco-b { --d1: var(--sky); --d2: var(--sun); }
.deco-c { --d1: var(--sky); --d2: var(--sun); }
html.js .view.enter .ph-deco i { animation: grow 1s cubic-bezier(0.3, 1.3, 0.5, 1) both; }
html.js .view.enter .ph-deco b { animation: grow 1s 0.12s cubic-bezier(0.3, 1.3, 0.5, 1) both; }
@keyframes grow { from { opacity: 0; scale: 0.4; } to { opacity: 1; scale: 1; } }
.page-body { padding-bottom: 150px; }
.page-note { margin: 48px 0 0; color: var(--ink-2); }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; max-width: none; }
.row-head .lead { max-width: 32em; }
.head-actions { display: flex; align-items: center; gap: 10px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.fchip {
  border: 0; cursor: pointer; padding: 10px 17px; border-radius: 999px;
  background: var(--mist); color: var(--ink); font-weight: 600; font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.fchip:hover { transform: translateY(-2px); }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.fchip .n { margin-left: 7px; opacity: 0.6; font-weight: 500; }
.fchip.toggle { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.fchip.toggle[aria-pressed="true"] { background: var(--sun); color: var(--on-bright); box-shadow: none; }

/* Full call */
.call-list { display: flex; flex-direction: column; gap: 24px; }
.cfull {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(240px, 0.85fr) 1.4fr; gap: 44px;
  padding: 40px; border-radius: 34px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line);
}
.cfull::before {
  content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; left: -70px; bottom: -90px;
  background: var(--tc); opacity: 0.9; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cfull:hover::before { transform: scale(1.12) translate(10px, -10px); }
.cfull > * { position: relative; }
.cf-side { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 60px; }
.cf-title { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.2vw, 42px); line-height: 1; letter-spacing: -0.035em; }
.cf-side .btn { margin-top: 10px; }
.cf-main .detail-h:first-child { margin-top: 0; }
.cfull.closed .cf-title { opacity: 0.6; }
.cfull.closed::before { opacity: 0.3; }
.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 60% { box-shadow: inset 0 0 0 4px var(--sun); } 100% { box-shadow: inset 0 0 0 2px var(--line); } }

/* Full project */
.pgroup + .pgroup { margin-top: 72px; }
.pg-title { margin: 0 0 24px; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.03em; }
.pg-title .n { display: inline-grid; place-items: center; min-width: 34px; height: 34px; margin-left: 10px; padding: 0 10px; border-radius: 999px; background: var(--mist); font-size: 17px; vertical-align: middle; }
.pfull-list { display: flex; flex-direction: column; gap: 24px; }
.pfull { display: grid; grid-template-columns: 0.85fr 1.3fr; border-radius: 34px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.pf-visual {
  position: relative; overflow: hidden; min-height: 300px; padding: 34px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  background: var(--pc-bg); color: var(--pc-ink);
}
.pf-visual::after {
  content: ""; position: absolute; width: 240px; height: 240px; right: -80px; bottom: -90px;
  border-radius: 50%; border: 32px solid var(--ring, rgba(255, 255, 255, 0.35));
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pfull:hover .pf-visual::after { transform: scale(1.15) translate(-12px, -12px); }
.pf-visual > * { position: relative; z-index: 1; }
.pf-main { padding: 36px 40px 40px; }
.pf-main .detail-text p:first-child { margin-top: 0; }
.pf-calls { margin-top: 8px; }
.pf-calls .group { background: var(--mist); }

/* News grid */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 32px 24px; }
.news-grid .ncard { flex: none; width: auto; }
.news-grid .ncard.first { grid-column: span 2; }
.news-grid .ncard.first .art { height: 320px; }

@media (max-width: 900px) {
  .cfull, .pfull { grid-template-columns: 1fr; }
  .cfull { gap: 24px; padding: 30px 26px; }
  .cf-side { padding-bottom: 0; }
  .cfull::before { left: auto; right: -70px; bottom: auto; top: -90px; }
  .pf-visual { min-height: 220px; }
  .pf-main { padding: 28px 26px 32px; }
  .news-grid .ncard.first { grid-column: auto; }
  .news-grid .ncard.first .art { height: 240px; }
  .ph-deco i { width: 240px; height: 240px; right: -90px; top: -60px; }
  .ph-deco b { width: 130px; height: 130px; border-width: 26px; right: 90px; top: 150px; }
}
@media (max-width: 760px) {
  .nav .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; row-gap: 2px; justify-content: space-between; }
  .tabs { order: 3; width: calc(100% + 48px); margin: 0 -24px; padding: 4px 24px 10px; gap: 22px; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 118px); }
  .hero-grid { padding-top: 116px; }
  .page-hero { padding: 150px 0 48px; }
  .head-actions .round { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .view.enter, html.js .view.enter .ph-deco i, html.js .view.enter .ph-deco b, .flash { animation: none; }
  .tabs a::after, .fchip, .cfull::before, .pf-visual::after { transition: none; }
}


/* ---------- Images ---------- */
.art.has-img img, .sheet-art.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ncard:hover .art.has-img img { transform: scale(1.05); }
.sheet-art.has-img { height: 300px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 28px; }
.gallery button { display: block; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--field); }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s ease; }
.gallery button:hover img { transform: scale(1.05); }
.call.has-img::before { display: none; }
.call-img { display: block; position: relative; overflow: hidden; margin: -28px -28px 6px; width: calc(100% + 56px); height: 180px; background: var(--field); }
.call-img img, .cf-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cf-img { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--field); margin-bottom: 6px; }
.proj > .cover-img, .proj > .cover-shade, .pf-visual > .cover-img, .pf-visual > .cover-shade { position: absolute; inset: 0; z-index: 0; }
.cover-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cover-shade { display: block; background: linear-gradient(180deg, rgba(10, 16, 30, 0.1) 0%, rgba(10, 16, 30, 0.72) 100%); }
.proj.has-img, .pf-visual.has-img { color: #ffffff; }
.proj.has-img::after, .pf-visual.has-img::after { display: none; }
.proj.has-img:hover .cover-img, .pfull:hover .pf-visual.has-img .cover-img { transform: scale(1.05); }
.has-img .tag { background: rgba(255, 255, 255, 0.88); color: #1d1d22; }
.proj.has-img .proj-sum { opacity: 0.92; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(5, 8, 15, 0.88); }
dialog.lightbox img { display: block; max-width: 96vw; max-height: 88vh; border-radius: 16px; object-fit: contain; }
dialog.lightbox .close { top: -46px; right: 0; }

.img-field .lbl { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); margin: 0 0 6px 4px; }
.img-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { position: relative; flex: none; width: 108px; height: 108px; border-radius: 14px; overflow: hidden; background: var(--field); }
.img-field.single .thumb { width: 190px; height: 128px; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(0, 0, 0, 0.62); color: #fff; }
.thumb-x svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.thumb.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer; background: transparent; box-shadow: inset 0 0 0 2px var(--line); color: var(--link); font-size: 14px; font-weight: 600; text-align: center; padding: 8px; }
.thumb.add:hover { background: var(--field); }
.thumb.add svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.thumb.loading { display: grid; place-items: center; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--sky); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .art.has-img img, .gallery img, .cover-img { transition: none; } .spinner { animation-duration: 2s; } }

.about-teaser { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.about-teaser .btn { margin-top: 28px; }
@media (max-width: 900px) { .about-teaser { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 760px) { .tabs { gap: 18px; } }


/* ---------- Project detail ---------- */
.pfull { grid-template-columns: 1fr; }
.pf-visual { min-height: 280px; padding: 32px 36px; }
.pf-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pf-top .proj-meta { padding-right: 0; justify-content: flex-end; }
.pf-logo { display: grid; place-items: center; flex: none; width: 128px; height: 128px; padding: 14px; border-radius: 26px; background: #ffffff; box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.35); }
.pf-logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.pf-kicker { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; opacity: 0.75; }
.pf-visual .proj-title { font-size: clamp(34px, 4.4vw, 60px); }
.pf-main { padding: 36px; }
.pf-cols { display: grid; grid-template-columns: minmax(240px, 330px) 1fr; gap: 40px; align-items: start; }
.pf-cols.solo { grid-template-columns: 1fr; }
.pf-aside { background: var(--mist); border-radius: 24px; padding: 26px; }
.pf-aside > .detail-h { margin-top: 24px; }
.pf-facts { margin: 0; display: grid; gap: 14px; }
.pf-facts dt { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.pf-facts dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.pf-partners { list-style: none; margin: 8px 0 0; padding: 0; }
.pf-partners li { position: relative; padding-left: 20px; margin-top: 8px; line-height: 1.45; }
.pf-partners li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.pf-body .detail-h:first-child { margin-top: 0; }
.pf-calls { margin-top: 36px; padding-top: 4px; border-top: 2px solid var(--line); }
.proj > .proj-logo { position: absolute; top: 22px; right: 22px; z-index: 2; display: grid; place-items: center; width: 76px; height: 76px; padding: 10px; border-radius: 20px; background: #ffffff; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.35); }
.proj-logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.proj.has-logo::after { display: none; }
.proj.has-logo .proj-meta { padding-right: 110px; }
@media (max-width: 900px) {
  .pf-cols { grid-template-columns: 1fr; gap: 28px; }
  .pf-visual { min-height: 240px; padding: 26px; }
  .pf-main { padding: 26px; }
  .pf-logo { width: 92px; height: 92px; border-radius: 20px; padding: 10px; }
  .proj > .proj-logo { width: 60px; height: 60px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav .wrap { justify-content: space-between; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; padding-top: 84px; }
  .hero-copy { display: contents; }
  .hero-block.a { order: 1; }
  .lock-col { order: 2; }
  .hero-block.b { order: 3; }
  .lock-art { position: relative; top: auto; margin: 8px auto; width: min(68vw, 290px); }
  .hero-block { min-height: 0; padding: 28px 0 40px; }
  .hero-block.b { min-height: 0; padding: 32px 0 80px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar:nth-child(n) { grid-column: auto; min-height: 280px; }
  .about-foot { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 84px 0; }
  .h-hero { font-size: clamp(44px, 13vw, 64px); }
  .hero-lead { margin-top: 18px; font-size: 17px; }
  .hero-actions { margin-top: 22px; }
  .step { grid-template-columns: 1fr; align-items: start; gap: 8px; border-radius: 32px; min-height: 52vh; }
  .step-n { font-size: 120px; }
  .rail-ctrl { display: none; }
  .scroll-hint { display: none; }
  .badge { width: 160px; height: 160px; }
  .badge img { width: 92px; height: 92px; left: 34px; top: 34px; }
  .cta { border-radius: 36px 36px 0 0; padding: 96px 0 150px; }
  .footer { border-radius: 36px 36px 0 0; }
  dialog.sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 92vh; }
  .sheet-scroll { padding: 32px 22px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .sheet-art { margin: -32px -22px 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Reduced motion ---------- */
html.rm .scroll-hint { display: none; }
html.rm .ring { stroke-dashoffset: 0; opacity: 1; }
html.rm #keyhole { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html.js .h-hero .line, html.js .ring, html.js .say .ch, html.js .say.in .ch, dialog.sheet[open], .scroll-hint i::after { animation: none; opacity: 1; transform: none; }
  html.js [data-reveal], html.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: none; transition: none; }
  .btn, .round, .social, .pillar::after, .art i, .art b, .toast, .switch, .switch::after { transition: none; }
}

/* ---------- Mobile: keep text clear of graphics ---------- */
@media (max-width: 400px) { .tabs { gap: 14px; } .tabs a { font-size: 14px; } }
@media (max-width: 760px) {
  .page-hero { padding-top: calc(112px + 150px); }
  .ph-deco i { width: 150px; height: 150px; right: -40px; top: -30px; }
  .ph-deco b { width: 88px; height: 88px; border-width: 18px; right: 118px; top: 28px; }
  .ph-deco i, .ph-deco b { transform: none !important; }
  .say { font-size: clamp(64px, 19vw, 120px); }
  .cta { padding-top: 140px; }
  .cta-sun { width: 190px; height: 190px; right: -60px; top: -80px; transform: none !important; }
  .cta-ring { width: 120px; height: 120px; border-width: 22px; left: -60px; bottom: 6px; transform: none !important; }
  .call::before { width: 116px; height: 116px; right: -48px; top: -60px; }
  .call h3 { padding-right: 0; }
  .call > .chip { margin-right: 60px; }
  .cfull::before { width: 130px; height: 130px; right: -56px; top: -76px; left: auto; bottom: auto; }
  .cf-side > .chip { margin-right: 60px; }
  .pillar::after { width: 140px; height: 140px; border-width: 22px; top: -62px; right: -52px; bottom: auto; }
  .proj::after { width: 150px; height: 150px; border-width: 22px; right: -62px; top: -70px; }
  .proj .proj-meta { padding-right: 70px; }
  .proj.has-logo .proj-meta { padding-right: 76px; }
  .pf-visual::after { width: 140px; height: 140px; border-width: 22px; right: -58px; bottom: -66px; }
  .pf-visual .proj-title { padding-right: 64px; overflow-wrap: anywhere; }
  .pf-top { flex-wrap: wrap; }
  .blob { opacity: calc(var(--blob-o) * 0.7); }
  .h-hero, .h-page, .h2, .proj-title, .cf-title, .nc-title, .call h3 { overflow-wrap: anywhere; hyphens: auto; }
}

/* Admin: tko je prijavljen (Cloudflare Access) */
.admin-who { min-width: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.link-btn { text-decoration: none; }
.login-card > .btn { display: inline-flex; width: auto; }
@media (max-width: 560px) { .admin-who { display: none; } }
