/* ============================================================
   /productmarketing — shared styles
   Updated 2026-05-11 to align with the abdurrub.com / CSOS design
   system. SVG creatives and layout classes are preserved. Only
   typography and color tokens change.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Changa+One:ital@0;1&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Sacramento&display=swap");

:root {
  /* Updated palette to match system design */
  --teal-50:#f0fdfa; --teal-100:#ccfbf1; --teal-200:#99f6e4;
  --teal-300:#5eead4; --teal-400:#00a8a3; --teal-500:#00a8a3;
  --teal-600:#008080; --teal-700:#008080; --teal-800:#006666;
  --teal-900:#004d4d; --teal-950:#004d4d;
  --ink-900:#0d0f0e; --ink-800:#1a1c1b; --ink-700:#2a2f2d;
  --ink-500:#5d6664; --ink-400:#6b7280; --ink-300:#9ca3af;
  --ink-200:#e5e7eb; --ink-100:#f3f4f6; --ink-50:#fafafa;
  --paper:#ffffff; --tint:#f3f8f8; --cream:#f3f8f8;
  --shadow-soft: 0 14px 30px rgba(0, 77, 77, 0.12);
  --shadow-lift: 0 28px 56px rgba(0, 77, 77, 0.18);
  --t-fast: .18s; --t-med: .35s; --t-slow: .6s;
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: 18px; line-height: 1.65;
  color: var(--ink-900); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: "Changa One", "Impact", sans-serif; letter-spacing: 0.005em; line-height: 1.1; margin: 0; font-weight: 400; }
p { margin: 0; }
.font-display, .gradient-text { font-family: "Changa One", "Impact", sans-serif !important; font-weight: 400 !important; letter-spacing: 0.005em !important; }
.gradient-text {
  background: none;
  -webkit-background-clip: initial; background-clip: initial;
  -webkit-text-fill-color: var(--teal-700); color: var(--teal-700);
  animation: none;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.container-narrow { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container-narrow { padding: 0 32px; } }

.eyebrow {
  display: inline-block;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-700); margin-bottom: 14px;
}

.gradient-text {
  background: linear-gradient(135deg, #5eead4 0%, #2dd4bf 25%, #99f6e4 50%, #2dd4bf 75%, #5eead4 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradient-drift 9s linear infinite;
}
@keyframes gradient-drift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .gradient-text { animation: none; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--ink-100); box-shadow: 0 8px 24px -20px rgba(10, 77, 92, 0.2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--teal-950); }
.logo span { color: var(--teal-500); }
.nav-links { display: none; align-items: center; gap: 28px; }
@media (min-width: 920px) { .nav-links { display: flex; } }
.nav-links a, .nav-links button { color: var(--ink-500); font-size: 0.9rem; transition: color 0.15s; display: inline-flex; align-items: center; gap: 4px; }
.nav-links a:hover, .nav-links button:hover { color: var(--teal-700); }
.nav-active { color: var(--teal-700); font-weight: 600; }
.menu-trigger { position: relative; padding-bottom: 14px; margin-bottom: -14px; }
.menu-dropdown {
  position: absolute; top: calc(100% + 0px); left: -12px;
  min-width: 280px; background: white; border-radius: 14px;
  padding: 8px; box-shadow: 0 24px 48px -12px rgba(10, 77, 92, 0.18);
  border: 1px solid var(--ink-100);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.menu-trigger:hover .menu-dropdown, .menu-trigger:focus-within .menu-dropdown {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.menu-dropdown a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--ink-700); font-size: 0.92rem; font-weight: 500; }
.menu-dropdown a .small { display: block; font-size: 0.78rem; color: var(--ink-400); font-weight: 400; margin-top: 3px; }
.menu-dropdown a:hover { background: var(--teal-50); color: var(--teal-800); }

.nav-cta {
  display: inline-flex; align-items: center;
  padding: 0.6rem 1.2rem;
  background: var(--teal-700); color: white;
  border-radius: 10px; font-size: 0.88rem; font-weight: 600;
  transition: background 0.18s, transform 0.18s;
}
.nav-cta:hover { background: var(--teal-800); transform: translateY(-1px); color: white; }

