/* =========================================================
   Rhea Sharma — Portfolio
   Minimal Swiss design system
   ========================================================= */

/* Lufga (display) — not a Google font; cdnfonts host. Falls back to Outfit,
   a near-identical geometric sans, if the Lufga host is unavailable. */
@import url('https://fonts.cdnfonts.com/css/lufga');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Montserrat:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Dusty blue on off-white — calm, clean, airy */
  --paper:   #FAFBFC;
  --paper-2: #EEF1F6;
  --ink:     #1C2430;
  --muted:   #8A909C;
  --hair:    #1C24301A;   /* hairline rules */
  --red:     #7E93C4;     /* "accent" — recoloured below to dusty blue */

  --serif: 'Montserrat', sans-serif;                       /* body */
  --display: 'Lufga', 'Outfit', 'Montserrat', sans-serif;  /* hero / big headings */
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --pad: clamp(22px, 7vw, 132px);
  --maxw: 1320px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.4;
  overflow-x: hidden;
  cursor: none;
}

/* ---------- display type (Lufga → Outfit fallback) ---------- */
.hero__title, .sec-head h2, .work-row__title, .card__name, .process__title,
.contact__big, .cs-title, .cs-summary, .cs-next__name, .cs-metric .num,
.loader__count, .marquee__track span, .about-lead {
  font-family: var(--display);
}

/* Film-grain-free, but a faint paper texture via repeating gradient */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(var(--hair) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--red); color: var(--paper); }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 9px; height: 9px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease), border-radius .25s var(--ease);
  mix-blend-mode: normal;
}
.cursor.is-link {
  width: 56px; height: 56px;
  background: transparent;
  border: 1px solid var(--ink);
}
.cursor.is-view {
  width: 84px; height: 84px;
  background: var(--red);
}
.cursor-label {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--paper);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.cursor-label.show { opacity: 1; }
@media (hover: none) { body { cursor: auto; } .cursor, .cursor-label { display: none; } }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.rule { height: 1px; background: var(--hair); width: 100%; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--pad);
  mix-blend-mode: difference;
  color: #fff;
}
.nav a, .nav span { color: #fff; }
.nav__brand { font-weight: 600; letter-spacing: -0.02em; font-size: 15px; }
.nav__center { display: flex; gap: 28px; justify-self: center; }
.nav__center a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; position: relative; }
.nav__center a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0; background: currentColor;
  transition: width .4s var(--ease);
}
.nav__center a:hover::after, .nav__center a.active::after { width: 100%; }
.nav__clock { justify-self: end; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; }

/* ---------- Intro loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--paper);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--pad);
  will-change: transform;
}
.loader.done { transform: translateY(-101%); transition: transform 1s var(--ease); }
.loader__word { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); align-self: flex-end; }
.loader__count {
  font-weight: 500; letter-spacing: -0.045em; line-height: 0.8;
  font-size: clamp(72px, 16vw, 220px);
  align-self: center; flex: 1; text-align: center;
}
.loader__count .pct { color: var(--red); }
body.loading { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(28px, 5vh, 60px);
  position: relative;
}

.hero__top {
  position: absolute;
  top: clamp(96px, 16vh, 200px);
  left: var(--pad); right: var(--pad);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.hero__meta { max-width: 30ch; }
.hero__title {
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.86;
  font-size: clamp(64px, 18.5vw, 320px);
  text-transform: uppercase;
}
.hero__title .ln { display: block; overflow: hidden; }
.hero__title .ln > span { display: block; transform: translateY(102%); }
.hero__sub {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 20px; margin-top: clamp(20px, 4vh, 48px);
}
.hero__tagline { max-width: 34ch; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.45; letter-spacing: -0.01em; }
.hero__scroll { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero__scroll .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{transform: scale(1); opacity: 1;} 50%{transform: scale(1.8); opacity: .3;} }

/* ---------- Process: hand-drawn up-and-down chart ---------- */
.process { padding-top: clamp(20px, 5vh, 56px); padding-bottom: clamp(50px, 9vh, 110px); }
.process__title {
  font-weight: 500; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(26px, 4vw, 54px);
}
.process__title em { font-style: italic; font-family: Georgia, 'Times New Roman', serif; color: var(--red); }
.process__sub { color: var(--muted); margin-top: 14px; }

.proc { margin-top: clamp(18px, 3.5vh, 36px); overflow-x: auto; overflow-y: visible; -webkit-overflow-scrolling: touch; }
.proc svg { width: 100%; min-width: 720px; height: auto; display: block; overflow: visible; }

.proc-node { will-change: transform; cursor: pointer; }
.proc-hit { cursor: pointer; }
.proc-dot { fill: var(--ink); transition: fill .25s var(--ease); }   /* bigger, filled dots */
.proc-star { fill: var(--red); }

