/*
  DAAL SCENE CASE STUDY — EDITABLE CSS
  Loads after style.css and case-study.css, only on daal-scene.html.
  Brand colours are in :root below. Motion lives in daal-scene.js.

  01 Fonts + tokens      06 Stats band        11 Slogan rail
  02 Page chrome         07 Chapters          12 Website intro
  03 Hero                08 Figures           13 Reel
  04 Intro + meta        09 Rule statement    14 Deliverables + next
  05 Cover zoom          10 Palette           15 Mobile + reduced motion
*/

/* 01. FONTS + TOKENS ------------------------------------------------------ */
@font-face { font-family: "Luckiest Guy"; src: url("assets/fonts/luckiest-guy.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Caveat Brush"; src: url("assets/fonts/caveat-brush.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("assets/fonts/space-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("assets/fonts/bricolage-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("assets/fonts/bricolage-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

.ds-page {
  --cream: #FFF4DC; --olive: #263B2A; --orange: #F15A29; --yellow: #E9B949; --olive-2: #1c2b1f;
  --lucky: "Luckiest Guy", "Clash Display", Arial, sans-serif;
  --brush: "Caveat Brush", "Comic Sans MS", cursive;
  --mono: "Space Mono", ui-monospace, monospace;
  --grot: "Bricolage Grotesque", Inter, Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  background: var(--cream);
  color: var(--olive);
}
.ds-mono { font: 700 clamp(10px, .75vw, 13px)/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; }

/* 02. PAGE CHROME: progress bar, chapter chip, topbar, cursor, toast ------ */
.ds-progress { position: fixed; z-index: 120; top: 0; left: 0; right: 0; height: 4px; pointer-events: none; }
.ds-progress span { display: block; height: 100%; background: var(--yellow); transform: scaleX(var(--p, 0)); transform-origin: left; box-shadow: 0 0 12px rgb(233 185 73 / 60%); }
.ds-chip { position: fixed; z-index: 110; left: var(--gutter); bottom: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 99px; background: var(--olive); color: var(--cream); font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 16px 40px -12px rgb(0 0 0 / 45%); opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
.ds-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgb(241 90 41 / 30%); }
.ds-chip.is-on { opacity: 1; transform: none; }
.ds-chip span { display: inline-block; }
.ds-chip.is-swap span { animation: chip-swap .45s var(--ease); }
@keyframes chip-swap { from { opacity: 0; transform: translateY(8px); } }
.ds-topbar { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; color: var(--cream); }
.ds-topbar .case-back { color: var(--cream); }
.ds-cursor { position: fixed; z-index: 130; top: 0; left: 0; display: grid; place-items: center; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: var(--yellow); color: var(--olive); font: 400 18px/1 var(--lucky); padding-top: 4px; pointer-events: none; opacity: 0; transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) scale(.2) rotate(-12deg); transition: opacity .25s, transform .2s var(--ease); box-shadow: 0 14px 30px rgb(0 0 0 / 25%); }
.ds-cursor.is-on { opacity: 1; transform: translate3d(var(--cx), var(--cy), 0) scale(1) rotate(-8deg); }
.ds-toast { position: fixed; z-index: 140; left: 50%; bottom: 28px; padding: 14px 22px; border-radius: 99px; background: var(--olive); color: var(--cream); font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: translate(-50%, 20px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.ds-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none), (max-width: 900px) { .ds-cursor { display: none; } }

/* 03. HERO --------------------------------------------------------------- */
.ds-hero { position: relative; min-height: max(100svh, 700px); overflow: hidden; background: var(--orange); color: var(--cream); isolation: isolate; }
.ds-hero-pat { position: absolute; inset: -40px; z-index: -1; background: url("assets/daal-scene/pat_orange.svg") 0 0 / 1400px auto; opacity: .32; animation: ds-drift 60s linear infinite; }
@keyframes ds-drift { to { background-position: -1400px -840px; } }
.ds-hero-top { position: absolute; top: clamp(80px, 9vw, 130px); left: 0; right: 0; display: flex; justify-content: space-between; gap: 20px; color: rgb(255 244 220 / 85%); }
.ds-hero-title { position: absolute; z-index: 3; left: var(--gutter); top: clamp(140px, 15vw, 230px); margin: 0; font: 400 clamp(96px, 17.5vw, 360px)/.8 var(--lucky); letter-spacing: 0; color: var(--cream); text-shadow: .045em .045em 0 var(--olive); }
.ds-hero-title .ln { display: block; white-space: nowrap; }
.ds-hero-title .ln + .ln { margin-left: .5em; }
.ds-hero-title .ln span { display: inline-block; }
.ds-plate { position: absolute; z-index: 2; right: -6vw; top: 50%; width: clamp(360px, 46vw, 900px); aspect-ratio: 1; margin-top: calc(clamp(360px, 46vw, 900px) / -2); filter: drop-shadow(0 50px 60px rgb(80 20 5 / 45%)); }
.ds-plate img { width: 100%; height: 100%; transform: rotate(var(--turn, 0deg)); }
.ds-float { --mx: 0px; --my: 0px; position: absolute; z-index: 4; translate: var(--mx) var(--my); transition: translate .8s var(--ease); }
.ds-bubble { left: calc(var(--gutter) + 41vw); top: clamp(150px, 13vw, 230px); padding: clamp(14px, 1.2vw, 22px) clamp(20px, 1.8vw, 32px); border: 3px solid var(--olive); border-radius: 30px 30px 30px 6px; background: var(--cream); color: var(--olive); font: 800 clamp(18px, 2vw, 38px)/1 var(--grot); letter-spacing: -.03em; box-shadow: 7px 7px 0 var(--olive); rotate: -3deg; }
.ds-bubble small { display: block; margin-top: 6px; text-align: right; font: 700 11px/1 var(--mono); opacity: .5; letter-spacing: .08em; }
.ds-burst { right: 30vw; bottom: 14%; display: grid; place-items: center; width: clamp(130px, 12vw, 230px); aspect-ratio: 1; rotate: -12deg; }
.ds-burst img { position: absolute; inset: 0; width: 100%; height: 100%; animation: ds-spin 18s linear infinite; }
.ds-burst span { position: relative; padding-top: 6%; color: var(--olive); font: 400 clamp(34px, 3.3vw, 64px)/.85 var(--lucky); text-align: center; }
@keyframes ds-spin { to { transform: rotate(360deg); } }
.ds-tag { padding: 8px 20px 6px; border: 3px solid var(--olive); border-radius: 12px; background: var(--cream); color: var(--olive); font: 400 clamp(20px, 1.9vw, 36px)/1.1 var(--brush); box-shadow: 5px 5px 0 var(--olive); white-space: nowrap; }
.ds-tag--a { right: 22vw; top: clamp(170px, 20vw, 300px); rotate: -7deg; }
.ds-tag--b { right: calc(var(--gutter) + 1vw); bottom: calc(clamp(64px, 6vw, 104px) + 5%); rotate: 5deg; background: var(--olive); color: var(--cream); border-color: var(--cream); box-shadow: 5px 5px 0 var(--cream); }
.ds-hero-deck { position: absolute; z-index: 3; left: var(--gutter); bottom: calc(clamp(64px, 6vw, 104px) + clamp(28px, 4vw, 70px)); max-width: min(40ch, 36vw); margin: 0; font: 500 clamp(16px, 1.35vw, 26px)/1.35 var(--grot); color: var(--cream); }
.ds-hero-deck em { display: block; margin-top: 6px; font: 400 clamp(22px, 1.9vw, 38px)/1.1 var(--brush); color: var(--yellow); font-style: normal; }
.ds-ticker { position: absolute; z-index: 5; left: -2%; right: -2%; bottom: 0; height: clamp(64px, 6vw, 104px); overflow: hidden; background: var(--olive); transform: rotate(-1.4deg) translateY(12%); transform-origin: left; }
.ds-ticker-track { display: flex; align-items: center; gap: clamp(22px, 2.4vw, 44px); width: max-content; height: 100%; padding-top: .18em; font: 400 clamp(26px, 2.8vw, 54px)/1 var(--lucky); color: var(--cream); white-space: nowrap; animation: ds-ticker 38s linear infinite; }
.ds-ticker-track i { font-style: normal; color: var(--yellow); }
@keyframes ds-ticker { to { transform: translateX(-33.333%); } }

/* Hero entrance (html.ds-ready is added by daal-scene.js) */
@media (prefers-reduced-motion: no-preference) {
  .ds-js .ds-hero-title .ln span { transform: translateY(80%) scale(.6) rotate(-10deg); opacity: 0; transition: transform .9s var(--pop), opacity .4s ease; transition-delay: calc(var(--i) * 60ms + 200ms); }
  .ds-js .ds-plate { transform: translateX(40%) rotate(-120deg) scale(.7); opacity: 0; transition: transform 1.5s var(--ease), opacity .8s ease; transition-delay: .3s; }
  .ds-js .ds-float { opacity: 0; scale: .4; transition: opacity .5s ease, scale .7s var(--pop), translate .8s var(--ease); }
  .ds-js .ds-bubble { transition-delay: .1s, .1s, 0s; } .ds-js .ds-burst { transition-delay: 1s, 1s, 0s; } .ds-js .ds-tag--a { transition-delay: 1.2s, 1.2s, 0s; } .ds-js .ds-tag--b { transition-delay: 1.35s, 1.35s, 0s; }
  .ds-js .ds-hero-deck, .ds-js .ds-hero-top { opacity: 0; transform: translateY(20px); transition: opacity .8s ease 1s, transform 1s var(--ease) 1s; }
  .ds-js .ds-ticker { transform: rotate(-1.4deg) translateY(120%); transition: transform 1s var(--ease) .9s; }
  .ds-ready .ds-hero-title .ln span { transform: none; opacity: 1; }
  .ds-ready .ds-plate { transform: none; opacity: 1; }
  .ds-ready .ds-float { opacity: 1; scale: 1; }
  .ds-ready .ds-hero-deck, .ds-ready .ds-hero-top { opacity: 1; transform: none; }
  .ds-ready .ds-ticker { transform: rotate(-1.4deg) translateY(12%); }
  .ds-hero-title .ln span:hover { animation: ds-jiggle .5s var(--pop); }
}
@keyframes ds-jiggle { 30% { transform: translateY(-10%) rotate(-6deg) scale(1.08); } 60% { transform: translateY(2%) rotate(3deg); } }

/* 04. INTRO + META ------------------------------------------------------- */
.ds-intro { padding-top: clamp(110px, 12vw, 220px); padding-bottom: clamp(70px, 8vw, 140px); }
.ds-label { margin: 0 0 clamp(20px, 2vw, 34px); color: var(--orange); }
.ds-deck { max-width: 20ch; margin: 0; font: 800 clamp(40px, 5.6vw, 118px)/.98 var(--grot); letter-spacing: -.05em; }
.ds-deck .dw { color: rgb(38 59 42 / 18%); transition: color .5s ease; }
.ds-deck .dw.is-lit { color: var(--olive); }
.ds-deck .hi .dw.is-lit { color: var(--orange); }
.ds-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1vw, 18px); margin: clamp(60px, 7vw, 120px) 0 0; }
.ds-meta div { padding: clamp(18px, 1.6vw, 28px); border: 2.5px solid var(--olive); border-radius: 20px; background: #fff; box-shadow: 6px 6px 0 var(--olive); transition: transform .4s var(--pop), box-shadow .4s var(--ease); }
.ds-meta div:nth-child(2) { rotate: 1deg; } .ds-meta div:nth-child(3) { rotate: -1deg; }
.ds-meta div:hover { transform: translate(-3px, -4px); box-shadow: 10px 10px 0 var(--orange); }
.ds-meta dt { margin-bottom: 14px; color: var(--orange); font: 700 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.ds-meta dd { margin: 0; font: 800 clamp(17px, 1.4vw, 26px)/1.15 var(--grot); letter-spacing: -.02em; }

/* 05. COVER ZOOM: frame scales from --z .78 to 1 as you scroll ------------ */
.ds-zoom { position: relative; height: 180vh; }
.ds-zoom-stick { position: sticky; top: 0; display: grid; place-items: center; height: 100vh; overflow: hidden; }
.ds-zoom-frame { position: relative; width: 100vw; height: 100vh; margin: 0; overflow: hidden; border-radius: calc((1 - var(--z, .78)) * 180px); transform: scale(var(--z, .78)); transform-origin: center; box-shadow: 0 60px 120px -50px rgb(38 59 42 / 60%); will-change: transform; }
.ds-zoom-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.15 - (var(--z, .78) - .78) * .6)); }
.ds-zoom-frame figcaption { position: absolute; left: 50%; top: 26px; padding: 10px 16px; border-radius: 99px; background: var(--olive); color: var(--cream); transform: translateX(-50%); }

/* 06. OVERVIEW + STATS ---------------------------------------------------- */
.ds-overview { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(30px, 5vw, 100px); padding-top: clamp(100px, 10vw, 190px); padding-bottom: clamp(100px, 10vw, 190px); }
.ds-ov-left { position: relative; }
.ds-ov-left h2 { position: sticky; top: 110px; margin: 0; font: 500 clamp(34px, 3.2vw, 64px)/1 "Clash Display", Arial, sans-serif; letter-spacing: -.03em; }
.ds-sticker { display: inline-block; margin-top: 30px; padding: 16px 22px; border-radius: 22px 22px 22px 4px; background: var(--orange); color: var(--cream); font: 400 clamp(22px, 1.9vw, 36px)/.95 var(--lucky); rotate: -5deg; box-shadow: 0 0 0 6px #fff, 0 20px 30px -10px rgb(0 0 0 / 25%); }
.ds-ov-right > p { margin: 0; font: 500 clamp(22px, 2.2vw, 42px)/1.28 var(--grot); letter-spacing: -.02em; }
.ds-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 20px); margin-top: clamp(50px, 5vw, 90px); }
.ds-tile { position: relative; min-height: clamp(180px, 15vw, 260px); padding: clamp(20px, 1.8vw, 30px); border-radius: 24px; overflow: hidden; transition: transform .5s var(--pop); }
.ds-tile:hover { transform: translateY(-8px) rotate(-1.5deg); }
.ds-tile p { margin: 22px 0 0; font: 800 clamp(20px, 1.7vw, 32px)/1.08 var(--grot); letter-spacing: -.03em; }
.ds-tile--o { background: var(--orange); color: var(--cream); } .ds-tile--ol { background: var(--olive); color: var(--cream); } .ds-tile--y { background: var(--yellow); color: var(--olive); }
.ds-tile--ol .ds-mono { color: var(--yellow); }
.ds-stats { position: relative; overflow: hidden; background: var(--olive) url("assets/daal-scene/pat_olive.svg") 0 0 / 1400px auto; color: var(--cream); }
.ds-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ds-stats-grid > div { padding: clamp(50px, 5vw, 90px) clamp(14px, 1.6vw, 30px); border-left: 1px dashed rgb(255 244 220 / 25%); }
.ds-stats-grid > div:first-child { border-left: 0; padding-left: 0; }
.ds-stats b { display: flex; align-items: baseline; gap: .12em; color: var(--yellow); font: 400 clamp(64px, 7.4vw, 150px)/.9 var(--lucky); font-variant-numeric: tabular-nums; }
.ds-stats b small { font-size: .38em; color: var(--cream); }
.ds-stats p { max-width: 24ch; margin: 18px 0 0; font: 500 clamp(14px, 1.05vw, 19px)/1.4 var(--grot); color: rgb(255 244 220 / 80%); }

