/* ===========================
   Fidel Boamah — Portfolio
   (Global & Variables)
   =========================== */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Legacy/Subpage Variables */
  --bg: #ffffff;
  --bg-light: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #5f5f5f;
  --text-muted: #6f6f6f;
  --text-label: #6f6f6f;
  --pill-bg: #ffffff;
  --pill-active-bg: #1a1a1a;
  --pill-active-text: #ffffff;
  --pill-border: rgba(0, 0, 0, 0.1);
  --pill-shadow: 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  --line: rgba(0, 0, 0, 0.1);
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.1);
  --heading-color: #1a1a1a;
  --card-radius: 17px;
  --max-width: 1440px;
  --content-width: 1310px;
  --img-frame-bg: #F6F6F6;
  --img-frame-text: #666666;
  --toggle-bg: #ffffff;
  --accent: #f5e2ff;
  --featured-border: rgba(0, 0, 0, 0.12);

  /* New Homepage Variables */
  --home-bg: #ffffff;
  --home-text: #111111;
  --home-text-muted: #666666;
  --home-border: #eaeaea;
  --btn-bg: #111111;
  --btn-text: #ffffff;
  --btn-outline: #e5e5e5;
  --card-purple: #f4f3ff;
  --card-blue: #f0f7ff;
  --card-pink: #fff0f2;
  --card-green: #f0fdf4;
}

body.dark-mode {
  /* Legacy/Subpage Dark Mode */
  --bg: #141414;
  --bg-light: #141414;
  --text-primary: #f5f5f5;
  --text-secondary: #b0b0b0;
  --text-muted: #8a8a8a;
  --text-label: #8a8a8a;
  --pill-bg: rgba(255, 255, 255, 0.06);
  --pill-active-bg: #f5f5f5;
  --pill-active-text: #141414;
  --pill-border: rgba(255, 255, 255, 0.1);
  --pill-shadow: 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  --line: rgba(255, 255, 255, 0.1);
  --card-bg: #1f1f1f;
  --card-border: rgba(255, 255, 255, 0.1);
  --heading-color: #f5f5f5;
  --img-frame-bg: #1f1f1f;
  --img-frame-text: #8a8a8a;
  --toggle-bg: #1f1f1f;
  --accent: rgba(216, 160, 255, 0.35);
  --featured-border: rgba(255, 255, 255, 0.1);

  /* New Homepage Dark Mode */
  --home-bg: #0d0d0d;
  --home-text: #f5f5f5;
  --home-text-muted: #a0a0a0;
  --home-border: #2a2a2a;
  --btn-bg: #ffffff;
  --btn-text: #111111;
  --btn-outline: #333333;
  --card-purple: #1b1a29;
  --card-blue: #161e2b;
  --card-pink: #2b1a1c;
  --card-green: #1a241c;
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none !important; }
html { scroll-behavior: smooth; }

/* ── Custom cursor ── */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: rgba(107, 115, 255, 0.4);
  margin-left: -14.5px;
  margin-top: -14.5px;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  will-change: transform;
  transition: opacity 0.3s ease, width 0.3s cubic-bezier(0.22, 1, 0.36, 1), height 0.3s cubic-bezier(0.22, 1, 0.36, 1), margin 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cursor-ring--hover {
  width: 42px;
  height: 42px;
  margin-left: -21px;
  margin-top: -21px;
  opacity: 0.35 !important;
}

/* Label state: pill with text (e.g. "About me →" over the portrait) */
.cursor-ring .cursor-label {
  display: none;
  color: #ffffff;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

.cursor-ring--label {
  width: max-content;
  height: 36px;
  padding: 0 16px;
  margin: 0;
  translate: -50% -50%;
  border-radius: 99px;
  background: #111111;
  opacity: 1 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-ring--label .cursor-label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cursor-label svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Click pulse */
.cursor-ring--click {
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
}

/* Touch devices: restore default cursor */
@media (pointer: coarse) {
  * { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none; }
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Satoshi", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; }

/* ===========================
   NEW HOMEPAGE STYLES
   =========================== */

body.home-page {
  background: var(--home-bg);
  color: var(--home-text);
  overflow-x: hidden;
}

/* Home Header (shared across all pages) */
.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  max-width: 1360px;
  margin: 0 auto;
}

.home-header-left, .home-header-right {
  display: flex;
  align-items: center;
  flex: 1;
}

.home-header-right {
  justify-content: flex-end;
  gap: 16px;
}

.home-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.home-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--home-text);
  color: var(--home-bg);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

/* ── Vertical site menu ── */
.home-header { position: relative; z-index: 200; }

.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--home-border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--home-text);
  transition: background 0.2s ease;
}

.menu-toggle:hover { background: var(--btn-outline); }
.menu-toggle svg { width: 18px; height: 18px; }

.site-menu {
  position: absolute;
  top: calc(100% - 12px);
  right: 48px;
  display: none;
  flex-direction: column;
  min-width: 200px;
  background: var(--home-bg);
  border: 1px solid var(--home-border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.18);
  z-index: 300;
}

body.dark-mode .site-menu { box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6); }

.site-menu.open { display: flex; }

.site-menu a,
.site-menu .menu-theme {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--home-text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s ease;
}

.site-menu a:hover,
.site-menu .menu-theme:hover { background: var(--btn-outline); }

.site-menu .menu-theme {
  margin-top: 8px;
  border-top: 1px solid var(--home-border);
  border-radius: 0 0 10px 10px;
  padding-top: 14px;
  color: var(--home-text-muted);
}

.menu-theme svg { width: 16px; height: 16px; }
.menu-theme .icon-sun { display: none; }
.menu-theme .menu-theme-label-light { display: none; }
body.dark-mode .menu-theme .icon-moon { display: none; }
body.dark-mode .menu-theme .icon-sun { display: block; }
body.dark-mode .menu-theme .menu-theme-label-dark { display: none; }
body.dark-mode .menu-theme .menu-theme-label-light { display: inline; }

@media (max-width: 768px) {
  .site-menu { right: 24px; }
}

.home-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 15px;
  color: var(--home-text-muted);
}

.home-nav a { position: relative; transition: color 0.2s ease; }
.home-nav a:hover, .home-nav a.active { color: var(--home-text); }

.nav-dot {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--home-text);
  border-radius: 50%;
}

/* Home Theme Button (Matched to Footer Socials) */
.home-theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--home-border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--home-text);
  transition: background 0.2s ease;
}

.home-theme-btn:hover {
  background: var(--btn-outline);
}

.home-theme-btn svg { width: 18px; height: 18px; }
.home-theme-btn .icon-sun { display: none; }
body.dark-mode .home-theme-btn .icon-moon { display: none; }
body.dark-mode .home-theme-btn .icon-sun { display: block; }

/* Buttons */
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 12px 24px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover { opacity: 0.9; transform: scale(1.02); }
.btn-primary svg { width: 14px; height: 14px; }

/* Bouncing arrow on the "View my work" button */
.btn-scroll-hint svg {
  animation: arrow-bounce 1.6s ease-in-out infinite;
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-scroll-hint svg { animation: none; }
}

.btn-secondary {
  background: transparent;
  color: var(--home-text);
  border: 1px solid var(--btn-outline);
  padding: 12px 24px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.btn-secondary:hover { background: rgba(0,0,0,0.03); }
body.dark-mode .btn-secondary:hover { background: rgba(255,255,255,0.05); }
.btn-secondary svg { width: 16px; height: 16px; }

/* Home Hero */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1360px;
  min-height: 74vh;
  margin: 0 auto;
  padding: 0 48px;
  gap: 60px;
}

.hero-eyebrow {
  font-size: 20px;
  line-height: 1.5;
  color: var(--home-text-muted);
  margin-bottom: 16px;
}

.home-hero-content {
  max-width: 600px;
  animation: hero-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

.badge-klaviyo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(240, 63, 33, 0.12);
  color: #C42E14;
  font-size: 13px;
  font-weight: 500;
  border-radius: 99px;
  margin-bottom: 24px;
  white-space: nowrap;
}

.badge-klaviyo a {
  color: #C42E14;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.dark-mode .badge-klaviyo {
  background: #D4361D;
  color: #ffffff;
}

body.dark-mode .badge-klaviyo a {
  color: #ffffff;
}

