/* ============================================
   HOMEPAGE: EDITORIAL SCROLL STORY
   Big editorial type, giant numbers, full-screen color panels
   ============================================ */
:root {
  --ms-serif: 'Instrument Serif', 'Times New Roman', serif;
  --ms-fat: 'Playfair Display', 'Bodoni Moda', Georgia, serif;
  --ms-cond: 'Anton', 'Bebas Neue', Impact, sans-serif;
  --ms-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ms-pad: clamp(1.25rem, 4vw, 3.5rem);
}
.ms-page { background: var(--ink); }
.ms-page .ribbon { display: none; }
.ms-page em { font-style: italic; }

/* ---------- reveal system ---------- */
.ms-line { display: block; overflow: hidden; padding-top: 0.2em; margin-top: -0.2em; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.ms-line > span { display: inline-block; }
.ms-js .ms-line > span { transform: translateY(108%); transition: transform 1.1s var(--ms-ease); will-change: transform; }
.ms-js .ms-in .ms-line > span, .ms-js .ms-line.ms-in > span { transform: none; }
.ms-lines .ms-line:nth-child(2) > span { transition-delay: 0.08s; }
.ms-lines .ms-line:nth-child(3) > span { transition-delay: 0.16s; }
.ms-lines .ms-line:nth-child(4) > span { transition-delay: 0.24s; }
.ms-lines .ms-line:nth-child(5) > span { transition-delay: 0.32s; }
.ms-js .ms-up { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ms-ease) 0.15s, transform 1s var(--ms-ease) 0.15s; }
.ms-js .ms-up.ms-in { opacity: 1; transform: none; }

/* ---------- loader ---------- */
.ms-loader { display: none; }
.ms-js .ms-loader { position: fixed; inset: 0; z-index: 99990; background: var(--bone-warm); color: var(--ink); display: grid; place-items: center; transition: transform 0.9s var(--ms-ease); }
.ms-loader.ms-done { transform: translateY(-100%); }
.ms-loader-inner { text-align: center; }
.ms-loader-mark { width: 64px; height: auto; margin: 0 auto 1.25rem; display: block; }
.ms-loader-count { font-family: var(--ms-fat); font-weight: 900; font-size: clamp(4rem, 12vw, 8rem); line-height: 0.9; letter-spacing: -0.03em; }
.ms-loader-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 1rem; opacity: 0.6; }
.ms-js.ms-skip-loader .ms-loader { display: none; }