.menu-btn-mobile { display: inline-flex; align-items: center; justify-content: center; padding: 8px; color: var(--ink-700); }
@media (min-width: 920px) { .menu-btn-mobile { display: none; } }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 16px 20px 24px; background: white; border-top: 1px solid var(--ink-100); }
.mobile-menu.open { display: flex; }
.mobile-menu .section-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-400); font-weight: 600; margin-top: 12px; margin-bottom: 4px; }
.mobile-menu a { padding: 10px 0; color: var(--ink-700); font-size: 1.02rem; }
.mobile-menu .nav-cta { align-self: flex-start; margin-top: 14px; color: white; }

/* Hero */
.hero {
  position: relative; padding: 120px 0 88px;
  background:
    radial-gradient(ellipse at 75% 0%, rgba(94, 234, 212, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(45, 212, 191, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, #062028 0%, #0a4d5c 60%, #0e4f4f 100%);
  color: var(--cream); overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: 156px 0 120px; } }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center top, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black 30%, transparent 75%);
  pointer-events: none;
  animation: hero-drift 60s linear infinite;
}
@keyframes hero-drift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 56px 56px, 56px 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
.hero::after {
  content: ""; position: absolute;
  top: -120px; right: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 8s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; }
}
@media (max-width: 480px) {
  .hero { padding: 100px 0 64px; }
  .hero h1 { margin-top: 24px; max-width: none; }
  .hero-sub { margin-top: 22px; font-size: 1rem; }
  .container { padding: 0 18px; }
}
.hero > * { position: relative; }
.hero-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: rgba(255, 250, 243, 0.6);
  transition: color 0.15s;
}
.hero-back:hover { color: var(--teal-200); }
.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.8rem);
  letter-spacing: -0.025em; line-height: 1.04;
  margin-top: 32px; max-width: 22ch;
  color: white; font-weight: 800;
}
.hero-line { display: inline; }
.hero-sub {
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  line-height: 1.6; color: rgba(255, 250, 243, 0.78);
  margin-top: 28px; max-width: 64ch;
}
.hero-sub strong { color: white; font-weight: 600; }

/* Section */
.section { padding: 72px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section-tint { background: var(--tint); border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100); }
.section-dark { background: linear-gradient(135deg, #062028 0%, #0a4d5c 50%, #0e4f4f 100%); color: var(--cream); position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}
.section-dark > * { position: relative; }
.section-dark .eyebrow { color: var(--teal-300); }
.section-dark h2 { color: white; }
.section-dark .lead { color: rgba(255, 250, 243, 0.78); }

.section-head { max-width: 760px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; color: var(--ink-900); }
.section-head .lead { margin-top: 20px; font-size: 1.06rem; line-height: 1.65; color: var(--ink-500); max-width: 64ch; }

/* Numbers (the headline figure block) */
.numbers-hero {
  display: grid; gap: 32px; margin-top: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .numbers-hero { grid-template-columns: 5fr 4fr; gap: 48px; align-items: start; } }

.numbers-headline {
  background: white; border: 1px solid var(--ink-200);
  border-radius: 22px; padding: 32px;
}
@media (min-width: 768px) { .numbers-headline { padding: 44px; } }
.numbers-headline .big-figure {
  font-family: 'Archivo', sans-serif; font-weight: 900;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 0.95; color: var(--teal-950);
  letter-spacing: -0.03em;
}
.numbers-headline .big-figure-suffix {
  display: block;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 600; color: var(--ink-500);
  margin-top: 14px; letter-spacing: -0.01em;
  font-family: 'Inter', sans-serif;
}
.numbers-headline .breakdown-list {
  margin-top: 36px;
  border-top: 1px solid var(--ink-100);
  padding-top: 28px;
  display: grid; gap: 18px;
}
.breakdown-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 16px; align-items: baseline;
}
.breakdown-row .label { color: var(--ink-700); font-size: 0.96rem; }
.breakdown-row .label .small { display: block; font-size: 0.82rem; color: var(--ink-400); margin-top: 2px; }
.breakdown-row .value {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  color: var(--teal-800); font-size: 1.15rem;
  letter-spacing: -0.01em; white-space: nowrap;
}

.olly-shot {
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--ink-200); background: white;
  box-shadow: 0 24px 48px -16px rgba(10, 77, 92, 0.18);
  cursor: zoom-in;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.olly-shot:hover { transform: translateY(-3px); box-shadow: 0 32px 64px -16px rgba(10, 77, 92, 0.28); }
.olly-shot img { width: 100%; display: block; }
.olly-caption { font-size: 0.84rem; color: var(--ink-400); margin-top: 12px; line-height: 1.5; }

/* Product line clarification */
.product-lines {
  display: grid; gap: 20px; margin-top: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .product-lines { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.product-line {
  background: white; border: 1px solid var(--ink-200);
  border-radius: 18px; padding: 30px;
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.product-line:hover { border-color: var(--teal-200); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.product-line .pl-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-50);
  padding: 5px 12px; border-radius: 999px;
}
.product-line h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  margin-top: 14px; color: var(--ink-900);
}
.product-line p {
  margin-top: 14px; color: var(--ink-500);
  line-height: 1.65; font-size: 0.96rem;
}

/* Cards grid (selected work) */
.cards-grid {
  display: grid; gap: 22px; margin-top: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

.card {
  display: block;
  background: white; border: 1px solid var(--ink-200);
  border-radius: 22px; overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--teal-200);
}
.card .card-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--teal-50);
}
.card .card-visual img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform .5s var(--ease-out);
}
.card:hover .card-visual img { transform: scale(1.04); }

