/* ============================================================
   Josef Dvořák - personal site
   Editorial "intelligence dossier" aesthetic:
   warm paper + deep ink, Space Mono display, orange signal accent
   ============================================================ */

:root {
    --ink: #16171B;
    --ink-soft: #1E1F24;
    --ink-raised: #25262C;
    --paper: #FAF9F6;
    --paper-dim: #F2F0EB;
    --accent: #FF4100;
    --accent-hover: #E63A00;
    --accent-soft: #FFF0EA;
    --line: #E5E2DB;
    --line-dark: rgba(255, 255, 255, 0.12);
    --t-strong: #16171B;
    --t-body: #4A4B52;
    --t-muted: #84858D;
    --t-inverse: #F5F4F0;
    --t-inverse-dim: rgba(245, 244, 240, 0.64);
    --font-display: 'Space Mono', 'Courier New', monospace;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --container: 1140px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--t-body);
    background: var(--paper);
    overflow-x: hidden;
}

/* Grain overlay for tactile depth */
body::after {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none; z-index: 2000;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; font-weight: 700; color: var(--t-strong); letter-spacing: -0.015em; }
::selection { background: var(--accent); color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; width: 100%; }

/* ---------- Reveal choreography (jen s JS - bez něj zůstává obsah viditelný) ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: var(--d, 0s);
}
.js [data-reveal].in-view { opacity: 1; transform: none; }

/* ---------- Přístupnost ---------- */
.skip-link {
    position: fixed; top: -100px; left: 1rem; z-index: 300;
    background: var(--ink); color: var(--t-inverse);
    font-family: var(--font-display); font-size: 0.8125rem; font-weight: 700;
    padding: 0.65rem 1.1rem;
    transition: top 200ms;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:focus-visible, .nav-cta:focus-visible { outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Header ---------- */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: transparent;
    transition: background 300ms, box-shadow 300ms, border-color 300ms;
    border-bottom: 1px solid transparent;
}

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700; font-size: 0.9375rem;
    color: var(--t-inverse);
    transition: color 300ms;
}
.logo .logo-mark { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 1.75rem; }

.nav a {
    font-size: 0.8125rem; font-weight: 600;
    color: var(--t-inverse-dim);
    transition: color 200ms;
    position: relative;
}
.nav a:not(.nav-cta):not(.lang-switch a)::after {
    content: '';
    position: absolute; left: 0; bottom: -4px;
    width: 100%; height: 1px;
    background: var(--accent);
    transform: scaleX(0); transform-origin: right;
    transition: transform 300ms var(--ease-out);
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav a:hover { color: var(--t-inverse); }

.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 9px 22px !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    transition: background 200ms, transform 200ms !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; transform: translateY(-1px); }

.lang-switch {
    font-family: var(--font-display);
    font-size: 0.75rem;
    display: flex; gap: 0.5rem; align-items: center;
    color: var(--t-inverse-dim);
}
.lang-switch a { color: var(--t-inverse-dim); }
.lang-switch a:hover { color: var(--accent); }
.lang-switch .lang-active { color: var(--t-inverse); font-weight: 700; }

/* ---------- Mobilní menu ---------- */
.nav-toggle {
    display: none;
    font-family: var(--font-display);
    font-size: 0.8125rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    background: none; border: none; cursor: pointer;
    color: var(--t-inverse-dim);
    padding: 0.75rem 0.25rem;
    transition: color 200ms;
}
.nav-toggle:hover { color: var(--t-inverse); }
.header.scrolled .nav-toggle, .header.header-solid .nav-toggle { color: var(--t-body); }
.header.scrolled .nav-toggle:hover, .header.header-solid .nav-toggle:hover { color: var(--t-strong); }

.nav-menu {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    z-index: 99;
    background: var(--ink);
    padding: 1.25rem 2rem 3rem;
    overflow-y: auto;
}
.nav-menu[hidden] { display: none; }
.js .nav-menu:not([hidden]) { animation: menu-in 280ms var(--ease-out); }
@keyframes menu-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: none; }
}
.nav-menu nav { display: flex; flex-direction: column; }
.nav-menu nav a {
    font-family: var(--font-display);
    font-size: 1.375rem; font-weight: 700;
    color: var(--t-inverse);
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line-dark);
}
.nav-menu nav a:hover { color: var(--accent); }
.nav-menu nav a.active::after { content: '_'; color: var(--accent); }
.nav-menu .lang-switch { margin-top: 1.75rem; font-size: 0.875rem; }
body.menu-open { overflow: hidden; }
@media (min-width: 769px) { .nav-menu { display: none !important; } }