.home-hero h1 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.text-gradient-1 {
  background: linear-gradient(90deg, #6b73ff 0%, #a272ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-2 {
  background: linear-gradient(90deg, #ff6b9e 0%, #ff9a6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-subtitle {
  font-size: 20px;
  line-height: 1.5;
  color: var(--home-text-muted);
  margin-bottom: 40px;
  max-width: 480px;
}

.subtitle-link {
  color: var(--home-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.home-skills {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--home-text-muted);
}

.home-skills span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Skills strip above the footer */
.home-skills-strip {
  justify-content: center;
  gap: 40px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px 48px;
}

@media (max-width: 768px) {
  .home-skills-strip { gap: 20px; padding: 0 24px 40px; }
}

.home-hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  animation: hero-rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
  opacity: 0;
}

@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.hero-portrait-link {
  position: relative;
  display: block;
  width: 85%;
  max-width: 440px;
  transition: transform 0.3s ease;
}

.hero-portrait-link::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(from var(--glow-angle),
    #3b82f6, #22d3ee, #34d399, #4ade80, #22d3ee, #3b82f6);
  filter: blur(26px);
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 0;
  animation: glow-intro 2.6s ease-in-out 0.9s 1 both;
}

/* Brief glow pulse when the page loads */
@keyframes glow-intro {
  0% { opacity: 0; --glow-angle: 0deg; }
  35% { opacity: 0.75; }
  65% { opacity: 0.75; }
  100% { opacity: 0; --glow-angle: 180deg; }
}

.hero-portrait-link:hover {
  transform: translateY(-4px);
}

.hero-portrait-link:hover::before {
  opacity: 0.75;
  animation: glow-spin 4s linear infinite;
}

@keyframes glow-spin {
  to { --glow-angle: 360deg; }
}

.hero-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 50%;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.1);
}

body.dark-mode .hero-portrait {
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.6);
}

/* Home Work Section */
.home-work-section {
  padding: 48px 48px 80px;
  max-width: 1360px;
  margin: 0 auto;
  scroll-margin-top: 24px;
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.work-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--home-text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.work-header h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.view-all-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--home-text);
  transition: opacity 0.2s ease;
}

.view-all-link:hover { opacity: 0.6; }

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.home-card {
  position: relative;
  border-radius: 24px;
  height: 480px;
  display: flex;
  overflow: hidden;
  padding: 48px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.home-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.1);
}

body.dark-mode .home-card:hover {
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.5);
}

/* Featured wide card (spans both columns) */
.home-card-wide {
  grid-column: 1 / -1;
}

.home-card-wide .card-content {
  flex: 0 0 340px;
}

.home-card-wide .card-meta {
  flex-wrap: nowrap;
  gap: 32px;
  white-space: nowrap;
}

.home-card-wide .card-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--home-text);
  opacity: 0.85;
  max-width: 100%;
}

.home-card-wide .card-visual {
  width: 62%;
  height: 100%;
  right: -3%;
  bottom: -5%;
}

.bg-purple { background: var(--card-purple); }
.bg-blue { background: var(--card-blue); }
.bg-pink { background: var(--card-pink); }
.bg-green { background: var(--card-green); }

.card-content {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.card-company {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--home-text-muted);
  margin-bottom: 16px;
}

.card-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--home-text);
}

.card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--home-text-muted);
  margin-bottom: auto;
  max-width: 90%;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
}

/* On devices with a fine pointer the cursor pill replaces the static
   "View Case Study" text; keep "Coming Soon" visible everywhere. */
@media (hover: hover) and (pointer: fine) {
  .card-link:not(.card-link--soon) { display: none; }
}

/* Case study meta (Company / Role / Timeline) on the featured card */
.card-meta {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.card-meta-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--home-text-muted);
  margin-bottom: 5px;
}

.card-meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--home-text);
}

.home-card-wide .card-link { margin-top: 20px; }

.arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--home-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.home-card:hover .arrow-circle {
  transform: translateX(4px);
}

.card-visual {
  position: absolute;
  right: -5%;
  bottom: -5%;
  width: 60%;
  height: 85%;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  border-radius: 12px;
  box-shadow: -10px 10px 30px rgba(0,0,0,0.1);
  transform: perspective(1000px) rotateY(-12deg) rotateX(4deg) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-card:hover .card-visual img {
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg) translateY(0px) scale(1.02);
}

/* Home Contact Section */
.home-contact {
  max-width: 1360px;
  margin: 0 auto;
  padding: 80px 48px 120px;
}

.home-contact-heading {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--home-text);
  margin-bottom: 16px;
}

.home-contact-sub {
  font-size: 17px;
  color: var(--home-text-muted);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 36px;
}

.home-contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .home-contact { padding: 60px 24px 80px; }
  .home-contact-actions { flex-direction: column; }
  .home-contact-actions a { width: 100%; justify-content: center; }
}

/* Home Footer */
.home-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 48px;
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid var(--home-border);
}

.footer-socials {
  display: flex;
  gap: 16px;
  flex: 1;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--home-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: background 0.2s ease;
}

.footer-socials a:hover {
  background: var(--btn-outline);
}

.footer-copy {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--home-text-muted);
}

/* Homepage footer has no social icons; keep the copyright centered */
body.home-page .home-footer { justify-content: center; }

.footer-credits a {
  text-decoration: underline;
}

.footer-spacer {
  flex: 1;
}