/* ---------- pills ---------- */
.ms-pill { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--body); font-weight: 600; font-size: 0.95rem; padding: 0.95rem 1.6rem; border-radius: 100px; border: 1.5px solid currentColor; color: inherit; text-decoration: none; transition: background 0.35s var(--ms-ease), color 0.35s var(--ms-ease), border-color 0.35s var(--ms-ease), transform 0.35s var(--ms-ease); }
.ms-pill:hover { transform: translateY(-2px); }
.ms-pill-solid { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.ms-pill-solid:hover { background: var(--flame); border-color: var(--flame); color: var(--ink); }
.ms-pill-flame { background: var(--flame); color: var(--ink); border-color: var(--flame); }
.ms-pill-flame:hover { background: transparent; color: var(--flame); }
.ms-pill-ghost { color: var(--bone); border-color: var(--rule-dark); }
.ms-pill-ghost:hover { border-color: var(--bone); }

/* ---------- hero ---------- */
.ms-hero { position: sticky; top: 0; z-index: 0; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); background: var(--bone-warm); color: var(--ink); display: flex; align-items: center; justify-content: center; text-align: center; padding: clamp(4rem, 9vh, 7rem) var(--ms-pad) clamp(5rem, 12vh, 8rem); overflow: hidden; }
.ms-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.35; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ms-hero-inner { position: relative; z-index: 1; max-width: 1400px; }
.ms-hero-top { display: flex; justify-content: center; gap: clamp(1rem, 3vw, 2.5rem); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: clamp(1.5rem, 4vh, 2.75rem); color: #4a5160; flex-wrap: wrap; }
.ms-hero-title { font-family: var(--ms-serif); font-weight: 400; text-transform: uppercase; font-size: clamp(3.1rem, 9.6vw, 10.5rem); line-height: 0.88; letter-spacing: -0.015em; color: var(--ink); }
.ms-hero-title em { color: var(--flame-deep); }
.ms-hero-lede { max-width: 560px; margin: clamp(1.75rem, 4vh, 2.5rem) auto 0; font-size: 1.02rem; line-height: 1.6; color: #3a404c; }
.ms-hero-lede strong { color: var(--ink); font-weight: 600; }
.ms-hero-ctas { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.ms-hero .ms-pill:not(.ms-pill-solid) { color: var(--ink); }
.ms-scroll-cue { position: absolute; left: 50%; bottom: clamp(1.25rem, 3vh, 2rem); transform: translateX(-50%); font-family: var(--body); font-size: 0.78rem; color: var(--ink); z-index: 1; }
.ms-scroll-cue::after { content: ''; display: block; width: 1px; height: 34px; margin: 0.6rem auto 0; background: var(--ink); transform-origin: top; animation: msCue 2s var(--ms-ease) infinite; }
@keyframes msCue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.ms-cue-touch { display: none; }
@media (hover: none) { .ms-cue-desk { display: none; } .ms-cue-touch { display: inline; } }

/* ---------- spinning badge ---------- */
.ms-badge { position: absolute; width: 124px; height: 124px; display: grid; place-items: center; color: var(--ink); text-decoration: none; z-index: 2; }
.ms-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: msSpin 14s linear infinite; transition: transform 0.5s var(--ms-ease); }
.ms-badge text { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; fill: currentColor; }
.ms-badge-mark { width: 70px; height: auto; transition: transform 0.5s var(--ms-ease); }
.ms-badge:hover svg { animation-duration: 4s; }
.ms-badge:hover .ms-badge-mark { transform: scale(1.08) rotate(-8deg); }
.ms-hero-badge { left: clamp(1.25rem, 4vw, 3.5rem); bottom: clamp(1.25rem, 5vh, 3rem); }
@keyframes msSpin { to { transform: rotate(360deg); } }

/* ---------- curtain sections ---------- */
.ms-dark, .ms-light, .ms-projects, .ms-statement, .ms-page .reviews, .ms-page .showreel, .ms-page .footer { position: relative; z-index: 1; }
.ms-dark { background: var(--ink); color: var(--bone); --ms-rule: rgba(244, 240, 230, 0.12); }
.ms-light { background: var(--bone-warm); color: var(--ink); --ms-rule: rgba(10, 13, 20, 0.14); }

/* ---------- intro (big words + columns) ---------- */
.ms-intro { padding: clamp(6rem, 18vh, 12rem) var(--ms-pad) clamp(5rem, 12vh, 9rem); overflow: hidden; }
.ms-rules { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 var(--ms-pad); pointer-events: none; }
.ms-rules i { border-left: 1px solid var(--ms-rule); }
.ms-js .ms-rules i { transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ms-ease); }
.ms-rules i:nth-child(2) { transition-delay: 0.1s; } .ms-rules i:nth-child(3) { transition-delay: 0.2s; } .ms-rules i:nth-child(4) { transition-delay: 0.3s; }
.ms-js .ms-in > .ms-rules i { transform: none; }
.ms-intro-inner { position: relative; max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem clamp(1.5rem, 3vw, 3rem); align-items: end; }
.ms-big { font-family: var(--ms-serif); font-weight: 400; text-transform: uppercase; font-size: clamp(3.4rem, 9vw, 9rem); line-height: 0.86; letter-spacing: -0.01em; }
.ms-big em, .ms-end-title em { color: var(--flame); }
.ms-light .ms-big em { color: var(--flame-deep); }
.ms-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem clamp(1.25rem, 2.5vw, 2.5rem); font-size: 0.94rem; line-height: 1.6; }
.ms-cols p { margin: 0 0 0.25rem; opacity: 0.85; }
.ms-cols strong { font-weight: 600; opacity: 1; }
.ms-textlink { color: inherit; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--flame); padding-bottom: 2px; }
.ms-textlink:hover { color: var(--flame-deep); }

