/* ============================================================
   vivi.red — hand-written styles (no framework)
   Light warm theme · red as rare accent
   Built 2026-10-06 — see redesign-handover.md
   ============================================================ */

/* ---------- Self-hosted fonts (local, no external deps) ---------- */
/* latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/eb-garamond-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;
}
/* latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/eb-garamond-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;
}
/* latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/eb-garamond-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;
}
/* latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/eb-garamond-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;
}
/* latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/eb-garamond-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;
}
/* latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/eb-garamond-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;
}
/* latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/eb-garamond-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;
}
/* latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/eb-garamond-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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-tight-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;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-tight-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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-tight-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;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-tight-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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-tight-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;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-tight-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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-tight-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;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-tight-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;
}

/* ---------- Tokens ---------- */
:root {
    --paper: #faf9f7;
    --ink: #191713;
    --soft: #4f4b44;
    --muted: #8b857a;
    --line: #e8e5dd;
    --cream: #f3f1eb;
    --white: #ffffff;
    --accent: #dc2626;
    --accent-dark: #b91c1c;

    --font-display: "EB Garamond", "Inter Tight", serif;
    --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Layout */
    --maxw: 72rem;      /* 1152px */
    --pad: 1.5rem;      /* 24px */
    --sec-pad: 3rem;    /* 48px; 4rem at >=768px */
    --radius: 0.75rem;  /* 12px */
    --radius-lg: 1rem;  /* 16px */

    /* Type scale */
    --fs-xs: 0.75rem;   /* 12px */
    --fs-sm: 0.875rem;  /* 14px */
    --fs-base: 1rem;    /* 16px */
    --fs-md: 1.125rem;  /* 18px */
    --fs-lg: 1.375rem;  /* 22px */
    --fs-xl: 1.5rem;    /* 24px */

    /* Spacing scale */
    --sp-1: 0.25rem;    /* 4px */
    --sp-2: 0.5rem;     /* 8px */
    --sp-3: 0.75rem;    /* 12px */
    --sp-4: 1rem;       /* 16px */
    --sp-5: 1.5rem;     /* 24px */
    --sp-6: 2rem;       /* 32px */
    --sp-7: 2.5rem;     /* 40px */
    --sp-8: 3rem;       /* 48px */
}
@media (min-width: 768px) {
    :root { --sec-pad: 4rem; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[id] { scroll-margin-top: 5rem; }

/* ---------- Layout ---------- */
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}
.section {
    border-bottom: 1px solid var(--line);
    padding-top: var(--sec-pad);
    padding-bottom: var(--sec-pad);
}
.band-cream { background: var(--cream); }



/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(1.875rem);
    transition: 1.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 249, 247, 0.85);
    -webkit-backdrop-filter: blur(.5rem);
    backdrop-filter: blur(.5rem);
    /*border-bottom: 1px solid var(--line);*/
}
.site-header .bar {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
}
.logo img { width: 4rem; height: 4rem; border-radius: 50%; }
.main-nav { display: none; align-items: center; gap: var(--sp-6); }
.main-nav a { color: var(--soft); text-decoration: none; }
.main-nav a:hover { color: var(--ink); }

/* ---------- Hamburger toggle ---------- */
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
    border-radius: 0.625rem;
    transition: background-color 0.15s ease;
}
.menu-toggle:hover { background: rgba(0,0,0,0.05); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* ---------- Slide panel ---------- */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(25, 23, 19, 0.5);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.menu-overlay.open {
    opacity: 1;
    -webkit-backdrop-filter: blur(.5rem);
    backdrop-filter: blur(.5rem);
    pointer-events: auto;
}
.menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 85vw;
    max-width: 30ch;
    height: 100dvh;
    background: var(--paper);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: var(--sp-4) var(--sp-6) var(--sp-7);
    box-shadow: -8px 0 32px rgba(0,0,0,0.12);
    overflow-y: auto;
}
.menu-panel.open {
    transform: translateX(0);
}
.menu-panel-logo img { width: 3rem; height: 3rem; border-radius: 50%; }
.menu-close {
    position: absolute;
    top: var(--sp-4);
    right: var(--sp-4);
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.15s ease;
}
.menu-close:hover { background: rgba(0,0,0,0.05); }
.menu-panel-links {
    margin-top: var(--sp-6);
    display: flex;
    flex-direction: column;
}
.menu-panel-links a:not(.menu-panel-cta) {
    display: block;
    padding: var(--sp-4) 0;
    /*font-size: var(--fs-lg);*/
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: color 0.15s ease;
}
.menu-panel-links a:not(.menu-panel-cta):hover { color: var(--accent); }
.menu-panel-links a:last-child { border-bottom: none; }
.menu-panel-cta {
    margin-top: var(--sp-5);
    border-bottom: none !important;
}