/* the dot you should click next: red + a gentle pulse */
.proc-node.next .proc-dot { fill: var(--red); }
.proc-node.next .proc-dot,
.proc-node.next .proc-star { animation: procpulse 1.2s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes procpulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.4); } }

/* line segments are added one-by-one as you click (JS animates them in) */
.proc-seg { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.proc-seg.dash { stroke-dasharray: 1 12; }

.proc-label {
  font-family: 'Caveat', 'Comic Sans MS', cursive; font-weight: 700;
  font-size: 30px; fill: var(--ink); pointer-events: none;
  opacity: 0; transition: opacity .45s ease;
}
.proc-label.is-star { fill: var(--red); }
.proc-node.lit .proc-label { opacity: 1; }      /* revealed when its dot is clicked */

.proc-node.shake { animation: procshake .4s; transform-box: fill-box; transform-origin: center; }
@keyframes procshake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }

@media (prefers-reduced-motion: reduce) {
  .proc-node.next .proc-dot, .proc-node.next .proc-star { animation: none; }
}

/* ---------- Section header ---------- */
.section { padding-top: clamp(60px, 12vh, 160px); padding-bottom: clamp(60px, 12vh, 160px); position: relative; }
.sec-head {
  display: grid; grid-template-columns: auto 1fr; gap: 24px;
  align-items: baseline; margin-bottom: clamp(28px, 5vh, 64px);
}
.sec-head h2 { font-weight: 500; font-size: clamp(28px, 4vw, 56px); letter-spacing: -0.03em; }

/* ---------- Work index (Swiss list) ---------- */
.work-list { border-top: 1px solid var(--hair); }
.work-row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: clamp(20px, 3.2vh, 38px) 0;
  border-bottom: 1px solid var(--hair);
  position: relative;
  transition: padding-left .5s var(--ease);
}
.work-row:hover { padding-left: 24px; }
.work-row__idx { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.work-row__title { font-size: clamp(26px, 4.4vw, 62px); font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.work-row__title em { font-style: normal; color: var(--red); transition: color .3s; }
.work-row__tags { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; text-align: right; }
.work-row__yr { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.work-row .bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--red); transition: width .6s var(--ease); }
.work-row:hover .bar { width: 100%; }

/* floating preview that follows the cursor on the work list */
.work-preview {
  position: fixed;
  top: 0; left: 0;
  width: 320px; height: 220px;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  overflow: hidden;
  border-radius: 2px;
}
.work-preview.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.work-preview > div { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.work-preview > div.active { opacity: 1; }

/* ---------- Selected work cards ---------- */
.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.card { grid-column: span 6; display: flex; flex-direction: column; gap: 16px; }
.card:nth-child(3) { grid-column: span 12; }
.card__media {
  aspect-ratio: 16/10; border-radius: 2px; overflow: hidden; position: relative;
  border: 1px solid var(--hair);
}
.card:nth-child(3) .card__media { aspect-ratio: 21/9; }
.card__media > .art { position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.card:hover .card__media > .art { transform: scale(1.05); }
.card__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card__name { font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -0.03em; }
.card__desc { color: var(--muted); font-size: 14px; max-width: 46ch; margin-top: 4px; }
.card__metric { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red); white-space: nowrap; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 48px); }
.about-lead { grid-column: 1 / span 7; font-size: clamp(22px, 2.8vw, 38px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.18; }
.about-lead .hl { color: var(--red); }
.about-side { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 28px; }
.about-side p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- Skills marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 18px 0; }
.marquee__track { display: flex; gap: 48px; white-space: nowrap; width: max-content; animation: scrollx 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-size: clamp(22px, 3vw, 44px); font-weight: 500; letter-spacing: -0.02em; }
.marquee__track .dot { color: var(--red); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Contact / footer ---------- */
.contact { padding-top: clamp(60px, 12vh, 140px); padding-bottom: 48px; }
.contact__big {
  font-weight: 500; letter-spacing: -0.04em; line-height: 0.9;
  font-size: clamp(48px, 11vw, 180px); text-transform: uppercase;
}
.contact__big a { display: inline-block; }
.contact__big a:hover { color: var(--red); }
.contact__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-top: clamp(40px, 8vh, 90px); }
.contact__links { display: flex; gap: 28px; flex-wrap: wrap; }
.contact__links a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; position: relative; }
.contact__links a::after { content: "↗"; margin-left: 4px; }
.footer-meta { display: flex; justify-content: space-between; margin-top: 48px; font-family: var(--mono); font-size: 11px; color: var(--muted); flex-wrap: wrap; gap: 12px; }

/* ---------- back to top (appears once you're a screen deep) ----------
   same language as the studio's hover cursor: a slowly spinning text ring
   around a frosted dot, with the ↑ inside */
.cs-top { position: fixed; right: clamp(14px, 2.2vw, 26px); bottom: clamp(14px, 2.2vw, 26px); z-index: 40;
  width: 84px; height: 84px; background: none; border: 0; padding: 0; cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease); }
