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

:root {
  --bg:      #FFFFFF;
  --bg-2:    #F4F4F7;
  --bg-3:    #ECECEF;
  --white:   #FFFFFF;
  --text:    #15151A;
  --muted:   #72727C;
  --faint:   #AEAEBA;
  --accent:  #8076AE;
  --acc-l:   #E6E4F4;
  --acc-m:   #A89EC8;
  --dark:    #15151A;
  --border:  rgba(21,21,26,.08);
  --borm:    rgba(21,21,26,.13);
  --serif:   'Playfair Display', Georgia, serif;
  --sans:    'Jost', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --max:     1160px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 66px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--borm);
  box-shadow: 0 1px 8px rgba(21,21,26,.06);
  transition: transform .4s ease;
}

.n-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}

.n-mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: background .25s;
}

.n-mark::after {
  content: '*';
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--white);
  line-height: 1;
  margin-top: 5px;
}

.n-logo:hover .n-mark { background: var(--text); }
.n-logo:hover .n-mark::after { color: var(--white); }

.n-wordmark {
  font-family: var(--serif);
  font-size: 1rem; font-weight: 400; letter-spacing: .01em;
  color: var(--text);
}

.n-avail {
  display: flex; align-items: center; gap: 7px;
  font-size: .68rem; letter-spacing: .06em;
  color: var(--muted);
  padding: 5px 14px;
  border: 1px solid var(--borm);
  border-radius: 100px;
}

.n-avail-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #6BAE80;
  animation: blink 2.8s ease-in-out infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.n-links {
  display: flex; list-style: none;
  gap: 2rem;
  margin-left: auto; margin-right: 2rem;
}

.n-links a {
  font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
  font-weight: 400;
  transition: opacity .2s;
}

.n-links a:hover { opacity: .6; }

nav.nav-hidden { transform: translateY(-100%); }

.n-cta {
  display: inline-block;
  padding: .6rem 1.5rem;
  background: var(--accent); color: var(--white);
  border-radius: 100px; font-size: .78rem; font-weight: 400; letter-spacing: .06em;
  text-decoration: none; transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 14px rgba(128,118,174,.4);
}

.n-cta:hover { background: var(--white); color: var(--dark); transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding: 132px 3rem 80px;
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center;
}

.h-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 1.5rem;
}

.h-eye-line { width: 28px; height: 1px; background: var(--accent); }

.h-eye-txt {
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 400;
}

.h-eye-txt strong { font-weight: 700; }

h1 {
  font-family: var(--serif);
  font-size: clamp(3.2rem,5.5vw,5.4rem);
  font-weight: 400; line-height: 1.06;
  letter-spacing: -.018em;
  margin-bottom: 1.75rem;
}

h1 em { font-style: italic; color: var(--accent); }

#rotating-word {
  display: inline-block;
}

.h-sub {
  font-size: .98rem; color: var(--muted);
  line-height: 1.9; max-width: 42ch;
  font-weight: 300; margin-bottom: 2.5rem;
}

.h-ctas { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }

.btn {
  display: inline-block; border-radius: 100px;
  font-size: .82rem; font-weight: 400; letter-spacing: .04em;
  text-decoration: none; padding: .8rem 1.75rem;
  transition: all .25s;
}

.btn-dark { background: var(--text); color: var(--white); }
.btn-dark:hover { background: var(--accent); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--borm); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.h-stats {
  display: flex; align-items: center; gap: 2rem;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-n {
  font-family: var(--serif); font-size: 2.1rem;
  font-weight: 400; line-height: 1; letter-spacing: -.03em;
}

.stat-l {
  font-size: .68rem; color: var(--faint);
  text-transform: uppercase; letter-spacing: .1em; margin-top: 3px;
}

.h-sep { width: 1px; height: 38px; background: var(--border); }

/* hero right: floating card */
.h-right {
  display: flex; flex-direction: column; gap: 1rem;
  align-items: flex-start; position: relative;
}

.h-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
  width: 100%; max-width: 340px;
  box-shadow: 0 8px 40px rgba(21,21,26,.07);
  position: relative;
}

.h-card-label {
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; font-weight: 400;
}

.h-card-title {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 400;
  margin-bottom: 6px;
}

.h-card-sub { font-size: .78rem; color: var(--muted); line-height: 1.6; }

.h-card-chips {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px;
}

.h-chip {
  padding: 3px 10px;
  border-radius: 100px; font-size: .65rem; letter-spacing: .04em;
}

.h-chip-acc { background: var(--acc-l); color: var(--accent); }
.h-chip-neu { background: var(--bg-2); color: var(--muted); border: 1px solid var(--border); }

/* mini flow diagram in hero card */
.h-flow {
  display: flex; align-items: center; gap: 6px;
  margin: 14px 0 4px;
}

.h-fn {
  padding: 5px 10px; border-radius: 6px;
  font-size: .65rem; color: var(--muted);
  border: 1px solid var(--border); background: var(--bg);
  white-space: nowrap;
}

.h-fn.act { background: var(--acc-l); color: var(--accent); border-color: transparent; }

.h-farrow {
  font-size: .7rem; color: var(--faint); flex-shrink: 0;
}

.h-badge {
  position: absolute; top: -14px; right: 16px;
  background: var(--accent); color: white;
  border-radius: 100px; padding: 4px 12px;
  font-size: .65rem; letter-spacing: .06em;
}

.h-card-2 {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  width: 80%; max-width: 260px;
  margin-left: auto;
  box-shadow: 0 4px 20px rgba(21,21,26,.05);
  display: flex; align-items: center; gap: 10px;
}

.h-c2-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--acc-l); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.h-c2-icon svg { width: 14px; height: 14px; stroke: var(--accent); fill: none; stroke-width: 1.5; }

.h-c2-text { display: flex; flex-direction: column; gap: 3px; }
.h-c2-t { font-size: .75rem; font-weight: 400; }
.h-c2-s { font-size: .67rem; color: var(--muted); }

/* ===== SHARED ===== */
section { padding: 6rem 3rem; }
.container { max-width: var(--max); margin: 0 auto; }

.sec-hd {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 3.5rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.sec-eye {
  font-size: .67rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint); display: block; margin-bottom: 5px;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem,3vw,2.6rem);
  font-weight: 400; line-height: 1.15;
}

.sec-lnk {
  font-size: .78rem; color: var(--muted); text-decoration: none;
  letter-spacing: .04em; transition: color .2s; white-space: nowrap;
  border-bottom: 1px solid var(--border); padding-bottom: 1px;
}
.sec-lnk:hover { color: var(--accent); border-color: var(--accent); }

/* ===== WORK ===== */
#work { background: var(--bg); }

.work-filters {
  display: flex; gap: .6rem;
  margin-bottom: 2rem;
}

.wf-btn {
  padding: .45rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 100px;
  background: var(--acc-l);
  color: var(--accent);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .2s;
}

.wf-btn:hover { background: var(--acc-m); color: var(--white); }
.wf-btn.active { background: var(--accent); color: var(--white); }
.wf-btn-right { margin-left: auto; }

.photo-gallery {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: .5rem;
}
.photo-gallery.show { display: grid; }
.pg-item {
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease;
}
.pg-item { cursor: pointer; }
.pg-item:hover { transform: translateY(-4px); }
.pg-placeholder {
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  border: 2px dashed var(--border);
  background: var(--bg-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem;
}
.pg-placeholder-l { font-size: .8rem; color: var(--muted); }

/* Photo lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(16,16,20,.92);
  backdrop-filter: blur(6px);
  padding: 4vh 5vw;
}
.lightbox.open { display: flex; }

/* Click-to-zoom overlay for case-study screenshots */
.cs-zoom {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  align-items: flex-start; justify-content: center;
  background: rgba(16,16,20,.92);
  backdrop-filter: blur(6px);
  padding: 4vh 5vw; overflow: auto; cursor: zoom-out;
}
.cs-zoom.open { display: flex; }
.cs-zoom img {
  margin: auto;
  max-width: min(760px, 64vw);
  width: 100%; height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}

/* Onboarding walkthrough — step through the four signup screens */
.ob-walk { max-width: 720px; margin: 2.5rem auto 0; }
.ob-walk-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.ob-walk-prog { display: flex; gap: 6px; flex: 1; }
.ob-seg { flex: 1; height: 3px; border-radius: 3px; background: var(--border); transition: background .3s ease; }
.ob-seg.is-active { background: var(--accent); }
.ob-walk-count { font-size: .8rem; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.ob-walk-count .ob-cur { color: var(--text); font-weight: 600; }
.ob-walk-viewport { overflow: hidden; border-radius: 14px; }
.ob-walk-track { display: flex; transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.ob-slide { flex: 0 0 100%; margin: 0; }
.ob-slide img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-bottom: none; border-radius: 14px 14px 0 0; }
.ob-slide figcaption { background: var(--bg-2); border: 1px solid var(--border); border-top: none; border-radius: 0 0 14px 14px; padding: 1rem 1.2rem; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.ob-slide figcaption strong { display: block; color: var(--text); font-weight: 600; font-size: .98rem; margin-bottom: .2rem; }
.ob-walk-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.3rem; }
.ob-btn { font: inherit; font-size: .85rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.ob-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.ob-btn:disabled { opacity: .35; cursor: default; }
.ob-dots { display: flex; gap: 8px; }
.ob-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .25s ease, transform .25s ease; }
.ob-dot.is-active { background: var(--accent); transform: scale(1.25); }
.lb-content {
  margin: 0; max-width: 72vw; max-height: 88vh;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
}
.lb-img {
  max-width: 100%; max-height: 68vh;
  object-fit: contain; display: block;
  border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
@media (max-width: 900px) { .lb-content { max-width: 90vw; } }
.lb-cap { text-align: center; display: flex; flex-direction: column; gap: .35rem; }
.lb-title {
  font-family: var(--serif); font-size: 1.4rem; color: var(--white);
  font-style: italic; letter-spacing: .01em;
}
.lb-date {
  font-size: .8rem; color: rgba(247,247,248,.55);
  letter-spacing: .12em; text-transform: uppercase;
}
.lb-close {
  position: absolute; top: 1.4rem; right: 1.8rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(247,247,248,.1); color: var(--white);
  border: none; font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-close:hover { background: rgba(247,247,248,.22); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(247,247,248,.1); color: var(--white);
  border: none; font-size: 2rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-nav:hover { background: rgba(247,247,248,.22); }
.lb-prev { left: 1.4rem; }
.lb-next { right: 1.4rem; }
@media (max-width: 640px) {
  .lb-nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .lb-prev { left: .4rem; } .lb-next { right: .4rem; }
}
.pg-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Product photography: show each photo in full (masonry, natural aspect) */
.photo-gallery[data-filter="product"].show {
  display: block;
  column-count: 3;
  column-gap: 1rem;
}
.photo-gallery[data-filter="product"] .pg-item {
  aspect-ratio: auto;
  display: block;
  margin-bottom: 1rem;
  break-inside: avoid;
}
.photo-gallery[data-filter="product"] .pg-item img { height: auto; }
@media (max-width: 760px) {
  .photo-gallery[data-filter="product"].show { column-count: 2; }
}
.pg-ph {
  font-size: .8rem; color: var(--accent); letter-spacing: .06em;
  text-transform: uppercase; opacity: .65;
}
@media (max-width: 760px) { .photo-gallery { grid-template-columns: repeat(2, 1fr); } }

.cat-empty {
  display: none;
  padding: 4.5rem 1rem; text-align: center;
  color: var(--muted); font-family: var(--serif); font-style: italic;
  font-size: 1.15rem;
}
.cat-empty.show { display: block; }

/* Graphic design gallery — 3-column grid filled column by column so every column
   ends flush at the bottom. Square logos keep a 1:1 cell; the two tall flyers span
   two rows so they stay in full (never cropped). 14 squares + 2 tall flyers fill
   3 columns × 6 rows exactly. */
.gd-gallery { display: none; margin-top: .5rem; }
.gd-gallery.show {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  gap: 1rem;
}
.gd-item {
  margin: 0;
  border-radius: 14px; border: 1px solid var(--border);
  background: #fff; overflow: hidden;
}
.gd-item:not(.gd-item-tall) {
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center; padding: 1.6rem;
}
.gd-item:not(.gd-item-tall) img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.gd-item-tall { grid-row: span 2; }
.gd-item-tall img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 760px) {
  .gd-gallery.show { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; grid-auto-flow: row dense; }
  .gd-item-tall { grid-row: span 2; }
}

.work-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.work-note { margin-top: 2.5rem; text-align: center; font-size: .85rem; color: var(--muted); font-style: italic; }

.wi {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  text-decoration: none; color: var(--text);
  transition: transform .35s cubic-bezier(.34,1.1,.64,1), box-shadow .35s;
}

.wi:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(21,21,26,.06); }
.wi.rev { direction: rtl; }
.wi.rev > * { direction: ltr; }

/* device stage */
.wi-stage {
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 2.5rem; min-height: 360px;
  position: relative; overflow: hidden;
}

/* subtle radial glow on stage */
.wi-stage::before {
  content: '';
  position: absolute;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(128,118,174,.07) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}

/* info */
.wi-badge-wip {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: var(--accent);
  color: var(--white);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 100px;
  z-index: 2;
}

.wi-info {
  padding: 2.75rem; display: flex;
  flex-direction: column; justify-content: center;
}

.wi-meta {
  font-size: .67rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); margin-bottom: .85rem;
  display: flex; align-items: center; gap: 8px;
}

.wi-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.wi-title {
  font-family: var(--serif);
  font-size: 1.85rem; font-weight: 400;
  line-height: 1.2; margin-bottom: .9rem;
  letter-spacing: -.01em;
}

.wi-desc {
  font-size: .88rem; color: var(--muted);
  line-height: 1.85; margin-bottom: 1.5rem; font-weight: 300;
}

.wi-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 1.75rem; }

.wi-tag {
  padding: 4px 11px; border-radius: 100px;
  font-size: .67rem; letter-spacing: .04em;
}

.wi-tag-a { background: var(--acc-l); color: var(--accent); }
.wi-tag-n { background: var(--bg-2); color: var(--muted); border: 1px solid var(--border); }

.wi-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--text); text-decoration: none;
  letter-spacing: .04em; width: fit-content;
  padding-bottom: 2px; border-bottom: 1px solid var(--borm);
  transition: color .2s, border-color .2s;
}