/* Home Responsive */
@media (max-width: 1024px) {
  .home-hero { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .home-hero-content { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
  .home-hero h1 { font-size: 56px; }
  .home-hero-visual { display: none; }
  .home-subtitle { max-width: 600px; }
  .home-skills { justify-content: center; }
  .home-grid { grid-template-columns: 1fr; }
  .home-card { height: 400px; }
}

@media (max-width: 768px) {
  .home-header { padding: 24px; flex-wrap: wrap; gap: 20px; justify-content: center; }
  .home-header-left, .home-header-right { flex: none; }
  .home-nav { order: 3; width: 100%; margin-top: 16px; }
  .home-hero { padding: 0 24px; margin-top: 20px; }
  .home-hero h1 { font-size: 40px; }
  .home-work-section { padding: 60px 24px; }
  .home-card { height: auto; flex-direction: column; padding: 32px; }
  .card-content { flex: auto; margin-bottom: 240px; }
  .card-visual { width: 90%; right: -10%; bottom: -40px; height: 280px; }
  .home-footer { flex-direction: column; gap: 24px; padding: 40px 24px; }
  .footer-socials { justify-content: center; }
}

/* ===========================
   LEGACY/SUBPAGE STYLES
   (Untouched to preserve Case Studies & About)
   =========================== */

/* Shared Subpage Nav */
.cs-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 51px 24px 0;
  z-index: 10;
}

.logo { grid-column: 1; justify-self: start; display: flex; width: 44px; height: 44px; transition: transform 0.2s ease; }
.logo:hover { transform: scale(1.05); }
.logo svg { width: 100%; height: 100%; }
.logo .oct { fill: var(--pill-active-bg); stroke: var(--pill-active-bg); transition: fill 0.3s ease, stroke 0.3s ease; }
.logo text { fill: var(--pill-active-text); font-family: "Satoshi", system-ui, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.5px; transition: fill 0.3s ease; }

.cs-nav-pill { grid-column: 2; display: flex; gap: 4px; align-items: center; background: var(--pill-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--pill-border); border-radius: 9999px; padding: 4px; box-shadow: var(--pill-shadow); transition: background 0.3s ease, border-color 0.3s ease; }
.cs-nav-pill a { height: 34px; display: flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 9999px; font-weight: 500; font-size: 14px; color: var(--text-label); transition: background 0.2s ease, color 0.2s ease; }
.cs-nav-pill a:not(.active):hover { color: var(--text-primary); background: rgba(0,0,0,0.03); }
body.dark-mode .cs-nav-pill a:not(.active):hover { background: rgba(255,255,255,0.05); }
.cs-nav-pill a.active { background: var(--pill-active-bg); color: var(--pill-active-text); }

.cs-theme-toggle { grid-column: 3; justify-self: end; width: 40px; height: 40px; background: none; border: 1px solid transparent; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.cs-theme-toggle:hover { background: var(--pill-bg); border-color: var(--pill-border); }
.cs-theme-toggle svg { width: 18px; height: 18px; color: var(--text-primary); fill: none; stroke: currentColor; stroke-width: 1.8; }
.cs-theme-toggle .icon-sun { display: none; }
body.dark-mode .cs-theme-toggle .icon-moon { display: none; }
body.dark-mode .cs-theme-toggle .icon-sun { display: block; }

/* Case Study Pages */
body.case-study { background: var(--bg-light); color: var(--heading-color); }
body.case-study.dark-mode { color: var(--text-primary); }
.cs-hero { max-width: 852px; margin: 0 auto; padding: 96px 24px 48px; }
.cs-hero h1 { font-family: "Satoshi", system-ui, sans-serif; font-weight: 500; font-size: 42px; letter-spacing: -2.1px; color: var(--text-primary); margin-bottom: 32px; }
.cs-hero-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.cs-meta-table .label { font-family: "Satoshi", system-ui, sans-serif; font-weight: 700; font-size: 15px; color: var(--text-label); margin-top: 18px; }
.cs-meta-table .label:first-child { margin-top: 0; }
.cs-meta-table .value { font-size: 21px; letter-spacing: -0.17px; line-height: 1.625; color: var(--text-muted); margin-bottom: 4px; }
.cs-hero-text .label { font-family: "Satoshi", system-ui, sans-serif; font-weight: 700; font-size: 15px; color: var(--text-label); margin-bottom: 12px; display: block; }
.cs-hero-text p { font-size: 21px; letter-spacing: -0.17px; line-height: 1.625; color: var(--text-primary); margin-bottom: 28px; }
.cs-hero-text p:last-child { margin-bottom: 0; }
.cs-divider { border: none; border-top: 1px solid var(--line); max-width: 1100px; margin: 0 auto; }
.cs-cta { display: inline-block; margin: 56px auto 0; padding: 18px 40px; border: 1px solid var(--card-border); border-radius: 44px; background: var(--card-bg); color: var(--text-primary); font-family: "Satoshi", system-ui, sans-serif; font-weight: 500; font-size: 15px; text-align: center; transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
.cs-cta:hover { background: var(--pill-active-bg); border-color: var(--pill-active-bg); color: var(--pill-active-text); }
.cs-cta-wrap { text-align: left; margin-top: 32px; }
.cs-content { max-width: 852px; margin: 0 auto; padding: 0 24px 112px; display: flex; flex-direction: column; gap: 75px; }
.cs-section { scroll-margin-top: 32px; }
.cs-section .eyebrow { font-family: "Satoshi", system-ui, sans-serif; font-weight: 700; font-size: 15px; color: var(--text-label); margin-bottom: 10px; display: block; }
.cs-section h2 { font-family: "Satoshi", system-ui, sans-serif; font-weight: 500; font-size: 32px; letter-spacing: -0.64px; line-height: 1.25; margin-bottom: 32px; color: var(--heading-color); }
.cs-section h3 { font-family: "Satoshi", system-ui, sans-serif; font-weight: 500; font-size: 26px; letter-spacing: -0.52px; line-height: 1.2; margin-top: 64px; margin-bottom: 20px; color: var(--heading-color); }
.cs-section h2 + h3, .cs-section h3:first-child { margin-top: 0; }
.cs-section p { font-size: 21px; letter-spacing: -0.17px; line-height: 1.625; margin-bottom: 28px; color: var(--text-primary); }
.cs-section p:last-child { margin-bottom: 0; }
.cs-section img, .cs-section .img-frame { width: 100%; border-radius: 15px; box-shadow: 0 0 22.1px 0 rgba(0, 0, 0, 0.05); margin: 40px 0; object-fit: cover; background: var(--img-frame-bg); color: var(--img-frame-text); transition: background 0.25s ease, color 0.25s ease; }
video.img-frame { display: block; }
.img-frame.placeholder { display: flex; align-items: center; justify-content: center; font-size: 14px; }
.cs-section img.on-dark { background: #1b1b1f; padding: 28px; box-sizing: border-box; object-fit: contain; border: 1px solid rgba(255, 255, 255, 0.08); }
.cs-caption { font-family: "Satoshi", system-ui, sans-serif; font-weight: 500; font-size: 13px; letter-spacing: -0.65px; color: var(--text-label); text-align: right; margin-top: -16px; margin-bottom: 24px; }
.cs-row { display: flex; gap: 65px; align-items: flex-start; margin-top: 16px; }
.cs-row > * { flex: 1; }
.cs-row img, .cs-row .img-frame { margin: 0; border-radius: 15px; flex: 0 0 340px; width: 340px; min-width: 0; }
.cs-cards { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.cs-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 24px; padding: 42px; transition: background 0.25s ease, border-color 0.25s ease; }
.cs-card.accent { border-left: 4px solid var(--accent); }
.cs-card h4 { font-family: "Satoshi", system-ui, sans-serif; font-weight: 600; font-size: 20px; color: var(--text-secondary); margin-bottom: 16px; }
.cs-card p { font-size: 16px; letter-spacing: normal; line-height: 1.6; color: var(--text-primary); margin: 0; }
.cs-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
.cs-cards-grid .cs-card { display: flex; flex-direction: column; gap: 12px; }
.cs-emoji-cards { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.cs-emoji-cards + h3 { margin-top: 32px; }
.cs-emoji-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 24px; padding: 42px; display: flex; align-items: center; gap: 24px; transition: background 0.25s ease, border-color 0.25s ease; }
.cs-emoji-card .emoji { font-size: 64px; flex-shrink: 0; }
.cs-emoji-card h4 { font-family: "Satoshi", system-ui, sans-serif; font-weight: 600; font-size: 20px; color: var(--text-secondary); margin-bottom: 8px; }
.cs-emoji-card p { font-size: 16px; letter-spacing: normal; line-height: 1.6; color: var(--text-primary); margin: 0; }
.cs-ordered { font-family: "Satoshi", system-ui, sans-serif; font-weight: 500; font-size: 28px; letter-spacing: -1.4px; line-height: 1.5; margin: 64px 0 28px 28px; color: var(--heading-color); }
.cs-ordered ~ .cs-ordered { margin-top: 96px; }
.cs-section > .cs-card { margin: 40px 0 48px; }
.cs-section > .cs-card p { font-size: 21px; letter-spacing: -0.17px; line-height: 1.6; }

/* Diagrams */
.cs-diagram { padding: 32px; color: var(--heading-color); }
.cs-diagram .dg-title { font-family: "Satoshi", system-ui, sans-serif; font-weight: 700; font-size: 15px; color: var(--text-label); margin-bottom: 28px; }
.cs-diagram .dg-row { display: flex; align-items: center; justify-content: space-around; gap: 16px; padding-bottom: 8px; }
.cs-diagram .dg-item { text-align: center; }
.cs-diagram .dg-braces { display: block; height: 56px; line-height: 56px; font-size: 46px; font-weight: 300; }
.cs-diagram .dg-atom { display: block; width: 56px; height: 56px; margin: 0 auto; }
.cs-diagram .dg-label { font-family: "Satoshi", system-ui, sans-serif; font-weight: 500; font-size: 16px; margin-top: 14px; color: var(--text-primary); }
.cs-diagram .dg-arrow { font-size: 28px; color: var(--text-muted); }
.cs-diagram .dg-figure { font-family: "Satoshi", system-ui, sans-serif; font-weight: 700; font-size: 56px; letter-spacing: -2px; line-height: 1.15; margin-bottom: 10px; }
.cs-diagram .dg-sub { font-size: 16px; color: var(--text-muted); }

/* Maturity Scale Component */
.maturity-scale { position: relative; display: flex; justify-content: space-between; gap: 32px; padding: 56px 48px 40px; margin: 40px 0; border-radius: 15px; background: var(--img-frame-bg); transition: background 0.25s ease; }
.ms-title { position: absolute; top: 112px; left: 0; right: 0; text-align: center; font-family: "Satoshi", system-ui, sans-serif; font-weight: 700; font-size: 16px; color: var(--heading-color); }
.ms-axis { position: absolute; left: 28px; right: 28px; top: 144px; height: 1.5px; background: var(--text-muted); opacity: 0.55; color: var(--text-muted); }
.ms-axis::before, .ms-axis::after { content: ""; position: absolute; top: -4.5px; width: 10px; height: 10px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.ms-axis::before { left: 0; transform: rotate(45deg); }
.ms-axis::after { right: 0; transform: rotate(-135deg); }
.ms-end { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; max-width: 250px; }
.ms-card { width: 100%; border-radius: 24px; padding: 30px 20px; text-align: center; color: #1a1a1a; }
.ms-card--smb { background: #d8b491; }
.ms-card--ent { background: #c8dbf7; }
.ms-icon { display: block; width: 46px; height: 46px; margin: 0 auto 18px; }
.ms-name { font-family: "Satoshi", system-ui, sans-serif; font-weight: 700; font-size: 17px; }
.ms-events { font-size: 13.5px; margin-top: 4px; }
.ms-label { font-family: "Satoshi", system-ui, sans-serif; font-weight: 700; font-size: 16px; margin-top: 22px; color: var(--heading-color); }
.ms-quote { font-size: 16px; line-height: 1.45; margin-top: 10px; text-align: center; color: var(--text-secondary); }

/* About Page */
.about-hero { max-width: 1100px; margin: 0 auto; padding: 72px 48px 64px; border-bottom: 1px solid var(--line); }
.about-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; font-weight: 700; line-height: 1.1; margin-top: 16px; margin-bottom: 28px; }
.about-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 64px; align-items: center; }
.about-text { width: 100%; }
.about-portrait { width: 100%; max-width: 400px; justify-self: end; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 16px; }
.about-hero .eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.about-intro p { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.7; color: var(--text-secondary); margin-bottom: 20px; letter-spacing: -0.01em; }
.about-intro p:last-child { margin-bottom: 0; }
.about-intro p a { text-decoration: underline; text-decoration-skip-ink: none; }
.about-stats .stat-num { font-family: "Satoshi", system-ui, sans-serif; font-weight: 700; font-size: 44px; letter-spacing: -1.5px; line-height: 1.1; color: var(--heading-color); }
.cs-section a:not(.cs-cta) { text-decoration: underline; text-decoration-skip-ink: none; }

/* Subpage Footer */
.site-footer { text-align: center; padding: 40px 24px 80px; border-top: 1px solid var(--line); max-width: var(--content-width); margin: 0 auto; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 15px; font-weight: 500; margin-bottom: 20px; }
.footer-links a { color: var(--text-primary); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--text-muted); }
.footer-avail { font-size: 16px; font-weight: 500; color: var(--heading-color); margin-bottom: 24px; }
.footer-copy { font-size: 14px; color: var(--text-muted); }

/* Subpage Responsive */
@media (max-width: 900px) {
  .cs-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-hero { padding: 48px 24px 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-portrait { order: -1; width: 100%; max-width: 340px; aspect-ratio: 1 / 1; object-position: center 15%; }
  .cs-row { flex-direction: column; }
  .cs-row img { flex: none; }
  .cs-cards-grid { grid-template-columns: 1fr; }
  .maturity-scale { flex-direction: column; align-items: center; gap: 40px; padding: 40px 24px 32px; }
  .ms-title { position: static; margin-bottom: -8px; }
  .ms-axis { display: none; }
}

@media (max-width: 600px) {
  .about-hero { padding: 36px 20px 40px; }
  .about-hero h1 { font-size: 32px; }
  .about-intro p { font-size: 16px; }
  .about-section { padding: 40px 20px; }
  .about-stats-grid { grid-template-columns: 1fr 1fr; }
  .about-stat-cell { padding: 24px 20px; }
  .about-stat-num { font-size: 26px; }
  .about-row { gap: 16px; padding: 20px 0; }
  .about-row-logo { width: 40px; height: 40px; border-radius: 10px; }
  .about-cta { flex-direction: column; }
  .about-cta .btn-primary,
  .about-cta .btn-secondary { width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
  .cs-hero h1 { font-size: 32px; letter-spacing: -1.4px; }
  .cs-card, .cs-emoji-card { padding: 28px; }
  .cs-emoji-card .emoji { font-size: 44px; }
  .cs-ordered { font-size: 22px; letter-spacing: -0.9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ===========================
   CASE STUDY v2 — SoFi-inspired layout
   Used by ai-insights.html
   =========================== */

/* Hero */
.cs2-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 48px 56px;
  text-align: center;
}

.cs2-hero-labels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.cs2-hero-labels span { line-height: 1; }

.cs2-hero h1 {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.cs2-hero-sub {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 52px;
  letter-spacing: -0.01em;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.cs2-hero-media {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--img-frame-bg);
}

.cs2-hero-media img,
.cs2-hero-media video {
  width: 100%;
  height: auto;
  display: block;
}

/* Meta strip */
.cs2-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
}

.cs2-meta-item {
  padding: 36px 0;
  padding-right: 32px;
  border-right: 1px solid var(--line);
}

.cs2-meta-item:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 32px;
}

.cs2-meta-item:not(:first-child):not(:last-child) {
  padding-left: 32px;
}

.cs2-meta-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cs2-meta-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Sections */
.cs2-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 48px;
  border-bottom: 1px solid var(--line);
}

.cs2-section:last-of-type { border-bottom: none; }

.cs2-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cs2-section h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--heading-color);
  margin-bottom: 24px;
}

.cs2-section > p,
.cs2-body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.cs2-section > p:last-child { margin-bottom: 0; }

/* Media blocks */
.cs2-media {
  width: 100%;
  margin: 40px 0;
}

.cs2-media img,
.cs2-media video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 0.75px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .cs2-media img,
body.dark-mode .cs2-media video {
  border-color: rgba(255, 255, 255, 0.1);
}

.cs2-media-caption {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 12px;
  padding: 0 4px 8px;
  letter-spacing: -0.01em;
}

/* TL;DR — lead text */
.cs2-lead {
  font-size: 21px;
  line-height: 1.65;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 52px;
  letter-spacing: -0.015em;
}

/* Numbered accomplishments */
.cs2-accomplishments {
  border-top: 1px solid var(--line);
  margin-bottom: 48px;
}

.cs2-accomplishment {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 28px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.cs2-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-top: 3px;
}

.cs2-accomplishment h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.cs2-accomplishment p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 100%;
}

/* HMW callout */
.cs2-hmw {
  background: var(--img-frame-bg);
  border-radius: 16px;
  padding: 36px 40px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.cs2-hmw-icon { font-size: 26px; flex-shrink: 0; line-height: 1.2; }

.cs2-hmw p {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-primary);
  font-style: italic;
  margin: 0;
  max-width: 100%;
  letter-spacing: -0.01em;
}

/* Quote grid */
.cs2-quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.cs2-quote {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--heading-color);
  border-radius: 12px;
  padding: 28px;
}

.cs2-quote-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 14px;
}

.cs2-quote-attr {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Strategy rows */
.cs2-strategies {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.cs2-strategy {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.cs2-strategy-icon { font-size: 36px; line-height: 1; }

.cs2-strategy h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cs2-strategy p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* Insight card */
.cs2-insight {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px 36px;
  margin: 32px 0;
}

.cs2-insight p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-primary);
  margin: 0;
  max-width: 100%;
}

.cs2-insight strong { color: var(--heading-color); }

/* Problem grid */
.cs2-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.cs2-problem-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 28px;
}

.cs2-problem-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cs2-problem-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Numbered features */
.cs2-features { display: flex; flex-direction: column; gap: 72px; margin-top: 56px; }

.cs2-feature-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cs2-feature h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading-color);
  margin-bottom: 14px;
}