/* 07. CHAPTERS ----------------------------------------------------------- */
.ds-chapter { position: relative; padding: clamp(90px, 10vw, 180px) 0 clamp(80px, 8vw, 150px); }
.ds-chapter--orange { background: var(--orange) url("assets/daal-scene/pat_orange.svg") 0 0 / 1400px auto; color: var(--cream); }
.ds-chapter--olive { background: var(--olive) url("assets/daal-scene/pat_olive.svg") 0 0 / 1400px auto; color: var(--cream); }
.ds-ch-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: clamp(20px, 3vw, 60px); margin-bottom: clamp(50px, 6vw, 110px); }
.ds-ch-num { font: 400 clamp(130px, 17vw, 340px)/.78 var(--lucky); color: transparent; -webkit-text-stroke: 3px currentColor; opacity: .9; transform: translateY(var(--ny, 0px)); }
.ds-chapter--cream .ds-ch-num { -webkit-text-stroke-color: var(--orange); }
.ds-chapter--orange .ds-ch-num { -webkit-text-stroke-color: var(--yellow); }
.ds-chapter--olive .ds-ch-num { -webkit-text-stroke-color: var(--orange); }
.ds-ch-text .ds-mono { margin: 0 0 12px; opacity: .75; }
.ds-ch-text h2 { margin: 0; font: 800 clamp(46px, 6vw, 124px)/.92 var(--grot); letter-spacing: -.055em; }
.ds-ch-text > p:last-child { margin: 16px 0 0; font: 400 clamp(22px, 1.9vw, 36px)/1.1 var(--brush); color: var(--orange); }
.ds-chapter--orange .ds-ch-text > p:last-child { color: var(--olive); }
.ds-chapter--olive .ds-ch-text > p:last-child { color: var(--yellow); }

