/* ===== Exo 2 — self-hosted (was Google Fonts CDN) ===== */
@font-face { font-family: 'Exo 2'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/exo2/exo2-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Exo 2'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/exo2/exo2-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/exo2/exo2-regular-cyrillic.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/exo2/exo2-regular-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/exo2/exo2-bold-cyrillic.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/exo2/exo2-bold-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --primary: #0E0F11;
  --neutral: #FCFBF7;
  --muted: #5E6065;
  --rule: #E5E0D5;
  --accent: #E85A1A;
  --accent-quiet: #FFE6D5;
  --accent-ink: #FCFBF7;
  --accent-hover: #D44A0F;
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--neutral);
  color: var(--primary);
  font-family: 'Exo 2', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--primary); color: var(--neutral);
  padding: 10px 16px; z-index: 200; transition: top 160ms ease;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; border-top: 1px solid var(--rule); }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.eyebrow {
  font-size: 12px; font-weight: 400; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 16px;
}
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin-bottom: 16px; }
.section-lede { font-size: 18px; color: var(--muted); max-width: 700px; margin-bottom: 48px; }
.em { color: var(--accent); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(252, 251, 247, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.logo .dot { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-menu { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-menu a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color 180ms ease; }
.nav-menu a:hover { color: var(--primary); }
.nav-menu a.current { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

.lang { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.lang a { text-decoration: none; color: var(--muted); padding: 4px 6px; min-height: 44px; display: inline-flex; align-items: center; }
.lang a.active { color: var(--primary); font-weight: 700; }
.lang .bar { color: var(--rule); }
.lang-in-menu { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--rule);
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px; padding: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--primary); transition: transform 220ms ease, opacity 220ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; order: 3; }
  .lang-desktop { display: none; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--neutral); border-bottom: 1px solid var(--rule);
    padding: 8px 24px 24px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu li { border-bottom: 1px solid var(--rule); }
  .nav-menu li:last-child { border-bottom: none; }
  .nav-menu a { display: block; padding: 16px 4px; font-size: 17px; color: var(--primary); min-height: 44px; }
  .lang-in-menu { display: flex; align-items: center; gap: 8px; padding: 16px 4px; }
  .lang-in-menu a { display: inline-flex; padding: 4px 0; min-height: auto; font-size: 17px; }
  .lang-in-menu a.active { color: var(--primary); font-weight: 700; }
  .lang-in-menu .bar { color: var(--rule); }
}

/* ---------- BUTTONS ---------- */
.btn {
  font-family: inherit; font-size: 15px; font-weight: 700; padding: 15px 26px; min-height: 52px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, transform 180ms ease;
}
.btn-primary { background: var(--primary); color: var(--neutral); border-color: var(--primary); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--rule); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-ico { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; display: block; }

/* ---------- HERO (merged with about) ---------- */
.hero { padding-top: 56px; padding-bottom: 84px; border-top: none; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 22px; max-width: 980px; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 0.7fr; gap: 52px; align-items: start; }
.hero .lede { font-size: clamp(17px, 2vw, 20px); color: var(--primary); max-width: 620px; margin-bottom: 16px; }
.hero .sub { font-size: 16px; color: var(--muted); max-width: 620px; margin-bottom: 6px; }
.hero .about p { font-size: 17px; color: var(--muted); margin-bottom: 16px; max-width: 620px; }
.hero .pull {
  font-style: italic; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.3; color: var(--primary);
  border-left: 3px solid var(--accent); padding-left: 22px; margin-top: 26px;
}
.hero-linkedin {
  display: inline-block; margin-top: 20px; font-weight: 700; font-size: 15px;
  text-decoration: none; color: var(--primary);
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.hero-linkedin:hover { color: var(--accent); }
.hero-photo { border: 1px solid var(--rule); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; max-width: 230px; margin-left: auto; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { max-width: 200px; margin-left: 0; order: -1; }
}

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin-top: 44px; }
.stat { padding: 24px 20px; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.stat .num { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.stat .num .em { color: var(--accent); }
.stat .lbl { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.4; }
.stat .lbl a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.stat .lbl a:hover { color: var(--accent); }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }

.speaker-strip {
  margin: 0; padding: 16px 0; border-bottom: 1px solid var(--rule);
  font-size: 13px; line-height: 1.55; color: var(--muted);
}
.speaker-strip .speaker-label {
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary); font-size: 12px; margin-right: 8px;
}
.speaker-strip a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* ---------- PROJECTS ---------- */
.projects-head { margin-bottom: 40px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 780px) { .projects-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.project-card {
  height: auto; border: 1px solid var(--rule); background: var(--neutral);
  display: flex; flex-direction: column; text-decoration: none;
  transition: border-color 220ms ease, transform 220ms ease;
}
a.project-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.project-card .thumb { aspect-ratio: 1.618 / 1; object-fit: cover; object-position: center; width: 100%; border-bottom: 1px solid var(--rule); background: var(--accent-quiet); }
.project-card .thumb.contain { object-fit: contain; object-position: center; background: var(--primary); }
.project-card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.project-card .cat { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.project-card h3 { font-size: 20px; line-height: 1.2; }
.project-card p { font-size: 14px; color: var(--muted); flex-grow: 1; }
.project-card .go { font-size: 13px; letter-spacing: 0.04em; color: var(--primary); font-weight: 700; }

/* ---------- TIMELINE ---------- */
.timeline { border-left: 2px solid var(--rule); margin-left: 6px; }
.tl-item { position: relative; padding: 0 0 36px 32px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--neutral);
}
.tl-item.now::before { background: var(--primary); box-shadow: 0 0 0 4px var(--accent-quiet); }
.tl-year { font-weight: 700; font-size: 18px; }
.tl-title { font-weight: 700; margin: 2px 0 4px; }
.tl-desc { color: var(--muted); font-size: 15px; max-width: 640px; }
.tl-logo { height: 30px; width: auto; display: block; margin: 2px 0 6px; }
.tl-title a, .tl-desc a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.tl-title a:hover, .tl-desc a:hover { color: var(--accent); }
a.tl-logolink { display: inline-block; text-decoration: none; }

/* ---------- BOOK ---------- */
.book { background: var(--primary); color: var(--neutral); border-top: none; }
.book .eyebrow { color: rgba(252,251,247,0.6); }
.book h2 { color: var(--neutral); }
.book-grid { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
.book-cover {
  border: 1px solid rgba(252,251,247,0.15); width: min(100%, 280px);
  height: auto; aspect-ratio: 511 / 770; object-fit: contain; justify-self: start;
}
.book .quote-line { font-style: italic; font-size: clamp(20px, 2.6vw, 26px); color: var(--accent); margin: 0 0 18px; }
.book p { font-size: 17px; color: rgba(252,251,247,0.78); margin-bottom: 28px; max-width: 560px; }
.book .btn-ghost { color: var(--neutral); border-color: rgba(252,251,247,0.3); }
.book .btn-ghost:hover { border-color: var(--neutral); }
@media (max-width: 740px) { .book-grid { grid-template-columns: 1fr; gap: 32px; } .book-cover { width: min(100%, 280px); } }

/* ---------- PARTNERSHIP (condensed) ---------- */
.partner { background: var(--accent-quiet); border-top: none; }
.partner p { font-size: 18px; max-width: 760px; }
.partner-stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }
.pstat { background: var(--neutral); border: 1px solid var(--rule); padding: 14px 18px; }
.pstat .n { font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.pstat .n .em { color: var(--accent); }
.pstat .t { font-size: 12px; color: var(--muted); margin-top: 2px; }
.partner .deal { font-size: 16px; color: var(--muted); max-width: 760px; margin-bottom: 28px; }
.partner .deal strong { color: var(--primary); }

/* ---------- TESTIMONIALS ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 720px) { .quotes { grid-template-columns: 1fr; } }
.quote { border: 1px solid var(--rule); padding: 28px 26px; display: flex; flex-direction: column; gap: 18px; }
.quote p { font-size: 17px; line-height: 1.5; }
.quote .who { margin-top: auto; display: flex; align-items: center; gap: 16px; }
.quote .avatar {
  width: 68px; height: 68px; border-radius: 50%; background: var(--primary); color: var(--neutral);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; flex-shrink: 0;
  object-fit: cover;
}
.quote .who .name { font-weight: 700; font-size: 15px; }
.quote .who .role { font-size: 13px; color: var(--muted); }

/* ---------- VALUES (2-column accordion on desktop) ---------- */
.accordion { border-top: 1px solid var(--rule); }
.acc-item { border-bottom: 1px solid var(--rule); }
.acc-trigger {
  width: 100%; background: transparent; border: none; font-family: inherit; text-align: left;
  cursor: pointer; padding: 22px 4px; min-height: 44px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; color: var(--primary);
}
.acc-trigger h3 { font-size: clamp(17px, 2vw, 21px); display: inline; }
.acc-trigger .n { color: var(--muted); font-size: 13px; margin-right: 14px; }
.acc-icon { flex-shrink: 0; width: 24px; height: 24px; position: relative; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: var(--accent); transition: transform 240ms ease, opacity 240ms ease; }
.acc-icon::before { top: 11px; left: 2px; width: 20px; height: 2px; }
.acc-icon::after { left: 11px; top: 2px; width: 2px; height: 20px; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: rotate(90deg); opacity: 0; }
.acc-panel { overflow: hidden; max-height: 0; transition: max-height 320ms ease; }
.acc-panel-inner { padding: 0 4px 24px; color: var(--muted); font-size: 16px; max-width: 760px; }

@media (min-width: 900px) {
  .accordion { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: none; }
  .accordion .acc-item { border-top: 1px solid var(--rule); }
}

/* ---------- TINT (warm background variation) ---------- */
.tint { background: var(--accent-quiet); border-top: none; }

/* ---------- OFF THE CLOCK ---------- */
.offwork-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; }
.offwork-books { grid-column: span 2; }
@media (max-width: 760px) { .offwork-grid { grid-template-columns: 1fr; gap: 28px; } .offwork-books { grid-column: auto; } }
.offwork-grid h3 { font-size: 18px; margin-bottom: 14px; }
.offwork-grid p { color: var(--muted); font-size: 16px; }
.books { list-style: none; columns: 2; column-gap: 40px; }
@media (max-width: 760px) { .books { columns: 1; } }
.books li { padding: 8px 0; font-size: 16px; break-inside: avoid; }
.books cite { font-style: normal; }
.books span { color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: var(--primary); color: var(--neutral); border-top: none; text-align: center; }
.cta .eyebrow { color: rgba(252,251,247,0.6); }
.cta h2 { color: var(--neutral); }
.cta .section-lede { color: rgba(252,251,247,0.72); margin-left: auto; margin-right: auto; }
.cta .btn-row { justify-content: center; }
.cta .btn-ghost { color: var(--neutral); border-color: rgba(252,251,247,0.3); }
.cta .btn-ghost:hover { border-color: var(--neutral); }

/* ---------- FOOTER ---------- */
footer { padding: 32px 0; border-top: 1px solid var(--rule); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; font-size: 14px; color: var(--muted); }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--primary); }
.footer-share {
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--primary);
  background: transparent; border: 1px solid var(--rule); cursor: pointer;
  padding: 10px 18px; min-height: 44px; transition: border-color 180ms ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-share:hover { border-color: var(--primary); }
.socials { display: flex; gap: 18px; align-items: center; }
.socials a { color: var(--muted); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; transition: color 160ms ease; }
.socials a:hover { color: var(--accent); }
.socials svg { width: 22px; height: 22px; fill: currentColor; display: block; }
@media (max-width: 560px) { .footer-inner { justify-content: center; text-align: center; } }

/* ---------- CASE (Connect feature section) ---------- */
.case-grid { display: grid; grid-template-columns: 1fr 368px; gap: 52px; align-items: center; }
.case-grid > a {
  order: 2; display: block; width: 100%; aspect-ratio: 368 / 410;
  min-width: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 18px;
}
/* mobile: image fills the full container width and shows first */
@media (max-width: 820px) { .case-grid { grid-template-columns: 1fr; gap: 28px; } .case-grid > a { order: -1; } }
/* screenshot always scales to full width; the wrapper clips excess height from the bottom */
.case-cover { width: 100%; height: auto; display: block; }
.case h2 a { color: inherit; text-decoration: none; }
.case h2 a:hover { color: var(--accent); }
.case .quote-line { font-style: italic; font-size: clamp(20px, 2.6vw, 26px); color: var(--accent); margin: 0 0 16px; }
.case p { font-size: 17px; color: var(--muted); margin-bottom: 14px; max-width: 580px; }
.case-stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 22px 0; }
.case-stat .n { font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.case-stat .n .em { color: var(--accent); }
.case-stat .t { font-size: 12px; color: var(--muted); margin-top: 2px; }
.case .insight { border-left: 3px solid var(--accent); padding-left: 20px; font-style: italic; color: var(--primary); font-size: 17px; margin: 18px 0 26px; max-width: 580px; }

/* ---------- ROLES (co-creators) ---------- */
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 8px 0 30px; }
@media (max-width: 640px) { .roles { grid-template-columns: 1fr; } }
.role { background: var(--neutral); border: 1px solid var(--rule); padding: 22px 22px; }
.role h3 { font-size: 19px; line-height: 1.2; margin-bottom: 8px; }
.role p { font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
