/* shopify case study styles */


  /* ── TOKENS ── */
  :root {
    --ink:       #0C0C14;
    --ink-2:     #3A3848;
    --ink-3:     #6B6880;
    --indigo:    #7B6EF6;
    --indigo-lt: #9B91F8;
    --indigo-dk: #5549C0;
    --indigo-deep:#3d3480;
    --cream:     #F2F0EC;
    --bg:        #F0EEF8;
    --bg-card:   #FAFAF8;
    --border:    rgba(12,12,20,.10);
    --border-strong: rgba(12,12,20,.18);
    --green:     #00BF6F;
    --green-dk:  #007a44;
    --radius:    14px;
    --radius-lg: 22px;
    --section-max: 860px;
    --wide-max:  1100px;
  }

  /* ── RESET ── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; display: block; }
  a { color: var(--indigo-dk); text-decoration: none; }
  a:hover { text-decoration: underline; }

  /* ── NAV ── */
  nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(240,238,248,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-wordmark {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    letter-spacing: -0.025em;
    color: var(--ink);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .nav-wordmark-logo-wrap { display: inline-flex; align-items: center; flex-shrink: 0; }
  .nav-wordmark-logo { width: 28px; height: 28px; object-fit: contain; display: block; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
  .nav-wordmark:hover .nav-wordmark-logo { transform: rotate(-8deg) scale(1.1); }
  .nav-wordmark .first { font-weight: 400; }
  .nav-wordmark .last  { font-style: italic; font-weight: 300; color: var(--indigo); }
  .nav-controls { display: flex; align-items: center; gap: 28px; }
  .nav-right { display: flex; align-items: center; gap: 28px; }
  .nav-right a {
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--ink-2);
    text-decoration: none;
    transition: color .2s;
  }
  .nav-right a:hover { color: var(--indigo); }
  .nav-back {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-3);
    text-decoration: none;
    transition: color .2s;
  }
  .nav-back:hover { color: var(--indigo); text-decoration: none; }
  .nav-back svg { flex-shrink: 0; }

  /* ── HERO ── */
  .hero {
    background: var(--ink);
    padding: 80px 32px 72px;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 60% 80% at 90% 50%, rgba(123,110,246,.18) 0%, transparent 70%),
      radial-gradient(ellipse 40% 60% at 10% 80%, rgba(0,191,111,.08) 0%, transparent 60%);
    pointer-events: none;
  }
  .hero-inner {
    max-width: var(--wide-max);
    margin: 0 auto;
    position: relative;
  }
  .hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 32px;
  }
  .hero-breadcrumb span { color: rgba(255,255,255,.25); }
  .hero-co-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
  }
  .hero-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .hero-co-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .hero-company {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--green);
  }
  .hero-tenure {
    font-size: 12.5px;
    color: rgba(255,255,255,.4);
  }
  .hero-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.08;
    color: #fff;
    margin-bottom: 24px;
    max-width: 700px;
  }
  .hero-title em {
    font-style: italic;
    color: var(--indigo-lt);
  }
  .hero-sub {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255,255,255,.62);
    max-width: 580px;
    margin-bottom: 40px;
  }
  .hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .hero-chip {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .03em;
  }
  .hero-chip.primary {
    background: rgba(123,110,246,.22);
    color: var(--indigo-lt);
    border: 1px solid rgba(123,110,246,.35);
  }
  .hero-chip.neutral {
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.5);
    border: 1px solid rgba(255,255,255,.12);
  }

  /* ── STAT BAR ── */
  .stat-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
  }
  .stat-bar-inner {
    max-width: var(--wide-max);
    margin: 0 auto;
    display: flex;
    align-items: stretch;
  }
  .stat-item {
    flex: 1;
    padding: 28px 24px 24px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .stat-item:last-child { border-right: none; }
  .stat-num {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 34px;
    line-height: 1;
    color: var(--indigo-dk);
  }
  .stat-num sup {
    font-size: 16px;
    vertical-align: super;
  }
  .stat-label {
    font-size: 13px;
    color: var(--ink-3);
    line-height: 1.4;
  }

  /* ── LAYOUT ── */
  .page-body {
    max-width: var(--wide-max);
    margin: 0 auto;
    padding: 64px 32px 100px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
  }
  .main-col { min-width: 0; }
  .side-col {
    position: sticky;
    top: 78px;
    max-height: calc(100vh - 98px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .side-col::-webkit-scrollbar { display: none; }

  /* ── SECTION BLOCKS ── */
  .cs-section { margin-bottom: 60px; }
  .cs-section:last-child { margin-bottom: 0; }
  .section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--indigo);
    margin-bottom: 12px;
  }
  .cs-section h2 {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 28px;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 20px;
  }
  .cs-section h2 em { font-style: italic; color: var(--indigo-dk); }
  .cs-section p {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--ink-2);
    margin-bottom: 16px;
  }
  .cs-section p:last-child { margin-bottom: 0; }
  .cs-section strong { color: var(--ink); font-weight: 500; }

  /* ── DIVIDER ── */
  .cs-divider {
    height: 1px;
    background: var(--border);
    margin: 56px 0;
  }

  /* ── PILLAR GRID ── */
  .pillar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
  }
  .pillar-card--full { grid-column: span 2; }
  .pillar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color .2s, box-shadow .2s;
  }
  .pillar-card:hover {
    border-color: rgba(123,110,246,.3);
    box-shadow: 0 4px 20px rgba(123,110,246,.08);
  }
  .pillar-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--indigo);
    text-transform: uppercase;
  }
  .pillar-name {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: 17px;
    color: var(--ink);
    line-height: 1.25;
  }
  .pillar-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-3);
    margin: 0;
  }

  /* ── OUTCOME CARDS ── */
  .outcome-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
  }
  .outcome-item {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 3px solid var(--indigo);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .outcome-item.green { border-left-color: var(--green); }
  .outcome-headline {
    font-weight: 500;
    font-size: 15px;
    color: var(--ink);
  }
  .outcome-detail {
    font-size: 13.5px;
    color: var(--ink-3);
    line-height: 1.45;
    margin: 0;
  }

  /* ── VISUAL PLACEHOLDER ── */
  .visual-placeholder {
    background: #fff;
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 32px 0;
  }
  .vp-label {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 10px 18px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .vp-label svg { opacity: .5; }
  .vp-body {
    padding: 40px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    flex-direction: column;
    gap: 10px;
  }
  .vp-body-text {
    font-size: 13.5px;
    color: var(--ink-3);
    text-align: center;
    max-width: 320px;
    line-height: 1.5;
  }

  /* ── SHOPIFY LOGISTICS MOCK ── */
  .logistics-mock {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 32px 0;
    box-shadow: 0 4px 32px rgba(12,12,20,.06);
  }
  .lm-topbar {
    height: 44px;
    background: #1A1A1A;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
  }
  .lm-dot { width: 10px; height: 10px; border-radius: 50%; }
  .lm-url {
    flex: 1;
    height: 22px;
    background: rgba(255,255,255,.1);
    border-radius: 4px;
    margin: 0 8px;
  }
  .lm-body {
    display: flex;
    height: 280px;
  }
  .lm-sidebar {
    width: 52px;
    background: #f9f9f9;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 0;
    gap: 14px;
  }
  .lm-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--border);
  }
  .lm-icon.active { background: var(--green); opacity: .9; }
  .lm-content {
    flex: 1;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
  }
  .lm-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .lm-title-bar { width: 140px; height: 14px; background: var(--ink); border-radius: 3px; opacity: .8; }
  .lm-btn-row { display: flex; gap: 6px; }
  .lm-btn { height: 26px; border-radius: 5px; background: var(--green); opacity: .85; }
  .lm-btn.sm { width: 60px; }
  .lm-btn.md { width: 80px; }
  .lm-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .lm-kpi {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 10px 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .lm-kpi-val { height: 18px; border-radius: 3px; background: var(--ink); opacity: .7; }
  .lm-kpi-val.green { background: var(--green); opacity: .8; }
  .lm-kpi-lbl { height: 7px; border-radius: 2px; background: var(--border); width: 70%; }
  .lm-table {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
  }
  .lm-table-head {
    height: 28px;
    background: #f5f5f5;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
  }
  .lm-th { height: 8px; border-radius: 2px; background: var(--border); }
  .lm-row {
    height: 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
  }
  .lm-row:last-child { border-bottom: none; }
  .lm-row:nth-child(even) { background: #fafafa; }
  .lm-cell { height: 8px; border-radius: 2px; background: rgba(12,12,20,.1); }
  .lm-cell.tag {
    height: 16px;
    border-radius: 100px;
    background: rgba(0,191,111,.15);
  }
  .lm-cell.tag.warn {
    background: rgba(255,165,0,.15);
  }

  /* ── FAST TAG MOCK ── */
  .fast-tag-mock {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 32px 0;
    box-shadow: 0 4px 32px rgba(12,12,20,.06);
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .ft-product-row {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid var(--border);
  }
  .ft-img {
    width: 60px;
    height: 60px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
  }
  .ft-meta { display: flex; flex-direction: column; gap: 6px; }
  .ft-name { height: 12px; border-radius: 3px; background: var(--ink); opacity: .7; width: 180px; }
  .ft-price { height: 10px; border-radius: 3px; background: rgba(12,12,20,.3); width: 80px; }
  .ft-tags-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
  .ft-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 500;
  }
  .ft-tag.fast {
    background: rgba(0,191,111,.12);
    color: var(--green-dk);
    border: 1px solid rgba(0,191,111,.25);
  }
  .ft-tag.speed {
    background: rgba(123,110,246,.1);
    color: var(--indigo-dk);
    border: 1px solid rgba(123,110,246,.2);
  }
  .ft-tag.shop-pay {
    background: #f0f0ff;
    color: #5a31f4;
    border: 1px solid rgba(90,49,244,.2);
  }
  .ft-shop-pay-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #5a31f4;
    border-radius: 10px;
    gap: 12px;
  }
  .sp-wordmark {
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -.01em;
  }
  .sp-pill {
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: 11.5px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 100px;
  }
  .sp-conversion {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: rgba(255,255,255,.75);
  }
  .sp-stat {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 22px;
    color: #fff;
    line-height: 1;
  }

  /* ── QUOTE BLOCK ── */
  .quote-block {
    background: var(--ink);
    border-radius: var(--radius-lg);
    padding: 36px 36px 32px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
  }
  .quote-block::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 24px;
    font-family: 'Fraunces', serif;
    font-size: 120px;
    line-height: 1;
    color: rgba(123,110,246,.15);
    pointer-events: none;
  }
  .quote-text {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 21px;
    line-height: 1.45;
    color: rgba(255,255,255,.88);
    margin-bottom: 20px;
    position: relative;
  }
  .quote-attr {
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
  }

  /* ── LEADERSHIP BLOCK ── */
  .leadership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
  }
  .lead-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .lead-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
  }
  .lead-title {
    font-weight: 500;
    font-size: 14px;
    color: var(--ink);
  }
  .lead-desc {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ink-3);
    margin: 0;
  }

  /* ── SIDEBAR ── */
  .side-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
  }
  .side-card-label {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 14px;
  }
  .side-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }
  .side-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
  .side-item-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .side-item-val {
    font-size: 14px;
    color: var(--ink);
    font-weight: 400;
    line-height: 1.4;
  }
  .side-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
  .side-tag {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    background: var(--bg);
    color: var(--ink-2);
    border: 1px solid var(--border);
  }
  .side-tag.accent {
    background: rgba(123,110,246,.08);
    color: var(--indigo-dk);
    border-color: rgba(123,110,246,.2);
  }
  .toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
  .toc-list a {
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--ink-2);
    text-decoration: none;
    transition: background .15s, color .15s;
  }
  .toc-list a:hover { background: var(--bg); color: var(--indigo-dk); }

  /* ── FOOTER ── */
  footer {
    background: var(--ink);
    padding: 40px 32px;
    text-align: center;
  }
  .footer-inner {
    max-width: var(--wide-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-wordmark {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,.4);
  }
  .footer-wordmark span { font-weight: 500; color: rgba(255,255,255,.6); }
  .footer-wordmark em { font-style: italic; color: rgba(123,110,246,.7); }
  .footer-links { display: flex; gap: 20px; }
  .footer-links a {
    font-size: 12.5px;
    color: rgba(255,255,255,.35);
    text-decoration: none;
    transition: color .2s;
  }
  .footer-links a:hover { color: rgba(255,255,255,.65); }

  /* ── REVEAL ANIMATION ── */
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  /* ── RESPONSIVE ── */
  /* Collapse pillar grid before sidebar makes cards too narrow */
  @media (max-width: 1100px) {
    .pillar-grid { grid-template-columns: 1fr; }
    .pillar-card--full { grid-column: span 1; }
  }
  @media (max-width: 860px) {
    .page-body { grid-template-columns: 1fr; }
    .side-col { position: static; }
    .stat-bar-inner { flex-wrap: wrap; }
    .stat-item { flex: 1 0 50%; border-right: none; border-bottom: 1px solid var(--border); }
    .stat-item:last-child { border-bottom: none; }
    .leadership-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 540px) {
    nav { padding: 0 16px; }
    .hero { padding: 56px 20px 56px; }
    .page-body { padding: 40px 20px 72px; }
    .leadership-grid { grid-template-columns: 1fr; }
    .stat-item { flex: 1 0 100%; }
  }