/* 08. FIGURES ------------------------------------------------------------ */
.ds-figs { display: grid; gap: clamp(20px, 2.4vw, 44px); }
.ds-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 44px); align-items: start; }
.ds-fig { position: relative; min-width: 0; margin: 0; }
.ds-offset { margin-top: clamp(40px, 8vw, 160px); }
.ds-frame { position: relative; overflow: hidden; border-radius: clamp(16px, 1.6vw, 30px); background: rgb(0 0 0 / 8%); box-shadow: 0 40px 80px -40px rgb(20 30 20 / 55%); transform: translateY(var(--py, 0px)); }
.ds-media { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.ds-fig--wide .ds-media { aspect-ratio: 16 / 9; object-fit: cover; }
.ds-fig--pair .ds-media { aspect-ratio: 9 / 8; object-fit: cover; }
.ds-fig:hover .ds-media { transform: scale(1.025); }
.ds-badge { position: absolute; top: clamp(12px, 1.2vw, 20px); left: clamp(12px, 1.2vw, 20px); display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; background: rgb(28 43 31 / 82%); color: var(--cream); font: 700 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; backdrop-filter: blur(6px); }
.ds-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: ds-blink 1.4s ease-in-out infinite; }
.ds-badge--still { background: rgb(255 244 220 / 88%); color: var(--olive); }
@keyframes ds-blink { 50% { opacity: .25; } }
.ds-fig figcaption { display: flex; align-items: center; gap: 12px; margin-top: 16px; font: 500 clamp(13px, 1vw, 17px)/1.3 var(--grot); }
.ds-fig figcaption b { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 8px; border-radius: 99px; background: var(--orange); color: var(--cream); font: 700 11px/1 var(--mono); letter-spacing: .06em; }
.ds-chapter--orange .ds-fig figcaption b { background: var(--olive); }
/* Reveal: frame opens from a rounded inset when Locomotive adds .is-inview */
@media (prefers-reduced-motion: no-preference) {
  .ds-fig[data-scroll]:not(.is-inview) { opacity: 1; transform: none; }
  .ds-fig[data-scroll] .ds-frame { clip-path: inset(10% 6% 10% 6% round 40px); transition: clip-path 1.3s var(--ease); }
  .ds-fig[data-scroll] .ds-media { transform: scale(1.18); }
  .ds-fig[data-scroll].is-inview .ds-frame { clip-path: inset(0 0 0 0 round 0px); }
  .ds-fig[data-scroll].is-inview .ds-media { transform: scale(1); transition: transform 1.6s var(--ease); }
  .ds-fig[data-scroll].is-inview:hover .ds-media { transform: scale(1.025); }
  .ds-fig[data-scroll] figcaption { opacity: 0; transform: translateY(14px); transition: opacity .6s ease .4s, transform .8s var(--ease) .4s; }
  .ds-fig[data-scroll].is-inview figcaption { opacity: 1; transform: none; }
}

