:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-alt: #f0ede7;
  --text: #18212b;
  --muted: #5d6875;
  --line: #d8d5cf;
  --accent: #1f2937;
  --accent-2: #0f172a;
  --max: 1180px;
  --radius: 24px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(216, 213, 207, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-sub {
  margin-top: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.96rem;
  color: var(--muted);
}

.nav a:hover,
.mobile-nav a:hover { color: var(--text); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 0.2s ease;
}

.button:hover { transform: translateY(-1px); }
.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
}
.button.secondary {
  border-color: var(--line);
  background: white;
  color: var(--text);
}

.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f7f5f1 100%);
  background-image: url('eppbckgrnd.jpg'), linear-gradient(180deg, #ffffff 0%, #f7f5f1 100%);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  padding: 90px 0 84px;
  align-items: end;
}

.eyebrow {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  background: rgba(255,255,255,0.8);
}

h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }

h1 {
  margin-top: 18px;
  font-size: clamp(2.75rem, 5vw, 4.75rem);
  line-height: 0.98;
  max-width: 12ch;
}

.hero-copy p,
.section-head p,
.service-card p,
.bio-card p,
.workshop-copy p,
.contact-copy p,
.bench p,
.pillar-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-copy p { max-width: 62ch; margin: 22px 0 0; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  min-height: 220px;
  border-radius: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel.light { background: var(--surface-alt); }
.panel.dark {
  background: var(--accent-2);
  color: white;
  border-color: rgba(255,255,255,0.08);
}

.panel-label {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.74;
}

.panel h3 {
  margin-top: 14px;
  font-size: 1.7rem;
  line-height: 1.1;
}

.panel p {
  margin: 16px 0 0;
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.86;
}

section { padding: 84px 0; }
.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 700;
}

h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1.02;
}

.section-head p,
.workshop-copy p,
.contact-copy p,
.bench p { margin-top: 18px; }

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.pillar-card,
.service-card,
.bio-card,
.why-card,
.sample-card,
.bench {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pillar-card,
.service-card,
.bio-card,
.bench { padding: 30px; }

.bench { margin-top: 22px; }

.pillar-card h3,
.service-card h3,
.bio-card h3,
.bench h3 {
  font-size: 1.4rem;
  line-height: 1.1;
}

.list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
  color: var(--text);
  font-size: 0.96rem;
}

.list li {
  display: flex;
  align-items: start;
  gap: 12px;
  line-height: 1.5;
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 auto;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.92rem;
  background: #fbfbfa;
}

.workshop-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.workshop-copy,
.sample-panel {
  border-radius: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.sample-panel {
  background: var(--accent-2);
  color: white;
}

.sample-panel .section-kicker { color: rgba(255,255,255,0.7); }
.sample-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.sample-card {
  padding: 18px;
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: white;
}

.why-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.why-card {
  padding: 22px;
  min-height: 130px;
  display: flex;
  align-items: center;
  font-weight: 600;
  line-height: 1.5;
}

.bio-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: linear-gradient(135deg, #d9d5cd, #ece8e2);
  margin-bottom: 20px;
}

.bio-role {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.contact {
  background: var(--accent-2);
  background-image: url('eppbckgrnd.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-blend-mode: soft-light;
  color: white;
}

.contact .section-kicker,
.contact-copy p { color: rgba(255,255,255,0.72); }
.contact-copy { max-width: 780px; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.contact .button.secondary {
  border-color: rgba(255,255,255,0.18);
  background: transparent;
  color: white;
}

.contact .button.primary {
  background: white;
  color: var(--accent-2);
}

.footer {
  padding: 24px 0 34px;
  background: var(--accent-2);
  color: rgba(255,255,255,0.62);
  font-size: 0.88rem;
}

.mobile-menu {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
}

.mobile-nav {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid rgba(216, 213, 207, 0.85);
  background: rgba(255,255,255,0.95);
}

.mobile-nav.open { display: grid; }
.mobile-nav a {
  padding: 12px 0;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .hero-grid,
  .workshop-layout,
  .why-layout,
  .card-grid-4 {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-panels,
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 840px) {
  .nav, .header-cta { display: none; }
  .mobile-menu { display: inline-flex; }
  .header-inner { min-height: 74px; }
  .hero-grid { padding: 72px 0 64px; }
  .hero-panels,
  .why-grid {
    grid-template-columns: 1fr;
  }
  section { padding: 68px 0; }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  h1 { max-width: none; }
  .button { width: 100%; }
  .hero-actions,
  .contact-actions { flex-direction: column; }
  .panel,
  .pillar-card,
  .service-card,
  .bio-card,
  .workshop-copy,
  .sample-panel,
  .bench { padding: 24px; }
}

/* Bio actions row */
.bio-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.bio-read-more {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bio-read-more:hover { color: var(--muted); }

.bio-linkedin {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.bio-linkedin:hover { color: #0a66c2; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--surface);
  border-radius: 12px;
  padding: 40px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.modal-close:hover { color: var(--text); }

.modal-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.modal-name {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.modal-role {
  margin-bottom: 20px;
}

.modal-body p {
  margin-bottom: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.modal-body p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .modal { padding: 28px 20px; }
}

/* Contact form layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-email {
  margin-top: 24px;
  font-size: 0.9rem;
}
.contact-email a { color: rgba(255,255,255,0.8); }
.contact-email a:hover { color: white; }

/* Form */
.contact-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 7px;
  padding: 10px 14px;
  color: white;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

.form-group input:focus,
.form-group textarea:focus { border-color: rgba(255,255,255,0.45); }

.form-group textarea { resize: vertical; }

.form-submit { align-self: flex-start; }

.form-status {
  font-size: 0.9rem;
  margin: 0;
}
.form-status.success { color: #86efac; }
.form-status.error { color: #fca5a5; }

@media (max-width: 1080px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}
