/* ==========================================================================
   ONEX Creative Studio — main stylesheet
   Black and white only. Grays are always black or white at an opacity.
   ========================================================================== */

:root {
  --black: #000;
  --white: #fff;
  --ink: var(--black);
  --paper: var(--white);

  --gutter: clamp(20px, 5vw, 88px);
  --col-gap: clamp(16px, 2.5vw, 40px);
  --section: clamp(96px, 14vw, 200px);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-display: clamp(2.5rem, 5.6vw, 6.25rem);
  --fs-h2: clamp(2rem, 4.4vw, 4.75rem);
  --fs-h3: clamp(1.375rem, 2.2vw, 2.125rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.83, 0, 0.17, 1);
  --t-slow: 1.2s;
  --t-med: 0.7s;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}


img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 110px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.display, .h2, .h3 {
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
}
.display { font-size: var(--fs-display); font-stretch: 112%; line-height: 0.98; letter-spacing: -0.02em; }
.h2 { font-size: var(--fs-h2); font-stretch: 108%; line-height: 1.02; }
.h3 { font-size: var(--fs-h3); font-stretch: 100%; line-height: 1.15; font-weight: 400; }
.lead { font-size: clamp(1.25rem, 1.9vw, 1.75rem); font-weight: 300; line-height: 1.35; max-width: 34ch; }
.lead--right { max-width: none; text-align: right; margin-left: auto; }  /* project tagline: flush with the right edge of the page */
@media (max-width: 900px) { .lead--right { text-align: left; } }
.small { font-size: var(--fs-small); }
.muted { opacity: 0.55; }
.wide { font-stretch: 125%; font-weight: 700; letter-spacing: 0.02em; }

/* Section theming */
.is-black { --ink: var(--white); --paper: var(--black); background: var(--paper); color: var(--ink); }
.is-white { --ink: var(--black); --paper: var(--white); background: var(--paper); color: var(--ink); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap { padding-inline: var(--gutter); }
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
}
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

/* Column helpers */
.c-1-4 { grid-column: 1 / 5; }
.c-1-6 { grid-column: 1 / 7; }
.c-1-7 { grid-column: 1 / 8; }
.c-1-8 { grid-column: 1 / 9; }
.c-1-13 { grid-column: 1 / -1; }
.c-2-12 { grid-column: 2 / 12; }
.c-5-13 { grid-column: 5 / -1; }
.c-6-13 { grid-column: 6 / -1; }
.c-7-13 { grid-column: 7 / -1; }
.c-8-13 { grid-column: 8 / -1; }
.c-9-13 { grid-column: 9 / -1; }
.c-1-11 { grid-column: 1 / 12; }

@media (max-width: 900px) {
  .grid { row-gap: clamp(24px, 4vw, 40px); }
  .grid > [class^="c-"], .grid > [class*=" c-"] { grid-column: 1 / -1; }
}

/* Hairline — a rule is information: it separates rows in a list */
.rule { height: 1px; background: currentColor; opacity: 0.18; }

/* --------------------------------------------------------------------------
   Cursor
   -------------------------------------------------------------------------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--white);
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), opacity 0.3s, background 0.3s;
  display: flex; align-items: center; justify-content: center;
  will-change: transform; border: 1px solid transparent;
}
/* Over photos/links the dot becomes a transparent ring with a normal blend — no colour inversion of the image underneath */
.cursor.is-view, .cursor.is-link { mix-blend-mode: normal; background: transparent; border-color: rgba(255,255,255,0.9); filter: drop-shadow(0 0 1px rgba(0,0,0,0.35)); }
.cursor__label {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; color: var(--white);
  opacity: 0; transition: opacity 0.3s; white-space: nowrap;
}
/* While the dot is showing an arrow or a label, the system cursor steps aside */
body.cursor-on, body.cursor-on a, body.cursor-on button, body.cursor-on [data-cursor] { cursor: none !important; }
.cursor__arrow { position: absolute; width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translate(-6px, 6px) scale(0.6); transition: opacity 0.3s, transform 0.5s var(--ease-out); }
/* Text links: the hand shows; the dot becomes a larger empty ring so the words stay readable */
.cursor.is-link { width: 56px; height: 56px; }
.cursor.is-view { width: 88px; height: 88px; }
.cursor.is-view .cursor__arrow { opacity: 1; transform: none; width: 28px; height: 28px; }
.cursor.is-view.has-label .cursor__arrow { opacity: 0; }
.cursor.is-view.has-label .cursor__label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
/* Two smaller dots trail behind the lead one, each a little lazier */
.cursor-tail {
  position: fixed; top: 0; left: 0; z-index: 9998; border-radius: 50%;
  background: var(--white); mix-blend-mode: difference; pointer-events: none;
  transform: translate(-50%, -50%); will-change: transform; transition: opacity 0.3s;
}
.cursor-tail.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor-tail { display: none; } }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(18px, 2.4vw, 32px) var(--gutter);
  color: var(--white);
  mix-blend-mode: difference;
  pointer-events: none;
  transition: transform 0.6s var(--ease-inout);
}
.header.is-hidden { transform: translateY(-110%); }
/* Over the hero photo/video the header is plain white (difference blending turns grey on mid-tone images) */
.header.over-hero { mix-blend-mode: normal; }
.header > * { pointer-events: auto; }
.header__logo img { height: clamp(20px, 1.9vw, 26px); width: auto; }
.header__nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.header__nav a {
  position: relative; font-size: 0.9375rem; font-weight: 400; padding-block: 4px;
}
.header__nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-med) var(--ease-inout);
}
.header__nav a:hover::after, .header__nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header__nav .header__cta { padding: 9px 18px 10px; line-height: 1; border: 1px solid currentColor; border-radius: 999px; margin-left: 8px; transition: background var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out); }
.header__nav .header__cta::after { display: none; }
.header__nav .header__cta:hover { background: var(--white); color: var(--black); }
.header__toggle { display: none; align-items: center; gap: 12px; font-size: 0.9375rem; }
.header__toggle span { display: block; width: 28px; height: 1px; background: currentColor; position: relative; }
.header__toggle span::before { content: ""; position: absolute; left: 0; top: -7px; width: 100%; height: 1px; background: currentColor; transition: transform 0.4s var(--ease-inout), top 0.4s var(--ease-inout); }
.header__toggle span::after { content: ""; position: absolute; left: 0; top: 7px; width: 100%; height: 1px; background: currentColor; transition: transform 0.4s var(--ease-inout), top 0.4s var(--ease-inout); }
body.menu-open .header__toggle span { background: transparent; }
body.menu-open .header__toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .header__toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__toggle { display: flex; }
}

/* Edge drop: a few white blobs, merged into one liquid shape, that float along the edge with the pointer */
.drop {
  position: fixed; left: 0; width: 100%; height: max(220px, 18vw); pointer-events: none; z-index: 850;
  opacity: 0; transition: opacity 0.9s var(--ease-out);
  filter: url(#onex-goo);
}
.drop--top { top: 0; }
.drop--bottom { bottom: 0; }
.drop.is-on { opacity: 1; }
.drop i { position: absolute; left: 0; top: 0; border-radius: 50%; background: var(--white); will-change: transform; transition: background 0.5s; }
.drop--ink i { background: var(--black); }
@media (hover: none), (pointer: coarse) { .drop { display: none; } }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 800;
  background: var(--black); color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--gutter); padding-bottom: clamp(40px, 8vh, 80px);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-inout);
  visibility: hidden;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu a { display: block; font-size: clamp(1.5rem, 6vw, 2.25rem); font-weight: 300; font-stretch: 108%; line-height: 1.3; transition: opacity 0.4s; }
