/* ==========================================
   BIOGEO — Main Stylesheet
   Colors: Dark #1e2535 | Blue #1e57b8 | Grey #f2f4f7
   NOTE: Squarespace CDN image URLs are temporary.
   Download all images before cancelling Squarespace,
   then update img src and background-image paths.
   ========================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- DESIGN TOKENS ---------- */
:root {
  --dark: #1e2535;
  --blue: #1e57b8;
  --blue-hover: #1748a0;
  --blue-light: #eef3fb;
  --blue-mid: #d0e0f8;
  --grey: #f2f4f7;
  --grey-dark: #e2e8f0;
  --white: #ffffff;
  --text: #1a2332;
  --text-mid: #5a6a82;
  --shadow: 0 2px 16px rgba(26,35,50,0.09);
  --shadow-hover: 0 8px 28px rgba(30,87,184,0.16);
  --radius: 10px;
  --nav-height: 82px;
  --max-width: 1160px;
  --section-pad: 80px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 { color: var(--text); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1rem, 2vw, 1.2rem); }
h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
p { color: var(--text-mid); font-size: 0.975rem; line-height: 1.75; }

/* ---------- NAVIGATION ---------- */
.nav {
  background: var(--dark);
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img { height: 62px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: center; }
.nav-links a { color: rgba(255,255,255,0.78); font-size: 0.84rem; font-weight: 500; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-socials { display: flex; gap: 14px; align-items: center; }
.nav-socials a { color: rgba(255,255,255,0.6); transition: color 0.2s; display: flex; }
.nav-socials a:hover { color: white; }
.nav-socials svg { width: 17px; height: 17px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.8); border-radius: 2px; transition: all 0.2s; }
.nav-mobile { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--dark); padding: 8px 28px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); z-index: 199; }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-mobile a:last-child { border-bottom: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(18,28,46,0.48); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 28px; animation: heroFadeIn 0.9s ease forwards; }
.hero-content h1 { color: white; font-weight: 800; margin-bottom: 18px; text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.hero-content .hero-sub { color: rgba(255,255,255,0.88); font-size: clamp(0.9rem, 1.8vw, 1.05rem); margin-bottom: 12px; font-weight: 500; }
.hero-content .hero-note { color: rgba(255,255,255,0.68); font-size: 0.85rem; margin-bottom: 36px; font-style: italic; }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.hero-wave svg { display: block; width: 100%; }

@keyframes heroFadeIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- PAGE HEADER (inner pages) ---------- */
.page-header { background: var(--dark); padding: 64px 28px 56px; text-align: center; position: relative; }
.page-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--blue); }
.page-header h1 { color: white; margin-bottom: 14px; }
.page-header p { color: rgba(255,255,255,0.7); max-width: 680px; margin: 0 auto; }
.page-header-img { background-size: cover; background-position: center; }
.page-header-img::before { content: ''; position: absolute; inset: 0; background: rgba(18,28,46,0.6); }
.page-header-img h1, .page-header-img p { position: relative; z-index: 1; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-block; padding: 13px 30px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; letter-spacing: 0.02em; font-family: 'Inter', sans-serif; }
.btn-outline { border: 2px solid rgba(255,255,255,0.85); color: white; background: transparent; }
.btn-outline:hover { background: white; color: var(--dark); border-color: white; }
.btn-blue { background: var(--blue); color: white; border: 2px solid var(--blue); }
.btn-blue:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-ghost { border: 2px solid var(--blue); color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--blue); color: white; }

/* ---------- SECTIONS ---------- */
.section { padding: var(--section-pad) 28px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-grey { background: var(--grey); }
.section-dark { background: var(--dark); }
.section-title { text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-mid); font-size: 0.975rem; max-width: 700px; margin: 0 auto 52px; font-style: italic; }