.wi-link:hover { color: var(--accent); border-color: var(--accent); }

.wi-ext {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--text); text-decoration: none;
  letter-spacing: .04em; width: fit-content;
  padding-bottom: 2px; border-bottom: 1px solid var(--borm);
  transition: color .2s, border-color .2s;
}
.wi-ext:hover { color: var(--accent); border-color: var(--accent); }

.wi-arr {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--borm);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; transition: all .2s;
}

.wi:hover .wi-arr { border-color: var(--accent); color: var(--accent); transform: translate(2px,-2px); }

/* ===== ELEGANT LAPTOP ===== */
.e-laptop { width: 100%; max-width: 400px; position: relative; z-index: 1; }

.e-lp-top {
  background: #1B1B1F;
  border: 1px solid #28282E;
  border-bottom: none;
  border-radius: 11px 11px 0 0;
  padding: 5px 5px 0;
  position: relative;
}

.e-lp-camera {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: #28282E; z-index: 2;
}

.e-lp-screen {
  background: white;
  border-radius: 7px 7px 0 0;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.e-lp-bar {
  height: 24px; background: #F2F2F0;
  display: flex; align-items: center;
  padding: 0 9px; gap: 5px;
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.e-dot { width: 6.5px; height: 6.5px; border-radius: 50%; }
.e-dot-r { background: #ED6A5A; }
.e-dot-y { background: #F4BF4F; }
.e-dot-g { background: var(--accent); opacity: .7; }

.e-lp-url {
  flex: 1; height: 13px; background: rgba(0,0,0,.06);
  border-radius: 3px; margin: 0 16px;
}

.e-lp-hinge {
  height: 11px; background: #212126;
  border-radius: 0 0 2px 2px; position: relative;
}

.e-lp-hinge::after {
  content: ''; position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 90px; height: 5px;
  background: #18181C; border-radius: 0 0 3px 3px;
}

.e-lp-base {
  height: 7px; background: #1B1B1F;
  border-radius: 0 0 5px 5px;
  margin: 0 -12px;
  border: 1px solid #28282E; border-top: none;
}

/* ===== ELEGANT PHONE ===== */
.e-phone-grp {
  display: flex; align-items: center; justify-content: center;
  gap: 1.25rem; position: relative; z-index: 1;
}

.e-phone {
  background: #1B1B1F;
  border: 1px solid #28282E;
  border-radius: 40px; padding: 9px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
  position: relative;
}

.e-ph-screen {
  background: white; border-radius: 33px;
  width: 156px; height: 308px; overflow: hidden;
  position: relative;
}

.e-phone.ghost {
  opacity: .45; transform: translateX(-12px) rotate(-3deg);
}

.e-phone.sm .e-ph-screen { width: 125px; height: 248px; }
.e-phone.sm { border-radius: 36px; }

.e-ph-island {
  height: 28px; background: white;
  display: flex; align-items: center; justify-content: center;
}

.e-ph-pill {
  width: 78px; height: 20px; border-radius: 100px;
  background: #1B1B1F;
}

/* screen contents */
.sc { flex: 1; display: flex; flex-direction: column; }

/* Dashboard screen */
.s-dash {
  flex: 1; display: grid;
  grid-template-columns: 140px 1fr;
}

.s-side {
  background: #F9F9F8; padding: 10px 8px;
  border-right: 1px solid rgba(0,0,0,.05);
  display: flex; flex-direction: column; gap: 3px;
}

.s-logo { width: 20px; height: 20px; border-radius: 5px; background: var(--accent); margin-bottom: 8px; opacity: .7; }

.sn { height: 8px; border-radius: 3px; background: rgba(0,0,0,.07); }
.sn.act { background: var(--acc-l); width: 80%; }
.sn.w7 { width: 70%; }
.sn.w8 { width: 80%; }
.sn.w6 { width: 60%; }
.sn.w9 { width: 90%; }
.sn.w5 { width: 55%; }

.s-main {
  padding: 10px; background: white;
  display: flex; flex-direction: column; gap: 6px;
}

.s-kpi { display: flex; gap: 5px; }

.s-k {
  flex: 1; background: var(--bg); border-radius: 5px;
  padding: 6px; display: flex; flex-direction: column; gap: 3px;
}

.sk-n { height: 5px; border-radius: 2px; background: rgba(0,0,0,.09); width: 55%; }
.sk-v { height: 9px; border-radius: 2px; background: rgba(0,0,0,.14); width: 40%; }

.s-area { flex: 1; display: flex; gap: 5px; }

.s-chart {
  flex: 1.8; background: var(--bg); border-radius: 5px;
  padding: 5px; display: flex; align-items: flex-end; gap: 3px;
}

.sb { flex: 1; border-radius: 2px 2px 0 0; background: var(--acc-l); }
.sb.hi { background: var(--accent); opacity: .6; }

.s-table {
  flex: 1; background: var(--bg); border-radius: 5px;
  padding: 6px; display: flex; flex-direction: column;
  justify-content: center; gap: 4px;
}

.st-r { height: 5px; border-radius: 2px; background: rgba(0,0,0,.08); }
.st-r.a { background: var(--acc-l); width: 60%; }

/* App screen (phone) */
.s-app { flex: 1; background: var(--bg); }

.s-app-nav {
  height: 38px; background: white;
  padding: 0 10px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.san-l { height: 5px; width: 22%; border-radius: 2px; background: rgba(0,0,0,.1); }
.san-r { width: 20px; height: 20px; border-radius: 6px; background: var(--acc-l); }

.s-app-hero {
  height: 100px; background: linear-gradient(135deg,
    rgba(128,118,174,.15) 0%, rgba(128,118,174,.05) 100%);
  margin: 8px; border-radius: 10px;
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 8px;
}

.s-app-hero::before {
  content: '';
  position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--acc-l); opacity: .5;
}

.sah-l { height: 5px; border-radius: 2px; background: rgba(255,255,255,.7); width: 50%; }

.s-app-list { padding: 4px 8px; display: flex; flex-direction: column; gap: 4px; }

.s-app-row {
  background: white; border-radius: 8px;
  padding: 7px 8px; display: flex; align-items: center; gap: 7px;
}

.sar-ico { width: 22px; height: 22px; border-radius: 6px; background: var(--acc-l); flex-shrink: 0; }
.sar-ico.g { background: #DEF0E6; }
.sar-ico.b { background: #E0E8F4; }

.sar-lines { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.sar-l { height: 4px; border-radius: 2px; background: rgba(0,0,0,.09); }
.sar-l.s { width: 55%; }

/* Portal code screen */
.s-portal {
  flex: 1; display: grid;
  grid-template-columns: 1fr 1fr;
  background: #1C1C21;
}

.s-code { padding: 10px; display: flex; flex-direction: column; gap: 3.5px; }

.cl { height: 4.5px; border-radius: 2px; background: rgba(255,255,255,.1); }
.cl.kw { background: rgba(128,118,174,.55); }
.cl.st { background: rgba(196,168,96,.45); }
.cl.fn { background: rgba(100,180,200,.4); }
.cl.cm { background: rgba(255,255,255,.06); }
.cl.i { margin-left: 10px; }
.cl.i2 { margin-left: 20px; }

.s-prev { background: #F7F7F8; padding: 8px; display: flex; flex-direction: column; gap: 5px; }

.s-prev-bar {
  height: 16px; background: white; border-radius: 4px;
  display: flex; align-items: center; padding: 0 5px; gap: 4px;
}

.spb-d { width: 18px; height: 3.5px; background: rgba(0,0,0,.1); border-radius: 2px; }
.spb-d.a { background: var(--accent); opacity: .5; width: 26px; }

.s-prev-crd {
  background: white; border-radius: 5px;
  padding: 5px 6px; display: flex; flex-direction: column; gap: 3px;
}

.spc-l { height: 4px; border-radius: 2px; background: rgba(0,0,0,.09); }
.spc-l.a { background: var(--acc-l); width: 45%; }
.spc-btn { height: 9px; width: 45px; border-radius: 100px; background: var(--accent); opacity: .5; margin-top: 1px; }

/* Health App phone */
.s-health { flex: 1; display: flex; flex-direction: column; background: var(--bg); }

.s-hlth-hdr {
  background: white; padding: 8px 10px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  display: flex; flex-direction: column; gap: 3px;
}

.shh-t { height: 6px; width: 50%; border-radius: 2px; background: rgba(0,0,0,.12); }
.shh-s { height: 4px; width: 35%; border-radius: 2px; background: rgba(0,0,0,.07); }

.s-ring-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 0;
}

.s-ring {
  width: 68px; height: 68px; border-radius: 50%;
  border: 6px solid var(--acc-l); position: relative;
  display: flex; align-items: center; justify-content: center;
}

.s-ring::before {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%;
  border: 6px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  transform: rotate(-20deg);
}

.s-ring-val { height: 7px; width: 22px; border-radius: 3px; background: rgba(0,0,0,.1); }

.s-h-cards { padding: 0 8px; display: flex; flex-direction: column; gap: 5px; }

.shc-row {
  background: white; border-radius: 8px;
  padding: 7px 8px; display: flex; align-items: center; gap: 7px;
}

.shc-ic { width: 22px; height: 22px; border-radius: 6px; background: var(--acc-l); flex-shrink: 0; }
.shc-ic.v { background: #DCF0E4; }
.shc-ic.b { background: #E4EBF8; }

.shc-lines { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.shc-l { height: 4px; border-radius: 2px; background: rgba(0,0,0,.09); }
.shc-l.s { width: 50%; }

/* ===== PROCESS ===== */
#process { background: var(--bg-2); }

.proc-wrap {
  display: flex; align-items: stretch; gap: 1.75rem;
}

.proc-group { display: flex; flex-direction: column; }
.proc-group-design { flex: 4 1 0; min-width: 0; }
.proc-group-dev { flex: 1 1 0; min-width: 0; }

.proc-group-hd {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; margin-bottom: .9rem;
  padding-left: .15rem;
}

.proc-group-items {
  flex: 1;
  display: grid; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
}
.proc-group-design .proc-group-items { grid-template-columns: repeat(4,1fr); }
.proc-group-dev .proc-group-items { grid-template-columns: 1fr; }

.proc-plus {
  align-self: center; flex: 0 0 auto;
  margin-top: 1.8rem;
  font-family: var(--serif); font-size: 2.4rem; font-weight: 400;
  line-height: 1; color: var(--faint);
}

.proc-item {
  background: var(--bg-2); padding: 2.25rem 2rem;
}

.proc-dev { background: #E6E4F4; }
.proc-dev .pi-num { color: rgba(128,118,174,.2); }
.proc-dev .pi-title { color: var(--text); }
.proc-dev .pi-desc { color: var(--muted); }
.proc-dev .pi-t { color: var(--accent); }
.proc-dev .pi-tools { flex-direction: column; }
.proc-dev .pi-t-claude { color: var(--accent); }

.pi-num {
  font-family: var(--serif); font-size: 3.2rem; font-weight: 400;
  line-height: 1; letter-spacing: -.03em;
  color: rgba(21,21,26,.1);
  margin-bottom: 1.2rem;
}

.pi-title {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 400;
  margin-bottom: .6rem;
}

.pi-desc {
  font-size: .82rem; color: var(--muted);
  line-height: 1.8; font-weight: 300;
}

.pi-tools {
  margin-top: 1.1rem; display: flex; flex-direction: column; gap: 3px;
}

.pi-t { font-size: .7rem; color: var(--accent); letter-spacing: .04em; }
.pi-t::before { content: "·"; margin-right: .4rem; opacity: .65; }

/* ===== ABOUT ===== */
#about { background: var(--bg); }

.about-grid {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 3.5rem; max-width: 1020px; margin: 0 auto;
  align-items: start;
}

/* Career path timeline */
.about-timeline { position: static; margin-left: -1.25rem; }
.about-timeline .sec-eye { display: block; margin-bottom: 1.6rem; }

.tl { list-style: none; position: relative; padding-left: 94px; }
.tl::before {
  content: ''; position: absolute;
  left: 74px; top: 7px; bottom: 7px;
  width: 2px; background: var(--acc-m);
}
.tl-year {
  position: absolute; left: -100px; top: 1px;
  width: 66px; text-align: left;
  font-size: .72rem; color: var(--muted); letter-spacing: .02em;
}
/* domain / era labels, horizontal, at the start of each group (far left) */
.tl-era {
  position: absolute; left: -190px; top: 1px;
  font-size: .6rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--accent); white-space: nowrap;
}
.tl-era-start { margin-top: 1.2rem; }
.tl-item:first-child.tl-era-start { margin-top: .2rem; }
.tl-note {
  margin: 1.7rem 0 0;
  font-size: .76rem; color: var(--muted); line-height: 1.5;
}
.tl-item { position: relative; padding-bottom: 2rem; }
.tl-item:last-child { padding-bottom: 0; }
/* spacing proportional to the real time gap between entries */
.tl-item:nth-child(1)  { padding-bottom: 3.6rem; }   /* 2012 → 2016 (4y) */
.tl-item:nth-child(2)  { padding-bottom: 1.35rem; }  /* 2016 → 2016 */
.tl-item:nth-child(3)  { padding-bottom: 2.6rem; }   /* 2016 → 2018 (2y) */
.tl-item:nth-child(4)  { padding-bottom: 1.95rem; }  /* 2018 → 2019 (1y) */
.tl-item:nth-child(5)  { padding-bottom: 0.75rem; }  /* 2019 → 2020 (1y) — tightened before Design era */
.tl-item:nth-child(6)  { padding-bottom: 3.1rem; }   /* 2020 → 2022 (2y) — a bit more room before startup */
.tl-item:nth-child(7)  { padding-bottom: 1.35rem; }  /* 2022 → 2022 */
.tl-item:nth-child(8)  { padding-bottom: 1.35rem; }  /* 2022 → 2022 */
.tl-item:nth-child(9)  { padding-bottom: 1.0rem; }   /* 2022 → 2022 — slightly tightened before Tech era */
.tl-item:nth-child(10) { padding-bottom: 1.35rem; }  /* 2022–2023 → 2023 */
.tl-item:nth-child(11) { padding-bottom: 4.5rem; }   /* 2023 → 2025 (2y) + more room between the two focus roles */
.tl-item:nth-child(12) { padding-bottom: 1.95rem; }  /* 2025 → 2026 (1y) */

.tl-marker {
  position: absolute; left: -24px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.tl-item:last-child .tl-marker {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--acc-l);
}

.tl-label {
  display: block; font-size: .95rem; font-weight: 400;
  color: var(--text); line-height: 1.45;
}
.tl-sub {
  display: block; font-size: .8rem; color: var(--accent);
  margin-top: 2px;
}
/* highlighter marker on the current focus roles */
.tl-focus .tl-label {
  display: inline;
  background: linear-gradient(180deg, transparent 16%, rgba(139, 92, 246, .28) 16%, rgba(139, 92, 246, .28) 90%, transparent 90%);
  padding: 0 .12em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* finer highlight for the other ongoing activities */
.tl-soft .tl-label {
  display: inline;
  background: linear-gradient(180deg, transparent 16%, rgba(139, 92, 246, .07) 16%, rgba(139, 92, 246, .07) 90%, transparent 90%);
  padding: 0 .12em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.about-single {
  max-width: 680px;
}

.about-img-inline {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0;
}

.about-img-inline .about-img-wrap {
  max-width: 280px;
}

.about-vis {
  position: static;
}

.about-img-wrap {
  width: 100%; max-width: 320px;
  aspect-ratio: 3/4;
  background: var(--bg-2);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

/* Fine-line contour drawing in the About visual (replaces the old ring) */
.ai-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.ai-badge {
  position: absolute; bottom: 20px; right: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 15px;
}

.aib-l { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 3px; }
.aib-v { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; line-height: 1.2; }

.about-text .sec-eye { display: block; margin-bottom: 1rem; }

.about-text h2 { margin-bottom: 1.5rem; }

h2 em { font-style: italic; color: var(--accent); }

.about-p {
  font-size: .96rem; color: var(--muted);
  line-height: 1.92; font-weight: 300; margin-bottom: 1.2rem;
}

.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-top: 2.25rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
@media (max-width: 760px) { .skills-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .skills-grid { grid-template-columns: 1fr; } }

.sg-label {
  font-size: .67rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); margin-bottom: .6rem;
}

.sg-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.sg-list li {
  font-size: .84rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}

.sg-list li::before {
  content: ''; width: 3px; height: 3px; border-radius: 50%;
  background: var(--accent); opacity: .6; flex-shrink: 0;
}

/* ===== STRENGTHS (own section) ===== */
#strengths { background: var(--bg-2); }

.str-inner {
  max-width: 1080px; margin: 0 auto;
}

.str-h {
  font-family: var(--serif); font-weight: 400;
  font-size: 2rem; letter-spacing: -.01em; margin-bottom: 2rem;
}

.str-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10rem;
}
@media (max-width: 640px) { .str-cols { grid-template-columns: 1fr; gap: 2rem; } }

.str-col-hd {
  font-size: .67rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem;
  padding-bottom: .6rem; border-bottom: 1px solid var(--border);
}

.str-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }

.str-list li {
  font-size: .84rem; color: var(--muted); line-height: 1.6; font-weight: 300;
}

.str-list li strong {
  display: block; color: var(--text); font-weight: 600;
  font-size: .86rem; margin-bottom: .15rem;
}

/* ===== CONTACT ===== */
#contact { background: var(--dark); padding: 6rem 3rem; }

.ct-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}

.ct-left h2 { color: var(--bg); font-family: var(--serif); }

#contact p {
  color: rgba(247,247,248,.42); font-size: .94rem;
  line-height: 1.9; margin-top: 1.25rem; max-width: 38ch; font-weight: 300;
}

.ct-cards {
  display: flex; flex-direction: column; gap: 1rem;
  margin-top: 2rem; max-width: 340px;
}

.ct-links { margin-top: 2.5rem; display: flex; flex-direction: column; }

.ct-lnk {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(247,247,248,.07);
  text-decoration: none; transition: color .2s;
}

.ct-lnk-t {
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(247,247,248,.22); width: 70px; flex-shrink: 0;
}

.ct-lnk-v { font-size: .86rem; color: rgba(247,247,248,.42); }
.ct-lnk:hover .ct-lnk-v { color: var(--acc-m); }

.ct-form { display: flex; flex-direction: column; gap: .85rem; }

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }

.cf-grp { display: flex; flex-direction: column; gap: 5px; }

.cf-lbl {
  font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(247,247,248,.22);
}

.cf-in {
  background: rgba(247,247,248,.05);
  border: 1px solid rgba(247,247,248,.1);
  border-radius: 10px; padding: .8rem 1rem;
  color: var(--bg); font-family: var(--sans);
  font-size: .88rem; font-weight: 300; outline: none; resize: none;
  transition: border-color .2s;
}

.cf-in:focus { border-color: rgba(128,118,174,.45); }
.cf-in::placeholder { color: rgba(247,247,248,.15); }
.cf-ta { min-height: 96px; }

.cf-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: .85rem 1.75rem; background: var(--accent); color: white;
  border: none; border-radius: 100px;
  font-family: var(--sans); font-size: .82rem;
  font-weight: 400; letter-spacing: .06em;
  cursor: pointer; align-self: flex-start; margin-top: .25rem;
  transition: all .2s;
}

.cf-btn:hover { background: var(--acc-m); transform: translateY(-2px); }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  padding: 3.5rem 3rem 2.5rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: .55rem;
  position: relative;
}

/* luminous hairline along the top edge */
footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,158,200,.5), transparent);
}

/* brand asterisk mark, pulled above the credit line */
footer::after {
  content: '*';
  order: -2; margin-bottom: .1rem;
  font-family: var(--serif); font-style: italic;
  font-size: 2rem; line-height: 1; color: var(--accent);
}

.ft-credit {
  order: -1;
  font-size: 1.25rem; color: var(--white);
  font-style: italic; font-family: var(--serif); font-weight: 400;
  letter-spacing: .01em;
  position: relative; padding-bottom: 1.3rem; margin-bottom: .35rem;
}

/* short divider beneath the credit */
.ft-credit::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 46px; height: 1px; background: rgba(247,247,248,.18);
}

.ft-rights {
  font-size: .72rem;
  color: rgba(247,247,248,.42);
  letter-spacing: .05em;
}

.ft-copy {
  font-size: .68rem;
  color: rgba(247,247,248,.3);
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ===== CASE STUDY ===== */
.cs-hero {
  padding: 4rem 3rem;
  max-width: var(--max); margin: 0 auto;
}

.cs-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.cs-hero-visual {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  min-height: 380px;
  position: relative; overflow: hidden;
}

.cs-hero-visual::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(128,118,174,.08) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}

@media (max-width: 960px) {
  .cs-hero { padding: 110px 1.5rem 2rem; }
  .cs-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cs-hero-visual { padding: 2rem 1.5rem; min-height: 300px; }
}

.cs-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; color: var(--muted); text-decoration: none;
  letter-spacing: .04em; margin-bottom: 2.5rem; margin-left: -6rem;
  padding: .4rem 1rem;
  border-radius: 100px;
  transition: color .2s, background .2s;
}
.cs-back:hover { color: var(--accent); background: var(--bg-2); }


