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

@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #F7633E;
}

:root {
  --accent: #F7633E;
  --accent-hover: #e5522d;
  --text-primary: #0F0F0F;
  --text-secondary: #6B7280;
  --bg: #FFFFFF;
  --bg-warm: #FAF8F5;
  --nav-height: 68px;
  --font-display: 'DM Serif Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 40px;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.07);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}

.nav-logo-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.nav-cta {
  margin-left: 32px;
  padding: 9px 20px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

.linkedin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.15s;
}

.linkedin-icon:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-linkedin {
  margin-left: 32px;
}

/* ─── HERO ────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 0;
  overflow: hidden;
}

/* Background layer — controlled by bg-picker */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

/* Left column */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  min-width: 0;
  padding-bottom: 48px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-eyebrow::before {
  display: none;
}

.hero-headline {
  font-family: var(--font-display);
  /* --hero-headline-scale is set per company from the Logo Overrides sheet (column G) */
  font-size: calc(clamp(48px, 5.5vw, 70px) * var(--hero-headline-scale, 1));
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-headline .accent {
  color: var(--accent);
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 420px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  padding: 13px 24px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-ghost::after {
  content: '→';
}

/* Right column — hero image */
.hero-image-wrap {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: flex-end;
}

.hero-image-wrap img {
  height: clamp(280px, 38vw, 480px);
  width: auto;
  display: block;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.12));
  will-change: transform;
}

/* subtle bg blob behind the image */
.hero-image-wrap::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(247, 99, 62, 0.10) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

/* ─── LOGOS ───────────────────────────────────────────────── */

.logos-section {
  padding: 30px 40px;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.logos-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.logos-row img {
  height: 90px;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(100%);
}

@media (max-width: 768px) {
  .logos-section {
    padding: 32px 20px;
  }

  .logos-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    justify-items: center;
  }

  .logos-row img {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .logos-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 16px;
  }

  /* logo PNGs carry ~60% transparent padding top/bottom, so size up and let rows overlap that padding */
  .logos-row img {
    height: 58px;
    max-width: 100%;
  }
}

/* ─── WORK ────────────────────────────────────────────────── */

.work-section {
  padding: 50px 40px 100px 40px;
  background: #fff;
}

.work-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.work-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 48px;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.work-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
}

.work-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 18%, #F0EBE4);
  padding: 24px 24px 0;
  display: flex;
  align-items: flex-end;
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 8px 8px 0 0;
}

.work-card-image.clip {
  align-items: flex-start;
  padding: 32px 0 0 32px;
}

.work-card-image.clip img {
  width: 130%;
  height: auto;
  object-fit: unset;
  flex-shrink: 0;
  border-radius: 12px 0 0 0;
}

.work-card-image.clip-bottom {
  align-items: flex-start;
  padding-top: 60px;
}

.work-card-image.clip-bottom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 8px 8px 0 0;
}

.work-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  background: #F8F8F8;
}

.project-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.project-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
}

.project-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  flex: 1;
}

.learn-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.learn-more:hover {
  opacity: 0.75;
}

/* ─── WORK CARD HOVER ANIMATIONS ─────────────────────────── */

/* Card lift — whole-card lift matching CIRadar thumbnail style */
.work-card.hover-card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.work-card.hover-card-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Image zoom — scales the image in-place */
.work-card.hover-img-zoom .work-card-image img {
  transition: transform 0.4s ease;
}
.work-card.hover-img-zoom:hover .work-card-image img {
  transform: scale(1.06);
}

.work-card.hover-img-zoom:hover .work-card-image img.stack-fan-left {
  transform: rotate(-6deg) scale(1.06);
}
.work-card.hover-img-zoom:hover .work-card-image img.stack-fan-right {
  transform: rotate(6deg) scale(1.06);
}


@media (max-width: 768px) {
  .work-section {
    padding: 60px 20px;
  }

  .work-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ─── LEADERSHIP ─────────────────────────────────────────── */

.leadership-section {
  padding: 100px 40px;
  background: #0F0F0F;
}

.leadership-inner {
  max-width: 800px;
  margin: 0 auto;
}

.leadership-hero-img {
  display: block;
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 56px;
  opacity: 0.85;
}

.leadership-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}

