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

:root {
  --green: #1c3820;
  --green-hover: #263f2a;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --light: #f0f0f0;
  --bg: #ffffff;
  --bg-alt: #f7f5f2;
  --border: #e8e8e8;
  --radius: 16px;
  /* Fluid horizontal padding: aligns content to ~1240px max at wide screens */
  --px: max(64px, calc((100vw - 1240px) / 2));
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── SCROLL PROGRESS ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; width: 0%;
  background: var(--green);
  transition: width 0.1s linear;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--px);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
nav.scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.05);
  background: rgba(255,255,255,0.97);
}
.logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; color: var(--text);
  text-decoration: none; letter-spacing: -0.02em;
}
.logo-icon {
  width: 26px; height: 26px; background: var(--green);
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 14px; height: 14px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 13.5px; font-weight: 400; color: var(--muted);
  text-decoration: none; transition: color 0.15s;
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); font-weight: 500; }
.nav-cta {
  background: var(--green) !important; color: #fff !important;
  padding: 10px 20px !important; border-radius: 100px !important;
  font-weight: 500 !important; font-size: 13px !important;
  transition: background 0.15s, transform 0.15s !important;
  letter-spacing: -0.01em !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--green-hover) !important; color: #fff !important; transform: translateY(-1px) !important; }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 12px 8px; gap: 5px; flex-direction: column; align-items: center;
  min-width: 44px; min-height: 44px; justify-content: center;
}
.hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE NAV ── */
.mobile-nav { display: none; }
.mobile-nav.open {
  display: flex;
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px; flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  animation: slideDown 0.2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav a {
  font-size: 15px; font-weight: 400; color: var(--text);
  text-decoration: none; padding: 13px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.mobile-nav a:hover { color: var(--green); }
.mobile-nav a:last-child { border: none; color: var(--green); font-weight: 500; }

/* ── HERO ── */
#hero {
  padding-top: 64px;
  background: var(--green);
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 72vh;
  overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 64px 60px var(--px);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-tag::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.hero-h1 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: clamp(32px, 3.2vw, 54px);
  font-weight: 700; line-height: 1.06;
  color: #fff; letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 15px; line-height: 1.8;
  color: rgba(255,255,255,0.6);
  font-weight: 300; max-width: 440px;
  margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 12px; margin-bottom: 44px; flex-wrap: wrap; }
.btn-white {
  background: #fff; color: var(--green);
  padding: 12px 24px; border-radius: 100px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; transition: opacity 0.15s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: -0.01em;
}
.btn-white:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline-white {
  color: rgba(255,255,255,0.75);
  padding: 12px 24px; border-radius: 100px;
  font-size: 13px; font-weight: 400;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.45); color: #fff; transform: translateY(-1px); }
.hero-stats {
  display: flex; gap: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-n {
  font-size: 30px; font-weight: 600; color: #fff;
  letter-spacing: -0.04em; line-height: 1;
}
.stat-l { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 5px; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-right {
  position: relative;
  display: flex; align-items: stretch;
}
.hero-right img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}

/* ── SHARED ── */
section { scroll-margin-top: 64px; }

.section-label {
  display: block;
  width: fit-content;
  margin-left: auto; margin-right: auto; /* centred by default; override with margin-left:0 */
  background: var(--green);
  color: #fff;
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 18px; border-radius: 100px;
  margin-bottom: 20px;
}
.section-h2 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: clamp(28px, 2.8vw, 46px);
  font-weight: 600; line-height: 1.1;
  letter-spacing: -0.01em; color: var(--text);
  margin-bottom: 18px;
}
.section-p {
  font-size: 15px; line-height: 1.78;
  color: var(--muted); font-weight: 300;
  margin-bottom: 14px;
}
.btn-dark {
  background: var(--green); color: #fff;
  padding: 12px 24px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  text-decoration: none; transition: background 0.15s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: -0.01em;
}
.btn-dark:hover { background: var(--green-hover); transform: translateY(-1px); }
.btn-outline {
  color: var(--text); padding: 12px 24px; border-radius: 100px;
  font-size: 13px; font-weight: 400;
  text-decoration: none;
  border: 1px solid var(--border); transition: border-color 0.15s, transform 0.15s;
  display: inline-flex; align-items: center;
}
.btn-outline:hover { border-color: #aaa; transform: translateY(-1px); }

/* ── ABOUT ── */
#about .section-label { margin-left: 0; }
#about {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; align-items: stretch;
  background: var(--bg);
  min-height: 640px;
  overflow: hidden;
}
.about-img {
  overflow: hidden; position: relative;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 25%; transition: transform 0.7s ease; display: block; }
.about-img:hover img { transform: scale(1.03); }
#about > div:last-child {
  padding: 80px var(--px) 80px 72px;
  display: flex; flex-direction: column; justify-content: center;
}
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 32px; }
.cred {
  background: var(--bg-alt); border-radius: 12px; padding: 16px 18px;
  transition: background 0.15s;
  border: 1px solid transparent;
}
.cred:hover { background: #eeece9; border-color: #e0ddd9; }
.cred-label {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--green); margin-bottom: 5px;
}
.cred-val { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* ── SERVICES ── */
#services { padding: 104px var(--px); background: var(--bg-alt); }
.section-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: end; margin-bottom: 52px;
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc {
  background: var(--bg); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: default;
  border: 1px solid var(--border);
}
.svc:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.09);
  transform: translateY(-4px);
}
.svc-img { height: 200px; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.svc:hover .svc-img img { transform: scale(1.06); }
.svc-body { padding: 22px 24px 26px; }
.svc-num {
  font-size: 11px; font-weight: 600;
  color: var(--green); opacity: 0.45;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.svc-num::after {
  content: '';
  display: block;
  height: 1px;
  width: 24px;
  background: var(--green);
  opacity: 0.3;
}
.svc-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 9px; line-height: 1.3; letter-spacing: -0.015em; }
.svc-desc { font-size: 13px; line-height: 1.7; color: var(--muted); font-weight: 300; }

/* ── WHY ── */
#why { padding: 104px var(--px); background: var(--bg); }
.why-header { margin-bottom: 52px; max-width: 560px; }
.why-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.why-card {
  background: var(--bg-alt); border-radius: var(--radius); padding: 32px;
  transition: transform 0.25s ease;
  border: 1px solid var(--border);
}
.why-card:hover { transform: translateY(-3px); }
.why-card.tall { grid-row: span 2; }
.why-card.dark { background: var(--green); border-color: var(--green); }
.why-card-tag {
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 14px;
}
.why-card.dark .why-card-tag { color: rgba(255,255,255,0.35); }
.why-card-title { font-family: 'Plus Jakarta Sans', -apple-system, sans-serif; font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 12px; line-height: 1.15; letter-spacing: -0.005em; }
.why-card.dark .why-card-title { color: #fff; }
.why-card-body { font-size: 13.5px; line-height: 1.7; color: var(--muted); font-weight: 300; }
.why-card.dark .why-card-body { color: rgba(255,255,255,0.5); }
.why-num {
  font-size: 64px; font-weight: 600;
  letter-spacing: -0.05em; line-height: 1;
  color: var(--text); margin-bottom: 6px;
  margin-top: 8px;
}
.why-card.dark .why-num { color: #fff; }
.why-num-label { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.why-card.dark .why-num-label { color: rgba(255,255,255,0.6); }
.why-img { height: 168px; border-radius: 10px; overflow: hidden; margin-top: 24px; }
.why-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.why-card.tall:hover .why-img img { transform: scale(1.04); }

/* ── CASE STUDIES ── */
#cases { padding: 104px var(--px); background: var(--green); }
.cases-header { display: block; text-align: center; margin-bottom: 40px; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.case {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius); overflow: hidden;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}
.case:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}
.case-img { height: 164px; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: brightness(0.82); }
.case:hover .case-img img { transform: scale(1.06); filter: brightness(0.95); }
.case-body { padding: 18px 20px 22px; }
.case-cat {
  display: inline-block;
  background: rgba(255,255,255,0.15); color: #fff;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px; margin-bottom: 10px;
}
.case-title { font-size: 13px; font-weight: 500; color: #fff; line-height: 1.4; margin-bottom: 7px; letter-spacing: -0.01em; }
.case-desc { font-size: 12px; line-height: 1.65; color: rgba(255,255,255,0.6); font-weight: 300; }
.cases-footer { margin-top: 32px; display: flex; justify-content: center; }
.btn-outline-dark {
  color: rgba(255,255,255,0.7); padding: 12px 28px; border-radius: 100px;
  font-size: 13px; font-weight: 400; letter-spacing: 0.01em;
  border: 1px solid rgba(255,255,255,0.25);
  background: none; cursor: pointer;
  display: inline-flex; align-items: center;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
  font-family: inherit;
}
.btn-outline-dark:hover { border-color: rgba(255,255,255,0.5); color: #fff; transform: translateY(-1px); }

.cases-note {
  margin-top: 24px; padding: 14px 20px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.6;
}

/* ── FAQ ── */
#faq { padding: 104px var(--px); background: var(--bg); }
.faq-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 96px; align-items: start; }
.faq-left { position: sticky; top: 88px; }
.faq-list { display: flex; flex-direction: column; }
.faq-row { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--text);
  gap: 16px; user-select: none;
  background: none; border: none; text-align: left;
  transition: color 0.15s; font-family: inherit;
  letter-spacing: -0.01em;
}
.faq-q:hover { color: var(--green); }
.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.22s;
}
.faq-icon svg { width: 10px; height: 10px; transition: transform 0.25s; stroke: var(--muted); }
.faq-row.open .faq-icon { background: var(--green); border-color: var(--green); }
.faq-row.open .faq-icon svg { transform: rotate(45deg); stroke: #fff; }
.faq-a {
  max-height: 0; overflow: hidden;
  font-size: 13.5px; line-height: 1.8; color: var(--muted); font-weight: 300;
  transition: max-height 0.35s ease, padding 0.25s;
}
.faq-row.open .faq-a { max-height: 500px; padding-bottom: 20px; }

/* ── CONTACT ── */
#contact { padding: 104px var(--px); background: var(--bg-alt); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.contact-h2 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: clamp(30px, 3.2vw, 50px); font-weight: 600;
  line-height: 1.06; letter-spacing: -0.01em; color: var(--text); margin-bottom: 16px;
}
.contact-btns { display: flex; gap: 10px; margin-top: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 8px; }
.contact-card {
  background: var(--bg); border-radius: 12px; padding: 15px 18px;
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  transition: border-color 0.15s;
}
.contact-card:hover { border-color: #ccc; }
.cc-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted); min-width: 64px;
}
.cc-val { font-size: 13px; font-weight: 500; color: var(--text); overflow-wrap: break-word; }
.cc-val a { color: var(--green); text-decoration: none; }
.cc-val a:hover { text-decoration: underline; }
.contact-location { font-weight: 400; color: var(--muted); }

/* ── CONTACT FORM ── */
.contact-form-wrap {
  background: var(--bg); border-radius: var(--radius);
  padding: 40px; border: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.04);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label {
  font-size: 12px; font-weight: 600; color: var(--text);
  letter-spacing: 0.02em; text-transform: uppercase;
}
.form-optional { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.form-input, .form-textarea {
  border: 1px solid #c8c8c8; border-radius: 10px;
  padding: 11px 14px; font-size: 13.5px;
  font-family: inherit; color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none; width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: #c0c0c0; }
.form-input:focus, .form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(28,56,32,0.07);
}
.form-input.error, .form-textarea.error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.07);
}
.form-textarea { min-height: 128px; resize: vertical; line-height: 1.65; }
.form-submit {
  background: var(--green); color: #fff;
  padding: 13px 28px; border-radius: 100px;
  font-size: 13px; font-weight: 600;
  border: none; cursor: pointer;
  font-family: inherit; letter-spacing: -0.01em;
  transition: background 0.15s, transform 0.15s;
  align-self: flex-start;
}
.form-submit:hover { background: var(--green-hover); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Form success state */
.form-success {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 48px 20px;
  gap: 16px;
}
.form-success-icon svg { width: 48px; height: 48px; }
.form-success-title { font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.form-success-body { font-size: 13px; color: var(--muted); line-height: 1.75; }
.form-success-body a { color: var(--green); text-decoration: none; }

/* ── FOOTER ── */
footer {
  background: var(--text);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 44px var(--px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
}
.footer-left { display: flex; flex-direction: column; gap: 7px; }
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.75);
  text-decoration: none;
}
.footer-logo .logo-icon { width: 22px; height: 22px; border-radius: 6px; }
.footer-logo .logo-icon svg { width: 12px; height: 12px; }
.footer-tagline { font-size: 11px; color: rgba(255,255,255,0.28); padding-left: 30px; letter-spacing: 0.01em; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 12px; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.15s;
}
.footer-links a:hover { color: rgba(255,255,255,0.85); }
.footer-right { text-align: right; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.45); }
.footer-reg { font-size: 10px; color: rgba(255,255,255,0.3); margin-top: 4px; letter-spacing: 0.02em; }

