/* ============ Tokens ============ */
:root {
  --paper: #FAF9F6;
  --surface: #FFFFFF;
  --ink: #0F2A43;
  --slate: #4A5568;
  --accent: #1F5C8B;
  --accent-tint: #eef3f8;
  --border: #E4E1DA;
  --pad-x: clamp(20px, 6vw, 72px);
}

/* ============ Reset ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--slate);
  background: var(--paper);
}
h1, h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
ol { margin: 0; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-tint); color: var(--accent); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ============ Navbar ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: .01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--slate);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-menu-ancestor > a {
  font-weight: 500;
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease;
  }
  .nav-links.open { max-height: 240px; }
  .nav-menu {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .nav-menu li { width: 100%; }
  .nav-links a {
    width: 100%;
    padding: 14px var(--pad-x);
    border-bottom: 1px solid var(--border);
    display: block;
  }
  .nav-links a.active,
  .nav-links .current-menu-item > a,
  .nav-links .current_page_item > a,
  .nav-links .current-menu-ancestor > a { border-bottom: 1px solid var(--border); }
}

/* ============ Hero ============ */
.hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  padding: 48px var(--pad-x) 56px;
  background: var(--paper);
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-text .eyebrow { margin-bottom: 20px; }
.hero-text h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero-text .sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--slate);
  margin-bottom: 36px;
  max-width: 56ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-photo-wrap {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 400 / 460;
  justify-self: center;
}
.photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--accent-tint);
}
.photo-frame img {
  position: absolute;
  width: 100%;
  height: 130.516%;
  left: 50%;
  top: 61.007%;
  transform: translate(-50%, -50%);
  max-width: none;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo-wrap { order: -1; max-width: 320px; }
}

/* ============ Impact strip ============ */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-cell {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--accent);
}
.stat-label { font-size: 13px; line-height: 1.45; color: var(--slate); }

@media (max-width: 700px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2n) { border-right: none; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 420px) {
  .stat-strip { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-cell:last-child { border-bottom: none; }
}

/* ============ About ============ */
.about {
  display: flex;
  justify-content: center;
  padding: 56px var(--pad-x);
  background: var(--paper);
}
.about-inner {
  max-width: 65ch;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; }
.about p { font-size: 17px; line-height: 1.75; color: var(--slate); }

/* ============ Core strengths ============ */
.strengths {
  padding: 0 var(--pad-x) 56px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.strengths h2 { font-size: 28px; text-align: center; }
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.strength-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: 0 1px 3px rgba(15, 42, 67, .05);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.strength-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-ring { width: 14px; height: 14px; border: 2.5px solid var(--accent); border-radius: 50%; }
.icon-bars {
  align-items: flex-end !important;
  gap: 3px;
  padding-bottom: 10px;
}
.icon-bars span { display: block; width: 5px; background: var(--accent); }
.icon-bars span:nth-child(1) { height: 8px; }
.icon-bars span:nth-child(2) { height: 13px; }
.icon-bars span:nth-child(3) { height: 18px; }
.icon-overlap { gap: 4px; }
.icon-overlap span { width: 11px; height: 11px; border: 2.5px solid var(--accent); border-radius: 50%; }
.icon-overlap span:nth-child(2) { margin-left: -8px; background: var(--accent-tint); }
.strength-card h3 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: 19px; color: var(--ink); margin: 0; }
.strength-card p { font-size: 14.5px; line-height: 1.6; color: var(--slate); }

@media (max-width: 800px) {
  .strengths-grid { grid-template-columns: 1fr; }
}

/* ============ Contact ============ */
.contact {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 52px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-intro h2 { font-size: clamp(26px, 4vw, 34px); }
.contact-intro p { font-size: 16px; line-height: 1.7; max-width: 38ch; }
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.contact-links a { font-size: 15px; font-weight: 500; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form-cf7 .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form-cf7 .wpcf7-form p {
  margin: 0;
}
.contact-form-cf7 br {
  display: none;
}
.contact-form-cf7 .form-row > p {
  display: contents;
}
.contact-form-cf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.contact-form-cf7 .wpcf7-submit {
  align-self: flex-start;
  margin-top: 10px;
}
.contact-form-cf7 .wpcf7-spinner {
  margin: 0 0 0 12px;
}
.contact-form-cf7 .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 400;
}
.contact-form-cf7 .wpcf7-response-output {
  margin: 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  line-height: 1.5;
}
.contact-fields-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 16px;
  align-items: stretch;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field-message textarea {
  min-height: 90px;
  height: auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 400;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
}
.field textarea { min-height: 90px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #9aa2ae; }
.field input:focus,
.field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form .btn { align-self: flex-start; border: none; }
.form-note { font-size: 12.5px; color: var(--slate); }

@media (max-width: 800px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-fields-grid { grid-template-columns: 1fr; }
  .field-message textarea {
    min-height: 120px;
    height: auto;
  }
}

/* ============ Footer ============ */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--border);
  padding: 28px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--accent);
  border-radius: 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.footer-email { font-size: 13.5px; color: var(--slate); }
.footer-copy { font-size: 13px; color: var(--slate); }

/* ============ Page header (Cases, Project detail) ============ */
.page-header {
  padding: 64px var(--pad-x) 24px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-header h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; }
.page-header p { font-size: 17px; line-height: 1.6; max-width: 60ch; color: var(--slate); }

/* ============ Cases grid ============ */
.cases-grid {
  padding: 32px var(--pad-x) 88px;
  background: var(--paper);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.case-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 42, 67, .05);
}
a.case-card { color: inherit; }
a.case-card:hover { border-color: var(--accent); }
.case-cover {
  height: 190px;
  background: var(--accent-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--slate);
  font-family: ui-monospace, Menlo, monospace;
}
.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 20px;
}
.case-body h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}
.case-body p { font-size: 14px; line-height: 1.55; color: var(--slate); }
.case-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cases-grid { grid-template-columns: 1fr; }
}