.card .card-visual.diagram {
  background: linear-gradient(135deg, var(--teal-50) 0%, white 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
}
.card .card-visual.diagram svg { max-width: 100%; height: 100%; }
.card .card-visual.dark {
  background: linear-gradient(135deg, #0a4d5c 0%, #0e4f4f 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 32px; color: var(--cream);
  text-align: center;
}
.card .card-visual.dark .visual-stat {
  font-family: 'Archivo', sans-serif; font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 0.95;
  background: linear-gradient(135deg, #5eead4 0%, #99f6e4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  letter-spacing: -0.02em;
}

.card .card-body { padding: 26px 26px 28px; }
@media (min-width: 768px) { .card .card-body { padding: 30px 32px 32px; } }

.card .card-tag {
  display: inline-block;
  padding: 4px 11px;
  background: var(--teal-100); color: var(--teal-800);
  border-radius: 999px;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.card h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.22; margin-top: 12px;
  color: var(--ink-900);
}
.card .card-sub {
  margin-top: 10px;
  font-size: 0.96rem; line-height: 1.55;
  color: var(--ink-500);
}
.card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--teal-700);
  transition: gap .2s var(--ease-out), color .2s ease;
}
.card:hover .card-link { gap: 10px; color: var(--teal-900); }

/* Blog teaser */
.blog-teaser {
  display: grid; gap: 28px;
  margin-top: 56px;
  grid-template-columns: 1fr;
  background: linear-gradient(135deg, var(--teal-50) 0%, white 100%);
  border: 1px solid var(--teal-200);
  border-radius: 22px;
  padding: 32px 28px;
  align-items: center;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.blog-teaser:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
@media (min-width: 768px) { .blog-teaser { grid-template-columns: 3fr 2fr; gap: 44px; padding: 48px 44px; } }
.blog-teaser h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.2; }
.blog-teaser-body p { color: var(--ink-700); margin-top: 14px; line-height: 1.65; }
.blog-teaser-thumb {
  aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--ink-200);
}
.blog-teaser-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform .5s var(--ease-out);
}
.blog-teaser:hover .blog-teaser-thumb img { transform: scale(1.04); }
.blog-teaser-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  color: var(--teal-700); font-weight: 600; font-size: 1rem;
  transition: gap 0.2s ease;
}
.blog-teaser:hover .blog-teaser-link { gap: 12px; color: var(--teal-900); }

/* CTA */
.cta-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.025em; line-height: 1.18; }
.cta-inner .cta-body { font-size: 1.05rem; margin-top: 22px; line-height: 1.65; }
.cta-button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2rem; border-radius: 12px;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1rem;
  background: #ffffff; color: #0a4d5c;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  margin-top: 32px;
}
.cta-button:hover { background: var(--cream); transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4); color: #062028; }
.cta-meta { font-size: 0.92rem; color: rgba(255, 250, 243, 0.65); margin-top: 24px; }
.cta-meta a { color: var(--teal-200); text-decoration: underline; text-underline-offset: 3px; }
.cta-meta a:hover { color: white; }

