/* ==========================================================================
   Unified Apple Design System Tokens
   ========================================================================== */
:root {
  --apple-bg: #ffffff;
  --apple-card: #f5f5f7;                        /* Apple System Gray 6 */
  --apple-card-border: rgba(60, 60, 67, 0.08); /* Apple Hairline */
  --apple-text: #1d1d1f;                        /* Apple Primary Label */
  --apple-secondary: #86868b;                   /* Apple Secondary Label */
  --apple-tertiary: #aeaeb2;                    /* Apple Tertiary Label */
  --apple-blue: #0071e3;                        /* Apple System Blue */
  --apple-blue-bg: #eaf2fd;                     /* Light blue pill fill */
  --apple-green: #34c759;                       /* Apple System Green */
  --apple-red: #ff3b30;                         /* Apple System Red */
  --apple-purple: #af52de;                      /* Apple System Purple */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--apple-bg);
  color: var(--apple-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

/* ==========================================================================
   Apple Floating Navbar
   ========================================================================== */
.nav-header {
  position: sticky;
  top: 18px;
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 0 16px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid var(--apple-card-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.nav-item {
  padding: 5px 15px;
  font-size: 13px;
  font-weight: 500;
  color: var(--apple-secondary);
  border-radius: 9999px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease-apple);
}

.nav-item:hover { color: var(--apple-text); }

.nav-item.active {
  color: var(--apple-text);
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

/* ==========================================================================
   Page Wrap (+20% Scale: 816px)
   ========================================================================== */
.page-wrap {
  max-width: 816px;
  margin: 0 auto;
  padding: 24px 20px 100px;
}

/* ==========================================================================
   Hero Section — Height Matched with Fixed Ambient Sheen
   ========================================================================== */
.hero-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
  align-items: stretch; /* Avatar matches text height */
  padding: 36px 0 72px;
}

.hero-avatar-wrap {
  display: flex;
  width: 100%;
  height: 100%;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #eae6f5;
  border-radius: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple);
}

/* Apple Intelligence background glow strictly behind the subject */
.hero-avatar::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 113, 227, 0.28) 0%, transparent 60%),
    radial-gradient(circle at 85% 80%, rgba(175, 82, 222, 0.28) 0%, transparent 65%),
    radial-gradient(circle at 75% 20%, rgba(255, 45, 85, 0.2) 0%, transparent 60%),
    radial-gradient(circle at 25% 85%, rgba(0, 199, 190, 0.22) 0%, transparent 60%);
  filter: blur(24px);
  opacity: 0;
  transition: opacity 0.5s var(--ease-apple);
  z-index: 1;
  pointer-events: none;
}

.hero-avatar:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.12);
}

.hero-avatar:hover::before {
  opacity: 1;
}

.hero-avatar img {
  position: relative;
  z-index: 2; /* Sits in front of background glow */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
  display: block;
  transition: transform 0.4s var(--ease-apple);
}

.hero-avatar:hover img {
  transform: scale(1.025);
}

.avatar-vector-fallback {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-greeting {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  margin-bottom: 6px;
}

.hero-headline {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #0a0a0c;
  margin-bottom: 16px;
}

.hero-bio {
  font-size: 15px;
  color: #52525b;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-apple);
}

.btn-dark {
  background: var(--apple-text);
  color: #ffffff;
  border: 1px solid transparent;
}

.btn-dark:hover {
  background: #000000;
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  color: var(--apple-text);
  border: 1px solid rgba(60, 60, 67, 0.15);
}

.btn-outline:hover {
  border-color: rgba(60, 60, 67, 0.3);
  background: #fafafa;
  transform: translateY(-1px);
}

.linkedin-logo-icon {
  color: #0a66c2;
  flex-shrink: 0;
}

/* ==========================================================================
   Home Portfolio Cards Grid
   ========================================================================== */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 64px;
}

.case-card {
  position: relative;
  background: var(--apple-card);
  border-radius: 24px;
  height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--apple-card-border);
  transition: transform 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple);

}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.08);
}

.card-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s var(--ease-apple);
}

.card-thumb svg,
.card-thumb img {
  transform: scale(1);
  transform-origin: center center;
  max-width: 100%;
  height: auto;
}

.case-card:hover .card-thumb {
  transform: scale(1.03);
}

.case-flyout {
  position: absolute;
  inset-inline: 14px;
  bottom: 14px;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-apple);
}

.case-card:hover .case-flyout {
  transform: translateY(0);
  opacity: 1;
}

.flyout-h {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 2px;
  line-height: 1.25;
  color: var(--apple-text);
  transition: color 0.25s var(--ease-apple);
}

