/* ============ SK CASE STUDY — EDITORIAL DIRECTION ============ */
.crumbs {
  display: flex;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px
}

.crumbs a {
  transition: color .2s
}

.crumbs a:hover {
  color: var(--primary)
}

.crumbs [aria-current] {
  color: var(--text)
}

/* Hero */
.cs-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(72px + clamp(48px, 6vw, 80px));
  padding-bottom: 0;
  overflow: hidden;
  overflow-x: clip;
  position: relative;
  max-width: 100%;
}

.cs-blob {
  position: absolute;
  top: -25%;
  right: -15%;
  width: min(70vw, 1000px);
  height: min(70vw, 1000px);
  max-width: 100%;
  background: conic-gradient(from 0deg, rgba(47, 224, 191, .18), rgba(123, 108, 255, .14), transparent 60%, rgba(47, 224, 191, .18));
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: blobspin 24s linear infinite;
}

@keyframes blobspin {
  to {
    transform: rotate(360deg)
  }
}

.cs-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(36px, 4.5vw, 64px);
  align-items: center;
  flex: 1;
  width: 100%;
}

.cs-hero-text {
  max-width: 720px;
  width: 100%;
}

.cs-chips {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
  flex-wrap: wrap
}

.cs-title {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 24px;
  max-width: 720px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.cs-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
  margin-bottom: -.08em
}

.cs-title .word {
  display: inline-block;
  will-change: transform
}

.cs-hero .lead {
  color: var(--muted);
  font-size: var(--fs-lead);
  max-width: 640px;
  margin-bottom: 34px;
  overflow-wrap: break-word;
}

/* Phone mockup */
.phone-wrap {
  position: relative;
  justify-self: center
}

.phone {
  width: min(300px, 68vw);
  border-radius: 44px;
  padding: 12px;
  position: relative;
  background: linear-gradient(160deg, #1B2436, #0B1120);
  border: 1px solid var(--border-hi);
  box-shadow: var(--shadow), var(--glow);
  transform: rotate(4deg);
  will-change: transform;
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 34px;
  display: block
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 24px;
  background: #0B1120;
  border-radius: 999px;
  z-index: 2;
}

.phone-wrap .vital-card {
  position: absolute
}

.vital-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(13, 19, 32, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow);
}

.vital-card b {
  font-family: var(--ff-display);
  font-size: 1.375rem;
  font-weight: 750;
  display: block;
  line-height: 1
}

.vital-card small {
  font-family: var(--ff-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--success);
  display: block;
  margin-top: 4px
}

.vital-card .ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--success);
  flex: none;
  position: relative
}

.vital-card .ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(52, 211, 153, .18)
}

.vital-a {
  top: 6%;
  left: -52px
}

.vital-b {
  bottom: 8%;
  right: -44px
}

/* Kinetic marquee strip */
.cs-marquee {
  margin-top: clamp(40px, 6vw, 72px);
  border-block: 1px solid var(--border);
  overflow: hidden;
  padding-block: 18px;
  background: rgba(13, 19, 32, .5);
}

.cs-marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: scroll 28s linear infinite
}

.cs-marquee-track span {
  font-family: var(--ff-display);
  font-weight: 750;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -.01em;
  white-space: nowrap;
  padding-inline: 28px;
  position: relative;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 245, 250, .35);
}

.cs-marquee-track span:nth-child(odd) {
  color: var(--text);
  -webkit-text-stroke: 0
}

.cs-marquee-track span::after {
  content: "✦";
  position: absolute;
  right: -10px;
  color: var(--primary);
  -webkit-text-stroke: 0;
  font-size: .6em;
  top: 50%;
  transform: translateY(-50%)
}

/* Chapters — sticky editorial layout */
.chapter {
  padding-block: clamp(48px, 6vw, 84px);
}

.chapter+.chapter {
  padding-top: 0
}

.chapter-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 90px);
  align-items: start
}

.chapter-head {
  position: sticky;
  top: 110px
}

.ch-num {
  display: block;
  font-family: var(--ff-display);
  font-weight: 750;
  line-height: 1;
  font-size: clamp(4.5rem, 9vw, 8rem);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(47, 224, 191, .4);
  margin-bottom: 18px;
}