/* Footer */
footer { padding: 40px 0 32px; background: var(--ink-900); color: rgba(255, 255, 255, 0.55); }
.footer-inner { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
@media (min-width: 700px) { .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-logo { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.05rem; color: white; }
.footer-logo span { color: var(--teal-400); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.88rem; }
.footer-links a { color: rgba(255,255,255,0.6); transition: color 0.15s; }
.footer-links a:hover { color: var(--teal-300); }
.footer-fineprint {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column;
  gap: 10px;
  font-size: 0.78rem; line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}
@media (min-width: 700px) { .footer-fineprint { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-fineprint a { color: rgba(255, 255, 255, 0.65); transition: color 0.15s; }
.footer-fineprint a:hover { color: var(--teal-300); }

/* Visible teal borders on every card by default */
.card { border-width: 2px !important; border-color: var(--teal-300) !important; box-shadow: 0 4px 12px -4px rgba(15, 118, 110, 0.08); }
.card:hover { border-color: var(--teal-600) !important; box-shadow: 0 32px 64px -20px rgba(10, 77, 92, 0.28); }
.card .card-body { position: relative; }

/* Project name as a HEADING above each card (outside the card) */
.project-heading {
  display: flex; align-items: baseline; gap: 14px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 14px 6px;
}
@media (min-width: 768px) { .project-heading { font-size: 0.82rem; margin-bottom: 16px; } }
.project-heading::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal-500);
  flex-shrink: 0;
  align-self: center;
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.35);
}
.project-heading .num {
  color: var(--teal-500);
  font-weight: 900;
}
.project-heading .name {
  color: var(--teal-900);
}

/* Card cell wraps heading + card together */
.card-cell { display: flex; flex-direction: column; }
.card-cell .card { flex: 1; }

/* Hide the old inside project-label entirely — heading outside replaces it */
.card .project-label-strip { display: none !important; }
.card .project-label { display: none !important; }

/* Premium card lift on hover */
.card { transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out); }
.card:hover { transform: translateY(-6px); }
.card .card-visual img { transition: transform 0.6s var(--ease-out); }

/* Smooth stagger for hero pills */
.hero-stat-pill {
  opacity: 0; transform: translateY(12px);
  animation: pill-in 0.7s var(--ease-out) forwards;
}
.hero-stat-pill:nth-child(1) { animation-delay: 0.5s; }
.hero-stat-pill:nth-child(2) { animation-delay: 0.6s; }
.hero-stat-pill:nth-child(3) { animation-delay: 0.7s; }
.hero-stat-pill:nth-child(4) { animation-delay: 0.8s; }
.hero-stat-pill:nth-child(5) { animation-delay: 0.9s; }
@keyframes pill-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stat-pill { opacity: 1; transform: none; animation: none; }
  .card:hover { transform: none; }
}

/* Simple CTA: just headline + button + meta */
.cta-section .cta-inner h2 { margin-bottom: 0; }
.cta-section .cta-button { margin-top: 36px; }

/* ============================================================
   Comprehensive mobile + responsive breakpoints
   ============================================================ */