.cs2-feature p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Final design items */
.cs2-final-items { display: flex; flex-direction: column; gap: 72px; margin-top: 56px; }

.cs2-final-item h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}

.cs2-final-item .cs2-goal {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  font-style: normal;
}

/* Impact stats */
.cs2-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin: 40px 0;
}

.cs2-stat {
  padding: 40px;
  border-right: 1px solid var(--line);
}

.cs2-stat:last-child { border-right: none; }

.cs2-stat-num {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.cs2-stat-label {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Next up */
.cs2-next {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 48px;
}

.cs2-next-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cs2-next-card {
  display: block;
  background: var(--img-frame-bg);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.cs2-next-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.12);
}

body.dark-mode .cs2-next-card:hover {
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.5);
}

.cs2-next-card img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.cs2-next-info {
  padding: 28px 32px 32px;
}

.cs2-next-info-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.cs2-next-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.cs2-next-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* CS2 Responsive */
@media (max-width: 960px) {
  .cs2-hero { padding: 56px 24px 0; }
  .cs2-meta-strip { grid-template-columns: repeat(2, 1fr); padding: 0 24px; }
  .cs2-meta-item:nth-child(2) { border-right: none; padding-right: 0; }
  .cs2-meta-item:nth-child(3) { padding-left: 0; border-left: none; }
  .cs2-meta-item:last-child { padding-left: 0; border-right: none; border-left: none; }
  .cs2-meta-item { padding: 28px 0; border-right: none; padding-right: 0; }
  .cs2-meta-item:not(:first-child):not(:last-child) { padding-left: 0; }
  .cs2-meta-strip { gap: 0; row-gap: 0; }
  .cs2-meta-item:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 24px; }
  .cs2-meta-item:nth-child(even) { padding-left: 24px; }
  .cs2-section { padding: 60px 24px; }
  .cs2-next { padding: 60px 24px; }
  .cs2-quote-grid { grid-template-columns: 1fr; }
  .cs2-problem-grid { grid-template-columns: 1fr; }
  .cs2-strategy { grid-template-columns: 1fr; gap: 12px; }
  .cs2-strategy-icon { font-size: 28px; }
  .cs2-stats { grid-template-columns: 1fr; border-radius: 14px; }
  .cs2-stat { border-right: none; border-bottom: 1px solid var(--line); padding: 28px; }
  .cs2-stat:last-child { border-bottom: none; }
  .cs2-hmw { padding: 28px; }
  .cs2-insight { padding: 24px 28px; }
}

/* Two-column text + diagram layout */
.cs2-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 32px;
}

.cs2-two-col > p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  margin: 0;
}

/* Inline diagram */
.cs2-diagram-box {
  background: var(--img-frame-bg);
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.cs2-diagram-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cs2-diagram-row {
  display: flex;
  align-items: center;
  gap: 28px;
}

.cs2-diagram-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cs2-diagram-braces {
  font-size: 52px;
  font-weight: 300;
  line-height: 1;
  color: var(--heading-color);
  letter-spacing: -4px;
  font-family: "Satoshi", monospace;
}

.cs2-diagram-icon {
  width: 56px;
  height: 56px;
  color: var(--heading-color);
}

.cs2-diagram-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading-color);
  letter-spacing: -0.01em;
}

