/* ── RESET & ROOT ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #f5f0e8;
  --cream-dark: #ede5d5;
  --brown:      #2c1f14;
  --brown-mid:  #5a3e2b;
  --gold:       #b8892a;
  --gold-light: #d4a84b;
  --blush:      #c4856a;
  --blush-light:#d9a08c;
  --sage:       #7a8c6e;
  --text:       #2c1f14;
  --grain-opacity: 0.04;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
  pointer-events: none;
  z-index: 9999;
}

a:link {
  color: var(--blush);
}


/* ── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── CASE STUDY HERO ────────────────────────────────────────── */
.cs-hero {
  background: var(--brown);
  padding: 9rem 6rem 5rem;
  position: relative;
  overflow: hidden;
}

.cs-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(196, 133, 106, 0.07);
  top: 50%; right: -100px;
  transform: translateY(-50%);
  pointer-events: none;
}

.cs-hero::after {
  content: '';
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  border: 1px solid rgba(196, 133, 106, 0.04);
  top: 50%; right: -260px;
  transform: translateY(-50%);
  pointer-events: none;
}

.cs-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cs-hero-text { min-width: 0; }

.cs-hero-visual {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.7s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.cs-hero-visual-note {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.22);
  text-align: center;
}

/* swap-in class for real screenshot */
.cs-hero-visual img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.cs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.cs-breadcrumb a {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.cs-breadcrumb a:hover { color: var(--blush-light); }

.cs-breadcrumb-sep {
  font-size: 0.63rem;
  color: rgba(245, 240, 232, 0.18);
}

.cs-breadcrumb-current {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
}

.cs-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.cs-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.cs-headline em {
  font-style: italic;
  color: var(--blush-light);
}

.cs-summary {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(245, 240, 232, 0.58);
  max-width: 52ch;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

/* ── META BAR ───────────────────────────────────────────────── */
.cs-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  border-top: 1px solid rgba(196, 133, 106, 0.15);
  padding-top: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
}

.cs-meta-item {
  flex: 1;
  padding-right: 2rem;
  margin-right: 2rem;
  border-right: 1px solid rgba(196, 133, 106, 0.12);
}

.cs-meta-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.cs-meta-label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.3);
  margin-bottom: 0.4rem;
}

.cs-meta-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.3;
}

/* ── STACK PILLS IN META ────────────────────────────────────── */
.cs-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.cs-meta-pill {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.18rem 0.6rem;
  border: 1px solid rgba(196, 133, 106, 0.2);
  color: rgba(245, 240, 232, 0.5);
  border-radius: 100px;
}

/* ── THREE-COLUMN STORY ─────────────────────────────────────── */
.cs-story {
  padding: 7rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

.cs-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(44, 31, 20, 0.08);
}

.cs-story-col {
  background: var(--cream);
  padding: 3rem 3rem 2.5rem;
  position: relative;
}

.cs-story-col::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--blush);
  transition: height 0.5s ease;
}

.cs-story-col:hover::before { height: 100%; }

.cs-col-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  font-weight: 300;
  color: rgba(44, 31, 20, 0.045);
  position: absolute;
  top: 1rem; right: 2rem;
  line-height: 1;
  user-select: none;
}

.cs-col-label {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  background: rgba(196, 133, 106, 0.1);
  color: var(--blush);
}

.cs-col-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--brown);
  margin-bottom: 1.25rem;
}

.cs-col-body {
  font-size: 0.87rem;
  font-weight: 300;
  line-height: 1.95;
  color: var(--brown-mid);
}

.cs-col-body p { margin-bottom: 0.9rem; }
.cs-col-body p:last-child { margin-bottom: 0; }

.cs-col-list {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cs-col-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--brown-mid);
  line-height: 1.55;
}

.cs-col-list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blush);
  margin-top: 7px;
  flex-shrink: 0;
}

/* ── ORDER FLOW WALKTHROUGH ─────────────────────────────────── */
.cs-walkthrough {
  background: var(--cream-dark);
  padding: 7rem 6rem;
}

.cs-walkthrough-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.cs-walkthrough .section-label { color: var(--blush); }
.cs-walkthrough .section-title { color: var(--brown); }
.cs-walkthrough .section-intro { color: var(--brown-mid); }

.cs-walkthrough-scroll {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--blush) transparent;
}

.cs-walkthrough-scroll::-webkit-scrollbar { height: 6px; }
.cs-walkthrough-scroll::-webkit-scrollbar-thumb { background: var(--blush); border-radius: 100px; }
.cs-walkthrough-scroll::-webkit-scrollbar-track { background: rgba(44,31,20,0.06); }

.cs-walkthrough-item {
  flex: 0 0 340px;
  scroll-snap-align: start;
}

.cs-walkthrough-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: bottom;
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(44,31,20,0.04);
  margin-bottom: 1rem;
  display: block;
}

.cs-walkthrough-step {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 0.4rem;
}

.cs-walkthrough-caption {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--brown-mid);
}

/* ── TECHNICAL DEEP DIVE ────────────────────────────────────── */
.cs-technical {
  background: var(--brown);
  padding: 7rem 6rem;
}

.cs-technical-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cs-flow-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: start;
  margin-bottom: 4rem;
}

.cs-flow-sticky {
  position: sticky;
  top: 7rem;
}


.section-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1rem;
}

.section-title em { font-style: italic; color: var(--blush-light); }

.section-intro {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.5);
  line-height: 1.9;
  max-width: 54ch;
  margin-bottom: 4rem;
}

