/* ============================================================
   P1 · FONTS
   All 4 custom woff2 fonts embedded as base64.
   Sans.otf (5.3MB) skipped — fallback to Helvetica for tags.
   ============================================================ */


/* ============================================================
   P1 · RESET — Eric Meyer + box-sizing
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none !important;
}

@media (hover: none), (max-width: 580px) {
    *, *::before, *::after { cursor: auto !important; }
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 100%;
    vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

a {
    text-decoration: none;
}

a,
a:visited {
    color: inherit;
}

button,
label {
    cursor: pointer;
}

button {
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    background-color: transparent;
    border-radius: 0;
    text-align: left;
}

button:disabled {
    cursor: not-allowed;
}

input,
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

textarea {
    font: inherit;
}

svg {
    width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Helvetica Now Display', Helvetica, Arial, sans-serif;
    font-weight: 400;
}

/* Focus visible utility */
.js-focus-visible :focus:not(.focus-visible) {
    outline: none;
}

.js-focus-visible .focus-visible {
    outline: 1px dotted #000;
}

.js-focus-visible input.focus-visible {
    outline: none;
}

/* Visually hidden utility */
.u-visually-hidden {
    position: absolute;
    width: .1rem;
    height: .1rem;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    color: transparent;
}


/* ============================================================
   P1 · HTML BASE
   10px root so 1rem = 10px throughout the project.
   ============================================================ */

html {
    font-size: 10px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: auto;
    font-family: 'Helvetica Now Display', Helvetica, Arial, sans-serif;
}

/* Lenis smooth scroll lock */
html.lenis-stop {
    overflow: hidden;
}

body,
html {
    height: auto;
    min-height: 100%;
    width: 100%;
}


/* ============================================================
   P1 · CSS DESIGN TOKENS — LIGHT MODE (default)
   42 tokens covering all color roles + svg filter.
   ============================================================ */

:root {
    /* Black ramp — used for text, surfaces, borders */
    --color-black: #000000;
    --color-black-1: #0a0a0a;
    --color-black-2: #121212;
    --color-black-3: #171e24;
    --color-black-4: #202123;
    --color-black-5: #292929;

    /* Black with opacity */
    --color-black-1-60: hsla(0, 0%, 6%, .6);
    --color-black-4-40: rgba(32, 33, 35, .4);

    /* White ramp */
    --color-white: #ffffff;
    --color-off-white: #f0f0f0;

    /* Grey ramp */
    --color-grey: #dadada;
    --color-grey-1: #ecebea;
    --color-grey-2: #9e9e9e;
    --color-grey-3: #7b8186;
    --color-grey-4: #666d73;
    --color-grey-5: #c7c7c7;
    --color-grey-6: #bdbdbd;

    /* Inverted grey (used in dark mode for reversed contrast) */
    --color-grey-4-inv: #99928c;

    /* SVG filter — none in light mode */
    --svg-img-filter: none;
    /* ── Semantic aliases — required by selected-works component ── */
    --font-body: 'Helvetica Now Display', Helvetica, Arial, sans-serif;
    --font-body-md: 'Helvetica Now Display', Helvetica, Arial, sans-serif;
    --font-serif: 'Feature Deck Regular', Georgia, serif;
    --font-serif-lt: 'Feature Deck Light', Georgia, serif;
    --text: var(--color-black);
    --muted: var(--color-grey-4);
    --border: var(--color-grey-5);
    --bg: var(--color-white);
    --surface: var(--color-grey-1);
    /* ── Ink colour tokens (ported from hero.html) ── */
    --color-ink:         #1a1919;
    --color-ink-72:      rgba(26,25,25,.72);
    --color-ink-42:      rgba(26,25,25,.42);
    --color-ink-28:      rgba(26,25,25,.28);
    --color-ink-40:      rgba(26,25,25,.42);
    --color-ink-15:      rgba(26,25,25,.15);
}


/* ============================================================
   P1 · HELVETICA NOW DISPLAY — R2 CDN
   Replaces PP Neue Montreal for body text.
   ============================================================ */

/* ── Redaction — heading font (preloaded above, block = no FOUT) ── */
@font-face {
    font-family: 'Redaction 10 Regular';
    src: url('https://framerusercontent.com/assets/qf6DB7WGDdEjcTvrw5e5SlRp4w.woff2') format('woff2');
    font-weight: 400; font-style: normal;
    font-display: block; /* preloaded — invisible <100ms, then renders correctly */
}
@font-face {
    font-family: 'Redaction 50 Italic';
    src: url('https://framerusercontent.com/assets/kqyAfMmZA5vP4G3u2iu7WJdY.woff2') format('woff2');
    font-weight: 400; font-style: italic;
    font-display: block;
}

