/* ============================================================
   EVOLOGIC — Programme Architecture Studio
   Design system: McKinsey/BCG climate hybrid
   Tone: calm authority, institutional trust, field credibility
   1440px canvas · 1200px content · 120px margins · 8pt grid
   ============================================================ */

:root {
  /* Brand palette — logo matched */
  --ocean:       #1A4F63;
  --ocean-mid:   #2E7A9A;
  --ocean-light: #EBF5FA;
  --teal:        #2A9D7C;
  --green:       #72C142;   /* CTA accent / Pacific Green */

  /* Neutral */
  --ink:         #111111;
  --ink-2:       #444444;
  --ink-3:       #666666;
  --border:      #EAEAEA;
  --mist:        #F7F7F7;   /* secondary bg */
  --white:       #FFFFFF;
  --navy:        #0F172A;   /* trust flow bg */
  --black:       #0A0A0A;   /* footer */

  /* 8pt spacing */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  48px;
  --sp-6:  64px;
  --sp-7:  96px;
  --sp-8:  120px;
  --sp-9:  160px;

  /* Layout */
  --max:     1200px;
  --margin:  120px;
  --r:       6px;
  --r-lg:    10px;
  --r-xl:    12px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
p    { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }

/* ── LAYOUT ── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--margin);
}

/* ── TYPE ── */
.h1  { font-size: clamp(2.2rem, 4.5vw, 4rem);   font-weight: 700; line-height: 1.1;  letter-spacing: -0.02em; }
.h2  { font-size: clamp(1.6rem, 2.8vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.h3  { font-size: clamp(1.1rem, 1.6vw, 1.5rem); font-weight: 600; line-height: 1.25; }
.body-lg { font-size: 1.125rem; line-height: 1.75; color: var(--ink-2); }
.body    { font-size: 1rem;     line-height: 1.7;  color: var(--ink-3); }
.label   { font-size: 0.75rem;  font-weight: 600;  letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.small   { font-size: 0.875rem; color: var(--ink-3); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 28px;
  font-family: inherit; font-size: 0.9375rem; font-weight: 500;
  border-radius: var(--r); border: none; cursor: pointer;
  transition: all 0.18s ease; white-space: nowrap;
}
.btn-primary   { background: var(--ocean); color: #fff; width: 220px; }
.btn-primary:hover { background: var(--ocean-mid); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); width: 220px; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-outline   { background: transparent; color: var(--ocean); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--ocean); background: var(--ocean-light); }
.btn-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 0.875rem; font-weight: 500; color: var(--ink-3);
  padding: 8px 14px; border-radius: var(--r); transition: all 0.12s;
}
.nav a:hover  { color: var(--ink); background: var(--mist); }
.nav a.active { color: var(--ocean); background: var(--ocean-light); font-weight: 600; }
.nav-cta { margin-left: var(--sp-2); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; border-radius: 1px; }

/* ── HERO (Frame 1 · 1440×900 · full-screen bg) ── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #070e1a 0%, #0F172A 40%, #1A4F63 100%);
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.32; mix-blend-mode: luminosity;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(7,14,26,0.88) 0%, rgba(7,14,26,0.55) 55%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 720px;
  padding: var(--sp-9) 0;
}
.hero-content h1 { color: #fff; margin-bottom: var(--sp-3); }
.hero-content .body-lg { color: rgba(255,255,255,0.78); margin-bottom: var(--sp-3); max-width: 600px; }
.hero-support { font-size: 0.875rem; color: rgba(255,255,255,0.45); letter-spacing: 0.02em; margin-bottom: var(--sp-5); }
.hero-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-placeholder span {
  font-size: 0.8rem; color: rgba(255,255,255,0.2);
  border: 1px dashed rgba(255,255,255,0.15);
  padding: 8px 18px; border-radius: var(--r);
}

/* ── FRAME 2 · REALITY CONTEXT · bg:#F7F7F7 · 2×2 cards ── */
.reality { padding: var(--sp-8) 0; background: var(--mist); }
.reality h2 { max-width: 800px; margin-bottom: var(--sp-3); }
.reality-intro { max-width: 700px; margin-bottom: var(--sp-6); }
.reality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.r-card {
  background: var(--white); border-radius: var(--r-lg); padding: var(--sp-4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}
.r-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.09); transform: translateY(-2px); }
.r-icon { font-size: 1.5rem; margin-bottom: var(--sp-2); }
.r-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--sp-2); }
.r-card p  { font-size: 1rem; color: var(--ink-3); line-height: 1.65; max-width: 420px; margin: 0; }

