/* ==========================================================================
   Autumn Vegh — Portfolio
   Editorial earth palette · Fraunces + Inter
   ========================================================================== */

:root {
  --paper: #f4ede1;
  --paper-2: #ece3d3;
  --paper-3: #e3d9c6;
  --ink: #1d201d;
  --ink-2: #2d322e;
  --muted: #6b6960;
  --muted-2: #9a9587;
  --line: #d9cdb6;
  --accent: #a8492b;
  --accent-deep: #7d3520;
  --highlight: #c87f4d;
}

/* ----- Base ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Subtle paper grain */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: multiply;
}

::selection { background: var(--accent); color: var(--paper); }
a { color: inherit; text-decoration: none; }

/* ----- Nav ----- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 28px 56px;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(244, 237, 225, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px 56px;
  border-bottom-color: var(--line);
}
.nav-name {
  font-family: 'Fraunces', serif;
  font-size: 19px; font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-name em { font-style: italic; font-weight: 300; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 400;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ----- Hero ----- */
.hero {
  min-height: 100vh;
  padding: 180px 56px 100px;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
  opacity: 0; animation: fadeUp 0.8s 0.1s forwards;
}
.hero-eyebrow::before {
  content: ''; width: 44px; height: 1px; background: var(--accent);
}
.hero-eyebrow .meta {
  color: var(--muted); margin-left: auto;
  font-weight: 400; letter-spacing: 0.18em;
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(56px, 8vw, 132px);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 56px;
  max-width: 1200px;
  opacity: 0; animation: fadeUp 0.9s 0.25s forwards;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
}
.hero-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.hero-desc {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 580px;
  opacity: 0; animation: fadeUp 0.9s 0.4s forwards;
}
.hero-desc strong { font-weight: 500; color: var(--ink); }
.hero-cta {
  display: flex; gap: 28px; align-items: center;
  justify-content: flex-end;
  opacity: 0; animation: fadeUp 0.9s 0.55s forwards;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 26px;
  border-radius: 100px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { display: inline-block; transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ----- Marquee ----- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: var(--paper-2);
}
.marquee-track {
  display: flex; align-items: center;
  gap: 80px;
  animation: marquee 50s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 300;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee-item em { font-style: italic; color: var(--muted); }
.marquee-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----- Section structure ----- */
.work,
.approach,
.about,
.contact {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 56px;
  position: relative; z-index: 2;
}
.work    { padding: 140px 56px 100px; }
.about   { padding: 100px 56px 120px; border-top: 1px solid var(--line); }
.contact { padding: 120px 56px;       border-top: 1px solid var(--line); }
.approach{                            border-top: 1px solid var(--line); }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 80px;
  gap: 40px;
}
.section-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--accent);
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 700px;
}
.section-title em { font-style: italic; color: var(--accent); font-weight: 300; }
.section-aside {
  font-size: 14px;
  color: var(--muted);
  max-width: 280px;
  text-align: right;
  line-height: 1.65;
  padding-bottom: 8px;
}

/* ----- Case study cards ----- */
.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 48px;
}
.cs-card {
  display: block;
  position: relative;
  transition: transform 0.4s ease;
}
.cs-card:not(.soon):hover { transform: translateY(-4px); }

