/* ============ TOKENS ============ */
:root {
  --navy: #15233B;
  --navy-soft: #1E3050;
  --cream: #F7F5F1;
  --cream-deep: #EFEBE3;
  --teal: #3D7068;
  --teal-light: #E4EEEC;
  --terracotta: #C75D3D;
  --terracotta-light: #F3DED6;
  --warmgray: #8A8578;
  --ink: #1C1B19;
  --white: #FFFFFF;

  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9rem;
  display: block;
}
.section-label.light { color: #9FC2BC; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.12;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(21, 35, 59, 0.08);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.nav-brand span { color: var(--terracotta); }
.nav-links {
  display: flex;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:not(.nav-cta) {
  color: var(--navy-soft);
  transition: color 0.15s;
  white-space: nowrap;
  margin-right: 2rem;
}
.nav-links a:not(.nav-cta):hover { color: var(--terracotta); }
.nav-cta {
  background: var(--navy);
  color: var(--cream) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--teal); }

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

/* ============ CALENDAR STRIP MOTIF ============ */
.cal-strip {
  display: flex;
  gap: 3px;
  width: 100%;
  height: 14px;
}
.cal-cell { border-radius: 2px; flex: 1 1 0; }
.cal-cell.live { background: var(--teal); opacity: 0.85; }
.cal-cell.off { background: var(--terracotta); opacity: 0.5; }

.hero-strip-wrap { padding: 0 0 0 0; }
.divider-strip { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem 3rem; }

/* ============ HERO ============ */
.hero {
  padding: 5.5rem 1.5rem 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 3.5rem;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--warmgray);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--navy-soft);
  max-width: 560px;
  margin: 0 auto 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-proof-strip {
  display: flex;
  gap: 0.6rem 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--warmgray);
  letter-spacing: 0.02em;
}
.hero-proof-strip li { position: relative; padding-left: 1rem; }
.hero-proof-strip li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--terracotta);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0.4rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: #B14F32; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-lg { padding: 1.1rem 2.2rem; font-size: 1.05rem; }

.hero-strip-wrap .cal-strip-mount { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ============ ABOUT ============ */
.about { padding: 5rem 1.5rem; background: var(--cream-deep); }
.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 3.5rem;
  align-items: flex-start;
}
.about-photo {
  flex: 0 0 280px;
  width: 280px;
  position: relative;
  height: 340px;
}
.about-text { flex: 1 1 auto; min-width: 0; }
.about-deco {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 320px;
  height: 380px;
  z-index: 1;
}
.about-photo-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 14px 22px rgba(21, 35, 59, 0.14));
}
.about-text h2 { font-size: 2.1rem; margin-bottom: 0.3rem; }
.about-role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--terracotta);
  margin-bottom: 1.3rem;
  letter-spacing: 0.02em;
}
.about-text p { color: var(--navy-soft); margin-bottom: 1rem; max-width: 620px; }
.about-stats {
  display: flex;
  gap: 2.2rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}
.stat { max-width: 150px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--warmgray);
  display: block;
  margin-top: 0.2rem;
}

/* ============ SERVICES ============ */
.services { padding: 5rem 1.5rem; max-width: var(--max-width); margin: 0 auto; }
.section-head { max-width: 640px; margin-bottom: 2.8rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-sub { color: var(--warmgray); margin-top: 0.8rem; font-size: 0.98rem; }

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.service-card {
  flex: 1 1 calc(25% - 1.05rem);
  min-width: 230px;
  background: var(--white);
  border: 1px solid rgba(21,35,59,0.08);
  border-radius: 8px;
  padding: 1.8rem 1.5rem;
  transition: transform 0.18s, box-shadow 0.18s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(21,35,59,0.1); }
.service-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--teal);
  background: var(--teal-light);
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.9rem; }
.service-card ul li {
  font-size: 0.92rem;
  color: var(--navy-soft);
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.55rem;
}
.service-card ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--terracotta);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0.5rem;
}

/* ============ PROOF OF WORK ============ */
.proof { padding: 5rem 1.5rem; max-width: var(--max-width); margin: 0 auto; }

.results-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
}
.results-strip li {
  background: var(--white);
  border: 1px solid rgba(21,35,59,0.08);
  border-radius: 100px;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  color: var(--navy-soft);
}
.results-strip strong { color: var(--terracotta); font-family: var(--font-display); }