.leadership-intro {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  max-width: 800px;
  margin: 0 0 56px;
}

.leadership-list {
  list-style: none;
  margin: 0 0 56px;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.leadership-list li {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
  padding-left: 20px;
  position: relative;
}

.leadership-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.leadership-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.leadership-stat {
  text-align: center;
}

.leadership-stat-number {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.leadership-stat-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.leadership-card {
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  opacity: 0;
}

.leadership-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 40px;
}

.leadership-card-image img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  opacity: 0.9;
}

.leadership-card-body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.leadership-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.leadership-card-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.25;
}

.leadership-card-body p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
}

.leadership-card-body .learn-more {
  color: var(--accent);
  margin-top: 8px;
}

@media (max-width: 768px) {
  .leadership-section {
    padding: 60px 20px;
  }

  .leadership-card {
    grid-template-columns: 1fr;
  }

  .leadership-card-image {
    min-height: 180px;
  }

  .leadership-card-body {
    padding: 32px 28px;
  }

  .leadership-stats {
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .leadership-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ─── ABOUT ──────────────────────────────────────────────── */

.about-section {
  padding: 100px 40px;
  background: #fff;
}

.about-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.about-body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.about-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .about-section {
    padding: 60px 20px;
  }

  .about-body {
    font-size: 16px;
  }
}

/* ─── FOOTER ──────────────────────────────────────────────── */

footer {
  background: #2C2C2C;
  color: rgba(255,255,255,0.5);
  padding: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 13px;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 810px) {
  nav {
    padding: 0 20px;
  }

  .nav-links {
    gap: 20px;
  }

  /* Hero: stacked on tablet */
  .hero {
    padding-bottom: 60px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    padding-left: 32px;
    padding-right: 32px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-image-wrap {
    width: 100%;
    justify-content: center;
    align-items: center;
  }
}

/* Hero: hide image on mobile */
@media (max-width: 480px) {
  .nav-inner { padding: 0 16px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .nav-logo-name { display: none; }

  footer { padding: 32px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }

  .hero {
    padding-bottom: 0;
  }

  .hero-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-image-wrap {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   WORK PAGE (work-2026-v2.html)
   ═══════════════════════════════════════════════════════════ */

/* ─── PAGE HEADER ─────────────────────────────────────────── */

.page-header {
  padding-top: calc(var(--nav-height) + 72px);
  padding-bottom: 72px;
  padding-left: 40px;
  padding-right: 40px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 72px;
}

.page-header-text { flex: 1; min-width: 0; }

.page-header-eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  display: flex; align-items: center; gap: 6px;
}

.page-header-eyebrow::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.05;
  color: var(--text-primary); margin-bottom: 24px;
}

.page-header h1 em {
  font-style: italic;
  color: var(--accent);
}

.page-header-sub {
  font-size: 17px; line-height: 1.65;
  color: var(--text-secondary);
}

/* ─── PAGE HEADER IMAGE ───────────────────────────────────── */

.page-header-img-wrap {
  flex-shrink: 0;
  width: 420px;
  position: relative;
  margin-top: 82px;
}

.ph-circle {
  position: absolute;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  background: var(--accent);
  top: calc(50% - 221px);
  left: calc(50% - 200px);
  z-index: 0;
  opacity: 1;
  transition: background 1s ease;
}

/* ── Accent colour transitions (Design Panel) ─────────────── */
.hero-eyebrow,
.hero-headline em,
.hero-headline .accent,
.learn-more,
.leadership-stat-number,
.leadership-card-label,
.leadership-card-body .learn-more,
.page-header-eyebrow,
.page-header h1 em,
.cs-index-link.active,
.cs-meta-company,
.cs-block-label,
.cs-block ul li::before,
.cs-phase-num,
.cs-img-placeholder .cs-img-placeholder-label,
.mobile-section-count,
.nav-links a.active,
.nav-links a:hover,
.btn-primary,
.nav-cta,
.work-card-image {
  transition: color 1s ease, background 1s ease, background-color 1s ease;
}

.page-header-eyebrow::before {
  transition: background 1s ease;
}

.page-header-img-glow {
  display: none;
}

.ph-img-back,
.ph-img-mid {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: auto;
  border-radius: 12px;
}

.ph-img-back {
  opacity: 0;
  z-index: 1;
  filter: drop-shadow(0 0 7px rgba(0,0,0,0.10));
  transform-origin: bottom center;
}

.ph-img-mid {
  opacity: 0;
  z-index: 2;
  filter: drop-shadow(0 0 7px rgba(0,0,0,0.10));
  transform-origin: bottom center;
}

.ph-img-front {
  width: 100%; height: auto;
  border-radius: 12px;
  position: relative; z-index: 3;
  filter: drop-shadow(0 0 7px rgba(0,0,0,0.10));
  animation: header-img-in 0.85s cubic-bezier(0.25, 0.1, 0.25, 1) 0.35s both;
}

@keyframes header-img-in {
  from { opacity: 0; transform: scale(0.94) translateY(22px) rotate(0deg); }
  to   { opacity: 1; transform: scale(1)    translateY(0)    rotate(4deg); }
}

@media (max-width: 900px) {
  .page-header { flex-direction: column; gap: 48px; }
  .page-header-img-wrap { width: 100%; max-width: 480px; }
}

/* ─── PAGE LAYOUT & SIDEBAR ──────────────────────────────── */

.page-layout {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.cs-sidebar {
  display: none;
}

.cs-index-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: block;
}

.cs-index-links {
  display: flex; flex-direction: column; gap: 2px;
}

.cs-index-link {
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary); text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  line-height: 1.4;
}

.cs-index-link:hover {
  color: var(--text-primary);
  background: rgba(0,0,0,0.04);
}

.cs-index-link.active {
  color: var(--accent);
  background: rgba(247,99,62,0.06);
  font-weight: 600;
}

.cs-content {
  flex: 1;
  min-width: 0;
}

/* ─── SPLIT LAYOUT ───────────────────────────────────────── */

.cs-split {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 32px;
  align-items: start;
}

.cs-split.image-left {
  grid-template-columns: 30% 70%;
}

.cs-split.image-left .cs-split-image {
  order: -1;
}

.cs-split-image {
  width: 100%; aspect-ratio: 3/2;
  background: #ECECEC; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}

.cs-split-image img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 12px;
}

.cs-split-image-placeholder {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #9CA3AF;
}

@media (max-width: 600px) {
  .cs-split, .cs-split.image-left {
    grid-template-columns: 1fr;
  }
  .cs-split.image-left .cs-split-image {
    order: 0;
  }
}

/* ─── CASE STUDY SECTIONS ─────────────────────────────────── */

.cs-section {
  padding: 80px 0;
}

.cs-section:first-child {
  padding-top: 30px;
}


.cs-inner {
  display: flex; flex-direction: column; gap: 48px;
}

.cs-inner::before {
  content: none;
}

/* Metadata */
.cs-meta {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 12px;
}

.cs-meta-company {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
}

.cs-meta-divider {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(0,0,0,0.2);
}

.cs-meta-date {
  font-size: 12px; font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.cs-tools {
  display: flex; flex-wrap: wrap; gap: 6px;
}

.cs-tool-pill {
  font-size: 11px; font-weight: 500;
  color: var(--text-secondary);
  padding: 3px 10px; border-radius: 12px;
  background: rgba(0,0,0,0.05);
}

/* Case study header */
.cs-header { display: flex; flex-direction: column; gap: 16px; }

.cs-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-secondary);
}

.cs-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400; letter-spacing: -0.01em; line-height: 1.1;
  color: var(--text-primary);
}

