/* ---------- Reset & tokens ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --ink: #16231e;
  --ink-soft: #45534d;
  --cream: #faf7f1;
  --cream-deep: #f1ece2;
  --teal: #1f6f5c;
  --teal-deep: #16544a;
  --teal-tint: #e4efe9;
  --line: #e2ddd1;
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
  --shadow: 0 20px 50px -25px rgba(22, 35, 30, 0.35);
  --font-display: "Fraunces", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--ink);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 14px;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(31,111,92,0.55); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px; height: 36px;
  background: var(--teal);
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}
.primary-nav { display: flex; gap: 32px; }
.primary-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
}
.primary-nav a:hover { color: var(--ink); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-cta { white-space: nowrap; }

.coursebench-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-deep);
  white-space: nowrap;
}
.coursebench-link:hover { text-decoration: underline; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 28px 20px;
}
.mobile-nav a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.mobile-nav .btn { margin-top: 14px; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
}
.hero-blob {
  position: absolute;
  top: -220px; right: -180px;
  width: 640px; height: 640px;
  background: radial-gradient(circle at 30% 30%, var(--teal-tint), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}

/* ---------- Section shared ---------- */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-sub { color: var(--ink-soft); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Services ---------- */
.services { background: var(--cream-deep); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-index {
  font-family: var(--font-display);
  color: var(--teal);
  font-size: 1.1rem;
  margin-bottom: 18px;
  opacity: 0.65;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 0.98rem; }
.service-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
}
.service-link:hover { text-decoration: underline; }

/* ---------- Consulting ---------- */
.consulting-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: start;
}
.consulting h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 18px; }
.consulting-copy > p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 32px; max-width: 560px; }
.process-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.process-list li { display: flex; gap: 16px; align-items: flex-start; }
.process-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.process-list strong { display: block; font-size: 1.02rem; margin-bottom: 3px; }
.process-list p { color: var(--ink-soft); font-size: 0.95rem; }

.consulting-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-content: start;
}
.stat {
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 22px;
}
.stat:nth-child(2) { background: var(--teal-deep); }
.stat:nth-child(3) { background: var(--ink); }
.stat:nth-child(4) { background: #2a3833; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.85rem; opacity: 0.85; }

/* ---------- Work ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  background: #fff;
  border: 1px solid var(--line);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal-deep); }
.filter-btn.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.work-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.work-card.is-hidden { display: none; }
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.work-card-top { display: flex; flex-direction: column; gap: 6px; }
.tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-deep);
}
.work-client { font-weight: 700; font-size: 1rem; }
.work-card h3 { font-size: 1.08rem; }
.work-card p { color: var(--ink-soft); font-size: 0.92rem; flex-grow: 1; }
.work-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal);
  margin-top: auto;
}
.work-link:hover { text-decoration: underline; }

/* ---------- About ---------- */
.about { background: var(--cream-deep); }
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
}
.about-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 18px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.02rem; max-width: 560px; }
.about-values { display: flex; flex-direction: column; gap: 22px; }
.value-row { border-left: 3px solid var(--teal); padding-left: 18px; }
.value-row h4 { font-size: 1.02rem; margin-bottom: 5px; }
.value-row p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.contact-intro h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 16px; }
.contact-intro p { color: var(--ink-soft); margin-bottom: 24px; max-width: 420px; }
.contact-email {
  display: inline-block;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--teal-deep);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row label { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.form-row input, .form-row textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-tint);
}
.form-submit { align-self: flex-start; }
.form-note { font-size: 0.88rem; color: var(--teal-deep); min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cdd6d1;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .brand-mark { background: var(--teal); }
.site-footer .brand-name { color: #fff; }
.footer-inner p { font-size: 0.85rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.85rem; color: #cdd6d1; }
.footer-links a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .consulting-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .primary-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.is-open { display: flex; }
  .service-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .consulting-stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 80px 0 60px; }
  section { padding: 64px 0; }
}
