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

:root {
  /* Primary = forest green (your preference); navy + GYR = wordmark / stripe accents */
  --accent:           #2d5a3d;
  --accent-lt:        #3d7350;
  --accent-soft:      #4a8c61;
  --brand-navy:       #0d2137;
  --brand-navy-hover: #153a5c;
  --brand-navy-soft:  #2a4a6e;
  --brand-green:      #198754;
  --brand-yellow:     #e6b800;
  --brand-red:        #c9302c;
  /* Wordmark stripe (GYR): steady / highlight / rare high-stakes accent — not surfaced as labels on-page */
  --tone-reassure: var(--brand-green);
  --tone-merit:    var(--brand-yellow);
  --tone-stakes:   var(--brand-red);
  --how-bg:           #1a3d32;

  --ink:       #1a1a18;
  --paper:     #f5f2eb;
  --warm-mid:  #e8e4dc;
  --rule:      #c8c0b0;
  --muted:     #6b6459;

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;

  --max: 1080px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(14.5px, 1vw, 16.5px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 3px;
}
.skip-link:focus {
  left: var(--gap);
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 0 var(--gap);
}
nav::after {
  content: '';
  display: block;
  height: 3px;
  margin: 0 calc(-1 * var(--gap));
  background: linear-gradient(
    90deg,
    var(--tone-reassure) 0%,
    var(--tone-reassure) 33.33%,
    var(--tone-merit) 33.33%,
    var(--tone-merit) 66.66%,
    var(--tone-stakes) 66.66%,
    var(--tone-stakes) 100%
  );
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
/* Text wordmark: “Chin” in brand green, “IT” in navy (thinker silhouette can replace later as SVG) */
.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brand-navy);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.02em;
}
.logo-chin {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.logo-it {
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 0.94em;
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 4px; border-radius: 2px; }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45em 1.1em;
  border-radius: 3px;
}
.nav-cta:hover { background: var(--accent-lt); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.2s;
}
.nav-toggle:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 4px; border-radius: 2px; }

    @media (max-width: 768px) {
      .nav-toggle { display: flex; }
      .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0; right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        align-items: stretch;
      }
      .nav-links.open { display: flex; }
      .nav-links li { border-top: 1px solid var(--warm-mid); }
      .nav-links a { display: block; padding: 0.75rem var(--gap); }
      .nav-cta { margin: 0.5rem var(--gap); display: inline-block; text-align: center; }
    }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.75rem, 6.5vw, 5.25rem) var(--gap) clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 3vw, 2.75rem);
  align-items: center;
}
.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}
.hero-text h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.hero-text p {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.1vw, 1.05rem);
  max-width: 42ch;
  margin-bottom: 1.35rem;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.75em 1.8em;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.18s, transform 0.12s;
}
.btn:hover { background: var(--accent-lt); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  margin-left: 0.75rem;
}
.btn-ghost:hover { background: var(--accent); color: #fff; }

.hero-proof {
  background: var(--warm-mid);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  min-height: 0;
}
.proof-line {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
  min-height: 0;
}
.proof-line:last-child { border-bottom: none; padding-bottom: 0; }
.proof-line:first-child { padding-top: 0; }
.proof-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 0.9rem;
}
/* Hero proof: greens + merit only — calmer first screen */
.proof-line:nth-child(1) .proof-icon { background: var(--tone-reassure); }
.proof-line:nth-child(2) .proof-icon { background: var(--tone-merit); color: var(--ink); }
.proof-line:nth-child(3) .proof-icon { background: var(--tone-reassure); }
.proof-line strong { display: block; font-size: 0.88rem; margin-bottom: 0.12rem; }
.proof-line span { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }

@media (max-width: 749px) {
      .hero {
        grid-template-columns: 1fr;
        gap: clamp(1.25rem, 4vw, 2rem);
      }
      .hero-text { order: 1; }
      .hero-proof {
        order: 2;
        padding: 1.35rem 1.25rem;
      }
      .hero-text p { max-width: none; }
    }

    @media (min-width: 750px) and (max-width: 1024px) {
      .hero {
        gap: clamp(1.5rem, 3vw, 2.25rem);
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
      }
    }

.trust-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--warm-mid);
  padding: 1rem var(--gap);
}
.trust-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.trust-items {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.trust-item {
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.trust-item::before {
  content: '✓';
  color: var(--tone-reassure);
  font-weight: 700;
}

section { padding: clamp(2.5rem, 5.5vw, 4.25rem) var(--gap); }
section.section--compact {
  padding-block: clamp(2rem, 4.5vw, 3.35rem);
}
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-left: 0.65rem;
  border-left: 3px solid var(--accent);
}
h2 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}
h2 em { font-style: italic; font-weight: 300; }
.section-sub {
  color: var(--muted);
  max-width: 55ch;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  font-size: clamp(0.95rem, 1.05vw, 1rem);
  line-height: 1.55;
}

