/* swiss-dev.ch – design system (matches the approved canvas mockup) */

:root {
    --ink: #1A1D1F;
    --muted: #5B6770;
    --ground: #F2F3F4;
    --white: #FFFFFF;
    --line: #D5D9DC;
    --line-soft: #E6E9EB;
    --accent: #D41F2B;
    --accent-soft: #FCE9EA;
    --accent-ink: #A3121C;
    --on-dark-muted: #C9CED2;
    --gold: #F2B33D;
    --steel: #8E9BA3;

    --r-sm: 22px;
    --r: 28px;
    --r-lg: 32px;
    --r-xl: 40px;
    --pill: 999px;
    --gap: clamp(12px, 2vw, 20px);
    --pad-x: clamp(16px, 4vw, 48px);
    --shadow: 0 8px 24px rgba(26, 29, 31, .06);

    --font: 'Ubuntu', 'Helvetica Neue', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--muted); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.container { max-width: 1320px; margin-inline: auto; }
.section { padding: clamp(40px, 6vw, 80px) var(--pad-x) 0; }
.section--hero { padding-top: clamp(20px, 3vw, 32px); }
.section--page-hero { padding-top: clamp(28px, 5vw, 64px); }
.stack { display: flex; flex-direction: column; gap: var(--stack, 24px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--row-gap, 10px); }
.row--between { justify-content: space-between; align-items: flex-end; gap: 16px; }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr)); }
.grid--fill { grid-template-columns: repeat(auto-fill, minmax(min(var(--min-mobile, 100%), var(--min, 270px)), 1fr)); }
.grid--projects { --min: 270px; --min-mobile: 46%; gap: clamp(12px, 2vw, 24px); }