/* ---------- INTRO ---------- */
.intro-section { max-width: 820px; margin: 0 auto; text-align: center; padding: 72px 28px; }
.intro-section h2 { margin-bottom: 20px; }
.intro-section p { font-size: 1rem; margin-bottom: 14px; }
.intro-section p:last-child { margin-bottom: 0; }

/* ---------- SERVICE CARDS (homepage overview) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--white); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); transition: box-shadow 0.25s, transform 0.25s; border-top: 3px solid var(--blue); }
.service-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.service-icon { width: 42px; height: 42px; color: var(--blue); margin-bottom: 16px; }
.service-card h3 { color: var(--blue); font-size: 1rem; margin-bottom: 10px; line-height: 1.35; }
.service-card p { font-size: 0.875rem; }

/* ---------- SERVICE DETAIL (services page) ---------- */
.service-detail { padding: 64px 28px; border-bottom: 1px solid var(--grey-dark); }
.service-detail:last-of-type { border-bottom: none; }
.service-detail-inner { max-width: var(--max-width); margin: 0 auto; }
.service-detail-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 16px; }
.service-detail-header .service-icon { flex-shrink: 0; margin-bottom: 0; }
.service-detail h2 { color: var(--blue); font-size: 1.5rem; }
.service-detail > .service-detail-inner > p { max-width: 720px; margin-bottom: 32px; }
.service-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.service-col h4 { color: var(--text); margin-bottom: 14px; }
.service-col ul li { font-size: 0.875rem; color: var(--text-mid); padding: 5px 0 5px 16px; position: relative; border-bottom: 1px solid var(--grey-dark); }
.service-col ul li:last-child { border-bottom: none; }
.service-col ul li::before { content: '—'; position: absolute; left: 0; color: var(--blue); font-size: 0.75rem; top: 7px; }

/* ---------- PLEDGE SECTION ---------- */
.pledge-section { background: var(--dark); padding: 80px 28px; text-align: center; }
.pledge-section h2 { color: white; margin-bottom: 16px; }
.pledge-section > p { color: rgba(255,255,255,0.75); max-width: 640px; margin: 0 auto 36px; font-size: 1rem; }
.pledge-amount { font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 8px; }
.pledge-label { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 36px; }

/* ---------- TRUST BAR ---------- */
.trust-bar { background: var(--grey); padding: 36px 28px; }
.trust-bar-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.trust-bar p { font-size: 0.875rem; color: var(--text-mid); font-style: italic; }
.trust-bar strong { color: var(--text); font-weight: 600; }

/* ---------- CASE STUDY GRID ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow 0.25s, transform 0.25s; }
.case-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.case-card-img { width: 100%; height: 200px; object-fit: cover; }
.case-card-body { padding: 22px 24px; }
.case-card-body h3 { font-size: 0.925rem; color: var(--blue); margin-bottom: 10px; line-height: 1.4; }
.case-card-body p { font-size: 0.85rem; }
.case-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 0.8rem; font-weight: 600; color: var(--blue); }
.case-link svg { width: 14px; height: 14px; }

/* ---------- CONSERVATION ---------- */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.project-item img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
.project-item h3 { color: var(--blue); margin-bottom: 10px; }
.project-item p { font-size: 0.9rem; }
.project-link { display: inline-block; margin-top: 14px; font-size: 0.82rem; font-weight: 600; color: var(--blue); }
.partners-section { padding: 56px 28px; background: var(--grey); text-align: center; }
.partners-section h3 { color: var(--text); margin-bottom: 36px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.partners-row { display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; }
.partners-row img { height: 52px; object-fit: contain; filter: grayscale(0.2) opacity(0.75); transition: filter 0.25s; }
.partners-row img:hover { filter: none; }

/* ---------- ABOUT / BIO ---------- */
.about-intro { max-width: 820px; margin: 0 auto; padding: 72px 28px 52px; }
.about-intro h2 { margin-bottom: 20px; }
.about-intro p { margin-bottom: 14px; }
.bio-section { background: var(--grey); padding: 64px 28px; }
.bio-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.bio-photo-col { text-align: center; }
.bio-photo-col img { width: 240px; height: 260px; border-radius: 12px; object-fit: cover; object-position: center 40%; background: transparent; margin: 0 auto 18px; }
.bio-photo-col h3 { color: var(--blue); font-size: 1.05rem; margin-bottom: 6px; }
.bio-photo-col p { font-size: 0.85rem; font-style: italic; }
.bio-text h2 { margin-bottom: 22px; }
.bio-text p { margin-bottom: 14px; }
.bio-text p:last-child { margin-bottom: 0; }

/* ---------- APPS PAGE ---------- */
.app-section { padding: 72px 28px; border-bottom: 1px solid var(--grey-dark); }
.app-section:last-of-type { border-bottom: none; }
.app-inner { max-width: var(--max-width); margin: 0 auto; }
.app-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.app-badge { background: var(--blue-light); color: var(--blue); font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.06em; }
.app-inner h2 { color: var(--blue); font-size: 1.65rem; margin-bottom: 16px; }
.app-inner > p { max-width: 720px; margin-bottom: 28px; }
.app-features { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 32px; }
.app-feature { background: var(--grey); border-radius: 8px; padding: 22px 20px; }
.app-feature h4 { color: var(--text); font-size: 0.82rem; margin-bottom: 8px; }
.app-feature p { font-size: 0.85rem; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--grey-dark); border-radius: 6px;
  font-size: 0.9rem; font-family: 'Inter', sans-serif; color: var(--text); background: white;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--blue); }