.menu a:hover { opacity: 0.5; }
.menu__foot a:hover { opacity: 0.6; }
.menu__foot { margin-top: 32px; font-size: 0.8125rem; line-height: 1.7; opacity: 0.6; }
.menu__foot a { font-size: inherit; display: inline; }   /* otherwise the big .menu a size leaks into the contact lines */

/* --------------------------------------------------------------------------
   Page transition curtain
   -------------------------------------------------------------------------- */
.curtain {
  position: fixed; inset: 0; z-index: 1000; background: var(--black);
  transform: scaleY(0); transform-origin: bottom; pointer-events: none;
}
.curtain.is-in { transform-origin: top; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  padding-block: clamp(120px, 18vh, 200px) clamp(40px, 6vh, 72px);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
}
.hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
}
.hero--bw .hero__media video, .hero--bw .hero__media img { filter: grayscale(1); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.12) 78%, rgba(0,0,0,0.45) 100%);
}
.hero__title { max-width: 18ch; }
.hero__foot {
  margin-top: clamp(32px, 5vh, 56px);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap);
  align-items: end;
}
.hero__lead { grid-column: 1 / 8; max-width: none; white-space: nowrap; opacity: 0.9; font-size: clamp(1.125rem, 1.5vw, 1.5rem); line-height: 1.4; }
.hero__ctas { grid-column: 8 / -1; display: flex; gap: 32px; justify-content: flex-end; }
.hero__scroll {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  width: 1px; height: 80px; background: rgba(255,255,255,0.25); overflow: hidden;
}
.hero__scroll::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: translateY(-100%); animation: scrollcue 2.4s var(--ease-inout) infinite; }
@keyframes scrollcue { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }

@media (max-width: 900px) {
  .hero__lead { grid-column: 1 / -1; white-space: normal; }
  .hero__ctas { grid-column: 1 / -1; justify-content: flex-start; margin-top: 24px; }
  .hero__scroll { display: none; }
}

/* Classic photo hero: the image sits a little larger than the frame so it can drift with the pointer and settle after the load */
.hero--photo .hero__media video, .hero--photo .hero__media img { transform: scale(1.14); will-change: transform; }
.hero--photo .hero__copy { position: relative; z-index: 1; }
.hero--photo .hero__title { text-shadow: 0 2px 40px rgba(0,0,0,0.35); }

/* Masked hero: the footage shows only through the wordmark, plus a soft circle of light that follows the pointer.
   --mx/--my: light position, --r: light radius (JS), --logo: the wordmark PNG used as an alpha mask. */
.hero--mask { --mx: 50%; --my: 45%; --r: 0px; --logo-w: min(74vw, 1100px); }
.hero--mask .hero__media {
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0, #000 calc(var(--r) * 0.55), transparent var(--r));
  mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0, #000 calc(var(--r) * 0.55), transparent var(--r));
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.hero--mask .hero__media::after { display: none; }
.hero--mask .hero__media video, .hero--mask .hero__media img { transform: none; }
.hero--mask .hero__copy { position: relative; z-index: 1; }
.hero--mask .hero__title { max-width: 16ch; text-shadow: 0 2px 40px rgba(0,0,0,0.35); }
@media (max-width: 700px) { .hero--mask { --logo-w: 92vw; } .hero--mask .hero__media { -webkit-mask-position: center 34%, 0 0; mask-position: center 34%, 0 0; } }

/* Objects hero: a canvas of small shapes, no image */
.hero--objects { background: var(--black); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero--objects .hero__copy { position: relative; z-index: 1; }

/* Links & buttons */
.link {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-size: 1rem; font-weight: 400; padding-bottom: 6px;
}
.link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform-origin: left; transition: transform var(--t-med) var(--ease-inout);
}
.link:hover::after { transform: scaleX(0); transform-origin: right; }
.link--solid {
  padding: 14px 26px; border: 1px solid currentColor; border-radius: 999px;
  transition: background var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.link--solid::after { display: none; }
.link--solid:hover, .link--solid:focus-visible { background: var(--ink); color: var(--paper); }

/* --------------------------------------------------------------------------
   Showreel — the frame opens
   -------------------------------------------------------------------------- */
.reel { position: relative; height: 100vh; overflow: hidden; }
.reel__frame {
  position: absolute; left: 50%; top: 50%;
  width: 46vw; aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  overflow: hidden; background: #111;
}
.reel__frame img, .reel__frame video { width: 100%; height: 100%; object-fit: cover; }
.reel__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--white); width: 100%;
}
.reel__play span {
  display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7); font-size: 0.9375rem;
  backdrop-filter: blur(6px);
  transition: transform 0.8s var(--ease-out), background 0.5s;
}
.reel__play:hover span { transform: scale(1.08); background: rgba(255,255,255,0.12); }
/* No visible button: the whole frame is clickable and the cursor says "Play" */
.reel__play span { display: none; }
.reel__caption {
  position: absolute; left: var(--gutter); bottom: clamp(28px, 4vh, 48px);
  display: flex; gap: 24px; font-size: var(--fs-small); opacity: 0.6;
}
@media (max-width: 900px) {
  .reel { height: 70vh; }
  .reel__frame { width: 80vw; }
  .reel__play span { width: 80px; height: 80px; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 950; background: rgba(0,0,0,0.96);
  display: grid; place-items: center; padding: var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0s 0.5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.5s; }
.lightbox__frame { width: min(100%, 1400px); aspect-ratio: 16 / 9; background: #000; }
.lightbox__frame iframe, .lightbox__frame video { width: 100%; height: 100%; border: 0; background: #000; }
.lightbox__close { position: absolute; top: clamp(18px, 2.4vw, 32px); right: var(--gutter); color: var(--white); font-size: 0.9375rem; transition: opacity 0.4s; }
.lightbox__close:hover { opacity: 0.6; }

/* --------------------------------------------------------------------------
   Manifesto
   -------------------------------------------------------------------------- */
.manifesto .h2 { max-width: 22ch; }
.manifesto__mark {
  font-stretch: 125%; font-weight: 300;
  font-size: clamp(5rem, 16vw, 18rem); line-height: 0.9; letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 0.08em;
}
.manifesto__mark small { font-size: 0.32em; font-stretch: 100%; letter-spacing: 0; }
.manifesto__mark .x { font-weight: 100; }
.manifesto__mark .mk { display: inline-block; will-change: transform; }
.manifesto__mark .mk--x { position: relative; display: inline-block; min-width: 1.1em; vertical-align: baseline; }
/* Words: a slot column in place of the X; each word snaps in from below, the X is the last stop */
.manifesto__mark .mk--x.is-slot { overflow: hidden; height: 0.9em; vertical-align: bottom; }
.manifesto__mark .mk__slot { display: flex; flex-direction: column; align-items: flex-start; will-change: transform; }
.manifesto__mark .mk__slot > span { display: flex; align-items: flex-end; height: 0.9em; line-height: 0.9; white-space: nowrap; font-size: 1em; box-sizing: border-box; padding-bottom: 0.04em; }
.manifesto__mark .mk__slot > span:not(.is-x) { font-size: 1em; }
.manifesto__mark .mk__slot > span:not(.is-x)::before { content: attr(data-w); font-size: 0.27em; font-stretch: 104%; font-weight: 300; letter-spacing: -0.02em; line-height: 1; }

.manifesto__body { display: grid; gap: 24px; max-width: 46ch; font-size: 1.125rem; line-height: 1.55; }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--col-gap); row-gap: 32px; }
.stat { display: grid; gap: 10px; align-content: start; }
.stat__n { font-size: clamp(2.75rem, 5.5vw, 6rem); font-weight: 200; font-stretch: 112%; line-height: 0.95; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat__l { font-size: var(--fs-small); opacity: 0.6; max-width: 20ch; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

/* Creator accounts */
.accounts { border-top: 1px solid rgba(0,0,0,0.18); }
.accounts li { display: grid; grid-template-columns: 9rem 1fr auto; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,0.18); }
.accounts__n { font-size: var(--fs-small); opacity: 0.55; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .accounts li { grid-template-columns: 1fr auto; } .accounts li span:not(.accounts__n) { grid-column: 1 / -1; } }
.accounts a { font-weight: 400; }
.accounts a { transition: opacity 0.4s; }
.accounts a:hover { opacity: 0.6; }
.accounts span { font-size: var(--fs-small); opacity: 0.55; }

/* "No somos / Somos": pinned title cards; a × draws across the ordinary line and the real one rises */
.cross { position: relative; }
.cross__stage { position: relative; height: 100vh; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.cross__pair { position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: clamp(20px, 3vw, 40px); }
.cross__no, .cross__yes { margin: 0; font-size: clamp(1.75rem, 5vw, 5.75rem); font-weight: 300; font-stretch: 108%; line-height: 1; letter-spacing: -0.02em; max-width: 24ch; }
.cross__no { position: relative; display: inline-block; justify-self: start; opacity: 0.9; visibility: hidden; }
/* The strike is a background on the inline text, so every wrapped line gets its own stroke, drawn left to right */
.cross__no > span { display: inline; background-image: linear-gradient(var(--white), var(--white)); background-repeat: no-repeat; background-size: 0% 0.06em; background-position: 0 52%; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.04em; }
.cross__yes { font-weight: 400; opacity: 0; }
.cross__yes > span { display: inline-block; }
.cross__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 4vh, 40px); height: 1px; background: rgba(255,255,255,0.15); }
.cross__progress i { position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
@media (max-width: 700px) { .cross__no, .cross__yes { max-width: none; } }

/* --------------------------------------------------------------------------
   Services list
   -------------------------------------------------------------------------- */
.services__head { margin-bottom: clamp(40px, 6vw, 88px); display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
/* Service cards: vertical, flip on hover / tap. Front is paper, back is ink. */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--col-gap); }
.card { perspective: 1600px; }
.card__inner {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; text-align: left;
  transform-style: preserve-3d;
  transition: transform 1.1s var(--ease-inout);
}
.card:hover .card__inner, .card.is-flipped .card__inner, .card__inner:focus-visible { transform: rotateY(180deg); }
.card__face {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(18px, 1.6vw, 26px);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.card__front { border: 1px solid rgba(0,0,0,0.2); background: var(--white); color: var(--black); }
.card__front::before, .card__front::after { content: ""; position: absolute; right: 22px; top: 22px; background: currentColor; opacity: 0.5; }
.card__front::before { width: 14px; height: 1px; transform: translateY(6.5px); }
.card__front::after { width: 1px; height: 14px; transform: translateX(-7px); }
.card__back { background: var(--black); color: var(--white); transform: rotateY(180deg); }
/* Card with a photo: the image fills the front, darkened so the title reads; the plus hint stays */
.card__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.card__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease-out); }
.card__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.35) 100%); }
.card--img .card__front { color: var(--white); border-color: transparent; }
.card--img .card__front > .card__tag, .card--img .card__front > .card__title { position: relative; z-index: 1; }
.card--img .card__front::before, .card--img .card__front::after { z-index: 1; opacity: 0.8; }
.card--img .card__tag { opacity: 0.75; }
.card:hover .card__bg img { transform: scale(1.1); }
.card__tag { font-size: var(--fs-small); opacity: 0.55; }
.card__title { font-size: clamp(1.375rem, 1.75vw, 1.875rem); font-weight: 300; font-stretch: 106%; line-height: 1.1; max-width: 12ch; }
.card__desc { font-size: 1.0625rem; line-height: 1.45; opacity: 0.92; }
.card__list { display: grid; gap: 6px; font-size: 0.9375rem; opacity: 0.65; }
.card__more { display: inline-block; margin-top: 14px; font-size: 0.9375rem; padding-bottom: 4px; border-bottom: 1px solid currentColor; }
.card__inner { color: inherit; text-decoration: none; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .cards { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 72vw; scroll-snap-align: start; }
  .card:hover .card__inner { transform: none; }
  .card.is-flipped .card__inner { transform: rotateY(180deg); }
}

