/* ==========================================================
   Dmitriy Volkov — Tech Founder Advisor
   Editorial minimal · cream + charcoal + deep sage
   ========================================================== */

:root {
  --bg: #F5F1EA;          /* warm cream */
  --bg-2: #EFE9DD;        /* a tone deeper */
  --ink: #1C1B19;         /* deep charcoal */
  --ink-2: #423F38;       /* secondary text */
  --ink-3: #767060;       /* muted */
  --rule: #D8CFBE;        /* warm divider */
  --accent: #3E5C3A;      /* deep sage — main accent */
  --accent-2: #8B3A2B;    /* terracotta — for numbers & dots */

  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ----------- LAYOUT WRAPPER ----------- */
.hero, .stats, .about, .work, .bring, .engage, .origins, .contact, .foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 720px) {
  .hero, .stats, .about, .work, .bring, .engage, .origins, .contact, .foot {
    padding: 0 22px;
  }
}

/* ============ TOP NAV ============ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 234, 0.85);
  backdrop-filter: saturate(120%) blur(12px);
  -webkit-backdrop-filter: saturate(120%) blur(12px);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  font-size: 14px;
}
.topnav-name {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.topnav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--ink-2);
}
.topnav-links a {
  position: relative;
  transition: color .2s;
}
.topnav-links a:hover { color: var(--ink); }
.topnav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s ease;
}
.topnav-links a:hover::after { width: 100%; }
.topnav-cta {
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: all .2s;
}
.topnav-cta:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 720px) {
  .topnav { padding: 12px 22px; }
  .topnav-links { display: none; }
}

/* ============ HERO ============ */
.hero {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 36px;
}
.dot {
  width: 8px; height: 8px;
  background: var(--accent-2);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.82); }
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 156px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  font-feature-settings: 'ss01';
}
.hero-title span:first-child { color: var(--ink); }
.hero-title span:last-child {
  color: var(--ink);
  font-style: italic;
  font-weight: 300;
}

.hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  line-height: 1.35;
  max-width: 720px;
  color: var(--ink-2);
  margin-bottom: 56px;
}
.hero-subtitle em {
  font-style: italic;
  color: var(--accent);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta-item .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-meta-item span:last-child {
  font-size: 15px;
  color: var(--ink);
}
@media (max-width: 720px) {
  .hero-meta { grid-template-columns: 1fr; gap: 18px; }
}

/* ============ STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin: 60px auto;
  padding-top: 44px;
  padding-bottom: 44px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: 12px 22px;
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: none; }
.stat-n {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
}
.stat-unit {
  font-size: 0.55em;
  font-weight: 400;
  color: var(--accent-2);
  margin-left: 2px;
}
.stat-l {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-2);
}
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { border-bottom: 1px solid var(--rule); }
  .stat:nth-child(3n) { border-right: none; }
  .stat:nth-last-child(-n+3) { border-bottom: none; }
}
@media (max-width: 540px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 1px solid var(--rule); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
}

/* ============ SECTION LABEL ============ */
.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--accent);
}

/* ============ ABOUT ============ */
.about { padding-top: 80px; padding-bottom: 80px; }
.prose {
  max-width: 800px;
}
.prose p {
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 22px;
  color: var(--ink-2);
}
.prose p.lede, .prose p.lede-end {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 400;
}
.prose p.lede strong { font-weight: 600; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; color: var(--accent); }

/* ============ WORK ============ */
.work { padding-top: 100px; padding-bottom: 100px; }
.work-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 56px;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
  transition: background .25s, padding .25s;
}
.work-item:hover {
  background: linear-gradient(to right, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent);
  padding-left: 12px;
  padding-right: 12px;
}
.work-item:last-of-type { border-bottom: 1px solid var(--rule); }
.work-year {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  padding-top: 6px;
}
.work-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.work-role {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
}
.work-body p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 720px;
  margin-bottom: 8px;
}
.work-body p strong { color: var(--ink); }
.work-stack {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
}
.work-more {
  margin-top: 36px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
  font-style: italic;
}
@media (max-width: 720px) {
  .work-item { grid-template-columns: 1fr; gap: 8px; }
  .work-year { font-size: 12px; }
}

/* ============ BRING (areas) ============ */
.bring { padding-top: 60px; padding-bottom: 100px; }
.bring-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 64px;
}
.bring-col h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  letter-spacing: -0.01em;
}
.bring-col ul { list-style: none; }
.bring-col li {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 14px;
  color: var(--ink-2);
  padding-left: 20px;
  position: relative;
}
.bring-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--accent-2);
}
.bring-col li strong { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
  .bring-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============ ENGAGE ============ */
.engage { padding-top: 60px; padding-bottom: 100px; }
.engage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}
.engage-card {
  background: var(--bg-2);
  padding: 32px 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: border-color .25s, transform .25s;
}
.engage-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.engage-card-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.engage-card h4 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.engage-time {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.engage-comp {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.4;
  margin-bottom: 14px;
}
.engage-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.engage-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 880px) {
  .engage-grid { grid-template-columns: 1fr; }
}

/* ============ ORIGINS ============ */
.origins {
  padding-top: 80px;
  padding-bottom: 100px;
  background: var(--bg-2);
  margin-top: 40px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.origins > .section-label,
.origins > .origins-grid {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}
.origins-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 80px;
}
.origins-text p {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.origins-text p.lede {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 32px;
  font-weight: 400;
}
.origins-text em { font-style: italic; color: var(--accent); }
.origins-text strong { color: var(--ink); }

.origins-side-block { margin-bottom: 36px; }
.origins-side-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.origins-side-block p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--ink-2);
}
.origins-side-block strong {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  font-size: 15px;
}
@media (max-width: 880px) {
  .origins > .section-label,
  .origins > .origins-grid { padding-left: 22px; padding-right: 22px; }
  .origins-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============ CONTACT ============ */
.contact {
  padding-top: 100px;
  padding-bottom: 80px;
}
.contact-h {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 820px;
  margin-bottom: 48px;
  color: var(--ink);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.contact-link {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left .25s;
}
.contact-link:nth-child(odd) {
  border-right: 1px solid var(--rule);
  padding-right: 32px;
}
.contact-link:nth-child(even) { padding-left: 32px; }
.contact-link:hover { padding-left: 10px; }
.contact-link:nth-child(even):hover { padding-left: 42px; }
.contact-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  width: 100px;
  flex-shrink: 0;
}
.contact-value {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-link:nth-child(odd) { border-right: none; padding-right: 0; }
  .contact-link:nth-child(even) { padding-left: 0; }
  .contact-link:nth-child(even):hover { padding-left: 10px; }
}

/* ============ FOOT ============ */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 36px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.foot a { color: var(--ink-2); border-bottom: 1px dotted var(--ink-3); transition: color .2s; }
.foot a:hover { color: var(--ink); }
@media (max-width: 720px) {
  .foot { flex-direction: column; gap: 16px; text-align: center; }
}

/* ============ SCROLL REVEAL ============ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

::selection {
  background: var(--accent);
  color: var(--bg);
}
