/*
 * site.css — the public site of abelbrata.com. One bright theme: white paper,
 * near-black type, the brand red (the old site's header) and the six cube
 * colours as accents. System font stack, no web fonts (the CSP allows only this
 * site's own files). The 3D cube + timer styles live in cube.css, the mosaic
 * maker in mosaic.css, the shop pages in shop.css.
 */
:root {
    --scheme: light;
    --bg: #ffffff; --bg-alt: #f6f6f4; --surface: #ffffff; --surface-2: #f0f0ed;
    --ink: #111111; --ink-2: #3b3b3b; --muted: #6b6b6b;
    --line: rgba(17, 17, 17, .1); --line-2: rgba(17, 17, 17, .18);
    --tint-1: rgba(17, 17, 17, .04); --tint-2: rgba(17, 17, 17, .08);
    --shadow: 0 18px 44px -24px rgba(0, 0, 0, .35);
    --danger: #b91c1c; --success: #15803d;
    --radius: 14px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
    --container: 1200px;

    /* The cube */
    --c-w: #f4f4f4; --c-y: #ffd500; --c-r: #c41e3a; --c-o: #ff5800; --c-b: #0051ba; --c-g: #009e60;

    --accent: #c41e3a; --accent-2: #e2304d; --accent-ink: #ffffff; --accent-text: #b0182f;
    --header-bg: rgba(255, 255, 255, .92); --eyebrow-bg: #ffffff; --footer-bg: #f6f6f4;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; color-scheme: light; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.03em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; justify-content: center; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.icon { flex: none; vertical-align: -3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---- shared components (buttons, forms, alerts, lightbox, YouTube) ---- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; outline: 3px solid var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font: inherit; font-weight: 650;
    cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 28px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-ghost { background: var(--tint-1); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--tint-2); box-shadow: none; }
