:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18201d;
  background: #f4f5f1;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --surface: #ffffff;
  --surface-soft: #eef1eb;
  --ink: #18201d;
  --muted: #5d6762;
  --accent: #c7ff4a;
  --accent-dark: #18201d;
  --border: rgba(24, 32, 29, 0.14);
  --radius: 28px;
  --shadow: 0 24px 80px rgba(22, 29, 26, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #f4f5f1; }
button, input, textarea { font: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.site-shell { min-height: 100vh; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 76px);
  background: rgba(244, 245, 241, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.brand { text-decoration: none; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.03em; }
.brand img { width: auto; max-height: 44px; }
.site-header nav { display: flex; gap: 24px; }
.site-header nav a { text-decoration: none; font-weight: 650; font-size: 0.95rem; }
.site-header nav a:hover { opacity: 0.6; }

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 76px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #1b2420;
}
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 15, 13, 0.82) 0%, rgba(10, 15, 13, 0.42) 55%, rgba(10, 15, 13, 0.12) 100%); }
.hero__content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding: clamp(70px, 9vw, 130px) clamp(20px, 7vw, 110px);
  color: #fff;
}
.hero h1 { margin: 0 0 24px; max-width: 12ch; font-size: clamp(3rem, 7vw, 7rem); line-height: 0.93; letter-spacing: -0.065em; }
.hero__content > p:not(.eyebrow) { max-width: 60ch; margin: 0 0 32px; color: rgba(255,255,255,0.82); font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.7; }
.eyebrow { margin: 0 0 18px; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 800; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; padding: 15px 24px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-dark); text-decoration: none; font-weight: 800; cursor: pointer; transition: transform 180ms ease, opacity 180ms ease; }
.primary-button:hover { transform: translateY(-2px); }
.primary-button:disabled { cursor: wait; opacity: 0.65; transform: none; }

.section { padding: clamp(70px, 9vw, 130px) clamp(20px, 6vw, 92px); }
.section-heading { max-width: 820px; margin-bottom: 44px; }
.section-heading h2 { margin: 0 0 18px; font-size: clamp(2.2rem, 5vw, 4.7rem); line-height: 1; letter-spacing: -0.055em; }
.section-heading > p:last-child { max-width: 65ch; color: var(--muted); line-height: 1.7; }