/* Flow steps */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 4rem;
}

.flow-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 2rem;
  position: relative;
}

.flow-step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(196, 133, 106, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--blush-light);
  flex-shrink: 0;
  background: rgba(196, 133, 106, 0.06);
  margin-top: 2px;
}

.flow-step-line {
  width: 1px;
  flex: 1;
  background: rgba(196, 133, 106, 0.15);
  margin: 8px 0;
  min-height: 24px;
}

.flow-step:last-child .flow-step-line { display: none; }

.flow-step-content {
  padding: 0 0 2.5rem;
}

.flow-step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.flow-step-body {
  font-size: 0.87rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(245, 240, 232, 0.5);
  max-width: 58ch;
}

.flow-step-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.18rem 0.6rem;
  border: 1px solid rgba(196, 133, 106, 0.2);
  color: rgba(245, 240, 232, 0.4);
  border-radius: 100px;
  margin-top: 0.6rem;
}

/* Why this stack */
.cs-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(255,255,255,0.04);
  margin-top: 1rem;
}

.cs-why-card {
  background: rgba(245, 240, 232, 0.03);
  border: 1px solid rgba(196, 133, 106, 0.1);
  padding: 2rem 1.75rem;
  transition: background 0.3s, border-color 0.3s;
}

.cs-why-card:hover {
  background: rgba(245, 240, 232, 0.05);
  border-color: rgba(196, 133, 106, 0.22);
}

.cs-why-icon {
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
  display: block;
}

.cs-why-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.cs-why-body {
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.45);
}

/* ── WHAT THIS MEANS FOR YOUR BUSINESS ─────────────────────── */
.cs-transferable {
  background: var(--cream-dark);
  padding: 7rem 6rem;
}

.cs-transferable-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.cs-transferable .section-label { color: var(--blush); }

.cs-transferable .section-title { color: var(--brown); }

.cs-pull-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: var(--brown);
  border-left: 3px solid var(--blush);
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.cs-pull-attr {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
  padding-left: 2rem;
}

.cs-niches {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cs-niche {
  border-top: 1px solid rgba(196, 133, 106, 0.2);
  padding-top: 1.25rem;
}

.cs-niche-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--brown);
  margin-bottom: 0.35rem;
}

.cs-niche-body {
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--brown-mid);
  opacity: 0.8;
}

/* ── CTA STRIP ──────────────────────────────────────────────── */
.cs-cta-strip {
  background: var(--brown);
  padding: 5rem 6rem;
  text-align: center;
}

.cs-cta-eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 1.5rem;
}

.cs-cta-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.cs-cta-headline em { font-style: italic; color: var(--blush-light); }

.cs-cta-sub {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.45);
  line-height: 1.8;
  max-width: 44ch;
  margin: 0 auto 3rem;
}

.cs-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.cs-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--blush);
  text-decoration: none;
  padding: 0.9rem 2rem;
  transition: background 0.25s;
}

.cs-cta-btn:hover { background: var(--blush-light); }

.cs-cta-back {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.cs-cta-back:hover { color: var(--cream); }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--brown);
  border-top: 1px solid rgba(196, 133, 106, 0.12);
  padding: 3rem 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
}

.footer-sub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blush);
  opacity: 0.7;
}

.footer-copy {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(245, 240, 232, 0.28);
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {

}

@media (max-width: 1100px) {


  .cs-hero { padding: 7rem 1.5rem 3.5rem; }
  .cs-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .cs-hero-visual { display: none; }
  .cs-meta { flex-direction: column; flex-wrap: wrap; gap: 1.5rem 0; }
  .cs-meta-item { flex: none; width: 100%; padding-right: 0; margin-right: 0; border-right: none; border-bottom: 1px solid rgba(196,133,106,0.1); padding-bottom: 1.25rem; }
  .cs-meta-item:last-child { border-bottom: none; }

  .cs-story { padding: 4rem 1.5rem; }
  .cs-story-grid { grid-template-columns: 1fr; }

  .cs-technical { padding: 4rem 1.5rem; }
  .cs-why-grid { grid-template-columns: 1fr; gap: 1px; }

  .cs-transferable { padding: 4rem 1.5rem; }
  .cs-transferable-inner { grid-template-columns: 1fr; gap: 3rem; }

  .cs-cta-strip { padding: 4rem 1.5rem; }

  .cs-flow-layout { grid-template-columns: 1fr; } 
  .cs-flow-sticky { position: static; display: none; }

  footer { flex-direction: column; text-align: center; padding: 2.5rem 1.5rem; }
}


/* ── PLACEHOLDER VISUAL (content-pending) ───────────────────── */
.cs-placeholder {
  aspect-ratio: 4 / 3;
  border: 2px dashed rgba(196, 133, 106, 0.35);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.5rem;
  background: rgba(196, 133, 106, 0.04);
}
.cs-placeholder-icon { font-size: 1.8rem; opacity: 0.5; }
.cs-placeholder-label {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blush);
}
.cs-placeholder-note {
  font-size: 0.78rem; font-weight: 300; color: var(--brown-mid);
  line-height: 1.5; max-width: 28ch;
}
.cs-placeholder--dark { border-color: rgba(245, 240, 232, 0.25); background: rgba(245, 240, 232, 0.04); }
.cs-placeholder--dark .cs-placeholder-label { color: var(--blush-light); }
.cs-placeholder--dark .cs-placeholder-note { color: rgba(245, 240, 232, 0.5); }