/* Header after scroll, or on light pages */
.header.scrolled, .header.header-solid {
    background: rgba(250, 249, 246, 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
}
.header.scrolled .logo, .header.header-solid .logo { color: var(--t-strong); }
.header.scrolled .nav a:not(.nav-cta), .header.header-solid .nav a:not(.nav-cta) { color: var(--t-body); }
.header.scrolled .nav a:not(.nav-cta):hover, .header.header-solid .nav a:not(.nav-cta):hover { color: var(--t-strong); }
.header.scrolled .lang-switch .lang-active, .header.header-solid .lang-switch .lang-active { color: var(--t-strong); }

/* Otevřené menu přebíjí scrolled stav (musí být za ním) */
.header.menu-open {
    background: var(--ink);
    border-bottom-color: var(--line-dark);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.header.menu-open .logo { color: var(--t-inverse); }
.header.menu-open .nav-toggle { color: var(--t-inverse); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 12px 26px;
    font-family: var(--font-body); font-size: 0.875rem; font-weight: 600;
    border-radius: 9999px; border: none; cursor: pointer;
    transition: all 200ms var(--ease-out); text-decoration: none;
    will-change: transform;
}
.btn svg { transition: transform 200ms; }
.btn:hover svg { transform: translateX(3px); }
.btn-lg { padding: 14px 30px; font-size: 0.9375rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 8px 24px rgba(255, 65, 0, 0.32); }
.btn-ghost { background: transparent; color: var(--t-inverse); border: 1.5px solid var(--line-dark); }
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.45); }
.btn-ghost-dark { background: transparent; color: var(--t-strong); border: 1.5px solid var(--line); }
.btn-ghost-dark:hover { border-color: var(--t-strong); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--ink);
    color: var(--t-inverse);
    padding: 11rem 0 0;
    overflow: hidden;
}

#signal-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block;
}

.hero-photo {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: url('/media/josef-hero.jpg') no-repeat 62% 32%;
    background-size: cover;
    opacity: 0.5;
}
.hero-photo::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(to right, var(--ink) 0%, rgba(22,23,27,0.6) 45%, rgba(22,23,27,0.2) 100%),
        linear-gradient(to top, var(--ink) 8%, transparent 55%);
}
@media (max-width: 768px) {
    .hero-photo { display: none; }
}

.hero .container { position: relative; z-index: 2; }

.hero-eyebrow {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    color: var(--t-inverse-dim);
    margin-bottom: 2rem;
    display: flex; align-items: center; gap: 0.75rem;
    flex-wrap: wrap;
}
.hero-eyebrow::before {
    content: '';
    width: 36px; height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

.hero h1 {
    font-size: clamp(2.5rem, 6.5vw, 5rem);
    color: var(--t-inverse);
    max-width: 17ch;
    margin-bottom: 2rem;
}
.hero h1 em {
    font-style: normal;
    color: var(--accent);
    position: relative;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--t-inverse-dim);
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 2.5rem;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 5rem; }

.hero-stats {
    display: flex; gap: 0;
    border-top: 1px solid var(--line-dark);
    position: relative; z-index: 2;
}
.hero-stat {
    flex: 1;
    padding: 1.75rem 2rem 2.25rem 0;
}
.hero-stat + .hero-stat { padding-left: 2rem; border-left: 1px solid var(--line-dark); }
.hero-stat-value {
    font-family: var(--font-display);
    font-size: 1.75rem; font-weight: 700;
    color: var(--t-inverse);
}
.hero-stat-value span { color: var(--accent); }
.hero-stat-label {
    font-size: 0.8125rem;
    color: var(--t-inverse-dim);
    margin-top: 0.25rem;
}