.case-card:hover .flyout-h { color: var(--apple-blue); }
.flyout-sub { font-size: 11.5px; color: var(--apple-secondary); margin-bottom: 8px; }
.flyout-stats { font-size: 12px; font-weight: 700; color: var(--apple-text); display: flex; align-items: center; gap: 6px; }
.flyout-stats .stat-light { font-weight: 500; color: var(--apple-secondary); }
.flyout-stats .sep { color: #c7c7cc; font-size: 10px; }

/* Interactive Teaser Card */
.card-next-interactive {
  background: #f0ecf9;
  border-color: rgba(175, 82, 222, 0.12);
}

.apple-aurora-glow {
  position: absolute;
  inset: -10px;
  opacity: 0;
  transition: opacity 0.5s var(--ease-apple);
  pointer-events: none;
  filter: blur(34px);
}

.aurora-orb { position: absolute; border-radius: 50%; }
.orb-tl { width: 160px; height: 160px; top: -20px; left: -20px; background: radial-gradient(circle, #0071e3 0%, #00c7be 50%, transparent 80%); }
.orb-br { width: 170px; height: 170px; bottom: -20px; right: -20px; background: radial-gradient(circle, #af52de 0%, #5856d6 50%, transparent 80%); }
.orb-center { width: 140px; height: 140px; top: 50%; left: 45%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 45, 85, 0.35) 0%, transparent 70%); }
.card-next-interactive:hover .apple-aurora-glow { opacity: 1; }
.card-next-interactive:hover { border-color: rgba(175, 82, 222, 0.3); box-shadow: 0 16px 36px -8px rgba(175, 82, 222, 0.2); }
.next-text-frame { position: relative; z-index: 2; text-align: center; padding: 24px; }
.next-kicker-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: var(--apple-purple); margin-bottom: 6px; display: block; }
.next-label-stack { position: relative; min-height: 42px; display: flex; align-items: center; justify-content: center; }
.label-state { font-size: 14.5px; font-weight: 600; color: #5856d6; max-width: 170px; line-height: 1.35; transition: all 0.35s var(--ease-apple); }
.label-default { opacity: 1; transform: translateY(0); }
.label-hover { position: absolute; opacity: 0; transform: translateY(8px); font-size: 16px; font-weight: 700; color: var(--apple-blue); white-space: nowrap; }
.card-next-interactive:hover .label-default { opacity: 0; transform: translateY(-8px); }
.card-next-interactive:hover .label-hover { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Experience Timeline
   ========================================================================== */
.timeline-wrap {
  border-top: 1px solid var(--apple-card-border);
  padding-top: 48px;
}

.timeline-stack {
  display: flex;
  flex-direction: column;
  position: relative;
}

.timeline-stack::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 18px;
  left: 156px;
  width: 1px;
  background: #e5e5ea;
  z-index: 1;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 28px;
  position: relative;
  padding-bottom: 34px;
}

.timeline-entry:last-child { padding-bottom: 0; }

.t-col-left {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-right: 20px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--apple-secondary);
  letter-spacing: 0.04em;
  padding-top: 3px;
}

.t-node {
  position: absolute;
  right: -4px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #c7c7cc;
  z-index: 2;
}

.is-now .t-node {
  border-color: var(--apple-blue);
  background: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18);
}

.now-tag {
  color: var(--apple-blue);
  font-weight: 400;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.t-col-right { display: flex; flex-direction: column; }
.company-badge-zone { margin-bottom: 6px; display: inline-flex; align-items: center; }
.view-state-default { display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 113, 227, 0.05); border: 1px dashed rgba(0, 113, 227, 0.4); padding: 4px 12px; border-radius: 9999px; cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--apple-blue); transition: all 0.2s var(--ease-apple); }
.view-state-default:hover { background: rgba(0, 113, 227, 0.1); border-color: var(--apple-blue); }
.view-state-editing { display: none; align-items: center; gap: 8px; background: var(--apple-blue-bg); border: 1px solid var(--apple-blue); border-radius: 8px; padding: 4px 10px 4px 12px; box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.15); }
.company-edit-input { border: none; background: transparent; font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--apple-text); outline: none; width: 140px; }
.btn-save-check { background: transparent; border: none; color: var(--apple-blue); cursor: pointer; display: flex; align-items: center; padding: 2px; }
.view-state-saved { display: none; align-items: center; gap: 8px; }
.saved-company-text { font-size: 15px; font-weight: 600; color: var(--apple-text); letter-spacing: -0.01em; }
.saved-actions { display: inline-flex; align-items: center; gap: 6px; }
.action-icon-btn { background: transparent; border: none; color: var(--apple-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 2px; transition: color 0.15s; }
.action-icon-btn:hover { color: var(--apple-text); }
.t-role-title { font-size: 13.5px; font-weight: 500; color: var(--apple-text); margin-bottom: 2px; }
.t-company-name { font-size: 15px; font-weight: 600; color: var(--apple-text); margin-bottom: 2px; }
.t-sub-role { font-size: 13px; font-weight: 400; color: var(--apple-secondary); margin-bottom: 4px; }
.t-desc { font-size: 13px; color: var(--apple-secondary); line-height: 1.5; }

/* ==========================================================================
   Blog Index Header & Components
   ========================================================================== */
.blog-header-block { padding: 12px 0 36px; }
.blog-eyebrow {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--apple-secondary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.blog-heading {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--apple-text);
  margin-bottom: 8px;
}
.blog-subhead { font-size: 14.5px; color: var(--apple-secondary); line-height: 1.5; }

.article-intro { font-size: 16px; line-height: 1.65; color: var(--apple-text); margin-bottom: 24px; }
.article-pullquote {
  border-left: 2px solid var(--apple-blue);
  padding: 14px 20px;
  margin: 32px 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--apple-text);
  background: var(--apple-card);
  border-radius: 0 14px 14px 0;
}
.article-takeaway {
  background: var(--apple-card);
  border: 1px solid var(--apple-card-border);
  border-radius: 18px;
  padding: 22px;
  margin: 36px 0;
}
.takeaway-tag { font-size: 10px; font-family: var(--font-mono); letter-spacing: 0.1em; color: var(--apple-blue); font-weight: 600; margin-bottom: 8px; }

