/* ==========================================================================
   JJ INICIO — Home
   Layout system modelled on a 12-col fluid grid (320px → 2560px viewport)
   ========================================================================== */

/* EXACT LXL FONTS — LXL uses two licensed (paid) typefaces:
     • Owners Wide (Bold 700 + Medium 500) — OH no Type Co.
     • Scribo Rough Pro (Regular 400)
   Buy the web licences, put the .woff2 files in assets/fonts/ with these
   names and remove the comment markers below. Nothing else needs changing:
   the font names, sizes and line-heights already match LXL exactly, and
   the fallback tuning switches itself off once these load. */
/*
@font-face{font-family:"Owners Wide";src:url(../fonts/OwnersWide-Bold.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Owners Wide";src:url(../fonts/OwnersWide-Medium.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Scribo";src:url(../fonts/ScriboRoughPro-Regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
*/

:root {
  /* swatches — JJ INICIO palette (from jjinicio.co.in) */
  --swatch--dark: #281549;      /* deep purple — dark sections */
  --swatch--ink: #0a096f;       /* navy — text on light sections */
  --swatch--light: #ffffff;     /* text on dark sections */
  --swatch--paper: #f0f0f0;     /* light sections */
  --swatch--lavender: #e0dceb;  /* cards on light sections */
  --swatch--brand: #e5005e;     /* magenta accent */
  --swatch--pink: #ff4ff3;      /* hot pink accent on dark */
  --swatch--violet: #832eff;
  --swatch--white: #fff;
  --swatch--studios: #0a096f;
  --swatch--sky: #d0d9e2;
  --gradient-brand: linear-gradient(90deg, #832eff 0%, #ff28f8 100%);
  --swatch--light-o20: rgba(255, 255, 255, .2);
  --swatch--dark-o20: rgba(10, 9, 111, .2);
  --swatch--white-o20: rgba(255, 255, 255, .2);

  /* fonts */
  --font-primary: Manrope, Arial, sans-serif;
  --font-secondary: "Owners Wide", "Archivo", Impact, sans-serif;
  --font-tertiary: "Scribo", "Ms Madi", Georgia, cursive;

  /* fluid helper: value = A + (B-A) * progress, progress 0 @ 20rem → 1 @ 160rem */
  --fp: calc((100vw - 20rem) / 140);

  --fs-small: .8125rem;
  --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--light);
  --heading-accent: var(--swatch--pink);
  --theme-accent: var(--swatch--pink);
  --border: var(--swatch--light-o20);
  --btn-bg: var(--gradient-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 { -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;
}
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 60%, transparent); }

.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: .9; }
.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; }
.t-large { font-size: var(--fs-large); line-height: 1.4; text-wrap: pretty; }
.t-main { font-size: var(--fs-main); line-height: 1.4; text-wrap: pretty; }
.t-small { font-size: var(--fs-small); font-weight: 600; line-height: 1.4; }