/* 09. RULE STATEMENT ------------------------------------------------------ */
.ds-rule { padding-top: clamp(100px, 11vw, 200px); padding-bottom: clamp(100px, 11vw, 200px); text-align: center; background: var(--cream); }
.ds-rule-icons { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 36px; }
.ds-rule-icons .lentil { width: 54px; height: 54px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--olive); animation: ds-bob 3s ease-in-out infinite; }
.ds-rule-icons .grain { width: 96px; height: 34px; border-radius: 50%; background: #fff; border: 3px solid var(--olive); rotate: -18deg; animation: ds-bob 3s ease-in-out .4s infinite; }
.ds-rule-icons .plus { font: 400 54px/1 var(--lucky); color: var(--orange); }
@keyframes ds-bob { 50% { translate: 0 -10px; } }
.ds-rule h2 { margin: 0; font: 800 clamp(58px, 9vw, 190px)/.86 var(--grot); letter-spacing: -.06em; }
.ds-rule h2 em { font-style: normal; color: var(--orange); }
.ds-rule p { max-width: 58ch; margin: clamp(30px, 3vw, 54px) auto 0; font: 500 clamp(16px, 1.3vw, 23px)/1.5 var(--grot); }

/* 10. PALETTE: proportional swatches; hover grows, click copies hex ------- */
.ds-palette { display: flex; height: clamp(300px, 30vw, 520px); overflow: hidden; border: 3px solid var(--olive); border-radius: clamp(18px, 1.8vw, 32px); box-shadow: 10px 10px 0 var(--olive); }
.ds-swatch { position: relative; flex: var(--f) 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 6px; padding: clamp(16px, 1.8vw, 32px); border: 0; background: var(--c); color: var(--cream); text-align: left; cursor: copy; transition: flex-grow .7s var(--ease); }
.ds-swatch--light { color: var(--olive); }
.ds-swatch + .ds-swatch { border-left: 3px solid var(--olive); }
.ds-palette:hover .ds-swatch:hover { flex-grow: 60; }
.ds-swatch .ur { position: absolute; top: clamp(12px, 1.4vw, 26px); right: clamp(14px, 1.6vw, 30px); font: 700 clamp(28px, 3.6vw, 72px)/1.2 serif; opacity: .9; }
.ds-swatch b { font: 400 clamp(54px, 6.2vw, 130px)/.85 var(--lucky); }
.ds-swatch b sup { font-size: .38em; }
.ds-swatch .nm { font: 400 clamp(18px, 1.6vw, 30px)/1 var(--lucky); white-space: nowrap; }
.ds-swatch .use { max-width: 22ch; font: 500 clamp(12px, .9vw, 16px)/1.35 var(--grot); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
.ds-swatch code { font: 700 12px/1 var(--mono); letter-spacing: .1em; opacity: .75; }
.ds-swatch:hover .use, .ds-swatch:focus-visible .use { opacity: .85; transform: none; }
.ds-swatch:focus-visible { outline: 3px solid var(--yellow); outline-offset: -8px; }

/* 11. SLOGAN RAIL: tall section, sticky stage, JS moves the track --------- */
.ds-rail { position: relative; height: 320vh; background: var(--olive-2); color: var(--cream); }
.ds-rail-stick { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(30px, 4vh, 60px); }
.ds-rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.ds-rail-head .ds-mono { position: absolute; margin-top: -30px; color: var(--yellow); }
.ds-rail-head h2 { margin: 0; font: 800 clamp(44px, 5.4vw, 110px)/.9 var(--grot); letter-spacing: -.055em; }
.ds-rail-hint { margin: 0; font: 400 clamp(20px, 1.8vw, 34px)/1 var(--brush); color: var(--yellow); }
.ds-rail-track { display: flex; gap: clamp(18px, 2vw, 34px); width: max-content; padding: 20px var(--gutter) 40px; transform: translateX(var(--rx, 0px)); will-change: transform; }
.ds-slogan { position: relative; flex: none; display: flex; flex-direction: column; width: clamp(300px, 30vw, 560px); height: clamp(260px, 26vw, 470px); padding: clamp(22px, 2vw, 38px); border-radius: clamp(20px, 2vw, 34px); rotate: var(--r); transition: rotate .6s var(--pop), transform .6s var(--pop); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 60%); }
.ds-slogan:hover { rotate: 0deg; transform: translateY(-10px) scale(1.02); }
.ds-slogan h3 { margin: auto 0 0; font: 400 clamp(34px, 3.4vw, 68px)/.95 var(--lucky); }
.ds-slogan .ur { margin: 14px 0 0; font: 700 clamp(22px, 2vw, 38px)/1.2 serif; opacity: .85; }
.ds-slogan .ds-mono { margin: 0; opacity: .7; }
.ds-slogan-n { position: absolute; top: clamp(20px, 2vw, 36px); right: clamp(22px, 2vw, 38px); font: 400 clamp(20px, 1.6vw, 30px)/1 var(--lucky); opacity: .5; }
.ds-slogan--q { background: var(--cream); color: var(--olive); }
.ds-slogan--q h3 { font: 800 clamp(34px, 3.3vw, 66px)/.98 var(--grot); letter-spacing: -.04em; }
.ds-slogan--o, .ds-slogan--o2 { background: var(--orange); color: var(--cream); }
.ds-slogan--o h3 { text-shadow: 5px 5px 0 var(--olive); }
.ds-slogan--y { background: var(--yellow); color: var(--olive); }
.ds-slogan--c { background: #fff; color: var(--olive); }
.ds-slogan--c h3 { font: 400 clamp(38px, 3.8vw, 76px)/1 var(--brush); }
.ds-slogan--ol { background: #33503a; color: var(--cream); border: 2px dashed rgb(255 244 220 / 35%); }
.ds-slogan--ol h3 { font: 400 clamp(40px, 4vw, 80px)/1 var(--brush); color: var(--yellow); }
.ds-slogan--cr { background: var(--cream); color: var(--olive); }

/* 12. WEBSITE INTRO ------------------------------------------------------- */
.ds-web-intro { padding-top: clamp(100px, 11vw, 200px); padding-bottom: clamp(20px, 3vw, 60px); background: var(--cream); }
.ds-web-intro h2 { margin: 0; font: 800 clamp(48px, 6.6vw, 140px)/.9 var(--grot); letter-spacing: -.055em; }
.ds-web-intro h2 em { font: 400 1.05em/1 var(--brush); color: var(--orange); letter-spacing: 0; }
.ds-web-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 100px); margin-top: clamp(40px, 5vw, 90px); }
.ds-web-cols > p { margin: 0; font: 500 clamp(18px, 1.5vw, 28px)/1.45 var(--grot); }
.ds-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; border-top: 2px solid var(--olive); }
.ds-steps li { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 2px solid var(--olive); font: 400 clamp(20px, 1.6vw, 30px)/1 var(--brush); transition: padding-left .4s var(--ease), color .3s; }
.ds-steps li b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--olive); color: var(--cream); font: 700 11px/1 var(--mono); }
.ds-steps li:hover { padding-left: 14px; color: var(--orange); }
.ds-steps li:hover b { background: var(--orange); }