.cs-top.on { opacity: 1; transform: none; pointer-events: auto; }
.cs-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  animation: csTopSpin 9s linear infinite; }
.cs-top__ring text { font-family: var(--display); font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; fill: var(--ink); }
.cs-top__dot { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: color-mix(in srgb, var(--paper) 60%, transparent);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: color .2s var(--ease), border-color .2s var(--ease), transform .3s var(--ease); }
.cs-top:hover .cs-top__dot { color: var(--red); border-color: var(--red); transform: translateY(-2px); }
@keyframes csTopSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cs-top__ring { animation: none; } }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Journey: horizontal timeline + polaroid testimonials ---------- */
.tl-hint { color: var(--muted); margin-bottom: 18px; }

.tline-wrap {
  position: relative;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 8px 0 6px;
}
.tline {
  position: relative;
  min-width: 1120px;
  height: 440px;
}
.tline__axis {
  position: absolute; left: 0; right: 26px; top: 50%;
  height: 1.5px; background: var(--ink);
}
.tline__axis::after {            /* arrowhead */
  content: ""; position: absolute; right: -1px; top: 50%;
  width: 9px; height: 9px;
  border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
}

.tl-mark {
  position: absolute; top: 50%; left: var(--x);
  transform: translateX(-50%);
}
.tl-mark__node {                 /* dot sitting on the axis */
  position: absolute; left: 50%; top: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c, var(--ink));
  transform: translate(-50%, -50%);
  z-index: 2;
}
.tl-mark__stem {                 /* dashed connector from axis to label */
  position: absolute; left: 50%; width: 0;
  border-left: 1px dashed rgba(28,36,48,0.4);
}
.tl-mark.above .tl-mark__stem { bottom: 0; height: var(--h); }
.tl-mark.below .tl-mark__stem { top: 0; height: var(--h); }

.tl-head {                       /* date + label group at the end of the stem */
  position: absolute; left: 50%;
  width: max-content; max-width: 220px;
  transform: translateX(-50%);
  cursor: pointer;
}
.tl-mark.above .tl-head { bottom: calc(var(--h) + 6px); }
.tl-mark.below .tl-head { top: calc(var(--h) + 6px); }
.tl-when { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; letter-spacing: -0.01em; white-space: nowrap; }
.tl-when::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--ink)); flex: none; }
.tl-pill {
  display: inline-block; margin-top: 7px;
  background: var(--c); color: #fff;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em;
  padding: 6px 12px; border-radius: 7px; white-space: nowrap;
}
.tl-proj { margin-top: 5px; font-family: var(--mono); font-size: 11px; line-height: 1.4; color: var(--muted); }
.tl-head.has-quote .tl-pill,
.tl-head.has-quote .tl-proj { position: relative; }
.tl-head.has-quote::after {       /* little dot hinting "hover me" */
  content: "✿"; margin-left: 6px; color: var(--red); font-size: 11px;
}
.tl-head.has-quote:hover .tl-pill { transform: translateY(-2px); transition: transform .25s var(--ease); }
.tl-head.is-active .tl-when { color: var(--red); }