/* Hide the desktop nav below 1024px; show hamburger instead */
@media (min-width: 1024px) { .main-nav { display: flex; } }
@media (min-width: 1024px) { .menu-panel, .menu-overlay { display: none; } }
@media (min-width: 768px) and (max-width: 1023px) { .menu-panel { max-width: 45ch; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 0.625rem;
    padding: var(--sp-3) 1.25rem;
    font-weight: 600;
    font-size: var(--fs-base);
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--cream); }
.btn-sm { padding: var(--sp-2) 1.25rem; }
.btn-lg { padding: var(--sp-4) 1.5rem; }

/* Nav CTA: smaller text on mobile/tablet (where the hamburger shows) */
@media (max-width: 1023px) {
    .site-header .btn-sm { font-size: var(--fs-sm); padding: var(--sp-2) 0.875rem; margin-left: auto; }
}

/* ---------- Typography ---------- */
.eyebrow {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin: 0;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h1 {
    margin: var(--sp-4) 0 0;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 1.4rem + 3vw, 3.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}
h2 {
    margin: var(--sp-4) 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 44rem;
}

p {max-width: 65ch;}
p.muted {color: var(--muted);}

.lead { margin: var(--sp-5) 0 0; max-width: 30rem; font-size: var(--fs-md); line-height: 1.65; color: var(--soft); }
.prose { max-width: 42rem; }
.prose h1 { margin: 0; }
.prose h2 { margin-top: var(--sp-8); margin-bottom: var(--sp-4); }
.prose p { margin: 0; font-size: var(--fs-md); line-height: 1.65; color: var(--soft); }
.prose p + p { margin-top: var(--sp-4); }
.prose ul { margin: var(--sp-4) 0 0; padding-left: var(--sp-5); list-style: disc; }
.prose li { font-size: var(--fs-md); line-height: 1.65; color: var(--soft); }
.prose li + li { margin-top: var(--sp-2); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-8) 0; }
.accent { color: var(--accent); }

/* ---------- Hero ---------- */

@media (min-width: 768px) { .hero .container { padding-top: 3rem; padding-bottom: 3rem; } }
.hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); margin-top: var(--sp-8); max-width: 50ch; margin-inline: auto; }
@media (max-width: 639px) {
    .hero-cta { gap: var(--sp-3); }
    .hero-cta .btn { padding-left: var(--sp-2); padding-right: var(--sp-2); }
}

/* ---------- Folder machine ---------- */
.folder {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
}
.folder-head, .brief-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-2) var(--sp-4);
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-sm);
    font-weight: 600;
}
.folder-head .title, .brief-head .title { display: flex; align-items: center; gap: var(--sp-2); }
.folder-head .icon, .brief-head .icon { width: 1rem; height: 1rem; color: var(--accent); }
.folder-head .count, .brief-head .count { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
.file-list { list-style: none; margin: 0; padding: 0; position: relative; }
.file-list::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35%;
    background: linear-gradient(to bottom, transparent, var(--white) 85%);
    pointer-events: none;
    z-index: 1;
}
.file-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--line); }
.file-row:last-child { border-bottom: 0; }
.file-row img { width: 2rem; height: 2rem; border-radius: 0.375rem; object-fit: cover; }
.file-name { font-family: var(--font-mono); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }

.machine-arrow { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); margin: var(--sp-6) 0; }
.machine-arrow .rule { width: 2.5rem; height: 1px; background: var(--line); }
@media (min-width: 640px) { .machine-arrow .rule { width: 4rem; } }
.machine-arrow .arrow { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; line-height: 1; color: var(--accent); }
.machine-arrow .label { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; }