/* ── Light 300 — non-critical, skip on slow connections ── */
@font-face {
    font-family: 'Helvetica Now Display';
    src: url('https://pub-d98009c8eb7448a387f7f2d0a543ab76.r2.dev/fonts/HelveticaNowDisplay-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: optional; /* browser skips if not fast enough — zero layout shift */
}

/* ── Regular 400 — critical body text (preloaded above) ── */
@font-face {
    font-family: 'Helvetica Now Display';
    src: url('https://pub-d98009c8eb7448a387f7f2d0a543ab76.r2.dev/fonts/HelveticaNowDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Helvetica Now Display';
    src: url('https://pub-d98009c8eb7448a387f7f2d0a543ab76.r2.dev/fonts/HelveticaNowDisplay-RegIta.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: fallback; /* italic — 100ms block, 3s swap window, then lock */
}

/* ── Medium 500 — critical nav + strong text (preloaded above) ── */
@font-face {
    font-family: 'Helvetica Now Display';
    src: url('https://pub-d98009c8eb7448a387f7f2d0a543ab76.r2.dev/fonts/HelveticaNowDisplay-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Helvetica Now Display';
    src: url('https://pub-d98009c8eb7448a387f7f2d0a543ab76.r2.dev/fonts/HelveticaNowDisplay-MedIta.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: fallback;
}

/* ── Bold 700 — non-critical, skip on slow connections ── */
@font-face {
    font-family: 'Helvetica Now Display';
    src: url('https://pub-d98009c8eb7448a387f7f2d0a543ab76.r2.dev/fonts/HelveticaNowDisplay-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: optional;
}


/* ============================================================
   P1 · DARK MODE — body.dark-mode
   All color roles invert: white ↔ black.
   Applied directly on <body> — no media query needed.
   ============================================================ */

body.dark-mode {
    --color-black: #ffffff;
    --color-black-1: #f0f0f0;
    --color-black-2: #e8e8e8;
    --color-black-3: #e3dbd6;
    --color-black-4: #dfdedc;
    --color-black-5: #d6d6d6;

    --color-black-1-60: hsla(0, 0%, 94%, .6);
    --color-black-4-40: hsla(40, 4%, 87%, .4);

    --color-white: #000000;
    --color-off-white: #0a0a0a;

    --color-grey: #252525;
    --color-grey-1: #131415;
    --color-grey-2: #616161;
    --color-grey-3: #5a5a5a;
    --color-grey-4: #99928c;
    --color-grey-5: #383838;
    --color-grey-6: #424242;

    --color-grey-4-inv: #666d73;

    /* SVG filter — inverts dark SVG logos to white in dark mode */
    --svg-img-filter: brightness(0) invert(1);
}

/* Enforce light variables on the dynamic wrapper so body.dark-mode doesn't invert text prematurely during scroll */
#dynamic-bg {
    --color-black: #000000;
    --color-black-1: #0a0a0a;
    --color-black-2: #121212;
    --color-black-3: #171e24;
    --color-black-4: #202123;
    --color-black-5: #292929;
    --color-black-1-60: hsla(0, 0%, 6%, .6);
    --color-black-4-40: rgba(32, 33, 35, .4);
    --color-white: #ffffff;
    --color-off-white: #f0f0f0;
    --color-grey: #dadada;
    --color-grey-1: #ecebea;
    --color-grey-2: #9e9e9e;
    --color-grey-3: #7b8186;
    --color-grey-4: #666d73;
    --color-grey-5: #c7c7c7;
    --color-grey-6: #bdbdbd;
    --color-grey-4-inv: #99928c;
    --svg-img-filter: none;
    /* ── Semantic aliases — required by selected-works component ── */
    --font-body: 'Helvetica Now Display', Helvetica, Arial, sans-serif;
    --font-body-md: 'Helvetica Now Display', Helvetica, Arial, sans-serif;
    --font-serif: 'Feature Deck Regular', Georgia, serif;
    --font-serif-lt: 'Feature Deck Light', Georgia, serif;
    --text: var(--color-black);
    --muted: var(--color-grey-4);
    --border: var(--color-grey-5);
    --bg: var(--color-white);
    --surface: var(--color-grey-1);
}

/* ============================================================
   P1 · BODY DEFAULT
   font: 500 1.7rem/155% PP Neue Montreal Medium
   Dark mode: background #0A0A0A, body.dark-mode on <body>
   ============================================================ */

body {
    color: var(--color-black);
    background: #ffffff;
    font: normal 400 1.6rem / 160% 'Helvetica Now Display', Helvetica, Arial, sans-serif;
    letter-spacing: .01rem;
}

@media only screen and (min-width: 768px) {
    body {
        font: normal 400 1.7rem / 160% 'Helvetica Now Display', Helvetica, Arial, sans-serif;
        letter-spacing: .01rem;
    }
}

@media only screen and (min-width: 1500px) {
    html {
        font-size: 10px;
    }
}


/* ============================================================
   TOP NAV — fixed, centered, frosted glass pill
   Ported from hero.html (branding migration Phase 3).
   ============================================================ */

.top-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1000px;
  padding: 3px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
}

.top-nav-pill {
  position: absolute;
  border-radius: 1000px;
  background: rgba(0, 0, 0, 0.07);
  transition: left 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    width 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    top 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    height 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 0;
}

.top-nav-item {
  position: relative;
  padding: 6px 14px;
  border-radius: 1000px;
  font-family: var(--font-display, 'Helvetica Now Display', Helvetica, Arial, sans-serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: .01rem;
  color: rgba(0, 0, 0, 0.5);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  z-index: 1;
  line-height: 1.4;
}

.top-nav-item span {
  position: relative;
  z-index: 1;
}

/* ── Active state — soft grey pill + medium weight ───────── */
.top-nav-item.active {
  color: #111;
  font-weight: 500;
}

/* ── Hover state ─────────────────────────────────────────── */
.top-nav-item:not(.active):not(.top-nav-name):not(.top-nav-link):hover {
  color: rgba(0, 0, 0, 0.8);
}


/* ── Top-left wordmark ──────────────────────────────── */
#site-wordmark {
  position: fixed;
  top: 20px;
  left: 24px;
  z-index: 9998;
  font-family: var(--font-display, 'Helvetica Now Display', Helvetica, Arial, sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: #111;
  letter-spacing: -0.01em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.3s ease;
}

/* ── Top-right cluster (timezone + music) ───────────── */
#top-right-cluster {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
}

#site-timezone {
  font-family: var(--font-display, 'Helvetica Now Display', Helvetica, Arial, sans-serif);
  font-size: 14px;
  font-weight: 400;
  color: rgba(0,0,0,0.45);
  letter-spacing: 0.01em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.3s ease;
}

/* ── Music toggle ───────────────────────────────────── */
#music-btn {
  width: 40px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
  box-shadow: none;
}
#music-btn:hover  { opacity: 0.85; }
#music-btn.playing { opacity: 1; }
#music-btn video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: filter 0.4s ease;
}
body.dark-mode #music-btn video {
  filter: invert(1);
  mix-blend-mode: screen;
}

/* ── Music video popup ──────────────────────────────── */
#music-video-popup {
  position: fixed;
  top: 56px;
  right: 24px;
  width: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 40px rgba(0,0,0,0.24), 0 2px 8px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16,1,0.3,1);
  z-index: 9997;
}
#music-video-popup.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#music-video-popup video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 480px) {
  #site-wordmark, #top-right-cluster { display: none; }
}

.top-nav-divider {
  width: 1px;
  height: 14px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 2px;
  flex-shrink: 0;
}

.top-nav-link {
  font-size: 1.2rem;
  color: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
}


/* ============================================================
   MOBILE NAV BAR + MENU
============================================================ */
#mobile-nav-bar {
  display:         none;
  position:        fixed;
  top:             0; left: 0; right: 0;
  height:          56px;
  padding:         0 20px;
  background:      transparent;
  align-items:     center;
  justify-content: space-between;
  z-index:         9999;
}

#mobile-wordmark {
  font-family:    var(--font-display);
  font-size:      15px;
  font-weight:    500;
  color:          #111;
  letter-spacing: -0.01em;
}

#mobile-nav-right {
  display:     flex;
  align-items: center;
  gap:         8px;
}

#mobile-music-btn {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           40px;
  height:          24px;
  border:          none;
  background:      transparent;
  cursor:          pointer;
  padding:         0;
  border-radius:   6px;
  overflow:        hidden;
  opacity:         0.5;
  transition:      opacity 0.2s ease;
  flex-shrink:     0;
}
#mobile-music-btn:hover  { opacity: 0.85; }
#mobile-music-btn.playing { opacity: 1; }
#mobile-music-btn video {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}
body.dark-mode #mobile-music-btn video {
  filter: invert(1);
  mix-blend-mode: screen;
}

/* Mobile nav — dark mode overrides */
body.dark-mode #mobile-wordmark {
  color: rgba(255,255,255,0.85);
}
body.dark-mode #mobile-hamburger span {
  background: rgba(255,255,255,0.85);
}
body.dark-mode #mobile-music-btn {
  color: rgba(255,255,255,0.6);
}
body.dark-mode #mobile-menu {
  background: rgba(10,10,10,0.97);
}
body.dark-mode .mobile-menu-item {
  color: rgba(255,255,255,0.7);
}
body.dark-mode .mobile-menu-item:hover {
  color: #fff;
}
body.dark-mode .mobile-menu-divider {
  background: rgba(255,255,255,0.1);
}

#mobile-hamburger {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             5px;
  width:           36px;
  height:          36px;
  border:          none;
  background:      transparent;
  cursor:          pointer;
  padding:         0;
}

