/* Case study pages. Shared type, colors, nav, buttons and contact come from styles.css. */

/* reading progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 30; }
.progress span { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(var(--p, 0)); }


.case-page main p { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; letter-spacing: -.01em; }
.case-page main p + p { margin-top: .9em; }
.case-page main strong { font-weight: 600; }

/* animated charts (UH Wellness, SYRIOS) */
.wv-bars { list-style: none; display: grid; gap: 14px; margin-top: 16px; }
.wv-bars li { display: grid; grid-template-columns: 9.5em 1fr 3.4em; align-items: center; gap: 12px; font-size: 15px; }
.wv-bars b { font-weight: 500; }
.wv-bars span { height: 14px; border-radius: 99px; background: rgba(45,43,38,.1); overflow: hidden; }
.wv-bars i { display: block; height: 100%; border-radius: inherit; background: #C8102E; width: calc(var(--v) / var(--max) * 100%); transform-origin: left; scale: 0 1; transition: scale 1.2s cubic-bezier(.2,.8,.2,1); }
.wv-bars li:nth-child(2) i { transition-delay: .12s; } .wv-bars li:nth-child(3) i { transition-delay: .24s; } .wv-bars li:nth-child(4) i { transition-delay: .36s; }
.wv-bars.is-in i { scale: 1 1; }
.wv-bars em { font-style: normal; font: 600 14px var(--mono); text-align: right; }
@media (prefers-reduced-motion: reduce) { .wv-bars i { scale: 1 1; transition: none; } }
.rs-cols-wrap { position: relative; margin-top: 18px; }
.rs-cols { list-style: none; display: flex; align-items: flex-end; gap: 6px; height: 200px; }
.rs-cols li { flex: 1; height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 6px; }
.rs-cols span { display: flex; align-items: flex-end; }
.rs-cols i { width: 100%; height: calc(var(--v) / var(--max, 100) * 100%); border-radius: 6px 6px 2px 2px; background: var(--c, #3A4A60); transform-origin: bottom; scale: 1 0; transition: scale 1s cubic-bezier(.2,.8,.2,1); }
.rs-cols li:nth-child(n) i { transition-delay: calc(var(--d, 0) * 1s); }
.rs-cols.is-in i { scale: 1 1; }
.rs-cols b { font: 11px var(--mono); text-align: center; color: var(--muted); }
.rs-cols--time i { background: #16384A; }
.rs-cols--time .is-low i { background: #C4582E; }
.rs-bench { position: absolute; left: 0; right: 0; height: 0; display: flex; justify-content: flex-end; align-items: flex-end; border-top: 2px dashed #C4582E; font: 11px/1.6 var(--mono); color: #C4582E; z-index: 1; pointer-events: none; bottom: calc(22px + 178px * var(--v) / 100); } /* bars: 178px tall above a 22px label row; the text sits just above the line */
@media (max-width: 800px) { .wv-bars li { grid-template-columns: 7.5em 1fr 3em; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .rs-cols i { scale: 1 1; transition: none; } }

/* =====================================================================
   Image-led case study layout: big picture panels, short story beats.
   Each page sets --panel (main color), --panel-ink and --panel-soft.
   ===================================================================== */
.st { --panel: var(--blue-soft); --panel-ink: var(--charcoal); --panel-soft: var(--cream-deep); --accent-ink: var(--label); }
.st-wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.st-eyebrow { display: flex; align-items: center; gap: 10px; font: 700 12px var(--mono) !important; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-ink); margin-bottom: 14px; }
.st-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* cover: one big colored panel, oversized wordmark behind the work */
.st-cover {
  position: relative; overflow: hidden;
  margin: clamp(88px, 9vw, 110px) var(--gutter) 0;
  height: clamp(420px, calc(100svh - 128px), 860px);
  border-radius: clamp(20px, 2.4vw, 32px);
  background: var(--panel); color: var(--panel-ink);
  display: grid; place-items: center;
  padding: clamp(20px, 3vw, 44px) clamp(16px, 4vw, 64px) clamp(44px, 6vw, 96px);
}
.st-cover .st-vid, .st-cover .st-browser { width: min(100%, var(--w, 1000px), calc((100svh - 128px - 150px) * var(--ar, 1.6))); }
.st-cover .st-trio, .st-cover .st-duo { height: 100%; }
.st-cover__word {
  position: absolute; left: 50%; bottom: -.2em; translate: -50% 0;
  font-weight: 600; font-size: clamp(72px, 17vw, 270px); line-height: 1; letter-spacing: -.06em; white-space: nowrap;
  color: var(--panel-ink); opacity: .16; pointer-events: none; user-select: none;
}
.st-cover > :not(.st-cover__word) { position: relative; }

/* intro: big uppercase headline + scope / role / team */
.st-head { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(28px, 6vw, 96px); padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 88px); }
.st-title { font-weight: 500; font-size: clamp(32px, 4.4vw, 62px); line-height: 1; letter-spacing: -.045em; text-transform: uppercase; margin-bottom: 26px; max-width: 18ch; }
.case-page main .st-head p:not(.st-eyebrow) { max-width: 56ch; color: var(--muted); }
.st-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; align-content: start; padding-top: 34px; }
.st-meta dt { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.st-meta dd { font-size: 15px; line-height: 1.55; color: var(--muted); }
.st-meta dd + dt { margin-top: 20px; }
.st-meta .btn { margin-top: 4px; }
.st-meta__full { grid-column: 1 / -1; }

/* picture panels */
.st-panel {
  position: relative; overflow: hidden; margin: 0;
  border-radius: clamp(20px, 2.4vw, 32px);
  background: var(--panel); color: var(--panel-ink);
  display: grid; place-items: center;
  padding: clamp(16px, 3vw, 44px);
}
.st-panel--soft { background: var(--panel-soft); color: var(--ink); }
.st-panel--tall { min-height: clamp(420px, 50vw, 720px); }
.st-panel--bleed { padding: 0; }
.st-panel--bleed > img { width: 100%; height: 100%; object-fit: cover; }
.st-panel figcaption, .st-cap { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.st-panel > figcaption { position: absolute; left: clamp(16px, 2vw, 26px); bottom: clamp(14px, 1.8vw, 22px); }
.st-img { display: block; max-width: 100%; height: auto; border-radius: clamp(10px, 1.2vw, 16px); box-shadow: 0 40px 70px -40px rgba(0,0,0,.55); }
.st-block + .st-block { margin-top: clamp(12px, 1.4vw, 18px); }
.st-grid { display: grid; gap: clamp(12px, 1.4vw, 18px); grid-template-columns: repeat(var(--cols, 2), 1fr); }
.st-grid > .st-panel { min-height: clamp(260px, 30vw, 460px); }
.st-span-2 { grid-column: span 2; }

/* story beats: small label, one sentence headline, two lines of copy */
.st-beat { max-width: 560px; padding: clamp(48px, 6vw, 96px) 0 clamp(28px, 3.4vw, 52px); }
.st-beat--right { margin-left: auto; margin-right: clamp(0px, 6vw, 90px); }
.st-beat--left { margin-left: clamp(0px, 6vw, 90px); }
.st-beat h2, .st-row h2 { font-weight: 500; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 16px; }
.case-page main .st-beat p:not(.st-eyebrow), .case-page main .st-row p:not(.st-eyebrow) { color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); }
.st-hmw { padding: clamp(48px, 6vw, 96px) 0; max-width: 24ch; font-weight: 500; font-size: clamp(30px, 4vw, 58px) !important; line-height: 1.04 !important; letter-spacing: -.045em !important; margin-left: clamp(0px, 6vw, 90px); }
.st-hmw span { color: var(--muted); }

/* image + text side by side */
.st-row { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(8px, 1.4vw, 18px) 0; }
.st-row--flip > :first-child { order: 2; }
.st-row > .st-panel { min-height: clamp(320px, 38vw, 600px); }
.st-row__text { max-width: 460px; }

/* phones and browser windows */
.st-phone { width: clamp(170px, 20vw, 290px); aspect-ratio: 9 / 18.5; border-radius: clamp(26px, 3vw, 42px); overflow: hidden; border: clamp(6px, .7vw, 10px) solid #111; background: #111; box-shadow: 0 0 0 1.5px #3A3A3C, 0 50px 80px -40px rgba(0,0,0,.6); }
.st-phone img, .st-phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-phone--ratio { aspect-ratio: auto; height: auto; }
.st-phone--ratio img { height: auto; }
.st-browser { width: min(100%, 980px); border-radius: clamp(10px, 1.2vw, 16px); overflow: hidden; background: #fff; box-shadow: 0 50px 80px -44px rgba(0,0,0,.6); }
.st-browser::before { content: ""; display: block; height: clamp(18px, 2vw, 28px); background-color: #ECECEC; background-image: radial-gradient(circle, #FF5F57 0 4px, transparent 4.5px), radial-gradient(circle, #FEBC2E 0 4px, transparent 4.5px), radial-gradient(circle, #28C840 0 4px, transparent 4.5px); background-size: 14px 100%; background-position: 10px 0, 26px 0, 42px 0; background-repeat: no-repeat; }
.st-browser img { display: block; width: 100%; height: auto; }

/* arrangements */
.st-duo, .st-trio { display: flex; justify-content: center; align-items: center; gap: clamp(12px, 3vw, 44px); width: 100%; }
.st-duo > *, .st-trio > * { min-width: 0; flex-shrink: 1; }
.st-trio > :nth-child(2) { translate: 0 -6%; }
.st-trio > :nth-child(1), .st-trio > :nth-child(3) { translate: 0 6%; }
.st-fan { display: flex; justify-content: center; width: 100%; }
.st-fan > * { width: min(30%, 320px); margin: 0 -2.5%; transition: transform .6s cubic-bezier(.34,1.5,.5,1); }
.st-fan > :nth-child(1) { transform: rotate(-8deg) translateY(6%); }
.st-fan > :nth-child(2) { position: relative; z-index: 1; }
.st-fan > :nth-child(3) { transform: rotate(8deg) translateY(6%); }
.st-panel:hover .st-fan > :nth-child(1) { transform: rotate(-12deg) translate(-8%, 4%); }
.st-panel:hover .st-fan > :nth-child(3) { transform: rotate(12deg) translate(8%, 4%); }

/* chips (used for flows, audiences, collaborations) */
.st-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
.st-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: clamp(14px, 1.3vw, 18px); box-shadow: 0 14px 30px -20px rgba(0,0,0,.4); }
.st-chips--flow li:not(:last-child)::after { content: "→"; margin-left: 8px; opacity: .45; }
.st-chips small { font: 12px var(--mono); opacity: .6; }
.st-chips i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.st-chips--left { justify-content: flex-start; margin-top: 22px; }

/* big numbers */
.st-stats { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: clamp(12px, 1.4vw, 18px); margin-bottom: clamp(12px, 1.4vw, 18px); }
.st-stat { border-radius: clamp(18px, 2vw, 28px); padding: clamp(20px, 2.4vw, 32px); background: var(--panel-soft); display: grid; gap: 8px; align-content: space-between; min-height: clamp(150px, 16vw, 220px); }
.st-stat strong { font-weight: 500; font-size: clamp(36px, 4.6vw, 68px); letter-spacing: -.05em; line-height: 1; }
.st-stat span { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.st-stat--main { background: var(--panel); color: var(--panel-ink); }
.st-stat--main span { color: inherit; opacity: .8; }

/* quotes, as big type */
.st-quote { font-weight: 500; font-size: clamp(24px, 3vw, 44px); line-height: 1.12; letter-spacing: -.035em; max-width: 26ch; text-align: center; }
.st-quote cite { display: block; margin-top: 18px; font: 12px var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.st-quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.4vw, 18px); }
.st-quotes .st-quote { font-size: clamp(20px, 2vw, 30px); }

/* numbered cards (recommendations) */
.st-cards { list-style: none; counter-reset: c; display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); gap: clamp(10px, 1.2vw, 16px); width: 100%; }
.st-cards li { counter-increment: c; border-radius: 22px; padding: 22px 20px 24px; background: var(--surface); color: var(--ink); display: grid; align-content: start; gap: 10px; min-height: 200px; }
.st-cards li::before { content: counter(c, decimal-leading-zero); font: 700 12px var(--mono); color: var(--accent-ink); }
.st-cards b { font-weight: 600; font-size: 19px; line-height: 1.15; letter-spacing: -.02em; }
.st-cards span { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* view more work */
.st-more { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(64px, 8vw, 120px); padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.st-more > div > span { font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.st-more strong { display: block; margin-top: 10px; font-weight: 500; font-size: clamp(34px, 6vw, 92px); line-height: .95; letter-spacing: -.05em; text-transform: uppercase; }
.st-more__arrow { flex: none; display: grid; place-items: center; width: clamp(56px, 7vw, 96px); aspect-ratio: 1; border-radius: 50%; background: var(--panel); color: var(--panel-ink); font-size: clamp(22px, 3vw, 38px); transition: transform .5s cubic-bezier(.34,1.8,.5,1); }
.st-more:hover .st-more__arrow { transform: translateX(10px) rotate(-12deg); }

/* reveal on scroll */
.st-js .st-rv { opacity: 0; translate: 0 48px; transition: opacity .9s ease, translate 1s cubic-bezier(.2,.8,.2,1); }
.st-js .st-rv.is-in { opacity: 1; translate: 0 0; }

@media (max-width: 860px) {
  .st-head, .st-row { grid-template-columns: 1fr; }
  .st-row--flip > :first-child { order: 0; }
  .st-grid { grid-template-columns: 1fr; }
  .st-span-2 { grid-column: auto; }
  .st-stats { grid-template-columns: 1fr 1fr; }
  .st-cards { grid-template-columns: 1fr 1fr; }
  .st-quotes { grid-template-columns: 1fr; }
  .st-beat--right, .st-beat--left, .st-hmw { margin-left: 0; margin-right: 0; }
  .st-beat, .st-hmw { padding: 44px 0 24px; }
  .st-duo .st-phone, .st-trio .st-phone { width: 26vw; }
}
@media (max-width: 520px) {
  .st-cards { grid-template-columns: 1fr; }
  .st-cards li { min-height: 0; }
  .st-meta { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .st-js .st-rv { opacity: 1; translate: none; transition: none; } }

/* page colors */
.st--wv { --panel: #C8102E; --panel-ink: #FFF6E5; --panel-soft: color-mix(in srgb, #C8102E 11%, var(--paper)); --accent-ink: #C8102E; }
.st--rs { --panel: #16384A; --panel-ink: #F5F0E7; --panel-soft: color-mix(in srgb, #16384A 10%, var(--paper)); --accent-ink: #2F6E7E; }
.st--ev { --panel: #22242C; --panel-ink: #F5F0E7; --panel-soft: color-mix(in srgb, var(--blue) 18%, var(--paper)); --accent-ink: var(--label); }
.st--rb { --panel: #DDE8E0; --panel-ink: #1F3A2A; --panel-soft: color-mix(in srgb, #4E7A5B 14%, var(--paper)); --accent-ink: #3F6B4E; }
:root[data-theme="dark"] .st--rb { --panel: #CFDFD3; --accent-ink: #9FCBA9; }
.st--sg { --panel: #4F6B43; --panel-ink: #F5F0E7; --panel-soft: color-mix(in srgb, #7FA36E 20%, var(--paper)); --accent-ink: #4F6B43; }
:root[data-theme="dark"] .st--wv { --accent-ink: #FF8595; }
:root[data-theme="dark"] .st--rs { --panel: #1D4A5F; --accent-ink: #9ACB8A; }
:root[data-theme="dark"] .st--ev { --panel: #2B3160; }
:root[data-theme="dark"] .st--sg { --accent-ink: #A9CF95; }

/* looping screen recordings; scaled a touch so the export watermark in the corner is cropped out */
.st-vid { width: min(100%, var(--w, 1000px)); border-radius: clamp(10px, 1.2vw, 16px); overflow: hidden; box-shadow: 0 50px 80px -44px rgba(0,0,0,.6); background: #000; }
.st-vid video { display: block; width: 100%; height: auto; transform-origin: 0 0; scale: 1.09; margin-bottom: -9%; }
.st-vid--clean video { scale: 1; margin: 0; }
.st-panel .st-img, .st-panel .st-vid { transition: scale .8s cubic-bezier(.2,.8,.2,1); }
.st-panel:hover > .st-img, .st-panel:hover > .st-vid { scale: 1.02; }

/* tap-through app flow: a phone that steps through real screens */
.st-flow { display: grid; justify-items: center; gap: 22px; width: 100%; }
.st-flow__phone { position: relative; cursor: pointer; }
.st-flow__phone img { position: absolute; inset: 0; opacity: 0; translate: 12% 0; transition: opacity .45s ease, translate .6s cubic-bezier(.2,.8,.2,1); }
.st-flow__phone img.is-on { opacity: 1; translate: 0 0; }
.st-flow__phone img.is-off { translate: -12% 0; }
.st-flow__steps { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 640px; }
.st-flow__steps button { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 8px 12px; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--panel-ink) 16%, transparent); color: inherit; cursor: pointer; transition: background .25s, color .25s; }
.st-flow__steps button:hover { background: color-mix(in srgb, var(--panel-ink) 30%, transparent); }
.st-flow__steps button[aria-current="true"] { background: var(--panel-ink); color: var(--panel); }
.st-flow__bar { width: min(260px, 60%); height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--panel-ink) 20%, transparent); overflow: hidden; }
.st-flow__bar i { display: block; height: 100%; background: var(--panel-ink); transform-origin: left; scale: 0 1; }
.st-flow__bar i.is-run { animation: st-bar var(--dur, 2.8s) linear forwards; }
@keyframes st-bar { to { scale: 1 1; } }

/* live prototype: loads the Figma embed only when asked */
.st-proto { position: relative; width: min(100%, 420px); aspect-ratio: 5 / 8; border-radius: clamp(18px, 2vw, 26px); overflow: hidden; }
.st-proto img { inset: 6% 24%; width: auto; height: 88%; margin: auto; border-radius: 26px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.st-proto img, .st-proto iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.st-proto button { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; border: 0; cursor: pointer; background: rgba(20,22,18,.45); color: #fff; font: 600 17px var(--sans); backdrop-filter: blur(2px); transition: background .3s; }
.st-proto button:hover { background: rgba(20,22,18,.3); }
.st-proto button span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #111; font-size: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: st-pulse 2s ease-in-out infinite; }
@keyframes st-pulse { 50% { box-shadow: 0 0 0 14px rgba(255,255,255,.18), 0 10px 30px rgba(0,0,0,.35); } }
.st-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .st-proto button span { animation: none; } .st-flow__phone img { transition: none; } }
.st-phone--fig, .st-flow__phone { aspect-ratio: 428 / 926; }

/* SYRIOS cover: real coins from the SYRIOS catalog, floating at different depths */
.st-cover > .st-coins__field { position: absolute; inset: 0; }
.st-coin { position: absolute; left: var(--x); top: var(--y); width: clamp(64px, var(--s), 220px); translate: calc(-50% + var(--mx, 0) * var(--d) * 26px) calc(-50% + var(--my, 0) * var(--d) * 20px); rotate: var(--r); filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); animation: st-float calc(6s + var(--d) * 3s) ease-in-out infinite alternate; transition: translate .8s cubic-bezier(.2,.8,.2,1); opacity: .95; }
@keyframes st-float { to { transform: translateY(-14px) rotate(6deg); } }
.st-coinflip { position: relative; width: clamp(220px, min(34vw, 52svh), 480px); aspect-ratio: 1; transform-style: preserve-3d; animation: st-flip 9s cubic-bezier(.65,0,.35,1) infinite; translate: calc(var(--mx, 0) * -10px) calc(var(--my, 0) * -8px); transition: translate .8s cubic-bezier(.2,.8,.2,1); }
.st-coinflip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; backface-visibility: hidden; filter: drop-shadow(0 40px 50px rgba(0,0,0,.55)); }
.st-coinflip img + img { transform: rotateY(180deg); }
@keyframes st-flip { 0%, 38% { transform: perspective(1400px) rotateY(0) rotateZ(-4deg); } 50%, 88% { transform: perspective(1400px) rotateY(180deg) rotateZ(4deg); } 100% { transform: perspective(1400px) rotateY(360deg) rotateZ(-4deg); } }
.st-url { position: absolute !important; left: clamp(14px, 2vw, 26px); top: clamp(14px, 2vw, 26px); display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.12); color: var(--panel-ink); font: 13px var(--mono); letter-spacing: .02em; backdrop-filter: blur(8px); transition: background .25s; z-index: 2; }
.st-url:hover { background: rgba(255,255,255,.22); }
.st-url i { width: 8px; height: 8px; border-radius: 50%; background: #7BE08C; box-shadow: 0 0 0 4px rgba(123,224,140,.25); }
@media (prefers-reduced-motion: reduce) { .st-coin, .st-coinflip { animation: none; } }
@media (max-width: 860px) {
  .st-cover { height: auto; min-height: 380px; }
  .st-coin { width: clamp(48px, calc(var(--s) * 1.8), 120px); }
}

/* ---------- Instagram carousel post (swipe, arrows, dots) ---------- */
.igp { width: min(100%, var(--w, 420px)); background: #fff; color: #111; border-radius: 16px; overflow: hidden; box-shadow: 0 50px 80px -40px rgba(0,0,0,.55); font: 14px/1.35 -apple-system, "Inter Tight", system-ui, sans-serif; text-align: left; }
.igp__head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.igp__av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #C8102E; color: #fff; font: 800 11px var(--sans); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #E1306C; }
.igp__head b { font-weight: 600; }
.igp__head small { display: block; font-size: 12px; color: #737373; }
.igp__head span { margin-left: auto; letter-spacing: 2px; font-weight: 700; }
.igp__media { position: relative; }
.igp__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 5; overscroll-behavior-x: contain; }
.igp__track::-webkit-scrollbar { display: none; }
.igp__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.igp__count { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; }
.igp__nav { position: absolute; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: #111; font-size: 15px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: opacity .2s; }
.igp__nav--prev { left: 10px; } .igp__nav--next { right: 10px; }
.igp__nav[disabled] { opacity: 0; pointer-events: none; }
.igp__bar { display: flex; align-items: center; gap: 14px; padding: 10px 12px 4px; font-size: 22px; }
.igp__bar svg { width: 24px; height: 24px; fill: none; stroke: #111; stroke-width: 1.8; }
.igp__bar .igp__heart.is-on { fill: #FF3040; stroke: #FF3040; animation: igp-pop .4s cubic-bezier(.34,1.8,.5,1); }
@keyframes igp-pop { 50% { scale: 1.3; } }
.igp__dots { display: flex; gap: 4px; margin: 0 auto; }
.igp__dots i { width: 6px; height: 6px; border-radius: 50%; background: #C7C7C7; transition: background .2s; }
.igp__dots i.is-on { background: #0095F6; }
.igp__bar .igp__save { margin-left: auto; }
.igp__cap { padding: 2px 12px 14px; }
.igp__cap b { font-weight: 600; }
.igp__cap small { display: block; margin-top: 4px; color: #737373; font-size: 12px; }

/* ---------- digital signage screen, cycles through the banners ---------- */
.st-tv { width: min(100%, var(--w, 1000px)); }
.st-tv__screen { position: relative; aspect-ratio: 1800 / 455; border: clamp(8px, 1vw, 14px) solid #111; border-radius: 10px; background: #000; overflow: hidden; box-shadow: 0 0 0 2px #2A2A2A, 0 60px 80px -40px rgba(0,0,0,.7); }
.st-tv__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.st-tv__screen img.is-on { opacity: 1; }
.st-tv__screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.14) 0 22%, transparent 22.2% 60%, rgba(255,255,255,.05) 60.2% 70%, transparent 70.2%); pointer-events: none; }
.st-tv__mount { width: 18%; height: clamp(10px, 1.2vw, 16px); margin: 0 auto; background: linear-gradient(#2A2A2A, #111); border-radius: 0 0 6px 6px; }

/* ---------- flip-through booklet ---------- */
.st-book { --pw: min(40vw, 470px, 46svh * 1.3); position: relative; width: calc(var(--pw) * 2); aspect-ratio: 1698 / 1100; transition: translate .9s cubic-bezier(.3,.7,.2,1); cursor: pointer; user-select: none; }
.st-book[data-at="start"] { translate: -25% 0; }
.st-book[data-at="end"] { translate: 25% 0; }
.st-leaf { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.3,.7,.2,1); transform: perspective(2600px) rotateY(0); }
.st-leaf.is-flipped { transform: perspective(2600px) rotateY(-180deg); }
.st-leaf > div { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 2px 6px 6px 2px; overflow: hidden; box-shadow: 0 30px 50px -30px rgba(0,0,0,.55); }
.st-leaf > div + div { transform: rotateY(180deg); border-radius: 6px 2px 2px 6px; }
.st-leaf img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-leaf > div::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 12%); pointer-events: none; }
.st-leaf > div + div::after { background: linear-gradient(270deg, rgba(0,0,0,.18), transparent 12%); }
.st-book__ui { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.st-book__ui button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--panel-ink); color: var(--panel); font-size: 18px; cursor: pointer; transition: opacity .2s, scale .3s; }
.st-book__ui button:hover { scale: 1.08; }
.st-book__ui button[disabled] { opacity: .3; cursor: default; scale: 1; }
.st-book__ui span { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; min-width: 11ch; text-align: center; }
.st-bookwrap { display: grid; justify-items: center; width: 100%; }

/* ---------- story-style phone: tap through like an Instagram story ---------- */
.st-story { position: relative; cursor: pointer; }
.st-story img { position: absolute; inset: 0; opacity: 0; scale: 1.04; transition: opacity .6s ease, scale 3.4s linear; }
.st-story img.is-on { opacity: 1; scale: 1; }
.st-story__bars { position: absolute; z-index: 2; left: 8px; right: 8px; top: 10px; display: flex; gap: 3px; }
.st-story__bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.4); overflow: hidden; }
.st-story__bars i::after { content: ""; display: block; height: 100%; background: #fff; scale: var(--f, 0) 1; transform-origin: left; }
.st-story__bars i.is-done { --f: 1; }
.st-story__bars i.is-run::after { animation: st-bar var(--dur, 3s) linear forwards; }
.st-story__who { position: absolute; z-index: 2; left: 10px; top: 20px; display: flex; align-items: center; gap: 7px; color: #fff; font: 600 12px var(--sans); text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.st-story__who i { width: 22px; height: 22px; border-radius: 50%; background: #C8102E; display: grid; place-items: center; font: 800 8px var(--sans); font-style: normal; box-shadow: 0 0 0 1.5px #fff; }

.st-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: #FFE8A3; color: #5A4300; font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.st-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E0A800; animation: st-blink 1.4s ease-in-out infinite; }
@keyframes st-blink { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .st-leaf, .st-book { transition: none; } .st-story img { transition: none; } }
@media (max-width: 860px) {
  .st-book { --pw: 44vw; }
  .st-book[data-at="start"], .st-book[data-at="end"] { translate: 0 0; }
}

/* split cover: huge type on one side, the work on the other */
.st-cover--split { grid-template-columns: 1.2fr 1fr; place-items: center; gap: clamp(16px, 3vw, 48px); padding-bottom: clamp(20px, 3vw, 44px); }
.st-cover--split .st-cover__type { justify-self: start; color: var(--panel-ink); }
.st-cover__type strong { display: block; font-weight: 600; font-size: clamp(64px, 11.5vw, 190px); line-height: .82; letter-spacing: -.065em; }
.st-cover__type span { display: block; margin-top: clamp(14px, 2vw, 26px); font: 13px var(--mono); text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.st-cover--split .st-phone { width: clamp(200px, min(22vw, calc((100svh - 330px) * .49)), 330px); }
@media (max-width: 860px) {
  .st-cover--split { grid-template-columns: 1fr; padding-top: 32px; }
  .st-cover--split .st-cover__type { justify-self: center; text-align: center; }
  .st-cover--split .st-phone { width: 56vw; }
}

/* RecipeBox cover: real Figma screens, a phone that steps through the app, feature pills popping in */
.rb-hero__stage { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 44px); height: 100%; width: 100%; }
.rb-hero .st-phone { width: clamp(150px, min(19vw, calc((100svh - 330px) * .46)), 300px); }
.rb-hero__side { scale: .84; opacity: .96; }
.rb-hero__side--l { rotate: -7deg; translate: 0 6%; animation: st-bob 6s ease-in-out infinite alternate; }
.rb-hero__side--r { rotate: 7deg; translate: 0 6%; animation: st-bob 7s ease-in-out -2s infinite alternate; }
@keyframes st-bob { to { transform: translateY(-14px); } }
.rb-hero .st-flow { width: auto; }
.rb-pill { position: absolute; z-index: 3; padding: 11px 16px; border-radius: 999px; background: #fff; color: #1F3A2A; font: 600 clamp(12px, 1.1vw, 15px) var(--sans); white-space: nowrap; box-shadow: 0 20px 40px -18px rgba(31,58,42,.55); opacity: 0; animation: rb-pop 12s cubic-bezier(.34,1.5,.5,1) infinite; }
.rb-pill--1 { left: 14%; top: 18%; }
.rb-pill--2 { right: 12%; top: 30%; animation-delay: 3s; background: #3F6B4E; color: #fff; }
.rb-pill--3 { left: 10%; bottom: 22%; animation-delay: 6s; }
.rb-pill--4 { right: 15%; bottom: 16%; animation-delay: 9s; background: #F2A07B; color: #1F2A22; }
@keyframes rb-pop { 0% { opacity: 0; translate: 0 14px; scale: .9; } 4%, 24% { opacity: 1; translate: 0 0; scale: 1; } 30%, 100% { opacity: 0; translate: 0 -10px; scale: .96; } }
@media (max-width: 860px) {
  .rb-hero .st-phone { width: 34vw; }
  .rb-hero__side { display: none; }
  .rb-pill { font-size: 11px; padding: 8px 12px; }
  .rb-pill--1, .rb-pill--3 { left: 4%; } .rb-pill--2, .rb-pill--4 { right: 4%; }
}
@media (prefers-reduced-motion: reduce) { .rb-pill { animation: none; opacity: 1; } .rb-hero__side { animation: none; } }

/* award badge above a case study title */
.st-award { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 8px 16px 8px 10px; border-radius: 999px; background: linear-gradient(135deg, #C8102E, #9E0B24); color: #FFF3D6; font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; box-shadow: 0 14px 30px -16px rgba(158,11,36,.8); }
.st-award svg { width: 20px; height: 20px; fill: #F5CE62; animation: spin 12s linear infinite; }

/* drag to compare: before on the left, after on the right */
.st-compare { --pos: 50%; position: relative; width: min(100%, var(--w, 1100px)); border-radius: clamp(10px, 1.2vw, 16px); overflow: hidden; box-shadow: 0 50px 80px -44px rgba(0,0,0,.6); user-select: none; touch-action: pan-y; }
.st-compare img { display: block; width: 100%; height: auto; pointer-events: none; }
.st-compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.st-compare__after img { height: 100%; object-fit: cover; }
.st-compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; translate: -50% 0; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.35); }
.st-compare__line::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; font: 700 16px var(--sans); letter-spacing: 2px; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.st-compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.st-compare__tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; pointer-events: none; }
.st-compare__tag--before { left: 14px; } .st-compare__tag--after { right: 14px; background: #2F6BD1; }

/* browser that scrolls a full-page screenshot on its own */
.st-scrollshot { width: min(100%, var(--w, 1000px)); border-radius: clamp(10px, 1.2vw, 16px); overflow: hidden; background: #fff; box-shadow: 0 50px 80px -44px rgba(0,0,0,.6); }
.st-scrollshot::before { content: ""; display: block; height: clamp(18px, 2vw, 28px); background-color: #ECECEC; background-image: radial-gradient(circle, #FF5F57 0 4px, transparent 4.5px), radial-gradient(circle, #FEBC2E 0 4px, transparent 4.5px), radial-gradient(circle, #28C840 0 4px, transparent 4.5px); background-size: 14px 100%; background-position: 10px 0, 26px 0, 42px 0; background-repeat: no-repeat; }
.st-scrollshot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; animation: st-scrollshot 26s cubic-bezier(.45,0,.55,1) infinite alternate; }
.st-scrollshot:hover img { animation-play-state: paused; }
@keyframes st-scrollshot { 0%, 6% { object-position: 50% 0; } 94%, 100% { object-position: 50% 100%; } }

/* slide deck viewer (reuses the carousel post script) */
.igp--deck { --w: 1100px; border-radius: 14px; }
.igp--deck .igp__track { aspect-ratio: 1600 / 1035; }
.igp--deck .igp__track img { object-fit: contain; background: #fff; }
.igp--deck .igp__bar { justify-content: center; padding: 12px; }
.igp--deck .igp__nav { width: 40px; height: 40px; font-size: 20px; }

/* small feature cards (why the redesign made sense) */
.st-why { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.2vw, 16px); width: 100%; }
.st-why li { border-radius: 22px; padding: 22px; background: var(--surface); color: var(--ink); display: grid; gap: 10px; align-content: start; }
.st-why b { font-weight: 600; font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
.st-why span { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.st-why em { font-style: normal; display: flex; align-items: baseline; gap: 8px; font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); }
.st-why em s { opacity: .55; }
@media (max-width: 860px) { .st-why { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .st-scrollshot img { animation: none; } .st-award svg { animation: none; } }

.st--m3 { --panel: #1F4F9E; --panel-ink: #F5F0E7; --panel-soft: color-mix(in srgb, #2F6BD1 12%, var(--paper)); --accent-ink: #2F6BD1; }
.st--gv { --panel: #9B4B2B; --panel-ink: #F9F4EA; --panel-soft: color-mix(in srgb, #9B4B2B 12%, var(--paper)); --accent-ink: #9B4B2B; }
.st--bff { --panel: #1C332C; --panel-ink: #F1EADC; --panel-soft: color-mix(in srgb, #C7D92D 18%, var(--paper)); --accent-ink: #4F6B2A; }
.st--hue { --panel: #B0457F; --panel-ink: #FFF3FA; --panel-soft: color-mix(in srgb, #E7A1CB 22%, var(--paper)); --accent-ink: #A0386F; }
:root[data-theme="dark"] .st--m3 { --accent-ink: #8FB4F5; }
:root[data-theme="dark"] .st--gv { --accent-ink: #E0A181; }
:root[data-theme="dark"] .st--bff { --panel: #264A3F; --accent-ink: #C7D92D; }
:root[data-theme="dark"] .st--hue { --accent-ink: #F2A6D0; }
.st-compare--phone { width: clamp(240px, 26vw, 360px); border-radius: clamp(28px, 3vw, 42px); border: 8px solid #111; box-shadow: 0 0 0 1.5px #3A3A3C, 0 50px 80px -40px rgba(0,0,0,.6); }
.st-compare--phone .st-compare__tag { top: 18px; font-size: 10px; }
.st-compare--phone .st-compare__tag--before { left: 12px; } .st-compare--phone .st-compare__tag--after { right: 12px; }