/* ---------- Polaroid (fixed overlay) ---------- */
.polaroid {
  position: fixed; top: 0; left: 0; z-index: 300;
  width: 232px;
  background: #fffdf8;
  padding: 12px 12px 14px;
  box-shadow: 0 22px 48px -16px rgba(28,36,48,0.5), 0 4px 10px rgba(28,36,48,0.15);
  border: 1px solid rgba(28,36,48,0.08);
  transform: translate(-50%, 0) scale(0.92) rotate(-2deg);
  transform-origin: center bottom;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .35s cubic-bezier(0.34,1.56,0.64,1);
}
.polaroid.show { opacity: 1; transform: translate(-50%, 0) scale(1) rotate(-2deg); }
.polaroid__tape {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 66px; height: 20px;
  background: rgba(126,147,196,0.18); border: 1px dashed rgba(126,147,196,0.4);
}
.polaroid__img {
  aspect-ratio: 1; width: 100%;
  background: var(--c, #ddd) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 40px; letter-spacing: -0.02em;
}
.polaroid__quote { font-size: 13px; line-height: 1.42; margin: 12px 2px 10px; color: var(--ink); }
.polaroid__by { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.polaroid__name { font-weight: 600; font-size: 13px; }
.polaroid__role { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .polaroid { transition: opacity .2s ease; }
  .polaroid.show { transform: translate(-50%, 0) rotate(-2deg); }
}

/* ========== CASE STUDY ========== */
.cs-hero { padding-top: clamp(40px, 7vh, 84px); }
/* back-to-studio: tactile push-button (room style) in dark blue-black */
.cs-back {
  display: flex; width: fit-content; align-items: center; gap: 9px; margin-bottom: 86px;
  font-family: var(--serif); font-size: 13px; letter-spacing: 0.01em; font-weight: 600;
  color: #EAF0FB; background: #1B2740; padding: 12px 20px; border-radius: 4px;
  box-shadow: 0 5px 0 #0C1322, 0 8px 14px rgba(12,18,34,0.34);
  transform: translateY(0); transition: transform .09s var(--ease), box-shadow .09s var(--ease), background .2s;
}
.cs-back:hover { background: #24355A; color: #fff; }
.cs-back:active { transform: translateY(5px); box-shadow: 0 0 0 #0C1322, 0 2px 4px rgba(12,18,34,0.34); }
.cs-title {
  font-weight: 500; letter-spacing: -0.045em; line-height: 0.9; text-transform: uppercase;
  font-size: clamp(48px, 11vw, 180px); margin: 18px 0 clamp(24px,4vh,48px);
}
/* sentence-style headline (studies with a `headline` line) — smaller & readable, not poster-caps */
.cs-title.is-sentence {
  text-transform: none; line-height: 1.04; letter-spacing: -0.03em;
  font-size: clamp(30px, 4.6vw, 60px); max-width: 20ch; margin-top: 0;
}
.cs-summary { font-size: clamp(18px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; max-width: 22ch; }
.cs-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--hair); margin-top: clamp(40px,7vh,80px); padding-top: 24px;
}
.cs-meta div { display: flex; flex-direction: column; gap: 6px; }
.cs-meta dt { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.cs-meta dd { font-size: 15px; font-weight: 500; }

.cs-bigvis { aspect-ratio: 21/9; border-radius: 2px; overflow: hidden; border: 1px solid var(--hair); margin: clamp(40px,8vh,90px) 0; position: relative; }
.cs-bigvis .art { transition: transform 6s var(--ease); }
/* hero slideshow — slide 1 is the live Figma prototype, the rest are images; thumbnails below; arrows outside */
.cs-show-row { display: flex; align-items: center; gap: clamp(8px,1.6vw,18px); margin: clamp(40px,8vh,90px) 0; }
.cs-show-mid { flex: 1 1 auto; min-width: 0; }
.cs-bigvis.cs-show { aspect-ratio: var(--ar, 16/9); overflow: visible; border: 0; background: transparent; margin: 0; }   /* no box */
/* a mobile-native prototype slide shows as a full-height portrait phone (image slides stay landscape) */
.cs-show-row.mproto .cs-show.is-proto { aspect-ratio: 9 / 19.5; width: auto; height: min(74vh, 660px); max-width: 100%; margin: 0 auto; }
/* cap the stage at phone width — a wider iframe makes an embedded live app switch to its
   desktop phone-frame-on-black view; ≤400px keeps it in its true mobile layout */
@media (max-width: 768px) { .cs-show-row.mproto .cs-show.is-proto { width: min(100%, 400px); height: auto; } }
.cs-slide--proto { background: var(--paper); }   /* paper (not black) behind the embed while it loads */
.cs-slides { position: absolute; inset: 0; overflow: hidden; border-radius: 4px; cursor: grab; }
.cs-slides:active { cursor: grabbing; }
.cs-ss { cursor: grab; } .cs-ss:active { cursor: grabbing; }
.cs-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); z-index: 0; }
.cs-slide.is-on { opacity: 1; pointer-events: auto; z-index: 2; }
/* the slide we just left holds still underneath while the new one fades in over it,
   so the backdrop never shows through mid-fade */
.cs-slide.was-on { opacity: 1; z-index: 1; transition: none; }
.cs-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }   /* stage matches image ratio → no crop */
/* the prototype iframe overhangs the bottom so Figma's "file · edited …" footer bar is clipped away */
.cs-slide--proto .cs-proto__frame { position: absolute; top: 0; left: 0; width: 100%; height: calc(100% + 52px); border: 0; display: block; }
.cs-show__nav { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  font-size: 22px; line-height: 1; color: #fff; background: #1B2740; box-shadow: 0 6px 14px rgba(12,18,34,.28);
  transition: background .2s var(--ease), transform .12s var(--ease); }
.cs-show__nav:hover { background: #24355A; }
.cs-show__nav:active { transform: scale(.94); }
.cs-thumbs { display: flex; gap: 12px; margin-top: 16px; }
.cs-thumb { flex: 1; aspect-ratio: 16/9; min-width: 0; padding: 0; border: 1px solid var(--hair); border-radius: 3px; overflow: hidden;
  cursor: pointer; background: #EDEFF3; opacity: .5; transition: opacity .2s var(--ease), border-color .2s var(--ease); }
.cs-thumb:hover { opacity: .85; }
.cs-thumb.is-on { opacity: 1; border-color: var(--red); }
.cs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-thumb--proto { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.cs-thumb--proto span { font-size: 9px; }
/* Desktop prototype (e.g. Experience Hub): embed on desktop, drop on iPad/phones */
@media (max-width: 1024px), (pointer: coarse) {
  .cs-show-row:not(.mproto) .cs-slide--proto, .cs-show-row:not(.mproto) .cs-thumb--proto { display: none; }
}
/* Mobile-app prototype (.mproto): embed only on iPad/phones; desktop gets a link button below instead */
@media (min-width: 1025px) and (pointer: fine) {
  .cs-show-row.mproto .cs-slide--proto, .cs-show-row.mproto .cs-thumb--proto { display: none; }
}
.cs-proto-cta { display: none; flex-direction: column; align-items: center; justify-content: center; margin: clamp(14px,2.2vw,22px) 0 0; }
.cs-proto-note { margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: var(--muted); text-align: center; max-width: 54ch; }
@media (min-width: 1025px) and (pointer: fine) { .cs-show-row.mproto + .cs-proto-cta { display: flex; } }
.cs-proto-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 4px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: #fff; background: var(--red); text-decoration: none; box-shadow: 0 5px 0 rgba(0,0,0,.18);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease); }
.cs-proto-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 rgba(0,0,0,.18); }
.cs-proto-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.cs-proto-btn span { font-size: 10px; }
@media (max-width: 768px) { .cs-show__nav { display: none; } }   /* mobile navigates via thumbnails */

/* ---- per-project dark hero band (echoes a dark brand; scoped to body.cs-dark) ---- */
.cs-herowrap { position: relative; }
body.cs-dark .cs-herowrap {
  background:
    radial-gradient(120% 95% at 84% -12%, rgba(0,119,255,0.32), transparent 56%),
    linear-gradient(180deg, #0B1428 0%, #0A101F 100%);
  padding-bottom: clamp(40px,6vh,68px);
}
body.cs-dark .cs-herowrap .cs-bigvis { margin-bottom: 0; border-color: rgba(255,255,255,0.14); }
body.cs-dark .cs-title { color: #F3F6FF; }
body.cs-dark .cs-summary { color: #C4CFE6; }
body.cs-dark .cs-meta { border-top-color: rgba(255,255,255,0.16); }
body.cs-dark .cs-meta dt { color: #8DA0C4; }
body.cs-dark .cs-meta dd { color: #EAF0FB; }
/* back button lifted off the navy */
body.cs-dark .cs-back { background: #1A2C4E; border: 1px solid rgba(255,255,255,0.09); box-shadow: 0 5px 0 #070F1E, 0 10px 18px rgba(0,0,0,0.5); }
body.cs-dark .cs-back:hover { background: #233a64; }
body.cs-dark .cs-back:active { box-shadow: 0 0 0 #070F1E, 0 2px 4px rgba(0,0,0,0.5); }
/* hero media placeholder on dark */
body.cs-dark .cs-herowrap .cs-media__frame { background: #0E1A33; }
body.cs-dark .cs-herowrap .cs-media__ph { background-image: radial-gradient(rgba(255,255,255,0.07) 0.5px, transparent 0.5px); }
body.cs-dark .cs-herowrap .cs-media__phcap { color: #9DB0D4; }

/* ---- full-page dark study (cs-darkpage): flip the palette, then patch the few hard-coded spots ---- */
body.cs-darkpage {
  --paper:   #08090F;     /* bluish dark black */
  --paper-2: #13141C;     /* cards / secondary surfaces */
  --ink:     #EAEFFB;     /* primary text */
  --muted:   #8C9CBC;     /* muted text */
  --hair:    rgba(255,255,255,0.12);
  --red:     #5B9DFF;     /* brighter, more vibrant blue for the dark bg */
}
body.cs-darkpage::before { mix-blend-mode: normal; opacity: .4; }   /* faint light grain on dark */
body.cs-darkpage .cs-thumb { background: #13141C; }                 /* slideshow thumbnails */
body.cs-darkpage .cs-metric { background: #0F1017; }                /* lift metric cards off the page */

.cs-block { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(24px,3vw,48px); padding: clamp(40px,7vh,80px) 0; }
/* label is a full-width row so its underline runs the full length (like PROCESS); body keeps its indented column */
.cs-block__label { grid-column: 1 / -1; padding-bottom: 18px; margin-bottom: clamp(24px,3.2vh,38px); border-bottom: 1px solid var(--hair); }
.cs-block__body { grid-column: 5 / span 8; }
.cs-block__body p { font-size: clamp(18px, 1.9vw, 24px); line-height: 1.45; letter-spacing: -0.015em; }
.cs-block__body p + p { margin-top: 1em; }
.cs-block__body .hl { color: var(--red); }
.cs-steps { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 0; }
.cs-steps { gap: clamp(22px,2.8vh,34px); }
.cs-steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: baseline; }
.cs-steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cs-steps strong { font-weight: 500; font-size: clamp(17px,1.7vw,21px); letter-spacing: -0.01em; display: block; }
.cs-steps span { color: var(--muted); font-size: 15px; }

.cs-metrics-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: clamp(40px,7vh,80px) 0 16px; }
.cs-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); margin: clamp(40px,7vh,80px) 0; }
.cs-metric { background: var(--paper); padding: clamp(28px,3vw,44px); }
.cs-metric .num { font-family: var(--mono); font-size: clamp(34px, 5vw, 72px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.cs-metric .num em { font-style: normal; color: var(--red); }
.cs-metric .lab { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 12px; }

.cs-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px,2vw,28px); margin: clamp(20px,4vh,40px) 0; }
.cs-gallery .tile { aspect-ratio: 4/3; border-radius: 2px; overflow: hidden; border: 1px solid var(--hair); }

/* hero eyebrow (project headline above the title) */
.cs-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); margin-bottom: 16px; }

/* problem facets — named pieces of the problem, sit under the lead line */
.cs-facets { display: flex; flex-direction: column; gap: clamp(28px,3.6vh,44px); margin-top: clamp(28px,3.5vh,44px); }
/* tiny source line under the facts */
.cs-srcnote { margin-top: clamp(22px,3vh,34px); font-size: 11px !important; line-height: 1.6 !important; letter-spacing: .02em; color: var(--muted); }
.cs-facet { display: flex; flex-direction: column; gap: 8px; }
/* a facet with an evidence screenshot on the left */
.cs-facet--img { flex-direction: row; align-items: flex-start; gap: clamp(16px,2.4vw,32px); }
.cs-facet--img .cs-facet__pic { flex: none; width: clamp(120px,24%,180px); height: auto; border-radius: 8px; border: 1px solid var(--hair); display: block; }
.cs-facet--img .cs-facet__txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-top: 2px; }
@media (max-width: 600px) {
  .cs-facet--img { flex-direction: column; }
  .cs-facet--img .cs-facet__pic { width: min(200px,60%); }
}
.cs-facet .mono { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.cs-facet strong { font-weight: 500; font-size: clamp(19px,1.9vw,24px); letter-spacing: -0.015em; line-height: 1.2; }
.cs-facet p { font-size: 16px !important; line-height: 1.55 !important; color: var(--muted); letter-spacing: 0 !important; max-width: 60ch; }

/* constraints — the hard rules of the brief */
.cs-constraints { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px,2.4vw,36px); }
.cs-constraint { padding: 22px; border: 1px solid var(--hair); border-radius: 2px; background: var(--paper-2); display: flex; flex-direction: column; gap: 8px; }
.cs-constraint strong { font-weight: 500; font-size: clamp(16px,1.5vw,19px); letter-spacing: -0.01em; }
.cs-constraint p { font-size: 15px !important; line-height: 1.5 !important; color: var(--muted); letter-spacing: 0 !important; }

/* origin-story callout — a highlighted "rejected attempt" / aside box */
.cs-callout { margin-top: clamp(26px,3.4vh,40px); padding: clamp(20px,2.6vw,30px); border-left: 3px solid var(--red); background: var(--paper-2); border-radius: 2px; }
.cs-callout__label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); margin-bottom: 10px; }
.cs-callout strong { display: block; font-weight: 500; font-size: clamp(17px,1.7vw,21px); letter-spacing: -0.01em; margin-bottom: 8px; }
.cs-callout p { font-size: 16px !important; line-height: 1.55 !important; color: var(--muted); letter-spacing: 0 !important; }

/* persona card — research subject */
.cs-persona { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px,2.4vw,28px); align-items: start; }
.cs-persona__avatar { width: clamp(64px,7vw,88px); height: clamp(64px,7vw,88px); border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: clamp(28px,3.4vw,42px); font-weight: 600; }
.cs-persona__body { display: flex; flex-direction: column; gap: 6px; }
.cs-persona__body strong { font-size: clamp(22px,2.6vw,32px); font-weight: 500; letter-spacing: -0.025em; line-height: 1; }
.cs-persona__body .mono { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.cs-persona__body p { font-size: 16px !important; line-height: 1.55 !important; color: var(--muted); letter-spacing: 0 !important; margin-top: 6px; }

/* pull quote — stakeholder testimonial */
.cs-quote { margin: clamp(40px,7vh,80px) 0; border-top: 1px solid var(--hair); padding-top: clamp(32px,4.5vh,56px); }
.cs-quote blockquote { font-size: clamp(24px,3.4vw,46px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.18; max-width: 22ch; }
.cs-quote blockquote::before { content: "“"; color: var(--red); }
.cs-quote blockquote::after { content: "”"; color: var(--red); }
.cs-quote figcaption { margin-top: 20px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* simple auto-advancing slideshow inside a media frame */
.cs-ss { position: absolute; inset: 0; }
.cs-media__frame:has(.cs-ss) { border: 0; box-shadow: none; background: transparent; }   /* clean edges around slideshow images */
.cs-ss__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); z-index: 0; }
.cs-ss__img.is-on { opacity: 1; z-index: 2; }
.cs-ss__img.was-on { opacity: 1; z-index: 1; transition: none; }   /* same layered crossfade as .cs-slide */
.cs-ss__dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.cs-ss__dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(28,36,48,.22); transition: background .2s var(--ease), transform .2s var(--ease); }
.cs-ss__dot.is-on { background: var(--red); transform: scale(1.3); }

/* solutions — the approach, each tied to a result */
.cs-solutions { list-style: none; display: flex; flex-direction: column; }
/* one consistent stacked rhythm on every size: category → title → copy → result → media */
.cs-solution { padding: clamp(30px,3.6vh,46px) 0; border-bottom: 1px solid var(--hair); }
.cs-solution__cat { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); margin-bottom: 16px; }
.cs-solution strong { display: block; font-weight: 500; font-size: clamp(19px,1.9vw,24px); letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 14px; }
.cs-solution p { font-size: 16px !important; line-height: 1.55 !important; color: var(--muted); letter-spacing: 0 !important; max-width: 60ch; }
.cs-result { font-family: var(--mono); font-size: 12px; color: var(--muted); display: inline-flex; align-items: baseline; gap: 9px; margin-top: 24px; }
.cs-result em { font-family: var(--mono); font-style: normal; font-size: clamp(28px, 2.8vw, 38px); line-height: 1; color: var(--red); font-weight: 600; letter-spacing: -0.02em; }

/* ---- media slots (swappable image / video, with placeholder until assets land) ---- */
.cs-media { margin: clamp(22px,2.8vh,30px) 0 0; }
.cs-media__frame {
  position: relative; aspect-ratio: var(--ar, 16/9); border-radius: 2px; overflow: hidden;
  border: 0; background: var(--paper-2);
}
.cs-media__frame > img, .cs-media__frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-media__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 16px;
  background-image: radial-gradient(var(--hair) 0.5px, transparent 0.5px); background-size: 7px 7px;
}
.cs-media__tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--red); border: 1px solid var(--red); border-radius: 999px; padding: 4px 11px; }
.cs-media__phcap { font-size: 13px; color: var(--muted); max-width: 32ch; line-height: 1.4; }
.cs-figcap { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 10px; }
/* linked media tile (e.g. opens a Figma file) */
.cs-media__link { display: block; }
.cs-media.is-link .cs-media__frame { transition: border-color .2s var(--ease), transform .2s var(--ease); }
.cs-media.is-link:hover .cs-media__frame { border-color: var(--red); transform: translateY(-2px); }
.cs-media.is-link:hover .cs-figcap { color: var(--red); }
.cs-media__open {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 6px);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; background: var(--red);
  padding: 6px 12px; border-radius: 4px; opacity: 0; transition: opacity .2s var(--ease), transform .2s var(--ease); pointer-events: none;
}
.cs-media.is-link:hover .cs-media__open { opacity: 1; transform: translate(-50%, 0); }