#mobile-hamburger span {
  display:          block;
  width:            20px;
  height:           1.5px;
  background:       #111;
  border-radius:    2px;
  transition:       transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Hamburger → X when open */
#mobile-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
#mobile-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#mobile-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu overlay */
#mobile-menu {
  display:    none;
  position:   fixed;
  top:        56px; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  z-index:    9998;
  padding:    8px 0 16px;
  transform:  translateY(-8px);
  opacity:    0;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}

#mobile-menu.open {
  opacity:        1;
  transform:      translateY(0);
  pointer-events: auto;
}

.mobile-menu-item {
  display:       block;
  width:         100%;
  padding:       14px 24px;
  font-family:   var(--font-display);
  font-size:     17px;
  font-weight:   400;
  color:         rgba(0,0,0,0.75);
  background:    transparent;
  border:        none;
  text-align:    left;
  text-decoration: none;
  cursor:        pointer;
  transition:    color 0.15s ease;
}

.mobile-menu-item:hover  { color: #111; }
.mobile-menu-item.active { color: #111; font-weight: 500; }

.mobile-menu-link {
  color: rgba(0,0,0,0.5);
  font-size: 15px;
}

.mobile-menu-divider {
  height:     1px;
  background: rgba(0,0,0,0.07);
  margin:     8px 24px;
}

/* Show mobile bar, hide desktop nav on mobile */
@media (max-width: 768px) {
  #mobile-nav-bar { display: flex; }
  #mobile-menu    { display: block; }
  .top-nav        { display: none !important; }
}

/* ============================================================
   PAGE LOADER
   Full-screen white overlay. Fades out on window load.
============================================================ */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
#page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#loader-name {
  font-family: 'Helvetica Now Display', Helvetica, Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #111;
}
#loader-track {
  width: 100px;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 1px;
  overflow: hidden;
}
#loader-fill {
  height: 100%;
  width: 0%;
  background: #111;
  border-radius: 1px;
  transition: width 0.25s ease;
}


/* ============================================================
   P3 · HERO CAROUSEL
   Full-height drag carousel. Sits directly below the header.
   ============================================================ */

/* Outer scroll container */
.carousel {
    display: flex;
    overflow-x: scroll;
    /* JS hides scrollbar via class */
    overflow-y: hidden;
    white-space: nowrap;
    padding: 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    /* allow vertical scroll, intercept horizontal */
    /* Hide scrollbar cross-browser */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

/* Grabbing state — set by JS while dragging */
.carousel.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

/* Individual media card */
.carousel-item {
    display: inline-flex;
    /* inline so white-space:nowrap works */
    flex-shrink: 0;
    align-items: center;
    justify-content: center;

    /* 94svh height — svh = small viewport height (no URL bar) */
    height: 94svh;
    height: 94vh;
    /* fallback for older browsers */

    margin-right: .8rem;
    border-radius: 1.5rem;
    overflow: hidden;
    background: transparent;

    /* Prevent ghost drag images on images */
    -webkit-user-drag: none;
}

/* First card gets left margin to align with page edge */
.carousel-item:first-child {
    margin-left: .8rem;
}

/* Last card gets right margin so it doesn't sit flush */
.carousel-item:last-child {
    margin-right: .8rem;
}

/* Images inside cards */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    display: block;
}

/* Videos inside cards */
.carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    display: block;
}

/* Aspect-ratio variants — avoids inline styles on each item */
.carousel-item--square    { aspect-ratio: 1 / 1; }
.carousel-item--landscape { aspect-ratio: 4 / 3; }
.carousel-item--widescreen{ aspect-ratio: 16 / 9; }

/* ============================================================
   P4 · DYNAMIC BACKGROUND WRAPPER
   Wraps the entire page below the carousel.
   Background colour is swapped by IntersectionObserver via JS.
   Transition 0.4s so the swap is smooth.
   ============================================================ */

.dynamic-bg {
    background-color: #0a0a0a;
    transition: background-color .4s ease;
}


/* ============================================================
   P4 · CONTAINER
   Centred, padded, max-width 1500px.
   Used to constrain text breaker + partners.
   ============================================================ */

.container {
    margin: auto;
    width: calc(100% - 1rem * 2);
}

@media only screen and (min-width: 768px) {
    .container {
        width: calc(100% - 3rem * 2);
    }
}

@media only screen and (min-width: 1560px) {
    .container {
        width: 1500px;
    }
}


/* ============================================================
   P4 · LIGHT SECTION
   Background #F0F0F0 — set via data-bg attribute + observer.
   Overrides the dynamic-bg colour when scrolled into view.
   ============================================================ */

.light-section {
    background-color: #ffffff;
}


/* ============================================================
   P4 · TEXT BREAKER
   Feature Deck Light, 4.8rem/120%, max-width 78rem, centred.
   <em> = color: var(--color-grey-4)
   Padding desktop: 15.2rem 9rem 6.4rem
   Padding mobile:  9.1rem 2rem
   ============================================================ */

.text-breaker {
    padding: 9.1rem 2rem;
}

@media only screen and (min-width: 768px) {
    .text-breaker {
        padding: 15.2rem 9rem 6.4rem;
    }
}

.text-breaker-text {
    font-size: clamp(3.6rem, 6vw, 5.2rem);
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: #1a1919;
    text-align: center;
    max-width: 90rem;
    margin: 0 auto;
}

@media only screen and (min-width: 768px) {
    .text-breaker-text {
        font-size: clamp(4rem, 5.5vw, 5.6rem);
        margin-bottom: 4rem;
    }
}

/* Regular serif span — Redaction 10 */
.text-breaker-text .h-reg {
    font-family: 'Redaction 10 Regular', Georgia, serif;
    font-style: normal;
    font-weight: 400;
}

/* Italic serif em — Redaction 50 Italic */
.text-breaker-text .h-ital {
    font-family: 'Redaction 50 Italic', Georgia, serif;
    font-style: italic;
    font-weight: 400;
}


/* ============================================================
   P5 · TEXT CONTENT SECTION
   Wrapper for richtext + services + projects.
   max-width 53.5rem, centred on desktop.
   ============================================================ */

.text-content {
    position: relative;
    padding: 6.8rem 2.2rem 12rem;
    background: #ffffff;
}

@media only screen and (min-width: 768px) {
    .text-content {
        padding: 6.8rem 0 16rem;
    }

    .text-content-wrapper {
        margin: 0 auto;
        max-width: 53.5rem;
    }
}


/* ============================================================
   P5 · RICHTEXT PROSE
   PP Neue Montreal Medium 1.7rem/155%.
   Body: color #666d73. Strong: color #171e24.
   ============================================================ */

.richtext p {
    color: var(--color-ink-72);
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 165%;
    letter-spacing: -0.01em;
    margin-bottom: 2.4rem;
}

.richtext p:last-child {
    margin-bottom: 0;
}

.richtext strong {
    color: var(--color-ink);
    font-weight: 500;
}

/* ── Spacing between richtext blocks ── */
.richtext {
    margin-bottom: 3.6rem;
}
.richtext:last-child {
    margin-bottom: 0;
}

/* ── Proof block — left rule treatment ── */
.richtext-proof {
    border-left: 1.5px solid rgba(0, 0, 0, 0.12);
    padding-left: 2rem;
    margin-bottom: 3.6rem;
}

