:root {
  --cream: #e4e3dd;
  --paper: #f2f1ed;
  --red: #f21100;
  --brown: #733d39;
  --black: #210404;
  --blue: #3e0486;
  --mint-dark: #397365;
  --mint: #00f2b6;
  --maxw: 1080px;
  --pad: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3 {
  font-family: "Archivo", "Arial Black", sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
em, .serif { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 500; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.15rem, 2.4vw, 1.4rem); max-width: 40em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
section { padding: clamp(48px, 9vw, 104px) 0; }
.band { background: var(--cream); }
.dark { background: var(--black); color: var(--paper); }
.dark a { text-decoration-color: var(--mint); }
.eyebrow {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.dark .eyebrow { color: var(--mint); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid rgba(33, 4, 4, 0.12);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-family: "Archivo", sans-serif; font-weight: 800; text-decoration: none; letter-spacing: -0.01em; font-size: 1.15rem; }
.brand span { color: var(--red); }
.nav { display: flex; gap: clamp(14px, 3vw, 28px); flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--red); color: inherit; }

/* buttons */
.btn {
  display: inline-block;
  background: var(--red); color: #fff;
  font-family: "Archivo", sans-serif; font-weight: 700;
  padding: 14px 26px; border-radius: 999px;
  text-decoration: none; border: 2px solid var(--red);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { color: #fff; background: var(--black); border-color: var(--black); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: var(--black); color: var(--paper); border-color: var(--black); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.5rem; }

/* hero */
.hero { padding-top: clamp(56px, 11vw, 128px); }
.hero h1 em { color: var(--red); }

/* grids / cards */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 2rem; }
.card { background: var(--paper); border: 1px solid rgba(33, 4, 4, 0.14); border-radius: 14px; padding: 28px; }
.band .card { background: var(--paper); }
.dark .card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.16); }
.card .num { font-family: "Archivo", sans-serif; font-weight: 800; color: var(--red); font-size: 0.9rem; letter-spacing: .1em; }
.grid.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.split { display: grid; gap: clamp(24px, 5vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }

.pull { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: clamp(1.4rem, 3.4vw, 2.2rem); line-height: 1.25; max-width: 28em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 1rem 0 0; }
.tags li { border: 1px solid currentColor; border-radius: 999px; padding: 4px 14px; font-size: 0.9rem; }

/* podcast */
.embed { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 14px; background: var(--black); }
#latest { margin-top: 2rem; }
#latest .meta { color: var(--brown); font-size: 0.9rem; font-weight: 600; margin: 1rem 0 .2rem; }
.episodes { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 16px; }
.episodes li { padding: 20px 24px; border: 1px solid rgba(33,4,4,.14); border-radius: 14px; background: var(--paper); }
.episodes .meta { color: var(--brown); font-size: 0.9rem; font-weight: 600; }
.episodes h3 { margin: .2rem 0 .4rem; }

/* free call strip and prices */
.freecall { display: flex; align-items: center; justify-content: center; gap: 6px 16px; flex-wrap: wrap; width: 100%; margin-top: 2rem; padding: 14px 24px; background: var(--red); color: #fff; border: 2px solid var(--red); border-radius: 999px; font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.3rem; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.freecall small { font-family: "Inter", sans-serif; font-weight: 600; font-size: 0.9rem; opacity: .92; }
.freecall:hover { background: var(--black); border-color: var(--black); color: #fff; }
.freenote { text-align: center; color: var(--brown); font-size: 0.95rem; margin: .8rem auto 0; max-width: 40em; }
.price { font-family: "Archivo", sans-serif; font-weight: 800; font-size: clamp(2.1rem, 4.5vw, 3rem); line-height: 1; letter-spacing: -0.02em; margin: .3rem 0 .5rem; }
.price.soft { font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--brown); }

/* photos */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: 14px; }
.photo figcaption { font-size: 0.9rem; color: var(--brown); margin-top: .7rem; }
.dark .photo figcaption { color: rgba(242, 241, 237, .7); }
.photo.portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; max-width: 420px; }

/* client logos */
.logos-band { padding: clamp(32px, 5vw, 56px) 0; text-align: center; }
.logos-band .eyebrow { margin-bottom: 0; }
.logos-band .logos { justify-content: center; margin-top: 1.75rem; }
.logos { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 32px clamp(32px, 6vw, 72px); }
.logos img { height: 56px; width: auto; max-width: 100%; filter: grayscale(1); opacity: .85; transition: filter .2s ease, opacity .2s ease; }
.logos img[alt^="Universitat"] { height: 76px; }
.logos img[alt="Product School"] { height: 96px; }
.logos a { display: block; line-height: 0; }
.logos img[alt="Kommersant"] { height: 72px; }
.logos img:hover { filter: none; opacity: 1; }

/* form */
form { display: grid; gap: 18px; max-width: 560px; }
label { font-weight: 600; font-size: 0.95rem; display: grid; gap: 6px; }
input, textarea, select {
  font: inherit; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid rgba(33,4,4,.35); background: #fff; color: var(--black);
}
input:focus, textarea:focus, select:focus { outline: 3px solid var(--mint); outline-offset: 1px; border-color: var(--black); }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.note { font-size: 0.85rem; color: var(--brown); }
.status { font-weight: 600; min-height: 1.5em; }

/* footer */
.site-footer { background: var(--black); color: var(--paper); padding: 48px 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration-color: var(--mint); }
.site-footer small { opacity: .7; }

:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* nav dropdown */
.nav .has-sub { position: relative; }
.nav .submenu { display: none; position: absolute; top: 100%; left: -14px; padding-top: 12px; z-index: 20; }
.nav .submenu > div { background: var(--paper); border: 1px solid rgba(33, 4, 4, 0.14); border-radius: 12px; padding: 8px; box-shadow: 0 10px 28px rgba(33, 4, 4, 0.12); min-width: 190px; }
.nav .has-sub:hover .submenu, .nav .has-sub:focus-within .submenu { display: block; }
.nav .submenu a { display: block; padding: 9px 12px; border-bottom: 0; border-radius: 8px; white-space: nowrap; font-weight: 600; font-size: 0.95rem; }
.nav .submenu a:hover { background: var(--cream); color: var(--black); }
@media (max-width: 700px) { .nav .submenu { display: none !important; } }

/* case studies */
#case-studies { scroll-margin-top: 72px; }
.cases { gap: 28px; margin-top: 2.5rem; }
.cases .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.case .tag { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: .6rem; }
.case .metric { font-family: "Archivo", sans-serif; font-weight: 800; font-size: clamp(2rem, 4.6vw, 2.9rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 .4rem; }
.case .metric .arrow { color: var(--red); }
.case h3 { margin-top: 1.1rem; }
.bars { margin: 1.1rem 0 1.3rem; display: grid; gap: 7px; }
.bar-group { font-size: 0.78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brown); margin: .7rem 0 0; }
.bar-row { display: grid; grid-template-columns: 76px 1fr 64px; align-items: center; gap: 12px; font-size: 0.88rem; }
.bar-label { color: var(--brown); font-weight: 600; }
.bar-val { font-weight: 700; text-align: right; }
.bar { height: 10px; border-radius: 999px; background: rgba(33, 4, 4, 0.1); overflow: hidden; display: block; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--red); }
.bar i.was { background: rgba(115, 61, 57, 0.45); }
.steps { list-style: none; padding: 0; margin: 1.1rem 0 1.3rem; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: s; }
.steps li { counter-increment: s; border: 1px solid rgba(33, 4, 4, 0.25); border-radius: 999px; padding: 6px 14px; font-size: 0.88rem; font-weight: 600; }
.steps li::before { content: counter(s) "  "; color: var(--red); font-family: "Archivo", sans-serif; font-weight: 800; }
@media (max-width: 480px) { .bar-row { grid-template-columns: 62px 1fr 56px; gap: 8px; } }

.steps.plain li::before { content: none; }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; margin: 1.1rem 0 1.3rem; }
.stats .stat { margin: 0; padding-top: 12px; border-top: 2px solid var(--red); }
.stats .stat strong { display: block; font-family: "Archivo", sans-serif; font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.2rem); line-height: 1; letter-spacing: -0.02em; }
.stats .stat span { display: block; margin-top: .4rem; font-size: 0.82rem; line-height: 1.35; color: var(--brown); }