/* ---------- Trust bar (client names under hero) ---------- */
.trustbar {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 2rem 0;
}
.trustbar .container {
    display: flex; align-items: center; gap: 2.5rem;
    flex-wrap: nowrap;
}
.trustbar-label {
    font-family: var(--font-display);
    font-size: 0.6875rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--t-muted);
    flex-shrink: 0;
}
.trustbar-marquee {
    flex: 1; min-width: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.trustbar-track {
    display: flex; align-items: center;
    gap: 2.25rem; width: max-content;
    animation: trustbar-scroll 34s linear infinite;
}
.trustbar:hover .trustbar-track { animation-play-state: paused; }
.trustbar-track span {
    font-family: var(--font-display);
    font-size: 0.9375rem; font-weight: 700;
    color: #B4B2AC;
    letter-spacing: 0.01em;
    transition: color 250ms;
    white-space: nowrap;
}
.trustbar-track span:hover { color: var(--t-strong); }
@keyframes trustbar-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .trustbar-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ---------- Thesis pull-quote ---------- */
.thesis {
    background: var(--ink);
    padding: 7rem 0;
}
.thesis blockquote {
    max-width: 880px; margin: 0 auto;
    text-align: center;
}
.thesis blockquote p {
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 2.8vw, 2rem);
    font-weight: 700;
    line-height: 1.45;
    color: var(--t-inverse);
    letter-spacing: -0.01em;
}
.thesis blockquote p em {
    font-style: normal;
    color: var(--accent);
}
.thesis cite {
    display: block;
    margin-top: 2rem;
    font-family: var(--font-display);
    font-style: normal;
    font-size: 0.8125rem;
    color: var(--t-inverse-dim);
}
.thesis cite::before {
    content: '';
    display: block;
    width: 36px; height: 1px;
    background: var(--accent);
    margin: 0 auto 1rem;
}

/* ---------- Sections ---------- */
.section { padding: 7rem 0; }
.section-alt { background: var(--paper-dim); }
.section-dark { background: var(--ink); color: var(--t-inverse); }

.section-head {
    display: flex; align-items: baseline; gap: 1.5rem;
    margin-bottom: 3.5rem;
}
.section-no {
    font-family: var(--font-display);
    font-size: 0.8125rem; font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.06em;
    flex-shrink: 0;
}
.section h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}
.section-dark h2 { color: var(--t-inverse); }

/* ---------- Services ---------- */
.services-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    position: relative;
    padding: 2.25rem 2rem 2rem;
    background: var(--paper);
    border: 1px solid var(--line);
    transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 400ms var(--ease-out);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(22, 23, 27, 0.08);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-no {
    font-family: var(--font-display);
    font-size: 0.75rem; font-weight: 700;
    color: var(--t-muted);
    display: block;
    margin-bottom: 1.25rem;
}
.service-card h3 { font-size: 1.0625rem; margin-bottom: 0.6rem; min-height: 2.6em; display: flex; align-items: flex-end; }
.service-card p { font-size: 0.9rem; color: var(--t-body); line-height: 1.65; }

/* ---------- Approach / principles ---------- */
.principles { display: flex; flex-direction: column; }

.principle {
    display: grid;
    grid-template-columns: 130px 1.55fr 1.45fr;
    gap: 2.5rem;
    padding: 3rem 0;
    border-top: 1px solid var(--line);
    align-items: start;
}
.principle:last-child { border-bottom: 1px solid var(--line); }

.principle-no {
    font-family: var(--font-display);
    font-size: 3.5rem; font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent);
    transition: color 400ms var(--ease-out);
}
.principle:hover .principle-no { color: var(--accent); }

.principle h3 { font-size: 1.2rem; max-width: none; }
.principle p { font-size: 0.9375rem; line-height: 1.7; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2.5rem; }

.timeline-rail {
    position: absolute; top: 8px; bottom: 8px; left: 5px;
    width: 1px;
    background: var(--line);
}
.timeline-rail-fill {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 0%;
    background: var(--accent);
}

.timeline-item {
    position: relative;
    display: flex; gap: 2.5rem;
    padding: 1.9rem 0;
}
.timeline-item::before {
    content: '';
    position: absolute; left: -2.5rem; top: 2.55rem;
    width: 11px; height: 11px;
    margin-left: 0;
    border-radius: 50%;
    background: var(--paper-dim);
    border: 2px solid var(--t-muted);
    transition: border-color 300ms, background 300ms;
}
.timeline-item:hover::before { border-color: var(--accent); background: var(--accent-soft); }
.timeline-item.is-active::before { border-color: var(--accent); background: var(--accent); }
.timeline-item.is-active .timeline-date { color: var(--accent); }
.timeline-date { transition: color 350ms var(--ease-out); }

