/* stevensovik.com — refreshed static build
 * Brand tokens from source palette/fonts (see MIGRATION.md design-change log). */

/* ---------- tokens ---------- */
:root {
  --ink: #151515;
  --ink-2: #1b1b1b;
  --ink-3: #303030;
  --gray: #575757;
  --gray-2: #5e5e5e;
  --gray-3: #595959;
  --gray-4: #999;
  --line: #e2e2e2;
  --paper: #f3f3f3;
  --white: #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;

  --social-linkedin: #0a66c2;
  --social-behance: #e4405c;
  --social-x: #000000;
  --social-medium: #000000;
  --social-crunchbase: #0288d1;
  --social-linktree: #43e660;
  --social-gravatar: #1e8cbe;
  --social-youtube: #ff0000;
  --social-pinterest: #bd081c;
  --social-f6s: #f16c4f;
  --tooltip: #1a1a2e;

  --container: 1160px;
  --measure: 68ch;
  --space-section: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.section { padding-block: var(--space-section); }
.measure { max-width: var(--measure); }

::selection { background: var(--ink); color: var(--white); }

/* ---------- typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 1.1rem;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(1.4375rem, 4vw, 1.9375rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin: 0 0 1.25rem;
}
.lead {
  font-size: 1.125rem;
  color: var(--ink-2);
}
p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.031em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  border: 1px solid var(--line);
  padding: 0.3rem 0.85rem;
}
.main-nav ul {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  padding-block: 0.5rem;
  position: relative;
  transition: color 0.2s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--ink);
  transition: right 0.25s ease;
}
.main-nav a:hover, .main-nav a[aria-current='page'] { color: var(--ink); }
.main-nav a:hover::after, .main-nav a[aria-current='page']::after { right: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* drawer (mobile) */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
}
.drawer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 21, 0.45);
  opacity: 0;
  transition: opacity 0.3s;
}
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 340px);
  background: var(--white);
  padding: 1.75rem 2rem;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.drawer.open { visibility: visible; pointer-events: auto; }
.drawer.open::before { opacity: 1; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 0.5rem;
}
.drawer-close svg { width: 22px; height: 22px; display: block; }
.drawer ul {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.drawer-logo { margin-top: 1rem; }
.drawer a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.2s, color 0.2s;
}
.drawer a:hover, .drawer a[aria-current='page'] { padding-left: 0.75rem; color: var(--gray-3); }