.form-group textarea { height: 140px; resize: vertical; }
.contact-info h3 { margin-bottom: 28px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-item svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; margin-top: 1px; }
.contact-item p { font-size: 0.9rem; }
.contact-item a { color: var(--blue); }

/* ---------- FOOTER ---------- */
.footer { background: var(--dark); padding: 56px 28px 28px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 220px 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-brand img { height: 52px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.4); font-size: 0.8rem; line-height: 1.6; }
.footer-col h4 { color: rgba(255,255,255,0.85); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.45); font-size: 0.84rem; margin-bottom: 9px; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.85); }
.footer-col p { color: rgba(255,255,255,0.4); font-size: 0.82rem; }
.footer-socials { display: flex; gap: 12px; margin-top: 4px; }
.footer-socials a { color: rgba(255,255,255,0.45); transition: color 0.2s; display: flex; }
.footer-socials a:hover { color: white; }
.footer-socials svg { width: 20px; height: 20px; }
.footer-bottom { max-width: var(--max-width); margin: 0 auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: nowrap; gap: 28px; }
.footer-bottom > p { color: rgba(255,255,255,0.3); font-size: 0.78rem; flex-shrink: 0; }
.pledge-badge { background: rgba(30,87,184,0.18); border: 1px solid rgba(30,87,184,0.35); border-radius: 20px; padding: 5px 14px; font-size: 0.75rem; color: rgba(255,255,255,0.55); flex-shrink: 0; }
.acknowledgement { flex: 1; max-width: 560px; margin: 0 auto; text-align: center; }
.acknowledgement svg { width: 24px; height: auto; border-radius: 2px; opacity: 0.85; margin: 0 auto 8px; display: block; }
.acknowledgement p { color: rgba(255,255,255,0.3); font-size: 0.68rem; line-height: 1.6; margin: 0; }

/* ---------- UTILITIES ---------- */
.text-blue { color: var(--blue); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; }

/* ---------- PORTFOLIO ---------- */
.portfolio-grid { columns: 2; column-gap: 28px; }
.portfolio-item { break-inside: avoid; margin-bottom: 28px; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow 0.25s, transform 0.25s; }
.portfolio-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.portfolio-item img { width: 100%; display: block; }
.portfolio-item-body { padding: 18px 20px 20px; }
.portfolio-item-body h3 { font-size: 0.95rem; color: var(--text); margin-bottom: 8px; line-height: 1.35; }
.portfolio-item-body p { font-size: 0.84rem; color: var(--text-mid); line-height: 1.65; }
.portfolio-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); background: var(--blue-light); padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
@media (max-width: 768px) { .portfolio-grid { columns: 1; } }