.cs2-diagram-arrow {
  font-size: 28px;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 32px;
}

@media (max-width: 960px) {
  .cs2-two-col { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .cs2-hero h1 { letter-spacing: -0.03em; }
  .cs2-hero-sub { font-size: 17px; margin-bottom: 36px; }
  .cs2-lead { font-size: 18px; }
  .cs2-stat-num { font-size: 40px; }
  .cs2-accomplishment { grid-template-columns: 28px 1fr; gap: 16px; }
  .cs2-next-card img { aspect-ratio: 16 / 9; }
}

/* ===========================
   ABOUT PAGE — Experience / Education rows
   Inspired by ggkim.com/about
   =========================== */

.about-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 48px;
}

.about-section-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.about-section h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.about-section > p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.about-section > p:last-child { margin-bottom: 0; }

/* Experience / Education rows */
.about-rows {
  margin-top: 40px;
}

.about-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
}

.about-row-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--img-frame-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  color: var(--text-muted);
  letter-spacing: -0.5px;
}

.about-row-logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.about-row-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.about-row-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.about-row-year {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Experience: project write-ups under each company */
.about-entry {
  margin-bottom: 24px;
}

.about-projects {
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-project h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.about-project h5 a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-skip-ink: none;
}

.about-project p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Book & music shelves */
.about-shelf-heading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--heading-color);
  margin: 64px 0 24px;
}

.about-shelf-heading a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-shelf-music { grid-template-columns: repeat(3, 1fr); }

.about-shelf-item {
  display: block;
  margin: 0;
}

.about-shelf-item img {
  width: 100%;
  border-radius: 12px;
  background: var(--img-frame-bg);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-shelf-books .about-shelf-item img { aspect-ratio: 2 / 3; object-fit: cover; }
.about-shelf-music .about-shelf-item img { aspect-ratio: 1 / 1; object-fit: cover; }

.about-shelf-item:hover img { transform: translateY(-4px); }

.about-shelf-item figcaption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--heading-color);
  line-height: 1.4;
}

.about-shelf-item figcaption span {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .about-shelf { grid-template-columns: repeat(2, 1fr); }
  .about-shelf-music { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .about-shelf-music { grid-template-columns: repeat(2, 1fr); }
}

/* Skills tags */
.about-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.about-skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: var(--img-frame-bg);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  border-radius: 99px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Currently / fun facts */
.about-currently {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.about-currently-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.about-currently-item span:first-child { font-size: 20px; flex-shrink: 0; }

.about-currently-item a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-skip-ink: none;
}

/* Currently section: text + Strava tile side by side */
.about-currently-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 72px;
  align-items: center;
}

.about-currently-grid .strava-tile {
  margin-top: 0;
}

@media (max-width: 900px) {
  .about-currently-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-currently-grid .strava-tile { margin-top: 0; }
}

/* Strava activity tile */
.strava-tile {
  position: relative;
  display: block;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 32px;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.strava-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
}

.strava-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.strava-stats {
  position: absolute;
  left: 22px;
  bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #FC5200;
}

.strava-dist {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.strava-elev {
  font-size: 15px;
  font-weight: 700;
}

.strava-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #FC5200;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.strava-badge svg { width: 30px; height: 30px; }

.strava-tile:hover .strava-badge { transform: scale(1.06); }

/* About stats inline */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 40px;
}

.about-stat-cell {
  padding: 32px;
  border-right: 1px solid var(--line);
}

.about-stat-cell:last-child { border-right: none; }

.about-stat-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--heading-color);
  margin-bottom: 8px;
}

.about-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* CTA block */
.about-cta {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Experience (danielamuntyan.com-style) ── */
.about-exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 680px;
  margin-bottom: 40px;
}

.about-exp-heading {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--heading-color);
  margin-bottom: 0;
}

.about-exp {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 680px;
}

@media (max-width: 600px) {
  .about-exp-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}

.about-exp-years {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.about-exp-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.about-exp-entry > p,
.about-exp-project p {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: normal;
  color: var(--text-secondary);
  margin: 0;
}

.about-exp-project {
  display: block;
  margin-bottom: 20px;
}

.about-exp-project:last-child { margin-bottom: 0; }

.about-exp-project strong {
  color: var(--heading-color);
  font-weight: 700;
}

a.about-exp-project p { transition: color 0.2s ease; }

a.about-exp-project:hover p {
  color: var(--heading-color);
}

/* ── Case study pages typography (Manrope, matches About page) ── */
body.cs-page,
body.cs-page h1, body.cs-page h2, body.cs-page h3, body.cs-page h4,
body.cs-page p, body.cs-page a, body.cs-page span, body.cs-page div {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

body.cs-page .cs2-hero h1 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: normal;
}

body.cs-page .cs2-hero-sub {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: normal;
}

body.cs-page .cs2-section h2 {
  font-size: 24px;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: normal;
  margin-bottom: 16px;
}

body.cs-page .cs2-section > p,
body.cs-page .cs2-body,
body.cs-page .cs2-two-col > p,
body.cs-page .cs2-feature p,
body.cs-page .cs2-final-item p {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: normal;
}

body.cs-page .cs2-lead {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: normal;
}

body.cs-page .cs2-feature h3,
body.cs-page .cs2-final-item h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: normal;
}

body.cs-page .cs2-problem-card h4 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: normal;
}

body.cs-page .cs2-accomplishment h4,
body.cs-page .cs2-strategy h4 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: normal;
}

body.cs-page .cs2-accomplishment p,
body.cs-page .cs2-strategy p {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: normal;
}

body.cs-page .cs2-problem-card p,
body.cs-page .cs2-quote-text,
body.cs-page .cs2-insight p,
body.cs-page .cs2-hmw p {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: normal;
}

/* Larger, more legible eyebrows */
body.cs-page .cs2-eyebrow,
body.cs-page .cs2-feature-eyebrow,
body.cs-page .cs2-next-label,
body.cs-page .cs2-meta-label,
body.cs-page .cs2-hero-labels {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Accomplishments: three-column grid with emoji */
body.cs-page .cs2-accomplishments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

body.cs-page .cs2-accomplishment {
  display: block;
  padding: 0;
}

body.cs-page .cs2-emoji {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 14px;
}

@media (max-width: 960px) {
  body.cs-page .cs2-accomplishments { grid-template-columns: 1fr; gap: 32px; }
}

body.cs-page .cs2-media img,
body.cs-page .cs2-media video,
body.cs-page .cs2-hero-media {
  border-radius: 24px;
}

/* Quote cards match the problem-card look: no accent bar, no italics */
body.cs-page .cs2-quote {
  border-left: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 28px;
}

body.cs-page .cs2-quote-text {
  font-style: normal;
}

/* Let spacing do the separating — drop horizontal rules */
body.cs-page .cs2-section,
body.cs-page .cs2-meta-strip { border-bottom: none; }
body.cs-page .cs2-accomplishments,
body.cs-page .cs2-strategies { border-top: none; }
body.cs-page .cs2-accomplishment,
body.cs-page .cs2-strategy { border-bottom: none; }

@media (max-width: 600px) {
  body.cs-page .cs2-hero h1 { font-size: 32px; }
}

/* ── About page layout: single centered 680px column ── */
body.about-page .about-hero {
  max-width: 776px;
  margin: 0 auto;
  padding: 64px 48px 56px;
  display: block;
}

body.about-page .about-portrait-round {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  margin-bottom: 28px;
}

body.about-page .about-section {
  max-width: 776px;
}

body.about-page .about-currently-grid {
  display: block;
}

body.about-page .about-currently-grid .strava-tile {
  max-width: 220px;
  margin-top: 32px;
}

body.about-page .strava-stats { left: 14px; bottom: 12px; gap: 6px; }
body.about-page .strava-dist { font-size: 18px; }
body.about-page .strava-elev { font-size: 11px; }
body.about-page .strava-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  right: 12px;
  bottom: 12px;
}
body.about-page .strava-badge svg { width: 20px; height: 20px; }

body.about-page .about-shelf-music {
  grid-template-columns: repeat(3, 140px);
  gap: 20px;
}

@media (max-width: 600px) {
  body.about-page .about-hero { padding: 40px 20px 36px; }
  body.about-page .about-shelf-music { grid-template-columns: repeat(3, 1fr); }
}

