/* ============================================================
   Юлія Карпалюк — персональний сайт
   Design system: warm, expert, human. One accent.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Palette */
  --ink: #15151F;          /* graphite text */
  --ink-soft: #34343f;     /* secondary text on light */
  --bg: #FAF7F2;           /* warm cream */
  --white: #FFFFFF;        /* content cards */
  --muted: #6E6A64;        /* warm gray meta (darkened for AA) */
  --line: #E9E3DA;         /* hairline on cream */
  --line-strong: #DBD3C7;

  /* Accent — swapped via [data-accent] */
  --accent: #C2553E;       /* terracotta-coral (default, AA-safe) */
  --accent-deep: #A8412C;
  --accent-tint: #F7E7E1;
  --on-accent: #FFFFFF;

  /* Dark surfaces */
  --dark: #15151F;
  --dark-soft: #20202C;
  --dark-line: #32323f;
  --on-dark: #F3EFE9;
  --on-dark-muted: #9D98A6;

  /* Type */
  --sans: "Helvetica Neue", Helvetica, "Inter", Arial, "Segoe UI", system-ui, sans-serif;

  /* Rhythm */
  --maxw: 1200px;
  --gut: 24px;
  --section-y: 120px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  /* Easing */
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-sm: 0 1px 2px rgba(21,21,31,.04), 0 2px 8px rgba(21,21,31,.05);
  --shadow-md: 0 4px 14px rgba(21,21,31,.07), 0 16px 40px rgba(21,21,31,.06);
  --shadow-accent: 0 8px 24px rgba(194,85,62,.28);
}

[data-accent="bordo"] {
  --accent: #7B2D3F;
  --accent-deep: #631F30;
  --accent-tint: #F5EAEC;
  --shadow-accent: 0 8px 24px rgba(123,45,63,.26);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: var(--section-y) 0; }
.section--tight { padding: 84px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block;
}

.section-head { max-width: 720px; }
.section-head .h2 { margin: 0 0 16px; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 19px; }

/* ---------- Type scale ---------- */
.display {
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-size: 23px; line-height: 1.18; font-weight: 600; letter-spacing: -0.015em; margin: 0;
}
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-soft); }
.meta { font-size: 14px; color: var(--muted); }
.accent-text { color: var(--accent); }

/* Proof numbers */
.stat-num {
  font-size: clamp(46px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  padding: 16px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-accent);
}
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--secondary {
  background: transparent; color: var(--ink); border-color: var(--line-strong);
}
.btn--secondary:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--ghost-light { background: transparent; color: var(--on-dark); border-color: var(--dark-line); }
.btn--ghost-light:hover { border-color: var(--on-dark); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 16px; color: var(--ink);
  transition: gap .25s var(--ease), color .2s var(--ease);
}
.textlink .arr { transition: transform .25s var(--ease); color: var(--accent); }
.textlink:hover { color: var(--accent); }
.textlink:hover .arr { transform: translateX(4px); }
.play-circle {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--accent);
  background: var(--accent-tint); transition: transform .25s var(--ease);
}
.play-circle svg { width: 15px; height: 15px; margin-left: 2px; }
.textlink:hover .play-circle { transform: scale(1.08); }