/* ── BACK TO TOP ── */
.back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.15s;
  box-shadow: 0 4px 20px rgba(28,56,32,0.35);
}
.back-top.visible { opacity: 1; transform: translateY(0); }
.back-top:hover { background: var(--green-hover); }
.back-top svg { width: 16px; height: 16px; }

/* ── FADE IN ── */
.fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade.in { opacity: 1; transform: none; }

/* Stagger grid children */
.services-grid .svc:nth-child(2) { transition-delay: 0.07s; }
.services-grid .svc:nth-child(3) { transition-delay: 0.14s; }
.services-grid .svc:nth-child(4) { transition-delay: 0.07s; }
.services-grid .svc:nth-child(5) { transition-delay: 0.14s; }
.services-grid .svc:nth-child(6) { transition-delay: 0.21s; }
.cases-grid .case:nth-child(2)  { transition-delay: 0.07s; }
.cases-grid .case:nth-child(3)  { transition-delay: 0.14s; }
.cases-grid .case:nth-child(4)  { transition-delay: 0.21s; }
.cases-grid .case:nth-child(5)  { transition-delay: 0.07s; }
.cases-grid .case:nth-child(6)  { transition-delay: 0.14s; }
.cases-grid .case:nth-child(7)  { transition-delay: 0.21s; }
.cases-grid .case:nth-child(8)  { transition-delay: 0.28s; }
.why-grid .why-card:nth-child(2) { transition-delay: 0.07s; }
.why-grid .why-card:nth-child(3) { transition-delay: 0.14s; }
.why-grid .why-card:nth-child(4) { transition-delay: 0.07s; }
.why-grid .why-card:nth-child(5) { transition-delay: 0.14s; }