/* "Pronto": services that are coming, one quiet line under the cards */
.soon { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; margin-top: clamp(28px, 4vw, 48px); padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); font-size: var(--fs-small); }
.soon__label { opacity: 0.5; }
.soon li:not(.soon__label) { opacity: 0.85; }
.soon li:not(.soon__label)::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.4; margin-left: 10px; vertical-align: middle; }

/* Related projects under a service description */
.related { margin-top: 32px; display: grid; gap: 12px; }
.related__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.related__list a { display: grid; gap: 8px; font-size: var(--fs-small); }
.related__list img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.related__list a:hover img { transform: scale(1.05); }

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */
.projects__head { margin-bottom: clamp(40px, 6vw, 88px); display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.projects__grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap); row-gap: clamp(32px, 4vw, 64px);
}
/* Home: a clean two-up grid, every image horizontal and aligned (the staggered/portrait mix was rejected: "I prefer everything horizontal, clean") */
.proj { display: block; }
.proj--a, .proj--b, .proj--c, .proj--d { grid-column: span 6; }
.proj__media { overflow: hidden; aspect-ratio: 16 / 10; background: #111; }
/* Linked images breathe in slowly under the pointer (the reveal animation hands the transform back to CSS when done) */
.proj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.proj:hover .proj__media img { transform: scale(1.06); }
.proj__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 18px; }
.proj__client { font-size: clamp(1.125rem, 1.6vw, 1.5rem); font-weight: 400; }
.proj__type { font-size: var(--fs-small); opacity: 0.55; text-align: right; display: grid; gap: 2px; }
.proj__type em { font-style: normal; opacity: 0.7; }
/* Narrow tiles (3-up grid, tablets, phones): name on one line, type · date on the next — a right-aligned column would wrap word by word */
.pgrid--projects .proj__meta, .pgrid--four .proj__meta { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 12px; }
.pgrid--projects .proj__type, .pgrid--four .proj__type { text-align: left; display: flex; flex-wrap: wrap; gap: 0 10px; }
.pgrid--projects .proj__type em::before, .pgrid--four .proj__type em::before { content: "·"; margin-right: 10px; opacity: 0.6; }
@media (max-width: 900px) { .proj__meta { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 12px; } .proj__type { text-align: left; display: flex; flex-wrap: wrap; gap: 0 10px; } .proj__type em::before { content: "·"; margin-right: 10px; opacity: 0.6; } }
@media (max-width: 700px) {
  .proj--a, .proj--b, .proj--c, .proj--d { grid-column: 1 / -1; }
}