.chapter-head h2 {
  font-size: var(--fs-h2)
}

.chapter-body .big-p {
  font-family: var(--ff-display);
  font-weight: 650;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}

.chapter-body p:not(.big-p) {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 16px
}

.leak-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px
}

.leak-list li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: .9375rem
}

.leak-list .x {
  color: #F87171;
  font-size: .9rem;
  flex: none
}

/* Protocol — pinned horizontal scroll */
.proto {
  padding-bottom: 0
}

.proto-head {
  position: static;
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 56px)
}

.proto-sub {
  color: var(--muted);
  font-size: var(--fs-lead);
  margin-top: 16px
}

.pin-wrap {
  overflow: hidden
}

.pin-track {
  display: flex;
  gap: 24px;
  padding-inline: clamp(20px, calc((100vw - 1240px)/2 + 48px), 50vw);
  padding-bottom: clamp(80px, 10vw, 140px);
  width: max-content
}

.proto-panel {
  flex: 0 0 min(640px, 84vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 44px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proto-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent-grad);
  opacity: .7;
}

.proto-num {
  font-family: var(--ff-display);
  font-weight: 750;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-hi);
}

.proto-panel h3 {
  font-size: clamp(1.25rem, 2vw, 1.625rem)
}

.proto-panel p {
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.7
}

.proto-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 10px
}

/* Snapshot */
.snapshot {
  padding-top: 0
}

.snap-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center
}

.snap-img {
  perspective: 1000px
}

.snap-img .dash {
  margin-top: 0;
  transition: transform .3s ease;
  transform-style: preserve-3d
}

.browser img {
  width: 100%;
  height: auto;
  display: block
}

.snap-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 28px
}

.snap-stats .num {
  font-family: var(--ff-display);
  font-weight: 750;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--primary)
}

.snap-stats .lbl {
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px
}

/* Outcomes */
.outcome-list {
  list-style: none;
  counter-reset: o;
  display: flex;
  flex-direction: column
}

.outcome-list li {
  display: flex;
  gap: 20px;
  padding-block: 24px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: padding-left .3s ease
}

.outcome-list li:first-child {
  border-top: 1px solid var(--border)
}

.outcome-list li:hover {
  padding-left: 12px
}

.o-num {
  color: var(--primary);
  font-family: var(--ff-mono);
  font-size: 1.25rem;
  flex: none;
  margin-top: 2px
}

.outcome-list b {
  font-family: var(--ff-display);
  font-size: 1.1875rem;
  font-weight: 650;
  display: block;
  margin-bottom: 6px
}

.outcome-list p {
  color: var(--muted);
  font-size: .9rem;
  max-width: 56ch
}

/* Social grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.social-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  border: 1px solid var(--border);
  transition: transform .35s ease, border-color .35s ease;
}

.social-card:hover {
  transform: translateY(-6px) rotate(-.5deg);
  border-color: var(--border-hi)
}

.social-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease
}

.social-card:hover img {
  transform: scale(1.04)
}

.social-card .play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.9);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(7, 10, 18, .6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-hi);
  color: var(--primary);
  opacity: 0;
  transition: opacity .3s, transform .3s;
}

.social-card:hover .play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1)
}

.social-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7, 10, 18, .7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.social-meta b {
  font-family: var(--ff-display);
  font-size: .9375rem;
  color: var(--text)
}

.social-meta .chip {
  border: none;
  padding: 0
}

/* CTA + form */
.cs-cta h2 {
  font-size: clamp(2.25rem, 5vw, 4rem)
}

.cs-form {
  max-width: 820px;
  margin: 32px auto 0
}