/* ── FRAME 3 · CAPABILITY · white · 4-card row ── */
.capability { padding: var(--sp-8) 0; background: var(--white); }
.capability h2 { text-align: center; max-width: 900px; margin: 0 auto var(--sp-3); }
.capability-intro { text-align: center; max-width: 680px; margin: 0 auto var(--sp-6); color: var(--ink-2); font-size: 1.0625rem; line-height: 1.75; }
.cap-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.c-card {
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.c-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.c-icon { font-size: 2rem; margin-bottom: var(--sp-2); }
.c-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--sp-2); }
.c-card p  { font-size: 1rem; color: var(--ink-3); line-height: 1.65; margin: 0; }

/* ── FRAME 4 · TRUST FLOW · bg:#0F172A · horizontal nodes ── */
.trust { padding: var(--sp-8) 0; background: var(--navy); }
.trust h2 { color: #fff; text-align: center; margin-bottom: var(--sp-7); }
.trust-flow {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0; margin-bottom: var(--sp-6); overflow-x: auto; padding: 0 var(--sp-3);
}
.t-node { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); flex-shrink: 0; width: 120px; }
.t-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff;
}
.t-label { font-size: 0.72rem; font-weight: 500; color: rgba(255,255,255,0.6); text-align: center; line-height: 1.4; }
.t-line {
  width: 60px; height: 2px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0; align-self: flex-start; margin-top: 23px;
}
.trust-caption {
  text-align: center; max-width: 800px; margin: 0 auto;
  font-style: italic; color: rgba(255,255,255,0.55);
  font-size: 1.0625rem; line-height: 1.75;
}

/* ── FRAME 5 · EXPERIENCE · white · 3 large tiles ── */
.experience { padding: var(--sp-8) 0; background: var(--white); }
.experience h2 { margin-bottom: var(--sp-6); }
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.e-card {
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s; cursor: default;
}
.e-card:hover { transform: scale(1.02); box-shadow: 0 16px 48px rgba(0,0,0,0.1); }
.e-image {
  height: 240px; overflow: hidden;
  background: linear-gradient(135deg, var(--ocean), var(--teal));
  position: relative;
}
.e-image img { width: 100%; height: 100%; object-fit: cover; }
.e-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.e-body { padding: var(--sp-4); min-height: 180px; }
.e-body h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--sp-2); }
.e-body p  { font-size: 1rem; color: var(--ink-3); line-height: 1.65; margin: 0; }

/* ── FRAME 6 · MAP · bg:#F7F7F7 · left panel + map ── */
.map-section { padding: var(--sp-8) 0; background: var(--mist); }
.map-layout { display: grid; grid-template-columns: 400px 1fr; gap: var(--sp-6); align-items: center; }
.map-left h2 { margin-bottom: var(--sp-3); }
.map-left p  { color: var(--ink-3); line-height: 1.75; margin-bottom: var(--sp-2); }
.map-box {
  height: 500px; border-radius: var(--r-xl);
  overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  background: linear-gradient(135deg, #0F172A, #1A4F63);
  position: relative;
}
.map-box img { width: 100%; height: 100%; object-fit: cover; }
.map-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(114,193,66,0.55) 2px, transparent 2px);
  background-size: 72px 72px; opacity: 0.45;
}
.map-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.map-empty span {
  font-size: 0.8rem; color: rgba(255,255,255,0.25);
  border: 1px dashed rgba(255,255,255,0.18);
  padding: 8px 16px; border-radius: var(--r);
}

/* ── FRAME 7 · INSIGHTS · white · 3 cards ── */
.insights-section { padding: var(--sp-8) 0; background: var(--white); }
.insights-section h2 { margin-bottom: var(--sp-6); }
.ins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.ins-card { border-bottom: 2px solid var(--ocean); padding-bottom: var(--sp-4); }
.ins-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal);
  margin-bottom: var(--sp-2);
}
.ins-card h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.35; margin-bottom: var(--sp-2); }
.ins-card p  { font-size: 0.9375rem; color: var(--ink-3); line-height: 1.65; margin: 0; }