.timeline-date {
    flex-shrink: 0; width: 130px;
    font-family: var(--font-display);
    font-size: 0.75rem; font-weight: 700;
    color: var(--t-muted);
    padding-top: 5px;
    letter-spacing: 0.03em;
}

.timeline-content { flex: 1; max-width: 640px; }
.timeline-content h3 { font-size: 1.0625rem; margin-bottom: 2px; }
.timeline-company {
    font-size: 0.875rem; font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.timeline-content p { font-size: 0.9rem; color: var(--t-body); line-height: 1.65; }
.timeline-item-edu h3 { font-family: var(--font-body); font-weight: 600; }

/* ---------- Blog teaser + listing ---------- */
.post-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.post-card {
    display: flex; flex-direction: column;
    padding: 1.9rem 1.75rem;
    background: var(--paper);
    border: 1px solid var(--line);
    transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(22, 23, 27, 0.08);
}
.post-card:hover .post-link { color: var(--accent); }
.post-card:hover .post-link svg { transform: translateX(4px); }

.post-meta {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--t-muted);
    margin-bottom: 0.9rem;
}
.post-card h3 { font-size: 1.0625rem; line-height: 1.35; margin-bottom: 0.7rem; }
.post-card p { font-size: 0.875rem; line-height: 1.6; flex: 1; }

.post-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    margin-top: 1.4rem;
    font-size: 0.8125rem; font-weight: 600;
    color: var(--t-strong);
    transition: color 200ms;
}
.post-link svg { transition: transform 200ms; }

.section-foot { margin-top: 2.5rem; }

.career-band {
    display: grid; grid-template-columns: 1fr auto;
    gap: 2.5rem; align-items: center;
    border: 1px solid var(--line);
    padding: 2rem 2.25rem;
}
.career-band p { max-width: 62ch; }

/* Blog listing page */
.page-hero {
    background: var(--ink);
    color: var(--t-inverse);
    padding: 9.5rem 0 4rem;
}
.page-hero h1 { color: var(--t-inverse); font-size: clamp(2.25rem, 5vw, 3.5rem); }
.page-hero .section-no { display: block; margin-bottom: 1rem; }
.page-hero p { color: var(--t-inverse-dim); max-width: 560px; margin-top: 1.25rem; font-size: 1.0625rem; }

.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem 2.5rem;
}
.post-row {
    display: flex; flex-direction: column;
    transition: transform 300ms var(--ease-out);
}
.post-row:hover { transform: translateY(-4px); }
.post-row:hover h2 { color: var(--accent); }
.post-row:hover .post-row-cover { border-color: var(--accent); }
.post-row-cover {
    display: block;
    width: 100%;
    height: auto;
    background: var(--ink);
    border: 1px solid var(--line);
    transition: border-color 300ms;
}
.post-row .post-meta { display: block; margin: 1.2rem 0 0.6rem; }
.post-row h2 {
    font-size: 1.375rem;
    transition: color 200ms;
    margin-bottom: 0.6rem;
}
.post-row p { font-size: 0.9375rem; flex: 1; }
.post-row .post-link { margin-top: 1.2rem; }

/* ---------- Article ---------- */
.article-hero {
    background: var(--ink);
    background-size: cover;
    background-position: center;
    color: var(--t-inverse);
    padding: 9.5rem 0 4.5rem;
}
.article-hero .article-tag {
    font-family: var(--font-display);
    font-size: 0.8125rem; font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: block; margin-bottom: 1.25rem;
}
.article-hero h1 {
    color: var(--t-inverse);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    max-width: 22ch;
}
.article-hero .post-meta {
    color: var(--t-inverse-dim);
    margin: 1.75rem 0 0;
}

.article-body { max-width: 680px; margin: 0 auto; padding: 4.5rem 2rem 2rem; }