#services { background: #fff; }
/* Six service cards: fixed 2×3 (was auto-fit → often 4×2 on wide screens) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5px;
  background: var(--rule);
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: #fff;
  padding: clamp(1rem, 2.2vw, 1.45rem);
  transition: background 0.18s, box-shadow 0.18s;
  position: relative;
  min-height: 0;
}
.service-card:hover {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(45, 90, 61, 0.12);
}
/* Mini stripe — same band logic as nav */
.service-card::before {
  content: '';
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-bottom: 0.75rem;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--tone-reassure) 0%,
    var(--tone-reassure) 34%,
    var(--tone-merit) 34%,
    var(--tone-merit) 66%,
    var(--tone-stakes) 66%,
    var(--tone-stakes) 100%
  );
}
.service-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.service-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

#about { display: grid; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

.about-text p { color: var(--muted); margin-bottom: 1rem; font-size: 0.97rem; }
.about-text p:last-child { margin-bottom: 0; }

.stat-stack { display: flex; flex-direction: column; gap: 0.75rem; }
.stat-card {
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: clamp(0.85rem, 1.8vw, 1.15rem) clamp(1rem, 2vw, 1.35rem);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-height: 0;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--tone-merit);
  line-height: 1.15;
  white-space: normal;
  max-width: 9.5rem;
  flex-shrink: 0;
}
.stat-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.45; }

#how { background: var(--how-bg); color: var(--paper); }
#how h2 { color: var(--paper); }
#how .section-label {
  color: #d4e8dc;
  border-left-color: var(--brand-yellow);
}
#how .section-sub { color: rgba(245, 242, 235, 0.75); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
}
.step { position: relative; padding-top: 0.35rem; min-height: 0; }
.step::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-soft);
  margin-bottom: 0.75rem;
  box-shadow: 0 0 0 2px rgba(245, 242, 235, 0.2);
}
.step:nth-child(1)::before { background: var(--tone-reassure); }
.step:nth-child(2)::before { background: var(--tone-merit); }
.step:nth-child(3)::before { background: var(--tone-reassure); }
.step:nth-child(4)::before { background: var(--tone-merit); }
.step h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--paper); }
.step p { font-size: 0.87rem; color: rgba(245, 242, 235, 0.75); line-height: 1.6; }

#case-study { background: var(--warm-mid); }
.case-card {
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 680px) { .case-card { grid-template-columns: 1fr; } }

.case-body { padding: clamp(1.35rem, 3vw, 2rem); }
.case-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.2em 0.7em;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}
.case-body h3 {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}
.case-body p { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.95rem; line-height: 1.6; }

.case-outcomes {
  background: var(--paper);
  padding: clamp(1.35rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  justify-content: center;
}
.outcome {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.outcome-dot {
  width: 8px;
  height: 8px;
  background: var(--tone-reassure);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.45rem;
}
.outcome:nth-child(2) .outcome-dot { background: var(--tone-merit); }
.outcome:nth-child(3) .outcome-dot { background: var(--tone-stakes); }
.outcome:nth-child(4) .outcome-dot { background: var(--tone-reassure); }
.outcome strong { display: block; font-size: 0.92rem; }
.outcome span { font-size: 0.83rem; color: var(--muted); }

#contact { background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: start;
}
@media (max-width: 680px) { .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

.contact-aside p { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.7; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.contact-detail strong { color: var(--ink); }

.contact-form iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  border-radius: 4px;
  border: 1.5px solid var(--rule);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tone-reassure) 18%, transparent);
}

.edge-note {
  background: rgba(45, 90, 61, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 0.9rem 1.2rem;
  font-size: 0.83rem;
  color: var(--ink);
  margin-top: 1.5rem;
}
.edge-note strong { display: block; margin-bottom: 0.2rem; }

footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem var(--gap);
  background: var(--paper);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-inner p { font-size: 0.82rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.82rem; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-text h1 { animation: fadeUp 0.6s ease both; }
.hero-text p  { animation: fadeUp 0.6s 0.12s ease both; }
.hero-text .cta-row { animation: fadeUp 0.6s 0.22s ease both; }
.hero-proof { animation: fadeUp 0.6s 0.3s ease both; }

/* Hero CTAs — stack on narrow phones without overlapping ghost button */
@media (max-width: 520px) {
  .hero-text .cta-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .hero-text .cta-row .btn-ghost { margin-left: 0; }
}

/* How it works — readable 2×2 on tablets */
@media (min-width: 540px) and (max-width: 899px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* Partner strip under About */
.about-partner {
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid var(--rule);
}
.about-partner .local-line {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
  line-height: 1.45;
  max-width: 40rem;
  letter-spacing: 0.01em;
}
.about-partner > p[data-content-ref="about.partner"] {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}
.partner-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}
.badge-link {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.badge-link:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 2px 10px rgba(45, 90, 61, 0.1);
}
.badge-link:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}
.badge-name { font-weight: 600; font-size: 0.95rem; color: var(--brand-navy); }
.badge-meta { font-size: 0.76rem; color: var(--muted); max-width: 22ch; line-height: 1.35; }
.badge-caption {
  flex: 1;
  min-width: min(100%, 320px);
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.partner-project-cta { margin-top: 0.35rem; }

@media (max-width: 480px) {
  .contact-form iframe { min-height: 440px; }
}