/* Single project */
.pvideo { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.pvideo video, .pvideo iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Vertical (9:16) video: a phone in the middle of the stage, the cover blurred behind it */
.pvideo--vertical { aspect-ratio: auto; position: relative; overflow: hidden; display: grid; place-items: center; padding: clamp(32px, 5vw, 72px) 20px; }
.pvideo__bg { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(48px) brightness(0.35) saturate(1.1); transform: scale(1.1); }
.phone { position: relative; width: min(380px, 80vw, 38vh); aspect-ratio: 9 / 19.2; padding: 10px; border-radius: 48px; background: #0a0a0a; border: 1px solid rgba(255,255,255,0.22); box-shadow: 0 50px 100px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(0,0,0,0.8); }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 84px; height: 24px; border-radius: 999px; background: #000; z-index: 2; pointer-events: none; }
.phone video, .phone iframe { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; border: 0; display: block; background: #000; }
@media (max-width: 600px) { .phone { width: min(80vw, 46vh); border-radius: 36px; padding: 7px; } .phone video, .phone iframe { border-radius: 30px; } .phone::before { width: 64px; height: 18px; top: 16px; } }
.pcover { width: 100%; height: clamp(380px, 88vh, 1000px); overflow: hidden; }
.pcover img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.pnext { display: grid; gap: 10px; padding-top: clamp(28px, 3vw, 44px); border-top: 1px solid rgba(0,0,0,0.18); }
.pnext .h2 { transition: transform var(--t-med) var(--ease-out); }
.pnext:hover .h2 { transform: translateX(12px); }

/* Projects page grid: positions are assigned by JS (p1–p6, repeating) so filtered views keep the rhythm */
.pgrid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: clamp(20px, 2.5vw, 40px); }
/* Proyectos page: clean three-up grid, every tile 16:10 (same rule as the home: horizontal, aligned) */
.pgrid--projects { grid-template-columns: repeat(3, 1fr); row-gap: clamp(32px, 4vw, 56px); }
.pgrid .proj.is-off { display: none; }
.pgrid__empty { max-width: 44ch; opacity: 0.6; margin: 8px 0 0; }
.pgrid--four { grid-template-columns: repeat(4, 1fr); row-gap: clamp(28px, 3vw, 48px); }
.pgrid--four .proj__meta { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 14px; }
.pgrid--four .proj__client { font-size: 1.0625rem; }
.pgrid--four .proj__type { text-align: left; }
@media (max-width: 900px) { .pgrid--projects { grid-template-columns: repeat(2, 1fr); } .pgrid--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pgrid--projects { grid-template-columns: 1fr; } }

/* Drapes (Servicios): side-by-side panels; the open one takes most of the width and reveals its text */
.drapes { display: flex; gap: 10px; height: clamp(520px, 78vh, 820px); }
.drape { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; color: var(--white); background: var(--black); cursor: pointer; transition: flex-grow 1.1s var(--ease-inout); }
.drape.is-open { flex-grow: 3.2; }
.drape__media { position: absolute; inset: 0; }
.drape__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 1.4s var(--ease-out), opacity 1s; }
.drape.is-open .drape__media img { transform: scale(1); }
.drape__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.25) 100%); transition: background 1s; }
.drape.is-open .drape__shade { background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.75) 55%, rgba(0,0,0,0.3) 100%); }
/* closed: the title stands vertically along the panel; open: it sits at the top of the text column */
.drape__title { position: absolute; left: clamp(16px, 2vw, 28px); width: max(110px, 10.5vw); bottom: clamp(20px, 3vw, 32px); font-size: clamp(1.0625rem, 1.35vw, 1.375rem); line-height: 1.2; font-weight: 400; letter-spacing: 0.01em; text-wrap: balance; margin: 0; transition: opacity 0.5s; }
.drape.is-open .drape__title { opacity: 0; }
/* Fixed width (viewport-based, not panel-based) so the text never rewraps while the panel is still growing — that rewrap is what reads as jitter */
.drape__body { position: absolute; left: clamp(20px, 3vw, 44px); bottom: clamp(20px, 3vw, 40px); top: clamp(20px, 3vw, 40px); width: min(56ch, 38vw); display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; overflow-y: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to bottom, transparent, black 8%); opacity: 0; transform: translateY(10px); will-change: opacity, transform; transition: opacity 0.9s 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s 0.5s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; }
.drape:not(.is-open) .drape__body { transition: opacity 0.3s, transform 0.3s; }
.drape__link { position: absolute; inset: 0; z-index: 2; }
.drape.is-open .drape__body { opacity: 1; transform: none; pointer-events: auto; }
.drape__tag { font-size: var(--fs-small); opacity: 0.6; }
.drape__body::before { content: attr(data-title); }
.drape__text { display: grid; gap: 10px; font-size: 0.9375rem; line-height: 1.5; opacity: 0.9; }
.drape__text p { margin: 0; }
.drape__bullets { display: grid; gap: 4px; font-size: var(--fs-small); opacity: 0.7; padding-left: 1.1em; }
.drape__bullets li { list-style: disc; }
.drape__body > :first-child { margin-top: auto; }
.drape__body::-webkit-scrollbar { display: none; }
.drape .link--solid { align-self: flex-start; }
.drape .link--solid:hover { background: var(--white); color: var(--black); }
/* Touch screens of ANY width get the swipe row — an iPad is 1024 px wide but still cannot hover,
   so keying this off width alone left tablets with a hover interaction they could never trigger. */
@media (max-width: 800px), (hover: none) {
  .drapes { flex-direction: row; height: auto; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .drapes::-webkit-scrollbar { display: none; }
  .drape { flex: 0 0 min(68vw, 280px); aspect-ratio: 4 / 5; min-height: 0; scroll-snap-align: start; transition: none; }
  .drape.is-open { flex-grow: 0; }
  .drape__media img, .drape.is-open .drape__media img { transform: none; }
  .drape__shade, .drape.is-open .drape__shade { background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.1) 100%); }
  .drape__title, .drape.is-open .drape__title { position: absolute; left: 20px; right: 20px; width: auto; bottom: 20px; top: auto; translate: none; opacity: 1; font-size: 1.25rem; }
  .drape__body, .drape.is-open .drape__body { display: none; }
}

