/* tomaspaulus.com — one stylesheet for home, blog index and every post */

@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('media/fonts/geist-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('media/fonts/geist-latin.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;
}

@font-face {
    font-family: 'Geist Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('media/fonts/geist-mono-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Geist Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('media/fonts/geist-mono-latin.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 {
    --ink: #0e0e10;
    --text: #2e2e2e;
    --muted: #6f6c68;
    --line: #ebe8e3;
    --soft: #faf9f7;
    --card: #f5f3ef;
    --dark: #1e1d1c;
    --accent: #5938b7;
    --accent-hover: #4a2c9e;
    --accent-light: #a98df6;
    --accent-soft: #efe9fd;
    --accent-deep: #201547;
    --radius: 24px;
    --wrap: 1120px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-feature-settings: 'cv11', 'ss01';
    background: #fff;
    color: var(--text);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); color: var(--accent-deep); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.nav-content {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-logo { color: var(--ink); text-decoration: none; margin-right: auto; white-space: nowrap; }
.nav-logo, .footer-logo { display: inline-flex; align-items: baseline; gap: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.logo-slash { margin-right: 1px; color: var(--accent); font-weight: 500; transition: transform 0.3s var(--ease); }
.nav-logo:hover .logo-slash, .footer-logo:hover .logo-slash { transform: skewX(-12deg) translateX(-1px); }
.nav-links { display: flex; gap: 26px; margin-right: 14px; }
.nav-link { font-size: 14px; color: var(--ink); text-decoration: none; transition: color 0.2s ease; }
.nav-link:hover { color: var(--accent); }
.nav-link.active { text-decoration: underline; text-underline-offset: 6px; }

/* AI menu (same pattern as aibility.org) */
.ai-open { position: relative; }
.ai-open__trigger { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 8px; border: 0; border-radius: 999px; background: rgba(14, 14, 16, 0.05); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; transition: background-color 0.2s; }
.ai-open__trigger:hover, .ai-open[data-open="true"] .ai-open__trigger { background: rgba(14, 14, 16, 0.09); }
.ai-open__logos { display: flex; }
.ai-open__logos img { width: 20px; height: 20px; padding: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #fff; }
.ai-open__logos img + img { margin-left: -5px; }
.ai-open__caret { width: 12px; height: 12px; transition: transform 0.25s var(--ease); }
.ai-open[data-open="true"] .ai-open__caret { transform: rotate(180deg); }
.ai-open__menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; display: grid; gap: 2px; min-width: 250px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 18px 48px rgba(14, 14, 16, 0.14), 0 0 0 1px rgba(14, 14, 16, 0.04); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top right; transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s linear 0.25s; }
.ai-open__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.ai-open[data-open="true"] .ai-open__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) { .ai-open:hover .ai-open__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; } }
.ai-open__head { padding: 8px 10px 6px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ai-open-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: none; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; transition: background-color 0.15s; }
.ai-open-item:hover, .ai-open-item:focus-visible { background: var(--soft); }
.ai-open-item img { flex: none; }
.ai-open__sep { height: 1px; margin: 4px 8px; background: var(--line); }

.ai-paste { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0s linear 0.2s; }
.ai-paste[data-open="true"] { opacity: 1; visibility: visible; transition-delay: 0s; }
.ai-paste__backdrop { position: absolute; inset: 0; background: rgba(14, 14, 16, 0.4); }
.ai-paste__card { position: relative; max-width: 420px; padding: 32px; border-radius: var(--radius); background: #fff; box-shadow: 0 24px 64px rgba(14, 14, 16, 0.2); }
.ai-paste__close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 24px; color: var(--muted); cursor: pointer; }
.ai-paste__badge { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 500; }
.ai-paste__card h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px; color: var(--ink); font-weight: 500; }
.ai-paste__card p { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.ai-paste kbd { font-family: inherit; font-size: 13px; padding: 1px 6px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--dark);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); background: #000; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f1eefb; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--soft); }
.btn--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.08); }

/* Type */
h1, h2, h3 { color: var(--ink); font-weight: 400; }
.h1 { font-size: clamp(42px, 6.6vw, 76px); line-height: 1.02; letter-spacing: -0.04em; }
.h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.035em; }
.h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.025em; }
.hl { color: var(--accent); }
.hl-light { color: var(--accent-light); }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 520px; }
.tag { font-size: 13px; color: var(--muted); }

/* Sections */
.section { padding: 72px 0; }
.section--flush { padding-top: 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; }

/* Reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Hero */
.hero { position: relative; padding: 56px 0 56px; overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero .lead { margin: 24px 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 22px; font-size: 14px; color: var(--muted); }
.hero-event { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 16px; border-radius: 999px; background: var(--card); color: var(--ink); font-size: 14px; text-decoration: none; transition: background 0.2s ease; }
.hero-event:hover { background: var(--line); }
.hero-event img { height: 14px; width: auto; }
.hero-event b { font-weight: 500; }
.hero-event .arr { color: var(--muted); }
.hero-photo { aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--card); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; animation: zoom 1.6s var(--ease) both; }
@keyframes zoom { from { transform: scale(1.08); } to { transform: none; } }
.hero-copy > * { animation: rise 0.9s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Story: sticky photo, steps swap it */
.story { padding: 40px 0 40px; }
.story-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; }
.story-media { position: sticky; top: 96px; height: calc(100vh - 140px); max-height: 640px; border-radius: 28px; overflow: hidden; background: var(--card); }
.story-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.9s var(--ease), transform 1.4s var(--ease); }
.story-photo.is-active { opacity: 1; transform: none; }
.story-photo:nth-child(1) { object-position: 62% 50%; }
.story-photo:nth-child(2) { object-position: 50% 45%; }
.story-photo:nth-child(3) { object-position: 62% 35%; }
.story-dots { position: absolute; left: 24px; bottom: 24px; display: flex; gap: 6px; }
.story-dots span { width: 22px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.45); transition: width 0.4s var(--ease), background 0.4s; }
.story-dots span.is-active { width: 44px; background: #fff; }
.story-steps { display: grid; }
.story-step { min-height: 52vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.25; transition: opacity 0.6s var(--ease); }
.story-step.is-active { opacity: 1; }
.story-step h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 18px; }
.story-step p { font-size: 19px; color: var(--muted); max-width: 440px; }
.story-inline { display: none; }

/* Consultation */
.consult { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.outcomes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.outcome { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: var(--radius); background: var(--soft); transition: background 0.3s ease, transform 0.3s var(--ease); }
.outcome:hover { background: var(--accent-soft); transform: translateY(-2px); }
.outcome .num { font-size: 14px; color: var(--accent); font-weight: 500; margin-bottom: 8px; }
.outcome h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }
.outcome p { color: var(--muted); font-size: 15px; }
.price-card {
    display: flex;
    flex-direction: column;
    padding: 40px;
    border-radius: var(--radius);
    background: var(--accent);
    color: rgba(255, 255, 255, 0.78);
}
.price { font-size: clamp(56px, 6.4vw, 76px); color: #fff; letter-spacing: -0.045em; line-height: 1; }
.price-sub { margin-top: 10px; font-size: 16px; }
.price-facts { list-style: none; display: grid; gap: 10px; margin: 32px 0 36px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 15px; color: #fff; }
.price-facts li { display: flex; gap: 10px; }
.price-facts li::before { content: '✓'; color: var(--accent-light); }
.price-steps { list-style: none; counter-reset: step; display: grid; gap: 12px; margin: 0 0 36px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 15px; color: #fff; }
.price-steps li { counter-increment: step; display: flex; gap: 12px; }
.price-steps li::before { content: counter(step); flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); font-size: 12px; line-height: 22px; text-align: center; }
.price-card .btn { margin-top: auto; }
.price-note { margin-top: 12px; font-size: 13px; text-align: center; }

/* Quotes marquee */
.marquee { overflow: hidden; padding: 8px 0; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; }
.marquee--reverse .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.quote { flex: none; width: 360px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 28px; border-radius: var(--radius); background: var(--soft); }
.quote blockquote { font-size: 19px; line-height: 1.4; color: var(--ink); letter-spacing: -0.015em; }
.quote figcaption { font-size: 13px; color: var(--muted); line-height: 1.45; }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }

/* Head: podcasts + shelf */
.pods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pod { display: grid; gap: 10px; text-decoration: none; }
.pod-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.pod-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.pod:hover .pod-thumb img { transform: scale(1.04); }
.play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); transition: transform 0.3s var(--ease), background 0.3s; }
.play::after { content: ''; position: absolute; left: 27px; top: 22px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent var(--accent); }
.pod:hover .play { transform: scale(1.1); background: #fff; }
.pod h3 { margin-top: 8px; }
.pod .meta { font-size: 14px; color: var(--muted); }
.pod h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; }
.shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; margin-top: 72px; }
.shelf-head { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--ink); letter-spacing: -0.01em; text-decoration: none; transition: padding 0.25s var(--ease), color 0.2s; }
.row i { font-style: normal; color: var(--muted); }
.row:hover { padding-left: 8px; color: var(--accent); }
.row--more { color: var(--accent); font-size: 15px; border-bottom: 0; }

