/* ==========================================================================
   Vladimir Khovanov — Fractional CFO
   Minimalist single-page site
   ========================================================================== */

:root {
  --navy: #0f1a33;
  --navy-2: #16244a;
  --ink: #1c2333;
  --ink-soft: #4a5266;
  --paper: #faf8f4;
  --paper-2: #f1ede4;
  --line: #e3ddd0;
  --gold: #a8763f;
  --gold-soft: #cf9c5f;
  --white: #ffffff;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 26, 51, 0.08);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl { margin: 0; }
button { font: inherit; cursor: pointer; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-lg { padding: 15px 34px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
  margin-right: auto;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--gold-soft);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.brand-name { font-size: 1rem; }

.site-nav {
  display: flex;
  gap: 28px;
}
.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s 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); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 96px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.eyebrow, .section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 18px;
}
.hero-lede {
  font-size: 1.28rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 46ch;
}
.hero-body {
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}
.hero-stats dt {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy);
  font-weight: 700;
}
.hero-stats dd {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.hero-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ---------- Sections (shared) ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-2); }
.section-eyebrow { margin-bottom: 12px; }
.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  color: var(--navy);
  max-width: 30ch;
  margin-bottom: 16px;
}
.section-lede {
  color: var(--ink-soft);
  max-width: 56ch;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
}
.about-main p { color: var(--ink-soft); margin-bottom: 18px; }
.about-main p:last-child { margin-bottom: 0; }
.about-main h2 { margin-bottom: 22px; max-width: none; }

.about-aside {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  align-self: start;
}
.about-aside h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 20px;
}
.glance-list div + div { margin-top: 18px; }
.glance-list dt {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.glance-list dd {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- Services / cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------- Timeline ---------- */
.timeline {
  border-left: 2px solid var(--line);
  margin-left: 6px;
}
.timeline-item {
  position: relative;
  padding: 0 0 44px 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--gold);
}
.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.timeline-dates {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.timeline-tag {
  font-size: 0.75rem;
  color: var(--gold);
  background: rgba(168, 118, 63, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.timeline-content h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.timeline-company {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 12px;
}
.timeline-content ul { display: grid; gap: 8px; }
.timeline-content li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.timeline-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-soft);
}

/* ---------- Achievements / stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 10px;
}
.stat-label {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 14px;
  min-height: 44px;
}
.stat-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--navy);
  color: var(--white);
}
.contact-inner { text-align: center; }
.contact .section-eyebrow.contact-eyebrow { color: var(--gold-soft); }
.contact h2 { color: var(--white); margin: 0 auto 16px; }
.contact .section-lede.contact-lede { color: rgba(255,255,255,0.72); margin-left: auto; margin-right: auto; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 12px 0 44px;
  text-align: left;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
a.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}
.contact-icon {
  flex: none;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-soft);
}
.contact-icon svg { width: 19px; height: 19px; }
.contact-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 3px;
}
.contact-value {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  word-break: break-word;
}
.contact-cta { background: var(--gold); }
.contact-cta:hover { background: var(--gold-soft); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 380px; margin: 0 auto; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}