/* process — captioned grid of design artefacts */
.cs-process-wrap { margin: clamp(40px,7vh,80px) 0; }
.cs-process-head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--hair); margin-bottom: clamp(20px,3vh,32px); }
.cs-media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(16px,2vw,28px); }
.cs-media-grid .cs-media { margin: 0; }

/* process as a clean list — the artefact image floats beside the cursor only on hover */
.cs-proc-list { display: flex; flex-direction: column; }
.cs-proc__item { display: flex; align-items: baseline; gap: 16px; padding: clamp(15px,2.1vh,24px) 4px; border-bottom: 1px solid var(--hair);
  text-decoration: none; transition: padding-left .28s var(--ease); }
.cs-proc__item:last-child { border-bottom: 0; }
.cs-proc__num { flex: none; font-size: 12px; color: var(--muted); transition: color .2s var(--ease); }
.cs-proc__label { font-family: var(--display); font-weight: 600; font-size: clamp(20px,2.5vw,30px); letter-spacing: -.01em; line-height: 1.05; color: var(--ink); transition: color .2s var(--ease); }
.cs-proc__src { margin-left: auto; align-self: center; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--red); opacity: 0; transition: opacity .2s var(--ease); }
.cs-proc__item:hover { padding-left: 16px; }
.cs-proc__item:hover .cs-proc__num, .cs-proc__item:hover .cs-proc__label { color: var(--red); }
.cs-proc__item:hover .cs-proc__src { opacity: 1; }
.cs-proc-peek { position: fixed; top: 0; left: 0; z-index: 60; width: clamp(240px,26vw,380px); aspect-ratio: 16/10; pointer-events: none;
  border-radius: 4px; overflow: hidden; border: 1px solid var(--hair); box-shadow: 0 30px 60px -22px rgba(12,18,34,.55);
  opacity: 0; transform: scale(.96); transition: opacity .18s var(--ease), transform .18s var(--ease); }
