/* Animation trim (Jose, 2026-11-09, GTA VI model: one set piece, then calm readable sections).
   Reversible: remove this file and anim-trim.js from the pages. */

/* Per-letter / per-line reveals only in the hero and the sub-hero (the lens set piece); elsewhere the
   text is simply there and the whole block fades in once (anim-trim.js adds .at-fade / .at-in). */
:is([data-component="text-anim"], [data-component="big-title-anim"], [data-component="splited-text"]):not(.hero *):not(.sub-hero *) :is(.char, .line, .word) {
  opacity: 1 !important;
  --scaleY: 1 !important;
  --rotateX: 0deg !important;
  transform: none !important;
}
.at-fade { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.at-fade.at-in { opacity: 1; transform: none; }

/* Images: a soft zoom on hover instead of the liquid WebGL distortion */
[data-component="fluid-image"] { overflow: hidden; }
[data-component="fluid-image"] canvas { display: none !important; }
[data-component="fluid-image"] img { opacity: 1 !important; visibility: visible !important; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.case-card__wrapper:hover [data-component="fluid-image"] img,
[data-component="fluid-image"]:hover img { transform: scale(1.05); }

/* About: the 3D lens no longer spins behind the sector list */
html.at-hide-scene .scene { visibility: hidden !important; }

/* "About me" link next to the showreel button in the hero */
.at-about-link { position: absolute; font-family: "Martian Mono", sans-serif; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .2em; z-index: 3; }
.at-about-link:hover { color: #f26722; border-color: #f26722; }

/* What I do: a plain grid of disciplines instead of the sticky list with the parallax image columns */
.at-grid .about__awards__images { display: none !important; }
.at-grid .about__awards__list,
.at-grid .about__awards__list-wrapper { position: static !important; height: auto !important; transform: none !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; left: auto !important; }
.at-grid > .header-section { height: auto !important; min-height: 0 !important; }
.at-grid .about__awards__list-list { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 2.4vw; padding: 0 6vw 12vh !important; margin: 0; list-style: none; scale: 1 !important; transform: none !important; }
.at-grid .about__awards__item { display: block !important; position: static !important; opacity: 1 !important; transform: none !important; height: auto !important; border: 0 !important; padding: 0 !important; }
.at-grid .about__awards__item h3 { visibility: visible !important; opacity: 1 !important; color: #fff !important; mix-blend-mode: difference; font-size: clamp(20px, 1.8vw, 30px) !important; line-height: 1.1 !important; margin: 1rem 0 0 !important; white-space: normal !important; }
.at-grid .about__awards__item .at-grid__img { display: block; width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--border-radius, 6px); }
@media (max-width: 1024px) {
  .at-grid .about__awards__list-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px; padding: 0 16px 10vh !important; }
}
@media (max-width: 560px) {
  .at-grid .about__awards__list-list { grid-template-columns: 1fr !important; }
}

/* Let's talk: a big static title and the form right below, instead of the sideways-scrolling giant word */
.talk__title-wrapper, .talk__form-wrapper { height: auto !important; }
.talk__title-sticky, .talk__form-sticky { position: relative !important; height: auto !important; }
.talk__title { translate: none !important; font-size: 13vw !important; width: auto !important; white-space: normal !important; transform: none !important; padding: 14vh 4vw 4vh !important; line-height: .9 !important; }
.talk__title :is(.char, .line, .word, .part-container, .parts-root) { transform: none !important; opacity: 1 !important; }
.talk__form-wrapper { opacity: 1 !important; --start: 0 !important; padding-bottom: 14vh !important; }
.talk__form__line { --start: 0 !important; }

/* The old sticky layout pulled sections up with negative margins; with static sections they overlap */
.about__awards.at-grid { margin-top: 0 !important; padding-top: 14vh; }
.at-grid > .header-section { margin: 0 !important; padding: 0 6vw 6vh; }
.at-grid > .header-section .header-section__wrapper { position: relative !important; }
.talk__title-wrapper, .talk__form-wrapper { margin-top: 0 !important; }
/* Footer: a normal last screen instead of the 3.5-screen sticky reveal over the form */
.footer { margin-top: 0 !important; height: auto !important; }
.footer .footer__wrapper { position: relative !important; }
/* Section title of the grid ("What I do") was left hidden by the old sticky animation */
.at-grid > .header-section, .at-grid > .header-section * { visibility: visible !important; }
/* The lens drifts behind the contact form at the end: give the form a solid card so the text stays readable */
.talk__form { background: #000; }
.at-grid > .header-section .header-section__wrapper { top: 0 !important; }
.at-grid .about__awards__list-list { position: static !important; top: auto !important; margin: 0 !important; }
.at-grid .about__awards__list { margin-top: 0 !important; top: auto !important; }
@media (max-width: 767px) {
  /* on phones the link lands on one of the hero's thin rules: give it the hero's white behind it */
  .at-about-link { background: #fcfcfc; padding: .25em .4em; }
}
/* Sector list: it was white text over the black 3D scene; with the scene hidden the whole About is one white block,
   so the list reads dark like the rest of About (one background change in, one out) */
.about__clients, .about__clients * { color: #141414 !important; }
.about__clients .client:hover { color: #f26722 !important; }
/* The 3.5-screen pinned stretch was where the lens shrank into the thumbnail; without it, keep a short pin */
.about__clients { height: 140vh !important; margin-top: 0 !important; }
.about__clients__wrapper, .about__clients__wrapper * { visibility: visible !important; }
.about__clients__text { opacity: 1 !important; }
/* About is one white block now: grid titles and sector names in plain dark text, all sectors fully visible */
.at-grid .about__awards__item h3 { color: #141414 !important; mix-blend-mode: normal !important; }
.about__clients .client { opacity: 1 !important; }
.about__awards.at-grid { padding-top: 6vh !important; }
/* the box used to open (clip-path) as the lens shrank into it: show it open */
.about__clients__box { clip-path: none !important; }
.about__clients__fig { opacity: 1 !important; transform: none !important; }
.about__clients__text :is(.char, .word, .line, span) { opacity: 1 !important; }
.about__clients__wrapper { opacity: 1 !important; }

/* 2026-11-09, Jose's marked-up screenshots: close the empty gaps in About */
/* the three lens-process cards at the start of About are gone (Jose crossed them out); the title opens About */
.about__images { display: none !important; }
.about__header { margin-top: 0 !important; }
/* the left figure held a video that never loaded (an empty half screen): the text takes the full width,
   lede on the left and the two service lists side by side on the right */
.about__content__fig { display: none !important; }
.about__content__article { margin-left: 0 !important; width: 100% !important; max-width: none !important; justify-content: space-between; gap: 6vw; padding: 0 1.4vw; }
.about__content__article > .about__content__column:first-child { flex: 0 0 38% !important; width: auto !important; max-width: none !important; }
.about__content__article > .about__content__column:last-child { flex: 0 0 46% !important; width: auto !important; max-width: none !important; flex-direction: row !important; gap: 4vw; justify-content: space-between; }
.about__content__article > .about__content__column:last-child > .about__content__item { flex: 1 1 0; margin: 0 !important; }
/* sector list: no longer a pinned full screen with the intro at the top and the list at the bottom;
   the small thumbnail left over from the lens morph is gone */
.about__clients { height: auto !important; margin-bottom: 12vh !important; }
.about__clients__wrapper { position: relative !important; height: auto !important; top: auto !important; }
.about__clients__box { height: auto !important; justify-content: flex-start !important; gap: 6vh; }
.about__clients__fig { display: none !important; }
/* end of About: shorter white tail and no gap before the contact title (the fade to black is shorter too, main.js) */
html[data-template=homepage] body .root .wrapper main section.about { padding-bottom: 22vh !important; }
html[data-template=homepage] body .root .wrapper main section.talk { margin-top: 0 !important; }
@media (max-width: 1024px) {
  .about__content__article { flex-direction: column !important; gap: 6vh; padding: 0; }
  .about__content__article > .about__content__column:first-child,
  .about__content__article > .about__content__column:last-child { flex: none !important; width: 100% !important; }
}
@media (max-width: 560px) {
  .about__content__article > .about__content__column:last-child { flex-direction: column !important; gap: 5vh; }
  html[data-template=homepage] body .root .wrapper main section.about { padding-bottom: 30vh !important; }
}
.about__content__article > .about__content__column:first-child { justify-content: flex-start !important; gap: 5vh; }
/* the service lists are plain text again (anim-trim.js), one service per line */
.at-plain-list { opacity: 1 !important; }

/* 2026-11-09 Jose: "too many mouse-wheel turns" from the lens + "Trabajos destacados" to the first project cards.
   The lens exit ran 2.35 screens (sub-hero 4.1 tall) and the section title stayed pinned 3.75 screens; now ~1.25 and 3, so the first cards come in as the lens leaves (~1.5 screens fewer). */
@media (min-width: 1025px) {
  html[data-template=homepage] body .root .wrapper main .work > .header-section { height: calc(var(--vh) * 3) !important; }
  html[data-template=homepage] body .root .wrapper main .sub-hero { height: calc(var(--vh) * 3) !important; }
}

/* AI disclosure (EU AI Act art. 50, in force 2026-08-02; Jose 2026-11-09): small notice at the very end of the page */
.footer .footer__end { margin-top: auto; }
.ai-notice { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; padding: 22px 0 6px; width: 100%; align-self: stretch; box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .78);
  font-family: neue-haas-grotesk-display, HelveticaNowDisplay, sans-serif; font-size: 14px; line-height: 1.35; }
.ai-notice__badge { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: #fcfcfc; color: #000; font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.ai-notice__text { max-width: 62em; }
@media (max-width: 767px) { .ai-notice { font-size: 12.5px; gap: 12px; margin-top: 18px; padding: 16px 0 6px; } .ai-notice__badge { width: 30px; height: 30px; font-size: 12px; } }

/* Phones (Jose 2026-11-09: "el botón de reel en el móvil no funciona"): the sub-hero starts 1 screen up (-100vh), over
   the bottom of the hero, and swallowed the taps on the showreel button and the About link below it. It holds
   nothing clickable, so taps go through it. */
html[data-template=homepage] body .root .wrapper main .sub-hero { pointer-events: none; }

/* Phone: the About big title "(CGI, VFX & AI) DIRECTOR VISUAL STORYTELLER"
   was ~389px wide on a 375px screen (and wider than tablets up to 1024px)
   and got clipped at both edges.
   Size it to the screen so the widest line keeps the page gutter. */
@media (max-width: 1024px) {
  html body .about__header__wrapper .mixed-title { font-size: 13vw; }
}

/* Footer links (Jose 2026-11-12: Email / Instagram / LinkedIn did nothing on his Galaxy S22 and S25 Ultra, Chrome; fine
   on an Oppo). They are plain links now (anim-trim.js swaps out the per-line animated copies) on top of everything,
   with a taller tap area on touch screens. */
.footer__social__links { position: relative; z-index: 20; }
.footer__social__links a.at-link { position: relative; display: block; opacity: 1 !important; transform: none !important;
  touch-action: manipulation; -webkit-tap-highlight-color: rgba(242, 103, 34, .25); }
@media (hover: none), (max-width: 1024px) {
  .footer__social__links a.at-link { padding: 9px 0; }
}