/* Servicios page: one row per service — photo on the left half, everything else on the right half */
.svcbigs { display: grid; row-gap: clamp(64px, 8vw, 128px); }
.svcbig { align-items: start; row-gap: 24px; }
.svcbig--flip .svcbig__media { grid-column: 7 / -1; grid-row: 1; }
.svcbig--flip .svcbig__body { grid-column: 1 / 6; grid-row: 1; }
@media (max-width: 900px) { .svcbig--flip .svcbig__media, .svcbig--flip .svcbig__body { grid-column: 1 / -1; grid-row: auto; } }
.svcbig__media { aspect-ratio: 16 / 10; overflow: hidden; }
.svcbig__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.svcbig:hover .svcbig__media img { transform: scale(1.04); }
.svcbig__body { display: grid; gap: 16px; align-content: start; }
.svcbig__title { margin: 0 0 6px; font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
.svcbig__text { margin: 0; max-width: 46ch; font-size: 1.0625rem; line-height: 1.55; opacity: 0.85; }
.svcbig__bullets { display: grid; gap: 6px; font-size: 0.9375rem; line-height: 1.4; opacity: 0.8; }
.svcbig__bullets li { padding-left: 14px; position: relative; }
.svcbig__bullets li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 1px; background: currentColor; opacity: 0.5; }
.svcbig .related { margin-top: 8px; }
.svcbig .related__list { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
/* Phones: the related row drifts and drags via transform (smooth, sub-pixel) — see main.js */
@media (max-width: 800px) {
  .related.has-marquee { overflow: hidden; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .related__list.is-marquee {
    display: flex; gap: 12px; grid-template-columns: none; width: max-content;
    cursor: grab; user-select: none; touch-action: pan-y; will-change: transform;
  }
  .related__list.is-marquee li { flex: 0 0 150px; }
  .related__list.is-marquee img { pointer-events: none; }
}

/* Tabs (Proyectos, Servicios) */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 56px); }
.tabs__tab { padding: 10px 18px; border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 999px; font-size: 0.9375rem; transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out), border-color 0.45s; }
.tabs__tab:hover, .tabs__tab.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Galleries: three tight columns, photos keep their own proportions and stack with small gaps */
/* Project photos: three per row, always. Landscape photos in a 3:2 grid, portrait ones in a 4:5 grid, stacked one after the other */
.pgrid.pgrid--photos { grid-template-columns: repeat(3, 1fr); gap: 14px; row-gap: 14px; }
.pgrid.pgrid--photos + .pgrid.pgrid--photos { margin-top: 14px; }
.pgrid--photos .proj__media { aspect-ratio: 3 / 2; background: transparent; }
.pgrid--tall .proj__media { aspect-ratio: 4 / 5; }
.pgrid--photos .proj__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .pgrid.pgrid--photos { grid-template-columns: repeat(2, 1fr); } }
.pgrid.pgrid--free { display: block; columns: 4; column-gap: 14px; }
.pgrid.pgrid--free .proj { display: block; break-inside: avoid; margin: 0 0 14px !important; width: 100%; grid-column: auto; }
.pgrid.pgrid--free .proj:nth-child(n) .proj__media { aspect-ratio: auto; background: transparent; }
.pgrid.pgrid--free .proj:nth-child(n) .proj__media img { height: auto; object-fit: initial; }
/* Gallery videos: one justified row — each clip grows by its own ratio so verticals sit side by side and share a height */
.vidrow { --vidrow-h: min(86vh, 920px); display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.vidrow__item { flex: 1 1 0; min-width: 0; background: #000; overflow: hidden; }
.vidrow__item video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) { .vidrow { --vidrow-h: 80vh; gap: 12px; } .vidrow__item { flex: 0 0 calc(50% - 6px) !important; max-width: none !important; } .vidrow__item--wide { flex-basis: 100% !important; } }
@media (max-width: 1100px) { .pgrid.pgrid--free { columns: 3; } }
@media (max-width: 800px) { .pgrid.pgrid--free { columns: 2; } }
@media (max-width: 520px) { .pgrid.pgrid--free { columns: 1; } }

/* --------------------------------------------------------------------------
   About / route
   -------------------------------------------------------------------------- */
.about__text { display: grid; gap: 22px; font-size: 1.125rem; line-height: 1.55; max-width: 50ch; }
.about__text > a { justify-self: start; }
.about__text h2 { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 400; margin-top: 16px; }
.about__text p { margin: 0; }
.route { margin-top: clamp(24px, 4vw, 56px); }
.route svg { width: 100%; height: auto; overflow: visible; }
.route__path { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; }
.route__dot { fill: currentColor; }
.route__ring { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0; transform-origin: center; transform-box: fill-box; animation: ring 3.2s var(--ease-out) infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(5); opacity: 0; } }
.stop--next { cursor: pointer; }
.stop--next .route__label:not(.sub) { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: opacity 0.4s; }
.stop--next:hover .route__label { opacity: 0.6 !important; }
.route__list a { display: contents; }
.route__label { font-family: var(--font); font-size: 16px; fill: currentColor; font-weight: 400; }
.route__label.sub { opacity: 0.5; font-size: 13px; }
.route__date { font-family: var(--font); font-size: 13px; fill: currentColor; opacity: 0.5; }
.route__list { display: none; }
@media (max-width: 700px) {
  .route svg { display: none; }
  .route__list { display: grid; border-top: 1px solid rgba(0,0,0,0.18); }
  .is-black .route__list { border-color: rgba(255,255,255,0.18); }
  .route__list li { display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; row-gap: 2px; padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,0.18); }
  .is-black .route__list li { border-color: rgba(255,255,255,0.18); }
  .route__list .route__date { font-size: var(--fs-small); opacity: 0.55; }
  .route__list .sub { grid-column: 2; opacity: 0.55; font-size: var(--fs-small); }
}
.founders { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 40px; }
.founder:nth-child(1) { grid-column: 2 / 6; }
.founder:nth-child(2) { grid-column: 7 / 11; }
.founder__media { aspect-ratio: 3 / 4; overflow: hidden; background: #ddd; }
.founder__media img { width: 100%; height: 100%; object-fit: cover; }
.founder__name { margin-top: 18px; font-size: 1.25rem; font-weight: 400; }
.founder__role { font-size: var(--fs-small); opacity: 0.55; margin-top: 4px; }
@media (max-width: 900px) { .founder:nth-child(1) { grid-column: 1 / 7; } .founder:nth-child(2) { grid-column: 7 / -1; } }
@media (max-width: 600px) { .founder:nth-child(1), .founder:nth-child(2) { grid-column: 2 / 12; margin-top: 0 !important; } }
/* Founders — "Dúo": two portraits butted together as one wide image, captions over a soft fade */
.founders--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.founders--duo .founder:nth-child(n) { grid-column: auto; margin-top: 0; }
.founder--over { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #111; }
.founder--over img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder--over::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); }
.founder--over .founder__caption { position: absolute; left: clamp(16px, 2.5vw, 32px); right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 1; color: #fff; }
.founder--over .founder__name { margin: 0; font-size: clamp(1.25rem, 2vw, 1.75rem); }
.founder--over .founder__role { opacity: 0.75; }
/* Founders — "Editorial": portrait one side, name/role/one line the other; the second row mirrored */
.founders--editorial { display: grid; grid-template-columns: 1fr; row-gap: clamp(56px, 8vw, 120px); }
.founders--editorial > .founder-row { grid-column: 1 / -1; }
.founder-row { align-items: center; }
.founder-row .founder__media { aspect-ratio: 3 / 4; }
.founder-row .founder__words { display: grid; gap: 14px; max-width: 40ch; }
.founder-row .founder__words .lead { margin-top: 10px; }
.founder-row--flip .founder__media { grid-column: 8 / -1; grid-row: 1; }
.founder-row--flip .founder__words { grid-column: 1 / 6; grid-row: 1; }
/* Founders — "Foto grande": one photo of both, wide and cinematic, names in two columns beneath */
.founders--wide { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 3vw, 40px); }
.founders--wide > * { grid-column: 1 / -1; }
.founders__photo { aspect-ratio: 21 / 9; overflow: hidden; background: #ddd; }
.founders__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founders__names { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); }
.founders__names .founder__name { margin-top: 0; }
@media (max-width: 900px) { .founder-row--flip .founder__media, .founder-row--flip .founder__words { grid-column: 1 / -1; grid-row: auto; } .founders__photo { aspect-ratio: 16 / 10; } }
@media (max-width: 600px) { .founders--duo { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Clients
   -------------------------------------------------------------------------- */
.clients__list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0; border-top: 1px solid rgba(0,0,0,0.18);
}
.clients__list li {
  padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid rgba(0,0,0,0.18);
  font-size: clamp(1.125rem, 1.6vw, 1.5rem); font-weight: 300; font-stretch: 106%;
}
.clients__list li span { display: block; font-size: var(--fs-small); font-stretch: 100%; opacity: 0.5; margin-top: 6px; }

/* Client logo marquee: two identical tracks, the pair slides one track-width and loops */
.marquee {
  display: flex; overflow: hidden; margin-inline: calc(-1 * var(--gutter));
  border-top: 1px solid rgba(0,0,0,0.18); border-bottom: 1px solid rgba(0,0,0,0.18);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex; flex: 0 0 auto; align-items: center;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
/* With JS the strip is driven by hand: it drifts on its own, and you can grab it and drag */
.js .marquee { cursor: grab; user-select: none; touch-action: pan-y; }
.js .marquee.is-dragging { cursor: grabbing; }
.js .marquee__track { animation: none; will-change: transform; }
.js .marquee__track img { pointer-events: none; }
.marquee__track li { flex: 0 0 auto; display: grid; place-items: center; width: clamp(180px, 16vw, 260px); padding: clamp(28px, 3.5vw, 48px) 24px; }
.marquee__track img { max-height: 40px; width: auto; max-width: 150px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { flex-wrap: wrap; mask-image: none; -webkit-mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; }
  .marquee__track[aria-hidden] { display: none; }
}

/* Client logos (static grid alternative) */
.clients__logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid rgba(0,0,0,0.18); }
@media (max-width: 900px) { .clients__logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .clients__logos { grid-template-columns: repeat(2, 1fr); } }
.clients__logos li { display: grid; place-items: center; padding: clamp(28px, 3.5vw, 48px) 24px; border-bottom: 1px solid rgba(0,0,0,0.18); }
.clients__logos img { max-height: 40px; width: auto; max-width: min(100%, 170px); filter: grayscale(1); opacity: 0.75; transition: opacity var(--t-med); }
.clients__logos li:hover img { opacity: 1; }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta { min-height: 80vh; display: grid; align-content: center; }
.cta .display { max-width: 12ch; }
.cta__row { margin-top: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 40px; align-items: start; }
.cta__note { grid-column: 1 / 4; font-size: var(--fs-small); opacity: 0.6; max-width: 30ch; }
.cta__wiz { grid-column: 5 / 12; }
.cta__mail { grid-column: 1 / 7; font-size: clamp(1.25rem, 2.4vw, 2.25rem); font-weight: 300; }
.cta__stack { display: grid; grid-template-columns: 1fr; justify-items: start; gap: 22px; }
.cta__stack > * { grid-column: 1; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.cta--split { min-height: 0; }
.cta--split .display { max-width: 10ch; }
.cta--split .cta__note { grid-column: auto; max-width: 36ch; }
.cta__stack .cta__note { max-width: 40ch; }
@media (max-width: 900px) { .cta__note, .cta__wiz, .cta__mail { grid-column: 1 / -1; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { padding-block: 0 clamp(40px, 5vw, 64px); font-size: var(--fs-small); perspective: 1000px; overflow: hidden; }
.footer__mark { display: block; padding: clamp(40px, 6vw, 96px) 0 clamp(24px, 3vw, 40px); transform-origin: center top; will-change: transform; }
.footer__mark img { width: 100%; height: auto; }
.footer__grid { padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
.footer__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 32px; }
.footer__brand { grid-column: 1 / 5; }
.footer__brand img { height: 24px; width: auto; margin-bottom: 16px; }
.footer__col { display: grid; gap: 8px; align-content: start; }
.footer__col--nav { grid-column: 6 / 8; }
.footer__col--social { grid-column: 8 / 10; }
.footer__col--loc { grid-column: 10 / -1; }
.footer a { transition: opacity 0.4s; }
/* Footer links with a glyph: icon + label on one baseline. The icon is sized off the text (1em) so
   it tracks the footer's responsive font size instead of needing its own breakpoints. */
.flink { display: inline-flex; align-items: center; gap: 9px; }
.flink__icon { width: 1.15em; height: 1.15em; flex: none; }
/* The postal address runs to two lines, so its pin sits on the first line instead of centred. */
.flink--static { align-items: flex-start; }
.flink--static .flink__icon { margin-top: 0.14em; }
/* Contact page: the links are far bigger there, so the glyphs need more air beside them. They must
   be block-level flex, not inline-flex — the aside stacks its links, and inline would run them
   together on one line with each glyph butting against the label before it. */
.contact__aside .flink { display: flex; width: fit-content; gap: 12px; }
.contact__aside .flink + .flink { margin-top: 4px; }
.footer a:hover { opacity: 0.6; }
.footer .footer__mark:hover { opacity: 1; }
.footer__bottom { margin-top: 48px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; opacity: 0.45; }
@media (max-width: 900px) {
  .footer__brand, .footer__col { grid-column: span 6; }
}
/* Phones: the footer is reference information, not reading matter — keep it quiet */
@media (max-width: 600px) {
  .footer { font-size: 0.8125rem; }
  .footer__grid { row-gap: 24px; }
  .footer__col { gap: 6px; }
  .footer__brand img { height: 20px; margin-bottom: 12px; }
  .footer__bottom { margin-top: 32px; font-size: 0.75rem; }
}

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */
.page-head { padding-top: clamp(140px, 22vh, 260px); padding-bottom: clamp(48px, 7vw, 120px); }
.page-head .display { max-width: 12ch; }
.page-head__lead { margin-top: clamp(28px, 4vw, 56px); }

/* 360 tour */
.tour { position: relative; }
.tour .tour__viewer, .tour .tour__viewer.pnlm-container { width: 100%; height: clamp(420px, 78vh, 900px); background: #000; }
.tour__viewer .pnlm-load-box, .tour__viewer .pnlm-about-msg { display: none !important; }
.tour__viewer .pnlm-container:not(.pnlm-grabbing) { cursor: grab; }
/* Centred "360°" badge: tells the visitor the image is explorable, then gets out of the way on first touch */
.tour__badge {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  color: var(--white); pointer-events: none; text-align: center;
}
/* After the first interaction the ring stays as a permanent "this is a 360" marker, just quieter;
   only the instruction text goes away, since by then the visitor already knows. */
.tour__badge.is-gone /* Arrows either side of the ring, drifting outward — reads as "drag me" without a word of instruction */
.tour__cue { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.tour__arrow { width: 14px; height: 14px; border-top: 1px solid rgba(255,255,255,0.8); border-right: 1px solid rgba(255,255,255,0.8); }
.tour__arrow--r { transform: rotate(45deg); animation: tourdriftr 2.6s var(--ease-inout) infinite; }
.tour__arrow--l { transform: rotate(-135deg); animation: tourdriftl 2.6s var(--ease-inout) infinite; }
@keyframes tourdriftr { 0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.45; } 50% { transform: rotate(45deg) translate(5px, -5px); opacity: 1; } }
@keyframes tourdriftl { 0%, 100% { transform: rotate(-135deg) translate(0, 0); opacity: 0.45; } 50% { transform: rotate(-135deg) translate(5px, -5px); opacity: 1; } }
.tour__badge.is-gone .tour__arrow { opacity: 0; animation: none; }
.tour__ring { opacity: 0.32; transform: scale(0.78); animation: none; }
.tour__badge.is-gone .tour__label { opacity: 0; transform: translateY(6px); }
.tour__ring, .tour__label, .tour__arrow { transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
/* Arrows either side of the ring, drifting outward — reads as "drag me" without a word of instruction */
.tour__cue { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.tour__arrow { width: 14px; height: 14px; border-top: 1px solid rgba(255,255,255,0.8); border-right: 1px solid rgba(255,255,255,0.8); }
.tour__arrow--r { transform: rotate(45deg); animation: tourdriftr 2.6s var(--ease-inout) infinite; }
.tour__arrow--l { transform: rotate(-135deg); animation: tourdriftl 2.6s var(--ease-inout) infinite; }
@keyframes tourdriftr { 0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.45; } 50% { transform: rotate(45deg) translate(5px, -5px); opacity: 1; } }
@keyframes tourdriftl { 0%, 100% { transform: rotate(-135deg) translate(0, 0); opacity: 0.45; } 50% { transform: rotate(-135deg) translate(5px, -5px); opacity: 1; } }
.tour__badge.is-gone .tour__arrow { opacity: 0; animation: none; }
.tour__ring {
  display: grid; place-items: center; width: clamp(76px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.55); background: rgba(0,0,0,0.25); backdrop-filter: blur(6px);
  font-size: clamp(1rem, 1.4vw, 1.25rem); letter-spacing: 0.02em;
  animation: tourpulse 3.4s var(--ease-inout) infinite;
}
@keyframes tourpulse { 0%, 100% { transform: scale(1); opacity: 0.95; } 50% { transform: scale(1.06); opacity: 0.75; } }
.tour__label { font-size: var(--fs-small); opacity: 0.8; padding: 8px 16px; border-radius: 999px; background: rgba(0,0,0,0.3); backdrop-filter: blur(6px); }

.tour__viewer, .tour__viewer * { cursor: grab; }

/* Studio rates */
.rates { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); }
.rate { position: relative; --r: 18px; display: grid; gap: 10px; align-content: start; border: 1px solid rgba(0,0,0,0.2); border-radius: var(--r); padding: clamp(22px, 2.6vw, 32px); }
.rate__price { font-size: clamp(1.75rem, 2.8vw, 2.75rem); flex-wrap: wrap; font-weight: 200; font-stretch: 110%; line-height: 1; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 10px; }
.rate__price small { font-size: var(--fs-small); font-stretch: 100%; letter-spacing: 0; opacity: 0.55; white-space: nowrap; }
.rate__name { font-size: 1.125rem; font-weight: 400; margin-top: 8px; }
.rate__desc { font-size: var(--fs-small); opacity: 0.65; line-height: 1.5; }
@media (max-width: 600px) { .rates { grid-template-columns: 1fr; } }
.rates--wide .rate { padding: clamp(28px, 3vw, 44px); }
.rates--wide .rate__price { font-size: clamp(2.25rem, 4vw, 3.75rem); }
.rates--wide .rate__desc { font-size: 1rem; max-width: 40ch; }

/* Studio availability grid: days across, hours down; white = free, dark = busy */
.avail { --cell: 34px; }
.avail__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.avail__title { font-size: 1.125rem; font-weight: 400; }
.avail__nav { width: 40px; height: 40px; border: 1px solid rgba(0,0,0,0.25); border-radius: 50%; display: grid; place-items: center; transition: background 0.4s, color 0.4s; }
.avail__nav:hover { background: var(--black); color: var(--white); }
.avail__nav[disabled] { opacity: 0.25; pointer-events: none; }
.avail__scroll { overflow-x: auto; scrollbar-width: none; }
.avail__scroll::-webkit-scrollbar { display: none; }
.avail__grid { display: grid; grid-template-columns: 56px repeat(7, minmax(84px, 1fr)); gap: 3px; min-width: 700px; }
.avail__day span { display: block; }
.avail__day { font-size: var(--fs-small); padding: 6px 0 10px; text-align: center; opacity: 0.7; text-transform: capitalize; }
.avail__day.is-today { opacity: 1; font-weight: 500; }
.avail__hour { font-size: 0.75rem; opacity: 0.5; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-variant-numeric: tabular-nums; }
.avail__slot { height: var(--cell); border: 1px solid rgba(0,0,0,0.14); background: var(--white); cursor: pointer; transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease-out); }
.avail__slot:hover { border-color: var(--black); }
.avail__slot.is-busy { background: rgba(0,0,0,0.1); border-color: transparent; cursor: default; background-image: repeating-linear-gradient(135deg, rgba(0,0,0,0.06) 0 4px, transparent 4px 9px); }
.avail__slot.is-past { background: rgba(0,0,0,0.03); border-color: transparent; cursor: default; }
.avail__slot.is-picked { background: var(--black); border-color: var(--black); }
.avail__legend { display: flex; gap: 24px; margin-top: 14px; font-size: var(--fs-small); opacity: 0.7; }
.avail__legend i { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; border: 1px solid rgba(0,0,0,0.25); }
.avail__legend i.is-busy { background: rgba(0,0,0,0.1); border-color: transparent; background-image: repeating-linear-gradient(135deg, rgba(0,0,0,0.08) 0 3px, transparent 3px 7px); }
.avail__pick { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(0,0,0,0.18); }
.avail__pick-text { font-size: 1.125rem; }
.avail__pick-ctl button { width: 36px; height: 36px; border: 1px solid rgba(0,0,0,0.25); border-radius: 50%; margin-right: 6px; transition: background 0.4s, color 0.4s; }
.avail__pick-ctl button:hover { background: var(--black); color: var(--white); }
/* Phones: the whole week has to fit — no sideways scrolling to discover Saturday */
@media (max-width: 720px) {
  .avail { --cell: 28px; }
  .avail__grid { grid-template-columns: 30px repeat(7, 1fr); gap: 2px; min-width: 0; }
  .avail__day { font-size: 0.625rem; line-height: 1.25; padding: 4px 0 8px; }
  .avail__hour { font-size: 0.5625rem; padding-right: 4px; }
  .avail__legend { gap: 16px; font-size: 0.75rem; }
  .avail__title { font-size: 1rem; }
  .avail__nav { width: 34px; height: 34px; }
}
/* (the old fixed-width mobile grid lived here; the week now fits instead of scrolling sideways) */

/* Studio equipment */
.spec { border-top: 1px solid rgba(0,0,0,0.18); align-content: start; }
.spec li { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,0.18); }
.spec li span:last-child { opacity: 0.55; }
.spec--facts li { grid-template-columns: 110px 1fr; }
/* Project facts: one row of label/value pairs across the page (Cliente · Rubro · Servicio · Fecha · Lugar) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px var(--col-gap); border-top: 1px solid rgba(0,0,0,0.18); padding-top: 24px; }
.facts li { display: grid; gap: 8px; font-size: 1.0625rem; line-height: 1.35; }
@media (max-width: 600px) { .facts { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; } }

/* Pricing models */
.models { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); }
.model { border-top: 1px solid currentColor; padding-top: 24px; }
.model .h3 { margin-bottom: 16px; }
.model p { opacity: 0.75; max-width: 40ch; }
@media (max-width: 700px) { .models { grid-template-columns: 1fr; } }

/* Workflow steps: icons on one line, a rounded box under each; the line only spans icon to icon */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); column-gap: var(--col-gap); --icon: 72px; --r: 18px; padding-top: calc(var(--icon) + 28px); }
.steps::before, .steps::after { content: ""; position: absolute; left: var(--line-left, 10%); width: var(--line-w, 80%); top: calc(var(--icon) / 2); height: 1px; background: currentColor; }
.steps::before { opacity: 0.18; }
.steps::after { transform: scaleX(var(--steps-progress, 0)); transform-origin: left; }
.step {
  position: relative; display: grid; align-content: start; justify-items: center; text-align: center;
  border: 1px solid rgba(0,0,0,0.18); border-radius: var(--r);
  padding: clamp(28px, 3vw, 40px) clamp(14px, 1.6vw, 26px);
}
.step__icon { position: absolute; top: calc(-1 * var(--icon) - 28px); left: 50%; transform: translateX(-50%); z-index: 1; display: grid; place-items: center; width: var(--icon); height: var(--icon); background: var(--white); }
.step__icon svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
/* Outline that draws itself on hover: any rounded box with an .outline svg inside */
.outline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.outline rect {
  x: 0.5px; y: 0.5px; width: calc(100% - 1px); height: calc(100% - 1px); rx: var(--r, 18px);
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease-inout);
}
.step:hover .outline rect, .rate:hover .outline rect { stroke-dashoffset: 0; }
.step__n { font-size: clamp(2rem, 3vw, 3rem); font-weight: 200; font-stretch: 112%; line-height: 1; }
.step__title { margin-top: 14px; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); font-weight: 400; line-height: 1.25; max-width: 16ch; }
.step__text { margin-top: 12px; font-size: 0.9375rem; line-height: 1.5; opacity: 0.7; max-width: 28ch; }
.js .step__n, .js .step__title, .js .step__text { opacity: 0; transform: translateY(12px); }
.js .steps.is-done .step__n { opacity: 1; transform: none; }
.js .steps.is-done .step__title { opacity: 1; transform: none; }
.js .steps.is-done .step__text { opacity: 0.7; transform: none; }
@media (max-width: 900px) {
  /* scroll-padding matters: without it snapping pulls the first card flush to the edge and eats the gutter */
  .steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; column-gap: 14px; --icon: 52px; padding-top: calc(var(--icon) + 20px); }
  .steps::-webkit-scrollbar { display: none; }
  /* Narrower cards so the next one peeks in and the swipe is obvious, and less air inside each */
  .step { flex: 0 0 min(62vw, 240px); scroll-snap-align: start; padding: 20px 16px; border-radius: 14px; }
  .step__icon { top: calc(-1 * var(--icon) - 20px); }
  .step__icon svg { width: 30px; height: 30px; }
  .step__n { font-size: 1.75rem; }
  .step__title { margin-top: 10px; font-size: 1rem; }
  .step__text { margin-top: 8px; font-size: 0.8125rem; line-height: 1.45; }
}