.cs-proc-peek.is-on { opacity: 1; transform: scale(1); }
.cs-proc-peek img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
@media (hover: none), (max-width: 720px) { .cs-proc-peek { display: none; } }

/* prev / next project pager — two dark buttons (match the back-to-studio button) */
.cs-pagenav-row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: clamp(40px,8vh,90px); padding-bottom: clamp(40px,8vh,90px); flex-wrap: wrap; }
/* line inset by the wrap padding so it matches the footer rule's length (not the full padded width) */
.cs-pagenav-row::before { content: ''; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: var(--hair); }
.cs-pagenav {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: clamp(17px, 1.8vw, 22px); font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); transition: color .2s var(--ease);
}
.cs-pagenav:hover { color: var(--red); }
.cs-pagenav__arrow { display: inline-block; transition: transform .2s var(--ease); }
#csNext:hover .cs-pagenav__arrow { transform: translateX(4px); }
#csPrev:hover .cs-pagenav__arrow { transform: translateX(-4px); }

@media (max-width: 860px) {
  .cs-meta { grid-template-columns: repeat(2, 1fr); }
  .cs-block__body { grid-column: 1 / -1; }
  .cs-metrics { grid-template-columns: 1fr; }
  .cs-gallery { grid-template-columns: 1fr; }
  .cs-facets { grid-template-columns: 1fr; }
  .cs-constraints { grid-template-columns: 1fr; }
  .cs-persona { grid-template-columns: 1fr; }
}