/* ============ Project detail ============ */
.detail-section {
  background: var(--paper);
  padding: 48px var(--pad-x) 88px;
}
.back-link {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
}
.detail-hero {
  height: 380px;
  margin-bottom: 44px;
  border-radius: 12px;
  background: var(--accent-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--slate);
  font-family: ui-monospace, Menlo, monospace;
  overflow: hidden;
}
.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-body {
  max-width: 72ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.detail-body .tag { margin-bottom: 16px; }
.detail-body h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  margin-bottom: 32px;
}
.detail-body h2 {
  font-size: 22px;
  margin: 0 0 12px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.detail-body > h2:first-of-type { border-top: none; padding-top: 8px; }
.detail-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--slate);
  margin: 0 0 32px;
}
.detail-body ol {
  font-size: 16px;
  line-height: 1.75;
  color: var(--slate);
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 32px;
}
.detail-meta {
  font-size: 13.5px;
  color: var(--slate);
  margin: -18px 0 30px;
}
.wp-content {
  padding-top: 32px;
}
.wp-content > * {
  margin-top: 0;
}
.wp-content h2,
.wp-content h3,
.wp-content h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--ink);
  margin: 28px 0 12px;
}
.wp-content p,
.wp-content li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--slate);
}
.wp-content p,
.wp-content ul,
.wp-content ol {
  margin-bottom: 24px;
}
.wp-content ul,
.wp-content ol {
  padding-left: 22px;
}
.wp-content img {
  border-radius: 10px;
  margin: 28px 0;
}
.findings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.finding-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.finding-num { font-size: 28px; font-weight: 700; color: var(--accent); }
.finding-label { font-size: 13px; line-height: 1.45; color: var(--slate); }
.visuals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.chart-placeholder {
  height: 240px;
  border: 1px dashed #b8b3a8;
  border-radius: 10px;
  background: repeating-linear-gradient(45deg, #f5f3ee, #f5f3ee 10px, #efede7 10px, #efede7 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--slate);
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  text-align: center;
}
.chart-placeholder small {
  font-size: 12px;
  line-height: 1.4;
  max-width: 28ch;
}
.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--slate);
}
.archive-pagination {
  padding: 0 var(--pad-x) 72px;
}
.archive-pagination .nav-links {
  position: static;
  display: flex;
  justify-content: center;
  gap: 10px;
  max-height: none;
  border: none;
  background: transparent;
}
.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--slate);
  font-size: 13px;
  font-weight: 600;
}
.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 700px) {
  .findings-grid { grid-template-columns: 1fr; }
  .visuals-grid { grid-template-columns: 1fr; }
}