.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: .015em currentColor; /* heavier pen, closer to Scribo Rough */
}
.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: .015em currentColor;
  text-transform: none;
  overflow: visible;
}
.u-accent strong { line-height: .3; margin: -.3em; padding: .3em; }
.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); }
[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: flex; justify-content: space-between; align-items: center; height: 3rem; }
.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; display: flex; align-items: center; height: 100%; pointer-events: auto; }
.nav_link_list { position: relative; z-index: 1; display: flex; gap: var(--space-1); }
.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); }
[data-theme-nav=light] .nav_link, [data-theme-nav=light] .nav_logo { color: var(--swatch--ink); }
[data-theme-nav=dark] .nav_link, [data-theme-nav=dark] .nav_logo { color: var(--swatch--light); }
[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 { --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 { color: var(--swatch--light); }

.nav_dropdown_wrap {
  position: absolute;
  top: -1.5rem;
  right: calc(var(--site-margin) * -1);
  width: calc(100% + var(--site-margin) + 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_menu_toggle { display: none; }
.menu_mobile { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero_home_wrap { min-height: 100svh; padding-block: 0; }
.hero_home_layout { flex: 1; display: flex; }
.hero_home_visual_wrap { position: relative; z-index: 1; width: 50%; padding: var(--site-gutter); }
.hero_home_visual { position: relative; width: 100%; height: 100%; border-radius: var(--radius-main); overflow: clip; }
.hero_home_visual [data-hero-swap-image] { opacity: 0; visibility: hidden; }
.hero_home_visual [data-hero-swap-image]:first-child { opacity: 1; visibility: visible; }
.hero_home_content { position: relative; z-index: 2; width: 50%; display: flex; flex-direction: column; }
.hero_home_contain { flex: 1; gap: 0; padding-top: var(--section-main); padding-bottom: var(--section-page-top); }
.hero_home_title { font-size: var(--fs-h2); }
.hero_home_title h1 { display: block; }
.hero_home_logo {
  position: absolute; right: 0; bottom: var(--site-margin);
  width: 74vw; color: var(--text);
}
.hero_home_logo svg { width: 100%; height: auto; overflow: visible; }

/* ==========================================================================
   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;
  background-image: linear-gradient(0deg, var(--bg), transparent);
  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: 32ch; }
.card_stack_heading .u-accent strong { top: .14em; } /* script word tucks into the line below, as on LXL */
.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_caption {
  position: absolute; left: var(--space-1); bottom: var(--space-1); z-index: 2;
  padding: .5rem .75rem; border-radius: var(--radius-small);
  background: rgba(40, 21, 73, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--swatch--white); line-height: 1.2;
}
.img-cycle_caption span { display: block; opacity: .7; font-weight: 500; }
.img-cycle_content { grid-column: 8 / -1; display: flex; flex-direction: column; gap: var(--space-2); }
.img-cycle_content .t-h3 { max-width: 28ch; }
.img-cycle_content .t-main { max-width: 38ch; }
.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--pink);
  --card: color-mix(in srgb, var(--swatch--dark), white 7%); --btn-bg: var(--gradient-brand);
  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(--gradient-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; }
.ft-projects_bg .u-overlay { background: rgba(0, 0, 0, .2); }

/* ==========================================================================
   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(10, 9, 111, .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;
  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; }
.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(--gradient-brand);
  --card: color-mix(in srgb, var(--swatch--sky), black 7%);
}
.studios_visual { position: relative; grid-column: 2 / 7; aspect-ratio: 4/5; border-radius: var(--radius-main); }
.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: space-between; gap: var(--space-3);
  padding: var(--space-3) var(--space-2-5);
  border-radius: var(--radius-large);
  background: var(--theme-accent); color: var(--swatch--light);
}
.studios_content .t-h1 { max-width: 14ch; }
.studios_text { display: flex; flex-direction: column; gap: var(--space-2); }
.studios_text .t-main { max-width: 40ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer_wrap { background: transparent; padding-block: 0; }
.footer_contain { z-index: 1; gap: var(--section-large); }
.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) {
  .hero_home_layout { flex-direction: column; justify-content: space-between; width: 100%; }
  .hero_home_visual_wrap { width: 100%; flex: 1; display: flex; justify-content: center; align-items: flex-end; padding: var(--section-main) 0 0; }
  .hero_home_visual { width: 50%; height: auto; aspect-ratio: 4/5; margin-inline: auto; }
  .hero_home_content { width: 100%; flex: 1; }
  .hero_home_contain { padding-top: var(--section-small); justify-content: flex-start; }
  .hero_home_title { font-size: var(--fs-display); }
  .hero_home_title h1 { line-height: .9; }
  .hero_home_logo { display: none; }

  .video-scroll_wrap { padding-block: 0; }
  .video-scroll_start { position: absolute; inset: 0 0 auto; width: 100vw; height: 100%; aspect-ratio: auto; margin-left: calc(var(--site-margin) * -1); border-radius: 0; }
  .video-scroll_content { position: sticky; top: 0; height: 100dvh; border-radius: 0; }
  .video-scroll_end { display: none; }
  .video-scroll_text_wrap { padding-bottom: 100dvh; }

  .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(--card);
  }
  .nav_toggle_line { position: absolute; left: 50%; width: 1.25rem; height: var(--border-main); background: currentColor; transform: translateX(-50%); }
  [data-theme-nav=light] .nav_menu_toggle { color: var(--swatch--ink); }
  [data-theme-nav=dark] .nav_menu_toggle { color: var(--swatch--light); }
  .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-y: auto; }
  .menu_mobile_link { display: block; padding-block: .35em; }

  .hero_home_contain { padding-top: var(--section-small); }
  .hero_home_visual_wrap { padding-top: var(--section-large); }
  .hero_home_visual { width: 75%; }

  .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_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: 60%; }
  .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; }
}

/* When the licensed LXL fonts are installed (see top of file), drop the
   fallback tuning so they render with LXL's exact settings. */
.has-owners-wide .t-display, .has-owners-wide .t-h1, .has-owners-wide .t-h2, .has-owners-wide .t-h4, .has-owners-wide .t-h5 {
  font-stretch: 100%; font-weight: 700; letter-spacing: normal;
}
.has-owners-wide .nav_logo text, .has-owners-wide #i-wordmark text { font-stretch: 100%; letter-spacing: normal; }
.has-scribo .u-accent strong, .has-scribo .u-accent-padded strong,
.has-scribo .t-display-accent, .has-scribo .t-h4-accent { -webkit-text-stroke: 0; }

/* Illustrations (transparent PNG/WebP) sit centred on a brand panel instead of being cropped */
.u-image-wrapper.is-illustration { background: linear-gradient(160deg, #3b1d7a 0%, #832eff 60%, #ff28f8 100%); }
.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; }
.nav_logo_img { display: block; width: auto; height: clamp(3.25rem, calc(3.25rem + 1.2 * var(--fp)), 4.5rem); }
.nav_logo_img.is-on-light { display: none; }
[data-theme-nav=light] .nav_logo_img.is-on-dark { display: none; }
[data-theme-nav=light] .nav_logo_img.is-on-light { display: block; }
@media (max-width: 767px) { .nav_logo_img { height: 3rem; } }

/* 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;
}