.cs-cover {
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  transition: border-color 0.3s ease;
}
.cs-card:not(.soon):hover .cs-cover { border-color: var(--accent); }
.cs-cover-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 48px;
}
.cs-cover-num {
  position: absolute; top: 24px; left: 28px;
  font-family: 'Fraunces', serif;
  font-size: 14px; font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.cs-cover-status {
  position: absolute; top: 24px; right: 28px;
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.cs-cover-status::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
}
.cs-card.soon .cs-cover-status::before { background: var(--muted-2); }

/* Shared cover-display defaults — individual covers override */
.cover-display {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.025em;
}

.cover-nimbus {
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(168, 73, 43, 0.10), transparent 70%),
    linear-gradient(135deg, #2d322e 0%, #1d201d 100%);
}
.cover-nimbus .cover-display {
  font-size: clamp(36px, 4.2vw, 64px);
  color: var(--paper);
  text-align: left;
}
.cover-nimbus .cover-display em { font-style: italic; color: var(--highlight); }
.cover-nimbus .cs-cover-num,
.cover-nimbus .cs-cover-status { color: rgba(244, 237, 225, 0.5); }

.cover-blockchain {
  background:
    radial-gradient(ellipse 55% 45% at 70% 60%, rgba(200, 127, 77, 0.12), transparent 70%),
    linear-gradient(135deg, var(--paper-2) 0%, var(--paper-3) 100%);
}
.cover-blockchain .cover-display {
  font-size: clamp(36px, 4.2vw, 64px);
  color: var(--ink);
}
.cover-blockchain .cover-display em { font-style: italic; color: var(--accent); }

.cover-acorns {
  background: linear-gradient(135deg, #efe6d3 0%, #e3d9c6 100%);
}
.cover-acorns .cover-display {
  font-size: clamp(34px, 4vw, 60px);
  color: var(--muted);
}

.cover-okx {
  background: linear-gradient(135deg, #2d322e 0%, #1d201d 100%);
}
.cover-okx .cover-display {
  font-size: clamp(34px, 4vw, 60px);
  color: rgba(244, 237, 225, 0.4);
}
.cover-okx .cs-cover-num,
.cover-okx .cs-cover-status { color: rgba(244, 237, 225, 0.4); }

.cs-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}
.cs-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-tag {
  font-size: 11px; font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.cs-tag + .cs-tag::before {
  content: '·'; margin-right: 8px; color: var(--muted-2);
}

.cs-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 14px;
}
.cs-title em { font-style: italic; color: var(--accent); font-weight: 300; }

.cs-desc {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 560px;
}
.cs-desc .note {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.cs-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: gap 0.25s ease, color 0.2s, border-color 0.2s;
}
.cs-link .arrow { transition: transform 0.25s ease; }
.cs-card:hover .cs-link { color: var(--accent); border-color: var(--accent); }
.cs-card:hover .cs-link .arrow { transform: translateX(4px); }

.cs-card.soon { pointer-events: none; }
.cs-card.soon .cs-title,
.cs-card.soon .cs-desc { color: var(--muted); }
.cs-card.soon .cs-link {
  color: var(--muted);
  border-color: var(--muted-2);
}

/* ----- Approach ----- */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: flex-start;
}
.approach-pull {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.approach-pull em { font-style: italic; color: var(--accent); font-weight: 300; }

.approach-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 56px;
}
.approach-item {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.approach-num {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}
.approach-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.2;
}
.approach-body {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ----- About ----- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: flex-start;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-num em { font-style: italic; color: var(--accent); font-weight: 300; }
.stat-label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.about-body {
  font-family: 'Fraunces', serif;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 32px;
}
.about-body em { font-style: italic; color: var(--accent); font-weight: 300; }
.about-supporting {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 620px;
}

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: flex-start;
}
.contact h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(56px, 7vw, 104px);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 32px;
}
.contact h2 em { font-style: italic; color: var(--accent); font-weight: 300; }
.contact-desc {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 540px;
}
.contact-details {
  display: flex; flex-direction: column;
  gap: 32px;
}
.contact-row {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.contact-row label {
  display: block;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-row a, .contact-row span {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: color 0.2s;
  line-height: 1.3;
}
.contact-row a:hover { color: var(--accent); }
.contact-row .available {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent);
  font-size: 18px;
}
.contact-row .available::before {
  content: ''; width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ----- Footer ----- */
footer {
  padding: 36px 56px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 2;
  background: var(--paper-2);
}
footer .f-name {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  color: var(--muted);
  letter-spacing: -0.005em;
}
footer .f-name em { font-style: italic; }
footer .f-meta {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ----- Animations ----- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(.2,.7,.2,1), transform 0.85s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  nav, nav.scrolled { padding: 18px 24px; }
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 12px; }

  .hero { padding: 140px 24px 80px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 32px; }
  .hero-cta { justify-content: flex-start; }

  .marquee-item { font-size: 18px; }

  .work, .about, .contact, .approach { padding-left: 24px; padding-right: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 56px; }
  .section-aside { text-align: left; max-width: 100%; }

  .cs-grid { grid-template-columns: 1fr; gap: 56px; }

  .approach-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .approach-list { grid-template-columns: 1fr; gap: 32px; }
  .about-stats { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }

  footer { padding: 28px 24px; flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (max-width: 540px) {
  .nav-links a:nth-child(2) { display: none; }
  .hero h1 { margin-bottom: 40px; }
  .btn { padding: 12px 22px; font-size: 12px; }
}

/* ==========================================================================
   Case Study Pages
   ========================================================================== */

/* ----- CS Hero ----- */
.cs-hero {
  padding: 160px 56px 80px;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
}
.cs-hero .section-eyebrow { margin-bottom: 32px; }
.cs-h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 48px;
}
.cs-h1 em { font-style: italic; font-weight: 300; color: var(--accent); font-variation-settings: "opsz" 144; }
.cs-hero-meta {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.cs-meta-item label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.cs-meta-item span {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-2);
}

/* ----- CS Content ----- */
.cs-content { max-width: 1160px; margin: 0 auto; padding: 0 56px; }
.cs-section { padding: 80px 0; }
.cs-divider { height: 1px; background: var(--line); }

/* ----- CS Typography ----- */
.cs-content h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 720px;
}
.cs-content h2 em { font-style: italic; color: var(--accent); font-weight: 300; }
.cs-content h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px; line-height: 1.2;
}
.cs-content h4 {
  font-family: 'Fraunces', serif;
  font-size: 17px; font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
}
.cs-content p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.82;
  max-width: 680px;
  margin-bottom: 20px;
}

