/* ============================================================= */
/*  CASE STUDY DESIGN SYSTEM                                      */
/*  Loads AFTER styles.css (uses the same :root theme tokens).    */
/*  Reusable blocks — each case study arranges them differently.  */
/* ============================================================= */

.cs { background: var(--bg); color: var(--text); }

/* ===================== LIGHT THEME (inner pages) ============= */
.theme-light {
  --bg:        #f8f6f3;
  --bg-alt:    #f1ede8;
  --surface:   #ffffff;
  --surface-2: #f1ede8;
  --border:    rgba(28,20,14,.12);
  --text:      #161310;
  --muted:     #6b635c;
  --accent:    #c2410c;
  --accent-lt: #9a3412;
  --accent-dk: #7c2d12;
  --ink:       #ffffff;
  --glow:      rgba(194,65,12,.28);
  --glow-soft: rgba(194,65,12,.10);
}
.theme-light.cs, body.theme-light { background: var(--bg); }

/* dark band inside a light page (alternating sections) */
.cs-dark {
  --bg: #0a0908; --bg-alt: #100d0a; --surface: #17130f; --surface-2: #201b15;
  --border: rgba(255,255,255,.09); --text: #efece8; --muted: #9b9189;
  --accent: #d97757; --accent-rgb: 217,119,87; --accent-lt: #e8a890; --accent-dk: #c15f3c; --ink: #2a1206;
  --glow: rgba(var(--accent-rgb),.4); --glow-soft: rgba(var(--accent-rgb),.12);
  background: var(--bg); color: var(--text); position: relative; overflow: hidden;
}
.cs-dark .cs-hero__grid, .cs-dark .cs-cap__grid-bg {
  background-image:
    linear-gradient(to right, rgba(var(--accent-rgb),.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--accent-rgb),.07) 1px, transparent 1px);
}
body.theme-light::before { display: none; }          /* drop the dark-theme ambient glow */
.theme-light .cs-nav { background: rgba(247,249,247,.82); }
.theme-light .cs-hero__grid {
  background-image:
    linear-gradient(to right, rgba(194,65,12,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(194,65,12,.06) 1px, transparent 1px);
}
.theme-light .cs-lead { color: #52473f; }
.theme-light .cs-cta p, .theme-light .cs-figure__cap { color: var(--muted); }
.theme-light .work__view,
.theme-light .cs-nav__cta,
.theme-light .btn--primary,
.theme-light .quote__avatar,
.theme-light .cs-quote__av { color: #fff; }
.theme-light .cs-cover .cs-ph, .theme-light .cs-ph-box,
.theme-light .cs-cover, .theme-light .cs-figure,
.theme-light .cs-split__media, .theme-light .cs-tile { background: var(--surface-2); }
.cs-wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 22px; }
.cs-narrow { max-width: 760px; }

/* ----------------------------- NAV ---------------------------- */
.cs-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: 70px;
  display: flex; align-items: center; backdrop-filter: blur(14px);
  background: rgba(8,9,10,.6); border-bottom: 1px solid var(--border);
}
.cs-nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.cs-back { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; font-size: .94rem; transition: gap .25s var(--ease), color .25s; }
.cs-back:hover { gap: 14px; color: var(--accent); }
/* floating back link (no header bar) — like the main page top-left nav */
.cs-back--float { position: absolute; top: 26px; left: clamp(20px, 4vw, 44px); z-index: 30; }
@media (max-width: 600px) {
  .cs-back--float { top: 16px; }
  .cs-back { font-size: .88rem; }
  .cs-live { padding: 10px 18px; font-size: .9rem; }
  .cs-info__l { font-size: .98rem; }
  .cs-eyebrow { font-size: .72rem; padding: 6px 13px; }
}
.cs-nav__logo { font-family: 'Schibsted Grotesk'; font-weight: 700; font-size: 1.25rem; }
.cs-nav__logo span { color: var(--accent); }
.cs-nav__cta { color: var(--ink); background: var(--accent); padding: 9px 18px; border-radius: 100px; font-weight: 700; font-size: .86rem; transition: background .3s; }
.cs-nav__cta:hover { background: var(--accent-dk); }

/* ----------------------------- HERO --------------------------- */
.cs-hero { position: relative; padding: 130px 0 60px; overflow: hidden; }

/* split hero: text left, project-details card on the right */
.cs-hero--split { padding: 128px 0 64px; }
.cs-hero--split .cs-hero__inner { position: relative; z-index: 2; display: grid;
  grid-template-columns: 0.95fr 1.05fr; gap: clamp(30px, 4vw, 60px); align-items: start; }
.cs-hero--split .cs-hero__text { max-width: 560px; }

/* centered (product-launch) hero — used by conversion-style case studies */
.cs-hero--center { padding: clamp(116px, 13vw, 158px) 0 clamp(46px, 6vw, 84px); text-align: center; }
.cs-hero__center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cs-title--center { max-width: 18ch; margin-inline: auto; }
.cs-lead--center { max-width: 60ch; margin-inline: auto; }

/* lead hero — big title + meta (hallwil-style), no device in hero */
.cs-hero--lead { padding: clamp(114px, 13vw, 156px) 0 clamp(38px, 5vw, 62px); }
.cs-title--xl { font-size: clamp(1.8rem, 6.6vw, 5rem); max-width: 19ch; }
.cs-hero--lead .cs-lead { max-width: 62ch; }
.cs-hero--lead .cs-metastrip { margin-top: clamp(40px, 5vw, 60px); }

/* device showband — central phone + floating feature pills */
.cs-showband { position: relative; overflow: hidden; padding: clamp(40px, 5vw, 70px) 0 clamp(58px, 8vw, 100px);
  background: radial-gradient(58% 74% at 50% 30%, rgba(var(--accent-rgb),.15), transparent 72%), var(--bg-alt); }
.cs-showband__stage { position: relative; max-width: 880px; min-height: 560px; margin: 0 auto; display: grid; place-items: center; }
.cs-phone--hero { width: clamp(232px, 26vw, 292px); cursor: pointer; font: inherit; position: relative; z-index: 2;
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 60px 110px -34px rgba(0,0,0,.82); transition: transform .5s var(--ease); }
.cs-phone--hero:hover { transform: translateY(-8px); }
.cs-phone__play { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); white-space: nowrap; z-index: 4;
  padding: 10px 20px; border-radius: 100px; font-weight: 700; font-size: .84rem; color: var(--ink); background: var(--accent);
  box-shadow: 0 16px 34px -10px var(--glow); opacity: 0; transition: opacity .35s, transform .35s var(--ease); pointer-events: none; }