/* ---------- numbers ---------- */
.ms-numbers { padding: 0 var(--ms-pad) clamp(4rem, 10vh, 7rem); }
.ms-eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.6; max-width: var(--max-w); margin: 0 auto; padding: 0 0 1rem; border-bottom: 1px solid var(--ms-rule, var(--rule-dark)); }
.ms-stat { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 3vw, 3rem); padding: clamp(1.5rem, 4vh, 3rem) 0; border-bottom: 1px solid var(--ms-rule); overflow: hidden; }
.ms-stat-num { font-family: var(--ms-fat); font-weight: 900; font-size: clamp(8rem, 27vw, 25rem); line-height: 0.78; letter-spacing: -0.045em; color: var(--flame); font-variant-numeric: lining-nums; transition: transform 1.2s var(--ms-ease), opacity 1.2s var(--ms-ease); }
.ms-js .ms-stat-num { transform: translateY(35%); opacity: 0; }
.ms-js .ms-stat.ms-in .ms-stat-num { transform: none; opacity: 1; }
.ms-stat-label { font-family: var(--ms-serif); text-transform: uppercase; font-size: clamp(1.5rem, 3.3vw, 3.2rem); line-height: 0.95; color: var(--flame); max-width: 9.5em; }
.ms-stat-label small { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--bone-warm); opacity: 0.6; margin-top: 0.9rem; line-height: 1.5; }
.ms-stat-l .ms-stat-label { text-align: right; }
.ms-divider { max-width: var(--max-w); margin: 0 auto; height: 0; position: relative; }
.ms-badge-sm { width: 104px; height: 104px; left: 50%; top: 0; transform: translate(-50%, -50%); background: var(--ink); border-radius: 50%; color: var(--bone); }
.ms-badge-star { color: var(--flame); font-size: 1.2rem; }