/* FAQ */
.faq { border-top: 1px solid rgba(0,0,0,0.18); }
.faq__item { border-bottom: 1px solid rgba(0,0,0,0.18); }
.faq__item summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 40px; align-items: center;
  padding: clamp(20px, 2.4vw, 30px) 0; font-size: clamp(1.125rem, 1.6vw, 1.5rem); font-weight: 300; font-stretch: 104%;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover::after { opacity: 1; }
.faq__item summary::after { content: ""; justify-self: end; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center/100% 1px no-repeat, linear-gradient(currentColor, currentColor) center/1px 100% no-repeat; transition: transform 0.6s var(--ease-inout); opacity: 0.6; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { overflow: hidden; }
.faq__a p { max-width: 95ch; padding-bottom: clamp(20px, 2.4vw, 30px); opacity: 0.75; line-height: 1.6; margin: 0; font-size: 1.0625rem; }
/* Phones: each question becomes its own rounded card — easier to scan and to tap than hairline rows */
@media (max-width: 800px) {
  .faq { border-top: 0; display: grid; gap: 10px; }
  .faq__item { border: 1px solid rgba(0,0,0,0.12); border-radius: 14px; padding: 0 16px; background: var(--paper); }
  .faq__item summary { padding: 16px 0; font-size: 1rem; line-height: 1.35; grid-template-columns: 1fr 28px; }
  .faq__item[open] { border-color: rgba(0,0,0,0.22); }
  .faq__a p { font-size: 0.9375rem; padding-bottom: 16px; }
}

/* Contact wizard: one question at a time, options advance automatically */
.wiz { position: relative; min-height: 420px; }
@media (max-width: 700px) { .wiz { min-height: 0; } }
.wiz fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.wiz__progress { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; margin-bottom: clamp(32px, 4vw, 56px); font-size: var(--fs-small); opacity: 0.6; }
.wiz__bar { height: 1px; background: color-mix(in srgb, var(--ink) 18%, transparent); position: relative; }
.wiz__bar i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0.2); transform-origin: left; transition: transform 0.9s var(--ease-inout); }
.wiz__step { display: none; }
.wiz__step.is-active { display: block; animation: wizin 0.9s var(--ease-out); }
.wiz__step.is-leaving { animation: wizout 0.45s var(--ease-inout) forwards; }
@keyframes wizin { from { opacity: 0; transform: translateY(18px); } }
@keyframes wizout { to { opacity: 0; transform: translateY(-14px); } }
.wiz__q { font-size: clamp(1.5rem, 2.6vw, 2.5rem); font-weight: 300; font-stretch: 106%; line-height: 1.15; max-width: 22ch; padding: 0; margin-bottom: clamp(24px, 3vw, 40px); }
.wiz__opts { display: flex; flex-wrap: wrap; gap: 12px; }
.wiz__opt {
  padding: 14px 22px; border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent); border-radius: 999px; font-size: 1rem; text-align: left;
  transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out), border-color 0.5s;
}
.wiz__opt:hover, .wiz__opt:focus-visible, .wiz__opt.is-picked { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.wiz__summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.wiz__summary li { font-size: var(--fs-small); padding: 8px 14px; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 999px; opacity: 0.7; }
.wiz__error { margin-top: 20px; }
.wiz__nav { margin-top: clamp(28px, 3vw, 40px); }
.wiz__back { font-size: var(--fs-small); opacity: 0.6; }
.wiz__back:hover { opacity: 1; }
.wiz__done .wiz__q { max-width: 18ch; }

/* Contact form */
.form { display: grid; gap: 0; }
.field { position: relative; border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); padding: 26px 0 14px; }
.field label { position: absolute; left: 0; top: 26px; opacity: 0.55; transition: transform 0.5s var(--ease-out), opacity 0.4s; transform-origin: left; pointer-events: none; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1.125rem; border: 0; background: transparent; color: inherit; padding: 0; outline: none; resize: vertical;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-22px) scale(0.78); opacity: 0.8; }
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.form__submit { margin-top: 40px; justify-self: start; }

