/* ==========================================================================
   GRIDLINE INFRAWORKS — Design System
   Brand palette: #FCFEFE off-white · #0B377A deep blue · #BB4F35 terracotta · #3C4142 charcoal
   ========================================================================== */

:root {
  /* Brand */
  --blue: #0B377A;
  --blue-700: #0a2f68;
  --blue-600: #0f4391;
  --blue-100: #e7eef8;
  --blue-50: #f1f6fc;
  --terra: #BB4F35;
  --terra-600: #a8462e;
  --terra-100: #f7e8e2;
  --charcoal: #3C4142;
  --ink: #2a2f31;

  /* Light surfaces */
  --paper: #FCFEFE;
  --bg: #f6f8fb;
  --bg-2: #eef2f7;
  --card: #ffffff;
  --line: #e6ebf2;
  --line-2: #d9e1ec;

  /* Text */
  --text: #2a2f31;
  --muted: #5f6b76;
  --muted-2: #8a96a3;
  --on-blue: #eaf1fb;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(16, 32, 64, .06), 0 2px 6px rgba(16, 32, 64, .05);
  --shadow: 0 8px 24px rgba(16, 32, 64, .08);
  --shadow-lg: 0 24px 60px rgba(16, 32, 64, .14);
  --shadow-blue: 0 18px 44px rgba(11, 55, 122, .22);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --container: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; color: var(--ink); letter-spacing: -.02em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* Layout ------------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section--tight { padding: clamp(40px, 5vw, 72px) 0; }
.bg-soft { background: var(--bg); }
.bg-soft-2 { background: linear-gradient(180deg, var(--paper), var(--bg)); }
.bg-blue { background: var(--blue); color: var(--on-blue); }
.bg-paper { background: var(--paper); }

/* Typography helpers ------------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terra);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--terra); border-radius: 2px; }
.bg-blue .eyebrow { color: #f0b9a8; }
.bg-blue .eyebrow::before { background: #f0b9a8; }

.h-display { font-size: clamp(2.1rem, 5.4vw, 4rem); }
.h-1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.h-2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--muted); }
.bg-blue .lead, .bg-blue p { color: #cdddf2; }
.text-muted { color: var(--muted); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 14px; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 15px 28px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap; cursor: pointer; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--terra); color: #fff; box-shadow: 0 10px 24px rgba(187, 79, 53, .3); }
.btn--primary:hover { background: var(--terra-600); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(187, 79, 53, .38); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn--blue:hover { background: var(--blue-600); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--blue); border: 1.5px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--blue); background: var(--blue-50); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--blue); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn--lg { padding: 17px 34px; font-size: 16px; }
.btn--block { width: 100%; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 16px 0;
}
.site-header.scrolled {
  background: rgba(252, 254, 254, .9);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-lockup { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-lockup .logo-img { height: 46px; width: auto; display: block; }
.brand-lockup img.logo-on-dark { display: none; }

/* nav over a dark hero (top of home page) */
.site-header:not(.scrolled).over-hero .brand-lockup img.logo-on-light { display: none; }
.site-header:not(.scrolled).over-hero .brand-lockup img.logo-on-dark { display: block; }
.site-header:not(.scrolled).over-hero .main-nav a { color: var(--on-blue); }
.site-header:not(.scrolled).over-hero .main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .15); }
.site-header:not(.scrolled).over-hero .main-nav a.active { color: #fff; }
.site-header:not(.scrolled).over-hero .logo-svg .lg-mark { fill: #fff; }
.site-header:not(.scrolled).over-hero .nav-toggle span { background: #fff; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--charcoal); padding: 9px 15px; border-radius: 999px;
  position: relative; transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--blue); background: var(--blue-50); }
.main-nav a.active { color: var(--blue); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--terra);
}
.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-family: var(--font-head); font-size: 14px; color: var(--charcoal); }
.header-phone svg { width: 17px; height: 17px; color: var(--terra); }
.site-header:not(.scrolled).over-hero .header-phone { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; height: 24px; justify-content: center; }
.nav-toggle span { display: block; height: 2.5px; width: 100%; background: var(--charcoal); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 31, 67, .92) 0%, rgba(11, 55, 122, .82) 42%, rgba(11, 55, 122, .28) 100%),
    linear-gradient(180deg, rgba(8,24,52,.5), rgba(8,24,52,.2));
}
.hero-inner { position: relative; z-index: 2; padding: 140px 0 90px; max-width: 760px; }
.hero .eyebrow { color: #f0b9a8; }
.hero .eyebrow::before { background: #f0b9a8; }
.hero h1 { color: #fff; margin: 18px 0 22px; }
.hero p { color: #dbe6f5; font-size: clamp(1.05rem, 1.7vw, 1.28rem); max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stat {
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px); padding: 16px 22px; border-radius: 14px; min-width: 130px;
}
.hero-stat b { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: #fff; }
.hero-stat span { font-size: 13px; color: #c6d6ec; }
/* Hero floating icon chips (right side) */
.hero-floaters { position: absolute; z-index: 2; top: 0; bottom: 0; right: max(20px, 4vw); width: 42%; max-width: 560px; pointer-events: none; }
.hero-orb { position: absolute; top: 50%; right: 8%; transform: translateY(-50%); width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(187,79,53,.32), rgba(11,55,122,.05) 62%, transparent 70%);
  filter: blur(6px); animation: orbPulse 7s ease-in-out infinite; }
/* Highlighted logo emblem in the hero */
.hero-emblem { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 280px; height: 280px; display: grid; place-items: center; }
.emblem-glow { position: absolute; inset: -8%; border-radius: 50%; background: radial-gradient(circle, rgba(31, 84, 160, .55), rgba(11, 55, 122, 0) 68%); filter: blur(4px); animation: orbPulse 7s ease-in-out infinite; }
.emblem-ring { display: none; }
.emblem-mark { position: relative; z-index: 1; width: 150px; height: auto; filter: drop-shadow(0 12px 30px rgba(8, 24, 52, .55)); }
@keyframes emblemFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .emblem-ring, .emblem-mark, .emblem-glow { animation: none; } }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px); padding: 13px 18px 13px 13px; border-radius: 15px;
  box-shadow: 0 20px 44px rgba(8, 24, 52, .3); animation: floatY 6s ease-in-out infinite;
  will-change: transform;
}
.float-chip .fc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.float-chip .fc-ico svg { width: 22px; height: 22px; }
.float-chip b { color: #fff; font-family: var(--font-head); font-size: 15px; display: block; line-height: 1.15; }
.float-chip > span > span { color: #cdddf2; font-size: 12px; }
.float-chip.fc-1 { top: 7%; right: 4%; animation-delay: 0s; }
.float-chip.fc-2 { top: 19%; right: 42%; animation-delay: -1.5s; }
.float-chip.fc-3 { top: 73%; right: 40%; animation-delay: -3s; }
.float-chip.fc-4 { top: 85%; right: 2%; animation-delay: -4.5s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes orbPulse { 0%, 100% { transform: translateY(-50%) scale(1); opacity: .9; } 50% { transform: translateY(-50%) scale(1.12); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .float-chip, .hero-orb { animation: none; } }
@media (max-width: 980px) { .hero-floaters { display: none; } }

.hero-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.7); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.hero-scroll .mouse { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.5); border-radius: 12px; position: relative; }
.hero-scroll .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; border-radius: 2px; background: #fff; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 10px); } }

/* Cards & grids ----------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.card .ico {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); margin-bottom: 20px; transition: background .3s, color .3s;
}
.card .ico svg { width: 27px; height: 27px; }
.card:hover .ico { background: var(--blue); color: #fff; }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

/* feature list inside cards */
.feature-list { margin-top: 16px; display: grid; gap: 9px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--charcoal); }
.feature-list li svg { width: 18px; height: 18px; color: var(--terra); flex-shrink: 0; margin-top: 3px; }

/* Stats band -------------------------------------------------------------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-cell { text-align: center; padding: 14px 18px; position: relative; }
.stat-cell:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 18%; height: 64%; width: 1px; background: rgba(255,255,255,.18); }
.stat-cell b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: #fff; line-height: 1; }
.stat-cell span { font-size: .92rem; color: #bcd0ec; margin-top: 8px; display: block; }

/* Process / steps --------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px 28px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step .step-num {
  counter-increment: step; position: absolute; top: 22px; right: 24px;
  font-family: var(--font-head); font-weight: 800; font-size: 42px; color: var(--bg-2); line-height: 1;
}
.step .step-num::before { content: "0" counter(step); }
.step .ico { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: var(--terra-100); color: var(--terra); margin-bottom: 18px; }
.step .ico svg { width: 25px; height: 25px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* Split / about ----------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; object-fit: cover; }
.split-media .badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px 22px;
  display: flex; align-items: center; gap: 14px; border: 1px solid var(--line);
}
.split-media .badge .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.split-media .badge b { font-family: var(--font-head); font-size: 1.5rem; color: var(--blue); display: block; line-height: 1; }
.split-media .badge span { font-size: .8rem; color: var(--muted); }
.check-list { display: grid; gap: 14px; margin: 26px 0; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; }
.check-list li .tick { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-top: 2px; }
.check-list li .tick svg { width: 15px; height: 15px; }
.check-list li span { color: var(--charcoal); }

/* Projects ---------------------------------------------------------------- */
.proj-card {
  display: block; position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--card); transition: transform .35s var(--ease), box-shadow .35s;
  height: 100%;
}
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.proj-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.proj-card:hover .proj-media img { transform: scale(1.07); }
.proj-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 24, 52, .78)); }
.proj-cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(252,254,254,.94); color: var(--blue); font-family: var(--font-head);
  font-weight: 700; font-size: 12px; padding: 6px 13px; border-radius: 999px;
}
.proj-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; color: #fff; }
.proj-info h3 { color: #fff; font-size: 1.25rem; margin-bottom: 5px; }
.proj-info .meta { display: flex; align-items: center; gap: 7px; color: #d6e2f2; font-size: .88rem; }
.proj-info .meta svg { width: 15px; height: 15px; }
.proj-arrow { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(252,254,254,.94); color: var(--blue); display: grid; place-items: center; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; }
.proj-card:hover .proj-arrow { opacity: 1; transform: translateY(0); }

/* Filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-chip {
  font-family: var(--font-head); font-weight: 600; font-size: 14px; padding: 9px 20px;
  border-radius: 999px; border: 1.5px solid var(--line-2); color: var(--charcoal);
  background: #fff; transition: all .2s;
}
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Slider (home projects) */
.slider { position: relative; }
.slider-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 24px; scroll-behavior: smooth; scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; flex: 0 0 clamp(280px, 32%, 380px); }
.slider-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.slider-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; color: var(--blue); display: grid; place-items: center; transition: all .2s; }
.slider-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-2px); }
.slider-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; background: #fff; color: var(--blue); }