/* Team band */
.team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
    padding: 40px 44px;
    border-radius: 28px;
    background: var(--accent-deep);
    color: rgba(255, 255, 255, 0.72);
}
.team .h3 { color: #fff; margin-bottom: 8px; }
.team p { max-width: 460px; }
.team-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* FAQ (two columns, like pader.cz) */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px 64px; align-items: start; }
.faq-head { position: sticky; top: 96px; display: grid; justify-items: start; gap: 24px; }
.faq-head .h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; }
.faq-mail { font-size: 15px; color: var(--muted); text-underline-offset: 3px; }
.faq-mail:hover { color: var(--ink); }
.faq { display: grid; gap: 4px; }
.faq-row { border-radius: 18px; transition: background 0.25s ease; }
.faq-row[open], .faq-row:hover { background: var(--card); }
.faq-row summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; cursor: pointer; list-style: none; }
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row h3 { font-size: 16px; font-weight: 400; line-height: 1.4; color: var(--ink); }
.faq-row i { position: relative; flex: none; width: 12px; height: 12px; transition: transform 0.3s var(--ease); }
.faq-row i::before, .faq-row i::after { content: ''; position: absolute; top: 5px; left: 0; width: 12px; height: 1.5px; border-radius: 2px; background: var(--ink); }
.faq-row i::after { transform: rotate(90deg); }
.faq-row[open] i { transform: rotate(45deg); }
.faq-row p { padding: 0 20px 20px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.faq-row p a { color: var(--ink); text-underline-offset: 3px; }

/* Final CTA */
.final { display: grid; justify-items: center; gap: 20px; padding: 80px 32px; border-radius: 28px; background: var(--card); text-align: center; }
.final .lead { max-width: 520px; }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.btn--white { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(14, 14, 16, 0.06), inset 0 0 0 1px var(--line); }
.btn--white:hover { background: #fff; box-shadow: 0 4px 14px rgba(14, 14, 16, 0.08), inset 0 0 0 1px var(--line); }

/* Footer */
.footer { padding: 56px 0 32px; font-size: 15px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-logo { color: var(--ink); text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-links a { color: var(--ink); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { margin-top: 32px; font-size: 13px; }
.footer-legal::before { content: ''; display: block; height: 1px; margin-bottom: 20px; background: var(--line); }
@media (max-width: 860px) {
    .final { padding: 56px 24px; }
    .faq-wrap { grid-template-columns: 1fr; }
    .faq-head { position: static; }
}
}

/* Blog index + posts (shared markup from the old site) */
.container { min-height: 100vh; display: flex; flex-direction: column; }
.main-content { flex: 1; padding: 72px 24px 120px; }
.content-wrapper { max-width: 680px; margin: 0 auto; }
.main-content--index .content-wrapper { max-width: var(--wrap); padding: 0; }

.resume-header { margin-bottom: 56px; }
.resume-header .name { font-size: clamp(38px, 6.4vw, 64px); line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 20px; }
.personal-info { font-size: 18px; color: var(--text); max-width: 560px; }
.personal-info strong { color: var(--ink); font-weight: 500; }
.email-link { color: var(--ink); text-underline-offset: 3px; }
.resume-section { margin-bottom: 64px; }
.section-title { font-size: 15px; color: var(--muted); font-weight: 400; margin-bottom: 8px; }
.resume-item { border-bottom: 1px solid var(--line); }
.resume-item:first-of-type { border-top: 1px solid var(--line); }
.resume-item .year { display: none; }
.project-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    font-size: 19px;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-decoration: none;
    transition: padding 0.2s ease;
}
.project-link:hover { padding-left: 8px; }
.arrow-icon { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 2; }

.back-link { display: inline-block; margin-bottom: 40px; font-size: 14px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.blog-title { font-size: clamp(36px, 5.6vw, 56px); line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 40px; }
.blog-content p { margin-bottom: 18px; font-size: 18px; line-height: 1.7; }
.blog-content ul, .blog-content ol { margin: 0 0 22px 22px; }
.blog-content li { margin-bottom: 8px; font-size: 18px; line-height: 1.65; }
.blog-content strong { color: var(--ink); font-weight: 600; }
.blog-content :is(h1,h2,h3,p,li) code { font-size: 0.85em; }
.blog-content blockquote { margin: 0 0 22px; padding: 4px 0 4px 18px; border-left: 3px solid var(--soft); }
.blog-content a { color: var(--ink); text-underline-offset: 3px; }
.blog-content a:hover { opacity: 0.7; }
.blog-content img { border-radius: 16px; margin: 24px 0; }
.blog-figure { margin: 28px 0 32px; }
.blog-figure a { display: block; }
.blog-figure img { display: block; width: 100%; height: auto; margin: 0; border: 1px solid var(--line); border-radius: 16px; }
.blog-figure figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.blog-figure video { display: block; width: 100%; height: auto; margin: 0; border: 1px solid var(--line); border-radius: 16px; background: #000; }
.table-wrap { overflow-x: auto; margin: 0 0 22px; }
.blog-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.blog-content th, .blog-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.blog-content th { font-weight: 500; color: var(--muted); }
.blog-content pre, .blog-content code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 14px; }
.blog-content pre { background: var(--soft); padding: 18px; border-radius: 14px; overflow-x: auto; margin-bottom: 22px; }
.blog-section { margin: 48px 0; }
.blog-section-title { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 18px; }
.blog-section--faq { padding: 36px; border-radius: var(--radius); background: var(--soft); }
.faq-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; padding-bottom: 0; }
.faq-question { font-size: 18px; color: var(--ink); font-weight: 500; margin-bottom: 8px; }
.faq-answer { font-size: 16px !important; color: var(--muted); margin: 0 !important; }
.blog-signature { margin-top: 48px; color: var(--muted); }

.post-cta {
    margin-top: 64px;
    padding: 40px;
    border-radius: var(--radius);
    background: var(--accent);
    color: rgba(255, 255, 255, 0.8);
}
.blog-content .post-cta h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.03em; color: #fff; }
.blog-content .post-cta p { margin: 0 0 28px !important; font-size: 17px; color: rgba(255, 255, 255, 0.8); }
.post-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.blog-content .post-cta .btn--light { color: var(--ink); }
.blog-content .post-cta__link { color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; }
.blog-content .post-cta__link:hover { text-decoration: underline; text-underline-offset: 4px; }


.blog-content .btn { color: #fff; text-decoration: none; }
.blog-content .btn:hover { opacity: 1; }


/* v3 blocks */
.step-link { margin-top: 22px; font-size: 16px; font-weight: 500; color: var(--accent); text-decoration: none; }
.step-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.step-links { display: grid; gap: 10px; margin-top: 22px; }
.step-links a { font-size: 16px; font-weight: 500; color: var(--accent); text-decoration: none; }
.step-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.section-head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project { display: grid; gap: 6px; text-decoration: none; }
.project-shot { display: block; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line); margin-bottom: 12px; }
.project-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.8s var(--ease); }
.project:hover .project-shot img { transform: scale(1.03); }
.project h3 { font-size: 20px; letter-spacing: -0.02em; }
.project p { font-size: 15px; color: var(--muted); }
.projects--page { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
.projects--page .project h3 { font-size: 24px; }
.projects--page .project p { font-size: 16px; }

.aib-list { border-top: 1px solid var(--line); }
.aib-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 32px; align-items: center; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: padding 0.3s var(--ease), color 0.2s ease; }
.aib-row h3 { font-size: 24px; letter-spacing: -0.02em; }
.aib-row p { font-size: 16px; color: var(--muted); }
.aib-row i { font-style: normal; font-size: 22px; color: var(--accent); justify-self: end; transition: transform 0.3s var(--ease); }
.aib-row:hover { padding-left: 12px; }
.aib-row:hover h3 { color: var(--accent); }
.aib-row:hover i { transform: translate(3px, -3px); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab { height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1; cursor: pointer; transition: background 0.2s, color 0.2s; }
.tab:hover { background: var(--card); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab span { margin-left: 6px; color: var(--muted); }
.tab[aria-selected="true"] span { color: rgba(255, 255, 255, 0.6); }
.page-head { margin-bottom: 48px; }
.page-head .lead { margin-top: 16px; }
.note-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 0 0 24px; padding: 18px 18px 18px 24px; border-radius: 22px; background: #0b0b0c; color: #fff; }
.note-bar__text { display: grid; gap: 3px; }
.note-bar__text strong { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; }
.note-bar__text span { font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.note-bar__live { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 13px; color: rgba(255, 255, 255, 0.8); white-space: nowrap; }
.note-bar__live i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.18); }
@media (max-width: 640px) { .note-bar { flex-direction: column; align-items: flex-start; padding: 20px; } }

@media (max-width: 960px) {
}
@media (max-width: 860px) {
    .projects, .projects--page { grid-template-columns: 1fr; }
    .aib-row { grid-template-columns: minmax(0, 1fr) 24px; gap: 4px 16px; padding: 22px 0; }
    .aib-row h3 { font-size: 20px; }
    .aib-row p { grid-row: 2; }
    .aib-row i { grid-row: 1 / 3; grid-column: 2; }
}

@media (max-width: 960px) {
    .nav-links { display: none; }
}

@media (max-width: 860px) {
    .ai-open__label { display: none; }
    .ai-open { position: static; }
    .ai-open__menu { position: fixed; top: 64px; left: 16px; right: 16px; min-width: 0; transform-origin: top center; }
    .ai-open-item { padding: 12px 10px; }
    .hero { padding: 32px 0 64px; }
    .hero-grid, .consult, .pods, .shelf, .story-grid { grid-template-columns: 1fr; }
    .hero-grid { gap: 36px; }
    .hero-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); }
    .section { padding: 48px 0; }
    .section--flush { padding-top: 0; }
    .section-head { margin-bottom: 32px; }
    .story { padding: 24px 0 0; }
    .story-media { display: none; }
    .story-step { min-height: 0; opacity: 1; padding: 0 0 56px; }
    .story-inline { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }
    .story-inline[src*="story-2"] { object-position: 50% 25%; }
    .story-step p { font-size: 17px; }
    .outcomes { grid-template-columns: 1fr; }
    .outcome { padding: 24px; }
    .outcome h3 { font-size: 20px; }
    .price-card { padding: 32px 28px; }
    .quote { width: 290px; padding: 24px; }
    .quote blockquote { font-size: 17px; }
    .shelf { margin-top: 48px; }
    .team { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
    .main-content { padding: 40px 20px 100px; }
    .blog-section--faq { padding: 24px; }
}

@media (max-width: 420px) {
    .nav-content .btn--sm { padding: 0 12px; font-size: 13px; }
    .nav-logo { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .marquee { overflow-x: auto; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Projects page: compact cards */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.work { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: 20px; background: var(--soft); text-decoration: none; transition: background 0.2s ease, transform 0.2s var(--ease); }
.work[hidden] { display: none; }
a.work:hover { background: var(--accent-soft); transform: translateY(-2px); }
.work h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; padding-right: 20px; }
.work p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.work i { position: absolute; top: 20px; right: 22px; font-style: normal; color: var(--accent); }
@media (max-width: 960px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .works { grid-template-columns: 1fr; } }

/* Page transitions between home, projects and blog */
html { scrollbar-gutter: stable; }
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: vt-out 0.18s ease both; }
::view-transition-new(root) { animation: vt-in 0.42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* Theme (ElevenLabs direction). Warm monochrome, light headings, colour only in photos. */
:root {
    --ink: #0b0b0b;
    --text: #1f1d1b;
    --muted: #6b6560;
    --dim: #9a948d;
    --line: #ebe8e3;
    --card: #f4f2ee;
    --soft: #f8f7f4;
    --page: #fdfcfb;
    --night: #0b0b0b;
    --night-2: #161616;
}
body { font-family: 'Geist', ui-sans-serif, system-ui, sans-serif; background: var(--page); letter-spacing: 0.005em; }

/* Type: light and airy, one colour per heading */
h1, h2 { font-weight: 300; }
h3 { font-weight: 400; }
.h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.08; letter-spacing: -0.02em; }
.h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -0.015em; }
.hl, .dim { color: inherit; }
.lead { color: var(--muted); }
.story-step h2 { font-size: clamp(32px, 3.8vw, 46px); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
.outcome h3 { letter-spacing: -0.01em; }

/* Nav: plain bar with a hairline */
.nav { top: 0; padding: 0; background: rgba(253, 252, 251, 0.86); box-shadow: none; border: 0; border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav-content { max-width: 1240px; margin: 0 auto; padding: 12px 24px; border-radius: 0; background: none; }
.nav-logo { font-size: 20px; font-weight: 500; letter-spacing: -0.04em; }
.nav-link { font-size: 14px; }
.ai-open__trigger { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }

/* Buttons: pill with a round arrow */
.btn { font-weight: 400; }
.btn--arrow { gap: 14px; padding-right: 6px; }
.btn--arrow .arr { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; transition: transform 0.3s var(--ease); }
.btn--arrow:hover .arr { transform: translateX(3px); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #fff; }
.btn--line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.btn--line:hover { background: rgba(255, 255, 255, 0.06); }
.btn--line .arr { background: #fff; color: var(--ink); }

/* Light hero with drifting dots */
.hero--dark { position: relative; margin-top: -68px; padding: 180px 0 120px; background: var(--page); color: var(--ink); overflow: hidden; }
.hero--dark .dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero--dark .wrap { position: relative; }
.hero--dark .hero-photo { border-radius: 24px; background: var(--card); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero--dark .btn--white { background: var(--ink); color: #fff; box-shadow: none; }
.hero--dark .btn--white .arr { background: #fff; color: var(--ink); }
.hero--dark .btn--line { color: var(--ink); box-shadow: inset 0 0 0 1px #cfcfcf; }
.hero--dark .btn--line:hover { background: var(--soft); }
.hero--dark .btn--line .arr { background: var(--ink); color: #fff; }

/* Stats band, light */
.stats { padding: 112px 0; background: var(--soft); }
.stats .h2 { margin-bottom: 64px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid var(--line); padding-top: 36px; }
.stat b { display: block; font-size: clamp(40px, 4.6vw, 60px); font-weight: 300; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.stat span { display: block; margin-top: 14px; max-width: 200px; font-size: 14px; color: var(--muted); }

/* Consult: neutral cards, black price card (purple stays a small accent) */
.outcome { background: var(--soft); }
.outcome:hover { background: var(--card); }
.outcome .num { color: var(--dim); }
.price-card { background: var(--night); color: rgba(255, 255, 255, 0.62); }
.price { font-weight: 300; }
.price-facts, .price-steps { border-top-color: rgba(255, 255, 255, 0.12); }
.price-steps li::before { background: rgba(255, 255, 255, 0.1); }

/* Quotes, FAQ, Aibility list in greys */
.quote { background: var(--soft); }
.faq-row[open], .faq-row:hover { background: var(--soft); }
.aib-row:hover h3 { color: var(--ink); }

/* Project cards with a site preview (Projekty) */
.work--shot { padding: 10px 10px 22px; }
.work--shot h3, .work--shot p { padding-left: 14px; padding-right: 14px; }
.work-shot { display: block; aspect-ratio: 16 / 10; margin-bottom: 10px; border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.work-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s var(--ease); }
a.work--shot:hover .work-shot img { transform: scale(1.03); }
.work--shot i { top: 20px; right: 20px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
a.work:hover { background: var(--card); }

/* Featured project banner (Projekty) */
.feature { display: grid; grid-template-columns: 1fr 1.35fr; align-items: center; gap: 40px; margin-bottom: 56px; padding: 16px 16px 16px 48px; border-radius: 28px; background: var(--card); color: var(--ink); text-decoration: none; }
.feature-title { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.015em; }
.feature-text p { margin: 14px 0 28px; max-width: 380px; color: var(--muted); font-size: 17px; }
.feature-btn { background: var(--ink); color: #fff; }
.feature-btn .arr { background: #fff; color: var(--ink); }
.feature-media { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #6f9fa3; }
.feature-media video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.feature-media video, .feature-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.8s var(--ease); }
.feature:hover .feature-media video, .feature:hover .feature-media img { transform: scale(1.03); }
.feature--app .feature-media { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.feature:hover .feature-btn .arr { transform: translate(2px, -2px); }
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 56px; }
.feature-pair .feature { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 28px; margin: 0; padding: 12px 12px 32px; }
.feature-pair .feature-text { order: 2; padding: 0 20px; }
.feature-pair .feature-title { font-size: clamp(24px, 2.2vw, 30px); }
.feature-pair .feature-text p { margin: 10px 0 24px; max-width: none; font-size: 16px; }
@media (max-width: 860px) {
    .feature { grid-template-columns: 1fr; gap: 24px; padding: 12px 12px 28px; margin-bottom: 40px; }
    .feature-text { order: 2; padding: 0 12px; }
    .feature-text p { font-size: 16px; }
    .feature-pair { grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
    .feature-pair .feature-text { padding: 0 12px; }
}

/* Final CTA, light */
.final--dark { background: var(--soft); }
.final--dark .btn--white { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #cfcfcf; }

@media (max-width: 860px) {
    .hero--dark { padding: 132px 0 64px; }
    .stats { padding: 72px 0; }
    .stats .h2 { margin-bottom: 40px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .nav { padding: 8px 8px 0; }
    .nav-content { padding: 8px 8px 8px 16px; }
}
@media (prefers-reduced-motion: reduce) { .hero--dark .dots { display: none; } }

/* Aibility highlighted in the hero */
.hero-brand { color: var(--accent); font-weight: 500; text-decoration: none; }
.hero-brand:hover { text-decoration: underline; text-underline-offset: 3px; }

/* "Zkus" + Superpowered Professional lockup, as on aibility.org */
.try-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.sp-brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.sp-brand__mark { width: 43px; height: 43px; border-radius: 50%; }
.sp-brand__text { display: grid; line-height: 1.05; }
.sp-brand__name { font-size: clamp(20px, 2.35vw, 29px); font-weight: 600; letter-spacing: -0.03em; }
.sp-brand__by { font-size: 13.5px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: 4px; }
@media (max-width: 860px) { .sp-brand__mark { width: 36px; height: 36px; } }

@media (max-width: 860px) {
    .try-head { flex-wrap: nowrap; gap: 12px; font-size: 32px; }
    .sp-brand { gap: 8px; }
    .sp-brand__mark { width: 27px; height: 27px; }
    .sp-brand__name { font-size: 15.5px; white-space: nowrap; }
    .sp-brand__by { font-size: 11px; margin-top: 2px; }
}
@media (max-width: 380px) {
    .try-head { gap: 10px; font-size: 28px; }
    .sp-brand__mark { width: 24px; height: 24px; }
    .sp-brand__name { font-size: 13.5px; }
}

/* Load intro: masked headline lines, photo opens from the bottom */
.h1 .ln + br { display: none; }
.h1 .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.h1 .ln > span { display: inline-block; animation: line-up 1.1s cubic-bezier(0.19, 1, 0.22, 1) 0.15s both; }
.h1 .ln:nth-child(3) > span { animation-delay: 0.27s; }
@keyframes line-up { from { transform: translateY(110%) rotate(2deg); } to { transform: none; } }
.hero-copy > .h1 { animation: none; }
.hero-copy > .lead { animation: soft-in 1s var(--ease) 0.35s both; }
.hero-copy > .hero-actions { animation: soft-in 1s var(--ease) 0.48s both; }
@keyframes soft-in { from { opacity: 0; transform: translateY(14px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.hero-visual { position: relative; }
.hero-visual .hero-photo { position: relative; animation: photo-in 0.7s var(--ease) 0.1s both; }
.hero-visual .hero-photo img { animation: none; }
@keyframes photo-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.hero--dark .dots { animation: fade 1.6s ease 0.3s both; }
body:has(.hero--dark) .nav { animation: nav-in 0.9s var(--ease) 0.2s both; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }

/* Photo depth: layered soft shadow, light from top left, plus a blurred colour glow behind the portrait */
.hero-photo, .story-media, .story-inline, .pod-thumb {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 2px 7px 15px rgba(0, 0, 0, 0.08), 8px 27px 28px rgba(0, 0, 0, 0.08), 24px 60px 64px -24px rgba(0, 0, 0, 0.14);
}
.hero-visual::before { content: ""; position: absolute; inset: 8% -4% -6% 6%; background: url(/media/tom-portret.webp) 50% 40% / cover; border-radius: 40px; filter: blur(64px) saturate(1.3); opacity: 0.5; pointer-events: none; animation: glow-in 1s ease 0.3s both; }
@keyframes glow-in { from { opacity: 0; transform: scale(0.85); } }

/* Mobile menu: burger opens the hidden nav links as a panel under the bar */
.nav-toggle { display: none; place-items: center; width: 40px; height: 40px; margin-left: 2px; border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 0.3s var(--ease), background 0.2s; }
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav--open .nav-toggle span { background: transparent; }
.nav--open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav--open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 960px) {
    .nav-toggle { display: grid; }
    .nav-content > .btn--sm { display: none; }
    .nav--open .nav-links { position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; display: grid; gap: 0; margin: 0; padding: 8px; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.12); animation: menu-in 0.3s var(--ease) both; }
    .nav--open .nav-link { padding: 14px 16px; border-radius: 12px; font-size: 20px; letter-spacing: -0.02em; }
    .nav--open .nav-link:active { background: var(--soft); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
/* Let the hero photo shadow and glow spill below the hero; clip only sideways */
.hero--dark { overflow: visible; overflow-x: clip; }

/* Blog index (press-list style) */
.bl { flex: 1; padding: 80px 24px 120px; }
.bl-wrap { max-width: 1120px; margin: 0 auto; }
.bl-head { margin-bottom: 40px; }
.bl-h1 { font-size: clamp(48px, 8vw, 88px); font-weight: 300; line-height: 1; letter-spacing: -0.045em; color: var(--ink); margin-bottom: 20px; }
.bl-lead { max-width: 560px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.bl-lead strong { color: var(--ink); font-weight: 500; }

.bl-tag, .bl-min, .bl-pill, .bl-chip { font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace; text-transform: uppercase; letter-spacing: 0.04em; }
.bl-filters { display: grid; gap: 10px; margin-bottom: 40px; }
.bl-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-pills[hidden] { display: none; }
.bl-pill, .bl-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font-size: 12px; line-height: 1; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.bl-pill span, .bl-chip span { color: var(--dim); }
.bl-pill:hover, .bl-chip:hover { border-color: var(--dim); }
.bl-pill[aria-selected="true"], .bl-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.bl-pill[aria-selected="true"] span, .bl-chip[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.55); }
.bl-chip { height: 30px; font-size: 11px; }

.bl ol { list-style: none; margin: 0; padding: 0; }
.bl li[hidden] { display: none; }
.bl a { color: inherit; text-decoration: none; }
.bl-tag { font-size: 12px; color: var(--muted); }
.bl-min { font-size: 12px; color: var(--dim); white-space: nowrap; }
.bl-title { color: var(--ink); }
.bl-perex { color: var(--muted); }
.bl-empty { padding: 48px 0; color: var(--muted); }
.bl-arrow { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; opacity: 0; transform: translate(-4px, 4px); transition: opacity 0.2s, transform 0.25s var(--ease); }

/* A: rows like a press list */
.bl-list { border-top: 1px solid var(--line); }
.bl-row { border-bottom: 1px solid var(--line); }
.bl-row a { display: grid; grid-template-columns: 150px minmax(0, 1fr) 64px 16px; align-items: center; gap: 32px; padding: 24px 12px; margin: 0 -12px; border-radius: 12px; transition: background 0.2s; }
.bl-row a:hover { background: var(--soft); }
.bl-row a:hover .bl-arrow { opacity: 1; transform: none; }
.bl-row .bl-main { display: grid; gap: 6px; min-width: 0; }
.bl-row .bl-title { font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; }
.bl-row .bl-perex { font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.bl-row .bl-min { text-align: right; }

/* Cards (B featured, C grid) */
.bl-cards { display: grid; gap: 16px; }
.bl-cards--feat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bl-featured { margin-bottom: 64px; }
.bl-card a { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 28px; border-radius: 20px; background: var(--soft); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.3s var(--ease); }
.bl-card a:hover { border-color: var(--ink); transform: translateY(-2px); }
.bl-meta { display: flex; justify-content: space-between; gap: 12px; }
.bl-card .bl-title { font-size: 22px; font-weight: 400; line-height: 1.25; letter-spacing: -0.02em; }
.bl-card .bl-perex { margin-top: auto; font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card--feat a { min-height: 300px; background: var(--card); border-color: transparent; }
.bl-card--feat .bl-title { font-size: 26px; font-weight: 300; }



@media (max-width: 960px) {
    .bl-cards--feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .bl { padding: 48px 16px 96px; }
    .bl-head { margin-bottom: 28px; }
    .bl-lead { font-size: 16px; }
    .bl-filters { margin-bottom: 24px; }
    .bl-pills--tags { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
    .bl-pills--tags::-webkit-scrollbar { display: none; }
    .bl-chip { flex: none; }
    .bl-row a { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 20px 0; margin: 0; border-radius: 0; }
    .bl-row .bl-tag { grid-column: 1; grid-row: 1; }
    .bl-row .bl-min { grid-column: 2; grid-row: 1; }
    .bl-row .bl-main { grid-column: 1 / -1; grid-row: 2; }
    .bl-row .bl-title { font-size: 18px; }
    .bl-row .bl-perex { -webkit-line-clamp: 2; }
    .bl-arrow { display: none; }
    .bl-cards--feat { grid-template-columns: minmax(0, 1fr); }
    .bl-card--feat a { min-height: 0; }
    .bl-card a { padding: 22px; }
}

/* Mail copy toast */
.mail-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1000; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.mail-toast--on { opacity: 1; transform: translate(-50%, 0); }

/* Analytics consent */
.consent { position: fixed; right: 20px; bottom: 20px; z-index: 1200; width: min(440px, calc(100% - 40px)); padding: 22px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 20px; background: #171717; color: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28); }
.consent[hidden] { display: none; }
.consent__title { margin: 0 0 8px; color: #fff; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.consent__text { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 14px; line-height: 1.55; }
.consent__text a { color: #fff; text-underline-offset: 3px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.consent__button { min-height: 42px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.consent__button--primary { border-color: #fff; background: #fff; color: #171717; }
.privacy-settings { border: 0; padding: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 560px) { .consent { right: 12px; bottom: 12px; width: calc(100% - 24px); padding: 18px; } .consent__actions { display: grid; } }

/* O mně: CV timeline */
.hero-photo--wide img { object-position: 57% 40%; }
.hero-meta-line { margin-top: 22px; font-size: 14px; color: var(--muted); }
.cv { display: grid; gap: 8px; }
.cv-row { display: grid; grid-template-columns: 160px 1fr 1.25fr; gap: 32px; padding: 26px 32px; border-radius: 20px; background: var(--soft); }
.cv-when { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; color: var(--muted); padding-top: 4px; }
.cv-role h3 { font-size: 20px; line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }
.cv-role span { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; }
.cv-row p { color: var(--text); font-size: 16px; }
@media (max-width: 860px) {
    .cv-row { grid-template-columns: 1fr; gap: 6px; padding: 22px 20px; }
    .cv-row p { margin-top: 6px; }
}
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quote-grid .quote { width: auto; }
@media (max-width: 700px) { .quote-grid { grid-template-columns: 1fr; } }
.section-head .lead a { color: var(--ink); text-underline-offset: 3px; } .section-head .lead a:hover { color: var(--accent); }

/* O mně: summary, projects, talks, recommendations */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.about-grid .h2 { margin-bottom: 20px; }
.about-lead { font-size: 18px; line-height: 1.6; color: var(--text); max-width: 600px; }
.about-lead + .about-lead { margin-top: 14px; }
.about-date { margin-top: 20px; font-size: 14px; color: var(--muted); }
.facts { display: grid; gap: 8px; padding: 28px 32px; border-radius: 20px; background: var(--soft); }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 6px 0; }
.facts dt { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; color: var(--muted); padding-top: 3px; }
.facts dd { font-size: 16px; color: var(--ink); }
.facts a, .proj a, .talks a { color: inherit; text-underline-offset: 3px; }
.facts a:hover, .talks a:hover { color: var(--accent); }
.proj-group + .proj-group { margin-top: 56px; }
.proj-group-title { margin-bottom: 18px; font-size: 22px; font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }
.proj-group-title span { margin-left: 8px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; color: var(--muted); letter-spacing: 0; }
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.proj { padding: 26px 28px; border-radius: 20px; background: var(--soft); }
.proj-meta { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; color: var(--muted); }
.proj h4 { margin: 8px 0 8px; font-size: 20px; font-weight: 400; line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }
.proj h4 a { text-decoration: none; }
.proj h4 a span { color: var(--accent); font-size: 16px; }
.proj h4 a:hover { color: var(--accent); }
.proj > p:last-child { font-size: 16px; line-height: 1.6; color: var(--text); }
.talks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.talks { list-style: none; display: grid; gap: 8px; }
.talks li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 20px; border-radius: 16px; background: var(--soft); font-size: 16px; color: var(--ink); }
.recs { columns: 2; column-gap: 12px; }
.rec { break-inside: avoid; margin: 0 0 12px; padding: 26px 28px; border-radius: 20px; background: var(--soft); }
.rec blockquote p { font-size: 16px; line-height: 1.6; color: var(--text); }
.rec blockquote p + p { margin-top: 10px; }
.rec figcaption { margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.rec figcaption strong { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }
@media (max-width: 860px) {
    .about-grid, .talks-grid { grid-template-columns: 1fr; gap: 32px; }
    .proj-grid { grid-template-columns: 1fr; }
    .recs { columns: 1; }
    .facts { padding: 22px 20px; }
    .proj, .rec { padding: 22px 20px; }
    .talks li { grid-template-columns: 1fr; gap: 4px; }
}
.section--last { padding-bottom: 120px; }

/* Nav logo: photo pill */
.nav-logo { align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 4px; border-radius: 999px; background: var(--card); font-size: 19px; transition: background-color 0.2s var(--ease); }
.nav-logo:hover { background: var(--line); }
.nav-logo__av { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
@media (max-width: 420px) {
    .nav-logo { height: 36px; gap: 8px; padding-right: 13px; font-size: 18px; }
    .nav-logo__av { width: 28px; height: 28px; }
}
