@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --cream:    #FAFAF7;
  --forest:   #1C3A2E;
  --terra:    #C4714A;
  --sage:     #8FAF8A;
  --ink:      #141414;
  --mid:      #6B7068;
  --border:   #E2E2DC;
  --serif:    'DM Serif Display', Georgia, serif;
  --sans:     'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--forest); }

/* ── LAYOUT ── */
main { padding-top: 5rem; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

section { padding: 5rem 0; }
section + section { border-top: 1px solid var(--border); }

/* ── TYPE ── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--forest);
  margin-bottom: 1.25rem;
}

.section-body {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 580px;
  line-height: 1.8;
}

/* ── HERO ── */
.hero {
  min-height: calc(100vh - 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 5rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  border-top: none;
}

.hero-text { padding-top: 2rem; }

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

.role-pill {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--forest);
  color: var(--forest);
  border-radius: 100px;
}

.hero h1 {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  color: var(--forest);
  margin-bottom: 1.5rem;
  line-height: 1.08;
}

.hero h1 em {
  font-style: italic;
  color: var(--terra);
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--mid);
  max-width: 440px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-block;
  background: var(--forest);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  text-decoration: none;
  transition: background 0.2s;
  border-radius: 2px;
}

.hero-cta:hover { background: #2a5041; }

.hero-cta-ghost {
  display: inline-block;
  color: var(--forest);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  text-decoration: none;
  border: 1px solid var(--forest);
  margin-left: 1rem;
  transition: all 0.2s;
  border-radius: 2px;
}

.hero-cta-ghost:hover { background: var(--forest); color: var(--cream); }

/* dot grid visual */
.hero-visual {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--sage) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-card {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem;
  width: 100%;
  max-width: 360px;
}

.hero-card-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.25rem;
}

.hero-stat {
  margin-bottom: 1.5rem;
}

.hero-stat-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--forest);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--mid);
  margin-top: 0.2rem;
}

.hero-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

.hero-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hero-tag {
  font-size: 0.7rem;
  background: #EEF2EE;
  color: var(--forest);
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: #2a5041; }

.btn-outline { border: 1px solid var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: var(--cream); }

.btn-terra { background: var(--terra); color: white; }
.btn-terra:hover { background: #b0603b; }

/* ── CARDS ── */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.2s;
}

.card:hover { border-color: var(--sage); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card h3 {
  font-size: 1.3rem;
  color: var(--forest);
  margin-bottom: 0.75rem;
}

.card p { font-size: 0.95rem; color: var(--mid); line-height: 1.75; }

.card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1rem;
}

/* ── BOOK CARDS ── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.book-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.book-cover {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: white;
  text-align: center;
  padding: 1.5rem;
  line-height: 1.3;
}

.book-cover-mf { background: linear-gradient(135deg, #3B6D8A 0%, #1C3A2E 100%); }
.book-cover-sh { background: linear-gradient(135deg, #C4714A 0%, #8B4A2E 100%); }
.book-cover-tbd { background: linear-gradient(135deg, #8FAF8A 0%, #4A7A6A 100%); }

.book-info { padding: 1.75rem; }

.book-status {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.6rem;
}

.book-info h3 {
  font-size: 1.3rem;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.book-info p { font-size: 0.9rem; color: var(--mid); line-height: 1.7; }

/* ── TECH SECTION ── */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.tech-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.tech-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

.tech-dot.active { background: var(--terra); }

.tech-item-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--forest);
}

.tech-item-sub {
  font-size: 0.78rem;
  color: var(--mid);
  margin-top: 0.1rem;
}

/* ── IMPACT GRID ── */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.impact-stat {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.impact-stat-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.impact-stat-label {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.5;
}

/* ── PAGE HERO (interior pages) ── */
.page-hero {
  padding: 5rem 2.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--forest);
  margin-bottom: 1rem;
  max-width: 700px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--mid);
  max-width: 560px;
  line-height: 1.75;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.about-sidebar {}

.about-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--sage) 0%, var(--forest) 100%);
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-portrait-label {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  font-style: italic;
}

.sidebar-links { list-style: none; }

.sidebar-links li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-links a {
  font-size: 0.85rem;
  color: var(--mid);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.sidebar-links a:hover { color: var(--forest); }

.about-content h2 {
  font-size: 2rem;
  color: var(--forest);
  margin-bottom: 1.25rem;
  margin-top: 2.5rem;
}

.about-content h2:first-child { margin-top: 0; }

.about-content p {
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: white;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--forest); }

.form-group textarea { resize: vertical; min-height: 140px; }

.contact-info-block {
  padding: 2rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.contact-info-block h3 {
  font-size: 1.1rem;
  color: var(--forest);
  margin-bottom: 0.75rem;
}

.contact-info-block p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
}

.contact-info-block a {
  color: var(--terra);
  text-decoration: none;
}

.contact-info-block a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--forest);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--mid);
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--forest); }

/* ── INLINE FEATURE ROW ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-row.flip { direction: rtl; }
.feature-row.flip > * { direction: ltr; }

.feature-image {
  aspect-ratio: 4/3;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

/* ── HOME PREVIEW STRIPS ── */
.preview-strip {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2.5rem;
}

.preview-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.preview-strip-label {
  position: sticky;
  top: 6rem;
}

/* ── MOBILE ── */
.hamburger { display: none; }

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }

  .nav-links { display: none; }
  .hamburger { display: block; font-size: 1.4rem; background: none; border: none; cursor: pointer; color: var(--forest); }

  .hero { grid-template-columns: 1fr; min-height: auto; padding: 3rem 1.5rem; gap: 2rem; }
  .hero-visual { height: 260px; }
  .hero h1 { font-size: 2.4rem; }

  .container, .container-narrow { padding: 0 1.5rem; }
  section { padding: 3rem 0; }

  .tech-grid, .about-grid, .contact-grid, .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .impact-grid { grid-template-columns: 1fr 1fr; }

  .page-hero { padding: 3rem 1.5rem 2.5rem; }
  .preview-strip-inner { grid-template-columns: 1fr; gap: 2rem; }

  .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .hero-cta-ghost { margin-left: 0; margin-top: 0.75rem; display: block; text-align: center; }
  .hero-cta { display: block; text-align: center; }
}