/* ── About page typography preview (Manrope, danielamuntyan.com-style) ── */
body.about-page,
body.about-page main,
body.about-page h1, body.about-page h2, body.about-page h3,
body.about-page h4, body.about-page h5, body.about-page p,
body.about-page a, body.about-page span, body.about-page figcaption {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

body.about-page .about-intro p,
body.about-page .about-section > p,
body.about-page .about-currently-text > p {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: normal;
}

body.about-page .about-section h2 {
  font-size: 24px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: normal;
  margin-bottom: 12px;
}

body.about-page .about-project p {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: normal;
  color: var(--text-secondary);
}

body.about-page .about-project h5 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: normal;
  margin-bottom: 8px;
}

body.about-page .about-row-info h4 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: normal;
}

body.about-page .about-row-info p,
body.about-page .about-row-year {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: normal;
}

body.about-page .about-currently-item {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
}

body.about-page .about-shelf-heading {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: normal;
}

body.about-page .about-shelf-item figcaption { font-size: 14px; }
body.about-page .about-shelf-item figcaption span { font-size: 13px; }
body.about-page .about-stat-label { font-size: 14px; line-height: 1.6; }

/* About section responsive */
@media (max-width: 900px) {
  .about-section { padding: 48px 24px; }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); border-radius: 12px; }
  .about-stat-cell:nth-child(2) { border-right: none; }
  .about-stat-cell:nth-child(3) { border-top: 1px solid var(--line); }
  .about-stat-cell:nth-child(4) { border-right: none; border-top: 1px solid var(--line); }
  .about-skills-grid { gap: 8px; }
}

@media (max-width: 600px) {
  .about-section { padding: 36px 20px; }
  .about-section h2 { font-size: 22px; }
  .about-section > p { font-size: 16px; }
  .about-rows { margin-top: 24px; }
  .about-row { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; }
  .about-row-logo { width: 40px; height: 40px; border-radius: 10px; font-size: 10px; }
  .about-row-year { display: none; }
  .about-row-info h4 { font-size: 14px; }
  .about-row-info p { font-size: 13px; }
  .about-stats-grid { grid-template-columns: 1fr 1fr; }
  .about-stat-cell { padding: 20px 16px; }
  .about-stat-num { font-size: 26px; }
  .about-stat-label { font-size: 12px; }
  .about-skills-grid { gap: 8px; }
  .about-skill-tag { font-size: 12px; padding: 6px 12px; }
  .about-cta { flex-direction: column; }
  .about-cta a { width: 100%; justify-content: center; }
}

/* ===========================
   HOMEPAGE REFRESH (July 2026)
   Hero, stat strip, featured card, CTAs
   =========================== */

/* ── Header: inline nav + connect ── */
.home-nav-inline { gap: 28px; }
.btn-connect { padding: 10px 20px; white-space: nowrap; }
.btn-connect svg { width: 13px; height: 13px; }

@media (max-width: 960px) {
  .home-nav-inline, .btn-connect { display: none; }
}

/* ── Hero ── */
.home-hero {
  position: relative;
  min-height: auto;
  padding: 64px 48px 32px;
  gap: 48px;
}

/* Full-bleed soft background wash */
.home-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  bottom: -40px;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background:
    radial-gradient(ellipse 55% 65% at 72% 40%, rgba(107, 115, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(244, 243, 255, 0.55), transparent 80%);
  pointer-events: none;
  z-index: -1;
}

body.dark-mode .home-hero::before {
  background:
    radial-gradient(ellipse 55% 65% at 72% 40%, rgba(107, 115, 255, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(27, 26, 41, 0.5), transparent 80%);
}

.hero-eyebrow--role {
  font-size: 16px;
  font-weight: 600;
  color: var(--home-text);
  margin-bottom: 20px;
}

.home-hero h1 {
  font-size: clamp(40px, 3.9vw, 56px);
  font-weight: 700;
  line-height: 1.06;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--home-text-muted);
  max-width: 460px;
  margin-bottom: 24px;
}

.hero-prev { margin-bottom: 36px; font-size: 17px; }
.home-hero-actions { margin-bottom: 0; }

/* "Open to work" badge */
.hero-badge {
  position: absolute;
  left: -10%;
  bottom: 7%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 20px;
  background: var(--home-bg);
  border: 1px solid var(--home-border);
  border-radius: 16px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.16);
}

body.dark-mode .hero-badge { box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6); }

.hero-badge-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--home-text);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-badge-detail { font-size: 13px; color: var(--home-text-muted); white-space: nowrap; }

/* ── Find-me + stat strip ── */
.hero-strip {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, 1fr);
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
  padding: 36px 48px 0;
}

.hero-strip > * {
  border-left: 1px solid var(--home-border);
  padding: 6px 32px;
}

.hero-strip > :first-child { border-left: none; padding-left: 0; }

.hero-strip-label {
  display: block;
  font-size: 13px;
  color: var(--home-text-muted);
  margin-bottom: 10px;
}

.hero-strip-icons { display: flex; gap: 10px; }

.hero-strip-icons a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--home-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--home-text);
  transition: background 0.2s ease;
}

.hero-strip-icons a:hover { background: var(--btn-outline); }
.hero-strip-icons svg { width: 15px; height: 15px; }

.hero-stat-num {
  display: block;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #6b73ff;
  margin-bottom: 2px;
  white-space: nowrap;
}

body.dark-mode .hero-stat-num { color: #9aa0ff; }

.hero-stat-label { font-size: 13px; color: var(--home-text-muted); white-space: nowrap; }

/* ── Work section: tighter entry ── */
.home-work-section { padding: 48px 48px 80px; }
.work-header { margin-bottom: 32px; }

/* ── Cards: outcomes, tags, CTAs ── */
.card-outcome {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--home-text);
}

.card-outcome svg { width: 16px; height: 16px; flex-shrink: 0; }

.card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.card-tags span {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  color: var(--home-text);
  background: transparent;
  border: 1px solid var(--home-text);
}

/* Explicit, always-visible CTA pill */
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 24px;
  padding: 11px 22px;
  border-radius: 99px;
  background: var(--home-bg);
  color: var(--home-text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.card-cta svg { width: 13px; height: 13px; }

.home-card:hover .card-cta {
  transform: translateX(4px);
  background: var(--btn-bg);
  color: var(--btn-text);
}

/* Featured card: premium treatment */
.home-card-featured {
  min-height: 540px;
  background: linear-gradient(120deg, #ede8ff 0%, #f4f1ff 55%, #fbf2ff 100%);
  border: 1px solid rgba(107, 115, 255, 0.14);
}

body.dark-mode .home-card-featured {
  background: linear-gradient(120deg, #1b1a2e 0%, #191828 55%, #221a2c 100%);
  border-color: rgba(154, 160, 255, 0.15);
}

.home-card-featured .card-title { font-size: 34px; }

/* Beauty shots: tighter crop + layered panel behind the UI */
.card-visual::before {
  content: "";
  position: absolute;
  inset: 14% -8% -10% 12%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  transform: perspective(1000px) rotateY(-12deg) rotateX(4deg) translateY(34px);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.dark-mode .card-visual::before { background: rgba(255, 255, 255, 0.06); }

.home-card:hover .card-visual::before {
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg) translateY(14px);
}

.card-visual img { position: relative; }

/* Anchor visuals to a left edge so text never bleeds into the image */
.home-card-wide .card-visual { left: 440px; right: -4%; width: auto; height: 108%; bottom: -10%; }
.home-card:not(.home-card-wide) .card-visual { left: 54%; right: -9%; width: auto; height: 92%; bottom: -9%; }
.home-card:not(.home-card-wide) .card-content { flex: 0 0 50%; max-width: 50%; }
.home-card .card-desc { max-width: 100%; }

/* Coming-soon cards: not clickable, no hover lift */
.home-card-soon .card-title { font-size: 24px; }
.home-card-soon:hover { transform: none; box-shadow: none; }
.home-card-soon:hover .card-visual img,
.home-card-soon:hover .card-visual::before { transform: perspective(1000px) rotateY(-12deg) rotateX(4deg) translateY(20px); }

.card-link--soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--home-text-muted);
  opacity: 0.7;
}

/* TruckBux: full-width card to balance the grid */
.home-card-soon-wide { grid-column: 1 / -1; height: 380px; }
.home-card-soon-wide .card-content { flex: 0 0 340px; }
.home-card-soon-wide .card-visual { left: 440px; right: -4%; width: auto; height: 100%; bottom: -8%; }

/* ── Responsive overrides for the refresh ── */
@media (max-width: 1024px) {
  .home-hero { padding-top: 40px; }
  .home-hero h1 { font-size: 52px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); row-gap: 28px; padding-top: 28px; }
  .hero-strip > * { border-left: none; padding: 0; }
  .hero-strip-findme { grid-column: 1 / -1; }
  .home-card-soon-wide { height: auto; }
}

@media (max-width: 768px) {
  .home-hero { padding: 32px 24px 16px; }
  .home-hero h1 { font-size: 40px; }
  .hero-strip { padding: 24px 24px 0; }
  .home-work-section { padding: 48px 24px 60px; }
  .home-card-featured { min-height: 0; }
  .home-card-featured .card-title { font-size: 28px; }
}