/* ---------- type ---------- */
.h1 { font-size: clamp(44px, 6vw, 88px); line-height: 1; font-weight: 700; letter-spacing: -.035em; max-width: 18ch; }
.h1--hero { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.05; letter-spacing: -.025em; max-width: none; }
.h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -.025em; }
.h2--xl { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.03em; }
.h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 46ch; }
.lead--wide { max-width: 56ch; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.crumb { font-size: 14px; color: var(--muted); }
.crumb a { color: var(--muted); }

/* ---------- surfaces ---------- */
.card { background: var(--white); border-radius: var(--r); }
.card--xl { border-radius: var(--r-xl); }
.card--pad { padding: 28px; }
.card--pad-lg { padding: clamp(28px, 4.5vw, 64px); }
.dark { background: var(--ink); color: var(--white); }
.dark .lead, .dark .muted { color: var(--on-dark-muted); }
/* white cards inside dark sections use the normal (dark) muted colour again */
.dark .card .lead, .dark .card .muted { color: var(--muted); }
.red { background: var(--accent); color: var(--white); }
.soft { background: var(--accent-soft); }

/* ---------- pills / buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 24px; border-radius: var(--pill); border: 1px solid transparent;
    font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn svg { transition: transform .2s ease; }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--outline { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .28); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--accent:hover, .btn--dark:hover, .btn--ghost:hover { color: var(--white); }
.btn--outline:hover, .btn--white:hover { color: var(--ink); }
@media (hover: hover) {
    .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26, 29, 31, .14); }
    .btn:hover svg { transform: translateX(3px); }
}
.btn.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.chip { display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; background: var(--ground); color: var(--muted); padding: 5px 12px; border-radius: var(--pill); }
.chip--lg { font-size: 17px; padding: 12px 22px; color: var(--ink); }
.chip--white { background: var(--white); }
.chip.dark { background: var(--ink); color: var(--white); }
.eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent-ink); padding: 8px 16px; border-radius: var(--pill); font-size: 14px; font-weight: 500; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: var(--pill); background: var(--accent); }
.badge { display: inline-flex; font-size: 14px; font-weight: 700; color: var(--white); background: var(--accent); padding: 4px 12px; border-radius: var(--pill); }
.icon-circle { width: 52px; height: 52px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
/* round avatar; wide team photos are zoomed onto the face (heads sit in the middle, ~40 % from the top) */
.avatar { width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--pill); overflow: hidden; background: var(--line-soft); display: inline-block; }
.avatar img { width: 100%; height: 100% !important; object-fit: cover; }
.avatar--wide img { transform: scale(2.6); transform-origin: 50% 36%; } /* wide group-style photos only */
.icon-btn { width: 44px; height: 44px; border-radius: var(--pill); background: var(--ground); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- header ---------- */
.site-header { padding: 16px var(--pad-x) 0; position: sticky; top: 0; z-index: 20; transition: transform .4s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
/* smart sticky: hides while scrolling down, comes back when scrolling up (site.js) */
.site-header.is-hidden { transform: translateY(calc(-100% - 12px)); }
.site-header .nav { transition: box-shadow .3s ease, background-color .3s ease; }
.site-header.is-scrolled .nav { box-shadow: 0 10px 30px rgba(26, 29, 31, .12); background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
.nav { max-width: 1320px; margin: 0 auto; background: var(--white); border-radius: var(--pill); padding: 8px 8px 8px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: var(--shadow); }
.nav__logo img { height: 44px; width: auto; }
.nav__links { display: flex; gap: 4px; font-size: 16px; font-weight: 500; }
.nav__links a { text-decoration: none; color: var(--ink); padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--pill); }
.nav__links a[aria-current="page"], .nav__links a:hover { background: var(--ground); }
.nav__toggle { display: none; border: 0; background: var(--ground); color: var(--ink); width: 44px; height: 44px; border-radius: var(--pill); align-items: center; justify-content: center; cursor: pointer; }
.nav__badge { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--white); background: var(--accent); min-width: 20px; height: 20px; border-radius: var(--pill); display: inline-flex; align-items: center; justify-content: center; }

.menu { display: none; }
@media (max-width: 1080px) {
    .site-header { padding: 12px 12px 0; }
    .nav { padding: 6px 6px 6px 18px; }
    .nav__logo img { height: 32px; }
    .nav__links, .nav__cta-label { display: none; }
    .nav__toggle { display: inline-flex; }
    .nav .btn--accent { min-height: 44px; padding: 0 18px; font-size: 15px; }
    /* bubble menu: grows as a circle out of the menu button (--mx/--my set by site.js), items pop in with a spring */
    .menu { --mx: calc(100% - 34px); --my: 34px; --spring: cubic-bezier(.34, 1.56, .64, 1);
        display: flex; position: fixed; inset: 0; z-index: 50; padding: 12px; flex-direction: column; gap: 12px; overflow-y: auto;
        background: rgba(242, 243, 244, .9); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
        clip-path: circle(0 at var(--mx) var(--my)); visibility: hidden; opacity: 0;
        /* close: everything fades together while the bubble shrinks back into the button – no empty white phase */
        transition: opacity .22s ease, clip-path .34s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .34s; }
    .menu[data-open="true"] { clip-path: circle(150% at var(--mx) var(--my)); visibility: visible; opacity: 1;
        transition: opacity .15s ease, clip-path .7s cubic-bezier(.16, 1, .3, 1), visibility 0s; }
    /* items reset only after the menu is hidden, so they stay visible while it closes */
    .menu > *, .menu__links a { opacity: 0; transform: translateY(22px) scale(.86); transition: opacity 0s linear .34s, transform 0s linear .34s; }
    .menu[data-open="true"] > *, .menu[data-open="true"] .menu__links a { opacity: 1; transform: none; transition: opacity .4s ease, transform .65s var(--spring); }
    .menu[data-open="true"] > :nth-child(1) { transition-delay: .05s; }
    .menu[data-open="true"] > :nth-child(2) { transition-delay: .1s; }
    .menu[data-open="true"] .menu__links a:nth-child(1) { transition-delay: .16s; }
    .menu[data-open="true"] .menu__links a:nth-child(2) { transition-delay: .22s; }
    .menu[data-open="true"] .menu__links a:nth-child(3) { transition-delay: .28s; }
    .menu[data-open="true"] .menu__links a:nth-child(4) { transition-delay: .34s; }
    .menu[data-open="true"] .menu__links a:nth-child(5) { transition-delay: .4s; }
    .menu[data-open="true"] > :nth-child(3) { transition-delay: .46s; }
    .menu__links a .icon-btn { transition: transform .45s var(--spring), background-color .2s ease; }
    .menu[data-open="true"] .menu__links a .icon-btn { animation: menu-bubble .7s var(--spring) both; }
    .menu[data-open="true"] .menu__links a:nth-child(1) .icon-btn { animation-delay: .26s; }
    .menu[data-open="true"] .menu__links a:nth-child(2) .icon-btn { animation-delay: .32s; }
    .menu[data-open="true"] .menu__links a:nth-child(3) .icon-btn { animation-delay: .38s; }
    .menu[data-open="true"] .menu__links a:nth-child(4) .icon-btn { animation-delay: .44s; }
    .menu[data-open="true"] .menu__links a:nth-child(5) .icon-btn { animation-delay: .5s; }
    .menu__links a:active .icon-btn, .menu__links a:hover .icon-btn { transform: translateX(4px) scale(1.08); background: var(--accent-soft); }
    .menu__links a:active { transform: scale(.97); transition: transform .12s ease; }
    .menu > .nav { width: 100%; max-width: none; margin: 0; flex-shrink: 0; }
    .menu .nav__toggle { transition: transform .5s var(--spring); }
    .menu[data-open="true"] .nav__toggle { transform: rotate(90deg); transition-delay: .2s; }
    .nav__toggle[aria-expanded="true"] { transform: scale(.6); opacity: 0; transition: transform .25s ease, opacity .15s ease; }
    .nav__toggle { transition: transform .45s var(--spring, cubic-bezier(.34, 1.56, .64, 1)), opacity .3s ease; }
}
.menu__links { background: var(--white); border-radius: var(--r-lg); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.menu__links a { text-decoration: none; color: var(--ink); display: flex; justify-content: space-between; align-items: center; min-height: 64px; padding: 0 8px 0 16px; border-radius: 24px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.menu__links a[aria-current="page"] { background: var(--ground); }
body.menu-open { overflow: hidden; }

/* ---------- jubilee banner ---------- */
.jubilee { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 14px 14px clamp(20px, 3vw, 32px); border-radius: var(--r-lg); text-decoration: none; color: var(--white); background: var(--ink); }
.jubilee:hover { color: var(--white); }
.jubilee__lead { position: relative; display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); }
.jubilee__num { font-size: clamp(48px, 5vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--accent); animation: jubi-color 8s ease-in-out infinite; }
.jubilee__title { font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: -.01em; }
.jubilee .btn { position: relative; }
@keyframes jubi-color { 0%, 100% { color: var(--accent); } 25% { color: var(--gold); } 50% { color: var(--white); } 75% { color: var(--steel); } }
.cf-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; contain: strict; transform: translateZ(0); }
.cf-col { position: absolute; top: 0; height: 100%; display: flex; align-items: flex-end; will-change: transform; animation: cf-fall linear infinite; }
.cf { display: block; will-change: transform; animation: cf-spin ease-in-out infinite alternate; }
@keyframes cf-fall { from { transform: translate3d(0, -100%, 0); } to { transform: translate3d(0, 24px, 0); } }
@keyframes cf-spin { from { transform: translateX(-6px) rotate(0deg); } to { transform: translateX(6px) rotate(320deg); } }

/* ---------- hero ---------- */
.hero { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); }
.hero__text { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.hero__visual { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: flex-end; justify-content: center; padding-top: 96px; border-radius: var(--r-xl); background: var(--accent); }
.hero__visual--detail { min-height: 600px; padding-top: 72px; }
.phone { width: min(300px, 72%); border-radius: 44px 44px 0 0; border: 10px solid var(--ink); border-bottom: 0; background: var(--ink); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.phone img { width: 100%; border-radius: 34px 34px 0 0; }
.float-card { position: absolute; left: 20px; top: 20px; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 22px; background: var(--white); color: var(--ink); text-decoration: none; box-shadow: 0 12px 32px rgba(0, 0, 0, .15); }
.float-card img { width: 48px; height: 48px; border-radius: 12px; }
.float-tags { position: absolute; right: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.float-tags span { background: rgba(255, 255, 255, .95); color: var(--ink); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: var(--pill); }

/* ---------- cards ---------- */
.pcard { display: flex; flex-direction: column; padding: 8px; border-radius: var(--r); background: var(--white); color: var(--ink); text-decoration: none; transition: transform .35s ease, box-shadow .35s ease; }
.pcard:hover { color: var(--ink); }
.pcard__media { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 5; background: var(--line-soft); }
.pcard__media--team { aspect-ratio: 4 / 3; }
.pcard__media--wide { display: flex; align-items: center; justify-content: center; padding: 14px; background: var(--ground); }
.pcard__media--wide img { height: auto !important; border-radius: 10px; box-shadow: 0 8px 24px rgba(26, 29, 31, .12); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: filter .35s ease, transform .5s ease; }
.pcard__media--team img { object-position: center 40%; }
.pcard__body { padding: 16px 12px 12px; display: flex; flex-direction: column; gap: 12px; }
.pcard__title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
@media (hover: hover) {
    .pcard__media img { filter: grayscale(1) contrast(1.25) brightness(.96); }
    .pcard:hover, .pcard:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(26, 29, 31, .10); }
    .pcard:hover img, .pcard:focus-visible img { filter: none; transform: scale(1.03); }
}
.placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }
.placeholder strong { font-size: 40px; }

.product-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 20px 20px 24px; text-decoration: none; color: var(--ink); }
.monogram { width: 64px; height: 64px; border-radius: 20px; background: var(--ink); color: var(--white); font-size: 30px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); overflow: hidden; }
.feature__visual { background: var(--accent); min-height: 420px; display: flex; align-items: flex-end; justify-content: center; padding-top: 48px; }