/* 13. REEL ---------------------------------------------------------------- */
.ds-reel { padding: clamp(100px, 10vw, 180px) 0; background: var(--olive-2); color: var(--cream); }
.ds-reel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(30px, 4vw, 70px); }
.ds-reel-head .ds-mono { color: var(--yellow); margin: 0; order: 2; }
.ds-reel-head h2 { margin: 0; font: 400 clamp(56px, 7.6vw, 160px)/.86 var(--lucky); color: var(--cream); text-shadow: .04em .04em 0 var(--orange); }
.ds-reel-box { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: clamp(18px, 1.8vw, 32px); background: #000; box-shadow: 0 60px 120px -40px rgb(0 0 0 / 70%); }
.ds-reel-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: clamp(130px, 13vw, 230px); aspect-ratio: 1; margin: 0; padding: 0; border: 0; background: none; color: var(--cream); cursor: pointer; transform: translate(-50%, -50%); transition: transform .5s var(--pop), opacity .3s; }
.ds-play img { position: absolute; inset: 0; width: 100%; height: 100%; animation: ds-spin 14s linear infinite; }
.ds-play span { position: relative; padding-top: 6px; font: 400 clamp(26px, 2.4vw, 44px)/1 var(--lucky); text-shadow: 3px 3px 0 var(--olive); }
.ds-play:hover { transform: translate(-50%, -50%) scale(1.08) rotate(-6deg); }
.ds-reel-box.is-playing .ds-play { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.6); }