/* Contact: match preview scale + tighter entry */
.home-contact { padding: 48px 48px 96px; }
.home-contact-heading { font-size: clamp(32px, 3.2vw, 46px); }

@media (max-width: 768px) {
  .home-contact { padding: 40px 24px 72px; }
}

/* Mobile: restore stacked card layout (overrides refresh visual sizing) */
@media (max-width: 768px) {
  .home-card-wide .card-content,
  .home-card-soon-wide .card-content { flex: auto; }
  .home-card-wide .card-meta { flex-wrap: wrap; white-space: normal; }
  .home-card-wide .card-visual,
  .home-card-soon-wide .card-visual,
  .home-card:not(.home-card-wide) .card-visual {
    left: auto;
    width: 90%;
    height: 280px;
    right: -10%;
    bottom: -40px;
  }
  .home-card:not(.home-card-wide) .card-content { flex: auto; max-width: 100%; }
}

/* Unify description size with featured card; cluster metric/tags under the
   description and anchor the CTA to the card bottom */
.home-card .card-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--home-text);
  opacity: 0.85;
  margin-bottom: 0;
  max-width: 100%;
}

.card-cta, .card-link--soon { margin-top: auto; }

@media (max-width: 768px) {
  .card-cta, .card-link--soon { margin-top: 24px; }
}

/* Let cards grow with their content instead of clipping */
.home-card { height: auto; min-height: 480px; }
.home-card-featured { min-height: 540px; }
.home-card-soon-wide { height: auto; min-height: 380px; }

@media (max-width: 1024px) {
  .home-card { height: auto; min-height: 400px; }
}

/* ===========================
   AI INSIGHTS CASE STUDY REFRESH
   Hero stats, pull quote, fail grid, annotations, impact causes
   =========================== */

/* Hero impact stat chips */
.cs2-hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: -28px auto 48px;
}

.cs2-hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--card-bg);
}

.cs2-hero-stats strong {
  color: var(--heading-color);
  font-weight: 700;
}

/* Why-it-failed grid */
.cs2-fail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.cs2-fail {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
  background: var(--card-bg);
}

.cs2-fail h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 8px;
}

.cs2-fail p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Big pull quote */
body.cs-page .cs2-section > p.cs2-pullquote {
  font-size: clamp(24px, 2.9vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--heading-color);
  text-align: center;
  max-width: 820px;
  margin: 72px auto 8px;
}

.cs2-pullquote-accent {
  background: linear-gradient(90deg, #6b73ff 0%, #a272ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* On-image annotations */
.cs2-anno-wrap { position: relative; }

.cs2-marker {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #6b73ff;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(107, 115, 255, 0.25), 0 4px 10px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.cs2-anno-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 16px;
  padding: 0 4px;
  list-style: none;
}

.cs2-anno-legend li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.cs2-anno-legend .n {
  color: #6b73ff;
  font-weight: 700;
  font-size: 13px;
}

/* Impact stat cause lines */
.cs2-stat-cause {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 260px;
}

/* Responsive */
@media (max-width: 900px) {
  .cs2-fail-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .cs2-fail-grid { grid-template-columns: 1fr; }
  .cs2-hero-stats { margin-top: -16px; }
  .cs2-marker { width: 20px; height: 20px; font-size: 11px; }
}

/* Problem section: text + maturity scale side by side on desktop */
.cs2-split {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 48px;
  align-items: center;
}

.cs2-split .maturity-scale { margin: 0; padding: 48px 28px 36px; gap: 20px; }
.cs2-split-text p { margin-bottom: 0; }

@media (max-width: 960px) {
  .cs2-split { display: block; }
  .cs2-split .maturity-scale { margin-top: 32px; }
}

/* In the desktop split the axis has no room between cards — labels carry it */
@media (min-width: 961px) {
  .cs2-split .ms-title, .cs2-split .ms-axis { display: none; }
  .cs2-split .maturity-scale { justify-content: space-around; }
}

/* Simplified maturity cards (problem split) */
.ms-simple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ms-simple-card {
  background: var(--img-frame-bg);
  border-radius: 20px;
  padding: 36px 32px;
}

.ms-simple-icon {
  display: block;
  font-size: 56px;
  line-height: 1;
  margin-bottom: 28px;
}

.ms-simple-icon img { width: 64px; height: 64px; object-fit: contain; }

.ms-simple-card h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.ms-simple-card p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* The Before: text + fail cards beside the screenshot */
.cs2-before-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.cs2-before-split .cs2-fail-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 36px;
}

.cs2-before-text .cs2-body { margin-bottom: 0; }

.cs2-media--flush { margin: 0; }

body.cs-page .cs2-fail h4 { font-size: 16px; font-weight: 700; }
body.cs-page .cs2-fail p { font-size: 16px; line-height: 1.6; font-weight: 500; }

/* Cropped affinity map — half height, center crop */
.cs2-media--cropped img {
  height: clamp(200px, 22vw, 320px);
  object-fit: cover;
  object-position: center;
}

@media (max-width: 960px) {
  .cs2-before-split { display: block; }
  .cs2-before-split .cs2-media--flush { margin-top: 24px; }
  .ms-simple { gap: 16px; }
}

@media (max-width: 560px) {
  .ms-simple { grid-template-columns: 1fr; }
  .cs2-before-split .cs2-fail-grid { grid-template-columns: 1fr; }
}

/* Odd quote count: last quote spans the full row */
.cs2-quote-grid .cs2-quote:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Tall screenshot in the before split: crop to the top portion */
.cs2-media--tallcrop img {
  height: 640px;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 960px) {
  .cs2-media--tallcrop img { height: 420px; }
}

/* Research section: quotes stacked beside the affinity map (same split as The Before) */
.cs2-before-split .cs2-quote-grid {
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 36px;
}

.cs2-media--fillcrop img {
  height: 560px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 960px) {
  .cs2-media--fillcrop img { height: 320px; }
}

/* Strategy: numbered cards, 3-up */
.cs2-strategy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.cs2-strategy-card {
  background: var(--img-frame-bg);
  border-radius: 16px;
  padding: 36px 32px;
}

.cs2-strategy-card h4 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 16px;
}

.cs2-strategy-card .n {
  font-weight: 600;
  color: var(--text-muted);
}

.cs2-strategy-card p {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 900px) {
  .cs2-strategy-cards { grid-template-columns: 1fr; gap: 16px; }
}

/* Research: full-width intro, then quotes | affinity map */
.cs2-research-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
  align-items: start;
  margin-top: 40px;
}

.cs2-research-split .cs2-quote-grid {
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 0;
}

.cs2-research-split .cs2-media--fillcrop img { height: 480px; }

@media (max-width: 960px) {
  .cs2-research-split { display: block; }
  .cs2-research-split .cs2-media--fillcrop { margin-top: 24px; }
  .cs2-research-split .cs2-media--fillcrop img { height: 320px; }
}

/* Aha moment: problem cards beside the concept video */
.cs2-aha-split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 32px;
  align-items: center;
  margin-top: 40px;
}

.cs2-aha-split .cs2-problem-grid {
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 0;
}

@media (max-width: 960px) {
  .cs2-aha-split { display: block; }
  .cs2-aha-split .cs2-media--flush { margin-top: 24px; }
}

/* Purple takeaway callout (aha moment) */
.cs2-hmw--purple {
  background: #E7EAFD;
  margin-top: 48px;
}

.cs2-hmw--purple p strong { color: var(--heading-color); }

body.dark-mode .cs2-hmw--purple { background: rgba(107, 115, 255, 0.16); }

/* Decision 01: paragraph beside evolution carousel */
.cs2-decision-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
  margin-top: 8px;
}

.cs2-carousel {
  overflow: hidden;
  cursor: pointer;
  outline-offset: 4px;
}

.cs2-car-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cs2-car-slide {
  flex: 0 0 88%;
  margin: 0;
}

.cs2-car-frame {
  background: var(--img-frame-bg);
  border-radius: 16px;
  padding: 24px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs2-car-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.cs2-car-slide figcaption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 12px;
  padding: 0 4px;
}

.cs2-car-slide figcaption .n {
  color: #6b73ff;
  font-weight: 700;
  margin-right: 6px;
}

.cs2-car-dots {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding: 0 4px;
}

.cs2-car-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 99px;
  background: var(--line);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.cs2-car-dots button.active {
  width: 22px;
  background: #6b73ff;
}

@media (max-width: 960px) {
  .cs2-decision-split { display: block; }
  .cs2-decision-split .cs2-carousel { margin-top: 28px; }
  .cs2-car-frame { height: 300px; padding: 16px; }
}

/* Decision text column: eyebrow + title + paragraph beside carousel */
.cs2-decision-text .cs2-feature-eyebrow { display: block; }
.cs2-decision-text p { margin-bottom: 0; }