/* ── FRAME 8 · FOOTER · bg:#0A0A0A · 3 columns ── */
.site-footer { background: var(--black); padding: var(--sp-7) 0 var(--sp-4); }
.footer-cols {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-6); padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.f-logo { height: 28px; filter: brightness(0) invert(1); opacity: 0.75; margin-bottom: var(--sp-3); }
.f-statement { font-size: 0.9375rem; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 280px; }
.f-col h4 {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: var(--sp-3);
}
.f-col a {
  display: block; font-size: 0.9375rem;
  color: rgba(255,255,255,0.45); padding: 4px 0;
  transition: color 0.12s;
}
.f-col a:hover { color: rgba(255,255,255,0.85); }
.f-col p { font-size: 0.9375rem; color: rgba(255,255,255,0.4); line-height: 1.75; margin: 0; }
.f-col a.email { color: rgba(255,255,255,0.5); }
.footer-line { padding-top: var(--sp-4); text-align: center; font-size: 0.875rem; color: rgba(255,255,255,0.22); }

/* ── PAGE HERO (inner pages) ── */
.page-hero { padding: var(--sp-8) 0 var(--sp-7); background: var(--white); border-bottom: 1px solid var(--border); }
.page-hero .label { margin-bottom: var(--sp-2); display: block; }
.page-hero h1 { max-width: 900px; margin-bottom: var(--sp-3); }
.page-hero .body-lg { max-width: 660px; }
/* About: centered, taller */
.page-hero-center { text-align: center; padding: var(--sp-9) 0 var(--sp-8); }
.page-hero-center h1 { margin: var(--sp-3) auto; }
.page-hero-center .body-lg { max-width: 680px; margin: 0 auto; }

/* ── ABOUT SECTIONS ── */
.about-sec { padding: var(--sp-8) 0; }
.about-sec + .about-sec { border-top: 1px solid var(--border); }
.about-sec.alt { background: var(--mist); }
.about-sec h2 { max-width: 800px; margin-bottom: var(--sp-5); }
.about-body { max-width: 800px; font-size: 1.0625rem; color: var(--ink-2); line-height: 1.8; }
.think-list { max-width: 800px; margin-top: var(--sp-4); }
.think-item {
  display: grid; grid-template-columns: 48px 1fr; gap: var(--sp-3);
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.think-num { font-size: 0.875rem; font-weight: 600; color: var(--teal); }
.think-text { font-size: 1.0625rem; color: var(--ink-2); line-height: 1.65; }
.closing-quote {
  max-width: 760px;
  font-size: 1.25rem; color: var(--ink-2); line-height: 1.75;
  font-style: italic;
}

/* ── OPERATING ENVIRONMENT PAGE · analytical style ── */
.env-sec { border-bottom: 1px solid var(--border); }
.env-sec:nth-child(even) { background: var(--mist); }
.env-inner {
  display: grid; grid-template-columns: 320px 1fr;
  gap: var(--sp-7); align-items: start;
  padding: var(--sp-6) 0; min-height: 200px;
}
.env-title { font-size: 1.75rem; font-weight: 700; }
.env-body  { font-size: 1.0625rem; color: var(--ink-2); line-height: 1.8; max-width: 640px; }
.env-close { padding: var(--sp-8) 0; background: var(--navy); }
.env-close p { max-width: 800px; font-size: 1.25rem; color: rgba(255,255,255,0.65); line-height: 1.75; font-style: italic; margin: 0; }

/* ── PROGRAMME EXPERIENCE PAGE ── */
.prog-filter {
  padding: var(--sp-4) 0; border-bottom: 1px solid var(--border);
  display: flex; gap: var(--sp-2); flex-wrap: wrap;
}
.f-btn {
  padding: 8px 20px; border-radius: 20px; border: 1px solid var(--border);
  background: none; font-family: inherit; font-size: 0.875rem;
  font-weight: 500; color: var(--ink-3); cursor: pointer; transition: all 0.15s;
}
.f-btn:hover, .f-btn.on { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); padding: var(--sp-6) 0; }
.p-card {
  border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden;
  transition: box-shadow 0.2s;
}
.p-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.p-image {
  height: 200px; overflow: hidden;
  background: linear-gradient(135deg, var(--ocean), var(--teal));
  position: relative;
}
.p-image img { width: 100%; height: 100%; object-fit: cover; }
.p-ph { width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:2.5rem; }
.p-cat {
  position: absolute; top: 16px; left: 16px;
  background: rgba(0,0,0,0.4); color: #fff;
  font-size: 0.72rem; font-weight: 600; padding: 4px 10px;
  border-radius: 20px; letter-spacing: 0.06em; text-transform: uppercase;
}
.p-body { padding: var(--sp-4); }
.p-body h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: var(--sp-3); }
.p-field { margin-bottom: var(--sp-2); }
.p-lbl { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 3px; }
.p-val { font-size: 0.875rem; color: var(--ink-3); line-height: 1.6; }