.cs-hook {
  font-size: 18px; line-height: 1.65;
  color: var(--text-secondary);
}

/* Thumbnail */
.cs-thumb {
  width: 100%; border-radius: 16px;
  overflow: hidden;
  background: #161616;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px; min-height: 280px;
}

.cs-thumb img {
  width: 100%; max-width: 680px; height: auto;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.35));
}

/* Content blocks */
.cs-body { display: flex; flex-direction: column; gap: 40px; }

.cs-block { display: flex; flex-direction: column; gap: 10px; }

.cs-block-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}

.cs-block h3 {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--text-primary);
  line-height: 1.3;
}

.cs-block p {
  font-size: 16px; line-height: 1.75;
  color: var(--text-secondary);
}

.cs-block ul {
  padding-left: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}

.cs-block ul li {
  font-size: 16px; line-height: 1.65;
  color: var(--text-secondary);
  padding-left: 20px; position: relative;
}

.cs-block ul li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--accent); font-weight: 600;
}

/* Detail list */
.cs-detail-list {
  padding-left: 0; list-style: none;
  display: flex; flex-direction: column; gap: 16px;
}

.cs-detail-list li {
  font-size: 16px; line-height: 1.65;
  color: var(--text-secondary);
  padding-left: 0;
}

.cs-detail-list li::before {
  content: none;
}