/* Ensure HTML hidden attribute is respected */
[hidden] { display: none !important; }

/* ── FOCUS STYLES ── */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── RESPONSIVE ── */
@media (min-width: 1025px) {
  .hero-right {
    padding: 32px 48px 32px 16px;
    align-items: stretch;
  }
  .hero-right img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    object-position: center top;
  }
}
@media (max-width: 1200px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  :root { --px: 48px; }
  #hero { grid-template-columns: 1fr; min-height: unset; }
  .hero-right { order: -1; height: 420px; min-height: unset; }
  .hero-left { padding: 64px 48px; }
  #about { grid-template-columns: 1fr; min-height: unset; }
  #about > div:last-child { padding: 60px var(--px); }
  .about-img { height: 320px; }
  .section-header { grid-template-columns: 1fr; gap: 16px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-card.tall { grid-row: span 1; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .faq-left { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  footer { padding: 36px var(--px); grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .footer-right { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 768px) {
  :root { --px: 24px; }
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-left { padding: 48px 24px; }
  .hero-right { height: 340px; }
  #about > div:last-child { padding: 32px 24px; max-width: 100vw; overflow: hidden; }
  #about > div:last-child .section-h2,
  #about > div:last-child .section-p,
  #about > div:last-child .creds,
  #about > div:last-child .timeline { max-width: 100%; }
  #about .section-label { margin-bottom: 12px; }
  .about-img { height: 220px; }
  .about-img img { object-position: 85% 20%; }
  .creds { grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 20px; }
  .cred { padding: 12px 14px; border-radius: 10px; }
  .cred-val { font-size: 11.5px; }
  .svc-img { height: 180px; }
  .why-grid { grid-template-columns: 1fr; }
  .cases-featured { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .cases-header { text-align: center; }
  footer { padding: 28px 24px; grid-template-columns: 1fr; }
  .footer-tagline { padding-left: 0; margin-top: 2px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
  .footer-right { text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px; }
  .back-top { bottom: 20px; right: 20px; }
}
@media (max-width: 480px) {
  .cases-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
}

/* ── SERVICE HOVER REVEAL ── */
.svc { position: relative; }
.svc-more {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--green);
  padding: 20px 24px 24px;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.svc:hover .svc-more,
.svc:focus-within .svc-more { transform: translateY(0); pointer-events: auto; }

/* Card link arrow — always visible, signals clickability */
.card-arrow {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(28,56,32,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.22s, transform 0.22s;
  pointer-events: none; z-index: 2;
}
.card-arrow svg { width: 13px; height: 13px; stroke: var(--green); }
a.svc:hover .card-arrow { background: var(--green); transform: translate(2px, -2px); }
a.svc:hover .card-arrow svg { stroke: #fff; }

/* Case card arrow (dark bg) */
a.case .card-arrow { background: rgba(255,255,255,0.1); }
a.case .card-arrow svg { stroke: rgba(255,255,255,0.7); }
a.case:hover .card-arrow { background: rgba(255,255,255,0.25); transform: translate(2px, -2px); }
a.case:hover .card-arrow svg { stroke: #fff; }

/* Hide old svc-hint */
.svc-hint { display: none; }
/* Form error messages */
.form-error {
  font-size: 11.5px; color: #c0392b; font-weight: 500;
  min-height: 16px; display: block;
  letter-spacing: 0.01em;
}

/* Timeline ol reset */
.tl-track { list-style: none; padding: 0; margin: 0; }
.svc-more-label {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4); margin-bottom: 12px;
}
.svc-more ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.svc-more ul li {
  font-size: 12.5px; color: rgba(255,255,255,0.82); font-weight: 300;
  display: flex; align-items: flex-start; gap: 9px; line-height: 1.4;
}
.svc-more ul li::before {
  content: '→'; color: rgba(255,255,255,0.35);
  font-size: 11px; flex-shrink: 0; margin-top: 1px;
}

/* ── CLIENT TRUST STRIP ── */
#clients {
  padding: 56px var(--px);
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.clients-inner {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.clients-label {
  font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: rgba(0,0,0,0.28);
}
.clients-list {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 24px 40px; max-width: 960px;
}
.clients-list a {
  display: flex; align-items: center; justify-content: center;
}
.clients-list img {
  height: 52px; width: 120px;
  object-fit: contain;
}
.clients-list img.logo-wfw {
  height: 64px; width: 64px;
}
.clients-list img.logo-unitrans {
  height: 72px; width: 72px;
}

/* ── CAREER TIMELINE ── */
.timeline {
  margin-top: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.tl-track {
  display: flex; position: relative;
  min-width: 520px;
}
.tl-track::before {
  content: '';
  position: absolute;
  top: 36px; left: 4px; right: 4px;
  height: 1px; background: var(--border); z-index: 0;
}
.tl-item {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start;
  position: relative; padding-right: 8px;
}
.tl-year {
  font-size: 11px; font-weight: 600;
  color: var(--green); letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.tl-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border); border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
  margin-bottom: 10px; z-index: 1; position: relative;
  transition: background 0.2s, box-shadow 0.2s;
}
.tl-item:hover .tl-dot,
.tl-item.current .tl-dot {
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}
.tl-role {
  font-size: 11px; color: var(--muted);
  line-height: 1.45; max-width: 88px; font-weight: 300;
}
.tl-item.current .tl-year { color: var(--green); }
.tl-item.current .tl-role { color: var(--text); font-weight: 500; }

/* ── FEATURED CASE STUDIES ── */
.cases-featured {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 12px;
}
.case-featured .case-img { height: 260px; }
.case-featured .case-title { font-size: 15px; line-height: 1.35; margin-bottom: 9px; }
.case-featured .case-desc { font-size: 12.5px; color: rgba(255,255,255,0.5); }

/* ── DETAIL PAGES ── */
.detail-hero {
  padding-top: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  background: var(--green);
  overflow: hidden;
}
.detail-hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 64px 60px var(--px);
}
.detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.5);
  text-decoration: none; letter-spacing: 0.02em;
  margin-bottom: 28px; transition: color 0.15s;
}
.detail-back:hover { color: rgba(255,255,255,0.85); }
.detail-hero-left .section-label {
  background: rgba(255,255,255,0.35); color: rgba(255,255,255,0.9);
}
.detail-h1 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: clamp(32px, 3.5vw, 58px);
  font-weight: 700; line-height: 1.08;
  color: #fff; letter-spacing: -0.01em;
  margin-top: 14px; margin-bottom: 20px;
}
.detail-lead {
  font-size: 15px; line-height: 1.8;
  color: rgba(255,255,255,0.6);
  font-weight: 300; max-width: 440px;
}
.detail-hero-right { position: relative; overflow: hidden; }
.detail-hero-right img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero-right::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(28,56,32,0.4) 0%, transparent 50%);
}
.detail-body { padding: 96px var(--px); background: var(--bg); }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 80px; align-items: start; }
.detail-content h2 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: clamp(24px, 2.4vw, 38px); font-weight: 600;
  line-height: 1.15; letter-spacing: -0.01em;
  color: var(--text); margin-bottom: 16px; margin-top: 48px;
}
.detail-content h2:first-child { margin-top: 0; }
.detail-content p {
  font-size: 15px; line-height: 1.82; color: var(--muted);
  font-weight: 300; margin-bottom: 16px;
}
.detail-sidebar { position: sticky; top: 88px; }
.detail-box {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 28px; border: 1px solid var(--border); margin-bottom: 16px;
}
.detail-box-label {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--green); margin-bottom: 16px;
}
.detail-box ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.detail-box ul li {
  font-size: 13px; color: var(--text); line-height: 1.45;
  display: flex; align-items: flex-start; gap: 10px; font-weight: 400;
}
.detail-box ul li::before {
  content: '→'; color: var(--green); font-size: 11px;
  flex-shrink: 0; margin-top: 1px;
}
.detail-box-text { font-size: 13px; color: var(--muted); line-height: 1.65; font-weight: 300; }
.detail-cta {
  padding: 80px var(--px); background: var(--green); text-align: center;
}
.detail-cta-label {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.8);
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 20px;
}
.detail-cta h2 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: clamp(28px, 3vw, 48px); font-weight: 600;
  color: #fff; margin-bottom: 16px; letter-spacing: -0.01em;
}
.detail-cta p { font-size: 15px; color: rgba(255,255,255,0.6); font-weight: 300; margin-bottom: 36px; }
.detail-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .detail-hero { grid-template-columns: 1fr; }
  .detail-hero-left { padding: 64px var(--px); }
  .detail-hero-right { height: 360px; }
  .detail-grid { grid-template-columns: 1fr; gap: 48px; }
  .detail-sidebar { position: static; }
}
@media (max-width: 768px) {
  .detail-body { padding: 64px var(--px); }
  .detail-hero-right { height: 280px; }
}