.cs-meta {
  font-size: .67rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.cs-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.cs-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 400; line-height: 1.1; letter-spacing: -.018em;
  margin-bottom: 1.5rem; max-width: 22ch;
}
.cs-title em { font-style: italic; color: var(--accent); }

.cs-lead {
  font-size: 1.05rem; color: var(--muted);
  line-height: 1.85; max-width: 60ch; font-weight: 300;
}

.cs-overview {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  margin-top: 3.5rem;
}

.cs-ov-item { background: var(--white); padding: 1.5rem 1.5rem; }

.cs-ov-l {
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 8px;
}

.cs-ov-v {
  font-family: var(--serif); font-size: 1.05rem;
  font-weight: 400; line-height: 1.3;
}
.cs-ov-more {
  font-family: var(--sans); font-size: 1.15em; font-weight: 400;
  color: var(--accent); vertical-align: baseline; margin-left: .15em;
}

/* ===== CS VISUAL ===== */
.cs-visual {
  background: var(--bg-2); padding: 5rem 3rem;
  display: flex; align-items: center; justify-content: center;
  min-height: 480px; position: relative; overflow: hidden;
}

.cs-visual::before {
  content: ''; position: absolute;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(128,118,174,.08) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}

/* ===== CS SECTIONS ===== */
.cs-section { padding: 5rem 3rem; }
.cs-section.alt { background: var(--bg-2); }
.cs-section.tint { background: var(--acc-l); }

/* Standin: force strict tonal alternation so no two adjacent
   sections share a background (e.g. Development Flow vs User Flow). */
[data-page="standin"] .cs-section:nth-of-type(odd)  { background: var(--bg); }
[data-page="standin"] .cs-section:nth-of-type(even) { background: var(--bg-2); }
[data-page="la-lumiere"] .cs-section:nth-of-type(odd)  { background: var(--bg); }
[data-page="la-lumiere"] .cs-section:nth-of-type(even) { background: var(--bg-2); }
[data-page="swiss-snackbox"] .cs-section:nth-of-type(odd)  { background: var(--bg); }
[data-page="swiss-snackbox"] .cs-section:nth-of-type(even) { background: var(--bg-2); }

.cs-inner { max-width: var(--max); margin: 0 auto; }

.cs-grid-2 {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: 5rem; align-items: start;
}

.cs-grid-equal {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}

.cs-overview-cols {
  margin-top: 2rem;
}

.cs-stack-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 4rem;
  margin-top: 2.5rem;
  align-items: start;
}

.cs-stack-grid .cs-overview-cols,
.cs-stack-grid .cs-role-list { margin-top: 0; }

@media (max-width: 960px) {
  .cs-stack-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* "What I owned" groups in My role, reusing the homepage skills-grid style */
.cs-role-owned { display: flex; flex-direction: column; gap: 1.75rem; }
.cs-role-owned .sg-list { margin-top: 0; }

/* ===== RESEARCH ===== */
.cs-research-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 4rem;
  margin-top: 2.5rem;
  align-items: start;
}

.cs-method-l {
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1rem;
}

.cs-method-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 12px;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cs-method-list li {
  font-size: .92rem;
  color: var(--text);
  font-weight: 300;
  display: flex; align-items: center; gap: 12px;
}

.cs-method-list li::before {
  content: ''; width: 4px; height: 4px;
  border-radius: 50%; background: var(--accent);
  flex-shrink: 0;
}

.cs-research-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.55;
  margin-top: 1.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}

.cs-research-author {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 1rem;
  font-family: var(--sans);
  font-style: normal;
  padding-left: 1.5rem;
}

.cs-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.cs-insight {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
}

.cs-insight-l {
  font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.cs-insight-t {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: .5rem;
}

.cs-insight-d {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

@media (max-width: 960px) {
  .cs-research-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cs-insights { grid-template-columns: 1fr; }
}

/* ===== DESIGN SYSTEM INTRO ===== */
.cs-design-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2.5rem;
  margin-bottom: 3rem;
  align-items: start;
}

.cs-design-intro p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.92;
  font-weight: 300;
  margin-bottom: 1.2rem;
}

.cs-design-system {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2.5rem;
}

.cs-ds-block-l {
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.cs-swatches {
  display: flex;
  gap: 12px;
}

.cs-swatch {
  flex: 1;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.cs-swatch-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--faint);
  text-transform: uppercase;
}

.cs-swatch-row span { flex: 1; text-align: center; }

.cs-type-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.cs-type-display {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -.02em;
}

.cs-type-display em { font-style: italic; color: var(--accent); }

.cs-type-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

.cs-type-info strong {
  color: var(--text);
  font-weight: 500;
  font-family: var(--serif);
}

@media (max-width: 960px) {
  .cs-design-intro { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ===== DESIGN PRINCIPLES ===== */
.cs-design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
/* la-lumiere research: four points in a single row */
body[data-page="la-lumiere"] .cs-research-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { body[data-page="la-lumiere"] .cs-research-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { body[data-page="la-lumiere"] .cs-research-4 { grid-template-columns: 1fr; } }

.cs-stat-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 2.5rem;
}
@media (max-width: 620px) { .cs-stat-bar { grid-template-columns: 1fr; } }
.cs-stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 2rem 1.5rem;
  text-align: center;
  border-left: 1px solid var(--border);
}
.cs-stat:first-child { border-left: none; }
@media (max-width: 620px) {
  .cs-stat { border-left: none; }
  .cs-stat:nth-child(n+2) { border-top: 1px solid var(--border); }
}
.cs-stat-num {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--accent);
  white-space: nowrap;
}
.cs-stat-l {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted, #666);
  letter-spacing: 0.02em;
}

.cs-design-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
}

.cs-design-n {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: rgba(21,21,26,.12);
  line-height: 1;
  margin-bottom: 1rem;
}

.cs-design-t {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: .6rem;
  letter-spacing: -.01em;
}

.cs-design-d {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}

/* ===== BEFORE / AFTER ===== */
.cs-ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.cs-ba-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.cs-ba-stage {
  background: var(--bg-2);
  padding: 2.25rem 1.5rem;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cs-ba-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--white);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
}

.cs-ba-label.after {
  color: var(--accent);
  border-color: var(--acc-l);
  background: var(--acc-l);
}

.cs-ba-info {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}

.cs-ba-t {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: .4rem;
}

.cs-ba-d {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

/* Cluttered version of dashboard (for "before") */
.s-dash.busy .s-side { gap: 1.5px; }
.s-dash.busy .sn { height: 5px; }
.s-dash.busy .s-main { gap: 3px; padding: 5px; }
.s-dash.busy .s-kpi { gap: 2px; }
.s-dash.busy .s-k { padding: 3px; gap: 2px; }
.s-dash.busy .s-area { gap: 2px; }
.s-dash.busy .s-chart { padding: 3px; gap: 1.5px; }

/* ===== KEY SCREEN DESCRIPTION ===== */
.cs-screen-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
  padding: 0 1.25rem 1.25rem;
}