/* Small phones — 320px to 480px */
@media (max-width: 480px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .container-narrow { padding: 0 16px; }
  h1, h2, h3, h4 { letter-spacing: -0.022em; }

  .nav-inner { height: 56px; }
  .logo { font-size: 1.05rem; }
  .menu-btn-mobile { padding: 6px; }

  .hero { padding: 92px 0 56px; }
  .hero h1 {
    font-size: 1.72rem !important;
    line-height: 1.08;
    max-width: 11.5em;
    overflow-wrap: normal;
  }
  .hero-line,
  .hero h1 .gradient-text { display: block; }
  .hero-sub { font-size: 0.98rem; line-height: 1.55; margin-top: 18px; }
  .hero-stat-strip { gap: 8px; margin-top: 28px; }
  .hero-stat-pill { padding: 8px 14px; font-size: 0.78rem; }
  .hero-stat-pill .num { font-size: 0.9rem; }
  .detail-hero-side { padding: 12px 16px; font-size: 0.86rem; gap: 10px; }

  .section { padding: 56px 0; }
  .section-head h2 { font-size: 1.55rem; }
  .section-head .lead { font-size: 0.98rem; margin-top: 14px; }

  .numbers-headline { padding: 24px 20px; }
  .numbers-headline .big-figure { font-size: 2.4rem; }
  .numbers-headline .big-figure-suffix { font-size: 0.86rem; }
  .breakdown-list { margin-top: 24px; padding-top: 20px; }
  .breakdown-row { grid-template-columns: 1fr; gap: 6px; }
  .breakdown-row .label { font-size: 0.88rem; }
  .breakdown-row .value { font-size: 1rem; }
  .breakdown-row .label .small { font-size: 0.76rem; }

  .product-line { padding: 22px 20px; }
  .product-line h3 { font-size: 1.18rem; }

  .card .project-label-strip { padding: 12px 18px; font-size: 0.7rem; letter-spacing: 0.12em; }
  .card .card-body { padding: 22px 20px 24px; }
  .card h3 { font-size: 1.08rem; }
  .card .card-sub { font-size: 0.92rem; }
  .cards-grid { gap: 22px; }

  .blog-teaser { padding: 24px 20px; gap: 20px; }
  .blog-teaser h3 { font-size: 1.25rem; }

  .work-body { padding: 24px 20px 28px; }
  .work-body h3 { font-size: 1.15rem; }

  .detail-section { padding: 40px 0; }
  .detail-block h2 { font-size: 1.4rem; }
  .detail-block p, .detail-block ul li { font-size: 0.96rem; line-height: 1.65; }
  .detail-figure { margin: 24px 0; border-radius: 14px; }
  .detail-figure .caption { padding: 12px 16px; font-size: 0.8rem; }
  .detail-meta { padding: 22px 20px; }
  .detail-meta .meta-row { grid-template-columns: 1fr; gap: 6px 0; }
  .detail-meta .meta-row .key { margin-top: 8px; }

  .cta-inner h2 { font-size: 1.5rem; }
  .cta-inner .cta-body { font-size: 0.96rem; margin-top: 16px; }
  .cta-button { padding: 0.85rem 1.6rem; font-size: 0.95rem; margin-top: 26px; }

  footer { padding: 32px 0 24px; }
  .footer-fineprint { font-size: 0.74rem; }

  .lightbox { padding: 12px; }
  .lightbox-close { top: 12px; right: 12px; }

  /* SVG diagrams need to scale and not overflow */
  .diagram-svg, .detail-figure svg { width: 100% !important; height: auto !important; }
}

/* Mid phones — 481px to 600px */
@media (min-width: 481px) and (max-width: 600px) {
  .hero h1 { font-size: 2.1rem !important; }
  .numbers-headline .big-figure { font-size: 2.8rem; }
}

/* Tablet — 601px to 759px */
@media (min-width: 601px) and (max-width: 759px) {
  .container { padding: 0 24px; }
}

/* Prevent horizontal overflow anywhere */
html, body { overflow-x: hidden; max-width: 100vw; }
img, svg, video { max-width: 100%; }
.diagram-svg, .detail-figure svg { max-width: 100%; height: auto; }