/* ── CENTERED SECTION HEADER (services) ── */
.section-header-centered {
  display: block; text-align: center;
  margin-bottom: 56px; margin-left: auto; margin-right: auto;
}
.section-header-centered .section-h2 {
  font-size: clamp(38px, 4.5vw, 70px);
  max-width: 820px;
  margin-left: auto; margin-right: auto;
}
.section-header-centered .section-p {
  max-width: 580px;
  margin-left: auto; margin-right: auto;
}

/* Service + case cards as links */
a.svc, a.case {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.svc .svc-hint, a.case .svc-hint { pointer-events: none; }

/* ── CASE PREV/NEXT NAV ── */
.case-nav {
  position: sticky; top: 64px; z-index: 90;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr;
}
.case-nav-item {
  padding: 12px var(--px); text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 3px;
  transition: background 0.15s;
}
.case-nav-item:hover { background: var(--bg-alt); }
.case-nav-item + .case-nav-item { border-left: 1px solid var(--border); }
.case-nav-dir {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted);
}
.case-nav-title {
  font-size: 13px; font-weight: 500; color: var(--text);
  line-height: 1.3; letter-spacing: -0.01em;
}
.case-nav-item.next { text-align: right; }
@media (max-width: 768px) {
  .case-nav-item { padding: 10px 24px; }
  .case-nav-title { font-size: 12px; }
}
@media (max-width: 480px) {
  .case-nav-item { padding: 8px 16px; }
  .case-nav-dir { font-size: 9px; }
  .case-nav-title { font-size: 11px; }
}

/* ── DETAIL PHOTO GALLERY ── */
.detail-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  background: var(--text);
}
.detail-gallery img {
  width: 100%; height: 300px;
  object-fit: cover; display: block;
  transition: opacity 0.2s;
}
.detail-gallery img:hover { opacity: 0.88; }
@media (max-width: 768px) {
  .detail-gallery { grid-template-columns: 1fr; }
  .detail-gallery img { height: 240px; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transform: none; }
}