/* Aha callout: bold statement, subtle emphasis animation */
body.cs-page .cs2-hmw--purple p {
  font-size: 24px;
  line-height: 1.5;
  font-weight: 600;
  font-style: normal;
  color: var(--heading-color);
  text-align: left;
}

.cs2-hmw--purple.is-visible {
  animation: aha-emphasis 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s 1;
}

@keyframes aha-emphasis {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(107, 115, 255, 0); }
  45% { transform: scale(1.015); box-shadow: 0 14px 40px -12px rgba(107, 115, 255, 0.35); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(107, 115, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .cs2-hmw--purple.is-visible { animation: none; }
}

/* Insight callouts (data science, reflection): 20px body */
body.cs-page .cs2-insight p { font-size: 20px; line-height: 1.6; }

/* Impact: text left, stats stacked right (matches decision layout) */
.cs2-impact-split { align-items: center; }

.cs2-impact-split .cs2-stats {
  grid-template-columns: 1fr;
  margin: 0;
}

.cs2-impact-split .cs2-stat {
  border-right: none;
  border-bottom: 1px solid var(--line);
  padding: 28px 32px;
}

.cs2-impact-split .cs2-stat:last-child { border-bottom: none; }

@media (max-width: 960px) {
  .cs2-impact-split .cs2-stats { margin-top: 28px; }
}

/* Research testimonials: same card format as The Before, stacked */
.cs2-fail-grid--stack {
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 0;
}

/* Final experience 02 & 03: text beside video, vertically centered */
.cs2-final-item .cs2-decision-split { align-items: center; }
.cs2-final-item .cs2-decision-split .cs2-goal { margin-bottom: 0; }

/* Testimonials: collective height matches the affinity map (480px) */
.cs2-research-split .cs2-fail-grid--stack {
  height: 480px;
  grid-template-rows: repeat(3, 1fr);
}

.cs2-research-split .cs2-fail-grid--stack .cs2-fail {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 960px) {
  .cs2-research-split .cs2-fail-grid--stack { height: auto; grid-template-rows: none; }
}

/* Case study pages: floating back-home button (replaces nav) */
.cs-back-btn {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}

.cs-back-btn svg { width: 14px; height: 14px; }
.cs-back-btn:hover { transform: translateX(-2px); background: rgba(255, 255, 255, 0.95); }

body.dark-mode .cs-back-btn {
  background: rgba(20, 20, 20, 0.82);
  color: var(--text-primary);
}

body.dark-mode .cs-back-btn:hover { background: rgba(30, 30, 30, 0.95); }

@media (max-width: 768px) {
  .cs-back-btn { top: 16px; left: 16px; padding: 9px 15px; }
}

/* Hamburger menu: tablet/mobile only (inline nav covers desktop) */
@media (min-width: 961px) {
  .menu-toggle, .site-menu { display: none !important; }
}

/* Open-to-work badge, static placement (about page) */
.hero-badge--static {
  position: static;
  display: inline-flex;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.12);
}

/* Featured work entry: text left, framed shot right */
.work-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 16px 0 24px;
}

/* Image left, text right */
.work-feature-visual { order: 1; }
.work-feature-text { order: 2; }

.work-feature-text h3 {
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--home-text);
  margin: 0 0 10px;
}

.work-feature-date {
  font-size: 15px;
  color: var(--home-text-muted);
  margin-bottom: 30px;
}

.work-feature-bullets {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.work-feature-bullets li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--home-text-muted);
}

.work-feature-bullets svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 5px;
  color: var(--home-text-muted);
}

.work-feature-visual img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.28);
}

@media (max-width: 960px) {
  .work-feature { display: block; }
  .work-feature-visual { margin-top: 32px; }
}


/* FigJam-style dotted grid background (homepage) */
body.home-page {
  background-image: radial-gradient(circle, rgba(17, 17, 17, 0.10) 1.1px, transparent 1.1px);
  background-size: 22px 22px;
}

body.home-page.dark-mode {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 1.1px, transparent 1.1px);
}

/* Nav social buttons (LinkedIn, email, resume) */
.nav-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-socials a {
  display: flex;
  align-items: center;
  color: var(--home-text-muted);
  transition: color 0.2s ease;
}

.nav-socials a:hover { color: var(--home-text); }
.nav-socials svg { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .nav-socials { display: none; }
}



/* Homepage: unify all paragraph text at 18px */
body.home-page .hero-sub,
body.home-page .home-subtitle,
body.home-page .home-card .card-desc,
body.home-page .work-feature-bullets li,
body.home-page .home-contact-sub {
  font-size: 18px;
}

/* Featured entry: interactive like the old card */
a.work-feature {
  border-radius: 24px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

a.work-feature:hover { transform: translateY(-6px); }

.work-feature-visual img {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

a.work-feature:hover .work-feature-visual img {
  transform: scale(1.015);
  box-shadow: 0 32px 70px -24px rgba(0, 0, 0, 0.32);
}

a.work-feature:hover .btn-secondary { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }

/* Featured entry: short description + tags + meta */
.work-feature-desc {
  font-size: 18px;
  line-height: 1.65;
  color: var(--home-text-muted);
  margin: 0 0 6px;
  max-width: 480px;
}

.work-feature .card-meta { margin-top: 26px; }
.work-feature .btn-secondary { margin-top: 32px; display: inline-flex; }

/* Featured tags directly under the title */
.work-feature-tags { margin: 2px 0 22px; }

/* Featured pills: grey fill like case study surfaces */
.work-feature-tags span {
  background: var(--img-frame-bg);
  border: none;
}

/* Impact meta value with trend arrow */
.card-meta-impact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-meta-impact svg { width: 12px; height: 12px; flex-shrink: 0; }

/* Work entries: consistent rows, divider between, quiet coming-soon */
.home-grid { gap: 0; }

.work-feature { padding: 48px 0; }
.work-feature + .work-feature { border-top: 1px solid var(--home-border); }

.work-feature-soon .card-link--soon { margin-top: 28px; }
.work-feature-soon:hover { transform: none; }

/* ── Featured hero treatment for AI Insights ── */
.work-feature--hero {
  background: linear-gradient(120deg, #efeaff 0%, #f6f3ff 55%, #fdf4ff 100%);
  border: none;
  border-radius: 28px;
  padding: 48px;
  margin-bottom: 20px;
}

body.dark-mode .work-feature--hero {
  background: linear-gradient(120deg, #1b1a2e 0%, #191828 55%, #221a2c 100%);
  border-color: rgba(154, 160, 255, 0.15);
}

.work-feature--hero .work-feature-text h3 {
  font-size: clamp(32px, 3.2vw, 44px);
}

.work-feature--hero + .work-feature { border-top: none; }

.feature-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 6px 13px;
  border-radius: 99px;
  background: rgba(107, 115, 255, 0.12);
  color: #6b73ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.feature-badge svg { width: 12px; height: 12px; }

body.dark-mode .feature-badge {
  background: rgba(154, 160, 255, 0.15);
  color: #9aa0ff;
}

/* Secondary rows: tighter, smaller images and titles */
.work-feature:not(.work-feature--hero) {
  grid-template-columns: 0.85fr 1.15fr;
  padding: 40px 0;
}

.work-feature:not(.work-feature--hero) .work-feature-text h3 { font-size: 26px; }

@media (max-width: 768px) {
  .work-feature--hero { padding: 28px 24px; }
}

/* Badge stacks above the company label */
.work-feature--hero .work-feature-text { display: flex; flex-direction: column; align-items: flex-start; }
.work-feature--hero .card-company { display: block; }

/* Read more: white at rest, black on hover */
.work-feature-cta {
  background: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, color 0.2s ease;
}

a.work-feature:hover .work-feature-cta,
.work-feature-cta:hover {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: transparent;
}

body.dark-mode .work-feature-cta {
  background: #1f1f1f;
  color: var(--home-text);
}

body.dark-mode a.work-feature:hover .work-feature-cta {
  background: var(--btn-bg);
  color: var(--btn-text);
}

/* Featured badge inline with the title */
.work-feature-title {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.work-feature-title .feature-badge { margin-bottom: 0; }

/* White-on-transparent artwork needs a dark backing */
.cs2-media img.img-dark-bg,
img.img-dark-bg {
  background: #17171c;
  padding: 24px;
  box-sizing: border-box;
}

/* Business case: text leads, stat card small at the side */
.cs2-bizcase-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}

.cs2-bizcase-split .cs2-body { margin-bottom: 0; }
.cs2-bizcase-split img.img-dark-bg { padding: 18px; }

@media (max-width: 960px) {
  .cs2-bizcase-split { display: block; }
  .cs2-bizcase-split .cs2-media--flush { margin-top: 28px; max-width: 420px; }
}