/* Project detail ---------------------------------------------------------- */
.detail-hero { padding-top: 130px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; }
.detail-meta .m { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .96rem; }
.detail-meta .m svg { width: 18px; height: 18px; color: var(--terra); }
.detail-meta .m b { color: var(--ink); font-family: var(--font-head); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(150px, 20vw, 235px); gap: 16px; }
.gallery a { border-radius: var(--radius); overflow: hidden; display: block; box-shadow: var(--shadow-sm); position: relative; }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }
/* every tile spans full rows so images fill their cell with no empty space */
.gallery a.g-lg { grid-column: span 8; grid-row: span 2; }
.gallery a.g-sm { grid-column: span 4; grid-row: span 2; }
.gallery a.g-half { grid-column: span 6; grid-row: span 2; }
.gallery a.g-full { grid-column: span 12; grid-row: span 2; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 18, 38, .92); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; color: #fff; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; transition: background .2s; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev svg, .lightbox-next svg, .lightbox-close svg { width: 24px; height: 24px; }

/* Testimonials ------------------------------------------------------------ */
.testi-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px; scrollbar-width: none; scroll-behavior: smooth; }
.testi-track::-webkit-scrollbar { display: none; }
.testi-card { scroll-snap-align: center; flex: 0 0 min(440px, 86%); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); position: relative; }
.testi-card .quote-mark { font-family: Georgia, serif; font-size: 80px; line-height: .6; color: var(--blue-100); position: absolute; top: 26px; right: 30px; }
.testi-stars { display: flex; gap: 3px; color: #f0a800; margin-bottom: 16px; }
.testi-stars svg { width: 18px; height: 18px; }
.testi-card blockquote { font-size: 1.08rem; color: var(--charcoal); line-height: 1.6; margin-bottom: 24px; position: relative; z-index: 1; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.testi-author b { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--ink); }
.testi-author span { font-size: .86rem; color: var(--muted); }

/* Happy Clients ----------------------------------------------------------- */
.happy-slider { position: relative; }
.happy-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px; scrollbar-width: none; scroll-behavior: smooth; }
.happy-track::-webkit-scrollbar { display: none; }
.happy-card {
  scroll-snap-align: start; flex: 0 0 calc(50% - 12px); box-sizing: border-box;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 34px 30px; box-shadow: var(--shadow-sm);
}
.happy-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.happy-avatar { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; border: 3px solid var(--blue-50); flex-shrink: 0; }
.happy-avatar.initials { background: linear-gradient(135deg, var(--blue), var(--blue-600)); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.happy-stars { display: flex; gap: 3px; color: #f0a800; }
.happy-stars svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.happy-quote { font-style: italic; color: var(--muted); line-height: 1.75; margin-bottom: 22px; }
.happy-meta b { display: block; font-family: var(--font-head); font-style: italic; color: var(--ink); font-size: 1.06rem; }
.happy-meta span { color: var(--muted); font-size: .9rem; font-style: italic; }
.slider-dots { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); transition: all .25s var(--ease); padding: 0; }
.slider-dots button:hover { background: var(--muted-2); }
.slider-dots button.active { background: var(--terra); width: 28px; border-radius: 6px; }
@media (max-width: 720px) { .happy-card { flex: 0 0 100%; } }

/* FAQ --------------------------------------------------------------------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq-item.open { box-shadow: var(--shadow); border-color: var(--blue-100); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; text-align: left; padding: 22px 26px; font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; color: var(--ink); }
.faq-q .pm { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; transition: transform .3s, background .3s, color .3s; }
.faq-item.open .faq-q .pm { background: var(--blue); color: #fff; transform: rotate(45deg); }
.faq-q .pm svg { width: 16px; height: 16px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 26px 24px; color: var(--muted); }

/* CTA band ---------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); background: linear-gradient(120deg, var(--blue) 0%, var(--blue-700) 60%, #0a2657 100%); color: #fff; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 18% 30%, rgba(187,79,53,.4), transparent 40%), radial-gradient(circle at 85% 75%, rgba(255,255,255,.1), transparent 45%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 760px; margin: 0 auto 14px; font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.cta-band p { color: #cdddf2; max-width: 560px; margin: 0 auto 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: #0a1b3a; color: #b7c6dc; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo-img { height: 50px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: #93a6c2; font-size: .95rem; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #cdd9ea; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--terra); color: #fff; transform: translateY(-3px); }
.footer-social a svg { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: #a6b6cf; font-size: .94rem; transition: color .2s, padding .2s; }
.footer-col li a { color: #a6b6cf; }
.footer-col li a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: .94rem; align-items: flex-start; }
.footer-contact li svg { width: 18px; height: 18px; color: var(--terra); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: #cdd9ea; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 24px; font-size: .86rem; color: #7d90ad; }
.footer-bottom a { color: #aebad0; }

/* Modal / booking --------------------------------------------------------- */
.modal-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(8, 18, 38, .6); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .3s; }
.modal-overlay.open { display: flex; opacity: 1; }
.modal {
  background: var(--paper); border-radius: var(--radius-lg); width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  transform: translateY(20px) scale(.98); transition: transform .35s var(--ease); max-height: 92vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-head { background: linear-gradient(120deg, var(--blue), var(--blue-700)); color: #fff; padding: 28px 30px 24px; }
.modal-head h3 { color: #fff; font-size: 1.4rem; margin-bottom: 6px; }
.modal-head p { color: #cdddf2; font-size: .92rem; }
.modal-body { padding: 26px 30px 30px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; display: grid; place-items: center; z-index: 2; transition: background .2s; }
.modal-close:hover { background: rgba(255,255,255,.3); }
.modal-close svg { width: 18px; height: 18px; }
.modal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.modal-stats .ms { text-align: center; }
.modal-stats .ms b { display: block; font-family: var(--font-head); font-weight: 800; color: var(--terra); font-size: 1.3rem; }
.modal-stats .ms span { font-size: .75rem; color: var(--muted); }

/* Forms ------------------------------------------------------------------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; font-family: var(--font-head); color: var(--charcoal); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.form-note { font-size: 12px; color: var(--muted-2); margin-top: 12px; line-height: 1.5; }
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success.show { display: block; }
.form-success .ok-ico { width: 64px; height: 64px; border-radius: 50%; background: #e7f6ec; color: #1f9d55; display: grid; place-items: center; margin: 0 auto 16px; }
.form-success .ok-ico svg { width: 32px; height: 32px; }

/* Page hero (inner pages) ------------------------------------------------- */
.page-hero { position: relative; padding: 150px 0 70px; background: linear-gradient(120deg, var(--blue) 0%, var(--blue-700) 70%, #0a2657 100%); color: #fff; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 85% 20%, rgba(187,79,53,.32), transparent 42%), radial-gradient(circle at 10% 90%, rgba(255,255,255,.08), transparent 40%); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: #f0b9a8; }
.page-hero .eyebrow::before { background: #f0b9a8; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 14px 0 14px; }
.page-hero p { color: #cdddf2; max-width: 620px; font-size: 1.1rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: #9fb6d6; margin-top: 18px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 14px; height: 14px; }

/* Resources --------------------------------------------------------------- */
.res-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.res-sidebar { position: sticky; top: 100px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.res-cat { margin-bottom: 6px; }
.res-cat > button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--charcoal); text-align: left; transition: background .2s, color .2s; }
.res-cat > button .ci { width: 20px; height: 20px; flex-shrink: 0; color: var(--blue); }
.res-cat > button:hover { background: var(--blue-50); }
.res-cat > button.active { background: var(--blue); color: #fff; }
.res-cat > button.active .ci { color: #fff; }
.res-cat .entry-count { margin-left: auto; font-size: 12px; background: var(--bg-2); color: var(--muted); border-radius: 999px; padding: 2px 9px; }
.res-cat > button.active .entry-count { background: rgba(255,255,255,.2); color: #fff; }
.res-main { min-height: 400px; }
.res-entry-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.res-entry-tab { font-family: var(--font-head); font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); color: var(--charcoal); transition: all .2s; }
.res-entry-tab.active { background: var(--terra); border-color: var(--terra); color: #fff; }
.res-content { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.res-content h2 { font-size: 1.7rem; margin-bottom: 8px; }
.res-content .res-desc { color: var(--muted); margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.res-article { line-height: 1.75; }
.res-article h3 { margin: 26px 0 10px; font-size: 1.2rem; color: var(--blue); }
.res-article p { margin-bottom: 14px; color: var(--charcoal); }
.res-article ul { list-style: none; display: grid; gap: 10px; margin: 8px 0; }
.res-article ul li { position: relative; padding-left: 28px; color: var(--charcoal); }
.res-article ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--terra); }
.res-embed { width: 100%; aspect-ratio: 4/3.2; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.res-link-cta { display: inline-flex; align-items: center; gap: 8px; }

/* EMI calculator */
.emi-tool { display: grid; gap: 18px; }
.emi-result { background: linear-gradient(120deg, var(--blue-50), var(--bg)); border: 1px solid var(--blue-100); border-radius: var(--radius); padding: 26px; text-align: center; }
.emi-result .emi-amount { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--blue); line-height: 1; }
.emi-result .emi-amount span { font-size: 1rem; color: var(--muted); font-weight: 600; }
.emi-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.emi-breakdown div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.emi-breakdown b { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; }
.emi-breakdown span { font-size: .78rem; color: var(--muted); }
.range-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.range-row b { color: var(--blue); font-family: var(--font-head); font-size: 15px; }
input[type=range] { width: 100%; accent-color: var(--blue); height: 6px; }

/* Contact ----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.contact-row { display: flex; gap: 16px; padding: 18px; border-radius: var(--radius-sm); transition: background .2s; }
.contact-row:hover { background: var(--blue-50); }
.contact-row .ico { flex-shrink: 0; width: 50px; height: 50px; border-radius: 13px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.contact-row .ico svg { width: 23px; height: 23px; }
.contact-row h4 { font-size: 1rem; margin-bottom: 3px; }
.contact-row p, .contact-row a { color: var(--muted); font-size: .95rem; }
.contact-row a:hover { color: var(--blue); }
.contact-form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.map-embed { width: 100%; height: 340px; border: 0; border-radius: var(--radius); margin-top: 26px; filter: grayscale(.15); }

/* Floating actions -------------------------------------------------------- */
.fab-wa { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .25s; }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 30px; height: 30px; }

/* Reveal animations ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* Logo svg default colour */
.logo-svg .lg-mark { fill: var(--blue); transition: fill .3s; }
.logo-svg.on-dark .lg-mark { fill: #fff; }

/* Utilities --------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted-link { color: var(--blue); font-weight: 600; }
.muted-link:hover { text-decoration: underline; }
.tag { display: inline-block; background: var(--blue-50); color: var(--blue); font-family: var(--font-head); font-weight: 600; font-size: 12px; padding: 5px 12px; border-radius: 999px; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .split { gap: 40px; }
  .res-layout { grid-template-columns: 1fr; }
  .res-sidebar { position: static; }
  .res-cat-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .res-cat { margin: 0; flex: 1 1 auto; }
}
@media (max-width: 880px) {
  body { font-size: 16px; }
  .main-nav, .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { gap: 12px; }
  .header-cta { gap: 10px; flex-shrink: 0; }
  .header-cta .btn--primary { padding: 11px 18px; font-size: 14px; }
  .brand-lockup { min-width: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); padding: 16px 24px 24px; gap: 4px; box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform .35s var(--ease); display: flex; z-index: 99;
    border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .main-nav { transform: translateY(0); }
  .main-nav a { padding: 13px 16px; font-size: 16px; border-radius: var(--radius-sm); }
  /* Mobile dropdown sits on a light (paper) panel — force readable link colours
     even over a dark hero, including the ACTIVE link (was white-on-white). */
  .site-header:not(.scrolled).over-hero .main-nav a { color: var(--charcoal); }
  .site-header:not(.scrolled).over-hero .main-nav a:hover { color: var(--blue); background: var(--blue-50); }
  .site-header.over-hero .main-nav a.active,
  .site-header:not(.scrolled).over-hero .main-nav a.active { color: var(--blue); }
  .grid-3, .grid-4, .steps, .stats-band { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media { max-width: 520px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: clamp(150px, 32vw, 260px); }
  .gallery a.g-lg, .gallery a.g-sm, .gallery a.g-half, .gallery a.g-full { grid-column: span 12; grid-row: span 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-cell:not(:last-child)::after { display: none; }
}
@media (max-width: 540px) {
  .container { padding-inline: 18px; }
  .grid-3, .grid-4, .steps, .stats-band, .grid-2 { grid-template-columns: 1fr; }
  .modal-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stat { flex: 1 1 100%; }
  .hero-actions .btn, .cta-actions .btn, .booking-form .btn, .contact-form .btn, .res-content .emi-tool ~ * { width: 100%; }
  .hero-actions, .cta-actions { flex-direction: column; }
  .stats-band .stat-cell { padding: 18px; }
  .emi-breakdown { grid-template-columns: 1fr; }
  .header-inner { gap: 12px; }
  .brand-lockup .logo-img { height: 38px; }
  .header-cta { gap: 8px; }
  .header-cta .btn--primary { padding: 11px 16px; font-size: 13px; }
}
@media (max-width: 400px) {
  .brand-lockup .brand-text span { display: none; }
}

/* ==========================================================================
   FINAL CORRECTIONS — hero emblem (no moving chips), Advantage hover-reveal,
   Method (heading only), image service cards, resource h4, project gallery
   ========================================================================== */

/* Hero emblem (static logo mark; the animated info chips were removed) */
.hero-emblem-wrap { position: absolute; z-index: 2; top: 0; bottom: 0; right: max(20px, 4vw); width: 42%; max-width: 560px; pointer-events: none; }
@media (max-width: 980px) { .hero-emblem-wrap { display: none; } }
.hero .hero-actions { margin-bottom: 0; }

/* GRIDLINE ADVANTAGE — heading only; text reveals on hover / tap (focus) */
.card--advantage { position: relative; cursor: pointer; }
.card--advantage h3 { margin-bottom: 0; padding-right: 30px; }
.card--advantage .card-reveal { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s var(--ease), opacity .3s var(--ease), margin-top .4s var(--ease); }
.card--advantage .card-reveal p { color: var(--muted); font-size: .96rem; }
.card--advantage:hover .card-reveal,
.card--advantage:focus .card-reveal,
.card--advantage:focus-within .card-reveal { max-height: 340px; opacity: 1; margin-top: 12px; }
.card--advantage .card-hint { position: absolute; top: 26px; right: 26px; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s, color .3s; }
.card--advantage .card-hint svg { width: 16px; height: 16px; }
.card--advantage:hover .card-hint,
.card--advantage:focus .card-hint,
.card--advantage:focus-within .card-hint { transform: rotate(45deg); background: var(--blue); color: #fff; }

/* GRIDLINE METHOD — logo + heading only */
.steps--method .step { padding-bottom: 26px; }
.steps--method .step h3 { margin-bottom: 0; }

/* Image-based service cards */
.svc-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; height: 100%; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.svc-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc-card:hover .svc-media img { transform: scale(1.06); }
.svc-media--icon { display: grid; place-items: center; color: var(--blue); background: var(--blue-50); }
.svc-media--icon svg { width: 54px; height: 54px; }
.svc-body { padding: 20px 22px 24px; }
.svc-kicker { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); margin-bottom: 6px; }
.svc-body h3 { font-size: 1.16rem; }

/* Resource teaser "read guide" link + resource sub-headings */
.card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--terra); }
.card-link svg { width: 16px; height: 16px; }
a.card:hover .card-link { gap: 11px; }
.res-article h4 { margin: 22px 0 8px; font-size: 1.04rem; color: var(--ink); font-family: var(--font-head); }

/* Project detail gallery — larger, cleanly aligned tiles */
.detail-cta-card { align-self: start; }
@media (min-width: 881px) {
  .gallery { grid-auto-rows: clamp(180px, 22vw, 300px); }
}
