/* ==========================================================================
   JJ INICIO — Home
   Layout system modelled on a 12-col fluid grid (320px → 2560px viewport)
   ========================================================================== */

/* Fonts (Google Fonts, linked in each page): Archivo for headings,
   Manrope for text, Ms Madi for the script accent words. */

:root {
  /* swatches — JJ INICIO palette (the logo: salmon orange backgrounds, raspberry red accents; no gradients) */
  --swatch--dark: #fd8c69;      /* logo salmon — main sections (dark text) */
  --swatch--ink: #2a1416;       /* deep brown-black — text on light sections */
  --swatch--light: #ffffff;     /* text on photos and video */
  --swatch--paper: #fbf3ee;     /* warm cream — light sections */
  --swatch--lavender: #f3e2d9;  /* cards on light sections */
  --swatch--brand: #eb2155;     /* logo raspberry — buttons, lines, cards */
  --swatch--brand-text: #b30d39; /* deeper raspberry for script words and small text, so it reads on salmon */
  --swatch--pink: #ffe3d6;      /* cream — icons on photos */
  --swatch--salmon: #fd8c69;    /* logo salmon */
  --swatch--violet: #eb2155;
  --swatch--white: #fff;
  --swatch--studios: #eb2155;
  --swatch--sky: #fde3d8;
  --swatch--light-o20: rgba(255, 255, 255, .2);
  --swatch--dark-o20: rgba(42, 20, 22, .2);
  --swatch--white-o20: rgba(255, 255, 255, .2);

  /* fonts */
  --font-primary: Manrope, Arial, sans-serif;
  --font-secondary: "Archivo", Impact, sans-serif;
  --font-tertiary: "Ms Madi", Georgia, cursive;

  /* fluid helper: value = A + (B-A) * progress, progress 0 @ 20rem → 1 @ 160rem */
  --fp: calc((100vw - 20rem) / 140);

  --fs-small: clamp(.875rem, calc(.875rem + .0625 * var(--fp)), .9375rem);
  --fs-main: clamp(1rem, calc(1rem + .179 * var(--fp)), 1.179rem);
  --fs-large: clamp(1.125rem, calc(1.125rem + .358 * var(--fp)), 1.483rem);
  --fs-h6: clamp(.8125rem, calc(.8125rem + .179 * var(--fp)), .9915rem);
  --fs-h5: clamp(.875rem, calc(.875rem + .179 * var(--fp)), 1.054rem);
  --fs-h4: clamp(1.25rem, calc(1.25rem + .358 * var(--fp)), 1.608rem);
  --fs-h3: clamp(1.25rem, calc(1.25rem + 1.071 * var(--fp)), 2.321rem);
  --fs-h2: clamp(1.5rem, calc(1.5rem + 1.071 * var(--fp)), 2.571rem);
  --fs-h1: clamp(1.75rem, calc(1.75rem + 1.787 * var(--fp)), 3.537rem);
  --fs-display: clamp(2rem, calc(2rem + 2.858 * var(--fp)), 4.858rem);
  --fs-display-accent: clamp(2.25rem, calc(2.25rem + 8.213 * var(--fp)), 10.463rem);
  --fs-h4-accent: clamp(2.5rem, calc(2.5rem + .713 * var(--fp)), 3.213rem);

  --space-0-75: .75rem;
  --space-1: 1rem;
  --space-1-5: clamp(1.25rem, calc(1.25rem + .358 * var(--fp)), 1.608rem);
  --space-2: clamp(1.75rem, calc(1.75rem + .358 * var(--fp)), 2.108rem);
  --space-2-5: clamp(2.25rem, calc(2.25rem + .358 * var(--fp)), 2.608rem);
  --space-3: clamp(2.5rem, calc(2.5rem + .713 * var(--fp)), 3.213rem);
  --space-4: clamp(3rem, calc(3rem + 1.429 * var(--fp)), 4.429rem);
  --space-5: clamp(4rem, calc(4rem + 1.429 * var(--fp)), 5.429rem);
  --section-main: clamp(6rem, calc(6rem + 8.571 * var(--fp)), 14.571rem);
  --section-small: clamp(3rem, calc(3rem + 4.287 * var(--fp)), 7.287rem);
  --section-large: clamp(7.5rem, calc(7.5rem + 10.713 * var(--fp)), 18.213rem);
  --section-page-top: clamp(8rem, calc(8rem + 12.142 * var(--fp)), 20.142rem);

  --site-margin: clamp(1.25rem, calc(1.25rem + 1.787 * var(--fp)), 3.037rem);
  --site-gutter: .75rem;
  --max-width-main: 160rem;

  --radius-small: .5rem;
  --radius-main: .75rem;
  --radius-large: 1.25rem;
  --radius-round: 100vw;
  --border-main: .0625rem;
  --border-large: .125rem;
  --button-medium: clamp(2.25rem, calc(2.25rem + .358 * var(--fp)), 2.608rem);
  --button-large: clamp(3rem, calc(3rem + .5 * var(--fp)), 3.5rem);
  --squiggle-width: clamp(.75rem, calc(.75rem + .6 * var(--fp)), 1.35rem);

  --ease-osmo: cubic-bezier(.625, .05, 0, 1);
  --ease-bounce: cubic-bezier(.35, 1.75, .6, 1);

  /* theme (dark by default — animated on <body> while scrolling) */
  --bg: var(--swatch--dark);
  --text: var(--swatch--ink);
  --heading-accent: var(--swatch--brand-text);
  --theme-accent: var(--swatch--brand);
  --border: var(--swatch--dark-o20);
  --btn-bg: var(--swatch--brand);
  --btn-text: var(--swatch--white);
  --btn2-bg: var(--swatch--white);
  --btn2-text: var(--swatch--ink);
  --card: color-mix(in srgb, var(--bg), white 7%);
  --menu: var(--bg);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scrollbar-width: none; /* no scrollbar, as on LXL: keeps 100vw = the full window */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-primary);
  font-size: var(--fs-main);
  font-weight: 500;
  line-height: 1.4;
  overflow-x: clip;
  scrollbar-width: none;
  overscroll-behavior: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
::selection { background: color-mix(in srgb, var(--theme-accent), white 40%); color: var(--swatch--ink); }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p { margin: 0; font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- utilities ---------- */
.u-container {
  position: relative;
  width: calc(100% - var(--site-margin) * 2);
  max-width: var(--max-width-main);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-5);
}
.u-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--section-main);
  background-color: var(--bg);
  color: var(--text);
}
.u-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--site-gutter);
}
.u-spacer-small { height: var(--section-small); }
.u-spacer-main { height: var(--section-main); }
.u-spacer-large { height: var(--section-large); }
.u-spacer-even { height: var(--site-margin); }
.u-center { text-align: center; align-items: center; }
.u-faded { color: color-mix(in srgb, currentColor 78%, transparent); } /* secondary text: still ~5:1 on salmon */

.u-image-wrapper { position: absolute; inset: 0; overflow: clip; background: var(--card); }
.u-image-wrapper > img, .u-image-wrapper > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
/* YouTube thumbnails carry letterbox bars — zoom them away */
.is-letterbox > img { transform: scale(1.34); }
.u-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .2); }