.cs-detail-list li strong {
  display: block;
  font-size: 15px; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

/* Outcome block */
.cs-outcome {
  background: #0F0F0F; border-radius: 16px;
  padding: 40px; display: flex; flex-direction: column; gap: 20px;
}

.cs-outcome .cs-block-label { color: var(--accent); }
.cs-outcome h3 { color: #fff; }
.cs-outcome p, .cs-outcome li { color: rgba(255,255,255,0.6); }
.cs-outcome ul li::before { color: var(--accent); }

/* Before/after */
.cs-before-after {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.cs-ba-card {
  border-radius: 12px; overflow: hidden;
  background: #ECECEC; min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}

.cs-ba-card img {
  width: 100%; height: auto; border-radius: 6px;
  object-fit: contain;
}

.cs-ba-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 8px;
}

/* Comparison table */
.cs-table {
  width: 100%; border-collapse: collapse;
  font-size: 15px;
}

.cs-table th {
  text-align: left; padding: 10px 16px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 2px solid rgba(0,0,0,0.08);
}

.cs-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: var(--text-secondary);
  line-height: 1.5;
}

.cs-table td:first-child {
  font-weight: 600; color: var(--text-primary); width: 28%;
}

.cs-table tr:last-child td { border-bottom: none; }

/* Phase labels */
.cs-phase {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 4px;
}

.cs-phase-num {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(247,99,62,0.08);
  padding: 3px 10px; border-radius: 20px;
}

.cs-phase-title {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-secondary);
}

/* Image placeholders */
.cs-img-placeholder {
  width: 100%; background: #F3F4F6;
  border-radius: 12px; padding: 32px 24px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; min-height: 180px;
  border: 1.5px dashed rgba(0,0,0,0.12);
  text-align: center; margin-top: 24px;
}

.cs-img-placeholder .cs-img-placeholder-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}

.cs-img-placeholder p {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.6; max-width: 480px; margin: 0;
}

code {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.875em;
  background: rgba(0,0,0,0.05);
  padding: 2px 6px; border-radius: 4px;
  color: var(--text-primary);
}

/* ─── MOBILE SECTION INDICATOR ───────────────────────────── */

.mobile-section-bar {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  z-index: 90;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 8px 20px;
  align-items: center;
  gap: 10px;
}

.mobile-section-count {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(247,99,62,0.08);
  padding: 3px 8px; border-radius: 20px;
  flex-shrink: 0;
}