.article-body p {
    font-size: 1.0625rem; line-height: 1.8;
    margin-bottom: 1.6rem;
    color: #36373D;
}
.article-body h2 {
    font-size: 1.4rem;
    margin: 3rem 0 1.1rem;
}
.article-body ul, .article-body ol { margin: 0 0 1.6rem 1.4rem; }
.article-body li { font-size: 1.0625rem; line-height: 1.8; margin-bottom: 0.5rem; color: #36373D; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: var(--t-strong); }

.article-body blockquote {
    margin: 2.5rem 0;
    padding: 0.4rem 0 0.4rem 1.75rem;
    border-left: 3px solid var(--accent);
}
.article-body blockquote p {
    font-family: var(--font-display);
    font-size: 1.25rem; line-height: 1.55;
    color: var(--t-strong);
    margin: 0;
}

.article-footer {
    max-width: 680px; margin: 0 auto;
    padding: 2.5rem 2rem 5rem;
}
.article-bio {
    display: flex; gap: 1.5rem; align-items: center;
    padding: 2rem;
    background: var(--paper-dim);
    border-top: 3px solid var(--accent);
    margin-bottom: 2.5rem;
}
.article-bio-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.article-bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-bio h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.article-bio p { font-size: 0.875rem; line-height: 1.55; margin-bottom: 0.6rem; }
.article-bio a { font-size: 0.8125rem; font-weight: 600; color: var(--accent); }

.article-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.article-nav a {
    font-family: var(--font-display);
    font-size: 0.8125rem; font-weight: 700;
    color: var(--t-body);
    transition: color 200ms;
}
.article-nav a:hover { color: var(--accent); }

/* ---------- Contact ---------- */

.section-contact { padding: 8rem 0; position: relative; overflow: hidden; }
.section-contact h2 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    color: var(--t-inverse);
    margin-bottom: 1.5rem;
    max-width: 14ch;
}
.section-contact h2 em { font-style: normal; color: var(--accent); }
.contact-desc {
    font-size: 1.125rem; color: var(--t-inverse-dim);
    margin-bottom: 2.75rem; max-width: 520px;
    line-height: 1.7;
}
.contact-links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    border-top: 1px solid var(--line-dark);
    padding: 2rem 0;
}
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.75rem; color: var(--t-inverse-dim);
    gap: 1rem; flex-wrap: wrap;
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { transition: color 200ms; }
.footer-links a:hover { color: var(--t-inverse); }

/* ---------- Selected work (case studies) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.work-card {
    display: flex; flex-direction: column;
    padding: 2.25rem 2rem 2rem;
    background: var(--paper);
    border: 1px solid var(--line);
    transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.work-card:hover { border-color: var(--accent); }
.work-client {
    font-family: var(--font-display);
    font-size: 0.6875rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.9rem;
}
.work-card h3 { font-size: 1.0625rem; line-height: 1.35; margin-bottom: 0.6rem; }
.work-card p { font-size: 0.9rem; color: var(--t-body); line-height: 1.6; flex: 1; }
.work-result {
    margin-top: 1.4rem; padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 0.8125rem; font-weight: 700;
    color: var(--t-strong); line-height: 1.4;
}

/* ---------- References ---------- */
.ref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.ref-card {
    display: flex; flex-direction: column;
    padding: 2rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.ref-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(22, 23, 27, 0.08); }
.ref-card blockquote { flex: 1; }
.ref-card blockquote p { font-size: 0.95rem; line-height: 1.7; color: #36373D; }
.ref-author { margin-top: 1.4rem; font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; color: var(--t-strong); }
.ref-role { font-size: 0.8125rem; color: var(--t-muted); margin-top: 0.15rem; }
/* ---------- Workshop carousel ---------- */
.ws-carousel { margin-top: 2.75rem; position: relative; }
.ws-track { position: relative; min-height: 8.5rem; }
.ws-quote {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity 500ms var(--ease-out);
    display: flex; flex-direction: column; gap: 1rem;
}
.ws-quote.is-active { opacity: 1; visibility: visible; position: relative; }
.js .ws-carousel .ws-quote { }
.ws-carousel:not(.js-ready) .ws-quote { position: relative; opacity: 1; visibility: visible; }
.ws-carousel:not(.js-ready) .ws-quote + .ws-quote { display: none; }
.ws-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.1vw, 1.4rem);
    line-height: 1.5; color: var(--t-strong);
    max-width: 46ch;
}
.ws-quote p::before { content: '\201E'; color: var(--accent); }
.ws-quote p::after { content: '\201C'; color: var(--accent); }
.ws-quote cite { font-style: normal; font-size: 0.8125rem; color: var(--t-muted); font-family: var(--font-display); }
.ws-controls { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.ws-dots { display: flex; gap: 0.5rem; }
.ws-dot {
    width: 8px; height: 8px; border-radius: 50%;
    border: none; padding: 0; cursor: pointer;
    background: var(--line); transition: background 250ms, transform 250ms;
}
.ws-dot.is-active { background: var(--accent); transform: scale(1.3); }
.ws-arrow {
    background: none; border: 1px solid var(--line); cursor: pointer;
    width: 38px; height: 38px; border-radius: 50%;
    color: var(--t-body); display: grid; place-items: center;
    transition: border-color 200ms, color 200ms;
}
.ws-arrow:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 540px; margin-top: 2.5rem; }
.contact-form .field { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-form label {
    font-family: var(--font-display); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--t-inverse-dim);
}
.contact-form input, .contact-form textarea {
    font-family: var(--font-body); font-size: 1rem;
    background: rgba(255,255,255,0.05); color: var(--t-inverse);
    border: 1px solid var(--line-dark); border-radius: 0;
    padding: 0.85rem 1rem; width: 100%;
    transition: border-color 200ms, background 200ms;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--accent); background: rgba(255,255,255,0.08);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .btn { align-self: flex-start; }