/* ==========================================================================
   Case Study Architecture
   ========================================================================== */
.cs-header { margin-bottom: 36px; }
.cs-eyebrow { font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.1em; color: var(--apple-secondary); display: block; margin-bottom: 12px; text-transform: uppercase; }
.cs-title { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: #0f172a; margin-bottom: 12px; }
.cs-subtitle { font-size: 17px; color: #4b5563; line-height: 1.5; margin-bottom: 16px; }
.cs-meta-stack { font-size: 13px; color: #6b7280; display: flex; flex-direction: column; gap: 4px; }

/* Metric Ribbon */
.metric-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 44px;
}

.metric-cell .cell-caption { font-size: 11px; font-family: var(--font-mono); color: #6b7280; margin-bottom: 6px; letter-spacing: 0.05em; text-transform: uppercase; }
.metric-cell .cell-stat { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: #0f172a; line-height: 1.1; margin-bottom: 4px; }
.metric-cell .cell-stat.danger { color: var(--apple-red); }
.metric-cell .cell-desc { font-size: 13px; color: #4b5563; line-height: 1.4; }

/* Editorial Chapters */
.cs-chapter { margin: 56px 0 36px; }
.chapter-badge {
  font-size: 13.5px;              /* increased from 11px */
  font-weight: 400;               /* changed from 600 (not bold) */
  font-family: var(--font-mono);
  color: var(--apple-blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.cs-chapter h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.25; color: #0f172a; margin-bottom: 18px; }
.cs-chapter p { font-size: 15.5px; color: #374151; line-height: 1.68; margin-bottom: 20px; }

/* ==========================================================================
   Case Study Multi-Column Cards (Strict Grids & Compact Proportions)
   ========================================================================== */

/* 2-Column: Where this started */
.dual-box-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

.sub-box {
  background: #fbfbfd;
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.25s var(--ease-apple), box-shadow 0.25s var(--ease-apple);
}

.sub-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.05);
}

.box-tag {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--apple-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.box-main {
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}

.box-info {
  font-size: 13.5px;
  color: #52525b;
  line-height: 1.5;
}

.box-info strong {
  color: #1d1d1f;
  font-weight: 600;
}

/* 3-Column: Architectural Trade-Offs */
.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 32px;
}

.decision-card {
  background: #fbfbfd;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-apple), box-shadow 0.25s var(--ease-apple);
}

.decision-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.05);
}

.badge-pill {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 9999px;
  align-self: flex-start;
  margin-bottom: 12px;
}

.badge-rejected { background: #fee2e2; color: #dc2626; }
.badge-chosen { background: #dcfce7; color: #16a34a; }

.decision-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}

.decision-text {
  font-size: 13px;
  color: #52525b;
  line-height: 1.48;
}

/* 3-Column: Rollout Steps */
.rollout-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 32px;
}

.step-card {
  background: #fbfbfd;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  padding: 18px 18px 20px;
  transition: transform 0.25s var(--ease-apple), box-shadow 0.25s var(--ease-apple);
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.05);
}

.step-badge {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--apple-secondary);
  margin-bottom: 6px;
  display: block;
}

.step-status {
  font-size: 15.5px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}

.step-desc {
  font-size: 13px;
  color: #52525b;
  line-height: 1.48;
}

/* 3-Column: Business & Technical Outcomes */
.claims-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 32px;
}

.claim-item {
  background: #fbfbfd;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  padding: 18px 18px 20px;
  transition: transform 0.25s var(--ease-apple), box-shadow 0.25s var(--ease-apple);
}

.claim-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.05);
}