.machine-out { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-2); }
@media (min-width: 640px) { .machine-out { gap: var(--sp-3); } }
.machine-steps { margin: var(--sp-4) 0 0; text-align: center; font-size: var(--fs-sm); line-height: 1.7; color: var(--muted); }
.machine-steps .sep { margin: 0 var(--sp-1); color: rgba(25, 23, 19, 0.3); }

/* ---------- Video tiles (machine / work grid / founder) ---------- */
.video-tile {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-color: var(--cream);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.video-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.video-tile video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.video-tile .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: rgba(0, 0, 0, 0.15);*/
}
.video-tile .play-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #0006;
    /*border: 1px solid var(--muted);*/
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.video-tile:hover .play-btn { transform: scale(1.1); }
.video-tile .play-btn svg { width: 2rem; height: 2rem; margin-left: 2px; color: var(--white); }
@media (max-width: 639px) {
    .video-tile .play-btn { width: 2rem; height: 2rem; }
    .video-tile .play-btn svg { width: 1.5rem; height: 1.5rem; margin-left: 2px; color: var(--white); }
}
.video-tile .badge {
    position: absolute;
    right: var(--sp-1);
    bottom: var(--sp-1);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    line-height: 1.4;
    padding: var(--sp-1) var(--sp-2);
    border-radius: 0.25rem;
}
.video-tile .badge-tl { right: auto; bottom: auto; left: var(--sp-1); top: var(--sp-1); font-family: var(--font-sans); font-weight: 600; }
.video-tile.lg { border-radius: var(--radius-lg); }
.video-tile.lg .play-btn { width: 3rem; height: 3rem; }
.video-tile.lg .play-btn svg { width: 1.25rem; height: 1.25rem; }

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); margin-top: var(--sp-7); }
@media (min-width: 640px) { .work-grid { gap: var(--sp-4); } }
@media (min-width: 768px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(4, 1fr); } }
/* collapsed state shows 9 tiles (showreel + 8); hide the 10th and beyond */
.work-grid[data-expanded="false"] > div:nth-child(n + 9) { display: none; }
.work-legend { margin: var(--sp-3) 0 0; font-size: var(--fs-xs); color: var(--muted); }
.work-more { display: flex; justify-content: flex-end; margin-top: var(--sp-5); }