/* ---------- projects ---------- */
.ms-projects { background: var(--ink); }
.ms-project { position: relative; min-height: 100vh; min-height: 100svh; background: var(--ink); color: var(--p-fg); overflow: hidden; display: flex; }
.ms-project-inner { flex: 1; min-width: 0; background: var(--p-bg); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto auto; padding: clamp(5rem, 12vh, 7rem) var(--ms-pad) clamp(2rem, 5vh, 3rem); transform-origin: 50% 0%; will-change: transform; }
@media (min-width: 900px) and (min-height: 700px) { .ms-project { position: sticky; top: 0; height: 100vh; height: 100svh; box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, 0.45); } .ms-shot { width: auto; height: clamp(240px, 48vh, 580px); max-width: 100%; } }
.ms-project-media { display: grid; place-items: center; min-height: 0; }
.ms-shot { width: min(72vw, 1080px); aspect-ratio: 1200 / 630; max-width: 100%; container-type: inline-size; border-radius: 12px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55); will-change: transform; }
.ms-shot > img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transform: scale(1.06); transition: transform 1.2s var(--ms-ease); }
.ms-project:hover .ms-browser-view img { transform: scale(1.03); }
.ms-project-links { display: flex; justify-content: flex-end; gap: 1.5rem; padding: 1.5rem 0 0.75rem; border-bottom: 1px solid currentColor; border-bottom-color: color-mix(in srgb, currentColor 35%, transparent); }
.ms-project-links a { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: inherit; text-decoration: none; }
.ms-project-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ms-outline { font-family: var(--ms-cond); font-weight: 400; text-transform: uppercase; font-size: clamp(3.4rem, 13.5vw, 14rem); line-height: 0.92; letter-spacing: 0.005em; color: transparent; -webkit-text-stroke: 1.5px var(--p-fg); margin: 0.6rem 0 0.4rem; white-space: nowrap; min-width: 0; overflow: hidden; transition: color 0.6s var(--ms-ease); }
.ms-outline span { display: inline-block; }
.ms-js .ms-outline span { transform: translateY(40%); opacity: 0; transition: transform 1.1s var(--ms-ease), opacity 1.1s var(--ms-ease); }
.ms-js .ms-project.ms-in .ms-outline span { transform: none; opacity: 1; }
/*h*/.ms-project:hover .ms-outline { color: var(--p-fg); }
.ms-project-meta { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 1rem 2rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.ms-project-meta span { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; }
.ms-project-meta p { font-size: 1rem; line-height: 1.55; max-width: 620px; margin: 0; opacity: 0.85; }
.ms-projects-more { position: relative; z-index: 2; background: var(--ink); color: var(--bone); text-align: center; padding: clamp(3.5rem, 9vh, 6rem) var(--ms-pad); }
.ms-projects-more .ms-pill-solid { background: var(--flame); color: var(--ink); border-color: var(--flame); }
.ms-projects-more .ms-pill-solid:hover { background: transparent; color: var(--flame); }

/* ---------- disciplines ---------- */
.ms-disc { padding: clamp(5rem, 14vh, 9rem) var(--ms-pad); }
.ms-disc-head { max-width: var(--max-w); margin: 0 auto clamp(2.5rem, 6vh, 4rem); }
.ms-disc-list { list-style: none; max-width: var(--max-w); margin: 0 auto; padding: 0; border-top: 1px solid var(--ms-rule); }
.ms-disc-list li { border-bottom: 1px solid var(--ms-rule); }
.ms-disc-list a { position: relative; display: grid; grid-template-columns: 4rem minmax(9rem, 1.1fr) 2fr 2rem; gap: 1.5rem; align-items: center; padding: clamp(1.1rem, 2.6vh, 1.75rem) 0.75rem; color: var(--ink); text-decoration: none; overflow: hidden; isolation: isolate; }
.ms-disc-list a::before { content: ''; position: absolute; inset: 0; background: var(--flame); transform: scaleY(0); transform-origin: bottom; transition: transform 0.55s var(--ms-ease); z-index: -1; }
.ms-disc-list a:hover::before, .ms-disc-list a:focus-visible::before { transform: scaleY(1); }
.ms-disc-n { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; opacity: 0.6; }
.ms-disc-t { font-family: var(--ms-serif); text-transform: uppercase; font-size: clamp(2rem, 4.2vw, 3.8rem); line-height: 0.95; }
.ms-disc-d { font-size: 0.95rem; line-height: 1.55; opacity: 0.8; }
.ms-disc-a { font-size: 1.3rem; justify-self: end; transition: transform 0.45s var(--ms-ease); }
.ms-disc-list a:hover .ms-disc-a { transform: translate(4px, -4px); }

/* ---------- statement ---------- */
.ms-statement { background: var(--flame); color: var(--ink); text-align: center; padding: clamp(6rem, 18vh, 11rem) var(--ms-pad); }
.ms-statement p { font-family: var(--ms-serif); text-transform: uppercase; font-size: clamp(2.6rem, 7.4vw, 7.6rem); line-height: 0.9; letter-spacing: -0.01em; margin: 0 auto; max-width: 16ch; }
.ms-statement em { color: var(--bone); }
.ms-statement-by { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 2.5rem; opacity: 0.75; }

/* ---------- founder ---------- */
.ms-founder .ms-big { font-size: clamp(3rem, 7.4vw, 7.6rem); }

/* ---------- sign off ---------- */
.ms-end { text-align: center; padding: clamp(6rem, 16vh, 10rem) var(--ms-pad); overflow: hidden; }
.ms-end .ms-eyebrow { border: 0; display: block; padding: 0; margin-bottom: 1.5rem; }
.ms-end-title { font-family: var(--ms-serif); font-weight: 400; text-transform: uppercase; font-size: clamp(5rem, 19vw, 19rem); line-height: 0.82; letter-spacing: -0.02em; }
.ms-end-lede { max-width: 620px; margin: 2.25rem auto 0; font-size: 1.05rem; line-height: 1.65; color: var(--bone-warm); }
.ms-end-meta { margin-top: 2.75rem; display: flex; justify-content: center; gap: 1rem 2rem; flex-wrap: wrap; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-warm); opacity: 0.7; }
.ms-end-meta a { color: inherit; text-decoration: none; }
.ms-end-meta a:hover { color: var(--flame); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .ms-intro-inner { grid-template-columns: 1fr; }
  .ms-rules { grid-template-columns: repeat(2, 1fr); }
  .ms-rules i:nth-child(n+3) { display: none; }
  .ms-project-meta { grid-template-columns: 1fr; }
  .ms-shot { width: 100%; }
  .ms-disc-list a { grid-template-columns: 2.5rem 1fr 1.5rem; }
  .ms-disc-d { grid-column: 2 / 3; grid-row: 2; }
  .ms-disc-a { grid-row: 1; grid-column: 3; }
}
@media (max-width: 600px) {
  .ms-cols { grid-template-columns: 1fr; }
  .ms-hero-badge { width: 84px; height: 84px; left: 0.75rem; bottom: 1rem; }
  .ms-hero-badge .ms-badge-mark { width: 48px; }
  .ms-stat { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .ms-stat-l { flex-direction: column-reverse; }
  .ms-stat-l .ms-stat-label { text-align: left; }
  .ms-stat-num { font-size: clamp(7rem, 42vw, 12rem); }
  .ms-badge-sm { width: 84px; height: 84px; }
  .ms-outline { -webkit-text-stroke-width: 1.2px; }
  .ms-project { min-height: 0; }
  .ms-project-inner { grid-template-rows: auto auto auto auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-line > span, .ms-up, .ms-stat-num, .ms-outline span, .ms-rules i { transition: none !important; transform: none !important; opacity: 1 !important; }
  .ms-badge svg, .ms-scroll-cue::after { animation: none; }
  .ms-loader { display: none; }
}

/* ============ motion layer (GSAP) ============ */
.ms-gsap .ms-up, .ms-gsap .ms-stat-num, .ms-gsap .ms-outline span, .ms-gsap .ms-rules i, .ms-gsap .ms-line > span { transition: none !important; }
.ms-gsap .ms-pill { transition: background 0.35s var(--ms-ease), color 0.35s var(--ms-ease), border-color 0.35s var(--ms-ease); }
.ms-gsap .ms-pill:hover { transform: none; }
.ms-gsap .ms-loader { transition: none; clip-path: inset(0 0 0 0); }
.ms-word { display: inline-block; white-space: nowrap; }
.ms-ch { display: inline-block; will-change: transform; }
.ms-statement .ms-w { display: inline; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* physics tags in the hero */
.ms-phys { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.ms-body { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; white-space: nowrap; font-family: var(--body); font-weight: 600; font-size: clamp(0.95rem, 1.6vw, 1.45rem); padding: 0.7em 1.25em; border-radius: 100px; line-height: 1; will-change: transform; transform: translate(-999px, -999px); }
.ms-body.is-drag { cursor: grabbing; }
.ms-body-flame { background: var(--flame); color: var(--ink); }
.ms-body-ink { background: var(--ink); color: var(--bone); }
.ms-body-line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.ms-body-deep { background: var(--flame-deep); color: var(--bone); }
.ms-ball { width: clamp(64px, 7vw, 96px); height: clamp(64px, 7vw, 96px); padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--flame); font-size: clamp(1.6rem, 3vw, 2.4rem); }
.ms-ball-lion { background: var(--bone); border: 1.5px solid var(--ink); }
.ms-ball-lion img { width: 74%; height: auto; pointer-events: none; }
.ms-hero-inner { z-index: 2; }
.ms-hero-ctas, .ms-hero-badge { position: relative; z-index: 4; }
.ms-hero-badge { position: absolute; }

/* marquee */
.ms-marquee { position: relative; z-index: 1; background: var(--flame); color: var(--ink); overflow: hidden; padding: clamp(1.1rem, 3vh, 2rem) 0; border-block: 1px solid rgba(10, 13, 20, 0.2); }
.ms-marquee-track { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); width: max-content; will-change: transform; }
.ms-marquee span { font-family: var(--ms-serif); text-transform: uppercase; font-size: clamp(2.6rem, 7vw, 6.5rem); line-height: 1; white-space: nowrap; }
.ms-marquee i { font-style: normal; font-size: clamp(1.4rem, 3vw, 2.6rem); color: var(--bone); }

/* cursor label on the disciplines list */
.ms-follow { position: fixed; left: 0; top: 0; z-index: 9000; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: var(--ink); color: var(--flame); display: grid; place-items: center; pointer-events: none; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; transform: scale(0); opacity: 0; }
.ms-disc-list a:hover .ms-disc-t { transform: translateX(14px); }
.ms-disc-t { transition: transform 0.55s var(--ms-ease); }
.ms-gsap .ms-hero { padding-bottom: clamp(9rem, 22vh, 14rem); }
@media (max-width: 600px) { .ms-gsap .ms-hero { padding-bottom: 9.5rem; } .ms-body { font-size: 0.85rem; } .ms-ball { width: 54px; height: 54px; font-size: 1.3rem; } }

/* ============ case cards: one designed horizontal card per client ============ */
.ms-case { position: relative; width: 100%; height: 100%; background: radial-gradient(120% 90% at 85% 20%, color-mix(in srgb, var(--c-acc) 22%, var(--c-bg)) 0%, var(--c-bg) 60%); color: var(--c-ink); display: grid; grid-template-columns: 0.95fr 1.25fr; align-items: center; gap: 3cqw; padding: 4.2cqw 4.6cqw; overflow: hidden; }
.ms-case::before { content: ''; position: absolute; inset: 1.9cqw; border: 1px solid color-mix(in srgb, var(--c-acc) 55%, transparent); pointer-events: none; }
.ms-case-copy { position: relative; z-index: 1; min-width: 0; }
.ms-case-eyebrow { font-family: var(--mono); font-size: 1.05cqw; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-acc); margin-bottom: 1.8cqw; }
.ms-case-name { font-family: var(--ms-serif); font-size: 5.2cqw; line-height: 0.95; letter-spacing: -0.01em; text-wrap: balance; }
.ms-case-name em { display: block; font-style: italic; color: var(--c-acc); }
.ms-case-rule { width: 6cqw; height: 1px; background: var(--c-acc); margin: 2.2cqw 0 2cqw; }
.ms-case-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7cqw; margin: 0 0 2.2cqw; padding: 0; }
.ms-case-chips li { font-family: var(--body); font-weight: 500; font-size: 1.15cqw; padding: 0.55cqw 1.1cqw; border: 1px solid color-mix(in srgb, var(--c-ink) 28%, transparent); border-radius: 100px; white-space: nowrap; }
.ms-case-loc { display: flex; align-items: center; gap: 0.7cqw; font-family: var(--mono); font-size: 1cqw; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; }
.ms-case-loc svg { width: 1.4cqw; height: 1.4cqw; color: var(--c-acc); flex-shrink: 0; }
.ms-case-visual { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; justify-content: flex-end; min-width: 0; }
.ms-browser { width: 100%; border-radius: 1cqw; overflow: hidden; background: #fff; box-shadow: 0 3cqw 6cqw -2cqw rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.08); transform: perspective(120cqw) rotateY(-9deg) rotateX(3deg); transform-origin: 100% 50%; transition: transform 0.9s var(--ms-ease); }
.ms-project:hover .ms-browser { transform: perspective(120cqw) rotateY(-3deg) rotateX(1deg); }
.ms-browser-bar { display: flex; align-items: center; gap: 0.5cqw; padding: 0.9cqw 1.1cqw; background: #eceae6; color: #555; }
.ms-browser-bar i { width: 0.85cqw; height: 0.85cqw; border-radius: 50%; background: #d1cdc6; }
.ms-browser-bar i:first-child { background: #f26a5a; } .ms-browser-bar i:nth-child(2) { background: #f4bf4f; } .ms-browser-bar i:nth-child(3) { background: #5fc454; }
.ms-browser-bar span { margin-left: 1cqw; flex: 1; font-family: var(--mono); font-size: 0.95cqw; background: #fff; border-radius: 100px; padding: 0.35cqw 1.2cqw; color: #666; }
.ms-browser-view { aspect-ratio: 16 / 10.4; overflow: hidden; }
.ms-browser-view img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform 1.2s var(--ms-ease); }
.ms-case.has-phone .ms-browser { width: 86%; margin-right: 8%; }
.ms-phone { position: absolute; right: 0; bottom: -2%; width: 26%; aspect-ratio: 9 / 18.5; border-radius: 2.6cqw; padding: 0.7cqw; background: #111; box-shadow: 0 3cqw 6cqw -2cqw rgba(0, 0, 0, 0.6); transform: rotate(6deg); transition: transform 0.9s var(--ms-ease); }
.ms-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 2cqw; display: block; }
.ms-project:hover .ms-phone { transform: rotate(2deg) translateY(-2%); }
@media (max-width: 700px) {
  .ms-shot { aspect-ratio: auto; }
  .ms-case { grid-template-columns: 1fr; padding: 7cqw 6cqw; gap: 6cqw; }
  .ms-case::before { inset: 3cqw; }
  .ms-case-eyebrow { font-size: 2.6cqw; margin-bottom: 3cqw; }
  .ms-case-name { font-size: 10cqw; }
  .ms-case-rule { width: 12cqw; margin: 4cqw 0; }
  .ms-case-chips { gap: 1.5cqw; margin-bottom: 4cqw; }
  .ms-case-chips li { font-size: 2.9cqw; padding: 1.2cqw 2.4cqw; }
  .ms-case-loc { font-size: 2.4cqw; gap: 1.5cqw; }
  .ms-case-loc svg { width: 3cqw; height: 3cqw; }
  .ms-browser { transform: none; border-radius: 2cqw; }
  .ms-browser-bar { padding: 1.8cqw 2.2cqw; gap: 1cqw; }
  .ms-browser-bar i { width: 1.8cqw; height: 1.8cqw; }
  .ms-browser-bar span { font-size: 2.2cqw; padding: 0.8cqw 2.4cqw; }
  .ms-phone { width: 30%; right: -2%; bottom: -6%; border-radius: 5cqw; padding: 1.4cqw; }
  .ms-phone img { border-radius: 4cqw; }
}

/* Trips 4 Fundraising homepage, drawn in code so nothing is cropped */
.ms-t4f { display: flex; flex-direction: column; background: #10302f; font-family: var(--body); }
.t4f-head { display: flex; align-items: center; gap: 1.4cqw; padding: 0.9cqw 1.6cqw; background: #faf8f3; color: #1d2b2a; }
.t4f-logo { font-family: var(--ms-serif); font-size: 1.5cqw; line-height: 1; display: block; white-space: nowrap; }
.t4f-logo small { display: block; margin-top: 0.25cqw; }
.t4f-logo b { color: #c8963a; font-weight: 400; }
.t4f-logo small { font-family: var(--mono); font-size: 0.55cqw; letter-spacing: 0.18em; text-transform: uppercase; color: #6a7472; }
.t4f-nav { flex: 1; display: flex; justify-content: flex-end; gap: 1.2cqw; font-size: 0.8cqw; }
.t4f-nav i { font-style: normal; }
.t4f-cta { background: #c8963a; color: #13201f; font-size: 0.8cqw; font-weight: 600; padding: 0.6cqw 1.2cqw; border-radius: 100px; }
.t4f-hero { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 2cqw; align-items: center; padding: 2.2cqw 2.4cqw; background: radial-gradient(90% 120% at 15% 0%, #1c4a47 0%, #10302f 55%, #0c2423 100%); color: #f3ede1; }
.t4f-eyebrow { font-family: var(--mono); font-size: 0.7cqw; letter-spacing: 0.22em; text-transform: uppercase; color: #d3a04a; margin-bottom: 1cqw; }
.t4f-h { font-family: var(--ms-serif); font-size: 3.1cqw; line-height: 1.02; letter-spacing: -0.01em; }
.t4f-h em { color: #d3a04a; }
.t4f-btns { display: flex; gap: 0.7cqw; margin-top: 1.6cqw; }
.t4f-btns span { font-size: 0.78cqw; font-weight: 600; padding: 0.7cqw 1.2cqw; border-radius: 100px; white-space: nowrap; }
.t4f-b1 { background: #c8963a; color: #13201f; }
.t4f-b2 { border: 1px solid rgba(243, 237, 225, 0.35); }
.t4f-calc { background: #faf8f3; color: #1d2b2a; border-radius: 0.9cqw; border-top: 0.35cqw solid #c8963a; padding: 1.4cqw 1.5cqw; box-shadow: 0 1.5cqw 3cqw -1cqw rgba(0, 0, 0, 0.5); }
.t4f-ct { font-family: var(--ms-serif); font-size: 1.35cqw; line-height: 1.1; margin-bottom: 1cqw; }
.t4f-row { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 0.6cqw; letter-spacing: 0.16em; text-transform: uppercase; color: #5b6866; margin-top: 0.8cqw; }
.t4f-row b { font-family: var(--body); font-size: 0.85cqw; letter-spacing: 0; color: #1d2b2a; }
.t4f-slider { position: relative; height: 0.25cqw; background: #d9dedc; border-radius: 9px; margin: 0.7cqw 0 0.2cqw; }
.t4f-slider i { position: absolute; top: 50%; width: 1cqw; height: 1cqw; border-radius: 50%; background: #c8963a; border: 0.18cqw solid #fff; transform: translate(-10%, -50%); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.t4f-keep { display: flex; justify-content: space-between; align-items: center; margin-top: 1.1cqw; background: #12302f; color: #9fd8b8; border-radius: 0.6cqw; padding: 0.9cqw 1.1cqw; }
.t4f-keep span { font-family: var(--mono); font-size: 0.55cqw; letter-spacing: 0.16em; text-transform: uppercase; color: #c9d4d0; }
.t4f-keep b { font-family: var(--mono); font-size: 1.7cqw; font-weight: 500; color: #6fcf97; }
@media (max-width: 700px) {
  .t4f-head { padding: 1.8cqw 3cqw; gap: 2cqw; }
  .t4f-logo { font-size: 3cqw; } .t4f-logo small { font-size: 1.1cqw; }
  .t4f-nav { display: none; } .t4f-cta { margin-left: auto; font-size: 1.6cqw; padding: 1.1cqw 2.2cqw; }
  .t4f-hero { padding: 4cqw; gap: 3cqw; }
  .t4f-eyebrow { font-size: 1.4cqw; } .t4f-h { font-size: 5.6cqw; }
  .t4f-btns span { font-size: 1.4cqw; padding: 1.2cqw 2cqw; } .t4f-b2 { display: none; }
  .t4f-calc { padding: 2.4cqw; border-radius: 1.8cqw; } .t4f-ct { font-size: 2.4cqw; }
  .t4f-row { font-size: 1.1cqw; margin-top: 1.4cqw; } .t4f-row b { font-size: 1.6cqw; }
  .t4f-slider { height: 0.5cqw; margin: 1.2cqw 0 0.4cqw; } .t4f-slider i { width: 2cqw; height: 2cqw; }
  .t4f-keep { padding: 1.6cqw 2cqw; margin-top: 2cqw; } .t4f-keep span { font-size: 1.05cqw; } .t4f-keep b { font-size: 3cqw; }
}

/* lion discs fill their circle edge to edge */
.ms-ball-lion { background: transparent; border: 0; padding: 0; overflow: hidden; }
.ms-ball-lion img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ms-badge-mark { border-radius: 50%; }
.ms-project-inner { position: relative; --dim: 0; }
.ms-project-inner::after { content: ''; position: absolute; inset: 0; background: #05070b; opacity: var(--dim); pointer-events: none; z-index: 5; }

/* ============ editorial blocks: tidy alignment ============ */
.ms-intro { padding-top: clamp(5rem, 13vh, 9rem); padding-bottom: clamp(5rem, 12vh, 8rem); }
.ms-intro-inner { align-items: start; }
.ms-rules i:nth-child(1), .ms-rules i:nth-child(2) { visibility: hidden; }
.ms-intro .ms-cols { padding-top: 0.6rem; }
.ms-founder-body { display: grid; gap: clamp(1.5rem, 3vh, 2.25rem); align-content: start; padding-top: 0.6rem; }
.ms-founder-body .ms-cols { padding-top: 0; }
.ms-founder-certs { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--ms-rule); }
.ms-founder-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.6; }
.ms-founder-certs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; }
.ms-founder-certs li { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.45rem 0.8rem; border: 1px solid color-mix(in srgb, var(--flame-deep) 55%, transparent); color: var(--flame-deep); border-radius: 100px; }
.ms-sig { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--ms-rule); }
.ms-sig-name { font-family: var(--ms-serif); font-style: italic; font-size: clamp(1.9rem, 2.8vw, 2.6rem); line-height: 1; color: var(--ink); }
.ms-sig-role { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.65; margin-top: 0.55rem; }
.ms-sig .ms-pill { color: var(--ink); }
.ms-sig .ms-pill:hover { background: var(--ink); color: var(--bone); }
@media (max-width: 900px) {
  .ms-rules { display: none; }
  .ms-intro .ms-cols { padding-top: 0; }
}
.ms-founder .ms-rules { display: none; }

/* hero fits the first screen exactly: headline, buttons, and the tag pile all visible on load */
.ms-hero { min-height: 0; height: calc(100vh - var(--ms-nav-h, 83px)); height: calc(100svh - var(--ms-nav-h, 83px)); padding-top: clamp(1.25rem, 5vh, 4.5rem); }
.ms-gsap .ms-hero { padding-bottom: clamp(7rem, 19vh, 12rem); }
.ms-hero-top { margin-bottom: clamp(0.9rem, 3vh, 2.75rem); }
.ms-hero-title { font-size: clamp(2.6rem, min(9.6vw, 13.5vh), 10.5rem); }
.ms-hero-lede { margin-top: clamp(0.9rem, 2.8vh, 2.5rem); }
.ms-hero-ctas { margin-top: clamp(0.9rem, 2.6vh, 2rem); }
@media (max-width: 600px) { .ms-gsap .ms-hero { padding-bottom: clamp(6.5rem, 17vh, 9.5rem); } }
/* very short screens: let the hero grow instead of squeezing */
@media (max-height: 560px) { .ms-hero { height: auto; min-height: calc(100svh - var(--ms-nav-h, 83px)); } }

/* smooth-scroll library needs native smooth scrolling off, or every frame fights it (laggy, stuck scrolling) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* hero polish: lighter tags, badge clear of the pile, no scroll cue under the tags */
.ms-body { font-size: clamp(0.85rem, 1.25vw, 1.15rem); }
.ms-ball { width: clamp(58px, 5.6vw, 80px); height: clamp(58px, 5.6vw, 80px); font-size: clamp(1.4rem, 2.4vw, 2rem); }
.ms-gsap .ms-hero-badge { bottom: calc(clamp(7rem, 19vh, 12rem) + 0.75rem); }
.ms-gsap .ms-scroll-cue { display: none; }
@media (max-width: 1100px) { .ms-gsap .ms-hero-badge { display: none; } }
@media (max-width: 600px) { .ms-body { font-size: 0.8rem; } .ms-ball { width: 50px; height: 50px; font-size: 1.2rem; } }