/* ── Proof eyebrow label ── */
.proof-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-ink-42);
    margin-bottom: 1.4rem;
}

.richtext ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.richtext ul li {
    color: var(--color-ink-72);
    font-size: 1.55rem;
    line-height: 150%;
    font-weight: 400;
    letter-spacing: -0.01em;
    padding-left: 1.6rem;
    position: relative;
}

.richtext ul li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--color-ink-42);
    font-weight: 400;
}


/* ============================================================
   P5 · INTERACTIVE SERVICES LIST — ACCORDION
   5 items. Click to expand inline. One open at a time.
   Arrow rotates 45° when open.
   ============================================================ */

.interactive-list {
    padding: 5.6rem 0;
}

@media only screen and (min-width: 768px) {
    .interactive-list {
        padding: 6.4rem 0;
    }
}

/* Row wrapper */
.interactive-list-item {
    border-bottom: 1px solid hsla(0, 0%, 62%, .2);
    overflow: hidden;
}

.interactive-list-item:first-child {
    border-top: 1px solid hsla(0, 0%, 62%, .2);
}

/* Clickable trigger row */
.interactive-list-trigger {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
}

/* Left side: icon + label */
.interactive-list-holder {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .8rem;
}

.interactive-list-icon {
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    line-height: 0;
    flex-shrink: 0;
    filter: var(--svg-img-filter);
}

.interactive-list-icon--empty {
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
}

.interactive-list-icon img {
    height: 100%;
    width: auto;
}

.interactive-list-label {
    font-size: 1.6rem;
    color: var(--color-black);
    opacity: .82;
    transition: opacity .3s ease;
    padding-right: 2rem;
    text-align: left;
}

.interactive-list-trigger:hover .interactive-list-label,
.interactive-list-trigger.is-open .interactive-list-label {
    opacity: 1;
}

/* Right side: arrow circle */
.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 2rem;
    min-height: 2rem;
    flex-shrink: 0;
    transition: transform .45s cubic-bezier(.34, 1, .64, 1);
}

.interactive-list-trigger.is-open .icon-circle {
    transform: rotate(45deg);
}

.icon-circle::before {
    display: none;
}

.icon-circle svg {
    z-index: 1;
    width: 1rem;
    height: 1rem;
    position: relative;
}

.icon-circle svg path {
    fill: var(--color-ink-42);
    transition: fill .3s ease;
}

.interactive-list-trigger:hover .icon-circle svg path,
.interactive-list-trigger.is-open .icon-circle svg path {
    fill: var(--color-black);
}

/* Accordion body — grid trick for smooth height animation */
.service-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .45s cubic-bezier(.4, 0, .2, 1);
}

.service-body.is-open {
    grid-template-rows: 1fr;
}

.service-body-inner {
    overflow: hidden;
}

.service-content {
    padding: .4rem 0 2.8rem 3.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.service-subtitle {
    font-size: 1.25rem;
    color: var(--color-grey-4);
}

.service-text {
    font-size: 1.45rem;
    line-height: 1.65;
    color: var(--color-black);
    opacity: .55;
    max-width: 44rem;
}

/* Media area — fixed aspect ratio so all rows align */
.service-media {
    margin-top: .4rem;
    border-radius: 1.2rem;
    overflow: hidden;
    max-width: 44rem;
    aspect-ratio: 16 / 10;
    background: var(--color-grey-5);
}

.service-media img,
.service-media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Placeholder shown when no media is provided */
.service-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-media-placeholder svg {
    opacity: .18;
    filter: var(--svg-img-filter);
}


/* ============================================================
   P5 · PROJECT LIST — ACTIVE (3 items)
   Avatar: 4.4rem × 4.4rem. Title 1.7rem. Subtitle grey-4.
   Tags: pill with border 1px, backdrop-filter blur, 1.2rem font.
   Click → opens work modal.
   ============================================================ */

.project-list {
    padding-top: 5.6rem;
    position: relative;
}

@media only screen and (min-width: 768px) {
    .project-list {
        padding-top: 6.4rem;
    }
}

.project-list-label {
    margin-bottom: 1.8rem;
    font-size: 1.5rem;
    color: var(--color-grey-4);
    padding-right: 2rem;
}

/* Active project row */
.project-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: .4rem 0 1.8rem;
    cursor: pointer;
    width: 100%;
    background: none;
}

.project-item:not(:first-child) {
    margin-top: .8rem;
}

.project-item:hover .project-title {
    color: var(--color-black);
}

.project-item:hover .project-icon-wrap::before {
    opacity: 1;
    transform: scale(1.07);
}

.project-holder {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.6rem;
}

/* Avatar — 4.4rem circle */
.project-avatar {
    flex-shrink: 0;
    display: flex;
    width: 4.4rem;
    height: 4.4rem;
    overflow: hidden;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}

.project-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.project-title {
    font-size: 1.7rem;
    line-height: 140%;
    letter-spacing: .1px;
    color: var(--color-black);
    transition: color .6s cubic-bezier(.34, 1, .64, 1);
    text-align: left;
    padding-right: 1rem;
}

.project-subtitle {
    font-size: 1.7rem;
    line-height: 130%;
    letter-spacing: .1px;
    color: var(--color-grey-4);
    transition: color .6s cubic-bezier(.34, 1, .64, 1);
    text-align: left;
}

/* Tag pills */
.project-tags {
    display: flex;
    flex-direction: row;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: .4rem;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    color: var(--color-grey-4);
    font-family: 'Helvetica Now Display', Helvetica, Arial, sans-serif;
    font-size: 1.2rem;
    line-height: 100%;
    padding: .5rem 1rem;
    border-radius: 7rem;
    border: 1px solid hsla(0, 0%, 62%, .3);
    -webkit-backdrop-filter: blur(3.7rem);
    backdrop-filter: blur(3.7rem);
    letter-spacing: -.3px;
}

/* Arrow icon wrap — same as services */
.project-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 2.7rem;
    min-height: 2.7rem;
    flex-shrink: 0;
}

@media only screen and (min-width: 768px) {
    .project-icon-wrap {
        min-width: 2.7rem;
        min-height: 2.7rem;
    }
}

.project-icon-wrap::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    background-color: var(--color-grey-3);
    border-radius: 50%;
    top: 0;
    left: 0;
    opacity: .35;
    transition: opacity .45s cubic-bezier(.34, 1, .64, 1),
        transform .4s cubic-bezier(.34, 1, .64, 1);
}

.project-icon-wrap svg {
    z-index: 1;
    width: 1rem;
    height: 1rem;
    position: relative;
}

.project-icon-wrap svg path {
    fill: var(--color-off-white);
}


/* ============================================================
   P5 · ARCHIVE LIST (8 items)
   Smaller avatars 3.5rem. Date right-aligned.
   Subtitle hidden on mobile. pointer-events: none.
   ============================================================ */

.archive-label {
    margin-top: 3.2rem;
    padding-top: 1rem;
    margin-bottom: 1.8rem;
    font-size: 1.5rem;
    color: var(--color-grey-4);
}

.archive-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: .5rem 0;
    width: 100%;
    pointer-events: none;
    /* not clickable */
    cursor: default;
}