/* ===== CAROUSEL ===== */
.cs-carousel {
  margin-top: 2.5rem;
}

.cs-carousel-viewport {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.cs-carousel-track {
  display: flex;
  transition: transform .55s cubic-bezier(.6,.05,.28,.91);
}

.cs-carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.cs-carousel-stage {
  background: var(--bg-2);
  padding: 4rem 2rem;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cs-carousel-stage::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(128,118,174,.08) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}

.cs-carousel-badge {
  position: absolute;
  top: 1rem;
  right: .35rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .4rem .7rem;
  background: var(--accent);
  color: #fff;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 100px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

.cs-carousel-badge::before {
  content: '';
  width: .45em;
  height: .45em;
  border-radius: 50%;
  background: currentColor;
}


.cs-carousel-info {
  padding: 1.75rem 2rem;
  border-top: 1px solid var(--border);
}

.cs-carousel-l {
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}

.cs-carousel-t {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: .6rem;
  letter-spacing: -.01em;
}

.cs-carousel-d {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
  max-width: 65ch;
}

.cs-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 1rem;
}

.cs-carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all .25s;
  color: var(--text);
  font-family: var(--sans);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(21,21,26,.14);
}

.cs-carousel-arrow:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.cs-carousel-dots {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.cs-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all .3s;
}

.cs-carousel-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 100px;
}

/* Desktop: carousel becomes a 3-column grid (default — not the paged variant) */
@media (min-width: 961px) {
  .cs-carousel:not(.cs-carousel-paged) .cs-carousel-viewport {
    border: none;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }
  .cs-carousel:not(.cs-carousel-paged) .cs-carousel-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    transform: none !important;
  }
  .cs-carousel:not(.cs-carousel-paged) .cs-carousel-slide {
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: var(--white);
    flex: unset;
    min-width: 0;
  }
  .cs-carousel-stage {
    min-height: 320px;
    padding: 2.25rem 1.5rem;
  }
  .cs-carousel-info {
    padding: 1.25rem 1.5rem;
  }
  .cs-carousel-t { font-size: 1.05rem; }
  .cs-carousel-d { font-size: .85rem; line-height: 1.7; }
  .cs-carousel:not(.cs-carousel-paged) .cs-carousel-controls { display: none; }
}

/* Desktop: paged variant — a real 3-up sliding carousel (Key Screens) */
@media (min-width: 961px) {
  .cs-carousel-paged { position: relative; }
  .cs-carousel-paged .cs-carousel-viewport {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
  }
  .cs-carousel-paged .cs-carousel-track {
    display: flex;
    gap: 0;
  }
  .cs-carousel-paged .cs-carousel-slide {
    flex: 0 0 33.3333%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0 8px;            /* gap between the screen cards */
    border: none;
    border-radius: 0;
    background: transparent;
  }
  /* each screen is its own rounded card, so nothing is clipped at the corners */
  .cs-carousel-paged .cs-carousel-stage {
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
  }
  .cs-carousel-paged .cs-carousel-info {
    border: 1px solid var(--border);
    border-radius: 0 0 16px 16px;
    background: var(--white);
  }
  /* arrows pushed further out, vertically centred on the phones */
  .cs-carousel-paged .cs-carousel-controls { display: flex; }
  .cs-carousel-paged .cs-carousel-prev,
  .cs-carousel-paged .cs-carousel-next {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 6;
  }
  .cs-carousel-paged .cs-carousel-prev { left: -56px; }
  .cs-carousel-paged .cs-carousel-next { right: -56px; }

  /* one screen at a time → the 3 screens become 3 pages you browse
     with the side arrows (Key screens). Arrows sit inside the edges. */
  .cs-carousel-paged.cs-carousel-1up .cs-carousel-slide {
    flex: 0 0 100%;
    padding: 0;
  }
  .cs-carousel-paged.cs-carousel-1up .cs-carousel-prev { left: 16px; }
  .cs-carousel-paged.cs-carousel-1up .cs-carousel-next { right: 16px; }
  .cs-carousel-paged.cs-carousel-1up .cs-carousel-prev,
  .cs-carousel-paged.cs-carousel-1up .cs-carousel-next { top: 42%; }
}

/* ===== MOBILE COMPANION (for web case studies) ===== */
.cs-mobile-companion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.cs-mc-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.cs-mc-stage {
  background: var(--bg-2);
  padding: 3rem 2rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cs-mc-stage::before {
  content: '';
  position: absolute;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(128,118,174,.07) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}

.cs-mc-info {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}

.cs-mc-l {
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}

.cs-mc-t {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}

.cs-mc-d {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

@media (max-width: 960px) {
  .cs-mobile-companion { grid-template-columns: 1fr; }
  .cs-mc-stage { min-height: 320px; }
}

/* ===== PERSONA (split card, light) ===== */
.cs-persona {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  grid-template-rows: auto auto;
  row-gap: 1.6rem;
  border: 1px solid rgba(128,118,174,.18);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg);
}

.cs-persona-l {
  background: #EAE7F2;
  color: var(--text);
  padding: 2.8rem 2.2rem;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 1 / span 2;
}
.cs-persona-rtop { display: flex; flex-direction: column; gap: 1.8rem; }

.cs-persona-monogram {
  font-family: var(--serif);
  font-style: italic;
  font-size: 5.5rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.02em;
}
.cs-persona-photo { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; }
.cs-persona-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-persona-photo.is-placeholder { display: flex; align-items: center; justify-content: center; background: var(--accent); }
.cs-persona-photo.is-placeholder span { font-family: var(--serif); font-style: italic; font-size: 3rem; color: #fff; line-height: 1; }
/* la-lumiere: Alice's portrait sits in the top-right corner of the violet panel */
body[data-page="la-lumiere"] .cs-persona-l { position: relative; }
body[data-page="la-lumiere"] .cs-persona-photo { position: absolute; top: 10rem; right: 3rem; width: 124px; height: 124px; }
.cs-persona-bio { margin-top: 0; padding-top: 1.4rem; border-top: 1px solid var(--border); font-size: .9rem; line-height: 1.65; color: var(--muted); }

.cs-persona-id-name {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -.01em;
  margin-bottom: 4px;
}

.cs-persona-id-role {
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .03em;
}

.cs-persona-stats {
  margin-top: 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(128,118,174,.22);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  align-content: start;
}

.cs-persona-stat-l {
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.cs-persona-stat-v {
  font-size: .92rem;
  color: var(--text);
  font-weight: 400;
}

.cs-persona-r {
  padding: 2.8rem 2.5rem;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 1 / span 2;
}

.cs-persona-q {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.4;
  color: var(--text);
  margin: 3.5rem 0 0;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}

.cs-persona-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
}

.cs-persona-col-l {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}

.cs-persona-col-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 10px;
}

.cs-persona-col-list li {
  font-size: .9rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.55;
  padding-left: 14px;
  position: relative;
}

.cs-persona-col-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .72rem;
  width: 6px; height: 1px;
  background: var(--accent);
}

@media (max-width: 960px) {
  .cs-persona { grid-template-columns: 1fr; grid-template-rows: none; }
  .cs-persona-l, .cs-persona-r { display: flex; flex-direction: column; grid-row: auto; gap: 1.6rem; }
  .cs-persona-cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .cs-persona-l { padding: 2.2rem 1.6rem; }
  .cs-persona-r { padding: 2rem 1.6rem; }
}

/* ===== INFORMATION ARCHITECTURE (tree) ===== */
.cs-ia-tree {
  margin-top: 2.5rem;
  padding: 3.5rem 2rem 2.5rem;
  background: var(--bg-2);
  border-radius: 18px;
  overflow-x: auto;
}

.cs-ia-tree-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 660px;
}

.cs-ia-root {
  background: var(--text);
  color: var(--white);
  padding: 11px 26px;
  border-radius: 8px;
  font-size: .92rem;
  letter-spacing: .01em;
  font-weight: 400;
  font-family: var(--serif);
  font-style: italic;
}

.cs-ia-stem {
  width: 1px; height: 36px;
  background: var(--accent);
  opacity: .5;
}

.cs-ia-branches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  position: relative;
}

.cs-ia-branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc((100% - 4.5rem) / 8);
  right: calc((100% - 4.5rem) / 8);
  height: 1px;
  background: var(--accent);
  opacity: .5;
}

.cs-ia-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 36px;
}

.cs-ia-branch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 36px;
  background: var(--accent);
  opacity: .5;
}

.cs-ia-primary {
  background: var(--accent);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: .82rem;
  margin-bottom: 16px;
  white-space: nowrap;
  letter-spacing: .01em;
}

.cs-ia-leaves {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  width: 100%;
  position: relative;
}

.cs-ia-leaves::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 1px;
  height: 10px;
  background: var(--accent);
  opacity: .5;
}

.cs-ia-leaf {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: .78rem;
  color: var(--text);
  text-align: center;
  font-weight: 400;
}

@media (max-width: 960px) {
  .cs-ia-tree { padding: 2.5rem 1rem 2rem; }
}

/* ===== DATABASE DESIGN ===== */
.cs-db-erd {
  margin-top: 2rem;
  padding: 0;
  overflow-x: auto;
}
.cs-db-erd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 1.5rem;
  min-width: 640px;
  align-items: stretch;
}
.cs-db-node {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
}
.cs-db-node-t {
  font-family: var(--mono);
  font-size: .86rem;
  font-weight: 500;
  color: var(--text);
}
.cs-db-node-fk {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .01em;
}
.cs-db-node.is-hub {
  background: var(--accent);
  border-color: var(--accent);
}
.cs-db-node.is-hub .cs-db-node-t { color: var(--white); font-size: .98rem; }
.cs-db-node.is-hub .cs-db-node-fk { color: rgba(255,255,255,.78); }

.cs-db-sub {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -.01em;
  margin: 2.75rem 0 .25rem;
}

.cs-db-tables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem 3rem;
  margin-top: 1.5rem;
}
.cs-db-table {
  border-top: 1px solid rgba(21,21,26,.2);
  padding-top: 1rem;
}
.cs-db-table.is-wide { grid-column: 1 / -1; }
.cs-db-table-hd {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 0 0 10px;
}
.cs-db-table-name { font-family: var(--mono); font-size: .85rem; font-weight: 500; color: var(--text); }
.cs-db-table-desc { font-size: .72rem; color: var(--muted); font-weight: 300; }
.cs-db-rows { display: flex; flex-direction: column; }
.cs-db-row {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 1rem;
  padding: 5px 0;
  align-items: baseline;
}
.cs-db-col { font-family: var(--mono); font-size: .74rem; color: var(--accent); word-break: break-word; }
.cs-db-meaning { font-size: .8rem; color: var(--muted); font-weight: 300; line-height: 1.5; text-align: right; }
.cs-db-row.is-pk .cs-db-col { color: var(--text); font-weight: 600; }
.cs-db-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: .56rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 6px;
  background: var(--acc-l);
  color: var(--accent);
  vertical-align: middle;
}

.cs-db-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
.cs-db-mini-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--bg);
}
.cs-db-mini-name { font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.cs-db-mini-desc { font-size: .8rem; color: var(--muted); font-weight: 300; line-height: 1.55; margin-bottom: 9px; }
.cs-db-cols { display: flex; flex-wrap: wrap; gap: 5px; }
.cs-db-chip {
  font-family: var(--mono);
  font-size: .67rem;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
}

.cs-db-buckets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
.cs-db-bucket {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--bg);
}
.cs-db-bucket-n { font-family: var(--mono); font-size: .8rem; color: var(--accent); margin-bottom: 4px; }
.cs-db-bucket-d { font-size: .8rem; color: var(--muted); font-weight: 300; line-height: 1.5; }

@media (max-width: 760px) {
  .cs-db-tables, .cs-db-mini, .cs-db-buckets { grid-template-columns: 1fr; }
  .cs-db-erd { padding: 2rem 1rem; }
}

/* ===== SERVER LOGIC ===== */
.cs-sl-tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 3rem;
  margin-top: 2.5rem;
}
.cs-sl-tier {
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}
.cs-sl-tier-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cs-sl-tier-name { font-family: var(--mono); font-size: .85rem; font-weight: 500; color: var(--text); }
.cs-sl-tier-badge {
  font-family: var(--sans);
  font-size: .56rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 5px;
}
.cs-sl-tier-badge.user { background: var(--acc-l); color: var(--accent); }
.cs-sl-tier-badge.svc { background: var(--text); color: var(--white); }
.cs-sl-tier-d { font-size: .85rem; color: var(--muted); font-weight: 300; line-height: 1.65; }
.cs-sl-note {
  margin-top: 1.2rem;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--accent);
  font-size: .85rem; color: var(--muted); font-weight: 300; line-height: 1.6;
}

/* ===== Standin — Bugs & fixes ===== */
.cs-bug-list { margin-top: 2rem; border-top: 1px solid var(--border); }
.cs-bug {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 5rem;
  align-items: start;
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 960px) {
  .cs-bug { grid-template-columns: 1fr; gap: 1.8rem; }
}
.cs-bug-tag {
  display: inline-block;
  font-family: var(--serif); font-style: italic;
  font-size: .82rem; color: var(--accent);
  margin-bottom: .55rem; letter-spacing: .02em;
}
.cs-bug-h {
  font-size: 1.05rem; font-weight: 500; color: var(--text);
  margin: 0 0 .75rem; line-height: 1.4;
}
.cs-bug-problem p, .cs-bug-solution p {
  margin: 0; font-size: .95rem; color: var(--muted);
  line-height: 1.85; font-weight: 300;
}
.cs-bug-l {
  display: block;
  font-size: .67rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
  padding-bottom: .8rem; border-bottom: 1px solid var(--border);
}

