/* ---------- Fonts — Season (TRIAL licence: replace with purchased files before going live) ---------- */
@font-face { font-family: "Season Mix"; src: url("../assets/fonts/SeasonMix-TRIAL-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Season Mix"; src: url("../assets/fonts/SeasonMix-TRIAL-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Season Mix"; src: url("../assets/fonts/SeasonMix-TRIAL-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Season Mix"; src: url("../assets/fonts/SeasonMix-TRIAL-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Season Mix"; src: url("../assets/fonts/SeasonMix-TRIAL-MediumItalic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Season Mix"; src: url("../assets/fonts/SeasonMix-TRIAL-SemiBoldItalic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Season Mix"; src: url("../assets/fonts/SeasonMix-TRIAL-Heavy.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Season Sans"; src: url("../assets/fonts/SeasonSans-TRIAL-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Season Sans"; src: url("../assets/fonts/SeasonSans-TRIAL-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Season Sans"; src: url("../assets/fonts/SeasonSans-TRIAL-MediumItalic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

/* 2% letter spacing on every text style (em resolves per element) */
* { letter-spacing: .02em; }

/* ---------- Tokens (sampled from the mockup) ---------- */
:root {
  --brown: #2D0A04;
  --ink-soft: #4A3634;
  --orange: #F67546;
  --lime: #EFFADC;
  --lime-line: #CFE5AE;
  --pink: #FBEFEF;
  --bg: #FFFCFB;
  --dot: #F0EAE8;

  --serif: "Season Mix", Georgia, serif;   /* headings use Season Mix Bold */
  --mix: "Season Mix", Georgia, serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --inset: clamp(16px, 4.45vw, 64px);   /* arch side margin */
  --frame: 1312px;                      /* max width of the pink arch */
  --rail: max(var(--inset), calc((100vw - var(--frame)) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html { scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--brown);
  font: 400 clamp(18px, 1.667vw, 24px)/1.5 var(--mix);   /* 24 / 36 */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--dot) 1.35px, transparent 1.65px);
  background-size: 20px 20px;
  background-position: 0 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 4px; border-radius: 8px; }  /* brown: >= 3:1 on every background */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Type ---------- */
.hero__title, .h2, .h3 { font-family: var(--serif); font-weight: 700; margin: 0; }
.h2 { font-size: clamp(36px, 4.444vw, 64px); line-height: 1.125; text-align: center; }   /* 64 / 72 */
.h3 { font-size: clamp(28px, 2.778vw, 40px); line-height: 1.2; }   /* 40 / 48 */
.lead { font-weight: 400; font-size: clamp(20px, 2.222vw, 32px); line-height: 1.25;   /* 32 / 40 */ text-align: center; margin-top: clamp(20px, 2.2vw, 32px); }

/* Hand-drawn underline (your SVG files, drawn on reveal) */
.u { position: relative; white-space: nowrap; display: inline-block; }
.u__line { position: absolute; height: auto; overflow: visible; pointer-events: none; }
.u--sharp  .u__line { left: 1.5%;  width: 97%;  top: 89%; } /* gap lets the p descender through */
.u--exp    .u__line { left: -2%;  width: 101%; top: 94%; }
.u--doing  { isolation: isolate; } .u--doing  .u__line { left: -9%;  width: 117%; top: 90%; z-index: -1; } /* behind the text */
.u--others .u__line { left: 4%;   width: 89%;  top: 92%; }
.u--meet   .u__line { left: 2%;   width: 96%;  top: 96%; }

.doodle { position: absolute; overflow: visible; pointer-events: none; height: auto; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(40px, 10vw, 144px) 24px clamp(140px, 14vw, 200px); }
.hero__name { font-weight: 400; font-size: clamp(22px, 2.88vw, 41.5px); margin-bottom: clamp(48px, 5.4vw, 78px); }
.hero__title { position: relative; display: inline-block; font-weight: 800; font-size: clamp(40px, 5.556vw, 80px); line-height: 1.15; } /* 80 / 92, Heavy */
.hero__title .line { display: block; overflow: hidden; padding: 0 .06em .16em; margin-bottom: -.16em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line:first-of-type, .hero__title .line:last-of-type { overflow: visible; }
.doodle--spark { width: .8em; left: -.36em; top: .78em; }
.doodle--star  { width: .55em; right: -.52em; top: 2.3em; }
.hero__role { font-weight: 400; font-size: clamp(22px, 2.88vw, 41.5px); margin-top: clamp(64px, 7.2vw, 104px); }

/* ---------- Work arch ---------- */
.arch {
  position: relative;
  width: calc(100% - 2 * var(--inset)); max-width: var(--frame);
  margin: 0 auto;
  background: var(--pink);
  border-radius: 50% 50% 0 0 / min(44vw, 620px) min(44vw, 620px) 0 0;
  padding: clamp(150px, 16.5vw, 240px) clamp(20px, 6.7vw, 96px) clamp(100px, 9vw, 130px);
}
.arch__intro { margin: 0 auto clamp(64px, 6.9vw, 100px); }
/* eyes: open on arrival, then wink (stays winked); click toggles */
.eye--blink { opacity: 0; }
.doodle--eyes.is-winked .eye--r { opacity: 0; }
.doodle--eyes.is-winked .eye--blink { opacity: 1; }
.doodle.doodle--eyes { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.doodle--eyes { position: relative; display: inline-block; width: 2.45em; vertical-align: middle; margin: -1em 0 -1em .45em; }

.case { max-width: 1120px; margin: 0 auto clamp(110px, 12.5vw, 180px); }
.case:last-child { margin-bottom: 0; }
.case__media { margin: 0; }
.case__body p:not(.kicker) { color: var(--ink-soft); }
.case__body .h3 { margin-bottom: 12px; }
.kicker {
  display: flex; gap: 6px; align-items: flex-start;
  font-style: italic; font-weight: 600; font-size: clamp(17px, 1.389vw, 20px); line-height: 1.2;   /* 20 / 24 */
  margin-bottom: clamp(18px, 2vw, 28px) !important; color: var(--ink-soft);
}
.ast { width: 1.25em; flex: none; margin-top: .06em; }   /* centred on the first line's capitals (line-height 24px) */

/* image panels */
.panel { position: relative; background: var(--lime); border: 1.5px solid var(--lime-line); border-radius: 8px; overflow: hidden; }
.panel img { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; }  /* shown at its own size (1 image px = 1 screen px) whenever it fits: sharp */
.panel--inset { padding: clamp(18px, 2.9vw, 42px) clamp(12px, 1.95vw, 28px) 0; }
.panel--bleed { aspect-ratio: 418 / 537; }
.panel--bleed img { position: absolute; left: var(--x); top: var(--y); width: var(--w); max-width: none; margin: 0; }  /* inset top-left, cut by the panel's edges (positions from the layout mockup) */
.panel--wide { aspect-ratio: 2 / 1; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: clamp(16px, 2.2vw, 32px) 0 0; }
.tags li {
  font: 700 clamp(15px, 1.15vw, 16.5px)/1 var(--mix);
  padding: .62em .78em .66em; border-radius: 999px;
  background: var(--lime); border: 1.5px solid var(--lime-line);
}

.case--stacked .case__media, .case--stacked .case__body { max-width: 862px; margin-inline: auto; }
.case--stacked .case__body { margin-top: clamp(36px, 3.5vw, 50px); }

.case--split { --gap: clamp(32px, 6vw, 87px); display: grid; grid-template-columns: minmax(0, 1fr) min(418px, (100% - var(--gap)) * .4386); column-gap: var(--gap); align-items: start; }  /* image column capped at 418px: the exports are pixel-exact for it */
.case--split .case__body { align-self: center; margin-top: -4%; }
.case--reverse { grid-template-columns: min(418px, (100% - var(--gap)) * .4354) minmax(0, 1fr); }
.case--reverse .case__body { margin-top: -10%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 2px solid var(--brown); border-radius: 999px; text-decoration: none;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.btn--cta {
  font: 700 clamp(17px, 1.44vw, 20.7px)/1 var(--serif);
  padding: 0 clamp(20px, 1.6vw, 23px); height: clamp(50px, 4vw, 58px);
  margin-top: clamp(28px, 3vw, 44px);
}
.btn--cta:hover, .btn--big:not(.btn--solid):hover { background: var(--brown); color: var(--bg); }
.arrow { width: 30px; height: 15px; flex: none; overflow: visible; transition: transform .35s var(--ease); }
.arrow path { stroke: currentColor; }
.btn:hover .arrow { transform: translateX(5px); }
/* case CTAs without content yet */
.btn--cta.is-soon { border-style: dashed; border-color: var(--ink-soft); color: var(--ink-soft); cursor: default; }
.btn--cta.is-soon:hover { transform: none; background: transparent; color: var(--ink-soft); }

.btn--big { font: 500 clamp(19px, 1.74vw, 25px)/1 var(--mix); height: clamp(54px, 4.4vw, 64px); }
.btn--solid { background: var(--brown); color: #FFF7F2; }
.btn--solid:hover { background: var(--orange); border-color: var(--orange); color: var(--brown); }
/* Contact buttons: on hover a little object slides out of the top of the button (CV sheet, envelope, profile card) */
.btn--peek { position: relative; isolation: isolate; }
.btn--peek, .btn--peek:hover { background: none; border-color: transparent; }
.btn--peek::after { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; background: var(--bg); border: 2px solid var(--brown); }
.btn--peek::after { transition: background-color .35s var(--ease); }
.btn--peek:hover::after, .btn--peek:focus-visible::after { background: var(--brown); }   /* outline at rest, solid brown on hover */
.btn--peek:hover, .btn--peek:focus-visible { color: #FFF7F2; }
.btn--peek::before {
  content: ""; position: absolute; z-index: -2; left: 50%; bottom: 6%; height: 86%;   /* hidden behind the button at rest */
  background: center / contain no-repeat;
  translate: -50% 0; transform: translateY(0) rotate(0deg);
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1);
}
.btn--peek:hover::before, .btn--peek:focus-visible::before { transform: translateY(-78%) rotate(var(--tilt, -7deg)) scale(1.3); }
.btn--cv::before   {   /* first version's size: a wide sheet, 30% of the button */
  width: 30%; height: 92%; bottom: 4%; border: 1.5px solid var(--brown); border-radius: 4px;
  background:
    linear-gradient(var(--orange), var(--orange)) 10px 9px / 38% 4px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 6px, rgba(45, 10, 4, .28) 6px 8px) 10px 18px / calc(100% - 20px) 60% no-repeat,
    #FFFDF6;
}
.btn--cv:hover::before, .btn--cv:focus-visible::before { transform: translateY(-82%) rotate(-7deg); }
.btn--mail::before { aspect-ratio: 84 / 58; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 84 58%22%3E%3Crect x=%22.75%22 y=%22.75%22 width=%2282.5%22 height=%2256.5%22 rx=%223%22 fill=%22%23FFFDF6%22 stroke=%22%232D0A04%22 stroke-width=%221.5%22/%3E%3Cpath d=%22M2 3l40 29L82 3%22 fill=%22none%22 stroke=%22%232D0A04%22 stroke-width=%221.5%22 stroke-linejoin=%22round%22/%3E%3Crect x=%2266%22 y=%228%22 width=%2210%22 height=%2212%22 rx=%221%22 fill=%22%23F67546%22/%3E%3C/svg%3E"); --tilt: 6deg; }
.btn--in::before   { aspect-ratio: 84 / 58; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 84 58%22%3E%3CclipPath id=%22c%22%3E%3Crect x=%22.75%22 y=%22.75%22 width=%2282.5%22 height=%2256.5%22 rx=%223%22/%3E%3C/clipPath%3E%3Crect x=%22.75%22 y=%22.75%22 width=%2282.5%22 height=%2256.5%22 rx=%223%22 fill=%22%23FFFDF6%22/%3E%3Crect width=%2284%22 height=%2220%22 fill=%22%230A66C2%22 clip-path=%22url%28%23c%29%22/%3E%3Ccircle cx=%2217%22 cy=%2221%22 r=%229%22 fill=%22%23F67546%22 stroke=%22%23FFFDF6%22 stroke-width=%222%22/%3E%3Crect x=%229%22 y=%2238%22 width=%2236%22 height=%223.5%22 rx=%221.75%22 fill=%22%232D0A04%22 opacity=%22.85%22/%3E%3Crect x=%229%22 y=%2245%22 width=%2224%22 height=%222%22 rx=%221%22 fill=%22%232D0A04%22 opacity=%22.3%22/%3E%3Crect x=%22.75%22 y=%22.75%22 width=%2282.5%22 height=%2256.5%22 rx=%223%22 fill=%22none%22 stroke=%22%232D0A04%22 stroke-width=%221.5%22/%3E%3C/svg%3E"); --tilt: -4deg; }   /* minimal LinkedIn profile: blue banner, avatar, name */

/* ---------- Testimonials ---------- */
.others { padding: clamp(110px, 13vw, 190px) 0 clamp(90px, 10vw, 150px); }
.others__intro { padding: 0 24px; margin-bottom: clamp(60px, 6vw, 86px); }
.others .lead, .next .lead { color: var(--brown); }

.others { --card: clamp(330px, 31.5vw, 450px); --qgap: clamp(24px, 3.4vw, 48px); }
/* two cards wide, centred under the title; the indicator sits in the margin on the left */
.js .carousel { position: relative; --w: min(calc(2 * var(--card) + var(--qgap)), 100% - 2 * var(--inset)); }
/* the rail spans the full width (no visible cut): only the current page is shown, the others fade out */
.ci { display: none; }
.js .ci { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; width: 160px;
  position: absolute; right: calc(50% + var(--w) / 2 + 32px); top: 50%; translate: 0 -50%; z-index: 1; }
.js .carousel .quotes { padding: 24px calc((100% - var(--w)) / 2) 80px; margin-bottom: -56px; scroll-padding-inline: 0; scroll-snap-type: none; }
.js .quotes .quote.is-off { opacity: 0; pointer-events: none; transition: opacity .45s var(--ease), transform .6s var(--ease); }  /* js eases onto pages instead of hard snapping */
.ci__count { margin: 0; font: 700 20px/1 var(--mix); color: var(--brown); }
.ci__total { color: var(--ink-soft); font-weight: 400; }
.ci__bars { display: flex; align-items: center; gap: 6px; }
.ci__bar { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; transition: width .5s var(--ease); }
.ci__bar::before, .ci__bar::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; }
.ci__bar::before { background: var(--lime-line); }
.ci__bar::after { background: var(--brown); transform-origin: left; transform: scaleX(0); }
.ci__bar.is-done::after { transform: scaleX(1); opacity: .35; }
.ci__bar[aria-current="true"] { width: 64px; }
.ci__bar[aria-current="true"]::after { animation: ci-fill var(--dur, 15s) linear forwards; }
.carousel.is-held .ci__bar::after, .carousel.is-stopped .ci__bar::after { animation-play-state: paused; }
@keyframes ci-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ci__ctrl { display: flex; gap: 8px; }
.ci__btn { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 2px solid var(--brown); border-radius: 50%; background: transparent; color: var(--brown); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.ci__btn:hover { background: var(--brown); color: var(--bg); }
.ci__btn .arrow { width: 22px; height: 11px; }
.ci__btn--prev .arrow { transform: scaleX(-1); }
.ci__btn:hover .arrow { transform: none; }
.ci__btn--prev:hover .arrow { transform: scaleX(-1); }
.ci__btn--play { border-color: transparent; }
.ci__icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ci__icon .i-play { display: none; fill: currentColor; stroke-width: 1.5; }
.carousel.is-stopped .ci__icon .i-play { display: block; }
.carousel.is-stopped .ci__icon .i-pause { display: none; }

.quotes {
  position: relative; display: flex; gap: var(--qgap);
  overflow-x: auto; scroll-snap-type: x proximity;
  padding: 24px var(--rail) 24px; scroll-padding-inline: var(--rail);
  scrollbar-width: none; cursor: grab;
}
.quotes::-webkit-scrollbar { display: none; }
.quotes.is-dragging, .quotes.is-gliding { scroll-snap-type: none; }
.quotes.is-dragging { cursor: grabbing; user-select: none; }
.quotes.is-dragging .quote { pointer-events: none; }
.quote {
  position: relative; flex: 0 0 var(--card); scroll-snap-align: start;
  margin: 0; background: var(--lime); border-radius: 999px;
  padding: clamp(150px, 13.2vw, 190px) clamp(32px, 3.3vw, 48px) clamp(56px, 4.2vw, 60px);
  display: flex; flex-direction: column;
  transition: transform .6s var(--ease);
}
.quote:hover { transform: translateY(-6px); }
.quote__photo {
  position: absolute; top: clamp(30px, 2.85vw, 41px); right: clamp(36px, 3.3vw, 48px);
  width: clamp(110px, 10.5vw, 152px); aspect-ratio: 152 / 200;
  background: #C9C2BE center / cover; border-radius: 4px;
}
.quote__mark { font: 700 clamp(110px, 10vw, 144px)/.7 var(--serif); color: var(--orange); height: .42em; margin: 0 0 .1em -.04em; }
.quote blockquote { margin: 0 0 clamp(36px, 4.4vw, 64px); font-size: clamp(18px, 1.667vw, 24px); line-height: 1.5; color: var(--ink-soft); }
.quote figcaption { margin-top: auto; text-align: center; font: 700 clamp(14px, 1.15vw, 16.5px)/1.25 var(--mix); }

/* ---------- Contact ---------- */
.next { padding: 0 24px; text-align: center; }
.next .h2 { position: relative; display: inline-block; }
.doodle--rays { width: .55em; left: -.5em; top: -.33em; }
.actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 352px)); justify-content: center; gap: clamp(16px, 2.2vw, 32px);   /* 2 buttons, each a third of the row as before */
  max-width: 1120px; margin: clamp(64px, 8.3vw, 120px) auto 0;
}

/* Draggable ID card */
.card-zone { position: relative; max-width: var(--frame); margin: 0 auto; padding: clamp(60px, 7vw, 100px) 0 clamp(160px, 14vw, 200px); }
.card-slot { position: relative; width: min(100%, 760px); margin: 0 auto; }
.idcard {
  position: relative; width: 100%;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transform: translate3d(0, 0, 0); will-change: transform; z-index: 1;
}
/* "Approved" rubber stamp, inked on the card (moves with it) */
.idcard__stamp { position: absolute; right: 5%; top: 5%; z-index: 1; width: 16%; height: auto; color: var(--orange); opacity: .88; rotate: -14deg; mix-blend-mode: multiply; pointer-events: none; }
.idcard__img { width: 100%; pointer-events: none; filter: drop-shadow(0 0 0 rgba(45,10,4,0)); transition: filter .35s var(--ease); }  /* the lift shadow follows the card's real (tilted, rounded) shape */
/* two faces: front (image + stamp) and back (inline svg), turned over in 3D */
.idcard { perspective: 1800px; }
.idcard__flip { position: relative; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.5, -.25, .25, 1.25); }
.idcard.is-flipped .idcard__flip { transform: rotateY(180deg); }
.idcard__face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.idcard__front { position: relative; }
.idcard__back { position: absolute; inset: 0; transform: rotateY(180deg); }
.idcard__back svg { display: block; width: 100%; height: auto; transition: filter .35s var(--ease); }
.idcard.is-dragging .idcard__back svg, .idcard.is-falling .idcard__back svg { filter: drop-shadow(0 28px 26px rgba(45,10,4,.2)); }
.idcard__back .sig path { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .idcard:not(.is-flipped) .sig path { stroke-dashoffset: 1; }   /* the signature is written each time the card is turned over */
  .js .idcard.is-flipped .sig path { transition: stroke-dashoffset 1s cubic-bezier(.45, 0, .3, 1) .6s; }
  .js .idcard.is-flipped .sig path + path { transition-duration: .35s; transition-delay: 1.55s; }
  .js .idcard.is-flipped .sig path + path + path { transition-duration: .45s; transition-delay: 1.85s; }
}
@media (prefers-reduced-motion: reduce) { .idcard__flip { transition: none; } }
.idcard__turn {
  position: absolute; left: 50%; top: calc(100% + 14px); translate: -50% 0;
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
  font: 500 15px/1 var(--mix); color: var(--brown); background: var(--bg);
  border: 1.5px solid var(--brown); border-radius: 999px; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.idcard__turn:hover { background: var(--brown); color: #FFF7F2; }
@media (hover: hover) and (pointer: fine) {
  .idcard { cursor: grab; touch-action: none; }
  .idcard.is-dragging { cursor: grabbing; z-index: 3; }
  .idcard.is-dragging .idcard__img { filter: drop-shadow(0 28px 26px rgba(45,10,4,.2)); }
}
.idcard.is-falling .idcard__img { filter: drop-shadow(0 28px 26px rgba(45,10,4,.2)); transition-duration: 0s; }
.stamp { position: absolute; left: 42%; top: 101%; z-index: 0; width: clamp(140px, 15vw, 215px); height: auto; overflow: visible; pointer-events: none; }  /* annotation on the page, under the card */

/* dust puff on drop */
.dust { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 0; }
.dust i {
  position: absolute; left: 0; top: 0; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(200,180,165,.6) 0%, rgba(205,186,172,.3) 45%, rgba(214,196,182,0) 70%);
}

.footer { text-align: center; font: 500 clamp(17px, 1.75vw, 25.2px)/1.3 var(--mix); padding: 0 24px clamp(48px, 5.5vw, 80px); }

/* ---------- Responsive ---------- */
@media (max-width: 1380px) {   /* not enough side margin: indicator goes above the cards */
  .js .ci { position: static; translate: none; width: var(--w); margin-left: auto; margin-right: auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 4px; }
  .ci__count { order: 0; }
  .ci__bars { order: 2; flex-basis: 100%; }
  .ci__ctrl { order: 1; }
}
@media (max-width: 900px) {
  .case--split, .case--reverse { grid-template-columns: 1fr; row-gap: 32px; }
  .case--split .case__media { order: -1; max-width: 460px; }
  .case--split .case__body, .case--reverse .case__body { margin-top: 0; }
  .actions { grid-template-columns: 1fr; max-width: 420px; }
  .lead br { display: none; }
}
@media (max-width: 560px) {
  .arch { border-radius: 50% 50% 0 0 / 46vw 46vw 0 0; }
  .hero__title .line { overflow: visible; }
  .doodle--spark { left: -.22em; }
  .doodle--star { right: -.2em; }
  .stamp { left: 40%; }
}

/* =================================================================
   Motion — subtle, only with JS on and no reduced-motion preference
   ================================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* blocks are revealed: a wipe from the top edge while they rise, on a fast-out curve (no bounce).
     Done with an animation (not a transition) so the block is never clipped to nothing while waiting:
     the in-view observer would not see it. The clip is wider than the block so overflowing doodles stay visible. */
  .js [data-anim] { opacity: 0; }
  .js [data-anim].is-in { opacity: 1; animation: reveal 1.6s cubic-bezier(.22, 1, .36, 1) var(--d, 0s) backwards, reveal-fade .5s linear var(--d, 0s) backwards; }
  @keyframes reveal { from { clip-path: inset(0 -40% 100% -40%); transform: translateY(40px); } to { clip-path: inset(-40%); transform: none; } }
  @keyframes reveal-fade { from { opacity: 0; } }
  /* image blocks only fade in; the reveal is kept for text */
  .js .case__media[data-anim].is-in, .js .step__media[data-anim].is-in { animation: reveal-fade 1.2s var(--ease) var(--d, 0s) backwards; }
  .js .card-zone[data-anim], .js .card-zone[data-anim].is-in { opacity: 1; transform: none; animation: none; }
  .js .idcard.is-waiting { opacity: 0; }
  .js .stamp { --base: .6s; }
  .js .stamp .draw:first-child { --dd: .6s; }

  /* hero texts arrive as one block: light fade + small move up */
  .js .hero { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
  .js.loaded .hero { opacity: 1; transform: none; }
  /* hero doodles draw faster and snappier than the ones further down */
  .js .hero .u--sharp .draw:first-child { transition: stroke-dashoffset .34s cubic-bezier(.6, 0, .9, .6) var(--dd, .3s); }
  .js .hero .u--sharp .draw + .draw { transition: stroke-dashoffset .42s cubic-bezier(.1, .4, .3, 1) var(--dd, .3s); }

  /* hand-drawn strokes draw themselves */
  .js .draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); transition: stroke-dashoffset .6s cubic-bezier(.7, 0, .2, 1) var(--dd, .3s);  /* same snappy stroke everywhere */ }
  .js .drawn .draw { stroke-dashoffset: 0; }
  .is-measuring .draw { transition: none !important; }

  .js .doodle--star { opacity: 0; transform: scale(.3) rotate(-40deg); transition: opacity .4s var(--ease) var(--sd, 2.6s), transform .55s cubic-bezier(.34,1.56,.64,1) var(--sd, 2.6s); }
  .js .doodle--star.is-in { opacity: 1; transform: none; }
  .js .doodle--eyes { opacity: 0; transform: scale(.4) rotate(-30deg); transition: opacity .35s var(--ease) .7s, transform .55s cubic-bezier(.34,1.56,.64,1) .7s; }
  .js .drawn .doodle--eyes { opacity: 1; transform: none; }
}


/* Floating nav: a small frosted pill, shown once the hero is passed */
.topnav {
  position: fixed; top: 16px; left: 50%; z-index: 50; translate: -50% 0;
  display: flex; align-items: center; gap: 4px; padding: 5px;
  font: 500 15px/1 var(--mix); color: var(--brown);
  background: rgba(255, 252, 251, .78); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(45, 10, 4, .08); border-radius: 999px;
  box-shadow: 0 8px 28px -14px rgba(45, 10, 4, .28);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.js .topnav:not(.is-shown):not(:focus-within) { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.topnav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.topnav a { display: block; padding: 9px 14px; border-radius: 999px; color: inherit; text-decoration: none; white-space: nowrap; transition: background-color .25s var(--ease); }
.topnav a:hover { background: rgba(45, 10, 4, .06); }
.topnav a:focus-visible { outline: 2px solid var(--brown); outline-offset: 1px; }
.topnav a[aria-current="true"] { background: var(--lime); }
.topnav__home { font-weight: 700; position: relative; margin-right: 6px; }
.topnav__home::after { content: ""; position: absolute; right: -5px; top: 50%; width: 1px; height: 16px; translate: 0 -50%; background: rgba(45, 10, 4, .14); }
@media (max-width: 520px) { .topnav { font-size: 14px; } .topnav a { padding: 8px 10px; } .topnav .topnav__home { display: none; } }
@media (prefers-reduced-motion: reduce) { .topnav { transition: none; } }

/* =================================================================
   Case study page (design-system.html) — sizes from the layout mockup (1440 px)
   ================================================================= */
.deep { --col-s: 360fr; --col-l: 552fr; --g: 24px; }
.arch.deep { margin-top: clamp(100px, 8.9vw, 128px); padding-top: clamp(150px, 14.6vw, 210px); padding-bottom: clamp(64px, 5.4vw, 78px); }
.deep__head { max-width: 936px; margin: 0 auto clamp(56px, 5.6vw, 80px); text-align: center; }
.deep__title { position: relative; display: inline-block; }
.deep__title .doodle--spark { width: 1.1em; left: -.82em; top: -.62em; }
.deep__q { position: relative; white-space: nowrap; }   /* the star hangs off the question mark */
.deep__title .doodle--star { width: .7em; left: calc(100% + .12em); right: auto; top: .22em; }
.deep__tags { justify-content: center; margin-top: clamp(24px, 2.2vw, 32px); }

/* project facts: two thin rules, 2 x 2 facts on the left, the figures on the right */
.deep__info {
  display: grid; grid-template-columns: minmax(0, 651fr) minmax(0, 285fr);
  margin-top: clamp(36px, 3.5vw, 50px); padding: clamp(36px, 3.5vw, 50px) 0 clamp(32px, 2.8vw, 40px);
  border-top: 1px solid rgba(45, 10, 4, .14); border-bottom: 1px solid rgba(45, 10, 4, .14); text-align: left;
}
.deep__meta { display: grid; grid-template-columns: minmax(0, 300fr) minmax(0, 351fr); row-gap: 28px; margin: 0; }
.deep__meta dt { font: 600 13px/1 "Season Sans", var(--mix); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); opacity: .8; }
.deep__meta dd { margin: 12px 0 0; font: 500 20px/1.3 var(--mix); }
.deep__facts { list-style: none; display: grid; gap: 22px; align-content: start; padding: 0; margin: 0; font: 500 20px/1.2 var(--mix); }
.deep__facts li { display: flex; align-items: center; gap: 14px; }
.deep__facts .ast { width: 20px; margin: 0; }

.deep--after { max-width: 936px; margin: 0 auto; padding: clamp(64px, 6.7vw, 97px) 0 clamp(90px, 9vw, 130px); }
@media (max-width: 1100px) { .deep--after { margin-inline: clamp(20px, 6.7vw, 96px); } }
.step { max-width: 936px; margin: 0 auto clamp(90px, 9.2vw, 132px); }
.deep--after .step:last-of-type, .arch .step { margin-bottom: 0; }
.step__media { position: relative; display: grid; grid-template-columns: minmax(0, var(--col-s)) minmax(0, var(--col-l)); gap: var(--g); }
.step__media--flip { grid-template-columns: minmax(0, var(--col-l)) minmax(0, var(--col-s)); }
.step__media--grid { grid-template-columns: 1fr 1fr; }
.step__col { display: grid; gap: var(--g); }

/* label (Season Sans styles of the site) | paragraph */
.step__text { display: grid; grid-template-columns: minmax(0, 263fr) minmax(0, 649fr); gap: var(--g); margin-top: clamp(36px, 3.75vw, 54px); }
.step__num, .step__title { font: 700 20px/28px "Season Sans", var(--mix); letter-spacing: .02em; }
.step__num { color: var(--orange); }
.step__title { margin: 0; text-transform: uppercase; letter-spacing: .06em; }
.step__sub { max-width: 150px; margin-top: 8px; font: italic 500 18px/1.35 "Season Sans", var(--mix); }
.step__body { font-size: clamp(18px, 1.667vw, 24px); line-height: 1.5; color: var(--ink-soft); }

/* image panels */
.dpanel { position: relative; overflow: hidden; border-radius: 8px; border: 1.5px solid #EEE4E1; background: #fff; aspect-ratio: var(--r); }
.dpanel--l { aspect-ratio: auto; }   /* takes the height of its row */
.dpanel--lime { background: var(--lime); border-color: var(--lime-line); }
.dpanel--dark { background: #07001F; border-color: #07001F; }
.dpanel--full { grid-column: 1 / -1; }
.dpanel img { margin: 0; max-width: none; }
.dpanel__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.dpanel--inset .dpanel__bleed { position: absolute; left: var(--ix); top: var(--iy); width: calc(100% - var(--ix)); height: auto; border-radius: 4px 0 0 0; }   /* inset top-left, cut by the right and bottom edges */
.dpanel--fit { display: grid; place-items: center; }
.dpanel__center { width: 84%; height: auto; }
.dshot { width: 100%; height: auto; border-radius: 8px; }

/* hand-drawn arrows between the panels of 02 */
.doodle-arrow { position: absolute; z-index: 1; height: auto; overflow: visible; pointer-events: none; }   /* assets/svg/Arrow.svg */
.doodle-arrow--down { left: 2.1%; top: 45.3%; width: 3.1%; }
.doodle-arrow--right { left: 37%; top: 86.6%; width: 3.1%; rotate: -90deg; }

.deep__back { text-align: center; margin-top: clamp(80px, 8vw, 120px); }
.btn--back .arrow { scale: -1 1; }
.btn--back:hover .arrow { transform: translateX(-5px); }
.js .deep__head .doodle--star { --sd: 1s; }
.js .deep__head.is-in .doodle--star { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .step__media, .step__media--flip, .step__text, .step__media--grid { grid-template-columns: 1fr; }
  .dpanel--l { aspect-ratio: 552 / 574; }
  .dpanel--dark.dpanel--full { aspect-ratio: auto; }
  .dpanel--dark.dpanel--full .dpanel__cover { position: static; height: auto; }
  .doodle-arrow { display: none; }
  .deep__info { grid-template-columns: 1fr; row-gap: 32px; }
  .step__sub { max-width: none; }
  .step__text { gap: 16px; }
}
@media (max-width: 560px) { .deep__title br { display: none; } .deep__title .doodle--spark { left: -.3em; } }

/* round back button, floating just left of the nav pill (case study pages) */
.topnav .topnav__back {
  position: absolute; padding: 0; right: calc(100% + 8px); top: 50%; translate: 0 -50%;
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  color: var(--brown); text-decoration: none;
  background: rgba(255, 252, 251, .78); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(45, 10, 4, .08); box-shadow: 0 8px 28px -14px rgba(45, 10, 4, .28);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.topnav__back .arrow { width: 22px; height: 11px; scale: -1 1; transition: transform .3s var(--ease); }
.topnav .topnav__back:hover { background: var(--brown); color: var(--bg); }
.topnav__back:hover .arrow { transform: translateX(3px); }   /* flipped: moves left */
.topnav__back:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }
@media (max-width: 520px) { .topnav .topnav__back { width: 40px; height: 40px; right: calc(100% + 6px); } }