.responsive-grid { display: grid; grid-template-columns: repeat(var(--cols-desktop, 2), minmax(0, 1fr)); }
.responsive-order-item { order: var(--order-desktop, 0); min-width: 0; }
.text-grid { gap: 18px; }
.text-card { display: flex; flex-direction: column; min-height: 280px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.text-card__number { display: inline-block; margin-bottom: 55px; color: var(--muted); font-weight: 800; }
.text-card h3 { margin: 0 0 18px; font-size: clamp(1.5rem, 2.5vw, 2.4rem); letter-spacing: -0.04em; }
.text-card p { margin: 0; color: var(--muted); line-height: 1.75; white-space: pre-line; }
.text-card__cta { align-self: flex-start; margin-top: auto; position: relative; top: 18px; }

.section--images { background: #18201d; color: #fff; }
.section--images .section-heading > p:last-child { color: rgba(255,255,255,0.65); }
.image-grid { gap: 22px; }
.image-card {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: #222c28;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.image-card:hover { transform: translateY(-6px); border-color: rgba(199,255,74,0.7); box-shadow: 0 24px 60px rgba(0,0,0,0.25); }
.image-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.image-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #303b36; }
.image-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.image-card:hover .image-card__media img { transform: scale(1.035); }
.image-card__content { display: grid; gap: 14px; padding: clamp(24px, 4vw, 38px); }
.image-card__title { font-size: clamp(1.45rem, 2.5vw, 2.25rem); font-weight: 800; letter-spacing: -0.04em; }
.image-card__body { color: rgba(255,255,255,0.68); line-height: 1.65; white-space: pre-line; }
.image-card__cta { margin-top: 8px; color: var(--accent); font-weight: 800; }

.contact-page { min-height: calc(100vh - 76px); }
.contact-hero { padding: clamp(80px, 10vw, 150px) clamp(20px, 7vw, 110px) clamp(55px, 7vw, 90px); background: #18201d; color: #fff; }
.contact-hero > div { width: min(850px, 100%); }
.contact-hero h1 { max-width: 12ch; margin: 0 0 24px; font-size: clamp(3rem, 7vw, 7rem); line-height: 0.95; letter-spacing: -0.06em; }
.contact-hero p:not(.eyebrow) { max-width: 62ch; margin: 0; color: rgba(255,255,255,0.72); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.75; }
.contact-section { display: grid; grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.7fr); gap: clamp(35px, 7vw, 100px); padding: clamp(70px, 9vw, 125px) clamp(20px, 7vw, 110px); }
.contact-details { display: grid; align-content: start; gap: 28px; }
.contact-details > div { display: grid; gap: 8px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.contact-details span { color: var(--muted); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-details a { width: fit-content; font-size: 1.05rem; font-weight: 750; text-decoration: none; overflow-wrap: anywhere; }
.contact-details p { margin: 0; line-height: 1.65; }
.contact-form { display: grid; gap: 20px; padding: clamp(26px, 5vw, 52px); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 9px; font-weight: 750; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 15px; border: 1px solid var(--border); border-radius: 13px; background: #fbfcfa; color: var(--ink); outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #7f8d85; box-shadow: 0 0 0 3px rgba(28,37,33,.08); }
.contact-form textarea { resize: vertical; }
.contact-submit { width: fit-content; min-width: 180px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { padding: 14px 16px; border-radius: 12px; line-height: 1.5; }
.form-status--success { background: #e2f5e8; color: #176b3a; }
.form-status--error { background: #fbe8e8; color: #a12828; }

.site-footer { display: grid; gap: 14px; padding: 54px clamp(20px, 6vw, 92px); background: #0e1411; color: rgba(255,255,255,0.72); }
.site-footer strong { color: #fff; font-size: 1.3rem; }
.site-footer p { margin: 0; }
.site-footer a { width: fit-content; color: var(--accent); }
.status-screen { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 30px; }
.loader { width: 42px; height: 42px; margin: 0 auto 16px; border: 4px solid rgba(24,32,29,0.15); border-top-color: #18201d; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1024px) {
  .responsive-grid { grid-template-columns: repeat(var(--cols-tablet, 2), minmax(0, 1fr)); }
  .responsive-order-item { order: var(--order-tablet, 0); }
  .contact-section { grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.5fr); }
}

@media (max-width: 760px) {
  .site-header nav { display: flex; gap: 14px; }
  .site-header nav a { font-size: 0.86rem; }
  .site-header nav a:not(:last-child) { display: none; }
  .hero { min-height: 700px; }
  .hero__overlay { background: linear-gradient(0deg, rgba(10,15,13,0.9), rgba(10,15,13,0.2)); }
  .responsive-grid { grid-template-columns: repeat(var(--cols-mobile, 1), minmax(0, 1fr)); }
  .responsive-order-item { order: var(--order-mobile, 0); }
  .text-card { min-height: 240px; }
  .contact-section { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-submit { width: 100%; }
}

/* V3.2 unified responsive content flow */
.content-flow {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
  padding: clamp(70px, 9vw, 130px) clamp(20px, 6vw, 92px);
}
.flow-heading {
  grid-column: 1 / -1;
  max-width: none;
  margin: 0;
  padding: clamp(34px, 5vw, 72px);
  border-radius: var(--radius);
  scroll-margin-top: 100px;
}
.flow-heading--text {
  border: 1px solid var(--border);
  background: var(--surface-soft);
}
.flow-heading--image {
  color: #fff;
  background: #18201d;
}
.flow-heading--image > p:last-child { color: rgba(255, 255, 255, 0.65); }
.flow-card { min-width: 0; height: 100%; }
.text-card { scroll-margin-top: 100px; }
.flow-card--image { position: relative; scroll-margin-top: 100px; }
.section-anchor { position: absolute; top: -100px; left: 0; width: 1px; height: 1px; pointer-events: none; }
.flow-card--image:target .image-card { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(199, 255, 74, 0.24), 0 24px 60px rgba(0,0,0,0.25); }
.flow-card--image > .image-card-form,
.flow-card--image .image-card { height: 100%; }
.image-card-form { display: block; height: 100%; margin: 0; }

@media (max-width: 760px) {
  .content-flow { gap: 16px; }
  .flow-heading { padding: 30px 24px; }
}

/* V4 performance: avoid the mobile sticky-header blur rendering cost. */
@media (max-width: 760px) {
  .site-header {
    background: rgba(244, 245, 241, 0.98);
    backdrop-filter: none;
  }
}