.btn-sm { padding: 6px 14px; font-size: .9rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.notice-bar { background: var(--accent); color: var(--accent-ink); text-align: center; padding: 8px 16px; font-size: .9rem; }
.flash-wrap { padding-top: 16px; }
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 12px; border: 1px solid; }
.alert-success { background: rgba(74, 222, 128, .1); border-color: rgba(74, 222, 128, .35); color: #bbf7d0; }
.alert-error { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .4); color: #fecaca; }
.alert-info { background: rgba(96, 165, 250, .1); border-color: rgba(96, 165, 250, .35); color: #bfdbfe; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 4px 10px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.lang-switch a.active { background: var(--ink); color: var(--bg); }
.lang-switch a:hover { text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text);
    border: 1px solid color-mix(in srgb, var(--accent-text) 40%, transparent); background: var(--eyebrow-bg);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 580px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--accent-text); }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .icon, a:hover > .link-arrow .icon { transform: translateX(3px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: .92rem; }
.chip:hover { text-decoration: none; color: var(--ink); background: var(--tint-1); }
.chip.active { color: var(--accent-ink); border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card-img { border-radius: 12px; margin-bottom: 18px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-h { font-size: 1.15rem; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, select, textarea { font: inherit; width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-text); outline: 3px solid color-mix(in srgb, var(--accent-text) 22%, transparent); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    background: #25d366; color: #06280f; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); }
.wa-float .icon { width: 26px; height: 26px; }
.error-page { text-align: center; padding: 110px 20px; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 12px 40px -8px rgba(0, 0, 0, .8); transition: transform .15s; }
.yt-play:hover { transform: scale(1.08); }
.yt-play .icon { width: 30px; height: 30px; margin-left: 4px; }
.yt-link { position: absolute; right: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; background: rgba(10, 10, 15, .75); color: #fff; }
.yt-on iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-list { display: grid; gap: 20px; }
.yt-list-2 { grid-template-columns: repeat(2, 1fr); }
.no-scroll { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(5, 5, 8, .95); }
.lb-open { display: flex; }
.lb-fig { margin: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 56px 72px; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 6px; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .9rem; }
.lb-btn { position: absolute; z-index: 1; border: 0; background: rgba(255, 255, 255, .08); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-close { top: 16px; right: 16px; font-size: 1.6rem; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-single .lb-prev, .lb-single .lb-next { display: none; }

/* ---- this theme ---- */
.btn { background: var(--accent); }
.btn:hover { background: var(--accent-2); box-shadow: 0 10px 26px -8px rgba(196, 30, 58, .55); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--tint-1); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2a; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .45); }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.eyebrow { color: var(--accent-text); border-color: rgba(196, 30, 58, .3); }
.chip.active { background: var(--ink); color: #fff; }
.yt-play { background: var(--accent); }
.error-page h1 { font-size: 6rem; color: var(--accent); }

/* The six-colour strip, under section titles and on top of the footer */
.cube-strip { display: inline-flex; gap: 4px; }
.cube-strip i { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.cs-w { background: var(--c-w); } .cs-y { background: var(--c-y); } .cs-r { background: var(--c-r); }
.cs-o { background: var(--c-o); } .cs-b { background: var(--c-b); } .cs-g { background: var(--c-g); }
.footer-strip { display: flex; width: 100%; gap: 0; }
.footer-strip i { flex: 1; height: 6px; border-radius: 0; box-shadow: none; }
.footer-strip .cs-w { display: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav-row { position: relative; display: flex; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 9px); gap: 2px; padding: 3px; background: #111; border-radius: 6px; flex: none; }
.brand-mark i { width: 9px; height: 9px; border-radius: 2px; background: var(--c-r); }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(9) { background: var(--c-y); }
.brand-mark i:nth-child(3), .brand-mark i:nth-child(7) { background: var(--c-b); }
.brand-mark i:nth-child(4) { background: var(--c-g); }
.brand-mark i:nth-child(5) { background: var(--c-w); }
.brand-mark i:nth-child(6), .brand-mark i:nth-child(8) { background: var(--c-o); }
.brand-word { display: grid; line-height: 1.05; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-word small { font-size: .66rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.site-nav { order: 2; display: flex; align-items: center; gap: 16px; flex: 1; justify-content: flex-end; }
.site-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 11px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .94rem; }
.site-nav ul a:hover { text-decoration: none; background: var(--tint-1); color: var(--ink); }
.site-nav ul a.active { color: var(--ink); background: var(--tint-2); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cart { order: 3; position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; color: var(--ink); border: 1px solid var(--line); }
.nav-cart:hover, .nav-cart.active { background: var(--tint-1); text-decoration: none; }
.nav-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
@media (max-width: 1140px) {
    .nav-toggle { display: block; order: 4; }
    .nav-cart { margin-left: auto; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 70px; background: #fff; border-bottom: 1px solid var(--line);
        flex-direction: column; align-items: stretch; padding: 12px 20px 20px; box-shadow: var(--shadow); }
    .site-nav.open { display: flex; }
    .site-nav ul { flex-direction: column; }
    .site-nav ul a { padding: 12px 14px; border-radius: 10px; }
    .nav-actions { justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
}

/* Sections */
.section { padding: 84px 0; }
.section-tight { padding: 44px 0; }
.section-tight + .section-tight { padding-top: 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.section-head .cube-strip { margin-bottom: 14px; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; max-width: none; }
.section-head-row > div { max-width: 680px; }
@media (max-width: 600px) { .section { padding: 60px 0; } }
.page-hero { padding: 60px 0 22px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.page-hero .lead { max-width: 700px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Home hero: text + the interactive cube */
.hero { position: relative; overflow: hidden; padding: 48px 0 36px; background:
    radial-gradient(55% 70% at 78% 45%, rgba(255, 213, 0, .18), transparent 70%),
    radial-gradient(45% 55% at 98% 95%, rgba(0, 81, 186, .10), transparent 70%),
    radial-gradient(40% 50% at 62% 0%, rgba(196, 30, 58, .10), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 30px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); letter-spacing: -.045em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-cube { position: relative; aspect-ratio: 1; max-height: 600px; width: 100%; }
.hero-cube [data-cube] { position: absolute; inset: 0; }
.hero-cube-tools { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; z-index: 2; }
.hero-cube-hint { position: absolute; top: 6px; right: 6px; font-size: .8rem; color: var(--muted); background: rgba(255, 255, 255, .85); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); z-index: 2; }
.hero-fallback { width: 80%; margin: 10% auto; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-cube { max-width: 340px; margin: 0 auto; } }

/* Achievements band */
.stats-band { background: #111; color: #fff; padding: 46px 0; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stats li { display: grid; gap: 6px; border-left: 3px solid var(--c-y); padding-left: 16px; align-content: start; }
.stats li:nth-child(2) { border-color: var(--c-r); }
.stats li:nth-child(3) { border-color: var(--c-b); }
.stats li:nth-child(4) { border-color: var(--c-g); }
.stats strong { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.03em; line-height: 1; }
.stats span { color: #cfcfcf; font-size: .95rem; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Cards (works, stories, products) */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .post-grid, .post-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-grid, .post-grid-4 { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; color: var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.post-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface-2); }
.post-card-story .post-card-media { aspect-ratio: 16 / 10; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.card-noimg { display: grid; place-items: center; height: 100%; color: var(--muted); }
.card-noimg .icon { width: 40px; height: 40px; }
.card-badge { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; display: grid; place-items: center; }
.post-card-body { display: grid; gap: 4px; padding: 16px 18px 18px; }
.post-card-body small { color: var(--muted); font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.post-card-body strong { font-size: 1.1rem; line-height: 1.25; }
.post-card-ex { color: var(--ink-2); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin-top: 6px; font-size: 1.05rem; }
.card-price s { color: var(--muted); font-size: .88rem; margin-right: 4px; }
.sold { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #111; color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* Mosaic maker teaser on the home page */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.teaser-art { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: #111; box-shadow: var(--shadow); }
.teaser-art img { width: 100%; }
.teaser h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 12px; }
.teaser-steps { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; counter-reset: s; }
.teaser-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.teaser-steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--c-b); }
.teaser-steps li:nth-child(2)::before { background: var(--c-r); }
.teaser-steps li:nth-child(3)::before { background: var(--c-g); }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; } }

/* Invite band */
.invite { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 30px; align-items: center; border-radius: calc(var(--radius) + 8px);
    padding: 46px; background: linear-gradient(135deg, #c41e3a, #9d1229); color: #fff; overflow: hidden; }
.invite h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.invite p { color: rgba(255, 255, 255, .88); }
.invite .btn { background: #fff; color: #9d1229; }
.invite .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.invite .hero-actions { margin-top: 10px; }
.invite ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.invite li { display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 10px 14px; }
@media (max-width: 860px) { .invite { grid-template-columns: 1fr; padding: 30px 24px; } }

/* Works / stories filters and detail pages */
.chips { margin: 0 0 26px; }
.post-head { padding: 46px 0 14px; }
.post-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 900px; }
.link-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.link-back:hover { color: var(--ink); text-decoration: none; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .post-layout { grid-template-columns: 1fr; } }
.post-cover { display: block; border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; background: var(--surface-2); }
.post-cover img { width: 100%; }
.prose { font-size: 1.06rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { font-size: 1.45rem; margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.post-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
@media (max-width: 900px) { .post-aside { position: static; } }
.info-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.info-list dt { color: var(--muted); font-size: .85rem; font-weight: 600; }
.info-list dd { margin: 0; font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.gallery-item { display: block; border-radius: 10px; overflow: hidden; background: var(--surface-2); aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.yt-list { margin: 26px 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.pager a { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink); }
.pager a:hover { text-decoration: none; background: var(--tint-1); }
.pager small { color: var(--muted); }
.pager .next { text-align: right; grid-column: 2; }
.intro-box { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 26px; align-items: center; margin-bottom: 30px; }
.intro-box img { border-radius: var(--radius); }
@media (max-width: 760px) { .intro-box { grid-template-columns: 1fr; } }

/* Stories timeline list */
.story-list { display: grid; gap: 16px; }
.story-row { display: grid; grid-template-columns: 96px 220px minmax(0, 1fr); gap: 22px; align-items: center; color: var(--ink); padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: box-shadow .2s, transform .2s; }
.story-row:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.story-year { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; color: var(--accent); text-align: center; }
.story-row img { border-radius: 10px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.story-row h2 { font-size: 1.22rem; margin: 0 0 6px; }
.story-row p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .story-row { grid-template-columns: 1fr; } .story-year { font-size: 1.3rem; text-align: left; } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 46px; align-items: start; }
.about-photo { border-radius: var(--radius); overflow: hidden; position: sticky; top: 96px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-photo { position: static; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 14px; }
.contact-info p { display: flex; gap: 10px; align-items: center; margin: 0; }
.form { display: grid; gap: 16px; }
.form h2 { font-size: 1.3rem; margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tint-1); margin-bottom: 18px; }
.tabs a { padding: 8px 16px; border-radius: 999px; color: var(--ink-2); font-weight: 650; }
.tabs a.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.tabs a:hover { text-decoration: none; }

/* Footer */
.site-footer { background: var(--footer-bg); margin-top: 40px; color: var(--ink-2); }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-top: 52px; padding-bottom: 36px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid .brand { margin-bottom: 12px; }
.footer-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.footer-grid .social { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.footer-legal { display: flex; gap: 16px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.empty { color: var(--muted); }
.empty-state { text-align: center; padding: 48px 24px; }

/* Scroll reveal: site.js adds .js on <html> and .in when an element enters the viewport */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* About: the journey */
.timeline { list-style: none; margin: 14px 0; padding: 0; display: grid; }
.timeline li { position: relative; padding: 0 0 22px 30px; color: var(--muted); }
.timeline li span { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done span { background: var(--accent); border-color: var(--accent); }
.timeline-big a { color: var(--ink); font-size: 1.1rem; }
.timeline-big li:nth-child(6n+2) span { background: var(--c-b); border-color: var(--c-b); }
.timeline-big li:nth-child(6n+3) span { background: var(--c-g); border-color: var(--c-g); }
.timeline-big li:nth-child(6n+4) span { background: var(--c-o); border-color: var(--c-o); }
.timeline-big li:nth-child(6n+5) span { background: var(--c-y); border-color: var(--c-y); }

/* Timer page */
.timer-wrap { margin: 0 auto 16px; max-width: 980px; }
.timer-cube { width: 100%; max-width: 320px; aspect-ratio: 1; margin: 0 auto; }