.mobile-section-name {
  font-size: 13px; font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ─── WORK PAGE RESPONSIVE ───────────────────────────────── */

@media (max-width: 768px) {
  .cs-video-table {
    flex-direction: column;
  }
  .cs-video-table > div {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  .mobile-section-bar { display: flex; }

  .page-layout {
    flex-direction: column;
    padding: 0 20px;
    gap: 32px;
  }

  .page-header {
    padding-top: calc(var(--nav-height) + 44px + 48px);
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 48px;
    flex-direction: column;
    gap: 40px;
  }

  .page-header-img-wrap { width: 100%; }

  /* header image above the title, 20% smaller (zoom scales the circle and stacked screenshots together) */
  .page-header-img-wrap { order: -1; zoom: 0.8; width: 80%; margin: 60px auto 30px; }

  .cs-section { padding: 56px 0; }

.cs-tools { margin-top: 4px; }
  .cs-before-after { grid-template-columns: 1fr; }
  .cs-hook { font-size: 16px; }
  .cs-outcome { padding: 28px; }
  .cs-thumb { padding: 32px 20px; min-height: 200px; }

  /* image + title rows (inline flex in work-2026.html): stack image above text */
  .cs-intro-row { flex-direction: column; align-items: stretch !important; gap: 32px !important; }
  .cs-intro-row > .cs-thumb { flex: none !important; width: 100%; max-width: 100% !important; }

  /* section lead images 20% smaller */
  .cs-intro-row > .cs-thumb,
  #oao .cs-inner > .cs-thumb { width: 80% !important; max-width: 80% !important; margin: 0 auto; }
  #gratitude-tracker .gt-header-phone-wrap { zoom: 0.8; }
  #ciradar img[src*="bannerimage-ciradar"] { width: 80% !important; display: block; margin: 0 auto; }

  /* Phase 04 (Job Search OS): GIF directly under the title */
  .cs-phase-row { flex-direction: column; align-items: stretch !important; gap: 0 !important; }
  .cs-phase-row > .cs-phase-text { display: contents; }
  .cs-phase-row .cs-phase { order: 1; }
  .cs-phase-row h3 { order: 2; }
  .cs-phase-row > .cs-phase-media { order: 3; flex: none !important; max-width: 100% !important; margin: 16px 0; }
  .cs-phase-row > .cs-phase-text > p { order: 4; }
}

/* ─── WORK PAGE LOAD ANIMATIONS ──────────────────────────── */

@keyframes work-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-logo      { animation: work-fade-up 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) 0.0s  both; }
.nav-links     { animation: work-fade-up 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) 0.08s both; }
.linkedin-icon { animation: work-fade-up 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) 0.14s both; }

#oao .cs-meta  { animation: work-fade-up 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) 0.18s both; }
#oao .cs-title { animation: work-fade-up 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) 0.28s both; }
#oao .cs-tools { animation: work-fade-up 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) 0.38s both; }
#oao .cs-hook  { animation: work-fade-up 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) 0.48s both; }

@keyframes work-thumb-in {
  from { opacity: 0; transform: scale(0.96) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

#oao .cs-thumb { animation: work-thumb-in 0.7s cubic-bezier(0.25, 0.1, 0.25, 1) 0.5s both; }

@media (prefers-reduced-motion: reduce) {
  .nav-logo, .nav-links, .linkedin-icon,
  #oao .cs-meta, #oao .cs-title, #oao .cs-tools, #oao .cs-hook, #oao .cs-thumb {
    animation: none; opacity: 1; transform: none;
  }
}

/* ── Thumbnail Gallery ─────────────────────────────────────── */
.thumbnail-gallery {
  padding: 2.5rem 0;
  margin: 2rem 0;
}

.thumbnail-gallery-inner {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
}

.thumbnail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.thumbnail-gallery-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thumbnail-gallery-thumb {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.thumbnail-gallery-thumb:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

.thumbnail-gallery-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 500;
}

/* ── Personalization Section ─────────────────────────── */
#personalization-section {
  padding: 4rem 0 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}
#personalization-section.visible { opacity: 1; }

.personalization-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.welcome-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.company-logo {
  width: auto;
  max-width: 140px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  opacity: 1 !important;
}

.company-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

#personalized-welcome {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

#personalized-subhead {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
  transition: color 1s ease;
}

#personalized-fit {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

#personalized-rationale {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

#personalized-fit p,
#personalized-rationale p {
  margin: 0;
}
#personalized-fit p + p,
#personalized-rationale p + p {
  margin-top: 1em;
}

/* ── Personalization v2 layout ───────────────────────── */
#personalization-v2 {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.v2-logo-row {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

#v2-need-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.v2-thats-me {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0 0 2rem;
}

#v2-fit-body {
  width: 100%;
  text-align: left;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

#v2-fit-body p {
  margin: 0;
}
#v2-fit-body p + p {
  margin-top: 1em;
}

.v2-closing {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}

.recommended-cases {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.recommended-case-link {
  display: inline-block;
  padding: 7px 16px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 20px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.recommended-case-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