/* ----- Info grid (context quad) ----- */
.cs-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 56px;
}
.cs-info-cell { background: var(--paper-2); padding: 36px 40px; transition: background 0.25s; }
.cs-info-cell:hover { background: var(--paper-3); }
.cs-info-cell label {
  display: block;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.cs-info-cell p { font-size: 15px; max-width: none; margin: 0; line-height: 1.65; }

/* ----- Challenge cards ----- */
.cs-challenge-pair { display: flex; flex-direction: column; gap: 16px; margin-top: 56px; }
.cs-challenge {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px 44px;
  position: relative; overflow: hidden;
}
.cs-challenge::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
}
.cs-challenge-alt::before { background: var(--highlight); }
.cs-challenge p { max-width: none; font-size: 16px; margin: 0; }

/* ----- Screenshots ----- */
.cs-ss {
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  margin: 36px 0;
  box-shadow: 0 8px 32px rgba(29,32,29,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cs-ss:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(29,32,29,0.12); }
.cs-ss img { width: 100%; display: block; }
.cs-ss-cap {
  padding: 14px 20px;
  font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--line);
  letter-spacing: 0.04em; line-height: 1.5;
}

/* ----- Step grid (onboarding) ----- */
.cs-step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px; margin: 48px 0;
}
.cs-step { position: relative; }
.cs-step .cs-ss { margin: 0; }
.cs-step-num {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* ----- Workflow panel grid ----- */
.cs-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 36px 0; }
.cs-panel {
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: 0 8px 32px rgba(29,32,29,0.08);
  overflow: hidden;
}
.cs-panel-inner { position: relative; }
.cs-panel-inner img { width: 100%; display: block; }
.cs-panel-overlay { position: absolute; inset: 0; pointer-events: none; }
.cs-panel-dim-center {
  background: linear-gradient(
    to right,
    transparent 0%, transparent 22%,
    rgba(244,237,225,0.78) 23%, rgba(244,237,225,0.78) 75%,
    transparent 76%
  );
}
.cs-panel-dim-left {
  background: linear-gradient(
    to right,
    rgba(244,237,225,0.78) 0%, rgba(244,237,225,0.78) 74%,
    transparent 76%
  );
}
.cs-badge {
  position: absolute; top: 12px;
  background: var(--accent); color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 4px;
  pointer-events: none; white-space: nowrap;
}
.cs-badge-l { left: 12px; }
.cs-badge-r { right: 12px; }

/* ----- Decisions grid ----- */
.cs-decisions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
  margin-top: 56px;
}
.cs-decision { background: var(--paper-2); padding: 40px; transition: background 0.25s; }
.cs-decision:hover { background: var(--paper-3); }
.cs-decision-n {
  font-family: 'Fraunces', serif;
  font-size: 52px; line-height: 1;
  color: var(--line); margin-bottom: 18px;
}
.cs-decision p { max-width: none; font-size: 14px; margin: 0; line-height: 1.7; }