.step-num { align-self: flex-start; }
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.checklist li::before { content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: var(--pill); background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D41F2B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center no-repeat; }
.checklist span { padding-top: 3px; }

/* ---------- history slider ---------- */
.slider { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); padding: clamp(24px, 4.5vw, 56px); border-radius: var(--r-xl); }
.slide { display: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(16px, 3vw, 48px); align-items: center; min-height: 260px; }
.slide.is-active, .no-js .slide:first-child { display: grid; }
.slide__year { font-size: clamp(88px, 14vw, 200px); line-height: .9; font-weight: 700; letter-spacing: -.05em; color: var(--accent); }
.slide__year--sm { font-size: clamp(64px, 8vw, 120px); }
.slider { position: relative; overflow: hidden; }
.slide--jubilee > *:not(.cf-layer) { position: relative; }
.slide__year.jubilee__num { font-size: clamp(88px, 14vw, 200px); line-height: .9; letter-spacing: -.05em; }
.slide__year--sm.jubilee__num { font-size: clamp(64px, 8vw, 120px); }
.slide--media { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }
.slide__media { display: flex; flex-direction: column; gap: 8px; }
.slide__main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; background: rgba(255, 255, 255, .06); }
.slide__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slide__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.slider__progress { height: 4px; border-radius: var(--pill); background: rgba(255, 255, 255, .14); overflow: hidden; }
.slider__progress span { display: block; height: 100%; background: var(--accent); border-radius: var(--pill); transition: width .35s ease; }
.slider .btn--year { border-color: rgba(255, 255, 255, .2); color: var(--on-dark-muted); background: transparent; min-height: 44px; padding: 0 16px; font-size: 15px; }
.slider .btn--year[aria-current="true"] { background: var(--white); color: var(--ink); }
.round-btn { width: 52px; height: 52px; border-radius: var(--pill); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: var(--white); }
.round-btn--white { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- project detail ---------- */
.browser { width: min(92%, 640px); margin-bottom: 40px; border-radius: 16px; overflow: hidden; background: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.browser__bar { display: flex; gap: 6px; padding: 12px 14px; }
.browser__bar span { width: 10px; height: 10px; border-radius: var(--pill); background: rgba(255, 255, 255, .25); }
.browser img { width: 100%; }
.hero__visual--browser { align-items: center; padding-top: 48px; }
.shots { display: flex; gap: clamp(12px, 2vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; scrollbar-width: thin; }
.shots .zoom { flex: 0 0 auto; scroll-snap-align: start; border-radius: 22px; }
.shots img { height: clamp(320px, 42vw, 520px); width: auto; border-radius: 22px; background: var(--line-soft); box-shadow: 0 10px 30px rgba(26, 29, 31, .10); }
.shots--wide img { height: clamp(220px, 30vw, 380px); border-radius: 14px; }

/* ---------- lightbox ---------- */
.zoom { position: relative; display: block; border-radius: inherit; cursor: zoom-in; }
.zoom__icon { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: var(--pill); background: rgba(26, 29, 31, .7); color: var(--white); display: inline-flex; align-items: center; justify-content: center; opacity: .85; transition: opacity .2s ease, transform .2s ease; }
.zoom:hover .zoom__icon, .zoom:focus-visible .zoom__icon { opacity: 1; transform: scale(1.06); }
.zoom__more { position: absolute; inset: 0; border-radius: 16px; background: rgba(26, 29, 31, .6); color: var(--white); font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(16px, 4vw, 48px); border: 0; background: transparent; color: var(--white); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lightbox::backdrop { background: rgba(10, 12, 13, .92); }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.lightbox__caption { font-size: 15px; color: var(--on-dark-muted); text-align: center; min-height: 1.5em; }
.lightbox__btn { position: fixed; width: 52px; height: 52px; border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, .28); background: rgba(26, 29, 31, .6); color: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__btn[hidden] { display: none; }
body.lightbox-open { overflow: hidden; }

/* ---------- history slider transitions ---------- */
.slider[data-dir] .slide.is-active .slide__year { animation: hist-year-next .75s cubic-bezier(.16, 1, .3, 1) both; }
.slider[data-dir="prev"] .slide.is-active .slide__year { animation-name: hist-year-prev; }
.slider[data-dir] .slide.is-active .stack > * { animation: hist-text .6s cubic-bezier(.16, 1, .3, 1) both; }
.slider[data-dir] .slide.is-active .stack > :nth-child(2) { animation-delay: .06s; }
.slider[data-dir] .slide.is-active .stack > :nth-child(3) { animation-delay: .12s; }
.slider[data-dir] .slide.is-active .stack > :nth-child(4) { animation-delay: .18s; }
.slider[data-dir] .slide.is-active .stack > :nth-child(5) { animation-delay: .24s; }
.slider[data-dir] .slide.is-active .slide__media { animation: hist-media .8s cubic-bezier(.16, 1, .3, 1) .1s both; }
.slider[data-dir] .slide.is-active .stack > .slide__year { animation: hist-year-next .75s cubic-bezier(.16, 1, .3, 1) both; }
.slider[data-dir="prev"] .slide.is-active .stack > .slide__year { animation-name: hist-year-prev; }
.slider[data-dir] .slide.is-active .slide__year.jubilee__num { animation: hist-year-next .75s cubic-bezier(.16, 1, .3, 1) both, jubi-color 8s ease-in-out infinite; }
.slider[data-dir="prev"] .slide.is-active .slide__year.jubilee__num { animation-name: hist-year-prev, jubi-color; }
@keyframes hist-year-next { from { opacity: 0; transform: translateX(70px) scale(.92); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hist-year-prev { from { opacity: 0; transform: translateX(-70px) scale(.92); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hist-text { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hist-media { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.slider__progress span { transition: width .6s cubic-bezier(.16, 1, .3, 1); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.field input, .field textarea { font: 16px/1.5 var(--font); color: var(--ink); background: var(--ground); border: 1px solid transparent; border-radius: 16px; padding: 14px 16px; min-height: 52px; width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.field--error input, .field--error textarea { border-color: var(--accent); }
.field__error, .form-error { color: var(--accent-ink); font-size: 14px; font-weight: 500; }
.form-error { background: var(--accent-soft); padding: 12px 16px; border-radius: 16px; }
.topic { position: relative; }
.topic input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.topic span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--white); font-size: 15px; font-weight: 500; }
.topic input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.topic input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- rich text ---------- */
.prose { font-size: 18px; line-height: 1.65; max-width: 70ch; }
.prose p + p { margin-top: 20px; }
.prose h2 { font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 12px 0; padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--accent-ink); }

/* ---------- footer ---------- */
.site-footer { padding: clamp(40px, 6vw, 80px) var(--pad-x) 24px; }
.footer { display: flex; flex-direction: column; gap: 40px; padding: clamp(28px, 4vw, 48px); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.footer__col { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.footer__col h2 { font-size: 13px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-bottom: 6px; }
.footer__col a { color: var(--ink); text-decoration: none; font-size: 15px; min-height: 36px; display: inline-flex; align-items: center; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 24px; font-size: 14px; color: var(--muted); }
.footer__legal a { color: var(--muted); }

/* ---------- motion ---------- */
.anim-in { animation: sd-up .8s cubic-bezier(.2, .7, .2, 1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .28s; } .d4 { animation-delay: .38s; } .d5 { animation-delay: .48s; } .d6 { animation-delay: .7s; }
.anim-rise { animation: sd-rise 1.1s cubic-bezier(.2, .7, .2, 1) .35s both; }
.anim-float { animation: sd-up .8s cubic-bezier(.2, .7, .2, 1) .8s both, sd-float 5s ease-in-out 1.8s infinite; }
@keyframes menu-bubble { 0% { transform: scale(0); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes sd-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sd-rise { from { opacity: 0; transform: translateY(90px); } to { opacity: 1; transform: none; } }
@keyframes sd-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@supports (animation-timeline: view()) {
    .reveal { animation: sd-up linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