/* ---------- hero (home) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
}
.hero-copy h1 { margin-bottom: 1.5rem; }
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.045em;
  color: var(--ink-2);
  margin: 0 0 2rem;
}
.hero-copy p { color: var(--gray); }
.hero-media { position: relative; }
.hero-media::before {
  content: '';
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--line);
  z-index: -1;
}
.hero-media img {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; margin-inline: auto; width: 100%; }
  .hero-media::before { inset: 0.9rem -0.9rem -0.9rem 0.9rem; }
}

/* ---------- generic content ---------- */
.page-head {
  padding-block: clamp(2.5rem, 5vw, 4rem) 0;
  text-align: center;
}
.page-head h1 { max-width: 22ch; margin-inline: auto; }
.page-head h1.title-one-line {
  max-width: none;
  font-size: clamp(1.25rem, 3vw, 1.875rem);
}
.page-head .lead { max-width: 60ch; margin: 0 auto; color: var(--gray); }

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.split-media img {
  border: 1px solid var(--line);
  background: var(--paper);
  width: 100%;
}
.foundation-outro { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* stat cards */
.stats { list-style: none; margin: 1.75rem 0 2rem; padding: 0; display: grid; gap: 1rem; }
.stats li {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1.05rem 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.stats li strong { color: var(--ink); font-weight: 700; }

/* tight sections (compact lower-half rhythm) */
.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section-tight--flush-top { padding-top: clamp(0.75rem, 1.5vw, 1.25rem); }

/* expertise grid — light theme */
.expertise-grid {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.expertise-grid li {
  background: var(--white);
  padding: 1.15rem 1.3rem 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray);
}
.expertise-grid li strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
@media (max-width: 640px) { .expertise-grid { grid-template-columns: 1fr; } }

/* CTA callout — compact closing line */
.cta-note {
  margin: 1.75rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  color: var(--ink);
}

/* credentials section width */
.credentials { max-width: 850px; }

/* press list */
.press-section { padding-top: clamp(2rem, 4vw, 3rem); }
.press-list { list-style: none; margin: 3rem auto 0; padding: 0; max-width: 820px; }
.press-list li { border-bottom: 1px solid var(--line); }
.press-list li:first-child { border-top: 1px solid var(--line); }
.press-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0.25rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  transition: padding-left 0.25s ease, color 0.25s ease;
}
.press-list a:hover { padding-left: 1rem; color: var(--gray-3); }
.press-list .arrow {
  flex: none;
  color: var(--gray-4);
  transition: transform 0.25s ease, color 0.25s ease;
}
.press-list a:hover .arrow { transform: translate(4px, -4px); color: var(--ink); }

/* ---------- socials ---------- */
.socials { padding-block: 0 clamp(2rem, 4vw, 3rem); }
.socials-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.socials-row a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.socials-row a:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.socials-row svg { width: 18px; height: 18px; fill: currentColor; }
.socials-row i { font-size: 18px; line-height: 1; }

/* hover/focus tooltips (restored from the source embed's data-tooltip behavior) */
.socials-row a::after,
.socials-row a::before {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, transform 0.18s;
  pointer-events: none;
}
.socials-row a::after {
  content: attr(data-tooltip);
  bottom: calc(100% + 7px);
  padding: 4px 10px;
  background: var(--tooltip);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 5px;
  z-index: 5;
}
.socials-row a::before {
  content: '';
  bottom: 100%;
  border: 5px solid transparent;
  border-top-color: var(--tooltip);
}
.socials-row a:hover::after,
.socials-row a:hover::before,
.socials-row a:focus-visible::after,
.socials-row a:focus-visible::before {
  opacity: 1;
  visibility: visible;
}
.socials-row a:hover::after,
.socials-row a:focus-visible::after { transform: translateX(-50%) translateY(-4px); }
.socials-row a:hover::before,
.socials-row a:focus-visible::before { transform: translateX(-50%) translateY(-2px); }
.social-linkedin { background: var(--social-linkedin); }
.social-behance { background: var(--social-behance); }
.social-x { background: var(--social-x); }
.social-medium { background: var(--social-medium); }
.social-crunchbase { background: var(--social-crunchbase); }
.social-linktree { background: var(--social-linktree); }
.social-gravatar { background: var(--social-gravatar); }
.social-youtube { background: var(--social-youtube); }
.social-pinterest { background: var(--social-pinterest); }
.social-f6s { background: var(--social-f6s); }

/* ---------- contact form ---------- */
.contact-wrap { max-width: 640px; margin-inline: auto; }
.contact-form {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  background: var(--white);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  gap: 1.5rem;
}
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-3);
}
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(21, 21, 21, 0.08);
}
.field textarea { resize: vertical; min-height: 140px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-btn {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 1rem 2.25rem;
  cursor: pointer;
  justify-self: start;
  transition: background 0.2s, color 0.2s;
}
.submit-btn:hover { background: var(--ink-3); }
.form-note {
  font-size: 0.8125rem;
  color: var(--gray-4);
  line-height: 1.6;
  margin: 0;
  text-align: center;
}
.form-note a { color: var(--gray-2); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem;
  text-align: center;
}
.site-footer p {
  font-size: 0.875rem;
  color: var(--gray-4);
  margin: 0;
}

/* ---------- 404 ---------- */
.notfound { min-height: 55vh; display: grid; place-items: center; text-align: center; padding-block: 3rem; }
.notfound .code { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 7rem); line-height: 1; margin-bottom: 1rem; }
.notfound a.home-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.875rem;
  color: var(--white);
  background: var(--ink);
  padding: 0.9rem 1.75rem;
  text-decoration: none;
  transition: background 0.2s;
}
.notfound a.home-link:hover { background: var(--ink-3); }

/* ---------- responsive nav ---------- */
@media (max-width: 767px) {
  .main-nav { display: none; }
  .header-inner { justify-content: center; }
  .nav-toggle {
    display: inline-flex;
    position: absolute;
    top: 50%;
    right: clamp(1.25rem, 4vw, 2.5rem);
    transform: translateY(-50%);
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
