:root {
  --ink: #151515;
  --paper: #fff;
  --muted: #5b5b5b;
  --red: #bb222c;
  --bright: #ff535c;
  --line: #deddd9;
  --gutter: clamp(1.1rem, 5vw, 5rem);
  --bar-height: 4rem;
  font: 100%/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-height) + .75rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
p, h1, h2, h3, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
:focus-visible { outline: 3px solid #e53e4b; outline-offset: 4px; }

.wrap { width: min(100%, 94rem); padding-inline: var(--gutter); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: .6rem; left: .6rem; padding: .65rem 1rem; background: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.masthead { position: sticky; top: 0; z-index: 5; background: #080808; color: #fff; border-bottom: 1px solid #262626; }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: var(--bar-height); }
.brand { font-size: 1.55rem; font-weight: 300; letter-spacing: .1em; line-height: 1; text-decoration: none; white-space: nowrap; }
.brand span { color: #ef3434; }
.primary-nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2.75rem); }
.primary-nav a { display: grid; place-items: center; min-height: 44px; color: #e4e4e4; text-decoration: none; font-size: .82rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.primary-nav a:hover { color: var(--bright); }

.hero {
  overflow: clip;
  background: #000;
  color: #f8f8f8;
  --muted: #bcbcbc;
  --line: #303030;
  --red: var(--bright);
}
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); gap: clamp(1.2rem, 4.3vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5.25rem); }
.hero-circle { display: block; width: min(100%, 32rem); margin-inline: auto; }
.hero-circle img { width: 100%; height: auto; }
.hero-film { display: none; }
.section-label { display: flex; align-items: center; gap: .65rem; font-size: .8125rem; line-height: 1.3; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.section-label::before { content: ""; width: 1.9rem; height: 2px; background: var(--red); }
.hero h1 { margin-top: 1.45rem; font-size: clamp(3rem, 6.5vw, 7rem); line-height: .96; letter-spacing: -.075em; font-weight: 660; }
.hero h1 span { color: var(--red); }
.hero-description { max-width: 28rem; margin-top: 1.6rem; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.22rem); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .65rem 1.1rem; border: 1px solid transparent; font-size: .92rem; font-weight: 665; line-height: 1.2; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.hero .button { margin-top: 1.75rem; }
.button-light { background: #fff; color: #151515; }
.button-light:hover { background: #e9e6e2; }

.section-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.section-index a { min-width: 0; padding: 1.05rem clamp(.65rem, 2vw, 1.65rem) 1.25rem; text-decoration: none; transition: background .25s; }
.section-index a:first-child { padding-left: 0; }
.section-index a + a { border-left: 1px solid var(--line); }
.section-index a:hover { background: #171717; }
.section-index strong { display: block; font-size: clamp(.96rem, 1.5vw, 1.25rem); letter-spacing: -.035em; }
.section-index span { display: block; margin-top: .25rem; color: var(--muted); font-size: .85rem; }

.band { padding-block: clamp(3.65rem, 8vw, 7.3rem); }
.band-dark { color: #f9f9f9; background: #101011; --muted: #bebdbb; --red: var(--bright); --line: #363636; }
.play {
  --scene-light: radial-gradient(ellipse at 88% 36%, #91374550, transparent 53%);
  --scene-line: #c6788263;
  --scene-haze: #72303c34;
  --scene-line-top: 8%;
}
.section-intro { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: end; gap: clamp(1.3rem, 5vw, 5rem); margin-bottom: clamp(1.9rem, 4.4vw, 3.7rem); }
.section-intro h2 { margin-top: .75rem; max-width: 13ch; font-size: clamp(2.65rem, 5.3vw, 5.2rem); line-height: .99; letter-spacing: -.072em; font-weight: 650; text-wrap: balance; }
.section-summary { padding-bottom: .1rem; }
.section-summary p { max-width: 27rem; margin-bottom: .95rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.13rem); }
.text-link { display: inline-block; padding-block: .2rem; font-size: .95rem; font-weight: 650; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .27em; }
.text-link:hover { color: var(--red); }

[data-slide-stack] { touch-action: pan-y pinch-zoom; }
.play-slide { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1.5fr); grid-template-areas: "copy art"; background: #171416; }
.play-slide + .play-slide { margin-top: .6rem; }
.play-slide.is-current { margin-top: 0; }
.slide-art { grid-area: art; display: grid; align-items: center; min-width: 0; background: #0d0c0e; }
.slide-art img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.slide-copy { grid-area: copy; align-self: center; min-width: 0; padding: clamp(1.25rem, 3vw, 3.5rem); }
.play-slide.is-current .slide-copy { animation: slide-copy-in .35s ease-out both; }
@keyframes slide-copy-in { from { opacity: .55; transform: translateY(.6rem); } to { opacity: 1; transform: none; } }
.slide-type { color: #fff; font-size: .8125rem; font-weight: 650; text-transform: uppercase; letter-spacing: .14em; }
.slide-copy h3 { margin: .45rem 0 .55rem; font-size: clamp(2.05rem, 4.1vw, 4.25rem); font-weight: 680; letter-spacing: -.065em; line-height: .98; text-wrap: balance; }
.slide-copy > p:not(.slide-type) { color: #f0f0f0; }
.slide-copy .button { margin-top: 1.15rem; }
.slide-controls { display: flex; flex-wrap: wrap; justify-content: start; gap: 0 1.5rem; border-bottom: 1px solid var(--line); }
.slide-controls button { min-height: 2.85rem; border: 0; border-top: 2px solid transparent; padding: .55rem .05rem; background: none; color: var(--muted); font-size: .88rem; font-weight: 600; text-align: left; }
.slide-controls button:hover, .slide-controls button[aria-pressed="true"] { color: #fff; }
.slide-controls button[aria-pressed="true"] { border-color: var(--bright); }
.character-showcase { margin-top: clamp(2.7rem, 6vw, 5.25rem); }
.character-heading { display: flex; gap: .6rem 1.25rem; flex-wrap: wrap; justify-content: space-between; align-items: baseline; margin-bottom: 1.25rem; }
.character-heading h3 { font-size: clamp(1.65rem, 3vw, 2.7rem); line-height: 1.1; letter-spacing: -.05em; }
.character-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.55rem, 1.2vw, 1rem); }
.character-media { display: grid; place-items: center; position: relative; isolation: isolate; aspect-ratio: 1.15; background: #f1efec; overflow: hidden; }
.character-media video { position: absolute; width: 90%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.character p { margin-top: .48rem; color: #e9e9e8; font-size: .93rem; font-weight: 600; }
.character small { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; }
.motion-button { position: absolute; right: .4rem; bottom: .4rem; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #0002; border-radius: 50%; background: #fff; color: #151515; box-shadow: 0 3px 10px #0001; }
.motion-button:hover { background: #171717; color: #fff; }
.motion-button::before { content: ""; width: 0; height: 0; margin-left: 2px; border: 6px solid transparent; border-right: 0; border-left: 9px solid currentColor; }
.motion-button.is-playing::before { width: 11px; height: 12px; margin-left: 0; border: 0; border-inline: 3px solid currentColor; }

.library {
  background: #fff;
  --scene-light: radial-gradient(ellipse at 78% 63%, #cdb7ac64, transparent 52%);
  --scene-line: #a284753d;
  --scene-haze: #e5d9d361;
  --scene-line-top: 16%;
}
.book-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 1.3rem) / 6); gap: 1.3rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: .4rem .25rem 1rem; }
.book-track li { min-width: 0; scroll-snap-align: start; }
.book-track a { display: block; text-decoration: none; }
.book-track img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; background: #191919; box-shadow: 0 5px 10px #19100d1a; transition: transform .3s; }
.book-track a:hover img { transform: translateY(-4px); }
.book-track span { display: block; margin-top: .7rem; font-size: .95rem; font-weight: 650; line-height: 1.25; }
.book-track small { display: block; margin-top: .2rem; color: var(--muted); font-size: .83rem; line-height: 1.3; }
.shelf-controls { display: flex; justify-content: end; gap: .5rem; margin-top: .75rem; }
.shelf-controls button { min-height: 44px; padding: .45rem .75rem; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .88rem; font-weight: 620; }
.shelf-controls button:hover:not([aria-disabled="true"]) { border-color: var(--ink); }
.shelf-controls button[aria-disabled="true"] { cursor: default; opacity: .45; }

.tools {
  background: #efeeeb;
  --scene-light: radial-gradient(ellipse at 25% 55%, #d2bfb36b, transparent 58%);
  --scene-line: #8d6f6744;
  --scene-haze: #faf6f267;
  --scene-line-top: 27%;
}
.tool-grid, .app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tool-card, .app-card { min-width: 0; display: block; padding: .8rem .8rem 1.15rem; border: 1px solid transparent; text-decoration: none; transition: border-color .2s, transform .2s; }
.tool-card { background: #fff; }
.app-card { background: #1b1b1d; }
.tool-card:hover, .app-card:hover { border-color: var(--red); transform: translateY(-3px); }
.tool-card h3, .app-card h3 { margin: .7rem .25rem .18rem; font-size: clamp(1.12rem, 1.8vw, 1.55rem); line-height: 1.14; letter-spacing: -.035em; }
.tool-card p, .app-card p { margin-inline: .25rem; color: var(--muted); font-size: .95rem; }
.tool-visual, .app-visual { aspect-ratio: 1.9; overflow: hidden; }
.visual-convert { display: flex; align-items: center; justify-content: center; gap: .65rem; padding: .5rem; background: #e5e2de; }
.file-tile { width: 32%; padding: .28rem; background: #fff; box-shadow: 0 .45rem 1rem #29242323; }
.file-tile:first-child { transform: rotate(-6deg); }
.file-tile:last-child { transform: rotate(6deg); }
.file-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.file-tile span { display: block; padding: .2rem .1rem 0; font-family: monospace; font-size: .75rem; font-weight: 650; }
.visual-convert i { width: 8%; height: 2px; background: #9f3036; }
.visual-color { display: flex; }
.visual-color span { flex: 1; background: #222224; }
.visual-color span:nth-child(2) { background: #4b2026; }
.visual-color span:nth-child(3) { background: #b4232e; }
.visual-color span:nth-child(4) { background: #e27971; }
.visual-color span:nth-child(5) { background: #f3e6dc; }
.visual-grid { display: grid; place-items: center; background: #242326; }
.visual-grid div { display: grid; width: 75%; height: 68%; grid-template: 1fr 1fr 1fr / repeat(4, 1fr); gap: .3rem; }
.visual-grid span { background: #c3bab5; }
.visual-grid span:first-child { grid-column: span 4; background: #ac333b; }
.visual-grid span:nth-child(2) { grid-row: span 2; background: #645b5d; }
.visual-grid span:nth-child(3) { grid-column: span 3; }
.visual-grid span:nth-child(4) { grid-column: span 2; }

.create {
  background: #161617;
  --scene-light: radial-gradient(ellipse at 78% 43%, #785c695c, transparent 57%);
  --scene-line: #a1848b60;
  --scene-haze: #ab8f9f24;
  --scene-line-top: 7%;
}
.studio { margin-bottom: 1.4rem; }
.studio a { display: block; padding: clamp(.35rem, 1vw, .65rem); background: #333335; }
.studio img { width: 100%; height: auto; }
.studio figcaption { margin-top: .5rem; color: var(--muted); font-size: .88rem; }
.app-visual img { width: 100%; height: 100%; object-fit: cover; }
.app-editor { background: #eceee7; }
.app-editor img { object-position: center top; }
.app-call { background: #f0f3f6; }
.app-call img { object-position: center 22%; }
.app-maker img { object-position: center; }

.authors { background: #fafafa; }
.authors .wrap { max-width: calc(64rem + 2 * var(--gutter)); }
.authors h2 { margin-top: .75rem; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; font-weight: 450; letter-spacing: -.045em; }
.author-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 3rem); margin-top: clamp(1.6rem, 4vw, 3.75rem); }
.author-card { padding: clamp(1.25rem, 3vw, 2rem); border-radius: 1.5rem; background: var(--paper); box-shadow: 0 1.2rem 3rem rgb(0 0 0 / .055); }
.author-card img { width: 12rem; height: auto; }
.author-card h3 { margin-top: 1rem; font-size: 1.5rem; font-weight: 450; }
.author-card p { margin-top: 1rem; color: var(--muted); }
.author-card .author-roles { font-size: .75rem; letter-spacing: .065em; text-transform: uppercase; }

.site-footer { padding: 2.75rem 0 1.25rem; background: #080808; color: #fff; }
.footer-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 1.7rem; align-items: start; }
.footer-links summary { font-size: .95rem; font-weight: 650; }
.footer-layout p { margin: .55rem 0; color: #bdbdbd; font-size: .88rem; }
.footer-layout a:not(.brand) { color: #e4e4e4; font-size: .83rem; }
.footer-layout a:hover { color: var(--bright); }
.footer-links summary { cursor: pointer; }
.footer-links ul { margin: .6rem 0 0; columns: 2; }
.footer-legal { margin-top: 1.6rem; padding-top: .8rem; border-top: 1px solid #333; color: #a9a9a9; font-size: .8rem; }

/* Las capas se recortan al borde de la franja y quedan por detrás del contenido. */
[data-scroll-scene] { position: relative; isolation: isolate; overflow: clip; }
[data-scroll-scene]::before, [data-scroll-scene]::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
[data-scroll-scene]::before { inset: -9rem -12%; background: var(--scene-light); }
[data-scroll-scene]::after {
  top: var(--scene-line-top);
  right: -10%;
  width: 74%;
  height: clamp(8rem, 21vw, 21rem);
  background: linear-gradient(90deg, transparent, var(--scene-haze) 48%, var(--scene-haze));
  border-image: linear-gradient(90deg, transparent 9%, var(--scene-line)) 1;
  border-block: 1px solid transparent;
  transform: rotate(-16deg);
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-motion {
    --layer-distance: clamp(4rem, 15vw, 13rem);
    --reveal-distance: clamp(1.55rem, 5vw, 4.5rem);
  }

  .scroll-motion .hero-story::after { content: ""; display: block; height: clamp(12rem, 31svh, 21rem); }
  .scroll-motion .hero-stage { position: sticky; top: calc(var(--bar-height) + 1px); isolation: isolate; }

  .scroll-motion .hero-layout {
    opacity: clamp(0, calc(1 - var(--opening, 0) * 1.85), 1);
    transform: translate3d(calc(var(--opening, 0) * -5vw), calc(var(--opening, 0) * -6rem), 0);
  }
  .scroll-motion .hero-circle { scale: calc(1 + var(--opening, 0) * .24); }

  .scroll-motion .is-film .hero-layout { pointer-events: none; }
  .scroll-motion .hero-stage:has(.hero-layout :focus-visible) .hero-layout { opacity: 1; transform: none; pointer-events: auto; }
  .scroll-motion .hero-stage:has(.hero-layout :focus-visible) .hero-film { visibility: hidden; }

  .scroll-motion .hero-film {
    position: absolute;
    inset: 0 calc(-1 * var(--gutter));
    display: grid;
    align-items: end;
    overflow: clip;
    pointer-events: none;
    color: #fff;
    background: #101011;
    opacity: clamp(0, calc(var(--opening, 0) * 2.7 - .08), 1);
    clip-path: inset(calc((1 - var(--opening, 0)) * 23%) calc((1 - var(--opening, 0)) * 22%) calc((1 - var(--opening, 0)) * 10%));
    transform: translate3d(0, calc((1 - var(--opening, 0)) * 3.5rem), 0);
  }

  .hero-film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 73% 36%; }
  .hero-film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(15deg, #08090cf0, #08090c24 61%, transparent); }
  .hero-film-title {
    z-index: 1;
    padding: clamp(1.1rem, 5vw, 4.6rem);
    margin-inline: calc((1 - var(--opening, 0)) * 22%);
    margin-bottom: calc((1 - var(--opening, 0)) * 8%);
  }
  .hero-film-title span { display: block; margin-bottom: .4rem; font-size: .8rem; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }
  .hero-film-title strong { display: block; font-size: clamp(2rem, 6vw, 6rem); line-height: .96; letter-spacing: -.062em; }

  .scroll-motion [data-scroll-scene]::before {
    transform: translate3d(calc(var(--scroll-depth, 0) * -4vw), calc(var(--scroll-depth, 0) * var(--layer-distance)), 0);
  }

  .scroll-motion [data-scroll-scene]::after {
    transform: translate3d(calc(var(--scroll-depth, 0) * 5vw), calc(var(--scroll-depth, 0) * var(--layer-distance) * -.85), 0) rotate(-16deg);
  }

  .scroll-motion [data-reveal] > * {
    --on-stage: clamp(0, calc(var(--scroll-presence, 1) * 1.33 - var(--stagger, 0)), 1);
    opacity: calc(.14 + var(--on-stage) * .86);
    translate: 0 calc((1 - var(--on-stage)) * var(--reveal-distance) * var(--scroll-side, 1));
  }

  .scroll-motion [data-reveal] > :nth-child(2) { --stagger: .10; }
  .scroll-motion [data-reveal] > :nth-child(3) { --stagger: .17; }
  .scroll-motion [data-reveal] > :nth-child(4) { --stagger: .23; }
  .scroll-motion [data-reveal] > :nth-child(n+5) { --stagger: .29; }
  .scroll-motion [data-reveal] > :focus-within { --on-stage: 1; }

  .scroll-motion .studio a, .scroll-motion .book-track img {
    clip-path: inset(0 0 calc((1 - var(--on-stage, 1)) * 27%) 0);
    scale: calc(.97 + var(--on-stage, 1) * .03);
  }

  .scroll-motion .play-slide {
    background: radial-gradient(ellipse at 5% calc(50% + var(--scroll-depth, 0) * 42%), #312129, #171416 74%);
  }
}

@media (max-width: 62rem) {
  .book-track { grid-auto-columns: calc((100% - 3 * 1.3rem) / 4); }
}

@media (max-width: 47rem) {
  .hero-layout { grid-template-columns: 1fr; gap: .75rem; padding-block: 2.65rem 1.45rem; }
  .hero h1 { margin-top: .8rem; font-size: clamp(2.85rem, 10vw, 5.1rem); }
  .desktop-break { display: none; }
  .hero-description { margin-top: .85rem; }
  .hero .button { margin-top: 1rem; }
  .hero-circle { width: min(100%, 19rem); }
  .section-index a { padding-block: .75rem .85rem; }
  .section-index span { font-size: .78rem; }
  .section-intro { grid-template-columns: 1fr; gap: .9rem; }
  .section-intro h2 { max-width: 17ch; }
  .section-summary p { margin-bottom: .45rem; }
  .play-slide { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "copy"; }
  .slide-copy { min-height: 12.75rem; }
  .tool-grid, .app-grid { gap: .65rem; }
  .tool-card, .app-card { padding: .45rem .45rem .7rem; }
  .tool-card p, .app-card p { font-size: .875rem; }
}

@media (max-width: 35rem) {
  :root { --bar-height: 5.5rem; }
  .masthead-inner { flex-direction: column; justify-content: center; gap: .18rem; padding-top: .65rem; }
  .primary-nav { align-self: stretch; justify-content: space-between; gap: .3rem; }
  .primary-nav a { font-size: .72rem; letter-spacing: .025em; }
  .hero-circle { width: min(100%, 17rem); }
  .section-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-index a:nth-child(3) { padding-left: 0; border-left: 0; }
  .section-index a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .slide-copy > p:not(.slide-type) { font-size: .93rem; }
  .slide-controls { gap: 0 .75rem; }
  .slide-controls button { font-size: .81rem; }
  .character-grid { grid-auto-flow: column; grid-auto-columns: 43%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding: .2rem .25rem .7rem; scrollbar-width: thin; }
  .character { scroll-snap-align: start; }
  .book-track { grid-auto-columns: 43%; gap: .85rem; }
  .tool-grid, .app-grid { grid-template-columns: 1fr; }
  .tool-card, .app-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: .1rem .65rem; padding: .55rem; }
  .tool-visual, .app-visual { grid-row: span 2; align-self: center; }
  .tool-card h3, .app-card h3 { align-self: end; margin: 0; }
  .tool-card p, .app-card p { margin: .15rem 0 0; line-height: 1.32; }
  .studio a { overflow: hidden; }
  .studio img { width: 170%; max-width: none; margin-left: -70%; }
  .author-grid, .footer-layout { grid-template-columns: 1fr; }
  .scroll-motion { --layer-distance: 3.5rem; --reveal-distance: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