.archive-item:not(:first-child) {
    margin-top: .8rem;
}

/* Smaller avatar — 3.5rem circle */
.archive-avatar {
    flex-shrink: 0;
    display: flex;
    width: 3.5rem;
    height: 3.5rem;
    overflow: hidden;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}

.archive-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-title {
    font-size: 1.7rem;
    line-height: 140%;
    color: var(--color-grey-4);
    width: 60%;
    text-align: left;
}

.archive-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

/* Subtitle hidden on mobile */
.archive-subtitle {
    font-size: 1.7rem;
    line-height: 130%;
    color: var(--color-grey-4);
}

@media (max-width: 640px) {
    .archive-subtitle {
        display: none;
    }
}

.archive-date {
    width: 100%;
    text-align: end;
    font-size: 1.5rem;
    line-height: 155%;
    color: var(--color-grey-4);
}


/* ============================================================
   P5 · ARCHIVE GRADIENT FADE
   Linear gradient overlay at the bottom of the archive list.
   height: 50% of the list. position: absolute.
   ============================================================ */


/* ============================================================
   P5 · WORK DETAIL MODAL
   Fixed, z-index 100. scale-from-center on open.
   Dark card #292929, scrollable, rounded 2.4rem.
   ============================================================ */

.work-modal {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    inset: 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    background-color: rgba(9, 9, 9, .26);
    transition: opacity .3s ease, visibility .3s ease;
}

.work-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    cursor: pointer;
    z-index: 1;
}

.modal-inner {
    position: relative;
    z-index: 10;
    transform-origin: center center;
    height: calc(100dvh - 1.6rem);
    width: calc(100% - 1.6rem);
    max-width: 57.7rem;
    transform: scale(.95);
    transition: transform .3s ease;
}

@media only screen and (min-width: 768px) {
    .modal-inner {
        max-height: 82rem;
    }
}

.work-modal.is-open .modal-inner {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    background: none;
}

.modal-close-btn svg {
    width: 36px;
    height: 36px;
}

.modal-card {
    position: relative;
    height: 100%;
    border-radius: 2.4rem;
    background-color: #292929;
    overflow: hidden;
    z-index: 20;
}

/* Bottom fade gradient inside modal */
.modal-card::before {
    position: absolute;
    z-index: 10;
    content: '';
    left: 0;
    bottom: -10px;
    width: calc(100% - 1.5rem);
    height: 160px;
    background: linear-gradient(180deg, rgba(40, 40, 40, 0), rgba(40, 40, 40, .8));
    filter: blur(8px);
    pointer-events: none;
}

.modal-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    padding-bottom: 2rem;
    scrollbar-width: none;
}

.modal-scroll::-webkit-scrollbar {
    display: none;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
    padding: 4rem 2.8rem;
}

@media only screen and (min-width: 768px) {
    .modal-body {
        padding: 4rem 4.8rem;
    }
}

