/* ============================================================
   styles.css — Iris Li Portfolio
   Centralized stylesheet for all pages.
   Edit here to update styles sitewide.
   ============================================================ */

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

/* ── TOKENS ── */
:root {
  --bg: #ffffff;
  --bg-2: #f8f8f7;
  --ink: #0d0d0d;
  --ink-2: #444;
  --ink-3: #888;
  --ink-4: #bbb;
  --accent: #1a9070;
  --accent-2: #e2f5f0;
  --line: rgba(0,0,0,0.08);
  --sans: 'Poppins', system-ui, sans-serif;
  --nav-h: 56px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ── ANIMATIONS ── */
@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes chevron-bounce { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(4px) } }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  padding: 0 2.5rem;
}
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.nav-logo svg path { transition: fill 0.2s; }
.nav-logo:hover svg path { fill: var(--accent); }
.nav-wordmark { font-family: var(--sans); font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 15px; font-weight: 400; letter-spacing: 0.03em;
  color: var(--ink-3); text-decoration: none;
  transition: color 0.18s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--ink); transform: scaleX(0);
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1); transform-origin: left;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-back {
  font-size: 15px; font-weight: 400; color: var(--ink-3); text-decoration: none;
  display: flex; align-items: center; gap: 6px; transition: color 0.2s;
}
.nav-back:hover { color: var(--ink); }
.nav-back svg { transition: transform 0.2s; }
.nav-back:hover svg { transform: translateX(-3px); }

/* ── PAGE WRAPPER ── */
.page { max-width: 1038px; margin: 0 auto; padding: 0 2.5rem; }