/* ── CONTACT PAGE ── */
.contact-wrap { display: grid; grid-template-columns: 1fr 480px; gap: var(--sp-7); padding: var(--sp-8) 0; }
.cf h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--sp-4); }
.cf .body { margin-bottom: var(--sp-5); }
.field { margin-bottom: var(--sp-3); }
.field label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--ink-2); margin-bottom: var(--sp-1); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--r);
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ocean); }
.field textarea { min-height: 140px; resize: vertical; }
.contact-aside {
  padding: var(--sp-5); background: var(--mist);
  border-radius: var(--r-xl); border: 1px solid var(--border);
  align-self: start; position: sticky; top: 88px;
}
.ca h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: var(--sp-4); }
.ca-row { padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); }
.ca-row:last-child { border-bottom: none; }
.ca-lbl { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; display: block; }
.ca-val { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.6; }

/* ── DETAIL TABLE (about reg) ── */
.det-table { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; max-width: 560px; margin-top: var(--sp-4); }
.det-row { display: grid; grid-template-columns: 180px 1fr; border-bottom: 1px solid var(--border); }
.det-row:last-child { border-bottom: none; }
.det-lbl { padding: 14px 16px; background: var(--mist); font-size: 0.78rem; font-weight: 600; color: var(--ocean); text-transform: uppercase; letter-spacing: 0.06em; }
.det-val { padding: 14px 16px; font-size: 0.9375rem; color: var(--ink-2); }