/* Modal tags */
.modal-tags {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-tag {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #f0f0f0;
    font-family: 'Helvetica Now Display', Helvetica, Arial, sans-serif;
    letter-spacing: -.3px;
    font-size: 1.2rem;
    line-height: 100%;
    padding: .7rem 1.3rem;
    border-radius: 7rem;
    border: 1px solid hsla(0, 0%, 100%, .12);
    background: linear-gradient(90deg, hsla(0, 0%, 100%, .01), hsla(0, 0%, 100%, .02) 77%);
    -webkit-backdrop-filter: blur(3.7rem);
    backdrop-filter: blur(3.7rem);
}

/* Modal title / subtitle */
.modal-title {
    font: normal 500 3.2rem / 1.1 'Helvetica Now Display', Helvetica, Arial, sans-serif;
    letter-spacing: -0.03em;
    color: #f0f0f0;
}

.modal-subtitle {
    font: normal 400 3.2rem / 1.1 'Helvetica Now Display', Helvetica, Arial, sans-serif;
    letter-spacing: -0.03em;
    color: #f0f0f0;
    opacity: .4;
    margin-top: .8rem;
}

/* Modal richtext */
.modal-richtext p {
    color: hsla(0, 0%, 100%, .7);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 155%;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
    padding-right: 2rem;
}

/* Modal media blocks */
.modal-media {
    display: block;
    border-radius: .8rem;
    overflow: hidden;
}

@media only screen and (min-width: 768px) {
    .modal-media {
        border-radius: 1.6rem;
    }
}

.modal-media img,
.modal-media video {
    width: 100%;
    height: auto;
    display: block;
}

/* Modal credits */
.modal-credits {
    color: hsla(0, 0%, 100%, .3);
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: .02rem;
    padding-right: 2rem;
    max-width: 280px;
}


/* ============================================================
   P6 · DARK SECTION — TESTIMONIALS
   data-bg="#0a0a0a" triggers bg swap.
   Full viewport height on desktop.
   ============================================================ */

.dark-section {
    background-color: #0a0a0a;
    color: #ffffff;
    /* Skip paint + layout for off-screen dark section until scroll approaches.
       contain-intrinsic-size gives the browser a size estimate so scrollbar
       height stays accurate before the section is rendered. */
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

.testimonials-slider {
    position: relative;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16.8rem 0 18.4rem;
    overflow: hidden;
}

@media only screen and (min-width: 768px) {
    .testimonials-slider {
        min-height: 100vh;
        padding: 0;
    }
}


/* ============================================================
   P6 · QUOTE CONTAINER
   max-width 80rem, centred.
   Scrollable but scrollbar hidden.
   ============================================================ */

.testimonial-container {
    width: 100%;
    max-width: 80rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-bottom: 3.2rem;
    padding: 0 3rem;
}

@media only screen and (min-width: 768px) {
    .testimonial-container {
        padding: 0;
    }
}

.testimonial-content {
    max-width: 80rem;
    width: 100%;
    cursor: grab;
    position: relative;
    transition: height .3s ease-out;
    display: flex;
    align-items: center;
}

.testimonial-content:active {
    cursor: grabbing;
}


/* ============================================================
   P6 · INDIVIDUAL TESTIMONIAL
   Default: opacity 0, fadeOut animation.
   Active: fadeIn 2s ease-out forwards.
   Position absolute except the active one (relative) so the
   container height adapts to the visible quote.
   ============================================================ */

.testimonial {
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    opacity: 0;
    animation: t-fadeOut 1s ease-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.testimonial.is-active {
    animation: t-fadeIn 2s ease-out forwards;
    position: relative;
    opacity: 1;
}

@keyframes t-fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes t-fadeOut {
    0% {
        opacity: 1;
    }

    25% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.quote-container {
    padding: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quote-container::-webkit-scrollbar {
    display: none;
}


/* ============================================================
   P6 · QUOTE TYPOGRAPHY
   Feature Deck Regular. Fluid size:
     2.6rem at 320px → 3rem at 640px → 3.75rem at 768px+
   letter-spacing .018rem. color: var(--color-black) = #fff in dark.
   ============================================================ */

.quote {
    font-family: 'Helvetica Now Display', Helvetica, Arial, sans-serif;
    font-size: 2.6rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #ffffff;
}

@media (min-width: 640px) {
    .quote { font-size: 3rem; }
}

@media (min-width: 768px) {
    .quote { font-size: 3.6rem; letter-spacing: -0.03em; }
}


/* ============================================================
   P6 · AUTHOR BLOCK
   Avatar 3.6rem circle. Name 1.4rem weight 500.
   Job title 1.4rem color-black-1-60.
   Stacked, center-aligned.
   position:absolute for cross-fade; first is position:relative.
   ============================================================ */

.author-info {
    position: relative;
    margin-top: 3.2rem;
    width: 100%;
    max-width: 80rem;
    display: flex;
    justify-content: center;
}

.author-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    opacity: 0;
    animation: t-fadeOut 1s ease-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.author-wrapper.is-active {
    animation: t-fadeIn 2s ease-out forwards;
    position: relative;
    opacity: 1;
}

.author-avatar {
    overflow: hidden;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    margin-bottom: 1.6rem;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-name {
    font-size: 1.3rem;
    line-height: 1;
    font-weight: 500;
    margin-bottom: .8rem;
    color: #ffffff;
}

.author-role {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 400;
}


/* ============================================================
   P6 · DOT NAVIGATION
   Inactive: h:.5rem w:.5rem circle, bg var(--color-grey-4-inv)
   Active: width grows to 3rem (transition all .3s)
   Inside active: progress bar fills width linearly over 5s
     (transition: width .1s linear)
   ============================================================ */

.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 9.2rem;
}

@media only screen and (min-width: 768px) {
    .testimonial-nav {
        margin-top: 4.8rem;
    }
}

.dot {
    height: .5rem;
    width: .5rem;
    border-radius: 9999px;
    background-color: var(--color-grey-4-inv);
    transition: all .3s;
    margin: 0 .25rem;
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.dot.is-active {
    width: 3rem;
}

/* Progress bar inside active dot */
.dot-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--color-black-1);
    border-radius: 9999px;
    transition: width .1s linear;
}


/* ============================================================
   P6 · GET IN TOUCH CTA
   White pill. padding 1.6rem 3.2rem. font-size 1.5rem.
   border-radius 64px. background #fff. color #000.
   hover: opacity .75 (transition .17s ease-in-out).
   ============================================================ */

.contact-cta-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 8rem;
    padding: 2rem 0 8.8rem;
    overflow: hidden;
}

.cta-eyebrow {
    font-family: 'Helvetica Now Display', Helvetica, Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.28);
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .cta-eyebrow { font-size: 1.3rem; margin-bottom: 24px; }
}

.cta-btn {
    padding: 1.6rem 3.2rem;
    font-size: 1.5rem;
    font-weight: 500;
    background: #fff;
    color: #000;
    border-radius: 64px;
    border: none;
    cursor: pointer;
    transition: opacity .17s ease-in-out;
    font-family: 'Helvetica Now Display', Helvetica, Arial, sans-serif;
}

.cta-btn:hover {
    opacity: .75;
}


/* ============================================================
   P7 · WORK MODAL — CLOSE BUTTON
   36px circle. fill #D9D9D9 opacity .3 on the path.
   Positioned absolute top-right of modal-inner (outside card).
   ============================================================ */

.modal-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    z-index: 30;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 0;
}

.modal-close-btn svg {
    width: 36px;
    height: 36px;
    display: block;
}


/* ============================================================
   P7 · CONTACT MODAL
   max-height 63.8rem. Semi-transparent frosted card.
   No inner scroll gradient (clean layout).
   ============================================================ */

.contact-modal {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    inset: 0;
    z-index: 101;
    /* above work modal */
    opacity: 0;
    visibility: hidden;
    background-color: rgba(9, 9, 9, .26);
    transition: opacity .3s ease, visibility .3s ease;
}

.contact-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.contact-modal-backdrop {
    position: fixed;
    inset: 0;
    cursor: pointer;
    z-index: 1;
}

.contact-modal-inner {
    position: relative;
    z-index: 10;
    width: calc(100% - 1.6rem);
    max-width: 57.7rem;
    max-height: 63.8rem;
    transform: scale(.95);
    transition: transform .3s ease;
    transform-origin: center center;
}

.contact-modal.is-open .contact-modal-inner {
    transform: scale(1);
}

/* The card itself — frosted dark glass */
.contact-modal-card {
    position: relative;
    border-radius: 2.4rem;
    overflow: hidden;
    -webkit-backdrop-filter: blur(4rem);
    backdrop-filter: blur(4rem);
    background: rgba(15, 15, 15, .88);
    border: 1px solid hsla(0, 0%, 100%, .08);
}

.contact-modal-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 63.8rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.contact-modal-scroll::-webkit-scrollbar {
    display: none;
}

.contact-modal-body {
    padding: 3.2rem 2.8rem 4rem;
}

@media only screen and (min-width: 768px) {
    .contact-modal-body {
        padding: 3.2rem 4rem 4rem;
    }
}

/* Eyebrow — "Book a call" */
.contact-eyebrow {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: hsla(0, 0%, 100%, .4);
    margin-bottom: 1.6rem;
    font-family: 'Helvetica Now Display', Helvetica, sans-serif;
}

/* Title — "Drop us a line" */
.contact-title {
    font-weight: 500;
    font-size: 3.2rem;
    line-height: 1.1;
    color: #fafafa;
    margin-bottom: 1.2rem;
    font-family: 'Helvetica Now Display', Helvetica, Arial, sans-serif;
}

/* Subtitle — studio description */
.contact-subtitle {
    font-size: 1.5rem;
    color: #fff;
    opacity: .72;
    line-height: 1.6;
    margin-bottom: 2.4rem;
    white-space: pre-line;
    font-family: 'Helvetica Now Display', Helvetica, sans-serif;
}

/* Divider */
.contact-hr {
    height: 1px;
    background: hsla(0, 0%, 100%, .15);
    border: none;
    margin-bottom: 2.8rem;
}

/* Email label */
.contact-label {
    display: block;
    font-size: 1.4rem;
    color: #fff;
    opacity: .5;
    margin-bottom: .8rem;
    font-family: 'Helvetica Now Display', Helvetica, sans-serif;
}

/* Email link */
.contact-link {
    position: relative;
    display: inline-block;
    font-size: 1.7rem;
    letter-spacing: .01rem;
    color: #fff;
    font-family: 'Helvetica Now Display', Helvetica, Arial, sans-serif;
}

.contact-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -1px;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease-out;
    opacity: .7;
}

.contact-link:hover::after {
    transform: scaleX(1);
}

.contact-link:not(:hover)::after {
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s ease-out;
}

/* Contact close button */
.contact-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    z-index: 30;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 0;
}

.contact-close-btn svg {
    width: 36px;
    height: 36px;
    display: block;
}