/* ---------- Image placeholders ---------- */
.ph {
  position: relative; overflow: hidden; background: #efe9e0;
  background-image: repeating-linear-gradient(135deg, rgba(21,21,31,.045) 0 2px, transparent 2px 11px);
  border: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: flex-start;
}
.ph::after {
  content: attr(data-label);
  font-family: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-size: 11.5px; letter-spacing: .02em; color: #9a9389;
  background: rgba(250,247,242,.85); backdrop-filter: blur(2px);
  padding: 6px 10px; margin: 12px; border-radius: 6px; border: 1px solid var(--line);
}
.ph--dark { background: #23232f; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 11px); border-color: var(--dark-line); }
.ph--dark::after { background: rgba(21,21,31,.6); color: #8b8794; border-color: var(--dark-line); }

/* ---------- Cards (generic) ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(250,247,242,.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); align-self: center; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: #FAF7F2;
  display: grid; place-items: center; font-weight: 700; font-size: 16px; letter-spacing: -0.04em;
  position: relative; flex: none;
}
.brand-mark::after { content: ""; position: absolute; right: 7px; bottom: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.brand-name { display: flex; flex-direction: column; line-height: 1.04; }
.brand-name small { font-weight: 600; font-size: 10px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.site-footer .brand-mark { background: var(--accent); color: #fff; }
.site-footer .brand-mark::after { background: #fff; }
.site-footer .brand-name { color: var(--on-dark); }

/* ---------- Demo portrait (silhouette) ---------- */
.portrait-demo {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--accent-tint) 0%, #efe9e0 62%, #e6ded3 100%);
  border: 1px solid var(--line); display: grid; place-items: end center;
}
.portrait-demo .silhouette { width: 82%; height: auto; align-self: end; display: block; }
.portrait-demo .silhouette path, .portrait-demo .silhouette circle { fill: rgba(21,21,31,.16); }
[data-accent="bordo"] .portrait-demo .silhouette path, [data-accent="bordo"] .portrait-demo .silhouette circle { fill: rgba(99,31,48,.17); }
.portrait-demo .frame-tag, .portrait-photo .frame-tag {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  background: rgba(250,247,242,.86); backdrop-filter: blur(3px);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  display: inline-flex; align-items: center; gap: 7px;
}
.portrait-demo .frame-tag .d, .portrait-photo .frame-tag .d { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Real photo portrait ---------- */
.portrait-photo { position: relative; overflow: hidden; background: #efe9e0; border: 1px solid var(--line); }
.portrait-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }

/* ---------- Mono avatar ---------- */
.avatar-mono { display: grid; place-items: center; font-weight: 700; color: #fff; letter-spacing: -0.02em; border-radius: 50%; flex: none; }
.nav { display: flex; gap: 34px; }
.nav a {
  font-size: 15.5px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: var(--accent);
  transition: width .25s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 14px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 138px; padding-bottom: 84px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px 8px 12px; margin-bottom: 28px;
}
.hero-kicker .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin: 0 0 24px; }
.hero-variant--split h1 {
  font-size: clamp(36px, 3.9vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.hero-variant--split .hero-sub { font-size: 19px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 20px; line-height: 1.55; color: var(--ink-soft); max-width: 30em; margin: 0 0 34px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.hero-trust .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.hero-trust strong { color: var(--ink); font-weight: 700; }

/* portrait */
.hero-portrait {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hero-portrait.ph { border-radius: var(--radius-lg); }
.hero-portrait .ph-badge {
  position: absolute; left: 18px; bottom: 18px; z-index: 3;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(150%) blur(10px);
  border: 1px solid rgba(255,255,255,.7); border-radius: 14px;
  box-shadow: 0 8px 28px rgba(21,21,31,.16); padding: 12px 16px;
  display: flex; align-items: center; gap: 13px;
}
.hero-portrait .ph-badge::before { content: ""; width: 3px; align-self: stretch; border-radius: 3px; background: var(--accent); }
.hero-portrait .ph-badge .big { font-size: 28px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.hero-portrait .ph-badge .lbl { font-size: 12.5px; color: var(--ink-soft); line-height: 1.25; font-weight: 500; max-width: 13ch; }

/* Hero variants visibility */
.hero-variant { display: none; }
[data-hero="split"]   .hero-variant--split   { display: block; }
[data-hero="centered"] .hero-variant--centered { display: block; }
[data-hero="editorial"] .hero-variant--editorial { display: block; }

/* Centered variant */
.hero-centered { text-align: center; padding-top: 150px; }
.hero-centered .hero-kicker { margin-inline: auto; }
.hero-centered h1 { max-width: 16ch; margin-inline: auto; }
.hero-centered .hero-sub { margin-inline: auto; }
.hero-centered .hero-actions { justify-content: center; }
.hero-centered .hero-trust { justify-content: center; }
.hero-centered .hero-portrait-band {
  margin-top: 56px; aspect-ratio: 21/8; border-radius: var(--radius-lg);
}

/* Editorial variant */
.hero-editorial { padding-top: 150px; }
.hero-editorial .big-statement {
  font-size: clamp(40px, 6.4vw, 92px); line-height: .98; font-weight: 700; letter-spacing: -0.035em;
  margin: 0 0 40px; text-wrap: balance;
}
.hero-editorial .big-statement em { font-style: normal; color: var(--accent); }
.hero-editorial .ed-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.hero-editorial .ed-portrait { aspect-ratio: 16/10; border-radius: var(--radius-lg); }

/* ============================================================
   SOCIAL PROOF STRIP
   ============================================================ */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.proof-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.proof-item { padding: 46px 30px; border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: none; }
.proof-item .stat-num { margin-bottom: 10px; color: var(--ink); }
.proof-item .stat-lbl { font-size: 15px; color: var(--ink-soft); max-width: 22ch; }

/* ============================================================
   PAINS
   ============================================================ */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.pain-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 32px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.pain-ic {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-tint);
  display: grid; place-items: center; margin-bottom: 22px; color: var(--accent);
}
.pain-ic svg { width: 23px; height: 23px; }
.pain-card h3 { margin: 0 0 9px; font-size: 18.5px; font-weight: 650; letter-spacing: -0.01em; }
.pain-card p { margin: 0; font-size: 15.5px; color: var(--ink-soft); line-height: 1.5; }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.svc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px 28px; display: flex; flex-direction: column; min-height: 280px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative; overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card.svc-feature { grid-column: span 1; background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.svc-card.svc-feature .svc-ic { background: rgba(255,255,255,.08); color: var(--accent); }
.svc-card.svc-feature h3 { color: var(--on-dark); }
.svc-card.svc-feature p { color: var(--on-dark-muted); }
.svc-ic {
  width: 50px; height: 50px; border-radius: 13px; background: var(--accent-tint); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 24px;
}
.svc-ic svg { width: 25px; height: 25px; }
.svc-card h3 { margin: 0 0 10px; font-size: 21px; }
.svc-card .svc-result { margin: 0 0 24px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.5; flex: 1; }
.svc-card .textlink { margin-top: auto; }
.svc-card.svc-feature .textlink { color: var(--on-dark); }
.svc-card.svc-feature .textlink:hover { color: var(--accent); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: start; }
.about-intro { position: sticky; top: 104px; }
.about-intro .h2 { margin: 18px 0 24px; }
.about-photo { aspect-ratio: 4/5; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.about-body h2 { margin-bottom: 26px; }
.about-body p { color: var(--ink-soft); font-size: 18px; margin: 0 0 18px; }
.about-body p strong { color: var(--ink); font-weight: 600; }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--line); }
.about-fact .n { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.about-fact .n span { color: var(--accent); }
.about-fact .l { font-size: 14px; color: var(--muted); margin-top: 7px; }
.about-sign { margin-top: 30px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; font-style: italic; color: var(--ink); }

/* ============================================================
   CASES
   ============================================================ */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.case-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 26px; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  cursor: pointer;
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.case-tag { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.case-num { font-size: clamp(52px, 5vw, 66px); font-weight: 700; letter-spacing: -0.04em; line-height: .95; color: var(--accent); font-variant-numeric: tabular-nums; }
.case-num .unit { font-size: .42em; vertical-align: super; margin-left: 2px; letter-spacing: 0; }
.case-result-lbl { font-size: 16px; color: var(--ink); font-weight: 600; margin: 12px 0 22px; }
.case-steps { margin-top: auto; border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.case-step { display: grid; grid-template-columns: 64px 1fr; gap: 12px; font-size: 14.5px; align-items: start; }
.case-step .k { color: var(--muted); font-weight: 600; }
.case-step .v { color: var(--ink-soft); }
.case-card .textlink { margin-top: 22px; font-size: 15px; }

/* ============================================================
   CONTENT HUB (tabs)
   ============================================================ */
.tabs { display: inline-flex; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px; margin-top: 36px; }
.tab {
  border: none; background: transparent; color: var(--ink-soft); font-weight: 600; font-size: 15px;
  padding: 11px 22px; border-radius: 999px; transition: color .2s var(--ease), background .25s var(--ease);
}
.tab.active { background: var(--ink); color: var(--on-dark); }
.tab-panel { display: none; margin-top: 40px; }
.tab-panel.active { display: block; animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Video grid */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-card { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.video-card .play {
  position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%;
  background: rgba(250,247,242,.92); display: grid; place-items: center; color: var(--accent);
  box-shadow: var(--shadow-md); transition: transform .3s var(--ease); z-index: 3;
}
.video-card .play svg { width: 22px; height: 22px; margin-left: 3px; }
.video-card:hover .play { transform: scale(1.08); }
.video-card .v-title { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 18px; color: #fff; font-weight: 600; font-size: 16px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }

/* Blog grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); cursor: pointer; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-cover { aspect-ratio: 16/9; }
.blog-body { padding: 22px 22px 24px; }
.blog-body .date { font-size: 13px; color: var(--muted); }
.blog-body h3 { font-size: 18px; margin: 10px 0 0; line-height: 1.3; font-weight: 600; }

/* Instagram grid */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ig-cell { aspect-ratio: 1; border-radius: 10px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tst-track { display: flex; gap: 20px; margin-top: 52px; overflow: hidden; }
.tst-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; flex: 0 0 calc((100% - 40px) / 3); display: flex; flex-direction: column; }
.tst-quote { font-size: 18px; line-height: 1.5; color: var(--ink); margin: 0 0 26px; flex: 1; letter-spacing: -0.01em; }
.tst-quote::before { content: "\201C"; color: var(--accent); font-size: 46px; line-height: 0; vertical-align: -16px; margin-right: 4px; font-weight: 700; }
.tst-person { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.tst-avatar { width: 50px; height: 50px; border-radius: 50%; flex: none; }
.tst-person .nm { font-weight: 650; font-size: 15.5px; }
.tst-person .ro { font-size: 13.5px; color: var(--muted); }
.tst-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-tint); padding: 5px 10px; border-radius: 999px; margin-bottom: 20px; align-self: flex-start; }
.tst-controls { display: flex; gap: 12px; margin-top: 36px; }
.tst-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--white); display: grid; place-items: center; color: var(--ink); transition: all .2s var(--ease); }
.tst-arrow:hover { border-color: var(--ink); transform: translateY(-2px); }
.tst-arrow:disabled { opacity: .35; cursor: default; transform: none; }
.tst-arrow svg { width: 20px; height: 20px; }

/* ============================================================
   LEAD MAGNET (dark banner)
   ============================================================ */
.lead { background: var(--dark); color: var(--on-dark); border-radius: 0; }
.lead-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 84px 0; }
.lead-badge { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.lead h2 { color: var(--on-dark); margin-bottom: 18px; }
.lead p { color: var(--on-dark-muted); font-size: 18px; margin: 0; max-width: 34ch; }
.lead-form { display: flex; gap: 12px; background: var(--dark-soft); border: 1px solid var(--dark-line); border-radius: 14px; padding: 12px; }
.lead-form input { flex: 1; background: transparent; border: none; outline: none; color: var(--on-dark); font-size: 16px; padding: 12px 14px; font-family: inherit; }
.lead-form input::placeholder { color: var(--on-dark-muted); }
.lead-note { margin-top: 14px; font-size: 13px; color: var(--on-dark-muted); }

/* ============================================================
   EXPRESS AUDIT (interactive)
   ============================================================ */
.audit { }
.audit-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden; display: grid; grid-template-columns: 360px 1fr;
}
.audit-aside { background: var(--ink); color: var(--on-dark); padding: 48px 44px; display: flex; flex-direction: column; }
.audit-aside .eyebrow { color: var(--accent); }
.audit-aside .eyebrow::before { background: var(--accent); }
.audit-aside h2 { color: var(--on-dark); font-size: 32px; margin: 0 0 16px; }
.audit-aside p { color: var(--on-dark-muted); font-size: 16px; margin: 0; }
.audit-aside .audit-feats { margin-top: auto; padding-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.audit-feat { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--on-dark); }
.audit-feat svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.audit-main { padding: 48px 48px 44px; display: flex; flex-direction: column; min-height: 460px; }
.audit-progress-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.audit-step-lbl { font-size: 14px; font-weight: 600; color: var(--muted); }
.audit-step-lbl b { color: var(--ink); }
.audit-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 40px; }
.audit-bar > i { display: block; height: 100%; width: 12.5%; background: var(--accent); border-radius: 999px; transition: width .45s var(--ease); }
.audit-q { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 30px; max-width: 22ch; }
.audit-options { display: flex; flex-direction: column; gap: 12px; }
.audit-opt {
  display: flex; align-items: center; gap: 16px; text-align: left;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  font-size: 16.5px; font-weight: 500; color: var(--ink); transition: all .2s var(--ease);
}
.audit-opt .mk { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; transition: all .2s var(--ease); }
.audit-opt .mk svg { width: 13px; height: 13px; color: #fff; opacity: 0; transition: opacity .15s; }
.audit-opt:hover { border-color: var(--accent); background: var(--accent-tint); }
.audit-opt.selected { border-color: var(--accent); background: var(--accent-tint); }
.audit-opt.selected .mk { background: var(--accent); border-color: var(--accent); }
.audit-opt.selected .mk svg { opacity: 1; }
.audit-nav { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 36px; }
.audit-back { background: none; border: none; color: var(--muted); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; }
.audit-back:hover { color: var(--ink); }
.audit-back:disabled { opacity: 0; pointer-events: none; }

/* Result state */
.audit-result { display: none; flex-direction: column; height: 100%; animation: fade .5s var(--ease); }
.audit-result.show { display: flex; }
.audit-q-state.hide { display: none; }
.audit-score-row { display: flex; align-items: center; gap: 28px; margin-bottom: 30px; }
.score-ring { --p: 0; position: relative; width: 132px; height: 132px; flex: none; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .ring-bg { stroke: var(--line); }
.score-ring .ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.score-ring .score-val { position: absolute; inset: 0; display: grid; place-items: center; flex-direction: column; }
.score-ring .score-val b { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.score-ring .score-val span { font-size: 12px; color: var(--muted); margin-top: 2px; }
.audit-verdict h3 { font-size: 25px; margin: 0 0 8px; letter-spacing: -0.02em; }
.audit-verdict p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.audit-report { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; margin-bottom: 28px; }
.audit-report .rep-lbl { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.audit-report ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.audit-report li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15.5px; color: var(--ink-soft); align-items: start; }
.audit-report li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.audit-result .btn { margin-top: auto; }
.audit-restart { background: none; border: none; color: var(--muted); font-weight: 600; font-size: 14px; margin-top: 16px; text-align: center; }
.audit-restart:hover { color: var(--ink); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.input, .textarea {
  width: 100%; background: var(--white); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 15px 17px; font-size: 16px; font-family: inherit; color: var(--ink); outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.textarea { resize: vertical; min-height: 110px; }
.contact-side { background: var(--ink); color: var(--on-dark); border-radius: var(--radius-lg); padding: 44px 40px; }
.contact-side h3 { color: var(--on-dark); font-size: 22px; margin: 0 0 28px; }
.contact-channels { display: flex; flex-direction: column; gap: 6px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--dark-line); }
.channel:last-child { border-bottom: none; }
.channel .c-ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: var(--accent); flex: none; }
.channel .c-ic svg { width: 21px; height: 21px; }
.channel .c-k { font-size: 13px; color: var(--on-dark-muted); }
.channel .c-v { font-size: 16.5px; font-weight: 600; color: var(--on-dark); }
.contact-person { display: flex; align-items: center; gap: 14px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--dark-line); }
.contact-person .ph { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.contact-person .nm { font-weight: 650; color: var(--on-dark); }
.contact-person .nt { font-size: 13.5px; color: var(--on-dark-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: 72px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--dark-line); }
.footer-brand .logo { color: var(--on-dark); margin-bottom: 16px; }
.footer-brand p { max-width: 30ch; font-size: 15px; line-height: 1.6; }
.footer-col h4 { color: var(--on-dark); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 18px; }
.footer-col a { display: block; padding: 7px 0; font-size: 15px; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--on-dark); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; font-size: 14px; flex-wrap: wrap; gap: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--dark-line); display: grid; place-items: center; color: var(--on-dark-muted); transition: all .2s var(--ease); }
.footer-social a:hover { color: var(--on-dark); border-color: var(--on-dark-muted); }
.footer-social svg { width: 18px; height: 18px; }

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.sticky-cta { display: none; }

/* ============================================================
   MOBILE NAV (hamburger + drawer)
   ============================================================ */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: none; background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; flex: none;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .32s var(--ease), opacity .2s var(--ease); }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99; visibility: hidden;
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  padding: 88px 24px 30px; transform: translateY(-101%);
  transition: transform .4s var(--ease), visibility 0s .4s;
  display: flex; flex-direction: column;
}
.mobile-drawer.open { transform: translateY(0); visibility: visible; transition: transform .4s var(--ease), visibility 0s 0s; }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); padding: 16px 2px; border-bottom: 1px solid var(--line); }
.mobile-nav a:active { color: var(--accent); }
.mobile-drawer > .btn { margin-top: 22px; }
.drawer-contacts { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.drawer-contacts a { font-size: 15px; color: var(--ink-soft); font-weight: 500; }
.drawer-scrim { position: fixed; inset: 0; background: rgba(21,21,31,.42); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; z-index: 98; }
body.menu-open .drawer-scrim { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(2) { border-right: none; }
  .proof-item:nth-child(1), .proof-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .video-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .tst-card { flex: 0 0 calc((100% - 20px) / 2); }
}

@media (max-width: 860px) {
  :root { --section-y: 76px; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.scrolled { background: rgba(250,247,242,.92); }
  .header-inner { height: 66px; }
  body { padding-bottom: 76px; } /* room for sticky CTA */

  /* Hero */
  .hero { padding-top: 104px; padding-bottom: 56px; }
  .hero-centered, .hero-editorial { padding-top: 104px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-editorial .ed-row { grid-template-columns: 1fr; gap: 28px; }
  .hero-variant--split h1 { font-size: clamp(31px, 8.4vw, 42px); }
  .hero-editorial .big-statement { font-size: clamp(36px, 11vw, 60px); }
  .hero-sub, .hero-variant--split .hero-sub { font-size: 17px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-centered .hero-actions, .hero-editorial .hero-actions { flex-direction: column; }
  .hero-portrait { aspect-ratio: 4/5; max-height: 70vh; margin-inline: auto; max-width: 460px; width: 100%; }
  .hero-centered .hero-portrait-band { aspect-ratio: 16/11; margin-top: 36px; }

  /* Layout collapses */
  .about-grid, .contact-grid, .lead-inner, .audit-card { grid-template-columns: 1fr; }
  .about-intro { position: static; }
  .lead-inner { padding: 60px 0; gap: 30px; }
  .audit-aside { padding: 34px 28px; }
  .audit-aside h2 { font-size: 27px; }
  .audit-aside .audit-feats { padding-top: 28px; }
  .audit-main { padding: 32px 28px; min-height: auto; }
  .audit-q { font-size: 22px; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .section-head p { font-size: 17px; }

  .sticky-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    padding: 11px 16px calc(11px + env(safe-area-inset-bottom)); background: rgba(250,247,242,.92);
    backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .sticky-cta .btn { width: 100%; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .brand-name small { display: none; }
  .brand-mark { width: 38px; height: 38px; font-size: 15px; }
  .logo { font-size: 17px; }
  .pain-grid, .svc-grid, .video-grid, .blog-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
  .tst-card { flex: 0 0 100%; padding: 28px 24px; }
  .tst-quote { font-size: 17px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item { border-right: none !important; border-bottom: 1px solid var(--line); padding: 32px 4px; }
  .proof-item:last-child { border-bottom: none; }
  .audit-score-row { flex-direction: row; align-items: center; gap: 20px; }
  .audit-card { border-radius: 18px; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .svc-card { min-height: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .lead-form { flex-direction: column; }
  .lead-form .btn { width: 100%; }
  .hero-kicker { font-size: 13px; }
  .eyebrow { margin-bottom: 16px; }
  .case-num { font-size: 52px; }
}

@media (max-width: 380px) {
  .hero-variant--split h1 { font-size: 28px; }
  .audit-aside, .audit-main { padding: 26px 20px; }
  .about-facts { grid-template-columns: 1fr; }
}