/* 14. DELIVERABLES + NEXT ------------------------------------------------- */
.ds-deliver { padding-top: clamp(100px, 10vw, 180px); padding-bottom: clamp(100px, 10vw, 180px); }
.ds-deliver h2 { margin: 0 0 clamp(40px, 4vw, 70px); font: 800 clamp(44px, 5vw, 100px)/.9 var(--grot); letter-spacing: -.05em; }
.ds-deliver h2 em { font-style: normal; color: var(--orange); }
.ds-deliver-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 28px); }
.ds-deliver-grid > div { padding-top: 18px; border-top: 3px solid var(--olive); }
.ds-deliver-grid .ds-mono { margin: 0 0 16px; color: var(--orange); }
.ds-deliver-grid ul { margin: 0; padding: 0; list-style: none; }
.ds-deliver-grid li { padding: 9px 0; border-bottom: 1px dashed rgb(38 59 42 / 30%); font: 500 clamp(14px, 1.05vw, 19px)/1.3 var(--grot); }
.ds-next { position: relative; display: flex; flex-direction: column; gap: 18px; overflow: hidden; padding: clamp(60px, 7vw, 130px) var(--gutter); background: var(--orange); color: var(--cream); text-decoration: none; isolation: isolate; }
.ds-next::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("assets/daal-scene/pat_orange.svg") 0 0 / 1400px auto; opacity: .3; }
.ds-next-title { display: inline-flex; align-items: center; gap: .2em; font: 500 clamp(56px, 9vw, 200px)/.9 "Clash Display", Arial, sans-serif; letter-spacing: -.05em; }
.ds-next-title i { display: grid; place-items: center; width: .7em; aspect-ratio: 1; border-radius: 50%; background: var(--cream); color: var(--orange); transition: transform .6s var(--pop); }
.ds-next-title svg { width: 50%; height: 50%; }
.ds-next:is(:hover,:focus-visible) .ds-next-title i { transform: rotate(45deg) scale(1.08); }
.ds-next-img { position: absolute; z-index: -1; right: var(--gutter); top: 50%; width: clamp(260px, 30vw, 560px); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; opacity: 0; transform: translateY(-40%) rotate(6deg) scale(.8); transition: opacity .5s, transform .8s var(--ease); box-shadow: 0 40px 80px -30px rgb(0 0 0 / 50%); }
.ds-next-img img { width: 100%; height: 100%; object-fit: cover; }
.ds-next:is(:hover,:focus-visible) .ds-next-img { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }
.ds-page .footer { background: var(--paper); color: var(--ink); }