/* ----- Outcome box ----- */
.cs-outcome {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 72px; margin-top: 56px;
  position: relative; overflow: hidden;
}
.cs-outcome::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--highlight), transparent);
}
.cs-outcome p { font-size: 19px; color: var(--ink); line-height: 1.72; max-width: 740px; margin-bottom: 20px; }
.cs-outcome p.sub { font-size: 16px; color: var(--ink-2); }

/* ----- Pills ----- */
.cs-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.cs-pill {
  background: rgba(168,73,43,0.07);
  border: 1px solid rgba(168,73,43,0.20);
  color: var(--accent);
  padding: 7px 18px; border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500; letter-spacing: 0.05em;
}
.cs-pill-alt {
  background: rgba(200,127,77,0.07);
  border-color: rgba(200,127,77,0.20);
  color: var(--highlight);
}

/* ----- CS Stats strip ----- */
.cs-stats {
  display: flex; gap: 0;
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
}
.cs-stat {
  flex: 1; padding: 36px 40px;
  background: var(--paper-2);
  border-right: 1px solid var(--line);
  transition: background 0.25s;
}
.cs-stat:last-child { border-right: none; }
.cs-stat:hover { background: var(--paper-3); }
.cs-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 48px; font-weight: 300;
  color: var(--accent);
  line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.cs-stat-label { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }

/* ----- Third challenge card variant ----- */
.cs-challenge-c::before { background: var(--muted); }

/* ----- Design questions block ----- */
.cs-dq-block {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
  margin-top: 56px;
}
.cs-dq-header {
  padding: 24px 40px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cs-dq-badge {
  background: rgba(168,73,43,0.07);
  border: 1px solid rgba(168,73,43,0.20);
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; white-space: nowrap;
}
.cs-dq-header p { font-size: 14px; color: var(--muted); margin: 0; max-width: none; line-height: 1.5; }
.cs-dq-q {
  padding: 24px 40px;
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start;
  transition: background 0.2s;
}
.cs-dq-q:last-child { border-bottom: none; }
.cs-dq-q:hover { background: var(--paper-3); }
.cs-dq-num {
  font-family: 'Fraunces', serif;
  font-size: 32px; font-weight: 300;
  color: var(--line); line-height: 1; padding-top: 4px;
}
.cs-dq-text { font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.cs-dq-text strong { color: var(--ink); font-weight: 500; }

/* ----- Flow diagram wrapper ----- */
.cs-flow {
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  margin: 36px 0;
  box-shadow: 0 8px 32px rgba(29,32,29,0.08);
}
.cs-flow img { width: 100%; display: block; }
.cs-ss-grid .cs-flow { margin: 0; }

/* Artifact variant — sized down and centered, image is a link to full-size */
.cs-flow-artifact {
  max-width: 65%;
  margin-left: auto;
  margin-right: auto;
}
.cs-flow-artifact a { display: block; }
.cs-flow-artifact a:hover img { opacity: 0.92; transition: opacity 0.2s ease; }

/* ----- Journey strip ----- */
.cs-journey { margin: 48px 0; }
.cs-journey-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
}
.cs-journey-screens { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cs-journey-step { position: relative; }
.cs-journey-step .cs-ss { margin: 0; }
.cs-journey-step .cs-ss-cap { font-size: 10px; padding: 10px 12px; }
.cs-journey-num {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* ----- 3-col screenshot grid ----- */
.cs-ss-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin: 36px 0; }
.cs-ss-grid-3 .cs-ss { margin: 0; }

/* ----- CS Responsive ----- */
@media (max-width: 960px) {
  .cs-hero { padding: 120px 24px 60px; }
  .cs-hero-meta { gap: 28px; }
  .cs-content { padding: 0 24px; }
  .cs-section { padding: 56px 0; }
  .cs-info-grid,
  .cs-step-grid,
  .cs-panel-grid,
  .cs-decisions { grid-template-columns: 1fr; }
  .cs-outcome { padding: 40px 32px; }

  .cs-stats { flex-direction: column; }
  .cs-stat { border-right: none; border-bottom: 1px solid var(--line); }
  .cs-stat:last-child { border-bottom: none; }
  .cs-journey-screens { grid-template-columns: 1fr 1fr; }
  .cs-ss-grid-3 { grid-template-columns: 1fr; }
  .cs-dq-q { grid-template-columns: 1fr; gap: 8px; }
  .cs-flow-artifact { max-width: 100%; }
}