.cs-fn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem 3rem;
  margin-top: 1.5rem;
}
.cs-fn {
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
}
.cs-fn-hd { padding: 0 0 8px; }
.cs-fn-name { font-family: var(--mono); font-size: .88rem; font-weight: 500; color: var(--accent); }
.cs-fn-task { display: block; font-size: .78rem; color: var(--muted); font-weight: 300; margin-top: 3px; }
.cs-fn-steps {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  counter-reset: fn;
}
.cs-fn-steps li {
  position: relative;
  padding-left: 28px;
  font-size: .83rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.55;
  counter-increment: fn;
}
.cs-fn-steps li::before {
  content: counter(fn);
  position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--acc-l); color: var(--accent);
  font-family: var(--sans); font-size: .6rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.cs-fn-note {
  margin: 12px 0 0;
  padding: 2px 0 2px 13px;
  border-left: 2px solid var(--accent);
  font-size: .78rem; color: var(--muted); font-weight: 300; line-height: 1.55;
}
.cs-fn-rows { padding: 6px 0 0; display: flex; flex-direction: column; }
.cs-fn-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .9rem;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.cs-fn-row:first-child { border-top: none; }
.cs-fn-row-l { font-family: var(--mono); font-size: .73rem; color: var(--accent); word-break: break-word; }
.cs-fn-row-r { font-size: .78rem; color: var(--muted); font-weight: 300; text-align: right; }
.cs-fn-row-r b { color: var(--text); font-weight: 500; }

.cs-sl-flow {
  margin-top: 1.5rem;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: .5rem;
}
.cs-sl-flow-node {
  flex: 1 1 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 130px;
}
.cs-sl-flow-node span { font-family: var(--mono); font-size: .79rem; color: var(--text); }
.cs-sl-flow-node small { font-family: var(--sans); font-size: .67rem; color: var(--muted); font-weight: 300; margin-top: 3px; line-height: 1.4; }
.cs-sl-flow-node.is-ext { background: var(--text); border-color: var(--text); }
.cs-sl-flow-node.is-ext span { color: var(--white); }
.cs-sl-flow-node.is-ext small { color: var(--acc-m); }
.cs-sl-flow-arrow { display: flex; align-items: center; color: var(--accent); padding: 0 .7rem; font-size: 1.05rem; }

@media (max-width: 760px) {
  .cs-sl-tiers, .cs-fn-grid { grid-template-columns: 1fr; }
  .cs-sl-flow { flex-direction: column; align-items: stretch; }
  .cs-sl-flow-arrow { justify-content: center; padding: .4rem 0; transform: rotate(90deg); }
}

/* ===== USER FLOW (vertical, stacked) ===== */
.cs-uf {
  margin-top: 3rem;
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  max-width: none;
  position: relative;
}


.cs-uf-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  padding: 1.75rem 1.5rem;
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.cs-uf-step + .cs-uf-step::before {
  content: '→';
  position: absolute;
  left: -.75rem;
  top: 50%;
  font-size: 1.2rem;
  color: var(--accent);
  transform: translate(-50%, -50%);
}