.filter-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem;
  border: 1.5px solid rgba(21,35,59,0.15);
  border-radius: 100px;
  color: var(--navy-soft);
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn.active { background: var(--navy); color: var(--cream); border-color: var(--navy); }

.proof-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
}
.proof-item {
  flex: 1 1 calc(33.333% - 0.87rem);
  min-width: 260px;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(21,35,59,0.08);
  transition: opacity 0.2s, transform 0.2s;
}
.proof-item.hidden { display: none; }
.proof-trigger {
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--cream-deep);
  padding: 10px;
}
.proof-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  transition: transform 0.3s;
}
.proof-trigger:hover img { transform: scale(1.04); }
.proof-item figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--navy-soft);
  border-top: 1px solid rgba(21,35,59,0.06);
}

/* ============ TOOLS ============ */
.tools { padding: 5rem 1.5rem; max-width: var(--max-width); margin: 0 auto; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem 2.5rem;
}
.tool-group { min-width: 0; }
.tool-group h4 {
  font-size: 1rem;
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
}
.tool-group p { color: var(--navy-soft); font-size: 0.95rem; }

/* ============ EXPERIENCE TIMELINE ============ */
.experience { padding: 5rem 1.5rem; max-width: var(--max-width); margin: 0 auto; }
.timeline { border-left: 2px solid rgba(61,112,104,0.3); padding-left: 2rem; }
.timeline-item { position: relative; margin-bottom: 2.4rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.45rem;
  top: 0.3rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--cream);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--terracotta);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.timeline-body h4 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.timeline-body p { color: var(--navy-soft); font-size: 0.95rem; max-width: 640px; }

/* ============ TESTIMONIALS ============ */
.testimonials { padding: 5rem 1.5rem; max-width: var(--max-width); margin: 0 auto; }
.quote-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.quote-card {
  flex: 1 1 calc(33.333% - 1rem);
  min-width: 260px;
  background: var(--white);
  border-left: 3px solid var(--terracotta);
  border-radius: 6px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.quote-card p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.45;
}
.quote-card cite {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--warmgray);
  font-style: normal;
}
.quote-evidence {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal);
  margin-top: 1rem;
  align-self: flex-start;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(21,35,59,0.08);
  transition: color 0.15s;
}
.quote-evidence:hover { color: var(--terracotta); }

/* ============ CONTACT ============ */
.contact { background: var(--navy); padding: 6rem 1.5rem; }
.contact-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.contact h2 { color: var(--cream); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.contact-sub { color: #B7C2D4; margin-bottom: 2.2rem; font-size: 1.05rem; }
.contact-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-ghost-dark { background: transparent; color: var(--cream); border: 1.5px solid rgba(247,245,241,0.4); }
.btn-ghost-dark:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.contact-meta { color: #7E8CA3; font-size: 0.85rem; margin-top: 1.8rem; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy);
  color: #7E8CA3;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer a { color: #9FC2BC; transition: color 0.15s; }
.site-footer a:hover { color: var(--cream); }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(21, 35, 59, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox figure { max-width: 90vw; max-height: 88vh; }
.lightbox img { max-width: 90vw; max-height: 75vh; object-fit: contain; border-radius: 6px; margin: 0 auto; }
.lightbox figcaption { color: var(--cream); text-align: center; margin-top: 1rem; font-size: 0.92rem; }
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: var(--cream);
  font-size: 2.2rem;
  line-height: 1;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .about-inner { flex-direction: column; }
  .about-photo { flex: 0 0 auto; width: 220px; height: 250px; margin: 0 auto; }
  .about-deco { width: 250px; height: 280px; }
  .about-photo-img { width: 180px; }
  .service-card { flex: 1 1 calc(50% - 0.7rem); }
  .proof-item { flex: 1 1 calc(50% - 0.65rem); }
  .quote-card { flex: 1 1 calc(50% - 0.75rem); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .service-card { flex: 1 1 100%; }
  .proof-item { flex: 1 1 100%; }
  .tools-grid { grid-template-columns: 1fr; }
  .quote-card { flex: 1 1 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

/* Mobile nav drawer */
.nav.menu-open .nav-links {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  flex-direction: column;
  padding: 1.5rem;
  gap: 1.2rem;
  border-bottom: 1px solid rgba(21,35,59,0.08);
}