/* ---------- Proof ---------- */
.proof-card { margin-top: var(--sp-7); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.proof-row { display: grid; grid-template-columns: 1fr; }
.proof-row + .proof-row { border-top: 1px solid var(--line); }
@media (min-width: 640px) { .proof-row { grid-template-columns: 1fr 1fr 1fr; } }
.proof-stat { padding: var(--sp-5); }
.proof-stat + .proof-stat { border-left: 1px solid var(--line); }
@media (max-width: 639px) {
    .proof-stat + .proof-stat { border-left: 0; border-top: 1px solid var(--line); }
}
.proof-stat .num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.proof-row-vol .num { font-size: var(--fs-xl); }
.proof-stat .lbl { margin-top: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; }
.proof-stat.is-muted .num, .proof-stat.is-muted .lbl { color: var(--muted); }
.proof-stat.is-red .num { color: var(--accent); }
.proof-note { margin: var(--sp-4) 0 0; max-width: 42rem; font-size: var(--fs-sm); line-height: 1.6; color: var(--muted); }

/* ---------- Agenda ---------- */
.agenda-track { margin-top: var(--sp-7); }
.agenda-track + .agenda-track { margin-top: var(--sp-8); }
.agenda-heading { margin: 0 0 var(--sp-4); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.agenda-list { list-style: none; margin: var(--sp-4) 0; padding: 0; max-width: 48rem; display: grid; gap: var(--sp-4); }
.agenda-list li { display: grid; grid-template-columns: minmax(0, 10rem) 1fr; gap: var(--sp-3); line-height: 1.6; color: var(--soft); }
@media (min-width: 640px) { .agenda-list li { grid-template-columns: minmax(0, 16rem) 1fr; gap: var(--sp-5); } }
.agenda-list b { color: var(--ink); font-weight: 600; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: var(--sp-5); margin-top: var(--sp-7); }
@media (min-width: 768px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); }
.price-card.primary { border-top: 2px solid var(--accent); }
.price-card .name { margin: 0; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.price-card.primary .name { color: var(--accent); }
.price-card .amount { margin: var(--sp-3) 0 0; font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; }
.price-card.primary .amount { color: var(--accent); }
.price-card .amount span { font-family: var(--font-sans); font-size: var(--fs-base); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card .desc { margin: var(--sp-4) 0 0; line-height: 1.65; color: var(--soft); }
.price-card .cta { margin-top: auto; padding-top: var(--sp-5); }
.cta-link { font-weight: 600; text-underline-offset: 4px; color: var(--ink); }
.cta-link:hover { text-decoration: underline; }
.price-card.primary .cta-link, .cta-link.is-red { color: var(--accent); }

/* ---------- Founder ---------- */
.founder-grid { display: grid; gap: var(--sp-7); margin-top: var(--sp-7); align-items: start; }
@media (min-width: 768px) { .founder-grid { grid-template-columns: minmax(0, 20rem) 1fr; } }
.founder-grid .video-tile { max-width: 16rem; width: 100%; margin: 0 auto; }
.founder-text .role { margin: 0; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.founder-text p { margin: var(--sp-4) 0 0; max-width: 42rem; font-size: var(--fs-md); line-height: 1.65; color: var(--soft); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: var(--sp-7); max-width: 48rem; border-top: 1px solid var(--line); }
.faq-item { padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; }
.faq-item p { margin: var(--sp-2) 0 0; line-height: 1.65; color: var(--soft); }

/* ---------- Footer / CTA ---------- */
.footer-cta { padding-top: var(--sec-pad); padding-bottom: var(--sec-pad); }
.footer-col { display: flex; flex-direction: column; gap: var(--sp-4); }
.legal { margin-top: 5rem; padding-top: var(--sp-5); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); }
@media (min-width: 768px) { .legal { flex-direction: row; align-items: center; justify-content: space-between; } }
.legal a { color: var(--muted); text-decoration: none; }
.legal a:hover { color: var(--ink); }
.legal .links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }

/* ============================================================
   Rumpala-inspired layout components (added 2026-10-07)
   Reuses existing tokens — no new colors or fonts.
   ============================================================ */

/* ---------- Stat band (below hero) ---------- */
.stat-strip { border-bottom: 1px solid var(--line); }
.stat-strip .container { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .stat-strip .container { grid-template-columns: repeat(3, 1fr); } }
.stat-strip .stat { padding: var(--sp-6) var(--sp-5); border-top: 1px solid var(--line); }
@media (min-width: 768px) {
    .stat-strip .stat { border-top: 0; }
    .stat-strip .stat + .stat { border-left: 1px solid var(--line); }
}
.stat-strip .num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.stat-strip .lbl { margin-top: var(--sp-2); font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }

/* ---------- Hashtag tag-chips (service sections) ---------- */
.tags { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tag { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--soft); background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: var(--sp-1) var(--sp-3); }
.band-cream .tag { background: var(--white); }

/* ---------- Process (numbered steps) ---------- */
.steps { display: grid; gap: var(--sp-5); margin-top: var(--pad); }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sec-pad); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step-num { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.2em; color: var(--muted); }
.step h3 { margin: var(--sp-4) 0 0; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; }
.step p { margin: var(--sp-2) 0 0; line-height: 1.65; color: var(--soft); font-size: var(--fs-base); }

/* ---------- Process: shared step + service tracks ---------- */
.steps-shared { grid-template-columns: 1fr; }
.step--shared { max-width: 40rem; }
.process-tracks { display: grid; gap: var(--sp-8); margin-top: var(--sp-8); }
@media (min-width: 1024px) { .process-tracks { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } }
.track-steps { display: grid; gap: var(--sp-5); }

/* ---------- Contact (2-col + form) ---------- */
.contact-grid { display: grid; gap: var(--sp-8); }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact-price { margin: var(--sp-5) 0 0; font-size: var(--fs-base); font-weight: 600; color: var(--ink); }
.contact-note { margin: var(--sp-2) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.contact-cta { margin-top: var(--sp-4); max-width: 50ch; }
.contact-cta .btn { width: 100%; justify-content: center; }
.contact-form { display: grid; gap: var(--sp-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6); background: var(--white); }
.contact-form label { display: grid; gap: var(--sp-1); font-size: var(--fs-sm); font-weight: 600; color: var(--soft); }
.contact-form input, .contact-form textarea { font: inherit; font-weight: 400; color: var(--ink); padding: var(--sp-2); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; background: var(--white); }
.contact-form textarea { min-height: 7.5rem; resize: vertical; }
.contact-form .btn { margin-top: var(--sp-1); }

/* ---------- Footer (content-rich 2-col) ---------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--sp-8) 0 var(--sp-4); }
.footer-cols { display: grid; gap: var(--sp-4); }
@media (min-width: 768px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { margin: 0 0 var(--sp-4); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.footer-col .svc { margin: 0 0 var(--sp-4); }
.footer-col .svc b { display: block; margin-bottom: var(--sp-1); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.footer-col .svc p { margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--soft); }
.footer-col address { margin: 0; font-style: normal; font-size: var(--fs-sm); line-height: 1.8; color: var(--soft); }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.site-footer .legal { margin-top: var(--sp-8); }

/* ============================================================
    Dual-service hero + dedicated service sections
    Reuses existing tokens — no new colors or fonts.
    ============================================================ */

/* ---------- Hero (centered, two paths) ---------- */
.hero.hero-center .container { text-align: center; }
.hero.hero-center .eyebrow { width: fit-content; margin: 0 auto; }
.hero.hero-center .h1 { margin: var(--sp-4) auto 0; }
.hero.hero-center .lead { margin: var(--sp-5) auto 0; max-width: 40rem; }
.hero.hero-center .hero-cta { justify-content: center; }
.hero-price { margin: var(--sp-5) auto 0; font-size: var(--fs-base); font-weight: 600; color: var(--ink); }
.hero-price-sub { display: block; margin-top: var(--sp-1); font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
.hero-lead { margin: var(--sp-4) auto 0; max-width: 40rem; font-size: var(--fs-md); line-height: 1.65; color: var(--soft); }

.hero-paths { display: grid; gap: var(--sp-8); max-width: var(--maxw); margin: var(--sp-8) auto 0; }
@media (min-width: 768px) { .hero-paths { grid-template-columns: 1fr 1fr; } }
.path-card {
    display: block;
    text-align: left;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.path-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.path-link-row { display: flex; justify-content: flex-end; margin-top: var(--sp-6); }
.path-link { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.path-q { margin: 0; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.02em; }
.path-tiles { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; }
.path-tiles img { width: 3.5rem; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.path-name { margin: var(--sp-4) 0 0; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.path-name .path-arrow { color: var(--accent); }
.path-sub { margin: var(--sp-1) 0 0; font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Service sections (copy + visual split) ---------- */
.section-compact { padding-bottom: var(--sp-5); }
.svc-split { display: grid; gap: var(--sp-6); }
.svc-copy { order: -1; }
@media (min-width: 1024px) {
    .svc-split { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
    .svc-split.reverse .svc-visual { order: -1; }
}
.svc-copy .cta { margin-top: var(--sp-5); }

/* ---------- Text + illustration split (Problém / Proč organicky / Naše služby) ---------- */
.text-illus-split { display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 1024px) {
    .text-illus-split { grid-template-columns: 1.2fr 1fr; gap: var(--sp-8); }
}
.til-illus { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-3); }
.til-illus svg { width: 100%; max-width: 22rem; height: auto; }
.til-caption {
    margin: 0;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    color: var(--muted);
    text-align: right;
}

/* ---------- Brief card (avatar input) ---------- */
.brief { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.brief-body { margin: 0; padding: var(--sp-4); position: relative; }
.brief-body::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35%;
    background: linear-gradient(to bottom, transparent, var(--white) 85%);
    pointer-events: none;
    z-index: 1;
}
.brief-row { display: flex; gap: var(--sp-2); padding: var(--sp-1) 0; margin: 0; font-size: var(--fs-sm); line-height: 1.5; border-bottom: 1px solid var(--line);}
.brief-row .k { flex-shrink: 0; width: 4.5rem; padding-top: var(--sp-1); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.brief-row .v { font-weight: 500; color: var(--ink); }

/* ---------- Machine output: 4-tile variant ---------- */
.machine-out--4 { grid-template-columns: repeat(4, minmax(0, 220px)); justify-content: center; }