/* ============================================================
   FOOTER (hero.html style)
   Black background, dither profile image, email CTA, copyright
============================================================ */
#site-footer {
  background: #0a0a0a;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 60px 48px;
  box-sizing: border-box;
  /* Defer footer paint until near viewport */
  content-visibility: auto;
  contain-intrinsic-size: auto 200px;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 18px 52px;
  background: #fff;
  color: #000;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  text-decoration: none;
  border-radius: 100px;
  transition: background 0.22s ease, gap 0.26s cubic-bezier(0.16,1,0.3,1);
}
.footer-cta-btn:hover {
  background: rgba(255,255,255,0.88);
  gap: 10px;
}
.footer-cta-btn .btn-mail-icon {
  display:    inline-flex;
  align-items: center;
  width:      0;
  overflow:   hidden;
  opacity:    0;
  transform:  scale(0.6) translateX(-4px);
  transition: width   0.26s cubic-bezier(0.16,1,0.3,1),
              opacity 0.20s ease,
              transform 0.26s cubic-bezier(0.16,1,0.3,1);
}
.footer-cta-btn:hover .btn-mail-icon {
  width:     18px;
  opacity:   1;
  transform: scale(1) translateX(0);
}
.footer-bottom {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-left span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255,255,255,0.42);
}
.footer-right {
  display: flex;
  gap: 24px;
}
.footer-right a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255,255,255,0.28);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-right a:hover { color: rgba(255,255,255,0.9); }

@media (max-width: 768px) {
  #site-footer    { padding: 60px 24px 40px; }
  .footer-bottom  { flex-direction: column; gap: 24px; align-items: flex-start; }
  .footer-cta-btn { font-size: 1.6rem; padding: 16px 40px; }
}

/* ============================================================
   P8 · SCROLL REVEAL UTILITY
   Elements with .reveal start opacity:0 translateY(2rem).
   JS adds .is-visible via IntersectionObserver.
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(1.2rem);
    /* Tighter duration, spring-out easing — matches nav pill feel */
    transition: opacity .55s cubic-bezier(0.16, 1, 0.3, 1),
                transform .55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}


/* ============================================================
   P8 · LIGHT-FORCED ON HEADER
   When scrolling over dark section, header pill text
   switches to light-mode colours.
   Already defined in P2 — this note is for clarity only.
   ============================================================ */


/* ════════════════════════════════════════════════
   SELECTED WORKS — component styles
   All classes net-new except .works-section
   (intentionally supersedes WK's rule via cascade)
   ════════════════════════════════════════════════ */
/* ── OUTER SECTION ── */
.works-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: clip;
    overflow-y: visible;
    padding-top: 80px;
    padding-bottom: 0;
    background: var(--bg);
}

/* ── Scoped light-mode lock ── defeats body.dark-mode at any scroll position */
.works-section {
    --color-black: #000000;
    --color-grey-4: #666d73;
    --color-grey-5: #c7c7c7;
    --text: #000000;
    --muted: #666d73;
    --border: #c7c7c7;
    --bg: #ffffff;
}


/* White bg behind cards */
.works-section__white-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 0;
}


/* ── CARDS CONTAINER (framer-18ag2yi) ── */
.works-cards {
    position: relative;
    z-index: 4;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 12px 12px 110px;
}

/* ── STICKY CARD WRAPPER (framer-1jq939w-container) ── */
.works-card-wrapper {
    width: 98%;
    position: relative;
}

.works-card-wrapper:nth-child(1),
.works-card-wrapper:nth-child(2),
.works-card-wrapper:nth-child(3),
.works-card-wrapper:nth-child(4) {
    top: auto;
    z-index: auto;
}

/* ── CARD (framer-gpWDC.framer-1i3plvg) ── */
.works-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    height: 460px;
    min-height: 460px;
    width: 100%;
    overflow: hidden;
    padding: 20px 0 0;
    position: relative;
}

/* IMAGE PANEL */
.card-image-panel {
    cursor: none;
    flex: 1 0 0px;
    height: 100%;
    position: relative;
    min-width: 0;
}

.card-image-link {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 7px;
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    position: relative;
    transition: opacity 0.4s cubic-bezier(.34, 1, .64, 1);
}

.card-image-link:hover {
    opacity: 0.9;
}

.card-image-link img {
    display: block;
    width: 100%;
    height: 110%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: -5%;
    left: 0;
    will-change: transform;
}


/* INFO PANEL (framer-1tdsfgf) */
.card-info-panel {
    flex: 1 0 0px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 2px 0;
    min-width: 0;
}

/* TOP HALF (framer-hguhp) */
.card-info-top {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    height: 186px;
    overflow: hidden;
    width: 100%;
}

/* Left: logo + name + desc (framer-1w2q2s) */
.card-info-left {
    flex: 0.8 0 0px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 115px;
    width: 1px;
    min-width: 0;
    overflow: hidden;
    gap: 0;
    padding-top: 0;
}

/* Logo + name row (framer-h2z35m) */
.card-name-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.card-logo {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    overflow: hidden;
}

.card-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Project name (framer-1f3zpfj — Instrument Serif 30px) */
.card-project-name {
    font-family: var(--font-serif-lt);
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1em;
    color: var(--text);
    white-space: pre;
}

/* Description (framer-12ktaaq — Inter 12/500, muted) */
.card-description {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3em;
    color: var(--muted);
    margin-top: 10px;
    word-break: break-word;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Right: index number (framer-2cj6hh / framer-4q685o) */
.card-info-right {
    flex: 1 0 0px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    height: 115px;
    min-width: 0;
    overflow: hidden;
    padding-top: 0;
}

.card-index {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1px;
    line-height: 1.3em;
    color: var(--text);
    white-space: nowrap;
}

/* BOTTOM HALF (framer-130pt06) */
.card-info-bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-end;
    overflow: hidden;
    height: min-content;
    width: 100%;
}

/* Left meta col (framer-e6j4qr) */
.card-meta-left {
    flex: 0.8 0 0px;
    height: 102px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    overflow: visible;
}

.card-meta-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3em;
    color: var(--muted);
    margin-bottom: 2px;
}

.card-site-link {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1px;
    line-height: 1.3em;
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    transition: opacity 0.3s cubic-bezier(.34, 1, .64, 1);
}

.card-site-link:hover {
    opacity: 0.5;
}


/* Right meta col (framer-3tgvaf) */
.card-meta-right {
    flex: 1 0 0px;
    height: auto;
    min-height: 102px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 8px;
    overflow: visible;
    width: auto;
}

/* Tag groups (framer-12qjbex / framer-65x2sz) */
.card-tag-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    width: auto;
}

.card-tag-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3em;
    color: var(--muted);
    white-space: pre-wrap;
    width: 100%;
    text-align: right;
}

.card-tag-value {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3em;
    color: var(--text);
    white-space: pre-wrap;
    width: 100%;
    text-align: right;
}

/* ── TABLET (810–1199px) ── */


/* ── MOBILE (≤809px) — mirrors framer-gpWDC.framer-v-g46yjt ── */


/* ── CUSTOM CURSOR ── */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.28s cubic-bezier(.34, 1, .64, 1), transform 0.06s linear;
    will-change: transform, opacity;
}

.custom-cursor.visible {
    opacity: 1;
}

.custom-cursor-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 100px;
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}


/* Deliverables stacked values in right meta */
.card-tag-group .card-tag-value+.card-tag-value {
    margin-top: 1px;
}


/* ── PARALLAX ── */


/* ── SPRING STAGGER ENTRANCE ── */
.works-card-wrapper {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    transition:
        opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.works-card-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0px) scale(1);
}

/* Stagger delays per card */
.works-card-wrapper:nth-child(1) {
    transition-delay: 0.00s;
}

.works-card-wrapper:nth-child(2) {
    transition-delay: 0.11s;
}