/* ---------- APP PROMO (homepage) ---------- */
.app-promo { background: var(--dark); padding: var(--section-pad) 28px; }
.app-promo-inner { max-width: var(--max-width); margin: 0 auto; }
.app-promo-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(30,87,184,0.2); color: #7aaaf5; border: 1px solid rgba(30,87,184,0.35); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; padding: 4px 12px; border-radius: 20px; margin-bottom: 18px; }
.app-promo-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #7aaaf5; animation: betaBlink 2s ease-in-out infinite; flex-shrink: 0; }
@keyframes betaBlink { 0%,100%{opacity:1}50%{opacity:0.3} }
.app-promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 0 auto 36px; }
.app-promo-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); border-radius: 10px; padding: 28px; border-top: 2px solid var(--blue); }
.app-promo-card h3 { color: white; font-size: 1.05rem; margin-bottom: 10px; }
.app-promo-card > p { color: rgba(255,255,255,0.58); font-size: 0.875rem; line-height: 1.65; margin-bottom: 16px; }
.app-promo-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.app-promo-stat { font-size: 0.75rem; padding: 3px 9px; border-radius: 5px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.55); }
.app-promo-stat strong { color: var(--blue); }
.app-promo-btn { display: block; text-align: center; padding: 11px; background: var(--blue); color: white; border-radius: 6px; font-size: 0.85rem; font-weight: 600; transition: background 0.2s; }
.app-promo-btn:hover { background: var(--blue-hover); color: white; }