/* ---------- type styles ---------- */
.t-display, .t-h1, .t-h2, .t-h4, .t-h5 {
  font-family: var(--font-secondary);
  /* Archivo tuned to sit like Owners Wide: wide, heavy, tightly tracked */
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.t-display { font-size: var(--fs-display); line-height: .95; }
.t-h1 { font-size: var(--fs-h1); line-height: 1; }
.t-h2 { font-size: var(--fs-h2); line-height: 1; }
.t-h4 { font-size: var(--fs-h4); line-height: 1; }
.t-h5 { font-size: var(--fs-h5); line-height: 1.2; }
.t-h3 { font-family: var(--font-primary); font-size: var(--fs-h3); font-weight: 600; line-height: 1; text-wrap: balance; }
.t-h6 { font-family: var(--font-primary); font-size: var(--fs-h6); font-weight: 600; line-height: 1.2; }
/* body copy: regular weight, roomy line height, comfortable line length */
.t-large { font-size: var(--fs-large); font-weight: 400; line-height: 1.55; text-wrap: pretty; max-width: 60ch; }
.t-main { font-size: var(--fs-main); font-weight: 400; line-height: 1.55; text-wrap: pretty; max-width: 60ch; }
.t-small { font-size: var(--fs-small); font-weight: 600; line-height: 1.45; letter-spacing: .01em; }
.t-main strong, .t-large strong { font-weight: 700; }
.u-text-soft { opacity: .85; } /* secondary text inside the raspberry cards */

.t-display-accent, .t-h4-accent {
  font-family: var(--font-tertiary);
  color: var(--heading-accent);
  font-weight: 400;
  text-transform: none;
  font-variant-ligatures: no-contextual;
  -webkit-text-stroke: .02em currentColor; /* a heavier pen so the thin script strokes hold up */
}
.t-display-accent { font-size: var(--fs-display-accent); line-height: .9; }
.t-h4-accent { font-size: var(--fs-h4-accent); line-height: 1; }

/* script word inside a heading */
.u-accent strong, .u-accent-padded strong {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--font-tertiary);
  font-stretch: 100%;
  color: var(--heading-accent);
  font-size: 1.8em;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-text-stroke: .02em currentColor;
  text-transform: none;
  overflow: visible;
}
.u-accent strong { line-height: .3; margin: -.3em; padding: .3em; top: -.12em; } /* lifted so the script word clears the line below */
.u-accent-padded strong { line-height: .7; margin: -.5em -.3em; padding: .5em .3em; }

.u-rich p + p { margin-top: 1em; }