/* Hero polish — meta strip with floating numbers */
.hero-stat-strip {
  position: relative;
  margin-top: 40px;
  display: flex; gap: 12px;
  flex-wrap: wrap;
}
.hero-stat-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem; font-weight: 600;
  color: rgba(255, 250, 243, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.hero-stat-pill:hover {
  border-color: rgba(94, 234, 212, 0.5);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.hero-stat-pill .num {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  color: white;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.hero-stat-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-300); }

/* Detail page hero — visual side panel */
.detail-hero-side {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-left: 3px solid var(--teal-300);
  border-radius: 12px;
  font-size: 0.92rem; font-weight: 500;
  color: rgba(255, 250, 243, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.detail-hero-side strong { color: white; font-weight: 700; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(6, 32, 40, 0.94);
  z-index: 100; display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

/* Detail page styles */
.detail-section { padding: 56px 0; }
@media (min-width: 768px) { .detail-section { padding: 80px 0; } }

.detail-block {
  max-width: 880px; margin: 0 auto;
}
.detail-block + .detail-block { margin-top: 48px; }

.detail-block h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.022em;
  color: var(--ink-900);
  line-height: 1.2;
}
.detail-block h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  color: var(--ink-900);
  margin-top: 28px;
}
.detail-block p {
  font-size: 1.04rem; line-height: 1.72;
  color: var(--ink-700); margin-top: 18px;
}
.detail-block p strong { color: var(--ink-900); font-weight: 600; }
.detail-block ul {
  margin-top: 18px; padding-left: 0; list-style: none;
}
.detail-block ul li {
  position: relative;
  padding-left: 28px;
  margin-top: 14px;
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--ink-700);
}
.detail-block ul li::before {
  content: ""; position: absolute;
  left: 0; top: 12px;
  width: 14px; height: 2px;
  background: var(--teal-500);
  border-radius: 2px;
}
.detail-block ul li strong { color: var(--ink-900); font-weight: 600; }

.detail-figure {
  margin: 36px 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ink-200);
  background: white;
  box-shadow: var(--shadow-soft);
}
.detail-figure img { width: 100%; display: block; cursor: zoom-in; transition: transform .3s ease; }
.detail-figure img:hover { transform: scale(1.005); }
.detail-figure .caption {
  padding: 14px 20px;
  background: var(--ink-50);
  font-size: 0.86rem;
  color: var(--ink-500);
  border-top: 1px solid var(--ink-100);
  line-height: 1.5;
}

.detail-meta {
  margin-top: 48px;
  background: var(--tint);
  border: 1px solid var(--ink-100);
  border-radius: 18px;
  padding: 28px 32px;
}
.detail-meta .meta-row {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 14px 24px;
  font-size: 0.96rem;
}
.detail-meta .meta-row .key {
  color: var(--ink-400); font-weight: 600;
  font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.12em;
  align-self: center;
}
.detail-meta .meta-row .val {
  color: var(--ink-700);
}

.detail-cta {
  margin-top: 48px;
  background: linear-gradient(135deg, var(--teal-50) 0%, white 100%);
  border: 1px solid var(--teal-200);
  border-radius: 22px;
  padding: 32px;
  text-align: center;
}
.detail-cta h3 { font-size: 1.4rem; color: var(--ink-900); }
.detail-cta p { color: var(--ink-700); margin-top: 12px; }
.detail-cta .cta-button {
  background: var(--teal-700); color: white;
  margin-top: 22px;
}
.detail-cta .cta-button:hover { background: var(--teal-800); color: white; }

/* SVG diagrams shared rules */
.diagram-svg {
  width: 100%; height: auto;
  display: block;
}

/* Quote block */
.quote {
  border-left: 4px solid var(--teal-400);
  padding: 8px 0 8px 24px;
  margin: 28px 0;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink-800);
  font-style: italic;
}

/* Editorial portfolio refinements */
.hero-proof-note {
  margin-top: 16px;
  color: rgba(255, 250, 243, 0.62);
  font-size: 0.9rem;
}

.capability-map {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 70px -52px rgba(10, 77, 92, 0.34);
}
@media (min-width: 760px) {
  .capability-map { grid-template-columns: repeat(4, 1fr); }
}
.capability-item {
  min-height: 180px;
  padding: 26px 24px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
  position: relative;
  overflow: hidden;
}
@media (min-width: 760px) {
  .capability-item { border-bottom: 0; border-right: 1px solid rgba(15, 118, 110, 0.12); }
  .capability-item:last-child { border-right: 0; }
}
.capability-item::after {
  content: "";
  position: absolute;
  inset: auto 24px 20px 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--teal-600), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease-out);
}
.capability-item:hover::after { transform: scaleX(1); }
.capability-item span {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--teal-600);
}
.capability-item strong {
  display: block;
  margin-top: 28px;
  font-family: 'Archivo', sans-serif;
  font-size: 1.05rem;
  line-height: 1.18;
  color: var(--ink-900);
}
.capability-item p {
  margin-top: 12px;
  color: var(--ink-500);
  font-size: 0.9rem;
  line-height: 1.55;
}