/* ---------- APPS GATEWAY PAGE ---------- */
.app-gateway-hero { background: var(--dark); padding: 72px 28px 56px; position: relative; overflow: hidden; }
.app-gateway-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--blue); }
.app-gateway-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 56px; }
.app-gw-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-top: 3px solid var(--blue); }
.app-gw-header { padding: 28px 28px 0; }
.app-gw-header h2 { color: var(--blue); font-size: 1.4rem; margin-bottom: 10px; }
.app-gw-header p { font-size: 0.9rem; margin-bottom: 0; }
.app-gw-features { padding: 20px 28px; border-top: 1px solid var(--grey-dark); margin-top: 20px; }
.app-gw-features h4 { color: var(--text); margin-bottom: 12px; }
.app-gw-features ul li { font-size: 0.85rem; color: var(--text-mid); padding: 5px 0 5px 16px; position: relative; border-bottom: 1px solid var(--grey-dark); }
.app-gw-features ul li:last-child { border-bottom: none; }
.app-gw-features ul li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-size: 0.75rem; font-weight: 700; }
.app-gw-pricing { padding: 20px 28px; background: var(--grey); border-top: 1px solid var(--grey-dark); }
.app-gw-pricing .price { font-size: 1.8rem; font-weight: 800; color: var(--text); line-height: 1; }
.app-gw-pricing .price-note { font-size: 0.78rem; color: var(--text-mid); margin-top: 4px; margin-bottom: 16px; }
.app-gw-cta { padding: 20px 28px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .app-features { grid-template-columns: 1fr 1fr; }
  .service-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 52px; }
  .nav-links, .nav-socials { display: none; }
  .nav-hamburger { display: flex; }
  .hero { height: 520px; }
  .services-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .bio-inner { grid-template-columns: 1fr; }
  .bio-photo-col { display: flex; gap: 20px; align-items: center; text-align: left; }
  .bio-photo-col img { width: 110px; height: 120px; object-fit: cover; object-position: center 40%; margin: 0; flex-shrink: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .acknowledgement { order: 3; max-width: 100%; }
  .app-features { grid-template-columns: 1fr; }
  .service-cols { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content { animation: none; }
  * { transition: none !important; }
}

/* ---------- WORK PAGE CARDS ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.work-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow 0.25s, transform 0.25s; display: flex; flex-direction: column; }
.work-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.work-card-banner { position: relative; height: 128px; flex-shrink: 0; background: linear-gradient(135deg, var(--dark) 0%, #2a3550 100%); overflow: hidden; display: flex; align-items: center; padding: 0 28px; }
.work-card-banner::after { content: ''; position: absolute; right: -30px; top: 50%; transform: translateY(-50%); width: 160px; height: 160px; opacity: 0.07; background-repeat: no-repeat; background-position: center; background-size: contain; }
.work-card-banner .banner-icon { width: 40px; height: 40px; color: var(--blue); flex-shrink: 0; opacity: 0.95; }
.work-card-banner .banner-metric { margin-left: 18px; }
.work-card-banner .banner-metric .metric-num { font-size: 1.15rem; font-weight: 800; color: white; line-height: 1.2; }
.work-card-banner .banner-metric .metric-label { font-size: 0.72rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 5px; }
.work-card-banner .banner-sector-tag { position: absolute; top: 14px; right: 18px; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.5); }
.work-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.work-sector { font-size: 0.69rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--blue); background: var(--blue-light); padding: 3px 8px; border-radius: 4px; }
.work-year { font-size: 0.76rem; color: var(--text-mid); }
.work-client { font-size: 0.78rem; color: var(--text-mid); font-weight: 600; margin-bottom: 7px; }
.work-engaged { font-size: 0.72rem; color: var(--text-mid); font-style: italic; font-weight: 400; margin-top: -4px; margin-bottom: 9px; }
.work-card h3 { font-size: 0.95rem; color: var(--text); margin-bottom: 10px; line-height: 1.35; }
.work-stats { display: flex; gap: 5px; margin-bottom: 12px; flex-wrap: wrap; }
.work-stat { font-size: 0.7rem; padding: 3px 8px; background: var(--grey); border-radius: 4px; color: var(--text-mid); }
.work-stat strong { color: var(--blue); font-weight: 700; }
.work-desc { font-size: 0.855rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 12px; flex: 1; }
.work-outcome { font-size: 0.81rem; color: var(--text); border-top: 1px solid var(--grey-dark); padding: 11px 0 10px; margin-top: auto; }
.work-outcome::before { content: 'Outcome — '; font-weight: 700; color: var(--blue); }
.work-tags { display: flex; gap: 5px; flex-wrap: wrap; border-top: 1px solid var(--grey-dark); padding-top: 9px; margin-top: 4px; }
.work-tag { font-size: 0.67rem; color: var(--text-mid); background: var(--grey); border-radius: 3px; padding: 2px 6px; }

/* ---------- CLIENT STRIP ---------- */
.clients-strip { background: white; border-bottom: 1px solid var(--grey-dark); padding: 16px 28px; }
.clients-strip-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.clients-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-mid); margin-bottom: 6px; }
.clients-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; }
.clients-row span { font-size: 0.85rem; font-weight: 500; color: var(--text); white-space: nowrap; }
.clients-dot { color: var(--blue); font-weight: 700; }

/* ---------- FEATURED WORK (homepage) ---------- */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---------- APPS ONE-LINER ---------- */
.apps-oneliner { background: var(--grey); border-top: 1px solid var(--grey-dark); padding: 18px 28px; text-align: center; }
.apps-oneliner p { font-size: 0.875rem; color: var(--text-mid); }
.apps-oneliner a { color: var(--blue); font-weight: 600; }

@media (max-width: 1024px) { .featured-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .featured-grid { grid-template-columns: 1fr; } .clients-strip-inner { flex-direction: column; align-items: flex-start; } }

/* ---------- DUAL IMAGE CARD HEADER ---------- */
.work-card-inner { padding: 22px 28px 24px; display: flex; flex-direction: column; flex: 1; }