/* ---------- generated project art (swap for real screenshots) ---------- */
.art { width: 100%; height: 100%; }
.art-a {
  background:
    repeating-linear-gradient(90deg, #1C2430 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, #1C2430 0 1px, transparent 1px 40px),
    linear-gradient(135deg, #EAEEF3, #D3DAE3);
  background-blend-mode: normal;
  position: relative;
}
.art-a::after {
  content: ""; position: absolute; left: 12%; top: 22%; width: 34%; height: 56%;
  background: var(--red); mix-blend-mode: multiply;
}
.art-b {
  background:
    radial-gradient(120% 90% at 30% 10%, #7E93C4 0%, transparent 45%),
    radial-gradient(100% 100% at 90% 90%, #1C2430 0%, transparent 55%),
    linear-gradient(160deg, #F2F5F8, #DFE5EC);
}
.art-c {
  background:
    conic-gradient(from 200deg at 70% 40%, #1C2430, #7E93C4, #1C2430),
    linear-gradient(0deg, #EAEEF3, #EAEEF3);
  filter: saturate(1.05);
}
/* Ctruh Brand Refresh — identity / logo-grid motif */
.art-d {
  background:
    radial-gradient(circle at 50% 50%, #1C2430 0 14%, transparent 14.5%),
    repeating-linear-gradient(45deg, #1C2430 0 1px, transparent 1px 34px),
    repeating-linear-gradient(-45deg, #7E93C4 0 1px, transparent 1px 34px),
    linear-gradient(135deg, #EDF0F4, #D8DEE6);
  position: relative;
}
/* KhaoToh — its brand green, soft food-app vibe */
.art-e {
  background:
    radial-gradient(80% 70% at 78% 20%, #DBF5AF 0%, transparent 50%),
    radial-gradient(70% 70% at 20% 85%, #6D922C 0%, transparent 55%),
    linear-gradient(150deg, #E8F0D6, #F7F7F7);
}

/* preview-box variants reuse the same classes */
.work-preview .art-a, .work-preview .art-b, .work-preview .art-c,
.work-preview .art-d, .work-preview .art-e { background-size: cover; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav__center { display: none; }
  .work-row { grid-template-columns: 40px 1fr; }
  .work-row__tags, .work-row__yr { display: none; }
  .card { grid-column: span 12 !important; }
  .about-lead { grid-column: 1 / -1; }
  .about-side { grid-column: 1 / -1; }
  .work-preview { display: none; }
}

/* Live-app CTA that shows on EVERY viewport (KhaoToh) — not just desktop */
.cs-proto-cta--always { display: flex !important; }

/* Decisions cards can carry a screen (KhaoToh) */
.cs-constraint__img { width: 100%; border-radius: 2px; display: block; margin-bottom: 8px; }

/* Small side arrows on body slideshows — swipe works too, arrows make it obvious */
.cs-ssnav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center;
  font-size: 18px; line-height: 1; color: #fff; background: rgba(27,39,64,.82); cursor: pointer;
  transition: background .2s var(--ease); }
.cs-ssnav:hover { background: #24355A; }
.cs-ssnav--prev { left: 10px; } .cs-ssnav--next { right: 10px; }