.claim-kicker {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--apple-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.claim-stat {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.claim-desc {
  font-size: 13px;
  color: #52525b;
  line-height: 1.48;
}

/* Supporting Blocks */
.callout-summary {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 3px solid #0f172a;
  border-radius: 4px 16px 16px 4px;
  padding: 24px 28px;
  margin: 36px 0;
}

.callout-title {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #6b7280;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.callout-summary p {
  font-size: 14.5px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 0;
}

.comparison-block {
  background: var(--apple-card);
  border-radius: 20px;
  padding: 18px;
  margin: 32px 0;
  border: 1px solid var(--apple-card-border);
}

.comp-toggle-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.comp-btn {
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--apple-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease-apple);
}

.comp-btn.active {
  background: var(--apple-text);
  color: #fff;
  border-color: var(--apple-text);
}

.comp-screen { display: none; text-align: center; }
.comp-screen.active { display: block; animation: fadeIn 0.25s var(--ease-apple); }

.media-figure {
  background: var(--apple-card);
  border: 1px solid var(--apple-card-border);
  border-radius: 18px;
  overflow: hidden;
  margin: 28px 0;
}

.figure-art {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaedf2;
}

.figure-caption {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--apple-secondary);
  text-align: center;
}

.quote-card {
  border-left: 2px solid #d1d1d6;
  padding: 14px 20px;
  margin: 28px 0;
  font-size: 15px;
  font-style: italic;
  color: var(--apple-text);
}

.quote-author {
  font-size: 11.5px;
  font-style: normal;
  color: var(--apple-secondary);
  display: block;
  margin-top: 6px;
}

.video-card-wrap {
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  margin: 32px 0;
  color: #fff;
}

.video-canvas {
  height: 280px;
  background: linear-gradient(135deg, #18181b, #27272a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.play-btn-circle {
  width: 54px;
  height: 54px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(12px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-bar {
  padding: 12px 18px;
  background: #09090b;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #71717a;
}

.simulator-container {
  background: var(--apple-card);
  border: 1px solid var(--apple-card-border);
  border-radius: 22px;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 32px 0;
}

.phone-mock-frame {
  width: 100%;
  background: #ffffff;
  border: 5px solid #18181b;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0,0,0,0.08);
}

.top-axis-tabs {
  display: flex;
  background: #f4f4f6;
  padding: 4px;
  gap: 3px;
  border-bottom: 1px solid var(--apple-card-border);
}

.axis-tab-btn {
  flex: 1;
  padding: 5px;
  border: none;
  background: transparent;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--apple-secondary);
  border-radius: 6px;
  cursor: pointer;
}

.axis-tab-btn.active {
  background: #ffffff;
  color: var(--apple-text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.phone-screen-body {
  padding: 16px 14px;
  min-height: 160px;
}

.tab-content-panel { display: none; }
.tab-content-panel.active { display: block; animation: fadeIn 0.2s var(--ease-apple); }
.stock-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 11.5px; border-bottom: 1px solid #f4f4f6; }
.bottom-axis-nav { display: flex; justify-content: space-around; padding: 10px 0; background: #fafafc; border-top: 1px solid var(--apple-card-border); font-size: 9.5px; color: var(--apple-secondary); }
.bottom-axis-nav .active { color: var(--apple-blue); font-weight: 700; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: 80px;
  text-align: center;
  font-size: 12.5px;
  color: var(--apple-secondary);
}

.sparkle-icon { color: #f59e0b; display: inline-block; }

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

/* ==========================================================================
   Narrow Mobile Only Breakpoints
   ========================================================================== */
@media (max-width: 580px) {
  .hero-block {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .hero-avatar-wrap,
  .hero-ctas {
    margin: 0 auto;
  }
  .hero-avatar {
    height: 320px;
  }
  .case-grid,
  .decision-grid,
  .rollout-steps-grid,
  .claims-grid,
  .metric-ribbon {
    grid-template-columns: 1fr;
  }
  .timeline-stack::before { display: none; }
  .timeline-entry { grid-template-columns: 1fr; gap: 4px; }
  .t-node { display: none; }
}

@media (max-width: 460px) {
  .dual-box-row {
    grid-template-columns: 1fr;
  }
}