/* Phones and small tablets: the wizard is a form, not a headline — question, pills and inputs all come down a size */
@media (max-width: 800px) {
  .wiz__q { font-size: 1.25rem; line-height: 1.25; max-width: none; margin-bottom: 20px; }
  .wiz__progress { margin-bottom: 24px; gap: 14px; font-size: 0.75rem; }
  .wiz__opts { gap: 8px; }
  .wiz__opt { padding: 8px 14px; font-size: 0.8125rem; }
  .wiz__summary { gap: 6px; margin-bottom: 18px; }
  .wiz__summary li { font-size: 0.75rem; padding: 6px 11px; }
  .wiz__nav { margin-top: 22px; }
  .field { padding: 20px 0 10px; }
  .field label { top: 20px; }
  .field input, .field textarea, .field select { font-size: 1rem; }
  .form__submit { margin-top: 28px; }
}

.contact__aside { display: grid; gap: 40px; align-content: start; }
.contact__aside a { display: block; font-size: clamp(1.125rem, 1.6vw, 1.5rem); font-weight: 300; transition: opacity 0.4s; }
.contact__aside a:hover { opacity: 0.6; }
.contact__aside .small { margin-bottom: 6px; opacity: 0.5; }

/* --------------------------------------------------------------------------
   Reveal primitives (JS animates them; without JS everything is visible)
   -------------------------------------------------------------------------- */
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js .split .w > span { display: inline-block; transform: translateY(110%); will-change: transform; }
.js .split.is-done .w > span { transform: none; }
.js .fade { opacity: 0; transform: translateY(24px); }
.js .img-reveal { clip-path: inset(0 0 100% 0); }
.js .img-reveal:not(.is-in) img { transform: scale(1.18); }

@media (prefers-reduced-motion: reduce) {
  .js .split .w > span, .js .fade, .js .img-reveal, .js .img-reveal img, .js .step__n, .js .step__title, .js .step__text { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .steps { --steps-progress: 1; }
  .hero__scroll::after { animation: none; }
  .curtain { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* WordPress admin bar (logged-in editors) */
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .header { top: 46px; } }