.form-status { font-size: 0.9rem; min-height: 1.2rem; }
.form-status.ok { color: #7BD88F; }
.form-status.err { color: #FF7A5C; }

/* ---------- Responsive helpers ---------- */
.ref-note { margin-top: 2rem; font-size: 0.875rem; color: var(--t-muted); }
.ref-note strong { color: var(--t-strong); font-family: var(--font-display); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .principle { grid-template-columns: 90px 1fr; }
    .principle p { grid-column: 2; }
    .post-grid { grid-template-columns: 1fr; }
    .work-grid { grid-template-columns: 1fr; }
    .post-list { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    .section { padding: 4.5rem 0; }
    .hero { padding-top: 8.5rem; }
    .hero-ctas { margin-bottom: 3.5rem; }
    .hero-stats { flex-direction: column; }
    .hero-stat { padding: 1.25rem 0; }
    .hero-stat + .hero-stat { padding-left: 0; border-left: none; border-top: 1px solid var(--line-dark); }
    .services-grid { grid-template-columns: 1fr; }
    .work-grid { grid-template-columns: 1fr; }
    .ref-grid { grid-template-columns: 1fr; }
    .principle { grid-template-columns: 1fr; gap: 0.75rem; padding: 2.25rem 0; }
    .principle p { grid-column: 1; }
    .principle-no { font-size: 2.5rem; }
    .timeline { padding-left: 1.75rem; }
    .timeline-item { flex-direction: column; gap: 0.35rem; }
    .timeline-item::before { left: -1.75rem; }
    .timeline-date { width: auto; }
    .contact-links { flex-direction: column; align-items: flex-start; }
    .footer-inner { flex-direction: column; text-align: center; }
    .nav { gap: 1rem; }
    .nav a:not(.nav-cta):not(.lang-switch a) { display: none; }
    .nav .lang-switch { display: none; }
    .nav-toggle { display: block; }
    .career-band { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.75rem 1.5rem; }
    .article-bio { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .trustbar .container { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .hero-eyebrow::before { display: none; }
    .container { padding: 0 1.25rem; }
    .article-body, .article-footer { padding-left: 1.25rem; padding-right: 1.25rem; }
    .btn-lg { padding: 12px 22px; font-size: 0.875rem; }
}

/* ---------- Video ---------- */
.video-section { background: var(--ink); color: var(--t-inverse); }
.video-section h2 { color: var(--t-inverse); }

.video-wrap {
    position: relative;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: #000;
}

.video-meta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.75rem; flex-wrap: wrap;
    margin-top: 1.75rem;
}
.video-caption {
    color: var(--t-inverse-dim);
    max-width: 56ch;
    font-size: 0.9375rem;
    margin: 0;
}
.video-meta .btn-ghost { flex-shrink: 0; }

@media (max-width: 600px) {
    .video-meta { flex-direction: column; align-items: flex-start; }
}

/* ---------- About lead intro ---------- */
.about-lead { max-width: 720px; }
.about-lead p { font-size: 1.0625rem; line-height: 1.8; color: var(--t-body); margin-bottom: 1.25rem; }
.about-lead p:first-child { color: var(--t-strong); font-size: 1.25rem; line-height: 1.6; }
.about-lead p:last-child { margin-bottom: 0; }