/* ---------- motion helpers ---------- */
@keyframes sprite { to { transform: translateX(-100%); } }
@keyframes wiggle { from { transform: rotate(1deg); } to { transform: rotate(-1deg); } }
[data-sprite] .sprite-svg { animation: sprite .45s steps(4, end) infinite; }
[data-wiggle]:hover [data-wiggle-target] { animation: wiggle .3s steps(2, end) infinite; }
[data-draw-svg] { opacity: 0; }
[data-draw-svg] path { color: var(--theme-accent); stroke-width: var(--squiggle-width); vector-effect: non-scaling-stroke; }
[data-enter-item] { visibility: hidden; }
.no-js [data-enter-item], .no-js [data-draw-svg] { visibility: visible; opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-block;
  height: var(--button-medium);
  border-radius: var(--radius-main);
  transition: transform .5s var(--ease-bounce);
  transform: scale(1) rotate(.001deg);
}
.btn:hover { transform: scale(1.05) rotate(-1deg); }
.btn.is-large { height: var(--button-large); }
.btn.is-full { width: 100%; }
.btn_el {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: var(--space-1);
  border: var(--border-large) solid rgba(255, 255, 255, .2);
  border-radius: inherit;
  background: var(--btn-bg);
  background-origin: border-box; /* gradient starts at the border, so it doesn't wrap a pink strip onto the left edge */
  color: var(--btn-text);
  line-height: 1;
}
.btn.is-secondary .btn_el { background: var(--btn2-bg); color: var(--btn2-text); }
.btn_text { position: relative; line-height: 1; }
.icon-sprite { position: relative; flex-shrink: 0; width: 1.125rem; overflow: hidden; }
.icon-sprite .sprite-svg { width: 400%; max-width: none; height: auto; }
.btn-wrapper { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.u-center .btn-wrapper { justify-content: center; }

/* hand-drawn hover underline */
.draw-line { position: relative; display: inline-flex; flex-direction: column; }
.draw-line_box { position: relative; width: 100%; height: .4em; color: var(--heading-accent); }
.draw-line_box svg { position: absolute; width: 100%; height: 100%; overflow: visible; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav_wrap { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: 1.5rem; }
.nav_contain { pointer-events: none; z-index: 2; }
.nav_layout { display: grid; grid-template-columns: 1fr auto .3fr; align-items: center; height: 3rem; } /* logo left, menu a little right of centre */
.nav_logo { pointer-events: auto; width: clamp(9rem, calc(9rem + 1.429 * var(--fp)), 10.429rem); margin-top: -.6em; }
.nav_logo svg { width: 100%; height: auto; overflow: visible; }
.nav_link_wrap { position: relative; grid-column: 2; display: flex; align-items: center; height: 100%; pointer-events: auto; }
.nav_link_list { position: relative; z-index: 1; display: flex; gap: var(--space-2); }
.nav_link { font-weight: 600; color: inherit; }

[data-theme-nav] .nav_link, [data-theme-nav] .nav_logo, [data-theme-nav] .nav_dropdown_content { transition: color .15s var(--ease-osmo); }
/* the nav links are white on every background (photos, salmon and cream alike); a soft shadow keeps them readable on light areas */
[data-theme-nav] .nav_link { color: var(--swatch--light); text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 0 10px rgba(0, 0, 0, .25); }
[data-theme-nav=light] .nav_dropdown_bg, [data-theme-nav=light] .menu_mobile_bg { --menu: var(--swatch--paper); }
[data-theme-nav=dark] .nav_dropdown_bg, [data-theme-nav=dark] .menu_mobile_bg,
[data-theme-nav=image] .nav_dropdown_bg, [data-theme-nav=image] .menu_mobile_bg,
[data-theme-nav=hero] .nav_dropdown_bg, [data-theme-nav=hero] .menu_mobile_bg { --menu: var(--swatch--dark); }
[data-theme-nav=light] .nav_dropdown_content, [data-theme-nav=light] .menu_mobile_content { color: var(--swatch--ink); }
[data-theme-nav=dark] .nav_dropdown_content, [data-theme-nav=dark] .menu_mobile_content,
[data-theme-nav=image] .nav_dropdown_content, [data-theme-nav=image] .menu_mobile_content,
[data-theme-nav=hero] .nav_dropdown_content, [data-theme-nav=hero] .menu_mobile_content { color: var(--swatch--ink); }

.nav_dropdown_wrap {
  position: absolute;
  top: -1.5rem;
  right: calc(var(--space-1) * -1.125);
  width: calc(100% + var(--space-1) * 2.25);
  padding: var(--space-1) calc(var(--site-margin) / 2) var(--space-1) var(--space-1);
  visibility: hidden;
  pointer-events: none;
}
.nav_dropdown { position: relative; width: 100%; padding: var(--space-5) var(--space-1) var(--space-1); }
.nav_dropdown_bg {
  position: absolute; inset: 0;
  border: var(--border-large) solid var(--border);
  border-radius: var(--radius-large);
  background: var(--menu);
  transition: background-color .15s;
  will-change: transform;
}
/* full-screen dim behind open dropdowns / mobile menu */
.menu_overlay {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100vh;
  background-color: rgba(0, 0, 0, .3);
  opacity: 0; visibility: hidden;
}
.nav_dropdown_content { position: relative; z-index: 1; }
.nav_work_list { display: flex; flex-direction: column; gap: var(--space-0-75); }
.nav_work_item { display: flex; align-items: center; gap: var(--space-1); }
.nav_work_visual { position: relative; flex: none; width: var(--space-5); aspect-ratio: 1; border-radius: var(--radius-main); overflow: clip; }
.nav_work_content { display: flex; flex-direction: column; gap: .625rem; }
.nav_services_item { border-bottom: var(--border-main) solid color-mix(in srgb, currentColor 10%, transparent); }
.nav_services_item:last-child { border-bottom: 0; }
.nav_services_link { display: block; padding-block: var(--space-0-75); transition: opacity .25s; }
@media (hover: hover) {
  .nav_services_list:has(.nav_services_item:hover) .nav_services_item:not(:hover) .nav_services_link { opacity: .35; }
}
.nav_dropdown_btn { margin-top: var(--space-1); }
.nav_work_list.is-cols { display: flex; flex-direction: column; gap: .55rem; max-height: calc(100svh - 12rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; } /* Our works: one project per row */
.nav_work_list.is-cols::-webkit-scrollbar { display: none; }
.nav_work_list.is-cols .nav_work_visual { width: 2.75rem; }
.nav_work_list.is-cols .nav_work_content { gap: .2rem; }

.nav_menu_toggle { display: none; grid-column: 3; justify-self: end; }
.menu_mobile { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
/* Home banner: headline left; the photo in a tall arch window right, a spinning badge on its edge; services strip along the bottom */
.hero-arch_wrap { display: flex; flex-direction: column; height: 100svh; min-height: 36rem; padding-block: 0; overflow: clip; }
.hero-arch_contain { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); max-width: 86rem; padding-inline: clamp(0rem, 5vw, 4rem); /* capped so text and slider stay together; equal side space */ padding-block: 7rem var(--space-2); }
.hero-arch_text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1-5); }
.hero-arch_eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .9rem; letter-spacing: .08em; text-transform: uppercase; } /* sits clear above the script word */
.hero-arch_eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--swatch--brand); }
.hero-arch_title { line-height: 1.08; }
@media (min-width: 992px) { .hero-arch_title { white-space: nowrap; } }
.hero-arch_lead { max-width: 40ch; }
.hero-arch_btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-arch_stats { display: flex; gap: var(--space-2); margin: var(--space-1) 0 0; padding-top: calc(var(--space-1-5) + var(--space-1)); /* same space above and below the line */ border-top: var(--border-main) solid color-mix(in srgb, currentColor 18%, transparent); }
.hero-arch_stats div { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: .2rem; }
.hero-arch_stats dt { opacity: .7; }
.hero-arch_stats dd { margin: 0; font-family: var(--font-secondary); font-size: var(--fs-h2); font-weight: 800; line-height: 1; }
/* zigzag slider: two staggered columns of photo cards drifting in opposite directions, faded at the top and bottom */
.hero-zz { position: relative; align-self: stretch; min-height: 0; }
.hero-zz_cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; height: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.hero-zz_track { display: flex; flex-direction: column; gap: 1rem; animation: hero-zz-up 35s linear infinite; } /* 35s for four photos a column keeps the old scroll speed */
.hero-zz_col.is-down { padding-top: 4.5rem; } /* the offset that makes the zigzag */
.hero-zz_col.is-down .hero-zz_track { animation-name: hero-zz-down; }
.hero-zz:hover .hero-zz_track { animation-play-state: paused; }
.hero-zz_dup { display: contents; }
.hero-zz_card { position: relative; flex: none; margin: 0; aspect-ratio: 4 / 5; border: .3rem solid var(--swatch--white); border-radius: var(--radius-large); overflow: clip; background: var(--swatch--ink); box-shadow: 0 1rem 2.5rem rgba(42, 20, 22, .2); }
.hero-zz_card:nth-child(even) { transform: rotate(1.5deg); }
.hero-zz_card:nth-child(odd) { transform: rotate(-1.5deg); }
.hero-zz_card img { width: 100%; height: 100%; object-fit: cover; }
.hero-zz_card figcaption { position: absolute; left: .6rem; bottom: .6rem; padding: .3rem .7rem; border-radius: 999px; background: var(--swatch--white); color: var(--swatch--ink); }
@keyframes hero-zz-up { to { transform: translateY(calc(-50% - .5rem)); } }
@keyframes hero-zz-down { from { transform: translateY(calc(-50% - .5rem)); } to { transform: translateY(0); } }
.hero-arch_badge { position: absolute; z-index: 2; left: -4.25rem; top: 50%; margin-top: -4.75rem; width: 9.5rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--swatch--brand); color: var(--swatch--white); box-shadow: 0 .75rem 2rem rgba(42, 20, 22, .3); }
.hero-arch_badge_ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: hero-badge-spin 14s linear infinite; }
.hero-arch_badge_ring text { font-family: var(--font-secondary); font-size: 17px; font-weight: 800; letter-spacing: .16em; fill: currentColor; }
.hero-arch_badge_logo { width: 3.6rem; padding: .3rem; border-radius: var(--radius-small); background: var(--swatch--white); }
@keyframes hero-badge-spin { to { transform: rotate(360deg); } }
.hero-arch_marquee { flex: none; overflow: clip; padding-block: .9rem; background: var(--swatch--ink); color: var(--swatch--white); }
.hero-arch_track { display: flex; width: max-content; animation: hero-marquee 40s linear infinite; }
.hero-arch_run { display: flex; align-items: center; gap: 1.5rem; padding-right: 1.5rem; font-family: var(--font-secondary); font-size: var(--fs-h6); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.hero-arch_star { color: var(--swatch--salmon); }
@keyframes hero-marquee { to { transform: translateX(-50%); } }
@media (min-width: 992px) and (max-height: 760px) { .hero-arch_contain { padding-top: 6rem; } .hero-arch_text { gap: .9rem; } .hero-arch_title { font-size: var(--fs-h1); } .hero-arch_stats { margin-top: 1rem; padding-top: 1.9rem; } .hero-arch_stats dd { font-size: var(--fs-h3); } .hero-arch_badge { width: 7.5rem; left: -3.5rem; margin-top: -3.75rem; } }
@media (max-width: 991px) {
  .hero-arch_wrap { height: auto; }
  .hero-arch_contain { grid-template-columns: 1fr; padding-top: 7.5rem; }
  .hero-zz { height: 28rem; }
  .hero-arch_badge { left: auto; right: -.5rem; top: -1.5rem; margin-top: 0; }
  .hero-arch_badge { width: 6.5rem; }
}
@media (prefers-reduced-motion: reduce) { .hero-arch_track, .hero-arch_badge_ring, .hero-zz_track { animation: none; } }

/* Home "Our works": laid out like Our services (mirrored) — a deck of project cards on the left, the heading on the right */
.works-deck_wrap { display: flex; height: 100svh; min-height: 36rem; padding-block: 7rem var(--space-2); }
.works-deck_contain { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--space-2); } /* title row on top, the deck below */
.works-deck_visual, .works-deck_content { width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.works-deck_content { order: -1; }
.works-deck_content .card_stack_heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: var(--space-1-5) var(--space-3); width: 100%; max-width: none; text-align: left; }
.works-deck_content .card_stack_heading .t-main { max-width: 44ch; justify-self: center; }
.works-deck_visual { flex: 1; gap: var(--space-1-5); min-height: 0; }
.works-deck_list { position: relative; flex: none; height: clamp(13rem, calc(100svh - 22rem), 26rem); aspect-ratio: 4 / 5; }
.works-deck_card { will-change: transform; box-shadow: 0 1.5rem 3rem rgba(42, 20, 22, .25); }
.works-deck_card .u-image-wrapper { position: absolute; inset: 0; }
.works-deck_controls { display: flex; align-items: center; gap: var(--space-1); }
.works-deck_arrow { display: grid; place-items: center; width: 3rem; aspect-ratio: 1; border-radius: 50%; background: var(--swatch--white); color: var(--swatch--ink); box-shadow: 0 .5rem 1.25rem rgba(42, 20, 22, .15); transition: background-color .25s, color .25s, transform .4s var(--ease-bounce); }
.works-deck_arrow svg { width: 1.25rem; }
.works-deck_arrow:hover { background: var(--swatch--brand); color: var(--swatch--white); transform: scale(1.06); }
.works-deck_count { min-width: 4.5rem; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 991px) {
  .works-deck_wrap { height: auto; min-height: 0; padding-block: var(--section-main); }
  .works-deck_contain { gap: var(--space-3); }
  .works-deck_content .card_stack_heading { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .works-deck_list { height: auto; width: min(70%, 24rem); }
}
@media (prefers-reduced-motion: reduce) { .works-deck_arrow { transition: none; } }

/* ==========================================================================
   Video scroll zoom
   ========================================================================== */
.video-scroll_wrap { background: transparent; padding-top: 20dvh; padding-bottom: 0; }
.video-scroll_contain { gap: 0; align-items: center; }
.video-scroll_start { position: relative; width: 40%; aspect-ratio: 3/2; border-radius: var(--radius-large); }
.video-scroll_content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; backface-visibility: hidden; }
.video-scroll_media { position: absolute; inset: 0; overflow: hidden; background: #000; }
.video-scroll_media video { width: 100%; height: 100%; object-fit: cover; }
.video-scroll_overlay { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.video-scroll_end { display: block; width: 100vw; height: 100dvh; flex: none; }
.video-scroll_controls {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: center; align-items: flex-end;
  width: 100vw; height: 100dvh; flex: none;
  padding-bottom: var(--space-2-5);
  pointer-events: none;
}
.video-scroll_controls_bg {
  position: absolute; inset: auto 0 0; height: 20vh;
  transform: translateY(.0625rem);
}
.video-scroll_text_wrap {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding-bottom: 50dvh; text-align: center; color: var(--swatch--light);
}
.video-scroll_text { max-width: 17ch; }
.sound_toggle {
  position: relative; z-index: 1; pointer-events: auto;
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .375rem .375rem .375rem .75rem;
  border-radius: var(--radius-round);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--swatch--white);
}
.sound_toggle_track { display: inline-block; width: 1.75rem; height: 1rem; padding: .125rem; border-radius: var(--radius-round); background: rgba(255, 255, 255, .2); transition: background-color .3s; }
.sound_toggle_dot { display: block; width: .75rem; aspect-ratio: 1; border-radius: 50%; background: var(--swatch--white); will-change: transform; }
.sound_toggle[aria-checked=true] .sound_toggle_track { background: var(--heading-accent); }

/* ==========================================================================
   Card stack (services)
   ========================================================================== */
.card-stack_wrap { justify-content: flex-start; padding-block: 0; }
.card-stack_track { height: 600vh; }
.card_stack_contain { display: block; position: sticky; top: 0; }
.card_stack_layout { display: flex; width: 100%; min-height: 100dvh; padding-block: var(--section-main); }
.card_stack_content, .card_stack_visual_wrap { width: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.card_stack_heading { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); max-width: 33ch; }
.card_stack_list_wrap { position: relative; z-index: 1; width: 60%; max-width: 30rem; }
.card_stack_list { position: relative; width: 100%; aspect-ratio: 4/5; perspective: 25vw; }
.card_stack_item {
  position: absolute; inset: 0 auto auto 0; z-index: 1;
  width: 100%; height: 100%;
  display: flex; align-items: flex-end;
  padding: var(--space-1-5);
  border-radius: var(--radius-main);
  overflow: clip;
}
.card_stack_item_overlay { position: absolute; inset: auto 0 0; z-index: 1; height: 50%; background-image: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.card_stack_card_content {
  position: relative; z-index: 2; width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-1);
  color: var(--swatch--white);
  transition: transform .5s var(--ease-bounce);
  transform: scale(1) rotate(.001deg);
}
.card_stack_item:hover .card_stack_card_content { transform: scale(1.03) rotate(-.5deg); }
.card_stack_card_text { max-width: 12ch; }
.card_stack_card_icon { width: var(--space-1-5); color: var(--swatch--pink); }
.card_stack_item .clickable { position: absolute; inset: 0; z-index: 3; }
.card_stack_squiggle { position: absolute; top: 50%; right: calc(var(--site-margin) * -1); width: 20vw; }
.squiggle svg { width: 100%; height: auto; overflow: visible; }

/* ==========================================================================
   Image cycle (about)
   ========================================================================== */
.img-cycle_wrap { z-index: 2; } /* its squiggle overlaps the top of the featured section */
.img-cycle_wrap > .u-container, .features_contain, .testimonials_wrap > .u-container { z-index: 1; }
.img-cycle_layout { align-items: center; }
.img-cycle_visual_wrap { position: relative; grid-column: 2 / 6; aspect-ratio: 4/5; border-radius: var(--radius-main); overflow: hidden; }
.img-cycle_item { opacity: 0; visibility: hidden; }
.img-cycle_item:first-child { opacity: 1; visibility: visible; }
.img-cycle_content { grid-column: 7 / -1; display: flex; flex-direction: column; gap: var(--space-2); }
.img-cycle_content .t-h3 { max-width: 25ch; font-weight: 700; line-height: 1.18; letter-spacing: -.015em; word-spacing: -.04em; text-wrap: pretty; } /* bold and set tight; enough line height for the script word */
.img-cycle_content .t-main { max-width: 46ch; line-height: 1.7; }
.img-cycle_squiggle { position: absolute; left: 0; top: 50%; width: 100%; transform: translateY(-50%); pointer-events: none; }

/* ==========================================================================
   Featured projects
   ========================================================================== */
.ft-projects_wrap {
  --bg: var(--swatch--dark); --text: var(--swatch--light); --heading-accent: var(--swatch--brand);
  --card: color-mix(in srgb, var(--swatch--dark), white 7%);
  height: 110dvh; padding-block: 0; justify-content: flex-start; overflow: clip;
}
.ft-projects_component { flex: 1; }
.ft-projects_sticky { position: sticky; top: 0; z-index: 1; width: 100%; height: 100dvh; }
.ft-projects_contain { z-index: 1; height: 100%; }
.ft-projects_contain.is-mobile, .ft-projects_title_wrap.is-mobile { display: none; }
.ft-projects_layout { height: 100%; display: flex; justify-content: space-between; align-items: flex-end; padding-top: var(--section-main); padding-bottom: var(--space-3); }
.ft-projects_title_wrap { max-width: 22rem; }
.ft-projects_title { margin-bottom: var(--space-0-75); }
.ft-projects_title_wrap .t-h3 { max-width: 20ch; margin-bottom: var(--space-2); }
.ft-projects_nav { width: 100%; max-width: 20rem; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.ft-projects_card_list { position: relative; width: 100%; height: 30rem; perspective: 800px; }
.ft-projects_card_item {
  position: absolute; inset: auto 0 0;
  display: flex; align-items: center; gap: 1.25rem;
  width: 100%; height: clamp(5rem, calc(5rem + 1.429 * var(--fp)), 6.429rem);
  padding: .5rem 1.5rem .5rem .5rem;
  border: var(--border-main) solid var(--swatch--dark-o20);
  border-radius: 1rem;
  background: var(--swatch--white); color: var(--swatch--ink);
}
.ft-projects_card_visual { position: relative; flex: none; height: 100%; aspect-ratio: 1; border-radius: .7rem; overflow: hidden; }
.ft-projects_card_visual img { transition: transform .5s ease; }
.ft-projects_card_item:hover .ft-projects_card_visual img { transform: scale(1.1); }
.ft-projects_card_visual .is-letterbox > img { transform: scale(1.34); }
.ft-projects_card_item:hover .ft-projects_card_visual .is-letterbox > img { transform: scale(1.45); }
.ft-projects_card_content { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: var(--space-1); }
.ft-projects_card_icon { width: var(--space-1-5); color: var(--swatch--brand); }
.ft-projects_progress { position: relative; width: 5rem; height: .25rem; border-radius: var(--radius-round); background: rgba(255, 255, 255, .2); backdrop-filter: blur(10px); overflow: hidden; }
.ft-projects_progress_fill { width: 100%; height: 100%; background: var(--swatch--brand); transform: scaleX(0); transform-origin: left center; }
.ft-projects_bg { position: absolute; inset: 0; z-index: 0; }
.ft-projects_bg_item { position: absolute; inset: 0; }
/* light overlay: a soft overall tint, deepening toward the bottom where the title and card sit */
.ft-projects_bg .u-overlay { background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .2) 45%, rgba(0, 0, 0, .55) 100%); }

