/* ============================================================
   Google Fonts
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  --bg-primary:    #f8f6f2;
  --bg-secondary:  #ffffff;
  --bg-tertiary:   #eee9e0;
  --text-primary:  #1a1a2e;
  --text-secondary: #2d2d3a;
  --text-tertiary:  #6b6b7b;
  --accent:        #e94560;
  --accent-light:  rgba(233, 69, 96, 0.1);
  --border:        rgba(26, 26, 46, 0.1);
  --navy:          #1a1a2e;
  --navy-light:    #16213e;
  --max-width:     1080px;
  --radius:        12px;
}

/* ============================================================
   Reset
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul,
ol {
  list-style: none;
}

/* ============================================================
   Typography
   ============================================================ */
h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-tertiary);
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section--alt {
  background-color: var(--bg-secondary);
}

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-nav.scrolled {
  border-bottom-color: var(--border);
}

.site-nav__inner {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.site-nav__link {
  position: relative;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.2s ease;
}

.site-nav__link:hover {
  color: var(--text-primary);
}

.site-nav__link:hover::after {
  width: 100%;
}

.site-nav__link.active {
  color: var(--text-primary);
}

.site-nav__link.active::after {
  width: 100%;
}

/* Hamburger */
.site-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.site-nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: opacity 0.2s ease;
}

/* Mobile overlay */
.site-nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.98);
  z-index: 99;
  align-items: center;
  justify-content: center;
}

.site-nav__overlay.open {
  display: flex;
}

.site-nav__overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.site-nav__overlay-links a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav__overlay-links a:hover,
.site-nav__overlay-links a.active {
  color: var(--accent);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background-color: var(--navy);
  padding: 3rem;
  text-align: center;
}

.site-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1.5rem;
}

.site-footer__links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--accent);
}

.site-footer__copy {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
}

.hero--short {
  min-height: auto;
  padding-top: calc(64px + 6rem);
  padding-bottom: 4rem;
}

.hero__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

.hero__title {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 600px;
}

.hero__accent-line {
  width: 40px;
  height: 2px;
  background-color: var(--accent);
  margin-top: 2.5rem;
}

/* ============================================================
   Cards
   ============================================================ */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}

.cards-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card--hoverable:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.card__tag {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--accent-light);
  color: var(--accent);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.card__title {
  margin-bottom: 0.75rem;
}

.card__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card__metrics {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.card__metric-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  display: block;
}

.card__metric-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  display: block;
}

.card--accent-left {
  border-left: 3px solid var(--accent);
}

/* ============================================================
   Blockquote
   ============================================================ */
.blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 2rem;
  margin: 3rem 0;
}

.blockquote__text {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ============================================================
   Flow (approach steps)
   ============================================================ */
.flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.flow__step {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}

.flow__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.flow__step-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.flow__step-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.75rem;
  color: var(--text-tertiary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ============================================================
   Prose (About page)
   ============================================================ */
.prose {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose h3 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

/* ============================================================
   Timeline
   ============================================================ */
.timeline {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.timeline__entry {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.timeline__role {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.timeline__company {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.timeline__years {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  white-space: nowrap;
  margin-left: 2rem;
  flex-shrink: 0;
}

/* ============================================================
   Contact links
   ============================================================ */
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.contact-link {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-link__icon {
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

/* ============================================================
   Section titles
   ============================================================ */
.section__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.section__title {
  margin-bottom: 1rem;
}

.section__subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   Responsive — 900px
   ============================================================ */
@media (max-width: 900px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .site-nav__links {
    display: none;
  }

  .site-nav__hamburger {
    display: flex;
  }

  .cards-grid--3,
  .cards-grid--2 {
    grid-template-columns: 1fr;
  }

  .flow {
    flex-direction: column;
    align-items: center;
  }

  .flow__step {
    padding: 1rem 0;
  }

  .flow__arrow {
    transform: rotate(90deg);
  }

  .section {
    padding: 4rem 0;
  }
}

/* ============================================================
   Responsive — 600px
   ============================================================ */
@media (max-width: 600px) {
  h1 { font-size: 2.2rem; }

  .hero {
    min-height: 80vh;
  }

  .hero--short {
    padding-top: calc(64px + 3rem);
    padding-bottom: 3rem;
  }

  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .card__metrics {
    flex-direction: column;
    gap: 0.75rem;
  }

  .blockquote__text {
    font-size: 1.3rem;
  }

  .timeline__entry {
    flex-direction: column;
    gap: 0.25rem;
  }

  .timeline__years {
    margin-left: 0;
  }
}