/* ============ RESPONSIVE & MOBILE POLISH ============ */
@media (max-width:1024px) {
  .cs-hero {
    min-height: auto;
    padding-top: calc(72px + clamp(32px, 5vw, 56px));
    padding-bottom: 16px
  }

  .cs-hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: left
  }

  .cs-title {
    font-size: clamp(2.1rem, 6vw, 3.75rem);
    margin-bottom: 20px;
    word-break: break-word
  }

  .cs-hero .lead {
    margin-bottom: 28px
  }

  .phone-wrap {
    margin-top: 16px;
    max-width: 100%
  }

  .phone {
    width: min(280px, 72vw);
    transform: rotate(0deg)
  }

  .vital-a {
    top: 2%;
    right: -12px;
    left: auto;
    padding: 10px 14px
  }

  .vital-b {
    bottom: 4%;
    left: -12px;
    right: auto;
    padding: 10px 14px
  }

  .vital-card b {
    font-size: 1.15rem
  }

  .vital-card small {
    font-size: .58rem
  }

  .chapter {
    padding-block: clamp(56px, 8vw, 100px)
  }

  .chapter-grid {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .chapter-head {
    position: static
  }

  .ch-num {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    margin-bottom: 12px
  }

  .snap-grid {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .pin-track {
    width: auto;
    flex-direction: column;
    padding-inline: clamp(20px, 4vw, 48px);
    padding-bottom: 56px
  }

  .proto-panel {
    flex: none;
    width: 100%;
    padding: 28px 24px
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px
  }
}


@media (max-width:768px) {
  .vital-a {
    top: -10px;
    right: 0;
    position: absolute
  }

  .vital-b {
    bottom: -10px;
    left: 0;
    position: absolute
  }

  .snap-stats {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .snap-stats>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(7, 10, 18, .5)
  }

  .snap-stats .lbl {
    margin-top: 0;
    text-align: right
  }

  .typo-stat-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px
  }

  .typo-stat-card+.typo-stat-card {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 16px
  }

  .funnel-diagram-wrap {
    grid-template-columns: 1fr;
    gap: 16px
  }

  .funnel-card {
    padding: 7px !important;
  }

  .chip {
    border-radius: 10px !important;
    padding: 5px;
  }
}

@media (max-width:640px) {
  .cs-title {
    font-size: clamp(1.9rem, 7.5vw, 3rem)
  }

  .cs-chips .chip {
    font-size: .7rem;
    padding: 5px 12px
  }

  .cs-hero-text .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    height: auto;
    padding-block: 14px
  }

  .phone-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%
  }

  .phone {
    width: min(260px, 78vw);
    transform: none
  }

  .phone-wrap .vital-card {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 280px;
    justify-content: center
  }

  .social-grid {
    grid-template-columns: 1fr
  }

  .strategy-checklist li {
    padding: 14px 16px;
    font-size: .9275rem
  }

  .cs-marquee {
    margin-top: 32px;
    padding-block: 12px
  }

  .cs-marquee-track span {
    font-size: 1.25rem;
    padding-inline: 18px
  }
}

/* ============ TYPOGRAPHY STAT BLOCK GRID ============ */
.typo-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}

.typo-stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative
}

.typo-stat-card+.typo-stat-card {
  border-left: 1px solid var(--border);
  padding-left: 24px
}

.typo-stat-card .big-num {
  font-family: var(--ff-display);
  font-weight: 750;
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
  line-height: 1;
  color: var(--primary);
  letter-spacing: -.02em;
}

.typo-stat-card .stat-sub {
  font-family: var(--ff-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* ============ FUNNEL FLOWCHART DIAGRAM ============ */
.funnel-diagram-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
  margin-bottom: 32px;
}

.funnel-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.funnel-card.drain {
  border-color: rgba(248, 113, 113, .3);
  background: radial-gradient(ellipse at top left, rgba(248, 113, 113, .06), transparent 70%), var(--surface)
}

.funnel-card.direct {
  border-color: rgba(47, 224, 191, .4);
  background: radial-gradient(ellipse at top left, rgba(47, 224, 191, .08), transparent 70%), var(--surface)
}

.funnel-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(7, 10, 18, .5);
  border: 1px solid var(--border);
  font-family: var(--ff-mono);
  font-size: .84rem;
  color: var(--text);
}

.flow-arrow {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1
}

/* ============ STRATEGY CHECKLIST ============ */
.strategy-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px
}

.strategy-checklist li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--ff-display);
  font-weight: 650;
  font-size: 1rem;
  transition: border-color .3s, transform .3s;
}

.strategy-checklist li:hover {
  border-color: var(--border-hi);
  transform: translateX(6px)
}

.strategy-checklist .check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(47, 224, 191, .15);
  border: 1px solid var(--primary);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: .9rem;
  font-weight: 700;
  flex: none;
}