/* ==========================================================================
   Feature pills (why JJ)
   ========================================================================== */
.features_contain { z-index: 1; }
.feature-pills_wrap { --expanded: 30rem; position: relative; width: 100%; }
.feature-pills_layout { place-items: center stretch; }
.feature-pills_col { position: relative; grid-column: 1 / 6; width: 100%; }
.feature-pills_col.is-visual { grid-column: 7 / 12; }
.feature-pills_list { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); width: 100%; max-width: var(--expanded); margin-inline: auto; }
.feature-pills_item { position: relative; }
.feature-pills_item-bg { position: absolute; inset: 0; z-index: 0; border-radius: var(--radius-large); background: var(--card); }
.feature-pills_button {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: var(--space-1);
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-1-5);
  white-space: nowrap;
  opacity: 1; transition: opacity 400ms ease-in-out 300ms;
}
.feature-pills_icon {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: var(--space-2); height: var(--space-2); padding: .5rem;
  border: var(--border-main) solid color-mix(in srgb, var(--text) 20%, transparent);
  border-radius: var(--radius-main);
  background: color-mix(in srgb, var(--text) 10%, transparent);
}
.feature-pills_icon svg { width: 100%; height: 100%; }
.feature-pills_content { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.feature-pills_mask { width: 100%; height: 100%; overflow: hidden; }
.feature-pills_inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
  width: max-content; max-width: var(--expanded);
  padding: var(--space-2) var(--space-2) var(--space-2-5);
  text-align: center;
  opacity: 0; transition: opacity 300ms ease-in-out;
}
.feature-pills_inner .t-main { max-width: 26rem; }
.feature-pills_item[data-active=true] .feature-pills_button { opacity: 0; transition: opacity 50ms ease-in-out; }
.feature-pills_item[data-active=true] .feature-pills_inner { opacity: 1; }
.feature-pills_item[data-active=true] .feature-pills_content { pointer-events: auto; }
.feature-pills_visual-collection { position: relative; z-index: 0; width: 100%; aspect-ratio: 4/5; max-height: 80vh; border-radius: var(--radius-main); overflow: clip; }
.feature-pills_visual { position: absolute; inset: 0; opacity: 0; transition: opacity 350ms ease-in-out; }
.feature-pills_visual[data-active=true] { opacity: 1; }
.feature-pills_cover { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-main); overflow: clip; transition: opacity 350ms ease-in-out; }
.feature-pills_cover[data-active=false] { opacity: 0; }
.feature-pills_heading { position: absolute; inset: -6% auto auto -12%; z-index: 2; max-width: 8ch; transform: rotate(-12deg); }
.feature-pills_close { position: absolute; top: var(--space-1); right: var(--space-1); z-index: 3; color: var(--swatch--white); }
.feature-pills_close-btn {
  display: flex; align-items: center; justify-content: center;
  width: var(--space-2-5); height: var(--space-2-5); padding: .6rem;
  border: var(--border-main) solid rgba(255, 255, 255, .25); border-radius: var(--radius-main);
  background: rgba(42, 20, 22, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: scale(0) rotate(135deg); opacity: 0; pointer-events: none;
  transition: all 500ms cubic-bezier(.7, 0, .3, 1);
}
.feature-pills_wrap[data-active=true] .feature-pills_close-btn { transform: scale(1) rotate(45deg); opacity: 1; pointer-events: auto; }
.features_squiggle { position: absolute; inset: auto 0 -36%; pointer-events: none; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials_wrap { background: transparent; }
.testimonials_layout { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); width: 100%; }
.testimonials_pagination {
  --pg-size: 7rem; --pg-gap: 1rem;
  position: relative; display: flex; justify-content: center; gap: var(--pg-gap);
  color: var(--heading-accent);
}
.testimonials_pagination.is-init { display: block; width: calc(var(--pg-size) * 3 + var(--pg-gap) * 2); height: calc(var(--pg-size) * 1.2); margin-inline: auto; }
.testimonials_pg_item { position: relative; flex: none; width: var(--pg-size); aspect-ratio: 1; }
.testimonials_pagination.is-init .testimonials_pg_item { position: absolute; top: 50%; left: 50%; margin: calc(var(--pg-size) / -2) 0 0 calc(var(--pg-size) / -2); }
.testimonials_pg_btn { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: clip; }
.testimonials_ring { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; transform: translate(-50%, -50%) scale(1.2); overflow: visible; pointer-events: none; }
.testimonials_list { position: relative; display: grid; width: 100%; }
.testimonials_item {
  grid-area: 1 / 1; align-self: start; /* own height, so the list can fit the active quote */
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
  width: 100%; text-align: center;
  opacity: 0; visibility: hidden;
}
.testimonials_item.is-active { opacity: 1; visibility: visible; }
.testimonials_item_title { max-width: 22ch; text-wrap: balance; }
@media (max-width: 479px) { .testimonials_item_title { font-stretch: 100%; letter-spacing: -.03em; } } /* same size as LXL; unstretched so long words like "GROUNDBREAKING" fit */
.text-line-mask { padding-bottom: .2em; margin-bottom: -.2em; }

/* ==========================================================================
   Studios-style card (vision)
   ========================================================================== */
.studios_wrap { background: transparent; }
.studios_contain { z-index: 1; }
.studios_layout {
  --bg: var(--swatch--sky); --text: var(--swatch--ink); --heading-accent: var(--swatch--violet);
  --theme-accent: var(--swatch--studios); --btn-bg: var(--swatch--brand);
  --card: color-mix(in srgb, var(--swatch--sky), black 7%);
}
.studios_visual { position: relative; grid-column: 2 / 7; width: 100%; align-self: stretch; aspect-ratio: 5 / 4; border-radius: var(--radius-main); } /* stretch: matches the text card when the copy runs taller */
.studios_visual .u-image-wrapper { border-radius: var(--radius-main); }
.studios_heading { position: absolute; inset: -5% auto auto -5%; z-index: 2; transform: rotate(-12deg); }
.studios_content {
  grid-column: 7 / -2;
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-2);
  padding: var(--space-2-5);
  border-radius: var(--radius-large);
  background: var(--theme-accent); color: var(--swatch--light);
}
.studios_content .t-h1 { max-width: 18ch; }
.studios_text { display: flex; flex-direction: column; gap: var(--space-2); }
.studios_text .t-main { max-width: 40ch; }
/* Vision & Mission: two square flip cards; the front shows the picture and the script word, hovering
   (or tapping / Enter) turns the card over to the statement on the back. A squiggle draws behind them. */