.cs-uf-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--serif);
  font-style: italic;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .04em;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cs-uf-body {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.cs-uf-t {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -.01em;
  margin: 0;
}

.cs-uf-d {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
  margin: 0;
}

@media (max-width: 960px) {
  .cs-uf { flex-wrap: wrap; justify-content: center; }
  .cs-uf::before { display: none; }
  .cs-uf-step { flex: 0 0 45%; margin-bottom: 2rem; }
}
@media (max-width: 540px) {
  .cs-uf-step { flex: 0 0 100%; }
}

/* ===== PAPER WIREFRAMES (white, no bg, no animation) ===== */
.cs-papers {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  background: transparent;
  padding: 0;
  border: none;
}

.cs-paper {
  background: transparent;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transform: none;
  transition: none;
}

.cs-paper:hover { transform: none; }
.cs-paper:nth-child(1),
.cs-paper:nth-child(2),
.cs-paper:nth-child(3) { transform: none; }

.cs-paper-img {
  aspect-ratio: 4/5;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.cs-paper-mock {
  aspect-ratio: 4/5;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pm-bar {
  height: 8px; width: 40%;
  background: var(--border);
  border-radius: 4px;
}

.pm-kpis { display: flex; gap: 6px; }

.pm-kpi {
  flex: 1; height: 28px;
  background: #fff;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.pm-cols { display: flex; gap: 6px; flex: 1; }
.pm-col { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.pm-chart {
  height: 36px;
  background: linear-gradient(180deg, rgba(128,118,174,.1) 0%, transparent 100%);
  border-radius: 4px;
  border: 1px solid var(--border);
}
.pm-chart.short { height: 24px; }
.pm-chart.tall { flex: 1; }

.pm-block {
  height: 30px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.pm-block.tall { flex: 1; }

.pm-rows { display: flex; flex-direction: column; gap: 4px; }
.pm-row {
  height: 8px;
  background: var(--border);
  border-radius: 3px;
}

.pm-alert {
  height: 14px;
  background: rgba(128,118,174,.12);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}

.cs-paper-cap {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--text);
  text-align: left;
  padding: .8rem 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.cs-paper-cap em {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 400;
}

@media (max-width: 960px) {
  .cs-papers { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===== WIREFRAMES ===== */
.cs-wf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.cs-wf-grid .cs-wf-card:last-child {
  grid-column: 1 / -1;
  max-width: 50%;
  justify-self: center;
}

.cs-wf-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.cs-wf-img {
  aspect-ratio: 16/10;
  background: #fff;
}

/* Screen mockups */
.cs-wf-screen-mock {
  aspect-ratio: 16/10;
  background: #f0f0f2;
  display: flex;
  padding: 10px;
  gap: 8px;
}

.wf-sidebar {
  width: 48px;
  background: var(--dark);
  border-radius: 6px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.wf-sb-logo {
  width: 20px; height: 20px;
  border-radius: 4px;
  background: var(--accent);
  margin-bottom: 6px;
}

.wf-sb-item {
  width: 24px; height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.15);
}

.wf-sb-item.active {
  background: var(--white);
}

.wf-main {
  flex: 1;
  background: var(--white);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.wf-topbar {
  height: 8px; width: 35%;
  background: var(--bg-2);
  border-radius: 4px;
}

.wf-kpis {
  display: flex; gap: 6px;
}

.wf-kpi {
  flex: 1;
  height: 32px;
  background: #fff;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.wf-chart {
  height: 50px;
  background: linear-gradient(180deg, rgba(128,118,174,.1) 0%, transparent 100%);
  border-radius: 5px;
  border: 1px solid var(--border);
}

.wf-rows {
  display: flex; flex-direction: column; gap: 4px;
  flex: 1;
}

.wf-row {
  height: 10px;
  background: var(--bg);
  border-radius: 3px;
}

.wf-filter-bar {
  display: flex; gap: 5px;
}

.wf-filter {
  height: 10px; width: 50px;
  background: var(--border);
  border-radius: 10px;
}

.wf-filter.short { width: 32px; }

.wf-alert {
  height: 20px;
  background: rgba(128,118,174,.12);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}

.wf-detail-block {
  height: 40px;
  background: #fff;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.wf-detail-block.tall { height: 70px; flex: 1; }

.wf-mock-btn {
  width: 60px; height: 14px;
  background: var(--accent);
  border-radius: 4px;
  align-self: flex-end;
}

.cs-wf-label {
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--border);
}

.cs-wf-label strong {
  font-family: var(--serif);
  font-size: .95rem;
  color: var(--text);
  font-weight: 400;
  font-style: italic;
  display: block;
  margin-bottom: 3px;
}

.cs-wf-label span {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 300;
}

@media (max-width: 960px) {
  .cs-wf-grid { grid-template-columns: 1fr; }
  .cs-wf-grid .cs-wf-card:last-child { max-width: 100%; }
}

/* ===== LINE WIREFRAMES ===== */
.wf-screen-line {
  width: 100%;
  aspect-ratio: 4/3;
  background: #fff;
  border: 1.5px solid var(--text);
  border-radius: 6px;
  display: flex;
  overflow: hidden;
}

.wfl-nav {
  width: 42px;
  background: transparent;
  border-right: 1.5px solid var(--text);
  flex-shrink: 0;
}

.wfl-body {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wfl-line {
  height: 1.5px;
  background: var(--text);
}
.wfl-line.w40 { width: 40%; }
.wfl-line.w60 { width: 60%; }
.wfl-line.w70 { width: 70%; }
.wfl-line.w80 { width: 80%; }
.wfl-line.w90 { width: 90%; }

.wfl-row-3 {
  display: flex;
  gap: 8px;
}

.wfl-box {
  flex: 1;
  height: 32px;
  border: 1.5px solid var(--text);
  border-radius: 3px;
}
.wfl-box.tall { height: 50px; flex: none; width: 100%; }

.wfl-pill {
  height: 10px; width: 44px;
  border: 1.5px solid var(--text);
  border-radius: 10px;
}
.wfl-pill.short { width: 28px; }

/* ===== IMAGE PLACEHOLDERS ===== */
.cs-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.cs-img-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.cs-img-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.cs-img-placeholder {
  aspect-ratio: 4/3;
  background: #fff;
}

.cs-img-cap {
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--border);
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--text);
}

.cs-img-cap em {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 400;
}

@media (max-width: 960px) {
  .cs-img-grid { grid-template-columns: 1fr; }
  .cs-img-grid-2 { grid-template-columns: 1fr; }
}

/* ===== FIGMA LINK ===== */
.cs-figma-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 3rem;
  padding: .75rem 1.3rem;
  background: var(--text);
  color: var(--white);
  border-radius: 100px;
  font-size: .82rem;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.cs-figma-link:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.cs-figma-link::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 2px var(--text);
}

.cs-figma-link:hover::before { background: var(--white); box-shadow: inset 0 0 0 2px var(--accent); }

/* ===== PAPER WIREFRAMES (hand-sketched) ===== */
.cs-papers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.cs-paper {
  background: #FAF7EE;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 4px;
  padding: 1.6rem 1.4rem 1.2rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  position: relative;
  transition: transform .3s;
}

.cs-paper:nth-child(1),
.cs-paper:nth-child(2),
.cs-paper:nth-child(3) { transform: none; }

.cs-paper:hover { transform: translateY(-4px); }

.cs-paper-cap {
  font-family: var(--serif);
  font-style: italic;
  font-size: .9rem;
  color: rgba(0,0,0,.55);
  text-align: center;
  padding-top: .5rem;
}

.cs-paper-cap em {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: .68rem;
  color: rgba(0,0,0,.4);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 4px;
}

@media (max-width: 960px) {
  .cs-papers { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===== WIREFRAMES (mid-fi) ===== */
.cs-wireframes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.cs-wireframe {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.cs-wf-screen {
  aspect-ratio: 4/5;
  background: white;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-wf-screen .nav {
  height: 14px;
  background: rgba(21,21,26,.08);
  border-radius: 3px;
}
.cs-wf-screen .hero {
  height: 60px;
  background: rgba(21,21,26,.04);
  border: 1px solid rgba(21,21,26,.08);
  border-radius: 4px;
}
.cs-wf-screen .row {
  height: 22px;
  background: rgba(21,21,26,.04);
  border-radius: 3px;
}
.cs-wf-screen .row.tall { height: 36px; }
.cs-wf-screen .line {
  height: 8px;
  background: rgba(21,21,26,.07);
  border-radius: 2px;
}
.cs-wf-screen .line.short { width: 55%; }
.cs-wf-screen .grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.cs-wf-screen .grid2 > div {
  height: 50px;
  background: rgba(21,21,26,.05);
  border-radius: 3px;
}
.cs-wf-screen .block {
  flex: 1;
  background: rgba(21,21,26,.04);
  border-radius: 4px;
}

.cs-wireframe-cap {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.cs-wireframe-cap strong {
  font-size: .92rem;
  color: var(--text);
  font-weight: 500;
  display: block;
  margin-bottom: 3px;
}

.cs-wireframe-cap span {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .cs-wireframes { grid-template-columns: 1fr; }
}

/* ===== PROTOTYPE ===== */
.cs-proto {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cs-proto-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--bg-2);
  border-radius: 18px;
  min-height: 380px;
}

.cs-proto-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}

.cs-proto-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.cs-proto-list li strong {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  padding-top: 4px;
}

.cs-proto-list li span {
  font-size: .92rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
}

@media (max-width: 960px) {
  .cs-proto { grid-template-columns: 1fr; gap: 2.5rem; }
  .cs-proto-list li { grid-template-columns: 1fr; gap: .4rem; }
}

/* ===== COMBINED TESTING + ITERATION ===== */
.cs-findings-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 5rem;
  align-items: start;
  margin-top: 2rem;
}

.cs-findings-prose p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.92;
  font-weight: 300;
}

.cs-findings-prose p:last-child { margin-bottom: 0; }

.cs-findings-prose em.cs-quote {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  border-left: 1px solid var(--accent);
  padding: .35rem 0 .35rem 1.25rem;
  margin: 1.6rem 0;
  font-weight: 400;
}

.cs-findings-side {
  position: static;
}

.cs-findings-side-label {
  font-size: .67rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cs-findings-list {
  list-style: none;
  counter-reset: findings-count;
  display: flex;
  flex-direction: column;
}

.cs-findings-list li {
  counter-increment: findings-count;
  position: relative;
  padding: 1.1rem 0 1.1rem 2.4rem;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
}

.cs-findings-list li:last-child { border-bottom: none; }

.cs-findings-list li::before {
  content: counter(findings-count, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.3rem;
  font-family: var(--serif);
  font-size: .78rem;
  color: var(--accent);
  letter-spacing: .1em;
  font-weight: 500;
}

.cs-findings-list strong {
  color: var(--text);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  font-size: .95rem;
}

.cs-findings-list.cols-2 {
  display: block;
  column-count: 2;
  column-gap: 4rem;
}
.cs-findings-list.cols-2 li { break-inside: avoid; }

.cs-findings-list .cs-findings-tag {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: .78rem;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

@media (max-width: 960px) {
  .cs-findings-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cs-findings-side { position: static; }
}

.cs-list-numbered {
  list-style: none;
  counter-reset: list-count;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.cs-list-numbered li {
  counter-increment: list-count;
  position: relative;
  padding-left: 2.25rem;
  font-size: .94rem;
  line-height: 1.85;
  color: var(--muted);
  font-weight: 300;
}

.cs-list-numbered li::before {
  content: counter(list-count, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--serif);
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .1em;
  font-weight: 500;
}

.cs-list-numbered strong {
  color: var(--text);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.cs-sub-h {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -.01em;
}

.cs-sub-eye {
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}

/* ===== ROADMAP ===== */
.cs-roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.cs-rm-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  position: relative;
}

.cs-rm-l {
  font-family: var(--serif);
  font-size: .72rem;
  color: var(--accent);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}

.cs-rm-t {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: .6rem;
  letter-spacing: -.01em;
}

.cs-rm-d {
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}

@media (max-width: 960px) {
  .cs-roadmap { grid-template-columns: 1fr; }
}

/* ===== ITERATIONS (legacy single-section, kept for compatibility) ===== */
.cs-iterations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.cs-iter {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  position: relative;
}

.cs-iter-v {
  font-family: var(--serif);
  font-size: .72rem;
  color: var(--accent);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}

.cs-iter-t {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: .6rem;
  letter-spacing: -.01em;
}

.cs-iter-d {
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}

@media (max-width: 960px) {
  .cs-iterations { grid-template-columns: 1fr; }
}

/* ===== FINDINGS KEYWORDS ===== */
.cs-findings-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2rem;
}

.cs-chip {
  background: var(--acc-l);
  color: var(--accent);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: .82rem;
  letter-spacing: .02em;
}

.cs-chip.muted {
  background: var(--bg-2);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ===== USABILITY TESTING ===== */
.cs-testing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2.5rem;
  align-items: start;
}

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

.cs-test-stat {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}

.cs-test-stat:last-child { border-bottom: none; }

.cs-test-stat-l {
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}

.cs-test-stat-v {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
}

.cs-test-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text);
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
  margin-bottom: 1rem;
}

.cs-test-author {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.cs-test-findings {
  margin-top: 2rem;
  display: flex; flex-direction: column;
  gap: 1rem;
}

.cs-test-finding {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
}

.cs-test-finding strong {
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 960px) {
  .cs-design-grid { grid-template-columns: 1fr; }
  .cs-ba { grid-template-columns: 1fr; }
  .cs-testing-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ===== REFLECTION ===== */
.cs-reflection-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; margin-top: 2.5rem;
}

.cs-h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: -.01em;
}

.cs-reflect-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 1.4rem;
}

.cs-reflect-list li {
  font-size: .94rem;
  line-height: 1.85;
  color: var(--muted);
  font-weight: 300;
}

.cs-reflect-list strong {
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 960px) {
  .cs-reflection-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.cs-overview-cols p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.92;
  font-weight: 300;
}

@media (max-width: 960px) {
  .cs-grid-equal { grid-template-columns: 1fr; gap: 3rem; }
}

.cs-eye {
  font-size: .67rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8rem;
}

.cs-h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 400; line-height: 1.2; letter-spacing: -.01em;
  margin-bottom: 1.5rem;
}

.cs-p {
  font-size: .98rem; color: var(--muted);
  line-height: 1.92; font-weight: 300; margin-bottom: 1.2rem;
}

/* inline code — match the surrounding text size, not the browser default */
code {
  font-family: var(--mono);
  font-size: .86em;
  color: var(--accent);
}

.cs-role-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 10px;
  margin-top: 1.5rem;
}

.cs-role-list li {
  font-size: .92rem;
  color: var(--muted);
  display: flex; align-items: center;
  gap: 12px;
  font-weight: 300;
}

.cs-role-list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.cs-role-list li.cs-more { color: var(--accent); font-style: italic; }
.cs-role-list li.cs-more::before {
  content: '+';
  background: transparent;
  width: auto; height: auto;
  color: var(--accent); font-weight: 700; font-style: normal;
}

.cs-quote {
  font-family: var(--serif); font-style: italic;
  font-size: 1.5rem; line-height: 1.5; font-weight: 400;
  color: var(--text); max-width: 28ch;
  padding-left: 1.5rem; border-left: 2px solid var(--accent);
  margin: 2rem 0;
}

/* ===== CS STEPS ===== */
.cs-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-top: 2.5rem;
}

.cs-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 1.75rem 1.5rem;
}

.cs-step-n {
  font-family: var(--serif); font-size: 2rem; font-weight: 400;
  color: rgba(21,21,26,.12); line-height: 1;
  margin-bottom: 1rem;
}

.cs-step-t {
  font-family: var(--serif); font-size: 1.05rem;
  font-weight: 400; margin-bottom: .5rem;
}

.cs-step-d {
  font-size: .82rem; color: var(--muted);
  line-height: 1.7; font-weight: 300;
}

/* ===== CS METRICS ===== */
.cs-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  margin-top: 2.5rem;
}

.cs-metric { background: var(--white); padding: 2.25rem 1.75rem; }

.cs-metric-n {
  font-family: var(--serif); font-size: 2.8rem;
  font-weight: 400; line-height: 1; letter-spacing: -.03em;
  color: var(--text); margin-bottom: .6rem;
}
.cs-metric-n em { font-style: italic; color: var(--accent); }

.cs-metric-l {
  font-size: .82rem; color: var(--muted);
  line-height: 1.6; font-weight: 300;
}

/* ===== CS SCREENS GALLERY ===== */
.cs-screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.cs-screen {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.34,1.1,.64,1), box-shadow .35s;
}
.cs-screen:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(21,21,26,.05); }

.cs-screen-stage {
  background: var(--bg-2);
  padding: 2.25rem 1.5rem;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cs-screen-stage::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(128,118,174,.06) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}

.cs-screen-info {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.cs-screen-l {
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.cs-screen-t {
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.3;
}

.e-laptop.compact { max-width: 240px; }
.cs-screen-stage .e-phone { transform: scale(.78); transform-origin: center; }

@media (max-width: 960px) {
  .cs-screens-grid { grid-template-columns: 1fr; }
}

/* ===== CS NEXT ===== */
.cs-next {
  padding: 5rem 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.cs-next-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center;
  gap: 2.5rem;
}

.cs-next-text { flex: 0 0 auto; min-width: 0; }

.cs-next-vis {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 184px;
}

.cs-next-main {
  flex: 1; min-width: 0;
  display: flex; align-items: center;
  gap: 2.5rem;
  text-decoration: none; color: inherit;
}
.cs-next-back { flex-shrink: 0; text-decoration: none; margin-left: -2.5rem; }

/* Mini phone */
.cs-next-phone {
  background: #1B1B1F;
  border: 1px solid #28282E;
  border-radius: 18px;
  padding: 4px;
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
}

.cs-next-phone-scr {
  background: white;
  border-radius: 14px;
  width: 80px;
  height: 158px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.cs-next-phone-island {
  width: 26px; height: 6px;
  background: #1B1B1F;
  border-radius: 8px;
  margin: 4px auto 0;
}

.cs-next-phone-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 5px;
}

/* Miru variant — ring + cards */
.cs-next-phone-ring {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
  margin: 4px auto 6px;
}
.cs-next-phone-card {
  width: 90%; height: 9px;
  background: var(--border);
  border-radius: 3px;
}

/* Pebble variant — hero + rows */
.cs-next-phone-hero {
  width: 100%; height: 32px;
  background: linear-gradient(135deg, #E6E4F4, #C8C2DE);
  border-radius: 5px;
  margin-bottom: 4px;
}
.cs-next-phone-row {
  width: 92%; height: 8px;
  background: var(--border);
  border-radius: 3px;
}

/* Mini laptop */
.cs-next-laptop {
  width: 200px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.10));
}
.cs-next-laptop-top {
  background: #1B1B1F;
  border: 1px solid #28282E;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 3px 3px 0;
}
.cs-next-laptop-scr {
  background: white;
  border-radius: 3px 3px 0 0;
  height: 110px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cs-next-laptop-bar {
  height: 10px;
  background: #F2F2F0;
  display: flex; align-items: center;
  gap: 2px; padding: 0 4px;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.cs-next-laptop-bar span {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(0,0,0,.18);
}
.cs-next-laptop-body {
  flex: 1;
  display: flex;
}
.cs-next-laptop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.cs-next-laptop-hinge {
  height: 4px;
  background: #212126;
  border-radius: 0 0 2px 2px;
}
.cs-next-laptop-base {
  height: 4px;
  background: #1B1B1F;
  border-radius: 0 0 5px 5px;
  margin: 0 -6px;
}

/* Banking variant — sidebar + chart */
.cs-next-laptop-side {
  width: 32px;
  background: #FAFAF7;
  border-right: 1px solid rgba(0,0,0,.04);
  padding: 5px 3px;
  display: flex; flex-direction: column; gap: 3px;
}
.cs-next-laptop-side span {
  height: 4px;
  background: rgba(0,0,0,.08);
  border-radius: 2px;
}
.cs-next-laptop-side span.act { background: var(--accent); opacity: .55; }
.cs-next-laptop-main {
  flex: 1;
  padding: 6px 5px;
  display: flex; flex-direction: column; gap: 4px;
}
.cs-next-laptop-kpis {
  display: flex; gap: 3px;
}
.cs-next-laptop-kpis span {
  flex: 1; height: 14px;
  background: var(--bg-2);
  border-radius: 2px;
}
.cs-next-laptop-chart {
  flex: 1;
  display: flex; align-items: flex-end; gap: 2px;
  padding: 2px;
  background: var(--bg-2);
  border-radius: 2px;
}
.cs-next-laptop-chart span {
  flex: 1;
  background: var(--accent);
  opacity: .35;
  border-radius: 1px 1px 0 0;
}
.cs-next-laptop-chart span.hi { opacity: .8; }

/* Axiom variant — code + preview */
.cs-next-laptop-code {
  flex: 1.1;
  padding: 5px 5px;
  background: #15151A;
  display: flex; flex-direction: column; gap: 2px;
}
.cs-next-laptop-code span {
  height: 3px;
  border-radius: 1.5px;
  background: rgba(255,255,255,.18);
}
.cs-next-laptop-code span.kw { background: var(--accent); opacity: .75; }
.cs-next-laptop-code span.st { background: #F4BF4F; opacity: .6; }
.cs-next-laptop-prev {
  flex: 1;
  padding: 5px 5px;
  display: flex; flex-direction: column; gap: 3px;
  background: white;
}
.cs-next-laptop-prev span {
  height: 4px;
  background: var(--bg-2);
  border-radius: 2px;
}

@media (max-width: 760px) {
  .cs-next-vis { display: none; }
}

.cs-next-l { font-size: .67rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: .4rem; }

.cs-next-t {
  font-family: var(--serif); font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400; letter-spacing: -.01em;
  text-decoration: none; color: var(--text);
  transition: color .2s;
}
.cs-next-t:hover { color: var(--accent); }

.cs-next-arr {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--borm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
  transition: all .25s;
}
/* Only the right (next) arrow gets pushed out; scoped so it doesn't override
   the back arrow, which shares the .cs-next-arr class. */
.cs-next-main .cs-next-arr { margin-left: auto; margin-right: -2.5rem; }
.cs-next-main:hover .cs-next-arr { background: var(--accent); color: white; border-color: var(--accent); transform: translate(4px,-4px); }
.cs-next-back:hover { background: var(--accent); color: white; border-color: var(--accent); transform: translate(-4px,-4px); }

@media (max-width: 960px) {
  .cs-hero { padding: 110px 1.5rem 3rem; }
  .cs-overview { grid-template-columns: 1fr 1fr; }
  .cs-plan-facts { grid-template-columns: 1fr 1fr; }
  .cs-section { padding: 3.5rem 1.5rem; }
  .cs-visual { padding: 3rem 1.5rem; min-height: 360px; }
  .cs-grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .cs-steps { grid-template-columns: 1fr; }
  .cs-metrics { grid-template-columns: 1fr; }
  .cs-next { padding: 3.5rem 1.5rem; }
  .cs-next-inner { flex-direction: column; align-items: flex-start; }
  .cs-next-back { margin-left: 0; }
}

/* ===== ALL WORK PAGE ===== */
.all-work {
  padding: 4rem 3rem;
  max-width: var(--max);
  margin: 0 auto;
}

.aw-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .04em;
  margin-left: -6rem;
  padding: .4rem 1rem;
  border-radius: 100px;
  transition: color .2s, background .2s;
}
.aw-back:hover { color: var(--accent); background: var(--bg-2); }
@media (max-width: 960px){ .aw-back { margin-left: 0; padding-left: 0; } }

.aw-header {
  margin: 2rem 0 3rem;
}

.aw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.aw-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform .25s, box-shadow .25s;
  position: relative;
}

.aw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.aw-img {
  aspect-ratio: 16/10;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}
.aw-img .e-laptop { transform: scale(.55); }
.aw-img .e-phone { transform: scale(.6); }

.e-ph-scroll {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.e-ph-scroll::-webkit-scrollbar { display: none; }

.e-lp-scroll {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.e-lp-scroll::-webkit-scrollbar { display: none; }
.e-lp-scroll img {
  width: 100%;
  display: block;
}
.e-ph-scroll img {
  width: 100%;
  display: block;
}

.aw-info {
  padding: 1.5rem;
}

.aw-meta {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}

.aw-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -.01em;
  margin-bottom: .6rem;
}

.aw-desc {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1rem;
}

.aw-link {
  display: inline-block;
  margin-top: .8rem;
  font-size: .8rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: .04em;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--borm);
}

@media (max-width: 960px) {
  .all-work { padding: 3rem 1.5rem; }
  .aw-grid { grid-template-columns: 1fr; }
}

/* ===== ANIM ===== */
.fi { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.fi.v { opacity: 1; transform: none; }
.fi:nth-child(2) { transition-delay: .1s; }
.fi:nth-child(3) { transition-delay: .18s; }
.fi:nth-child(4) { transition-delay: .26s; }

/* process cards sit in a 1px-gap grid; the reveal transform pulls a cell out of
   its border frame and looks like a glitch, so keep them static */
#process .proc-item.fi { opacity: 1; transform: none; transition: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  nav { padding: 0 1.5rem; }
  .n-avail { display: none; }
  .n-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 110px 1.5rem 60px; gap: 2.5rem; }
  section { padding: 4rem 1.5rem; }
  .wi { grid-template-columns: 1fr; }
  .wi.rev { direction: ltr; }
  .wi-stage { min-height: 280px; }
  .proc-wrap { flex-direction: column; gap: 1.25rem; }
  .proc-group-design .proc-group-items { grid-template-columns: 1fr 1fr; }
  .proc-plus { margin-top: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .about-timeline { position: static; margin-left: 0; }
  .about-vis { display: none; }
  .ct-grid { grid-template-columns: 1fr; gap: 3rem; }
  .cf-row { grid-template-columns: 1fr; }
  footer { padding: 2.75rem 1.5rem 2.25rem; }
}

/* ===== CASE STUDY — REAL SCREENSHOTS (La Lumière) ===== */
.cs-hero-shot {
  height: 420px; width: auto; max-width: 100%;
  filter: drop-shadow(0 26px 48px rgba(0,0,0,.30));
  display: block;
}
@media (max-width: 960px){ .cs-hero-shot { height: 350px; } }

.cs-shots {
  display: flex; flex-wrap: wrap; gap: 2.2rem;
  justify-content: center; margin-top: 2.8rem;
}
.cs-shot { width: 230px; max-width: 64vw; display: flex; flex-direction: column; align-items: center; }
.cs-shot.flat { width: 230px; }
.cs-shot > img {
  width: 100%; height: auto; display: block;
}
.cs-shot.flat > img {
  border-radius: 0; border: 1px solid var(--borm);
  box-shadow: 0 10px 28px rgba(21,21,26,.10);
}
.cs-shot-cap { margin-top: 1rem; text-align: center; }
.cs-shot-cap-t { font-family: var(--serif); font-size: 1rem; margin-bottom: .3rem; }
.cs-shot-cap-d { font-size: .84rem; color: var(--muted); line-height: 1.65; }

/* Competitive audit — competitor row cards, violet monochrome, no horizontal scroll */
.cs-audit { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.cs-audit-row { border: 1px solid var(--border); border-radius: 14px; background: var(--white); overflow: hidden; display: grid; grid-template-columns: 210px 1fr; }
.cs-audit-row-head { background: var(--bg-2); padding: 1.2rem 1.3rem; border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.cs-audit-comp-name { font-family: var(--serif); font-size: 1.05rem; }
.cs-audit-comp-type { font-size: .57rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: .2rem 0 .75rem; }
.cs-audit-comp-meta { list-style: none; margin: 0; padding: 0; font-size: .72rem; color: var(--muted); line-height: 1.6; }
.cs-audit-comp-uvp { margin-top: 1.1rem; font-style: italic; font-size: .74rem; color: var(--muted); line-height: 1.5; }
.cs-audit-cells { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 1fr; }
.cs-audit-cell { padding: .8rem .9rem; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cs-audit-cell-l { font-size: .6rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.cs-pill { display: inline-block; padding: .18rem .62rem; border-radius: 100px; font-size: .64rem; font-weight: 600; margin-bottom: .5rem; }
.cs-pill.needs { background: #EEECF5; color: #857DA0; }
.cs-pill.okay  { background: #DAD5EC; color: #544B78; }
.cs-pill.good  { background: var(--accent); color: #fff; }
.cs-audit-notes { list-style: none; margin: 0; padding: 0; font-size: .72rem; line-height: 1.5; }
.cs-audit-notes li { color: var(--muted); padding: .07rem 0; }
.cs-audit-notes li.pos::before { content: "+ "; color: var(--accent); font-weight: 700; }
.cs-audit-notes li.neg::before { content: "– "; color: #A39BBA; font-weight: 700; }
.cs-audit-tone-v { font-style: italic; color: var(--muted); font-size: .72rem; margin-top: .15rem; }
@media (max-width: 680px) {
  .cs-audit-row { grid-template-columns: 1fr; }
  .cs-audit-row-head { border-right: 0; border-bottom: 1px solid var(--border); }
  .cs-audit-cells { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}

/* "Work in progress" tag for sections still being refined */
.cs-wip { display: inline-block; margin-left: .6rem; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: 100px; padding: .22rem .6rem; vertical-align: middle; }

/* Research plan — facts (cards) + script (numbered like usability findings) */
.cs-plan-facts {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; margin: 2.2rem 0 .5rem;
}
.cs-plan-fact { display: block; padding: 0 1.6rem; border-left: 1px solid var(--border); }
.cs-plan-fact:first-child { border-left: none; padding-left: 0; }
.cs-plan-fact .l { font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .55rem; }
.cs-plan-fact .v { font-size: .88rem; line-height: 1.5; color: var(--muted); font-weight: 300; }
.cs-script { margin-top: 2rem; list-style: none; counter-reset: script-count; display: flex; flex-direction: column; max-width: 84ch; }
.cs-script-item { counter-increment: script-count; position: relative; padding: 1.1rem 0 1.1rem 2.6rem; border-bottom: 1px solid var(--border); }
.cs-script-item:last-child { border-bottom: none; }
.cs-script-item::before { content: counter(script-count, decimal-leading-zero); position: absolute; left: 0; top: 1.3rem; font-family: var(--serif); font-size: .78rem; color: var(--accent); letter-spacing: .1em; font-weight: 500; }
.cs-script-task { color: var(--text); font-weight: 500; font-size: .95rem; line-height: 1.55; }
.cs-script-fu { color: var(--muted); font-size: .86rem; line-height: 1.6; margin-top: .35rem; font-weight: 300; }
.cs-script-fu::before { content: "Follow-up — "; color: var(--accent); font-weight: 500; }

/* Affinity mapping — mini square post-it notes (2×2 per cluster), violet tones */
.cs-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; margin-top: 2.4rem; }
.cs-board-col-h { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: .9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.cs-board-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.cs-sticky { width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: .45rem; border-radius: 3px; font-family: 'Kalam', cursive; font-weight: 300; font-size: .8rem; line-height: 1.28; color: var(--text); box-shadow: 0 3px 8px rgba(21,21,26,.09); transform: rotate(-1.6deg); }
.cs-sticky:nth-child(even) { transform: rotate(1.4deg); }
@media (max-width: 980px) { .cs-board { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .cs-board { grid-template-columns: repeat(2, 1fr); } }
.cs-sticky.v1 { background: #EDEAF5; }
.cs-sticky.v2 { background: #E0DAEF; }
.cs-sticky.v3 { background: #D3CCE8; }
.cs-sticky.v4 { background: #C8BFE0; }
.cs-sticky.v5 { background: #BDB2D8; }

.cs-fig { margin-top: 2.8rem; }
.cs-fig-frame {
  border-radius: 18px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.cs-fig-frame img { width: 100%; height: auto; display: block; border-radius: 8px; }
.cs-fig-cap { margin-top: 1rem; text-align: center; font-size: .84rem; color: var(--muted); }

/* before / after evolution (real screenshots) */
.cs-evo { display: flex; flex-direction: column; gap: 3.4rem; margin-top: 2.8rem; }
.cs-evo-row {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: 3rem; align-items: center;
}
.cs-evo-row:nth-child(even) { grid-template-columns: 1.05fr 1fr; }
.cs-evo-row:nth-child(even) .cs-evo-text { order: 2; }
.cs-evo-t { font-family: var(--serif); font-size: 1.3rem; margin-bottom: .8rem; }
.cs-evo-d { color: var(--muted); line-height: 1.85; font-size: .98rem; }
.cs-evo-pair { display: flex; align-items: center; justify-content: center; gap: 1.2rem; }
.cs-evo-shot { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.cs-evo-shot > img {
  width: 166px; max-width: 38vw; height: auto; display: block;
  border-radius: 0; background: #fff;
  box-shadow: 0 14px 34px rgba(21,21,26,.15);
}
.cs-evo-tag {
  font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint);
}
.cs-evo-tag.after { color: var(--accent); }
.cs-evo-arrow { color: var(--acc-m); font-size: 1.5rem; flex: 0 0 auto; }
@media (max-width: 860px){
  .cs-evo-row, .cs-evo-row:nth-child(even) { grid-template-columns: 1fr; gap: 1.6rem; }
  .cs-evo-row:nth-child(even) .cs-evo-text { order: 0; }
}

/* user journey map */
.cs-jm { margin-top: 2.2rem; overflow-x: auto; }
.cs-jm-table {
  border-collapse: collapse; width: 100%; min-width: 840px;
  background: var(--white); border: 1px solid rgba(128,118,174,.22);
  border-radius: 14px; overflow: hidden;
}
.cs-jm-table th, .cs-jm-table td {
  border: 1px solid rgba(128,118,174,.16); padding: .85rem .9rem;
  text-align: left; vertical-align: top; font-size: .76rem; line-height: 1.5;
  color: var(--text);
}
.cs-jm-table thead th {
  background: var(--bg-2); font-family: var(--sans); font-weight: 300;
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
}
.cs-jm-table thead th:first-child {
  font-family: var(--serif); font-size: .95rem; letter-spacing: 0;
  text-transform: none; color: var(--text); font-weight: 400;
}
.cs-jm-table td.cs-jm-rowlabel {
  background: var(--bg-2); font-family: var(--serif); font-size: .95rem;
  font-weight: 400; letter-spacing: 0; text-transform: none;
  color: var(--text); white-space: nowrap; width: 64px;
}
.cs-jm-table td ul { list-style: none; margin: 0; padding: 0; }
.cs-jm-table td li { position: relative; padding: .12rem 0 .12rem .8rem; color: var(--muted); }
.cs-jm-table td li::before { content: ""; position: absolute; left: 0; top: .6rem; width: 5px; height: 1px; background: var(--accent); }
.cs-jm-table td.cs-jm-emotion { font-style: italic; color: var(--muted); }

/* "First UX project" pill in the case-study hero */
.cs-firstux {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.6rem;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  color: var(--accent); background: var(--acc-l);
  border: 1px solid var(--acc-m);
  padding: .5rem .95rem; border-radius: 100px;
}
.cs-firstux::before { content: '★'; font-size: .8rem; line-height: 1; }

/* next-case card — real screenshot inside the mini phone */
.cs-next-phone-shot { position: relative; }
.cs-next-phone-shot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}
.cs-next-phone-shot .cs-next-phone-island { position: relative; z-index: 2; }

/* taller phone screen so single-screen app mockups aren't clipped */
.e-phone.tall .e-ph-screen { height: 340px; }

/* Swiss Snackbox — before/after browser frames */
.cs-ba-browser {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  background: #fff;
}
.cs-ba-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 11px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.cs-ba-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.cs-ba-imgwrap { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.cs-ba-imgwrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* Swiss Snackbox key-screens — taller phone frames (scoped to this page) */
body[data-page="swiss-snackbox"] .cs-carousel .e-ph-screen { width: 168px; height: 364px; }
@media (min-width: 961px) {
  body[data-page="swiss-snackbox"] .cs-carousel-stage { min-height: 430px; padding: 2.25rem 1.5rem; }
}

/* Swiss Snackbox — hero phone, a little longer so a bit more of the page shows below the button */
body[data-page="swiss-snackbox"] .cs-hero .e-ph-screen { width: 184px; height: 400px; }

/* La Lumière — CSS phone frames (like Swiss Snackbox). Height is driven by the image
   itself (island + natural image height) so every screen fills exactly — no gap at the
   top under the island, no empty space at the bottom, regardless of each shot's aspect. */
body[data-page="la-lumiere"] .cs-hero-visual .e-ph-screen { width: 188px; height: auto; }
body[data-page="la-lumiere"] .cs-shots .e-ph-screen { width: 168px; height: auto; }
body[data-page="la-lumiere"] .cs-evo-pair .e-ph-screen { width: 142px; height: auto; }
body[data-page="la-lumiere"] .e-ph-screen { display: flex; flex-direction: column; }
body[data-page="la-lumiere"] .e-ph-scroll { height: auto; overflow: visible; }
/* the screenshots don't include a camera bar, so show the mockup's island/pill;
   it also gives the phones the full height of a real device, matching the wireframes */
body[data-page="la-lumiere"] .e-ph-island { display: flex; }
/* logo block — sits under the colour palette in the design system column */
body[data-page="la-lumiere"] .cs-design-system .cs-logo-frame { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.3rem; display: flex; align-items: center; justify-content: center; margin-top: .7rem; }
body[data-page="la-lumiere"] .cs-design-system .cs-logo-frame img { width: 100%; max-width: 200px; height: auto; display: block; }
body[data-page="la-lumiere"] .cs-shots .cs-shot { width: 200px; }
/* Key Screens: three on top, one centred below */
body[data-page="la-lumiere"] .cs-shots { max-width: 700px; margin-left: auto; margin-right: auto; }
body[data-page="la-lumiere"] .cs-hero-visual { display: flex; align-items: center; justify-content: center; }

/* Swiss Snackbox — Information Architecture: 5 nav branches, connector lines recalculated for 5 columns */
body[data-page="swiss-snackbox"] .cs-ia-branches { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
body[data-page="swiss-snackbox"] .cs-ia-branches::before { left: calc((100% - 4rem) / 10); right: calc((100% - 4rem) / 10); }
body[data-page="swiss-snackbox"] .cs-ia-tree-inner { min-width: 880px; }
body[data-page="swiss-snackbox"] .cs-ia-leaf { font-size: .74rem; padding: 6px 8px; }

/* Swiss Snackbox — outcome: four qualitative cards in a 2×2 grid */
body[data-page="swiss-snackbox"] .cs-outcome-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) {
  body[data-page="swiss-snackbox"] .cs-outcome-grid { grid-template-columns: 1fr; }
}

/* Swiss Snackbox — Key Screens: equal-height cards across the row */
@media (min-width: 961px) {
  .cs-carousel-paged .cs-carousel-slide { display: flex; flex-direction: column; }
  .cs-carousel-paged .cs-carousel-info { flex: 1 1 auto; }
}

/* ===== DEV-STYLE COMPONENTS (Standin hybrid) ===== */
.dv-actions { display: flex; gap: .8rem; margin-top: 2rem; flex-wrap: wrap; }
.dv-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: .85rem; font-weight: 400;
  padding: .7rem 1.3rem; border-radius: 100px;
  text-decoration: none; transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.dv-btn:hover { transform: translateY(-2px); }
.dv-btn-primary { background: var(--dark); color: #fff; }
.dv-btn-primary:hover { background: var(--accent); }
.dv-btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--borm); }
.dv-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.dv-btn svg { width: 15px; height: 15px; }

.dv-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; }
.dv-badge {
  font-family: var(--mono); font-size: .72rem; font-weight: 400;
  color: var(--muted); background: var(--white);
  border: 1px solid var(--border); border-radius: 7px;
  padding: .35rem .7rem;
}

.dv-codewrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
@media (max-width: 860px) { .dv-codewrap { grid-template-columns: 1fr; } }
.dv-code {
  background: #17171C; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 12px 40px rgba(21,21,26,.18);
}
.dv-code-bar {
  display: flex; align-items: center; gap: 8px;
  padding: .7rem 1rem; background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dv-code-bar .d { width: 11px; height: 11px; border-radius: 50%; }
.dv-code-bar .r { background: #ED6A5E; } .dv-code-bar .y { background: #F4BF4F; } .dv-code-bar .g { background: #61C554; }
.dv-code-file { margin-left: 8px; font-family: var(--mono); font-size: .72rem; color: rgba(255,255,255,.42); }
.dv-code pre {
  margin: 0; padding: 1.3rem 1.4rem; overflow-x: auto;
  font-family: var(--mono); font-size: .8rem; line-height: 1.7; color: #D7D7E0;
}
.dv-code .cmt { color: #6B6B7B; font-style: italic; }
.dv-code .kw  { color: #C792EA; }
.dv-code .ty  { color: #82AAFF; }
.dv-code .str { color: #C3E88D; }
.dv-code .fn  { color: #FFD479; }
.dv-code .pn  { color: #89DDFF; }

.dv-todo {
  font-family: var(--mono); font-size: .73rem; color: var(--accent);
  background: var(--acc-l); border-radius: 8px;
  padding: .8rem 1rem; margin-top: 1.2rem; line-height: 1.6;
}

/* Feature ↔ Code pairing */
.dv-feature { margin-top: 2.8rem; }
.dv-feature + .dv-feature { margin-top: 3.5rem; }
.dv-feature-cap {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6rem;
}
.dv-feature-for {
  display: inline-block; margin-left: .55rem; padding: .12rem .5rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--acc-l); color: var(--muted);
  font-size: .6rem; letter-spacing: .1em; vertical-align: middle;
}
.cs-ux-badge, .cs-dev-badge {
  display: inline-block; margin-left: .5rem; padding: .12rem .5rem;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: .58rem; font-weight: 700; letter-spacing: .14em;
  vertical-align: middle; text-transform: uppercase;
}
/* Two-step slideshow inside a feature shot (booking) */
.dv-ss { position: relative; }
.dv-ss .dv-ss-slide { position: absolute; inset: 0; opacity: 0; animation: dvss 9s infinite; }
.dv-ss .dv-ss-slide:nth-child(2) { animation-delay: 4.5s; }
.dv-ss .dv-ss-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* two screenshots shown side by side, static (no slideshow) */
.dv-2up { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.dv-2up-i { position: relative; min-width: 0; }
.dv-2up-i + .dv-2up-i { border-left: 1px solid var(--border); }
.dv-2up-i img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* four step screenshots in a 2×2 grid inside the shot (onboarding) */
.dv-4up { display: grid; grid-template-columns: 1fr 1fr; gap: 0; height: 100%; }
.dv-4up-i { position: relative; min-width: 0; }
.dv-4up-i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dv-4up-i:nth-child(odd) { border-right: 1px solid var(--border); }
.dv-4up-i:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
.dv-4up .dv-ss-n { top: .5rem; left: .5rem; }

.dv-ss-n {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  background: rgba(21,21,26,.82); color: #fff;
}
@keyframes dvss { 0%{opacity:0} 3%{opacity:1} 47%{opacity:1} 50%{opacity:0} 100%{opacity:0} }
.dv-feature-d { font-size: .92rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.4rem; max-width: 70ch; }

.dv-feature-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch;
}
.dv-feature.flip .dv-feature-shot { order: 2; }
@media (max-width: 860px) {
  .dv-feature-pair { grid-template-columns: 1fr; }
  .dv-feature.flip .dv-feature-shot { order: 0; }
}
.dv-feature-shot {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(21,21,26,.12);
  background: var(--bg-2);
}
.dv-feature-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dv-feature-pair .dv-code { height: 100%; display: flex; flex-direction: column; margin: 0; }
.dv-feature-pair .dv-code pre { flex: 1 1 auto; }

/* ===== Sashimi case study — device showcase ===== */
.e-tablet { width: 270px; max-width: 100%; background: #1c1c20; border-radius: 26px; padding: 13px; box-shadow: 0 28px 60px rgba(0,0,0,.16); }
.e-tablet .e-tb-screen { position: relative; border-radius: 15px; overflow: hidden; background: #fff; aspect-ratio: 3 / 4; }
.e-tablet .e-tb-screen img { width: 100%; display: block; }

/* device rotator (mobile -> tablet -> desktop) — clean switch, no fade */
.dev-rotator { position: relative; width: 100%; min-height: 470px; display: flex; align-items: center; justify-content: center; }
.dev-slot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: none; pointer-events: none; }
.dev-slot.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.dev-rotator .e-laptop { width: 440px; max-width: 440px; }
.dev-rotator .e-tablet { width: 232px; }

/* across-devices row — all three sized to roughly equal height, bottom-aligned */
.cs-devices { display: flex; align-items: flex-end; justify-content: center; gap: 1.8rem; flex-wrap: wrap; margin-top: 2.6rem; }
body[data-page="sashimi"] .cs-wire-version {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted, #999); font-weight: 500;
  margin: 2.6rem 0 .2rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--border, #eee);
}
body[data-page="sashimi"] .cs-wire-version + .cs-wire-grid { margin-top: 1.4rem; }
body[data-page="sashimi"] .cs-devices .e-laptop { width: 500px; max-width: 100%; }
body[data-page="sashimi"] .cs-devices .e-tablet { width: 251px; }

/* wireframes shown full — no device frames, nothing cropped, kept compact */
body[data-page="sashimi"] .cs-wire-grid { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: flex-start; justify-content: center; }
body[data-page="sashimi"] .cs-wire-shot { display: flex; flex-direction: column; gap: .7rem; }
body[data-page="sashimi"] .cs-wire-shot img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
body[data-page="sashimi"] .wf-desktop { flex: 1 1 300px; max-width: 360px; }
body[data-page="sashimi"] .wf-tablet  { flex: 1 1 150px; max-width: 190px; }
body[data-page="sashimi"] .wf-mobile  { flex: 0 1 105px; max-width: 122px; }

/* phone: real proportions, screenshot fills the whole screen, short floating camera pill.
   black screen bg so no white frame edge shows where the dark app meets the bezel */
body[data-page="sashimi"] .e-ph-screen { height: 338px; background: #0E0E0E; }
body[data-page="sashimi"] .e-ph-scroll { position: absolute; inset: 0; height: 100%; width: 100%; }
body[data-page="sashimi"] .e-ph-scroll img { width: 100%; height: auto; display: block; }
body[data-page="sashimi"] .e-ph-island {
  position: absolute; top: 0; left: 0; right: 0; height: auto;
  background: transparent; padding-top: 7px; z-index: 2; pointer-events: none;
}
body[data-page="sashimi"] .e-ph-pill { width: 46px; height: 13px; }

/* hi-fi tablet & desktop scroll the full page, like the phone; black bg avoids edge strips */
body[data-page="sashimi"] .e-lp-scroll { height: 100%; }
body[data-page="sashimi"] .e-lp-scroll img,
body[data-page="sashimi"] .e-tb-screen img { width: 100%; height: auto; display: block; }
body[data-page="sashimi"] .e-tb-screen { background: #0E0E0E; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; aspect-ratio: 3 / 4.3; }
body[data-page="sashimi"] .e-tb-screen::-webkit-scrollbar { display: none; }
body[data-page="sashimi"] .e-lp-screen { background: #0E0E0E; }

/* interactive prototype inside a realistic phone shell */
.cs-proto-stage { display: flex; justify-content: center; margin: 2rem 0 .5rem; }
body[data-page="sashimi"] .cs-proto-phone { padding: 11px; border-radius: 48px; }
body[data-page="sashimi"] .cs-proto-phone .e-ph-screen { width: 300px; height: 640px; border-radius: 40px; background: #0E0E0E; }
.cs-proto-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* homepage preview card — same filled look as the case study */
.wi-sashimi .e-ph-screen { background: #0E0E0E; }
.wi-sashimi .e-ph-scroll { position: absolute; inset: 0; height: 100%; width: 100%; }
.wi-sashimi .e-ph-scroll img { width: 100%; height: auto; display: block; }
.wi-sashimi .e-ph-island {
  position: absolute; top: 0; left: 0; right: 0; height: auto;
  background: transparent; padding-top: 7px; z-index: 2; pointer-events: none;
}
.wi-sashimi .e-ph-pill { width: 46px; height: 13px; }

/* La Lumière homepage preview — single home screen, device sizes to the image (no white gap, no crop) */
.wi-lalumiere .e-phone.tall .e-ph-screen { height: auto; display: flex; flex-direction: column; }
.wi-lalumiere .e-ph-scroll { height: auto; overflow: visible; }
.wi-lalumiere .e-ph-scroll img { width: 100%; height: auto; display: block; }

/* La Lumière — slimmer notch bar so the menu icon sits a bit higher (homepage + case study) */
.wi-lalumiere .e-ph-island,
body[data-page="la-lumiere"] .e-ph-island { height: 16px; }
.wi-lalumiere .e-ph-pill,
body[data-page="la-lumiere"] .e-ph-pill { height: 11px; width: 60px; }
/* homepage rotator sizing (mobile -> tablet -> desktop) */
.wi-sashimi .dev-rotator { min-height: 360px; width: 100%; }
.wi-sashimi .dev-rotator .e-laptop { width: 330px; max-width: 100%; }
.wi-sashimi .dev-rotator .e-tablet { width: 178px; }

/* prototype connection map — kept compact so it stays crisp */
body[data-page="sashimi"] .cs-proto-map { margin: 1.8rem 0 1.6rem; max-width: 760px; }
body[data-page="sashimi"] .cs-proto-map img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
body[data-page="sashimi"] .cs-proto-map figcaption { font-size: .8rem; color: var(--muted); margin-top: .6rem; }

/* design inspiration — Hutong reference, in the design system panel like the logo block */
body[data-page="sashimi"] .cs-insp-frames { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .7rem; }
body[data-page="sashimi"] .cs-insp-frame { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
body[data-page="sashimi"] .cs-insp-frame img { width: 100%; height: auto; display: block; }
body[data-page="sashimi"] .cs-insp-note { font-size: .75rem; color: var(--muted); margin-top: .55rem; }
body[data-page="swiss-snackbox"] .cs-design-system .cs-logo-frame { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.3rem; display: flex; align-items: center; justify-content: center; margin-top: .7rem; }
body[data-page="swiss-snackbox"] .cs-design-system .cs-logo-frame img { width: 100%; max-width: 200px; height: auto; display: block; }
body[data-page="swiss-snackbox"] .cs-insp-frames { display: block; margin-top: .7rem; }
body[data-page="swiss-snackbox"] .cs-insp-frame { border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 1.3rem; display: flex; align-items: center; justify-content: center; }
body[data-page="swiss-snackbox"] .cs-insp-frame img { width: 100%; max-width: 190px; height: auto; display: block; }
body[data-page="swiss-snackbox"] .cs-insp-note { font-size: .75rem; color: var(--muted); margin-top: .55rem; }
body[data-page="sashimi"] .cs-insp-imgs img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: 12px; }
body[data-page="sashimi"] .cs-insp-imgs figcaption { font-size: .8rem; color: var(--muted); margin-top: .55rem; }
@media (max-width: 680px) { body[data-page="sashimi"] .cs-insp-imgs { grid-template-columns: 1fr; } }

/* user-flow stepper */
body[data-page="sashimi"] .cs-flow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .55rem; margin: 1.8rem 0 .4rem; }
body[data-page="sashimi"] .cs-flow-step { font-size: .78rem; padding: .48rem .85rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-2); white-space: nowrap; }
body[data-page="sashimi"] .cs-flow-arr { color: var(--muted); font-size: .82rem; }

/* key screens — masonry gallery, each screen shown in full */
body[data-page="sashimi"] .cs-keyscreens { column-count: 3; column-gap: 1.4rem; margin-top: 2.2rem; }
body[data-page="sashimi"] .cs-ks { break-inside: avoid; margin: 0 0 1.4rem; }
body[data-page="sashimi"] .cs-ks img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: 12px; background: #0E0E0E; }
body[data-page="sashimi"] .cs-ks figcaption { font-size: .8rem; color: var(--muted); margin-top: .55rem; letter-spacing: .01em; }
@media (max-width: 880px) { body[data-page="sashimi"] .cs-keyscreens { column-count: 2; } }
@media (max-width: 540px) { body[data-page="sashimi"] .cs-keyscreens { column-count: 1; } }

/* key screens in browser frames (La Lumière-style cards) — 3 across */
body[data-page="sashimi"] .cs-ks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem 1.6rem; margin-top: 2.4rem; align-items: start; }
body[data-page="sashimi"] .cs-ks-grid .cs-ks-card { display: flex; flex-direction: column; }
body[data-page="sashimi"] .cs-ks-grid .e-laptop { width: 100%; max-width: 360px; margin: 0 auto; }
/* browser-window look: short screens fit fully, only tall ones scroll */
body[data-page="sashimi"] .cs-ks-card .e-lp-hinge,
body[data-page="sashimi"] .cs-ks-card .e-lp-base,
body[data-page="sashimi"] .cs-ks-card .e-lp-camera { display: none; }
body[data-page="sashimi"] .cs-ks-card .e-lp-top { padding: 5px; border-radius: 12px; box-shadow: 0 16px 36px rgba(0,0,0,.13); }
body[data-page="sashimi"] .cs-ks-card .e-lp-screen { aspect-ratio: auto; height: auto; border-radius: 8px; }
body[data-page="sashimi"] .cs-ks-card .e-lp-scroll { height: auto; max-height: 400px; }
body[data-page="sashimi"] .cs-ks-card .e-lp-scroll img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { body[data-page="sashimi"] .cs-ks-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { body[data-page="sashimi"] .cs-ks-grid { grid-template-columns: 1fr; } }

/* live Figma embed */
.cs-embed { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); margin-top: 1.8rem; background: var(--bg-2); }
.cs-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