/* ── CTA BAND ── */
.cta-band { padding: var(--sp-8) 0; background: var(--navy); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap; }
.cta-inner h2 { color: #fff; max-width: 500px; }

/* ── THANK YOU ── */
.ty-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.ty-box { text-align: center; max-width: 600px; padding: var(--sp-8) var(--sp-4); }
.ty-check { width: 56px; height: 56px; border-radius: 50%; background: rgba(114,193,66,0.15); border: 2px solid rgba(114,193,66,0.35); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--sp-4); font-size: 1.4rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1280px) { .wrap { padding: 0 48px; } }
@media (max-width: 1024px) {
  .cap-row  { grid-template-columns: repeat(2,1fr); }
  .exp-grid { grid-template-columns: repeat(2,1fr); }
  .ins-grid { grid-template-columns: repeat(2,1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .map-box { height: 360px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .prog-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .wrap { padding: 0 24px; }
  :root { --margin: 24px; }
  .reality-grid { grid-template-columns: 1fr; }
  .cap-row      { grid-template-columns: 1fr; }
  .exp-grid     { grid-template-columns: 1fr; }
  .ins-grid     { grid-template-columns: 1fr; }
  .footer-cols  { grid-template-columns: 1fr; }
  .prog-grid    { grid-template-columns: 1fr; }
  .env-inner    { grid-template-columns: 1fr; }
  .trust-flow   { justify-content: flex-start; }
  .t-line       { width: 32px; }
  .nav {
    display: none; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: var(--sp-2);
  }
  .nav.open { display: flex; }
  .nav-cta  { margin-left: 0; }
  .nav-toggle { display: flex; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   MOBILE GRID OVERRIDES
   Inline grids moved to named classes for responsive control
   ============================================================ */

/* Thumbnail nav — 3 cols → 1 col */
.grid-3col { display:grid; grid-template-columns:repeat(3,1fr); gap:var(--sp-4); }

/* Story/article 2-col layout → 1 col */
.grid-2col-story { display:grid; grid-template-columns:1fr 1fr; gap:var(--sp-7); align-items:start; }

/* Insights article body+photo → 1 col */
.grid-article      { display:grid; grid-template-columns:360px 1fr; gap:var(--sp-6); align-items:start; }
.grid-article-solo { display:grid; grid-template-columns:1fr; gap:var(--sp-6); align-items:start; }

/* Services 2-col → 1 col */
.grid-2col-svc { display:grid; grid-template-columns:repeat(2,1fr); gap:var(--sp-4); }

/* About What We Deliver 2-col → 1 col */
.grid-2col-deliver { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; max-width:820px; }

@media (max-width: 768px) {
  .grid-3col         { grid-template-columns: 1fr; }
  .grid-2col-story   { grid-template-columns: 1fr; gap:var(--sp-5); }
  .grid-article      { grid-template-columns: 1fr; }
  .grid-article-solo { grid-template-columns: 1fr; }
  .grid-2col-svc     { grid-template-columns: 1fr; }
  .grid-2col-deliver { grid-template-columns: 1fr; }

  /* Hero — stack on mobile */
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 48px 24px; }
  .hero-right { display: none; }

  /* Trust flow — scroll horizontally */
  .trust-flow { overflow-x: auto; padding-bottom: 12px; }

  /* Footer */
  .footer-cols { grid-template-columns: 1fr; }

  /* Env page */
  .env-inner { grid-template-columns: 1fr; }

  /* CTA band */
  .cta-inner { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .cta-inner .btn { width: 100%; }

  /* Contact */
  .contact-wrap { grid-template-columns: 1fr; padding: 48px 0; }
  .aside { position: static; }

  /* Page hero */
  .page-hero { padding: 48px 0 36px; }

  /* About sections */
  .about-grid { grid-template-columns: 1fr; }

  /* Buttons full width on mobile */
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; justify-content: center; }

  /* Typography scale down */
  .h1 { font-size: 2rem; }
  .h2 { font-size: 1.5rem; }


  /* Section padding reduce */
  .about-sec { padding: 48px 0; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .h1 { font-size: 1.75rem; }
  .h2 { font-size: 1.375rem; }
  .hero-left { padding: 36px 16px; }
  .trust-flow { gap: 0; }
  .t-line { width: 20px; }
}

/* ============================================================
   CAPABILITY / DELIVERY STORIES / INSIGHTS — MOBILE ALIGNMENT
   ============================================================ */

/* Capability cards — inner padding and chips on small screens */
@media (max-width: 768px) {
  /* Capability card inner padding tighter */
  .grid-2col-svc > div {
    padding: var(--sp-4) !important;
  }

  /* Thumbnail cards — single column with horizontal scroll hint removed */
  .grid-3col > a,
  .grid-3col > div {
    border-radius: var(--r-lg);
  }

  /* Thumbnail strip — add subtle scroll hint on mobile */
  .thumb-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: var(--sp-4);
    padding-bottom: var(--sp-2);
  }
  .thumb-strip > a {
    flex: 0 0 80vw;
    scroll-snap-align: start;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    text-decoration: none;
    display: block;
  }

  /* Story sections — photo above text on mobile */
  .grid-2col-story {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  /* Force photo column to appear first on mobile */
  .story-photo { order: -1; }
  .story-fields { order: 1; padding-top: 0 !important; }

  /* Insights article — photo above body on mobile */
  .grid-article {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  /* Photo moves above text */

}

@media (max-width: 480px) {
  /* Capability card chips wrap better */
  .grid-2col-svc > div > div {
    gap: 6px;
  }
  /* Thumbnail image height reduce */
  .thumb-img { height: 150px !important; }
}

/* Show/hide utilities for desktop vs mobile thumbnail layouts */
.hide-mobile { display: grid; }
.show-mobile { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: flex !important; }

  /* Story sections — photo order fix */
  .story-photo { order: -1; }
  .story-fields { order: 1; }

  /* Insights — photo above body */

  /* Capability card padding on mobile */
  .grid-2col-svc > div {
    padding: var(--sp-4) !important;
  }
}

/* ============================================================
   INSIGHTS PHOTO — DESKTOP STICKY, MOBILE ABOVE TEXT
   ============================================================ */

/* Desktop: photo column sticky beside article body */
.ins-photo-sticky {
  position: sticky;
  top: 96px;
}

/* Mobile: remove sticky, move photo above body text */
@media (max-width: 768px) {
  .ins-photo-sticky {
    position: static;
    order: -1;
    margin-bottom: var(--sp-4);
  }
  .ins-photo-sticky > div {
    height: 240px !important;
  }
  .ins-body-col {
    order: 1;
  }
  /* Ensure grid-article stacks vertically on mobile */
  .grid-article {
    display: flex;
    flex-direction: column;
  }
}