/* ── SECTIONS (shared) ── */
.section { padding: 6rem 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.section-bg-num {
  position: absolute; top: -0.15em; right: -0.05em;
  font-size: clamp(120px, 18vw, 220px); font-weight: 400;
  color: var(--bg-2); line-height: 1; pointer-events: none; user-select: none; z-index: 0;
}
.section-inner { position: relative; z-index: 1; }
.section-label { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.75rem; }
.section-title { font-size: clamp(22px, 2.5vw, 34px); font-weight: 300; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 2.5rem; }
.section-title em { font-style: italic; font-weight: 600; color: var(--accent); }
.two-col { display: grid; grid-template-columns: clamp(200px, 22vw, 280px) 1fr; gap: 4rem; align-items: start; }

.two-col .section-label { margin-bottom: 0.5rem; }
.two-col .section-title { margin-bottom: 0; }

/* ── BODY TEXT ── */
.body-text { font-size: 16px; line-height: 1.85; color: var(--ink-2); font-weight: 400; }
.body-text p + p { margin-top: 1.1em; }
.body-text strong { color: var(--ink); font-weight: 600; }

/* ── ABOUT — HERO ── */
.hero {
  padding: calc(var(--nav-h) + 12vh) 2.5rem 10vh;
  max-width: 1220px; margin: 0 auto;
  position: relative; min-height: 60vh;
  display: flex; align-items: center;
}
.hero-left { width: 45%; }
.hero-headline {
  font-size: clamp(36px, 4.5vw, 60px); font-weight: 300; line-height: 1.35;
  letter-spacing: -0.01em; color: var(--ink); margin-bottom: 2rem;
  opacity: 0; animation: up 0.6s 0.2s ease forwards;
}
.hero-headline em { font-style: italic; font-weight: 600; color: var(--accent); }
.hero-photo {
  position: absolute; right: 2.5rem; top: 50%; transform: translateY(-50%);
  width: 32%; opacity: 0; animation: up 0.6s 0.3s ease forwards;
  aspect-ratio: 4/3; border-radius: 12px; overflow: hidden;
  background: #ffffff; display: flex; align-items: center; justify-content: center;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo-placeholder { font-size: 13px; color: var(--ink-4); letter-spacing: 0.06em; text-transform: uppercase; }

/* ── ABOUT — PRINCIPLES ── */
.principles { display: flex; flex-direction: column; }
.principle {
  display: grid; grid-template-columns: 40px 1fr; gap: 1.5rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.principle:last-child { border-bottom: none; }
.principle-num { font-size: 15px; font-weight: 300; color: var(--ink-4); font-style: italic; }
.principle-text { font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--ink); }
.principle-text em { font-style: italic; font-weight: 600; color: var(--accent); }

/* ── ABOUT — TIMELINE ── */
.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid; grid-template-columns: 160px 1fr; gap: 3rem;
  padding: 2rem 0; border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-period { font-size: 15px; font-weight: 500; color: var(--ink); padding-top: 3px; }
.timeline-role { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.timeline-co { font-size: 15px; color: var(--ink-3); margin-bottom: 10px; font-weight: 400; }
.timeline-desc { font-size: 16px; color: var(--ink-2); line-height: 1.75; font-weight: 400; }

/* ── HOME — HERO (overrides base .hero for homepage) ── */
.page-home .hero {
  min-height: 100vh; padding: calc(var(--nav-h) + 10vh) 2.5rem 8vh;
  flex-direction: column; justify-content: center; align-items: center;
  text-align: center; position: relative; width: auto;
}
.hero-label {
  font-size: 17px; font-weight: 400; letter-spacing: 0.01em;
  color: var(--ink-2); margin-bottom: 1.5rem;
  opacity: 0; animation: up 0.5s 0.1s ease forwards;
  display: flex; align-items: center; gap: 6px; justify-content: center;
}
.hero-rotating {
  position: relative;
  min-height: calc(clamp(36px, 4.5vw, 60px) * 1.35 * 2 + 8px);
  margin-bottom: 2rem; width: 100%;
  opacity: 0; animation: up 0.6s 0.2s ease forwards;
}
.hero-rotating-text {
  font-size: clamp(36px, 4.5vw, 60px); font-weight: 300; line-height: 1.35;
  letter-spacing: -0.01em; color: var(--ink);
  position: absolute; top: 0; left: 0; right: 0; text-align: center;
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.hero-rotating-text em { font-style: italic; color: var(--accent); font-weight: 600; }
.hero-rotating-text.entering { opacity: 0; transform: translateY(16px); pointer-events: none; }
.hero-rotating-text.visible  { opacity: 1; transform: translateY(0); }
.hero-rotating-text.leaving  { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 15px; color: var(--ink-3); margin-bottom: 2.5rem;
  opacity: 0; animation: up 0.5s 0.4s ease forwards;
}
.hero-meta-dot { color: var(--ink-4); }
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; animation: up 0.5s 1.2s ease forwards;
  text-decoration: none; cursor: pointer;
}
.hero-scroll-chevron {
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, transform 0.3s;
  animation: chevron-bounce 2s ease infinite;
}
.hero-scroll:hover .hero-scroll-chevron { border-color: var(--accent); }

/* ── HOME — WORK GRID ── */
.work-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }
.work-card {
  background: var(--bg); display: grid; grid-template-columns: 1fr 2fr;
  gap: 0 40px; overflow: hidden; text-decoration: none; color: inherit;
  border: none; min-height: 51vh; position: relative; transition: background 0.25s;
}
.work-body { padding: 3rem 0; display: flex; flex-direction: column; justify-content: flex-end; position: relative; z-index: 2; }
.work-co { font-size: 15px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.work-title { font-size: clamp(22px, 2.5vw, 32px); font-weight: 600; color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; transition: color 0.25s; }
.work-tagline { font-size: 16px; font-style: italic; color: var(--ink-3); line-height: 1.5; max-width: 340px; font-weight: 400; }
.work-divider { width: 32px; height: 1px; background: var(--line); margin-bottom: 0.75rem; }
.work-img, a.work-img {
  background: #e4eef8; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border-radius: 40px; margin: 2rem 0; text-decoration: none; cursor: pointer;
}
.work-img-inner {
  width: 100%; height: 100%; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--ink-4); letter-spacing: 0.04em;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 12px);
}
.work-card:hover .work-img-inner { transform: scale(1.03); }
.work-img.warm { background: #f0ebe0; }
.work-img.cool { background: #e8eef5; }
.work-img.sage { background: #e4eeea; }
.work-img.lavender { background: #eceaf5; }
.work-img.gray { background: #efefef; }
.work-cta {
  display: inline-flex; align-items: center;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: 0.04em;
  padding: 10px 20px; border-radius: 200px; text-decoration: none;
  width: fit-content; margin-top: 1.5rem; transition: background 0.18s;
}
.work-cta:hover { background: #157a5e; }
.work-rule { height: 1px; background: var(--line); margin: 0; }

/* ── HOME — PROCESS LAYERS ── */
.process-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; max-width: 900px; margin: 0 auto; }
.layers-scene { position: relative; height: 560px; perspective: 1200px; perspective-origin: 50% 28%; }
.layers-stack { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(72deg) translateY(-40px); }
.lyr {
  position: absolute; left: 50%; top: 50%;
  width: 300px; height: 300px; margin-left: -150px; margin-top: -150px;
  opacity: 0; transform: translateZ(var(--z)) translateY(-40px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.lyr.in { opacity: 1; transform: translateZ(var(--z)) translateY(0); }
.lyr:nth-child(1){ --z: 224px; } .lyr:nth-child(2){ --z: 160px; } .lyr:nth-child(3){ --z: 96px; }
.lyr:nth-child(4){ --z:  32px; } .lyr:nth-child(5){ --z: -32px; } .lyr:nth-child(6){ --z: -96px; }
.lyr:nth-child(7){ --z:-160px; } .lyr:nth-child(8){ --z:-224px; }
.lyr-circle { width: 100%; height: 100%; border-radius: 50%; }
.lyr:nth-child(1) .lyr-circle { background: rgba(26,144,112,0.05); border: 1.5px solid rgba(26,144,112,0.10); }
.lyr:nth-child(2) .lyr-circle { background: rgba(26,144,112,0.07); border: 1.5px solid rgba(26,144,112,0.12); }
.lyr:nth-child(3) .lyr-circle { background: rgba(26,144,112,0.10); border: 1.5px solid rgba(26,144,112,0.15); }
.lyr:nth-child(4) .lyr-circle { background: rgba(26,144,112,0.14); border: 1.5px solid rgba(26,144,112,0.19); }
.lyr:nth-child(5) .lyr-circle { background: rgba(26,144,112,0.18); border: 1.5px solid rgba(26,144,112,0.23); }
.lyr:nth-child(6) .lyr-circle { background: rgba(26,144,112,0.22); border: 1.5px solid rgba(26,144,112,0.27); }
.lyr:nth-child(7) .lyr-circle { background: rgba(26,144,112,0.26); border: 1.5px solid rgba(26,144,112,0.31); }
.lyr:nth-child(8) .lyr-circle { background: rgba(26,144,112,0.30); border: 1.5px solid rgba(26,144,112,0.35); }
.pv-steps { display: flex; flex-direction: column; justify-content: center; margin-left: -3rem; }
.pv-step {
  display: flex; flex-direction: column; padding: 0.5rem 0;
  opacity: 0; transform: translateY(-16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pv-step:last-child { border-bottom: none; }
.pv-step.in { opacity: 1; transform: translateY(0); }
.pv-title { font-size: 19px; font-weight: 400; color: var(--ink); line-height: 1.25; }
.pv-tool { font-size: 14px; color: var(--ink-3); margin-top: 3px; font-weight: 400; }
.pv-tool.ai { color: var(--accent); }

/* ── HOME — COLLAB ── */
.collab-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.collab-card { background: var(--bg-2); padding: 2rem; border-radius: 40px; transition: transform 0.2s; }
.collab-card:hover { transform: translateY(-2px); }
.collab-who { font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.collab-title { font-size: 20px; font-weight: 600; line-height: 1.2; margin-bottom: 0.75rem; }
.collab-body { font-size: 16px; font-weight: 400; color: var(--ink-3); line-height: 1.7; }

/* ── CASE STUDIES — HERO ── */
.cs-hero { max-width: 1220px; margin: 0 auto; padding: calc(var(--nav-h) + 2rem) 2.5rem 0; }
.cs-cover { width: 100%; aspect-ratio: 21/9; border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; opacity: 0; animation: up 0.7s 0.35s ease forwards; }
.cs-hero-info { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 6rem; align-items: start; padding: 2rem 0 1.5rem; }
.cs-meta-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.cs-meta-item { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.cs-meta-item:last-child { border-bottom: none; }
.cs-meta-label { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 4px; }
.cs-meta-value { font-size: 15px; font-weight: 400; color: var(--ink-2); }
.cs-title { font-size: clamp(20px,2.5vw,28px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 0.75rem; }
.cs-back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 400; color: var(--ink-3); text-decoration: none; margin-bottom: 2rem; transition: color 0.2s; opacity: 0; animation: up 0.4s 0.1s ease forwards; }
.cs-back:hover { color: var(--accent); }
.cs-back svg { transition: transform 0.2s; }
.cs-back:hover svg { transform: translateX(-3px); }
.cs-meta { display: flex; gap: 0; flex-wrap: nowrap; border-bottom: 1px solid var(--line); margin: 2.5rem 0 0; opacity: 0; animation: up 0.5s 0.38s ease forwards; }

/* ── CASE STUDIES — CONTENT ── */
.img-block { width: 100%; display: block; margin: 0; border: 1px solid rgba(0,0,0,0.07); border-radius: 32px; overflow: hidden; }
.img-caption { font-size: 16px; color: var(--ink-3); margin-top: -1.5rem; margin-bottom: 2rem; font-weight: 400; }
.callout { border-left: 3px solid var(--accent); padding: 1.25rem 1.5rem; margin: 2rem 0; background: var(--accent-2); border-radius: 0 20px 20px 0; }
.callout p { font-size: 16px; font-weight: 400; line-height: 1.6; color: var(--ink); }
.callout em { font-style: italic; font-weight: 600; color: var(--accent); }
.outcome-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem 3rem; margin: 2rem 0; }
.outcome { padding: 1rem 0; }
.outcome-num { font-size: clamp(36px,4vw,56px); font-weight: 700; color: var(--ink); margin-bottom: 6px; line-height: 1; }
.outcome-label { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.outcome-kicker { font-size: 16px; font-weight: 500; color: var(--accent); margin-bottom: 8px; }
.outcome-kicker--sm { font-size: 15px; margin-bottom: 1rem; }
.outcome-meta { font-size: 16px; font-weight: 400; color: var(--ink-2); margin-bottom: 8px; }
.outcome-meta em { font-style: normal; color: var(--accent); font-weight: 500; }

/* ── CASE STUDIES — PAGINATION ── */
.cs-pagination { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; max-width: 1220px; margin: 0 auto; }
.cs-pag-item { padding: 2.5rem; text-decoration: none; color: inherit; display: flex; align-items: center; gap: 1.25rem; transition: background 0.2s; }
.cs-pag-item.next { flex-direction: row-reverse; text-align: right; }
.cs-pag-thumb { width: 72px; height: 48px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-4); }
.cs-pag-name { font-size: 17px; font-weight: 700; color: var(--ink); transition: color 0.2s; }
.cs-pag-item:hover .cs-pag-name { color: var(--accent); }
.cs-pag-arrow { font-size: 17px; color: var(--ink-3); flex-shrink: 0; transition: transform 0.2s; }
.cs-pag-item.prev:hover .cs-pag-arrow { transform: translateX(-4px); }
.cs-pag-item.next:hover .cs-pag-arrow { transform: translateX(4px); }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--line); padding: 3rem 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.footer-copy { font-size: 15px; color: var(--ink-2); font-weight: 400; letter-spacing: 0.01em; }
.footer-headline { font-size: clamp(28px,3.5vw,48px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; }
.footer-headline em { font-style: italic; font-weight: 400; color: var(--accent); }
.footer-icons { display: flex; gap: 12px; align-items: center; }
.footer-icon { width: 40px; height: 40px; border: 1px solid rgba(0,0,0,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink-3); text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.footer-icon:hover { border-color: var(--accent); color: var(--accent); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; animation: revealFallback 0s 1.5s forwards; }
.reveal.visible { opacity: 1; transform: translateY(0); animation: none; }
@keyframes revealFallback { to { opacity: 1; transform: translateY(0); } }

/* ── SCROLL TO TOP ── */
.scroll-top { position: fixed; bottom: 2rem; right: 2rem; z-index: 99; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-3); text-decoration: none; box-shadow: 0 2px 12px rgba(0,0,0,0.08); opacity: 0; pointer-events: none; transition: opacity 0.3s, border-color 0.2s, color 0.2s, transform 0.2s; }
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Nav */
  .nav-inner { padding: 0 1.25rem; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 14px; }
  .nav-wordmark { font-size: 17px; }
  nav { padding: 0 1.25rem; }
  .page { padding: 0 1.25rem; }
  .section { padding: 3.5rem 0; }

  /* Case hero full-bleed */
  .cs-hero-full > div { padding: calc(var(--nav-h) + 2rem) 1.25rem 2.5rem !important; flex-direction: column !important; gap: 2rem !important; }
  .cs-hero-full > div > div:first-child { max-width: 100% !important; }
  .cs-hero-full > div > div:last-child { max-width: 100% !important; border-radius: 20px !important; }
  .cs-hero { padding: calc(var(--nav-h) + 1.5rem) 1.25rem 0; }
  .cs-hero-info { grid-template-columns: 1fr; gap: 2rem; }
  .cs-meta { flex-wrap: wrap; }

  /* Two-col */
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Section bg number */
  .section-bg-num { font-size: clamp(80px, 22vw, 140px); }

  /* Image grids */
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="repeat(2,1fr)"],
  div[style*="repeat(3,1fr)"] { grid-template-columns: 1fr !important; }

  /* Solution sub-grids */
  div[style*="clamp(200px,22vw,280px)"] { grid-template-columns: 1fr !important; gap: 1.5rem !important; }

  /* Outcome grid */
  .outcome-grid, .outcome-grid[style] { grid-template-columns: repeat(3, 1fr) !important; gap: 4px 10px !important; }
  .outcome { padding: 0.4rem 0; }
  .outcome-num, .outcome-num[style] { font-size: clamp(13px, 3.8vw, 18px) !important; letter-spacing: -0.01em; }
  .outcome-label { font-size: 8px !important; letter-spacing: 0.05em; }
  .outcome-kicker, .outcome-meta { font-size: 11px !important; margin-bottom: 4px !important; }

  /* Happy users video */
  .two-col > div:last-child { width: 100%; }

  /* More work cards */
  div[style*="repeat(3,1fr)"] { grid-template-columns: 1fr !important; }

  /* CS pagination */
  .cs-pagination { grid-template-columns: 1fr; }
  .cs-pag-item { padding: 1.5rem 1.25rem; }
  .cs-pag-item.next { flex-direction: row; text-align: left; }

  /* Callout */
  .callout { padding: 1rem 1.25rem; }

  /* Footer */
  footer { padding: 3rem 1.25rem 2rem; text-align: center; }

  /* Scroll top */
  .scroll-top { bottom: 1.25rem; right: 1.25rem; }


  /* Reels case hero phone */
  .reels-hero-phone { width: 200px !important; margin: 0 auto; }
  .reels-hero-inner { flex-direction: column !important; gap: 1.5rem !important; }


  /* Solution detail grids (1fr 2.5fr) */
  div[style*="grid-template-columns:1fr 2.5fr"],
  div[style*="grid-template-columns: 1fr 2.5fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  /* Section images inside solution blocks */
  .img-block { margin: 0 !important; }
  .img-block img { border-radius: 16px !important; }

  /* Nav overlay */
  .nav-overlay-sub { display: none; }

  /* Section title */
  .section-title { font-size: clamp(22px, 6vw, 34px); }
}