.works-card-wrapper:nth-child(3) {
    transition-delay: 0.22s;
}

.works-card-wrapper:nth-child(4) {
    transition-delay: 0.33s;
}

.works-card-wrapper:nth-child(5) {
    transition-delay: 0.44s;
}

.works-card-wrapper:nth-child(6) {
    transition-delay: 0.55s;
}

.works-card-wrapper:nth-child(7) {
    transition-delay: 0.66s;
}


/* ── ACCESSIBILITY: focus-visible rings ── */
.card-image-link:focus-visible,
.card-site-link:focus-visible,
.card-view-project:focus-visible {
    outline: 2px solid var(--color-black);
    outline-offset: 3px;
    border-radius: 7px;
}

/* Restore cursor for keyboard / non-image-panel hover */
body:not(:hover) .card-image-panel {
    cursor: auto;
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE — Tablet: 810–1199px · Mobile: ≤809px
═══════════════════════════════════════════════════ */

/* ── TABLET (810–1199px) ── */
@media (max-width: 1199px) and (min-width: 810px) {

    .works-section {
        padding-top: 86px;
    }

    .works-section__white-bg {
        top: 100px;
    }

    .works-card-wrapper {
        height: auto;
    }

    .works-card {
        flex-direction: column;
        height: min-content;
        min-height: unset;
        width: 100%;
        padding: 0;
        overflow: visible;
    }

    /* Image panel: aspect-ratio drives height */
    .card-image-panel {
        flex: none;
        width: 100%;
        height: auto;
        aspect-ratio: 1.6109 / 1;
        cursor: pointer;
    }

    /* Link fills panel, img fills link */
    .card-image-link {
        position: absolute;
        inset: 0;
        height: 100%;
        width: 100%;
    }

    .card-image-link img {
        height: 110%;
        top: -5%;
        transform: none !important;
    }

    .card-info-panel {
        flex: none;
        height: min-content;
        width: 100%;
        gap: 16px;
        padding: 16px 0 0;
        overflow: visible;
        justify-content: flex-start;
    }

    .card-info-top {
        height: min-content;
        overflow: visible;
    }

    .card-info-left {
        height: auto;
        width: auto;
        overflow: visible;
    }

    .card-info-right {
        flex: 0.2 0 0px;
        height: auto;
        overflow: visible;
    }

    .card-info-bottom {
        height: min-content;
        overflow: visible;
    }

    .card-meta-left {
        height: auto;
    }

    .card-meta-right {
        height: auto;
        width: auto;
    }
}

/* ── MOBILE (≤809px) ── */
@media (max-width: 809px) {

    .works-section {
        padding-top: 40px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .works-section__white-bg {
        top: 55px;
        left: -16px;
        right: -16px;
    }

    .works-cards {
        padding-left: 0;
        padding-right: 0;
    }

    .works-card-wrapper {
        width: 100%;
    }

    /* Grid */
    .works-cards {
        gap: 40px;
        padding: 15px 0 260px;
    }

    /* Card wrapper — disable spring animation & sticky */
    .works-card-wrapper {
        position: static !important;
        height: auto;
        width: 100%;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Card column layout */
    .works-card {
        flex-direction: column;
        height: min-content;
        min-height: unset;
        width: 100%;
        padding: 12px 0 0;
        gap: 0;
        overflow: visible;
        /* ← was hidden: was clipping info panel */
    }

    /* ── BUG 1 FIX: Images ──
     aspect-ratio on panel alone doesn't give card-image-link
     a definite height for its position:absolute img child.
     Solution: panel is position:relative + aspect-ratio,
     link is position:absolute inset:0, img fills link absolutely. */
    .card-image-panel {
        flex: none;
        width: 100%;
        height: auto;
        aspect-ratio: 1.6 / 1;
        position: relative;
        /* already set, but explicit here */
        cursor: pointer;
    }

    .card-image-link {
        position: absolute;
        /* ← key fix: fills aspect-ratio parent */
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .card-image-link img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none !important;
        /* disable parallax on mobile */
    }

    /* ── BUG 2 FIX: Text truncation ──
     width:1px on card-info-left collapses text to 1px on mobile.
     flex-basis 0 + min-width 0 won't save it. Set width:auto. */
    .card-info-panel {
        flex: none;
        height: min-content;
        width: 100%;
        gap: 16px;
        padding: 16px 0 8px;
        justify-content: flex-start;
        overflow: visible;
        /* ← was hidden: was clipping content */
    }

    .card-info-top {
        height: min-content;
        overflow: visible;
    }

    .card-info-left {
        height: auto;
        width: auto;
        /* ← key fix: was 1px, collapsed all text */
        min-width: 0;
        overflow: visible;
        flex: 0.8 0 0px;
    }

    .card-info-right {
        flex: 0.2 0 0px;
        height: auto;
        overflow: visible;
    }

    /* Project name: 24px, allow wrap on very narrow screens */
    .card-project-name {
        font-size: 24px;
        white-space: normal;
        /* ← was pre: clipped long names */
    }

    /* Description: full width */
    .card-description {
        width: 100%;
        white-space: normal;
    }

    /* Bottom section: stack vertically */
    .card-info-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        height: auto;
        overflow: visible;
    }

    .card-meta-left,
    .card-meta-right {
        height: auto;
        min-height: unset;
        flex: none;
        width: 100%;
        align-items: flex-start;
    }

    /* Bottom row: industry left, deliverables right */
    .card-info-bottom {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0;
    }

    .card-meta-left {
        display: none;
        /* live site removed, left col empty */
    }

    .card-meta-right {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 0;
        width: 100%;
    }

    .card-tag-group {
        align-items: flex-start;
        width: auto;
    }

    /* Industry left, Deliverables right */
    .card-tag-group:first-child {
        align-items: flex-start;
    }

    .card-tag-group:last-child {
        align-items: flex-end;
    }

    .card-tag-label,
    .card-tag-value {
        text-align: left;
        width: auto;
    }

    .card-tag-group:last-child .card-tag-label,
    .card-tag-group:last-child .card-tag-value {
        text-align: right;
    }

    /* Hide pill cursor on touch */
    .custom-cursor {
        display: none !important;
    }
}

/* ============================================================
   CUSTOM CURSOR
============================================================ */
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 3px;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition:
    width  .32s cubic-bezier(0.34, 1.56, 0.64, 1),
    height .32s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-radius .32s cubic-bezier(0.34, 1.56, 0.64, 1),
    background .25s ease,
    mix-blend-mode 0s,
    opacity .18s ease;
}
#cursor.visible   { opacity: 1; }
#cursor.on-text   { width: 28px; height: 28px; }
#cursor.on-card   {
  width: 120px; height: 34px;
  border-radius: 3px;
  background: rgba(15,15,15,0.9);
  mix-blend-mode: normal;
}
#cursor.on-click  { width: 8px; height: 8px; }
#cursor.on-big    { width: 48px; height: 48px; }

#cursor-label {
  font-family: var(--font-display);
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; white-space: nowrap;
  opacity: 0; transition: opacity 0.18s ease 0.1s;
}
#cursor.on-card #cursor-label { opacity: 1; }

@media (hover: none), (max-width: 580px) {
  #cursor { display: none; }
}