.work-groups {
  margin-top: 72px;
  display: grid;
  gap: 76px;
}
.work-group {
  position: relative;
}
.work-group::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -18px;
  width: 2px;
  height: calc(100% - 6px);
  background: linear-gradient(180deg, rgba(15,118,110,.55), rgba(15,118,110,0));
  opacity: 0;
  transform: scaleY(.7);
  transform-origin: top;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
@media (min-width: 980px) {
  .work-group.visible::before { opacity: 1; transform: scaleY(1); }
}
.work-group-head {
  max-width: 720px;
  margin-bottom: 28px;
}
.work-group-head h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.18;
  color: var(--ink-900);
}
.work-group .cards-grid {
  margin-top: 0;
}

/* Calmer, more premium cards */
.card {
  border-width: 1px !important;
  border-color: rgba(15, 118, 110, 0.14) !important;
  border-radius: 16px;
  box-shadow: 0 18px 46px -40px rgba(10, 77, 92, 0.45);
}
.card:hover {
  border-color: rgba(15, 118, 110, 0.44) !important;
  box-shadow: 0 34px 74px -44px rgba(10, 77, 92, 0.62);
}
.card .card-body { padding: 24px 24px 26px; }
@media (min-width: 768px) { .card .card-body { padding: 26px 28px 28px; } }
.card h3 { font-size: clamp(1.08rem, 1.55vw, 1.28rem); }
.card .card-sub strong { color: var(--ink-900); font-weight: 700; }
.card .card-tag {
  border-radius: 6px;
  background: rgba(10, 77, 92, 0.06) !important;
  color: var(--teal-900) !important;
  letter-spacing: 0.12em;
}
.project-heading {
  margin-left: 0;
  gap: 12px;
  color: var(--ink-500);
}
.project-heading::before {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.08);
}

/* Desktop: editorial rows instead of uneven grids */
@media (min-width: 860px) {
  .work-group .cards-grid {
    grid-template-columns: 1fr;
    gap: 26px !important;
  }
  .work-group .card-cell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
  }
  .work-group .project-heading {
    margin: 0;
    padding-top: 28px;
    align-items: flex-start;
    gap: 14px;
  }
  .work-group .project-heading::before {
    margin-top: 4px;
  }
  .work-group .project-heading .num,
  .work-group .project-heading .name {
    display: block;
  }
  .work-group .project-heading .name {
    margin-top: 8px;
    max-width: 16ch;
    line-height: 1.28;
  }
  .work-group .card {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
    min-height: 268px;
  }
  .work-group .card .card-visual {
    aspect-ratio: auto;
    min-height: 100%;
  }
  .work-group .card .card-visual.diagram {
    padding: 34px;
  }
  .work-group .card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 38px;
  }
  .work-group .card h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    line-height: 1.18;
    max-width: 23ch;
  }
  .work-group .card .card-sub {
    max-width: 52ch;
  }
}

@media (min-width: 1180px) {
  .work-group .card-cell {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .work-group .card {
    grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (min-width: 860px) and (max-width: 1050px) {
  .work-group .card-cell {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
  }
  .work-group .card {
    grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.05fr);
  }
  .work-group .card .card-body {
    padding: 30px 30px;
  }
}

/* Tablet: keep grouped structure, avoid orphaned empty-looking slots */
@media (min-width: 620px) and (max-width: 859px) {
  .work-group .cards-grid {
    grid-template-columns: 1fr;
    gap: 28px !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    transform: translateY(34px) scale(.985);
    transition: opacity .95s var(--ease-out), transform .95s var(--ease-out);
  }
  .reveal.visible {
    transform: translateY(0) scale(1);
  }
  .card {
    transform: translateY(0);
    transition: transform .42s var(--ease-out), box-shadow .42s var(--ease-out), border-color .42s var(--ease-out);
  }
  .card:hover {
    transform: translateY(-7px);
  }
}

@media (max-width: 480px) {
  .capability-item { min-height: auto; padding: 22px 20px; }
  .capability-item strong { margin-top: 18px; }
  .work-groups { gap: 56px; margin-top: 54px; }
  .hero h1 {
    max-width: 12em;
    font-size: 1.66rem !important;
  }
  .hero-line,
  .hero h1 .gradient-text {
    display: block;
  }
  .breakdown-row {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    align-items: start;
  }
  .breakdown-row .value {
    white-space: normal;
    justify-self: start;
  }
}