.cs-phone--hero:hover .cs-phone__play { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.cs-pill { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 11px 18px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .9rem; white-space: nowrap;
  box-shadow: 0 20px 44px -22px rgba(0,0,0,.7); animation: csFloat 6s ease-in-out infinite; }
.cs-pill--1 { top: 7%; left: 1%; }
.cs-pill--2 { top: 31%; left: 7%; animation-duration: 5.4s; animation-delay: .5s; }
.cs-pill--3 { bottom: 15%; left: 0; animation-duration: 6.8s; animation-delay: .9s; }
.cs-pill--4 { top: 11%; right: 1%; animation-duration: 6.2s; animation-delay: .3s; }
.cs-pill--5 { top: 37%; right: 7%; animation-duration: 5.6s; animation-delay: .7s; }
.cs-pill--6 { bottom: 13%; right: 0; animation-duration: 7s; animation-delay: 1.1s; }
.cs-showband__confetti { position: absolute; width: 17px; height: 7px; border-radius: 100px; background: var(--accent); opacity: .55; }
.cs-showband__confetti.c1 { top: 18%; left: 29%; rotate: 40deg; }
.cs-showband__confetti.c2 { top: 25%; right: 27%; rotate: -30deg; background: var(--accent-lt); }
.cs-showband__confetti.c3 { bottom: 23%; left: 33%; rotate: -50deg; background: var(--accent-lt); }
.cs-showband__confetti.c4 { bottom: 29%; right: 31%; rotate: 25deg; }
.cs-showband__confetti.c5 { top: 50%; left: 13%; rotate: 60deg; background: var(--accent-lt); }
@media (max-width: 720px) {
  .cs-showband__stage { min-height: 470px; }
  .cs-pill--2, .cs-pill--5 { display: none; }
  .cs-pill { font-size: .8rem; padding: 9px 14px; }
}
@media (max-width: 460px) { .cs-pill--1, .cs-pill--3, .cs-pill--4, .cs-pill--6, .cs-showband__confetti { display: none; } }

/* laptop hero (agency-style) */
.cs-hero--laptop { position: relative; padding: clamp(84px, 9vh, 116px) 0 clamp(54px, 7vw, 92px); text-align: center; overflow: hidden; }
.cs-hero--laptop .cs-hero__center { position: relative; z-index: 2; min-height: 54vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cs-hero__below { position: relative; z-index: 2; max-width: 720px; margin: clamp(40px, 6vw, 72px) auto 0; }
.cs-hero__below .cs-lead--center { margin-inline: auto; }
.cs-hero--laptop .cs-title--center { max-width: 19ch; }
.cs-hero__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.cs-hero__watch { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 100px; cursor: pointer;
  background: transparent; border: 1px solid var(--border); color: var(--text); font: 700 .95rem 'Hanken Grotesk', sans-serif; transition: border-color .3s, background .3s; }
.cs-hero__watch:hover { border-color: rgba(var(--accent-rgb),.5); background: var(--glow-soft); }
.cs-hero__proof { margin-top: 22px; color: var(--muted); font-size: .9rem; }
.cs-hero__proof b { color: #f5b945; }
/* laptop stage — peeks from the bottom of the hero */
.cs-hero__stage { position: relative; z-index: 2; margin-top: clamp(16px, 2vh, 34px); }
.cs-laptop { display: block; width: 100%; max-width: 940px; margin: 0 auto; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }

/* agency hero decoration */
.cs-deco2 { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.cs-deco2__glow { position: absolute; top: 26%; left: 50%; transform: translate(-50%, -50%); width: 70vw; max-width: 860px; height: 470px;
  background: radial-gradient(closest-side, var(--glow), transparent 72%); filter: blur(38px); opacity: .55; }
.cs-deco2__glow--btm { top: auto; bottom: -8%; transform: translateX(-50%); height: 360px; opacity: .42; }
.cs-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 17px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .88rem; white-space: nowrap;
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.7); animation: csFloat 6s ease-in-out infinite; }
.cs-chip i { font-size: 1.05rem; }
.cs-chip--1 { top: 19%; left: 5%; rotate: -3deg; }
.cs-chip--2 { top: 32%; right: 5%; rotate: 3deg; animation-delay: .6s; animation-duration: 6.6s; }
.cs-chip--3 { top: 49%; left: 8%; rotate: 2deg; animation-delay: .3s; animation-duration: 5.6s; }
.cs-chip--4 { top: 43%; right: 8%; rotate: -2deg; animation-delay: .9s; animation-duration: 7s; }
.cs-deco2__spark { position: absolute; color: var(--accent-lt); opacity: .5; animation: csTwinkle 3s ease-in-out infinite; }
.cs-deco2__spark.s1 { top: 27%; left: 22%; font-size: 1.1rem; }
.cs-deco2__spark.s2 { top: 23%; right: 19%; font-size: 1.3rem; animation-delay: .7s; }
.cs-deco2__spark.s3 { top: 55%; right: 25%; font-size: 1rem; animation-delay: 1.1s; }
@media (max-width: 900px) { .cs-chip, .cs-deco2__spark { display: none; } .cs-hero--laptop .cs-hero__center { min-height: 46vh; } }
.cs-laptop__lid { position: relative; display: block; border-radius: 16px 16px 0 0; padding: 12px 12px 0;
  background: linear-gradient(180deg, #2b2b2e, #161617); border: 1px solid rgba(255,255,255,.13); border-bottom: 0;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.85); transition: transform .5s var(--ease); }
.cs-laptop:hover .cs-laptop__lid { transform: translateY(-5px); }
.cs-laptop__cam { position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; border-radius: 50%; background: #3a3a3d; }
.cs-laptop__screen { position: relative; display: block; aspect-ratio: 16/10; border-radius: 5px 5px 0 0; overflow: hidden; background: #fff; }
.cs-laptop__screen img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.cs-laptop:hover .cs-laptop__screen img { transform: translateY(-66%); transition: transform 24s linear; }
.cs-laptop__overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 26px;
  background: linear-gradient(to top, rgba(8,9,10,.55), transparent 42%); opacity: 0; transition: opacity .4s; }
.cs-laptop:hover .cs-laptop__overlay { opacity: 1; }
.cs-laptop__cta { padding: 11px 22px; border-radius: 100px; font-weight: 700; font-size: .92rem; color: #fff; background: rgba(var(--accent-rgb),.95); box-shadow: 0 12px 30px -8px var(--glow); }
.cs-laptop__base { position: relative; display: block; height: 16px; width: 116%; margin-left: -8%; border-radius: 2px 2px 13px 13px;
  background: linear-gradient(180deg, #45454a 0%, #232325 50%, #2e2e31 100%); box-shadow: 0 34px 52px -22px rgba(0,0,0,.7); }
.cs-laptop__base::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 13%; height: 8px; border-radius: 0 0 9px 9px; background: #18181a; }
.cs-laptop__hint { display: block; margin-top: 26px; color: var(--muted); font-size: .88rem; }

/* process timeline */
.cs-proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(22px, 3vw, 40px); margin-top: clamp(40px, 5vw, 58px); }
.cs-proc { position: relative; text-align: left; padding-top: 22px; border-top: 1px solid var(--border); }
.cs-proc__n { display: block; margin: 0 0 14px; font-family: 'Schibsted Grotesk'; font-weight: 800; font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1; letter-spacing: -.02em; color: var(--accent); }
.cs-proc h4 { font-size: 1.18rem; margin-bottom: 8px; }
.cs-proc p { color: var(--muted); font-size: .95rem; line-height: 1.55; }
@media (max-width: 760px) { .cs-proc-grid { grid-template-columns: 1fr 1fr; gap: 34px 18px; } .cs-proc-grid::before { display: none; } }
@media (max-width: 440px) { .cs-proc-grid { grid-template-columns: 1fr; } }

/* challenges (text + screenshots) */
.cs-chal-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(34px, 5vw, 74px); align-items: center; }
.cs-chal-text .cs-text { margin-top: 18px; }
.cs-chal-list { list-style: none; display: grid; gap: 13px; margin-top: 22px; }
.cs-chal-list li { position: relative; padding-left: 26px; color: var(--text); font-size: 1.02rem; line-height: 1.5; }
.cs-chal-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cs-chal-shots { display: grid; gap: 16px; }
.cs-chal-shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); aspect-ratio: 16/9.6;
  box-shadow: 0 36px 72px -42px rgba(0,0,0,.62); transition: transform .4s var(--ease), box-shadow .4s; }
.cs-chal-shot:hover { transform: translateY(-5px); box-shadow: 0 46px 84px -42px rgba(0,0,0,.7); }
.cs-chal-shot img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .cs-chal-split { grid-template-columns: 1fr; gap: 32px; } }

/* challenge cards — numbered grid */
.cs-chalcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 1.8vw, 22px); margin-top: clamp(40px, 5vw, 62px); }
.cs-chalcard { position: relative; padding: clamp(30px, 3.2vw, 44px); border-radius: 20px; border: 1px solid var(--border); background: var(--surface); overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s, background .45s; }
.cs-chalcard:hover { transform: translateY(-6px); border-color: rgba(var(--accent-rgb),.45); background: var(--surface-2); }
.cs-chalcard::before { content: attr(data-n); position: absolute; top: 8px; right: 22px; font-family: 'Schibsted Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(3.6rem, 6vw, 5.4rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(var(--accent-rgb),.22); pointer-events: none; }
.cs-chalcard__ic { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
  background: var(--glow-soft); border: 1px solid rgba(var(--accent-rgb),.3); font-size: 1.4rem; margin-bottom: 20px; }
.cs-chalcard h4 { position: relative; margin: 0 0 10px; font-size: 1.2rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.cs-chalcard p { position: relative; margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.6; max-width: 40ch; }
@media (max-width: 760px) { .cs-chalcards { grid-template-columns: 1fr; } }

/* info hero (big title + meta) */
.cs-hero--info { position: relative; padding: clamp(110px, 13vh, 162px) 0 clamp(210px, 28vh, 380px); overflow: hidden; }
.cs-hero--info::before { content: ""; position: absolute; top: 8%; left: 0; width: 56vw; max-width: 720px; height: 480px; z-index: 0;
  pointer-events: none; background: radial-gradient(closest-side, rgba(var(--accent-rgb),.18), transparent 70%); filter: blur(46px); }
.cs-hero__cols { position: relative; z-index: 2; display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(34px, 5vw, 80px); align-items: start; }
.cs-title--huge { font-family: 'Schibsted Grotesk'; font-weight: 600; letter-spacing: -.03em; line-height: .96; font-size: clamp(1.95rem, 7.4vw, 5.6rem); margin: 20px 0 0; max-width: 13ch; }
.cs-title--huge em { font-style: normal; color: var(--accent); }
.cs-hero__main .cs-lead { max-width: 48ch; margin-top: 24px; }
.cs-hero__main .cs-live { margin-top: 26px; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cs-tags span { padding: 8px 16px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.cs-hero__info { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 44px) 20px; padding-top: 12px; }
.cs-info__l { display: block; font-size: 1.06rem; font-weight: 600; color: var(--text); margin-bottom: 9px; }
.cs-hero__info > div strong { display: block; font-weight: 400; font-size: .98rem; color: var(--muted); }
.cs-info__link { display: inline-block; color: var(--accent); font-size: .96rem; font-weight: 500; word-break: break-word; transition: color .3s; }
.cs-info__link:hover { color: var(--accent-lt); }
@media (max-width: 860px) { .cs-hero__cols { grid-template-columns: 1fr; gap: 38px; } .cs-hero__info { max-width: 440px; } }

/* showcase panel — desktop + mobile screenshots; only the PANEL climbs onto the hero */
.cs-section--showcase { position: relative; z-index: 3; padding-top: clamp(26px, 3vw, 46px); }
.cs-showpanel { position: relative; z-index: 4; margin: calc(-1 * clamp(265px, 30vh, 400px)) auto 0; max-width: 1240px;
  background: #16110c; border: 1px solid rgba(255,255,255,.08); border-radius: 26px; padding: clamp(22px, 2.4vw, 40px);
  display: grid; grid-template-columns: 1fr auto; gap: clamp(16px, 1.8vw, 30px); align-items: center; overflow: hidden;
  box-shadow: 0 50px 100px -44px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.02); }
.cs-bw { border-radius: 14px; overflow: hidden; background: #221a12; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 44px 84px -42px rgba(0,0,0,.8); }
.cs-bw__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(255,255,255,.07); position: relative; }
.cs-bw__bar i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.cs-bw__bar i:nth-child(1) { background: #ff5f57; }
.cs-bw__bar i:nth-child(2) { background: #febc2e; }
.cs-bw__bar i:nth-child(3) { background: #28c840; }
.cs-bw__url { position: absolute; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; color: rgba(255,255,255,.6); background: rgba(255,255,255,.1); padding: 5px 18px; border-radius: 100px; white-space: nowrap; }
.cs-bw__url::before { content: "🔒"; font-size: .68rem; }
.cs-bw__view { position: relative; overflow: hidden; background: #fff; height: clamp(420px, 42vw, 560px); }
.cs-bw__view img { width: 100%; height: auto; display: block; }
.cs-bw--mobile { width: clamp(244px, 21vw, 282px); margin-inline: auto; border-radius: 22px; }
.cs-bw--mobile .cs-bw__bar { justify-content: center; }
.cs-bw--mobile .cs-bw__bar i { display: none; }
.cs-bw--mobile .cs-bw__url { position: static; transform: none; }
@media (max-width: 760px) { .cs-showpanel { grid-template-columns: 1fr; justify-items: center; gap: 26px; } .cs-bw { width: 100%; } .cs-bw__view { height: auto; } .cs-bw--mobile { max-width: 264px; } }
/* centered browser showcase → opens the live auto-scroll preview */
.cs-showcase { display: block; width: 100%; max-width: 1000px; margin: clamp(40px, 5vw, 66px) auto 0; padding: 0; cursor: pointer; font: inherit;
  border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: #fff;
  box-shadow: 0 60px 120px -46px rgba(0,0,0,.8); transition: transform .45s var(--ease), box-shadow .45s; }
.cs-showcase:hover { transform: translateY(-6px); box-shadow: 0 76px 140px -44px rgba(0,0,0,.85); }
.cs-showcase__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: #ece6dd; }
.cs-showcase__bar i { width: 12px; height: 12px; border-radius: 50%; background: #cdbdab; flex: none; }
.cs-showcase__bar i:nth-child(1) { background: #e6857a; } .cs-showcase__bar i:nth-child(2) { background: #e8c07a; } .cs-showcase__bar i:nth-child(3) { background: #8fc99a; }
.cs-showcase__url { margin-left: 8px; font-size: .78rem; color: #7a6f64; background: #fff; padding: 4px 14px; border-radius: 100px; }
.cs-showcase__live { margin-left: auto; font-size: .76rem; font-weight: 700; color: #c2410c; }
.cs-showcase__view { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: #fff; }
.cs-showcase__view img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.cs-showcase:hover .cs-showcase__view img { transform: translateY(-74%); transition: transform 22s linear; }
.cs-showcase__overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 24px;
  background: linear-gradient(to top, rgba(8,9,10,.6), transparent 42%); opacity: 0; transition: opacity .4s; }
.cs-showcase:hover .cs-showcase__overlay { opacity: 1; }
.cs-showcase__cta { padding: 11px 22px; border-radius: 100px; font-weight: 700; font-size: .92rem; color: #fff; background: rgba(var(--accent-rgb),.95); box-shadow: 0 12px 30px -8px var(--glow); }

/* funnel stage label + heading */
.cs-fstep { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-lt);
  padding: 6px 14px; border-radius: 100px; background: var(--glow-soft); border: 1px solid rgba(var(--accent-rgb),.3); margin-bottom: 16px; }
.cs-fh3 { font-family: 'Schibsted Grotesk'; font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.02em; margin-bottom: 6px; }

/* trust grid */
.cs-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(34px, 5vw, 76px); margin-top: clamp(36px, 4vw, 52px); text-align: left; }
.cs-trust__item { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; padding: 24px 2px; border-top: 1px solid var(--border); }
.cs-trust__item:nth-child(-n+2) { border-top: 0; padding-top: 4px; }
.cs-trust__ic { grid-row: 1 / span 2; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; font-size: 1.35rem; margin: 2px 0 0;
  background: var(--glow-soft); border: 1px solid rgba(var(--accent-rgb),.3); color: var(--accent); transition: transform .3s var(--ease), border-color .3s; }
.cs-trust__item:hover .cs-trust__ic { transform: translateY(-3px); border-color: rgba(var(--accent-rgb),.6); }
.cs-trust__item h4 { font-size: 1.1rem; margin: 0 0 6px; }
.cs-trust__item p { color: var(--muted); font-size: .95rem; line-height: 1.55; }
@media (max-width: 620px) { .cs-trust { grid-template-columns: 1fr; gap: 0; }
  .cs-trust__item:nth-child(2) { border-top: 1px solid var(--border); padding-top: 24px; }
  .cs-trust__item:first-child { padding-top: 4px; } }

/* key challenges grid */
.cs-chal-head { margin-top: clamp(54px, 7vw, 88px); }
.cs-chal-h { font-family: 'Schibsted Grotesk'; font-weight: 600; letter-spacing: -.02em; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.1; }
.cs-chal { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: clamp(28px, 3.5vw, 44px); }
.cs-chal__item { display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px; border-radius: 18px;
  border: 1px solid var(--border); background: var(--surface); transition: transform .35s var(--ease), border-color .35s; }
.cs-chal__item:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb),.42); }
.cs-chal__ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; font-size: 1.45rem; flex: none;
  background: var(--glow-soft); border: 1px solid rgba(var(--accent-rgb),.32); }
.cs-chal__item h4 { font-size: 1.12rem; margin-bottom: 7px; letter-spacing: -.01em; }
.cs-chal__item p { color: var(--muted); font-size: .96rem; line-height: 1.56; }
@media (max-width: 700px) { .cs-chal { grid-template-columns: 1fr; } }

/* hero decoration — floating 5-star / review elements */
.cs-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.cs-deco__glow { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%); width: 72vw; max-width: 920px; height: 540px;
  background: radial-gradient(closest-side, var(--glow), transparent 74%); filter: blur(34px); opacity: .6; }
.cs-deco__stars { color: #f5b945; letter-spacing: 2px; font-size: .9rem; white-space: nowrap; }
.cs-deco__stars--sm { font-size: .8rem; letter-spacing: 1px; }
.cs-deco__card { position: absolute; width: 248px; padding: 16px 18px; border-radius: 16px; text-align: left;
  background: rgba(27,23,18,.74); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 32px 64px -30px rgba(0,0,0,.85); backdrop-filter: blur(8px); }
.cs-deco__card p { color: var(--text); font-size: .9rem; line-height: 1.5; margin: 9px 0 7px; }
.cs-deco__who { color: var(--muted); font-size: .76rem; }
.cs-deco__card--1 { top: 18%; left: 2.5%; rotate: -4deg; animation: csFloat 6s ease-in-out infinite; }
.cs-deco__card--2 { top: 44%; right: 3%; rotate: 4deg; animation: csFloat 7s ease-in-out infinite .8s; }
.cs-deco__badge { position: absolute; top: 15%; right: 7%; display: flex; align-items: center; gap: 11px; padding: 12px 16px;
  border-radius: 14px; background: #fff; box-shadow: 0 28px 56px -22px rgba(0,0,0,.7); animation: csFloat 5.5s ease-in-out infinite .3s; }
.cs-deco__g { font-family: 'Schibsted Grotesk'; font-weight: 700; font-size: 1.55rem; line-height: 1;
  background: conic-gradient(from -28deg, #ea4335, #fbbc05, #34a853, #4285f4, #ea4335); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-deco__badge b { color: #1a120c; font-family: 'Schibsted Grotesk'; font-weight: 700; font-size: 1.1rem; display: block; line-height: 1; }
.cs-deco__notif { position: absolute; top: 56%; left: 5%; display: flex; align-items: center; gap: 11px; padding: 11px 16px 11px 11px;
  border-radius: 100px; background: rgba(27,23,18,.82); border: 1px solid rgba(var(--accent-rgb),.32); box-shadow: 0 24px 46px -22px rgba(0,0,0,.85);
  backdrop-filter: blur(8px); animation: csFloat 6.5s ease-in-out infinite 1.2s; }
.cs-deco__notif-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .9rem; flex: none; }
.cs-deco__notif b { color: var(--text); font-size: .84rem; display: block; line-height: 1.2; }
.cs-deco__notif span { color: var(--muted); font-size: .72rem; }
.cs-deco__spark { position: absolute; color: var(--accent-lt); opacity: .55; animation: csTwinkle 3s ease-in-out infinite; }
.cs-deco__spark--a { top: 23%; left: 25%; font-size: 1.2rem; }
.cs-deco__spark--b { top: 58%; right: 23%; font-size: 1.5rem; animation-delay: .6s; }
.cs-deco__spark--c { top: 68%; left: 17%; font-size: 1rem; animation-delay: 1.2s; }
.cs-deco__spark--d { top: 17%; right: 29%; font-size: .95rem; color: #f5b945; animation-delay: .9s; }
@keyframes csFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes csTwinkle { 0%, 100% { opacity: .22; transform: scale(.8); } 50% { opacity: .8; transform: scale(1.15); } }
/* hero actions + trust line */
.cs-hero__actions { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cs-hero__trust { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .88rem; }
@media (max-width: 920px) { .cs-deco__card, .cs-deco__notif { display: none; } .cs-deco__badge { top: 9%; right: 5%; } }
@media (max-width: 600px) { .cs-deco__badge, .cs-deco__spark { display: none; } }
@media (prefers-reduced-motion: reduce) { .cs-deco__card, .cs-deco__badge, .cs-deco__notif, .cs-deco__spark { animation: none; } }

/* meta → 4 separate detail cards (2×2) */
.cs-meta.cs-meta--card { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: none; margin-top: 0;
  padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.cs-meta__head { grid-column: 1 / -1; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent-lt); font-weight: 700; margin-bottom: 2px; }
.cs-meta--card > div { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 22px 22px;
  border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  box-shadow: 0 22px 52px -38px rgba(0,0,0,.6); transition: transform .35s var(--ease), border-color .3s; }
.cs-meta--card > div:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb),.35); }
.cs-meta__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 1.15rem;
  background: var(--glow-soft); border: 1px solid rgba(var(--accent-rgb),.25); margin-bottom: 9px; }
.cs-meta--card > div span { margin-bottom: 0; font-size: .72rem; }
.cs-meta--card > div strong { font-size: 1.05rem; line-height: 1.3; }
@media (max-width: 560px) { .cs-meta.cs-meta--card { grid-template-columns: 1fr; } }

/* =============== LIVE FULLSCREEN AUTO-SCROLL PREVIEW ========== */
/* peek bar at the very top — looks like the top edge of a browser */
.livep-teaser { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px clamp(18px, 4vw, 46px);
  background: linear-gradient(180deg, #ece6dd, #ddd4c7); border: 0; border-bottom: 1px solid rgba(0,0,0,.12);
  font: inherit; color: #6b6058; cursor: pointer; position: relative; z-index: 6; }
.livep-teaser__dots { display: inline-flex; gap: 6px; }
.livep-teaser__dots i { width: 11px; height: 11px; border-radius: 50%; background: #cdbdab; }
.livep-teaser__dots i:nth-child(1) { background: #e6857a; }
.livep-teaser__dots i:nth-child(2) { background: #e8c07a; }
.livep-teaser__dots i:nth-child(3) { background: #8fc99a; }
.livep-teaser__url { font-size: .8rem; background: #fff; padding: 4px 16px; border-radius: 100px; color: #7a6f64; }
.livep-teaser__hint { margin-left: auto; font-weight: 700; font-size: .82rem; color: #9a3412; }
.livep-teaser__hint b { display: inline-block; animation: livepBob 1s ease-in-out infinite; }
@keyframes livepBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* trigger button — hero top-center */
.livep-trigger { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 25;
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 22px; border: 0; border-radius: 100px; cursor: pointer;
  background: var(--accent); color: var(--ink); font: 700 .9rem 'Hanken Grotesk', sans-serif; box-shadow: 0 16px 34px -12px var(--glow);
  transition: transform .3s var(--ease), box-shadow .3s; }
.livep-trigger:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 22px 44px -12px var(--glow); }
.livep-trigger__ic { font-size: 1.1rem; line-height: 1; animation: livepBob 1.1s ease-in-out infinite; }

/* fullscreen stage that slides down from the top */
.livep { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; background: #fff;
  transform: translateY(-100%); visibility: hidden; transition: transform .9s cubic-bezier(.76,0,.24,1), visibility 0s linear .9s; }
.livep.is-open { transform: translateY(0); visibility: visible; transition: transform .9s cubic-bezier(.76,0,.24,1); }
.livep__top { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 clamp(14px, 3vw, 30px);
  background: #ece6dd; border-bottom: 1px solid rgba(0,0,0,.1); flex: none; }
.livep__chrome { display: inline-flex; gap: 7px; }
.livep__chrome i { width: 12px; height: 12px; border-radius: 50%; background: #cdbdab; }
.livep__chrome i:nth-child(1) { background: #e6857a; }
.livep__chrome i:nth-child(2) { background: #e8c07a; }
.livep__chrome i:nth-child(3) { background: #8fc99a; }
.livep__url { font-size: .82rem; background: #fff; padding: 5px 18px; border-radius: 100px; color: #7a6f64; }
.livep__badge { margin-left: 14px; font-size: .76rem; font-weight: 700; color: #3fae57; }
.livep__open { margin-left: auto; font-size: .82rem; font-weight: 700; color: #9a3412; padding: 7px 14px; border-radius: 100px; border: 1px solid rgba(154,52,18,.3); }
.livep__close { font: 700 .82rem 'Hanken Grotesk', sans-serif; color: #4a3f36; background: #fff; border: 1px solid rgba(0,0,0,.12);
  padding: 7px 16px; border-radius: 100px; cursor: pointer; }
.livep__close:hover { background: #f4efe8; }
.livep__screen { --sh: calc(100vh - 56px); position: relative; height: var(--sh); overflow: hidden; background: #fff; }
.livep__screen img { width: 100%; display: block; will-change: transform; }
.livep.is-open .livep__screen img { animation: livepScroll 32s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes livepScroll {
  0%, 6%   { transform: translateY(0); }
  49%, 55% { transform: translateY(calc(-100% + var(--sh))); }
  97%, 100%{ transform: translateY(0); }
}
body.livep-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .livep.is-open .livep__screen img, .livep-trigger__ic, .livep-teaser__hint b { animation: none; } }
@media (max-width: 900px) {
  .cs-hero--split { padding: 86px 0 36px; }
  .cs-hero--split .cs-hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .cs-hero--split .cs-hero__text { max-width: none; }
}

/* ===== case-study responsive (all breakpoints) ===== */
@media (max-width: 860px) {
  .cs-split { grid-template-columns: 1fr !important; gap: 30px; }
  .cs-split--rev .cs-split__media { order: 0; }
}
@media (max-width: 680px) {
  .cs-stats { grid-template-columns: 1fr 1fr !important; }
  .cs-cta__btns { flex-direction: column; align-items: center; }
  .cs-cta__btns .btn { width: 100%; max-width: 320px; justify-content: center; }
  .cs-quote blockquote { font-size: 1.4rem; }
  .livep__badge { display: none; }
}
@media (max-width: 440px) {
  .cs-stats { grid-template-columns: 1fr !important; }
  .cs-metastrip { grid-template-columns: 1fr 1fr; }
  .livep__url { display: none; }
  .livep__top { gap: 8px; padding: 0 12px; }
  .cs-screen__cta { font-size: .92rem; }
}

/* hero right: website framed in a black screen bezel, pulled to the top */
.cs-screen { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; font: inherit;
  margin-top: -128px; transition: transform .45s var(--ease); }
.cs-screen:hover { transform: translateY(6px); }
.cs-screen__win { display: block; position: relative; border-radius: 0 0 30px 30px; padding: 0 10px 10px; border: 1px solid rgba(255,255,255,.16);
  border-top: 0; background: linear-gradient(157deg, #6e655b 0%, #4a433b 52%, #322c26 100%);
  box-shadow: 0 70px 120px -44px rgba(0,0,0,.85); transition: box-shadow .45s; }
.cs-screen:hover .cs-screen__win { box-shadow: 0 84px 140px -42px rgba(0,0,0,.95); }
.cs-screen__view { position: relative; display: block; height: clamp(620px, 88vh, 940px); overflow: hidden; background: #f1ece5;
  border-radius: 0 0 18px 18px; clip-path: inset(0 round 0 0 18px 18px); }
.cs-screen__view img { width: 100%; height: auto; display: block; transition: transform 6s linear; }
.cs-screen:hover .cs-screen__view img { transform: translateY(calc(-100% + 620px)); transition: transform 14s linear; }
.cs-screen__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 13px; padding: 30px 22px; text-align: center; pointer-events: none;
  background: linear-gradient(to top, rgba(8,9,10,.86), rgba(8,9,10,.18) 46%, transparent 72%); }
.cs-screen__pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 17px; border-radius: 100px; font-size: .78rem; font-weight: 700;
  color: #fff; background: rgba(var(--accent-rgb),.95); box-shadow: 0 10px 26px -8px var(--glow); }
.cs-screen__cta { font-weight: 700; font-size: 1.06rem; color: #fff; letter-spacing: -.01em; }
.cs-screen__cta b { display: inline-block; margin-left: 5px; animation: livepBob 1.1s ease-in-out infinite; }
/* mobile: screen sits below the text (no pull-up overlap), shorter */
@media (max-width: 900px) {
  .cs-screen { margin-top: 4px; }
  .cs-screen:hover { transform: none; }
  .cs-screen:hover .cs-screen__win { box-shadow: 0 50px 90px -42px rgba(0,0,0,.8); }
  .cs-screen__view { height: clamp(340px, 58vh, 540px); }
}

/* details strip below the hero — cards */
.cs-metastrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(42px, 5vw, 66px);
  position: relative; z-index: 2; }
.cs-metastrip > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px 24px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.04);
  box-shadow: 0 18px 40px -30px rgba(0,0,0,.6); transition: transform .35s var(--ease), border-color .35s, background .35s; }
.cs-metastrip > div:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb),.42); background: rgba(255,255,255,.065); }
.cs-metastrip__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 1.15rem;
  background: var(--glow-soft); border: 1px solid rgba(var(--accent-rgb),.3); margin-bottom: 8px; }
.cs-metastrip__l { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.cs-metastrip > div strong { font-weight: 700; font-size: 1.04rem; color: var(--text); }
@media (max-width: 760px) { .cs-metastrip { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* meta cards on a light section */
.cs-metastrip--light > div { background: #fff; border: 1px solid rgba(26,18,12,.10); box-shadow: 0 18px 44px -30px rgba(60,40,20,.22); }
.cs-metastrip--light > div:hover { border-color: rgba(var(--accent-rgb),.5); background: #fff; }
.cs-metastrip--light .cs-metastrip__ic { background: rgba(var(--accent-rgb),.12); border: 1px solid rgba(var(--accent-rgb),.28); }

/* overview — editorial layout */
.cs-ov__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 700; font-size: .95rem;
  color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .3s, gap .3s; }
.cs-ov__link span { transition: transform .3s var(--ease); }
.cs-ov__link:hover { border-color: var(--accent); gap: 11px; }
.cs-ov__link:hover span { transform: translate(2px, -2px); }

/* spec bar — Client / Role / Timeline / Platform */
.cs-specs { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(46px, 5.5vw, 72px);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cs-specs > div { display: flex; flex-direction: column; gap: 9px; padding: clamp(22px, 2.4vw, 30px) clamp(20px, 2vw, 30px);
  border-left: 1px solid var(--border); }
.cs-specs > div:first-child { border-left: none; padding-left: 0; }
.cs-specs__l { font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; color: var(--accent); font-weight: 700; }
.cs-specs strong { font-size: 1.08rem; line-height: 1.3; color: var(--text); font-weight: 700; }
@media (max-width: 760px) {
  .cs-specs { grid-template-columns: 1fr 1fr; }
  .cs-specs > div:nth-child(odd) { border-left: none; padding-left: 0; }
  .cs-specs > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* built-with chips */
.cs-techrow { margin-top: clamp(40px, 4.5vw, 56px); display: flex; align-items: baseline; gap: clamp(18px, 2.6vw, 38px); flex-wrap: wrap; }
.cs-techrow__label { flex: 0 0 auto; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.cs-chips { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(15px, 2.2vw, 26px) clamp(20px, 3vw, 40px); }
.cs-techchip { display: inline-flex; align-items: center; gap: 11px; padding: 6px 2px; border: 0; border-radius: 0; background: none; box-shadow: none;
  font-size: .98rem; font-weight: 600; color: var(--text); transition: transform .3s var(--ease), color .3s; }
.cs-techchip::after { content: ""; }
.cs-techchip i, .cs-techchip .cs-stack__emoji { font-size: 1.85rem; line-height: 1; transition: transform .3s var(--ease), filter .3s; will-change: transform; }
.cs-techchip:hover { transform: translateY(-4px); color: var(--accent); }
.cs-techchip:hover i, .cs-techchip:hover .cs-stack__emoji { transform: scale(1.1); }

/* screens carousel / slider */
.cs-carousel { position: relative; }
.cs-carousel__track { display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  margin-right: calc(-1 * max(22px, 50vw - 618px));
  padding: 8px max(22px, calc(50vw - 618px)) 34px 0; scrollbar-width: none; cursor: grab; }
.cs-carousel__track::-webkit-scrollbar { display: none; }
.cs-carousel__track.is-drag { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.cs-carousel__slide { flex: 0 0 clamp(320px, 46vw, 640px); scroll-snap-align: start; user-select: none; }
.cs-shotcard { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface);
  box-shadow: 0 30px 60px -36px rgba(20,12,6,.4); transition: transform .4s var(--ease), box-shadow .4s; }
.cs-carousel__slide:hover .cs-shotcard { transform: translateY(-4px); box-shadow: 0 40px 72px -36px rgba(20,12,6,.46); }
.cs-shotcard__bar { position: relative; display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: rgba(0,0,0,.045); border-bottom: 1px solid var(--border); }
.cs-shotcard__bar i { width: 11px; height: 11px; border-radius: 50%; }
.cs-shotcard__bar i:nth-child(1) { background: #ff5f57; } .cs-shotcard__bar i:nth-child(2) { background: #febc2e; } .cs-shotcard__bar i:nth-child(3) { background: #28c840; }
.cs-shotcard__bar span { position: absolute; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; color: var(--muted); }
.cs-shotcard__bar span::before { content: "🔒"; font-size: .68rem; }
.cs-shotcard__img { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.cs-shotcard__img img { width: 100%; height: auto; display: block; pointer-events: none; }
.cs-shotcard__cap { display: flex; align-items: center; gap: 11px; margin: 17px 2px 0; font-weight: 600; font-size: 1.02rem; color: var(--text); }
.cs-shotcard__cap b { font-family: 'Schibsted Grotesk', sans-serif; color: var(--accent); font-size: .92rem; font-weight: 700; }
.cs-carousel__nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 28px); margin-top: 6px; }
.cs-carousel__btn { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 1.2rem; cursor: pointer; display: grid; place-items: center;
  transition: background .3s, color .3s, border-color .3s, transform .3s, opacity .3s; }
.cs-carousel__btn:hover:not(:disabled) { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.cs-carousel__btn:disabled { opacity: .3; cursor: default; }
.cs-carousel__progress { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.cs-carousel__fill { position: absolute; left: 0; top: 0; height: 100%; width: 30%; background: var(--accent); border-radius: 4px; }
@media (max-width: 700px) { .cs-carousel__slide { flex-basis: 86%; } }
.cs-hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .6;
  background-image:
    linear-gradient(to right, rgba(var(--accent-rgb),.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--accent-rgb),.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000, transparent 75%);
}
.cs-hero__inner { position: relative; z-index: 1; }
.cs-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 100px; background: var(--glow-soft); border: 1px solid rgba(var(--accent-rgb),.3); color: var(--accent-lt); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cs-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.cs-title { font-family: 'Schibsted Grotesk'; font-weight: 600; letter-spacing: -.03em; line-height: 1.04; font-size: clamp(1.65rem, 6vw, 4.4rem); margin: 22px 0 0; max-width: 16ch; }
.cs-title em { font-style: normal; color: var(--accent); }
.cs-lead { color: #c8bfb5; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; margin-top: 22px; max-width: 56ch; }

/* meta row (client / role / year / services) */
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); }
.cs-meta div span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.cs-meta div strong { font-weight: 600; font-size: 1rem; color: var(--text); }

/* big hero image / mockup */
.cs-cover { position: relative; margin-top: 48px; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); aspect-ratio: 16/8.5; }
.cs-cover img { width: 100%; height: auto; display: block; }
.cs-cover .cs-ph { position: absolute; inset: 0; display: grid; place-content: center; place-items: center; gap: 10px; color: var(--muted); text-align: center; font-size: .9rem;
  background: radial-gradient(120% 120% at 30% 10%, rgba(var(--accent-rgb),.08), transparent 55%), repeating-linear-gradient(45deg, var(--surface) 0 14px, var(--surface-2) 14px 28px); }
.cs-cover .cs-ph span:first-child { font-size: 2.6rem; }
.cs-live { display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; padding: 12px 22px; border-radius: 100px;
  font-weight: 700; font-size: .95rem; color: var(--accent-lt); background: var(--glow-soft); border: 1px solid rgba(var(--accent-rgb),.32);
  transition: gap .3s var(--ease), background .3s, transform .3s var(--ease); }
.cs-live span { transition: transform .3s var(--ease); }
.cs-live:hover { gap: 13px; background: rgba(var(--accent-rgb),.16); transform: translateY(-2px); }
.cs-live:hover span { transform: translate(2px,-2px); }

/* --------------------- PHONE MOCKUPS -------------------------- */
.cs-phones { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 2.5vw, 36px); flex-wrap: wrap; margin-top: 46px; }
/* ===== mobile phone showcase: draggable, paginated 3-up on a dark glowing stage =====
   Phones keep their [data-r] so they pop-in (staggered) via the shared reveal system.
   The nav (.cs-phones__nav) is injected by js/case-study.js. */
.cs-phones__stage { position: relative; max-width: 940px; margin: 8px auto 0; }
.cs-phones__stage::before { content: ""; position: absolute; left: 50%; top: 20px; transform: translateX(-50%);
  width: min(116%, 1120px); height: calc(100% - 80px); z-index: 0; border-radius: 36px; pointer-events: none;
  background: radial-gradient(58% 78% at 50% 20%, rgba(217,119,87,.26), transparent 70%), linear-gradient(180deg, #211a14, #1a1510 30%, #0b0908); }
/* the row scrolls INSIDE the stage; the glow lives on the stage so it never inflates scrollWidth */
.cs-phones--grid { position: relative; z-index: 1; display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 24px; width: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 58px 0 40px; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.cs-phones--grid::-webkit-scrollbar { display: none; }
.cs-phones--grid.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.cs-phones--grid .cs-phone { position: relative; z-index: 1; box-sizing: border-box; min-width: 0; flex: 0 0 calc((100% - 48px) / 3); width: auto; max-width: none; margin-inline: 0;
  scroll-snap-align: start; box-shadow: 0 10px 22px rgba(0,0,0,.4), 0 38px 72px -26px rgba(0,0,0,.72); }
.cs-phones--grid .cs-phone img { -webkit-user-drag: none; pointer-events: none; }
/* Grids with <=3 phones fit the 3-up row exactly (no overflow at desktop), so the slider can't
   scroll. Widen those phones (~2.5 per view + a peek of the next) so the row overflows and the
   slider initializes everywhere. JS adds .cs-phones--peek to <=3-phone grids; >3-phone grids
   (boop, oasis...) keep the approved 3-up that already overflows. */
.cs-phones--peek .cs-phone { flex-basis: 44%; }
.cs-phones__nav { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; max-width: 520px; margin: 26px auto 0; }
.cs-phones__btn { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-alt);
  color: var(--text); font-size: 1.1rem; line-height: 1; display: grid; place-items: center; cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, opacity .25s, transform .2s var(--ease); }
.cs-phones__btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.cs-phones__btn.is-off { opacity: .35; pointer-events: none; }
.cs-phones__prog { flex: 1; height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.cs-phones__fill { display: block; height: 100%; width: 33%; border-radius: 3px; background: var(--accent); transition: transform .3s var(--ease), width .3s var(--ease); }
@media (max-width: 820px) { .cs-phones--grid .cs-phone { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 540px) { .cs-phones--grid .cs-phone { flex-basis: 82%; } }
@media (prefers-reduced-motion: reduce) { .cs-phones--grid .cs-phone { transform: none !important; opacity: 1 !important; } }
.cs-phone { position: relative; width: clamp(196px, 21vw, 252px); aspect-ratio: 390 / 844; flex: none; padding: 9px;
  border-radius: 40px; background: linear-gradient(150deg, #211b15, #110d0a); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 44px 80px -34px rgba(0,0,0,.75), inset 0 0 0 2px rgba(255,255,255,.04);
  transition: transform .5s var(--ease); }
.cs-phone:hover { transform: translateY(-8px); }
.cs-phone--up { transform: translateY(-26px); }
.cs-phone--up:hover { transform: translateY(-34px); }
.cs-phone__screen { position: relative; width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: var(--surface-2); }
.cs-phone__screen img { width: 100%; height: auto; display: block; }
.cs-phone__notch { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 76px; height: 21px; border-radius: 20px; background: #0c0a08; z-index: 2; }
.cs-split__media .cs-phone { margin-inline: auto; }
@media (max-width: 560px) { .cs-phone--up { transform: none; } .cs-phone--up:hover { transform: translateY(-8px); } }

/* --------------------------- SECTIONS ------------------------- */
.cs-section { padding: clamp(56px, 8vw, 100px) 0; position: relative; color: var(--text); background: var(--bg); }
/* perf: skip rendering off-screen sections (huge scroll win, no visual change).
   Showcase excluded — it climbs over the hero with a negative margin. */
.cs-section:not(.cs-section--showcase) { content-visibility: auto; contain-intrinsic-size: auto 720px; }
.cs-section--alt { background: var(--bg-alt); }
/* LIGHT section — alternates with dark for contrast (like the main page) */
.cs-section--light {
  --bg: #f6f3ee; --bg-alt: #efeae3; --surface: #ffffff; --surface-2: #f4f0ea;
  --border: rgba(28,20,14,.12); --text: #1a120c; --muted: #6b6058;
  --accent: #c15f3c; --accent-rgb: 193,95,60; --accent-lt: #9a3412; --accent-dk: #9a3412; --ink: #ffffff;
  --glow: rgba(var(--accent-rgb),.26); --glow-soft: rgba(var(--accent-rgb),.10);
  background: var(--bg); color: var(--text);
}
.cs-kicker { color: var(--accent-lt); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.cs-h2 { font-family: 'Schibsted Grotesk'; font-weight: 600; letter-spacing: -.02em; font-size: clamp(1.4rem, 4vw, 2.6rem); line-height: 1.1; }
.cs-text { color: var(--muted); font-size: 1.08rem; line-height: 1.7; margin-top: 16px; }
.cs-text strong { color: var(--text); font-weight: 600; }
.cs-text + .cs-text { margin-top: 14px; }

/* split: text + visual */
.cs-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.cs-split--rev .cs-split__media { order: -1; }
.cs-split__media { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); aspect-ratio: 4/3; position: relative; }
.cs-split__media img { width: 100%; height: auto; display: block; }
/* phone in a split: don't clip it, and make it big */
.cs-split__media--phone { aspect-ratio: auto; overflow: visible; border: 0; background: none; border-radius: 0;
  display: flex; align-items: center; justify-content: center; }
.cs-phone--lg { width: clamp(218px, 23vw, 278px); }

/* full-width figure */
.cs-figure { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); position: relative; aspect-ratio: 16/8; }
.cs-figure img { width: 100%; height: auto; display: block; }
.cs-figure__cap { margin-top: 14px; color: var(--muted); font-size: .9rem; text-align: center; }

/* gallery grid */
.cs-gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 24px; }
.cs-gallery .cs-tile { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2);
  aspect-ratio: 16/10; position: relative; transition: transform .45s var(--ease), box-shadow .45s; }
.cs-gallery .cs-tile:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -40px rgba(0,0,0,.6); }
.cs-gallery .cs-tile img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.cs-gallery .cs-tile:hover img { transform: scale(1.04); }
@media (max-width: 720px) { .cs-gallery { grid-template-columns: 1fr !important; gap: 18px; } }
.cs-tile--tall { aspect-ratio: 3/4.4; grid-row: span 2; }

/* placeholder helper for any media box */
.cs-ph-box { position: absolute; inset: 0; display: grid; place-content: center; place-items: center; gap: 8px; color: var(--muted); font-size: .82rem; text-align: center; padding: 16px;
  background: radial-gradient(120% 120% at 30% 10%, rgba(var(--accent-rgb),.06), transparent 55%), repeating-linear-gradient(45deg, var(--surface) 0 12px, var(--surface-2) 12px 24px); }
.cs-ph-box span:first-child { font-size: 2rem; }

/* stats / results */
.cs-stats { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 20px; }
.cs-stat { padding: 26px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color .35s, transform .35s var(--ease); }
.cs-stat:hover { border-color: rgba(var(--accent-rgb),.4); transform: translateY(-5px); }
.cs-stat b { display: block; font-family: 'Schibsted Grotesk'; font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); color: var(--accent); line-height: 1; }
.cs-stat span { display: block; margin-top: 10px; color: var(--muted); font-size: .9rem; }

/* bullet / feature list */
.cs-bullets { list-style: none; display: grid; gap: 16px; }
.cs-bullets li { position: relative; padding-left: 38px; color: var(--text); font-size: 1.04rem; line-height: 1.5; }
.cs-bullets li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--glow-soft); color: var(--accent-lt); font-weight: 700; font-size: .82rem; }
.cs-bullets li b { color: var(--text); }
.cs-bullets li small { display: block; color: var(--muted); font-size: .92rem; margin-top: 3px; }

/* tag pills (tech/services) */
.cs-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-pills span { padding: 9px 16px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .9rem; font-weight: 500; }

/* tech stack — logo cards */
.cs-stack { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: clamp(36px, 4vw, 52px); }
.cs-stack__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px 14px;
  border-radius: 18px; border: 1px solid var(--border); background: var(--surface);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.cs-stack__item:hover { transform: translateY(-6px); border-color: rgba(var(--accent-rgb),.45); box-shadow: 0 26px 54px -30px rgba(40,22,12,.45); }
.cs-stack__item i { font-size: 2.7rem; line-height: 1; }
.cs-stack__emoji { font-size: 2.3rem; line-height: 1; }
.cs-stack__item > span:last-child { font-size: .88rem; font-weight: 600; color: var(--text); }
@media (max-width: 880px) { .cs-stack { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .cs-stack { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cs-stack__item { padding: 22px 10px; gap: 11px; } .cs-stack__item i { font-size: 2.2rem; } .cs-stack__emoji { font-size: 2rem; } }
@media (max-width: 380px) { .cs-stack { grid-template-columns: repeat(2, 1fr); } }

/* process steps */
.cs-steps { display: grid; gap: 16px; counter-reset: step; }
.cs-step { display: flex; gap: 22px; padding: 26px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.cs-step__n { font-family: 'Schibsted Grotesk'; font-weight: 700; font-size: 1.4rem; color: transparent; -webkit-text-stroke: 1.4px var(--accent); flex-shrink: 0; min-width: 46px; }
.cs-step h4 { font-size: 1.15rem; margin-bottom: 6px; }
.cs-step p { color: var(--muted); font-size: .96rem; }

/* big quote */
.cs-quote { text-align: center; max-width: 820px; margin-inline: auto; }
.cs-quote__mark { font-family: 'Schibsted Grotesk'; font-size: 3rem; color: var(--accent); line-height: 1; }
.cs-quote blockquote { font-family: 'Schibsted Grotesk'; font-weight: 500; font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.35; letter-spacing: -.01em; margin: 14px 0 24px; }
.cs-quote__who { display: inline-flex; align-items: center; gap: 12px; }
.cs-quote__av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-dk)); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-family: 'Schibsted Grotesk'; }
.cs-quote__name { font-weight: 600; }
.cs-quote__role { color: var(--muted); font-size: .88rem; }

/* two-column problem → solution */
.cs-ps { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch; }
.cs-ps__card { padding: 38px 34px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface);
  position: relative; transition: transform .4s var(--ease), border-color .4s; }
.cs-ps__card:hover { transform: translateY(-5px); }
.cs-ps__card--sol { background: linear-gradient(162deg, rgba(var(--accent-rgb),.14), var(--surface) 60%); border-color: rgba(var(--accent-rgb),.4); }
.cs-ps__ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; font-size: 1.45rem; margin-bottom: 20px;
  background: var(--surface-2); border: 1px solid var(--border); }
.cs-ps__ic--sol { background: var(--glow-soft); border-color: rgba(var(--accent-rgb),.4); }
.cs-ps__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.cs-ps__card--sol .cs-ps__label { color: var(--accent-lt); }
.cs-ps__card h3 { font-size: 1.42rem; margin-bottom: 13px; letter-spacing: -.01em; }
.cs-ps__card p { color: var(--muted); font-size: 1.02rem; line-height: 1.65; }
.cs-ps__list { list-style: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); display: grid; gap: 11px; }
.cs-ps__list li { position: relative; padding-left: 26px; font-size: .96rem; color: var(--text); }
.cs-ps__list li::before { content: "✕"; position: absolute; left: 0; top: 1px; color: #c4564a; font-weight: 700; }
.cs-ps__list--sol li::before { content: "✓"; color: var(--accent); }
.cs-ps__arrow { display: grid; place-items: center; color: var(--accent); padding: 0 4px; }
.cs-ps__arrow svg { width: clamp(58px, 6vw, 92px); height: auto; overflow: visible; }
@media (max-width: 820px) {
  .cs-ps { grid-template-columns: 1fr; gap: 16px; }
  .cs-ps__arrow svg { width: 64px; transform: rotate(72deg); }
}

/* ------------------------- NEXT / FOOTER ---------------------- */
.cs-cta { text-align: center; padding: clamp(70px, 10vw, 120px) 0; position: relative; overflow: hidden; }
.cs-cta__glow { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px; background: radial-gradient(circle, var(--glow), transparent 65%); filter: blur(50px); opacity: .4; pointer-events: none; }
.cs-cta h2 { position: relative; font-family: 'Schibsted Grotesk'; font-weight: 600; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; }
.cs-cta p { position: relative; color: var(--muted); font-size: 1.1rem; margin: 16px auto 30px; max-width: 50ch; }
.cs-cta__btns { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.cs-next { border-top: 1px solid var(--border); }
.cs-next__link { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(36px, 6vw, 64px) 0; transition: background .3s; }
.cs-next__link:hover { background: var(--bg-alt); }
.cs-next__label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.cs-next__title { font-family: 'Schibsted Grotesk'; font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.4rem); letter-spacing: -.02em; transition: color .3s; }
.cs-next__link:hover .cs-next__title { color: var(--accent); }
.cs-next__arrow { font-size: 2rem; color: var(--accent); transition: transform .3s var(--ease); }
.cs-next__link:hover .cs-next__arrow { transform: translateX(10px); }

.cs-foot { border-top: 1px solid var(--border); padding: 30px 0; color: var(--muted); font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.cs-foot a { color: var(--text); }
.cs-foot a:hover { color: var(--accent); }

/* reveal helper (case studies) */
.cs [data-r] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.cs [data-r].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .cs [data-r] { opacity: 1 !important; transform: none !important; } .pw-feat__track { animation: none !important; } }

/* ===================== PORTFOLIO / ALL-WORK PAGE ============= */
.pw-hero { position: relative; padding: 140px 0 62px; overflow: hidden; }
.pw-hero__grid { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(var(--accent-rgb),.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--accent-rgb),.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 22% 25%, #000, transparent 76%);
          mask-image: radial-gradient(ellipse 70% 75% at 22% 25%, #000, transparent 76%); }
.pw-hero__glow { position: absolute; top: -28%; left: 8%; width: 50vw; max-width: 720px; height: 640px; border-radius: 50%; background: var(--accent); filter: blur(170px); opacity: .13; z-index: 0; pointer-events: none; }
.pw-hero__inner { position: relative; z-index: 1; }
.pw-h1 { font-family: 'Schibsted Grotesk'; font-weight: 600; letter-spacing: -.03em; line-height: 1.04; font-size: clamp(2rem, 4.2vw, 3.5rem); margin: 20px 0 0; }
.pw-h1 em { font-style: normal; color: var(--accent); }
.pw-intro { color: #c8bfb5; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.6; margin-top: 20px; max-width: 50ch; }
.pw-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--border); }
.pw-stat b { display: block; font-family: 'Schibsted Grotesk'; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; color: var(--text); line-height: 1; }
.pw-stat span { display: block; margin-top: 8px; color: var(--muted); font-size: .84rem; }

/* HERO 2-column: text (left) + featured cards (right) */
.pw-hero__cols { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
.pw-feat-label { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.pw-feat-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.pw-hero__cards { display: flex; flex-direction: column; gap: 14px; }
/* each card slides in from the right, one by one */
.pw-hero__cards [data-r] { transform: translateX(55px); transition: opacity .8s var(--ease), transform .9s cubic-bezier(.2,1,.3,1); }
.pw-hero__cards [data-r].in { transform: none; }

.pw-fcard { display: flex; align-items: stretch; height: 112px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  background: linear-gradient(120deg, var(--surface-2), var(--surface)); transition: transform .35s var(--ease), border-color .35s; }
.pw-fcard:hover { transform: translateX(7px); border-color: rgba(var(--accent-rgb),.45); }
.pw-fcard__thumb { position: relative; flex: 0 0 152px; overflow: hidden; background: var(--surface-2); }
.pw-fcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pw-fcard:hover .pw-fcard__thumb img { transform: scale(1.08); }
.pw-fcard__tag { position: absolute; top: 11px; left: 11px; padding: 4px 10px; border-radius: 100px; font-size: .68rem; font-weight: 700; background: rgba(8,9,10,.8); backdrop-filter: blur(6px); border: 1px solid rgba(var(--accent-rgb),.3); color: var(--accent-lt); }
.pw-fcard__body { flex: 1; min-width: 0; padding: 0 18px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.pw-fcard__cat { color: var(--accent-lt); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pw-fcard__body h4 { font-size: 1.04rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-fcard__res { color: var(--muted); font-size: .82rem; }
.pw-fcard__res b { color: var(--accent); font-weight: 700; }
.pw-fcard__arrow { align-self: center; padding-right: 18px; color: var(--muted); font-size: 1.1rem; transition: color .3s, transform .3s var(--ease); }
.pw-fcard:hover .pw-fcard__arrow { color: var(--accent); transform: translateX(4px); }

/* projects section (alt bg) */
.pw-projects { background: var(--bg-alt); padding: 64px 0 90px; }
.pw-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.pw-bar h2 { font-family: 'Schibsted Grotesk'; font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; }
.pw-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pw-filter { padding: 9px 18px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-weight: 600; font-size: .88rem; cursor: pointer; font-family: inherit; transition: background .25s, color .25s, border-color .25s; }
.pw-filter:hover { color: var(--text); border-color: var(--accent); }
.pw-filter.active { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.pw-filter-div { flex: 0 0 auto; align-self: center; width: 1px; height: 24px; background: var(--border); margin: 0 6px; }
.pw-filter--ind { border-style: dashed; }
.pw-filter--ind.active { border-style: solid; }
@media (max-width: 560px) { .pw-filter-div { display: none; } }

.pw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pw-empty { display: none; grid-column: 1 / -1; text-align: center; padding: 50px 0; color: var(--muted); }
.pw-empty a { color: var(--accent); font-weight: 600; }

.pw-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); transition: transform .4s var(--ease), border-color .4s; }
.pw-card::after { content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none; opacity: 0; transition: opacity .4s;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),.4), 0 30px 60px -30px var(--glow); }
.pw-card:hover { transform: translateY(-8px); }
.pw-card:hover::after { opacity: 1; }
.pw-thumb { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--surface-2); }
.pw-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pw-card:hover .pw-thumb img { transform: scale(1.07); }
.pw-tag { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 13px; border-radius: 100px; font-size: .72rem; font-weight: 700; background: rgba(8,9,10,.8); backdrop-filter: blur(8px); border: 1px solid rgba(var(--accent-rgb),.3); color: var(--accent-lt); }
.pw-view { position: absolute; left: 14px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 100px; background: var(--accent); color: var(--ink); font-weight: 700; font-size: .82rem; opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.pw-card:hover .pw-view { opacity: 1; transform: none; }
.pw-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pw-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pw-num { font-family: 'Schibsted Grotesk'; font-weight: 700; font-size: 1.4rem; color: transparent; -webkit-text-stroke: 1.3px rgba(255,255,255,.38); line-height: 1; }
.pw-result { font-weight: 700; color: var(--accent); font-size: .84rem; padding: 5px 12px; border-radius: 100px; background: var(--glow-soft); border: 1px solid rgba(var(--accent-rgb),.22); }
.pw-body h3 { font-size: 1.3rem; letter-spacing: -.01em; transition: color .3s; }
.pw-card:hover .pw-body h3 { color: var(--accent-lt); }
.pw-body p { color: var(--muted); font-size: .94rem; flex: 1; }
.pw-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.pw-tags span { font-size: .73rem; color: var(--muted); padding: 4px 11px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface-2); }

/* capabilities section */
.cap-sec { padding: 90px 0; }
.cap-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 38px; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cap { padding: 30px 28px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); transition: border-color .35s, transform .35s var(--ease); }
.cap:hover { border-color: rgba(var(--accent-rgb),.45); transform: translateY(-6px); }
.cap__top { display: flex; align-items: center; justify-content: space-between; }
.cap__ic { font-size: 1.7rem; }
.cap__n { font-family: 'Schibsted Grotesk'; font-weight: 700; font-size: .95rem; color: transparent; -webkit-text-stroke: 1.2px var(--accent); }
.cap h3 { font-size: 1.22rem; margin: 14px 0 8px; }
.cap p { color: var(--muted); font-size: .94rem; line-height: 1.55; }

/* --------------------------- RESPONSIVE ----------------------- */
@media (max-width: 860px) {
  .pw-grid, .cap-grid { grid-template-columns: 1fr 1fr; }
  .pw-hero__cols { grid-template-columns: 1fr; gap: 38px; }
  .pw-bar { flex-direction: column; align-items: flex-start; }
  .cs-meta { grid-template-columns: 1fr 1fr; gap: 18px; }
  .cs-split, .cs-ps { grid-template-columns: 1fr; }
  .cs-split--rev .cs-split__media { order: 0; }
  .cs-stats { grid-template-columns: 1fr 1fr; }
  .cs-gallery { grid-template-columns: 1fr 1fr; }
  .cs-tile--tall { grid-row: span 1; aspect-ratio: 4/3; }
  .cs-next__arrow { font-size: 1.5rem; }
}
@media (max-width: 520px) {
  .cs-meta, .cs-stats, .cs-gallery, .pw-grid, .cap-grid { grid-template-columns: 1fr; }
  .cs-nav__cta { display: none; }
}

/* de-slop: emoji icons rendered as clay SVG line-icons, sized by each slot's font-size */
.cs-ps__ic svg, .cs-trust__ic svg, .cs-chalcard__ic svg, .cs-chal__ic svg, .cs-stack__emoji svg, .cs-ph-box span:first-child svg { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; }
.cs-ps__ic, .cs-trust__ic, .cs-chalcard__ic, .cs-stack__emoji { color: var(--accent); }

/* (phone showcase styles now live on .cs-phones--grid above - all 53 cases share one path) */