/* 15. MOBILE + REDUCED MOTION -------------------------------------------- */
@media (max-width: 900px) {
  .ds-hero { min-height: 100svh; }
  .ds-hero-top span:nth-child(3) { display: none; }
  .ds-hero-title { top: 150px; font-size: clamp(84px, 24vw, 200px); }
  .ds-hero-title .ln + .ln { margin-left: 0; }
  .ds-plate { right: -26vw; top: auto; bottom: 90px; width: 86vw; margin-top: 0; }
  .ds-tag--a { right: 8vw; top: auto; bottom: calc(86vw + 60px); }
  .ds-burst { right: auto; left: 4vw; bottom: 150px; }
  .ds-bubble { top: 100px; font-size: 16px; left: auto; right: var(--gutter); }
  .ds-hero-deck { display: none; }
  .ds-tag--b { display: none; }
  .ds-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-overview { grid-template-columns: 1fr; }
  .ds-ov-left h2 { position: static; }
  .ds-tiles { grid-template-columns: 1fr; }
  .ds-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-stats-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ds-stats-grid > div { padding-block: 40px; border-top: 1px dashed rgb(255 244 220 / 25%); }
  .ds-ch-head { grid-template-columns: 1fr; gap: 10px; }
  .ds-ch-num { font-size: 120px; }
  .ds-pair { grid-template-columns: 1fr; }
  .ds-offset { margin-top: 0; }
  .ds-palette { flex-direction: column; height: auto; }
  .ds-swatch { flex: none; min-height: calc(var(--f) * 6px + 90px); }
  .ds-swatch + .ds-swatch { border-left: 0; border-top: 3px solid var(--olive); }
  .ds-swatch .use { opacity: .85; transform: none; }
  .ds-rail { height: auto; }
  .ds-rail-stick { position: relative; height: auto; padding: 90px 0 60px; }
  .ds-rail-track { transform: none !important; width: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .ds-slogan { width: 78vw; height: 300px; scroll-snap-align: center; }
  .ds-rail-hint { display: none; }
  .ds-web-cols { grid-template-columns: 1fr; }
  .ds-deliver-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-next-img { display: none; }
  .ds-zoom { height: auto; }
  .ds-zoom-stick { position: relative; height: auto; padding: 0 var(--gutter); }
  .ds-zoom-frame { width: 100%; height: auto; aspect-ratio: 16 / 9; transform: none; border-radius: 18px; }
  .ds-zoom-frame img { transform: none; }
  .ds-zoom-frame figcaption { display: none; }
  .ds-chip { left: 16px; bottom: 16px; }
}
@media (max-width: 600px) {
  .ds-topbar .ds-mono { display: none; }
  .ds-hero-top { top: 70px; }
  .ds-hero-top span:nth-child(2) { display: none; }
  .ds-meta { grid-template-columns: 1fr; }
  .ds-meta div { rotate: 0deg !important; }
  .ds-stats-grid { grid-template-columns: 1fr; }
  .ds-stats-grid > div { border-left: 0 !important; padding-left: 0 !important; }
  .ds-deliver-grid { grid-template-columns: 1fr; }
  .ds-reel-head { flex-direction: column; align-items: flex-start; }
  .ds-reel-head .ds-mono { order: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-hero-pat, .ds-ticker-track, .ds-burst img, .ds-play img, .ds-rule-icons span, .ds-badge i { animation: none !important; }
  .ds-rail { height: auto; }
  .ds-rail-stick { position: relative; height: auto; padding: 100px 0 70px; }
  .ds-rail-track { transform: none !important; width: auto; overflow-x: auto; }
  .ds-zoom { height: auto; }
  .ds-zoom-stick { position: relative; height: auto; padding: 0 var(--gutter); }
  .ds-zoom-frame { width: 100%; height: auto; aspect-ratio: 16 / 9; transform: none; border-radius: 24px; }
  .ds-zoom-frame img { transform: none; }
  .ds-deck .dw { color: inherit; }
}