.vm_wrap { position: relative; overflow: clip; min-height: 100svh; justify-content: center; padding-block: 6.5rem 2.5rem; } /* fills the screen */
.vm_contain { position: relative; z-index: 1; row-gap: 0; }
.vm_anchor { position: absolute; top: 0; left: 0; }
.vm_head { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); text-align: center; }
.vm_squiggle { position: absolute; top: 10%; bottom: -4%; left: calc(50% - 50vw - 4rem); right: calc(50% - 50vw - 4rem); z-index: 0; pointer-events: none; } /* runs off both screen edges, like the other squiggles */
.vm_squiggle svg { width: 100%; height: 100%; }
.vm_cards { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); width: min(100%, 58rem); margin: var(--space-2-5) auto 0; }
@media (min-width: 768px) { .vm_cards .vm-flip { aspect-ratio: auto; height: min(29.5rem, calc(100svh - 21rem)); } } /* square on tall screens, a little wider on short ones, so the section fits one screen */
.vm-flip { position: relative; z-index: 1; aspect-ratio: 1; perspective: 1600px; cursor: pointer; outline: none; scroll-margin-top: 7rem; }
.vm-flip.is-vision { transform: rotate(-2.5deg); }
.vm-flip.is-mission { transform: rotate(2.5deg) translateY(2rem); }
.vm-flip_inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease-osmo); }
@media (hover: hover) { .vm-flip:hover .vm-flip_inner { transform: rotateY(180deg); } }
.vm-flip.is-flipped .vm-flip_inner { transform: rotateY(180deg); }
.vm-flip:focus-visible .vm-flip_face { outline: .25rem solid var(--swatch--ink); outline-offset: .3rem; }
.vm-flip_face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1);
  padding: var(--space-2); border-radius: var(--radius-large); text-align: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 1.75rem 4rem rgba(42, 20, 22, .22);
}
.vm-flip.is-vision .is-front { background: var(--swatch--brand); color: var(--swatch--white); }
.vm-flip.is-mission .is-front { background: var(--swatch--ink); color: var(--swatch--white); }
.vm-flip_face.is-back { transform: rotateY(180deg); background: #fff6f2; color: var(--swatch--ink); border: .35rem solid var(--swatch--brand); }
.vm-flip.is-mission .is-back { border-color: var(--swatch--ink); }
.vm-flip_num { position: absolute; top: var(--space-1-5); left: var(--space-1-5); display: grid; place-items: center; width: 2.6rem; aspect-ratio: 1; border-radius: 50%; background: var(--swatch--white); color: var(--swatch--ink); font-weight: 800; }
.vm-flip_img { width: auto; height: 44%; aspect-ratio: 1; object-fit: contain; padding: .9rem; border-radius: 50%; background: var(--swatch--salmon); box-shadow: 0 0 0 .35rem rgba(255, 255, 255, .9); }
.vm-flip_word { color: var(--swatch--white); font-size: clamp(3rem, 6vw, 5.25rem); line-height: 1; }
.vm-flip.is-mission .is-front .vm-flip_word { color: var(--swatch--salmon); }
.vm-flip_hint { position: absolute; bottom: var(--space-1-5); display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .15); letter-spacing: .04em; }
.vm-flip_hint svg { width: 1rem; }
.vm-flip_label { letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--swatch--brand-text); }
.vm-flip_text { max-width: 24ch; font-size: clamp(1.1rem, calc(.95rem + .7vw), 1.65rem); font-weight: 700; line-height: 1.3; }
.vm-flip_word.is-small { color: var(--swatch--brand); font-size: clamp(2rem, 3.5vw, 3rem); }
.vm_cta { display: flex; justify-content: center; margin-top: calc(var(--space-2) + 2rem); }
@media (min-width: 768px) and (max-height: 760px) { .vm_head { gap: .4rem; } .vm_wrap { padding-block: 6rem 1.5rem; } .vm_cards { margin-top: 1.5rem; } .vm_cta { margin-top: 3.25rem; } .vm-flip_face { gap: .5rem; padding: var(--space-1-5); } .vm-flip_word { font-size: clamp(2.4rem, 4.5vw, 3.6rem); } .vm-flip_text { font-size: clamp(1rem, calc(.85rem + .4vw), 1.2rem); line-height: 1.25; } .vm-flip_face.is-back { gap: .3rem; padding-block: 1rem; } .vm-flip_word.is-small { font-size: 1.9rem; } }
@media (hover: none) { .vm-flip_hint { font-size: 0; gap: 0; } .vm-flip_hint::before { content: "Tap to read"; font-size: var(--fs-small); margin-right: .4rem; } }
@media (max-width: 767px) {
  .vm_cards { grid-template-columns: 1fr; width: min(100%, 24rem); gap: var(--space-2); }
  .vm-flip.is-mission { transform: rotate(2deg); }
  .vm_cta { margin-top: var(--space-3); }
}
@media (prefers-reduced-motion: reduce) { .vm-flip_inner { transition: none; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer_wrap { background: transparent; padding-block: 0; }
.footer_contain { z-index: 1; gap: max(3rem, var(--section-large) - var(--footer-extra, 0px)); } /* --footer-extra: set in main.js */
.footer_top { display: flex; flex-direction: column; align-items: center; gap: var(--space-5); }
.footer_content { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.footer_content .t-display { max-width: 18ch; }
.footer_bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--space-1); width: 100%; }
.footer_bottom_content { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
.footer_bottom_content .draw-line_box { position: absolute; bottom: -.4em; }
.footer_bottom_content a { transition: color .2s; }
.footer_bottom_content a:hover { color: var(--text); }
.social_list { display: flex; gap: 1.25rem; color: var(--heading-accent); }
.social_item { position: relative; width: 1.25rem; aspect-ratio: 1; transition: transform .5s var(--ease-bounce); }
.social_item:hover { transform: scale(1.1) rotate(-1deg); }
.social_item svg { width: 100%; height: 100%; }
.social_item a { position: absolute; inset: 0; }
.footer_squiggle { position: absolute; left: 0; bottom: 0; width: 40vw; pointer-events: none; }

/* mini showreel */
.mini-showreel { position: relative; width: min(100vw - 3rem, 20rem); aspect-ratio: 16/10; }
.mini-showreel_card { position: relative; width: 100%; aspect-ratio: 16/10; border-radius: var(--radius-main); overflow: hidden; background: #000; }
.mini-showreel_card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-showreel_icon {
  position: absolute; right: var(--space-0-75); bottom: var(--space-0-75); z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 2rem; aspect-ratio: 1; padding: 0;
  border: var(--border-large) solid rgba(255, 255, 255, .2); border-radius: var(--radius-main);
  background: var(--heading-accent); color: var(--swatch--white);
}
.mini-showreel_click { position: absolute; inset: 0; z-index: 3; cursor: pointer; }
.mini-showreel_card video { pointer-events: none; }
[data-showreel-status] .mini-showreel_icon { transition: opacity 1s cubic-bezier(.87, 0, .13, 1); }
[data-showreel-status=active] .mini-showreel_icon { opacity: 0; }
[data-showreel-status=active] .mini-showreel_click { display: none; }
[data-showreel-status=active] .mini-showreel_card video { pointer-events: auto; }
.lightbox {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: var(--section-small) var(--space-3);
  pointer-events: none; overflow: hidden;
}
.lightbox_safearea { position: relative; z-index: 2; width: 100%; height: 100%; }
.lightbox_dark {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; cursor: pointer; pointer-events: auto;
  transition: all 1s cubic-bezier(.87, 0, .13, 1);
}
[data-showreel-status=active] .lightbox_dark { opacity: 1; visibility: visible; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {

  .video-scroll_start { width: 70%; } /* same zoom as desktop, from a larger starting card */
}
@media (max-width: 767px) { .video-scroll_start { width: 100%; } }
@media (max-width: 991px) {

  .card_stack_list_wrap { width: 75%; }
  .card_stack_list { perspective: 30vw; }
  .card_stack_squiggle { width: 40vw; top: 55%; }

  .img-cycle_visual_wrap { grid-column: 1 / 6; }
  .img-cycle_content { grid-column: 7 / -1; }

  .feature-pills_wrap { --expanded: calc(50% - .5em); }
  .feature-pills_layout { display: flex; flex-direction: column-reverse; gap: var(--space-4); }
  .feature-pills_col.is-visual { width: 50%; }
  .feature-pills_visual-collection { aspect-ratio: 1; }
  .feature-pills_list { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: var(--space-0-75); max-width: none; }
  .feature-pills_inner { max-width: 100%; }
  .feature-pills_heading { font-size: 5rem; }
  .features_squiggle { inset: 60% 0 auto; transform: translateY(-50%); }

  .testimonials_pagination { --pg-size: 6rem; --pg-gap: .75rem; }
  .studios_heading { font-size: 5rem; }
  .studios_visual { grid-column: 1 / 7; }
  .studios_content { grid-column: 7 / -1; }
  .footer_squiggle { width: 50vw; }
  .mini-showreel { width: min(100vw - 3rem, 17rem); }
}

@media (max-width: 767px) {
  .nav_logo { margin-top: -.3em; }
  .nav_link_wrap { display: none; }
  .nav_menu_toggle {
    position: relative; display: block; pointer-events: auto;
    width: 3rem; aspect-ratio: 1; border-radius: 50%; background: var(--swatch--brand); color: var(--swatch--light);
  }
  .nav_toggle_line { position: absolute; left: 50%; width: 1.25rem; height: var(--border-main); background: currentColor; transform: translateX(-50%); }
  .nav_toggle_line.is-top { top: calc(50% - .1875rem); }
  .nav_toggle_line.is-bottom { top: calc(50% + .1875rem); }
  .menu_mobile { display: block; position: fixed; inset: 0 0 auto; z-index: 1; padding: .5rem; visibility: hidden; pointer-events: none; }
  .menu_mobile_panel { position: relative; width: 100%; padding: var(--section-small) var(--space-1-5) var(--space-1-5); }
  .menu_mobile_bg {
    position: absolute; inset: 0; height: 0;
    border: var(--border-large) solid var(--border); border-radius: var(--radius-large);
    background: var(--menu);
  }
  .menu_mobile_content { position: relative; z-index: 1; padding-top: var(--space-2-5); max-height: calc(100dvh - 8rem); overflow-x: hidden; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; } /* scrolls on its own while the page is locked */
  .menu_mobile_content::-webkit-scrollbar { display: none; } /* still scrolls, without the scroll bar */
  .menu_mobile_link { display: block; padding-block: .35em; }


  .card_stack_layout { flex-direction: column; justify-content: center; align-items: center; gap: var(--section-main); padding-bottom: var(--section-small); }
  .card_stack_content { width: 100%; }
  .card_stack_visual_wrap { order: -1; width: 100%; }
  .card_stack_list_wrap { width: 40%; }
  .card_stack_list { aspect-ratio: 1; perspective: 40vw; }
  .card_stack_item { padding: var(--space-1); }
  .card_stack_squiggle { display: none; }

  .img-cycle_wrap { padding-bottom: var(--section-small); }
  .img-cycle_layout { display: flex; flex-direction: column; gap: var(--space-5); }
  .img-cycle_visual_wrap { width: 50%; }
  .img-cycle_content { width: 100%; text-align: center; align-items: center; }
  .img-cycle_squiggle { inset: 0 0 auto; transform: none; }

  .ft-projects_layout { flex-direction: column; justify-content: space-between; align-items: center; padding-top: var(--section-large); }
  .ft-projects_title_wrap { flex: 1; text-align: center; }
  .ft-projects_title_wrap .btn-wrapper { justify-content: center; }
  .ft-projects_title_wrap .t-h3 { margin-inline: auto; }
  .ft-projects_card_list { height: 5rem; }

  .feature-pills_wrap { --expanded: 100%; }
  .feature-pills_list { flex-direction: column; gap: .5rem; }
  .feature-pills_item { width: 100%; }
  .feature-pills_button { width: 100%; justify-content: space-between; }
  .feature-pills_inner { text-align: left; align-items: flex-start; }
  .feature-pills_col.is-visual { width: 70%; }
  .feature-pills_heading { font-size: 4rem; }

  .testimonials_layout { gap: var(--space-3); }
  .testimonials_pagination { --pg-size: 5rem; --pg-gap: .5rem; }

  .studios_layout { display: flex; flex-direction: column; gap: var(--space-2); }
  .studios_visual { width: 100%; }
  .studios_heading { font-size: 4rem; top: -3%; left: 6%; }

  .footer_bottom { flex-direction: column-reverse; align-items: flex-start; }
  .footer_squiggle { width: 60vw; }
  .mini-showreel { width: min(100vw - 3rem, 15rem); }
  .lightbox { padding-inline: .5em; }
}

@media (max-width: 479px) {
  .card_stack_list_wrap { width: 70%; }
  /* JJ's service names are longer than LXL's: full-width title, arrow on its own line */
  .card_stack_card_content { flex-wrap: wrap; justify-content: flex-start; gap: var(--space-0-75); }
  .card_stack_card_text { flex: 1 1 100%; max-width: none; font-stretch: 100%; letter-spacing: -.03em; }
  .img-cycle_visual_wrap { width: 70%; }
  .ft-projects_wrap { height: auto; gap: var(--space-2-5); }
  .ft-projects_contain.is-mobile { display: flex; padding-top: var(--space-1); }
  .ft-projects_title_wrap.is-mobile { display: block; text-align: center; }
  .ft-projects_sticky .ft-projects_title_wrap { display: none; }
  .ft-projects_sticky { position: relative; top: auto; height: auto; aspect-ratio: 1; }
  .ft-projects_bg { overflow: clip; }
  .ft-projects_layout { padding-top: var(--space-2-5); padding-bottom: var(--space-1-5); justify-content: flex-end; }
  .feature-pills_heading { top: -15%; }
  .studios_content { padding: var(--space-2-5) var(--space-2); }
}

@media (prefers-reduced-motion: reduce) {
  [data-sprite] .sprite-svg, [data-wiggle]:hover [data-wiggle-target] { animation: none; }
  .btn, .btn:hover, .social_item, .card_stack_card_content { transition: none; transform: none; }
  [data-draw-svg] { opacity: 1; }
}


/* Illustrations (transparent PNG/WebP) sit centred on a brand panel instead of being cropped */
.u-image-wrapper.is-illustration { background: var(--swatch--salmon); } /* salmon, so the raspberry "Vision" script over it stays visible */
.u-image-wrapper.is-illustration > img { object-fit: contain; padding: 14%; }
.nav_work_visual .is-illustration > img { padding: 10%; }
/* Client logos in the testimonial bubbles */
.u-image-wrapper.is-logo { background: #fff; }
.u-image-wrapper.is-logo > img { object-fit: contain; padding: 16%; }

/* JJ INICIO logo in the nav — the light version shows on dark sections, the original on light ones */
.nav_logo { width: auto; margin-top: 0; justify-self: start; }
.nav_logo_img { display: block; width: auto; height: clamp(3.75rem, calc(3.75rem + 1.25 * var(--fp)), 5rem); }
/* one logo on every background: the full-colour mark on a white tile, so the raspberry J never blends in */
.nav_logo { background: #fff; border-radius: var(--radius-main); padding: .35rem .5rem; box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .12); }
@media (max-width: 767px) { .nav_logo_img { height: 3.25rem; } }

/* Header: one compact white pill centred at the top, logo at its left end; the hovered, open or current link is a raspberry pill inside it */
.nav_wrap { padding-top: 1rem; }
.nav_layout {
  display: flex; align-items: center; gap: .5rem;
  width: min(100%, 62rem); height: auto; margin-inline: auto;
  padding: .4rem; border-radius: 999px;
  background: var(--swatch--white); box-shadow: 0 .75rem 2rem rgba(42, 20, 22, .18); pointer-events: auto;
}
.nav_logo { padding: 0 .6rem 0 .5rem; background: none; box-shadow: none; border-radius: 0; border-right: var(--border-main) solid color-mix(in srgb, var(--swatch--ink) 12%, transparent); }
.nav_logo_img { height: 2.6rem; }
.nav_link_wrap { flex: 1; height: auto; padding-left: .5rem; }
.nav_link_list { flex: 1; justify-content: flex-end; gap: .25rem; }
[data-theme-nav] .nav_link { display: block; padding: .65rem 1.1rem; border-radius: 999px; color: var(--swatch--ink); text-shadow: none; transition: background-color .25s, color .25s; }
.nav_link .draw-line_box { display: none; }
[data-theme-nav] .nav_link:hover, [data-theme-nav] .nav_link.is-current,
.nav_wrap[data-nav-active-dropdown=about] [data-dropdown-trigger=about],
.nav_wrap[data-nav-active-dropdown=services] [data-dropdown-trigger=services],
.nav_wrap[data-nav-active-dropdown=work] [data-dropdown-trigger=work] { background: var(--swatch--brand); color: var(--swatch--white); opacity: 1; }
.nav_dropdown_wrap { top: calc(100% + .9rem); right: -.4rem; width: min(24rem, 100vw - 2rem); }
.nav_dropdown_wrap[data-dropdown=work] { width: min(24rem, 100vw - 2rem); }
.nav_dropdown { padding-top: var(--space-1-5); }
[data-theme-nav] .nav_link { white-space: nowrap; } /* each label stays on one line */
/* tablets: a slightly tighter pill so all five labels fit on one line */
@media (min-width: 768px) and (max-width: 991px) {
  .nav_layout { width: min(100%, 46rem); gap: .25rem; }
  .nav_logo_img { height: 2.4rem; }
  .nav_link_wrap { padding-left: .25rem; }
  .nav_link_list { gap: 0; }
  [data-theme-nav] .nav_link { padding: .6rem .75rem; font-size: .95rem; }
}
@media (max-width: 767px) {
  .nav_wrap { padding-top: .75rem; }
  .nav_layout { width: 100%; justify-content: space-between; padding-left: .25rem; }
  .nav_logo { border-right: 0; }
  .nav_logo_img { height: 2.5rem; }
  .nav_menu_toggle { width: 2.75rem; }
}

/* Testimonial bubbles — signature-style initials on a dark circle, as on LXL */
.testimonials_initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--swatch--ink); color: var(--swatch--white);
  font-family: var(--font-tertiary); font-size: calc(var(--pg-size) * .34); line-height: 1;
  -webkit-text-stroke: .01em currentColor;
}

/* ==========================================================================
   Page transition (LXL): a scribble draws across the screen and thickens
   to cover it on leave, then erases itself on the next page
   ========================================================================== */
.transition {
  --transition-color: var(--swatch--brand); /* raspberry into salmon and training pages, white into light */
  position: fixed; inset: 0; z-index: 70;
  overflow: clip; pointer-events: none;
  visibility: hidden;
  color: var(--transition-color);
}
.transition[data-transition-theme=berry], html[data-transition-theme=berry] .transition { --transition-color: var(--swatch--brand); }
.transition[data-transition-theme=light], html[data-transition-theme=light] .transition { --transition-color: #fff; }
.transition_shape { position: absolute; inset: -15% 0 0 -15%; width: 130%; height: 130%; display: flex; justify-content: center; align-items: center; }
.transition_svg { position: absolute; width: 130%; height: 130%; max-width: none; overflow: hidden; }
.transition path { stroke: currentColor; stroke-width: 0; stroke-linecap: round; stroke-linejoin: round; }
/* arriving covered — set before first paint; main.js takes over from here */
html.is-page-entering .transition { visibility: visible; animation: transition-failsafe 0s 4s forwards; }
html.is-page-entering .transition path { stroke-width: 30%; }
@keyframes transition-failsafe { to { visibility: hidden; } } /* never leave the page covered if the scripts fail */
@media (max-width: 767px) {
  .transition_shape { width: 160%; left: -30%; }
  .transition_svg { width: 160%; }
}

/* Training dropdown — JJ's take on LXL's light "Studios" panel */
.nav_dropdown_wrap.is-training .nav_dropdown_bg { --menu: var(--swatch--sky); border-color: rgba(42, 20, 22, .15); }
.nav_dropdown_wrap.is-training .nav_dropdown_content { color: var(--swatch--ink); display: flex; flex-direction: column; gap: var(--space-1); }
.nav_dropdown_wrap.is-training .btn { --btn-bg: var(--swatch--violet); }
.nav_dropdown_wrap.is-training .btn_el { background: var(--swatch--violet); }
.nav_training_logo { display: flex; align-items: flex-end; gap: .4rem; }
.nav_training_logo img { width: auto; height: 3.5rem; }
.nav_training_logo span { font-family: var(--font-secondary); font-weight: 800; font-size: 2.4rem; line-height: .9; letter-spacing: -.02em; color: var(--swatch--ink); }
.nav_training_text { max-width: 30ch; }
.nav_training_visual { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-main); overflow: clip; }
/* while the light panel is open, the nav links sit on it: switch them to ink */
.nav_wrap[data-nav-active-dropdown=training] .nav_link { color: var(--swatch--ink); text-shadow: none; }
.transition[data-transition-theme=training], html[data-transition-theme=training] .transition { --transition-color: #eb2155; }

/* Phone menu: Services accordion (LXL) */
.menu_mobile_accordion_head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; } /* the label opens the page, the chevron opens its sub-links */
.menu_mobile_accordion_trigger { display: flex; align-items: center; justify-content: center; flex: none; width: 2.75rem; height: 2.75rem; } /* kept inside the menu so it never scrolls sideways */
.menu_mobile_accordion_icon { flex: none; width: 1rem; aspect-ratio: 1; margin: 0; transition: transform .3s ease; }
.menu_mobile_accordion_icon svg { width: 100%; height: 100%; }
.menu_mobile_accordion_trigger[aria-expanded=true] .menu_mobile_accordion_icon { transform: rotate(-180deg); }
.menu_mobile_accordion_panel { display: none; overflow: hidden; padding-top: .5rem; }
.menu_mobile_accordion_link { display: inline-block; padding-block: .25rem; font-size: var(--fs-large); font-weight: 600; }
.menu_services_btn { margin: var(--space-2) 0 var(--space-1); }

/* home hero: tablet and phone stack text over the photo */
@media (max-width: 991px) {
  .hero_home_wrap { min-height: 0; padding: 7rem 0 var(--section-small); }
  .hero_home_contain { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero_home_text { align-items: center; text-align: center; }
  .hero_home_title { font-size: var(--fs-display); }
  .hero_home_lead { margin-inline: auto; }
  .hero_home_text .btn-wrapper { justify-content: center; }
  .hero_home_logo { width: min(70%, 22rem); margin-inline: auto; }
  .hero_home_visual_wrap { width: min(60%, 24rem); }
}
@media (max-width: 767px) {
  .hero_home_visual_wrap { width: min(80%, 22rem); }
  .hero_home_badge { left: 50%; bottom: -1rem; transform: translateX(-50%) rotate(-3deg); }
  .hero_home_squiggle { inset: 5% -20% auto -20%; }
}
/* Home "Who we are" video: shown only while the browser is holding back the sound */
.sound_unlock { position: fixed; left: 50%; bottom: 1.5rem; z-index: 40; display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.15rem; border-radius: 999px; background: var(--swatch--white); color: var(--swatch--ink); font-weight: 700; box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .3); transform: translateX(-50%); animation: sound-unlock-in .4s var(--ease-osmo); }
.sound_unlock[hidden] { display: none; }
.sound_unlock svg { width: 1.3rem; color: var(--swatch--brand); }
@keyframes sound-unlock-in { from { opacity: 0; transform: translate(-50%, 1rem); } }
@media (prefers-reduced-motion: reduce) { .sound_unlock { animation: none; } }
