:root {
    --cream: #f5f0eb;
    --ink: #0e0e0e;
    --muted: #666;
    --accent: #c4a882;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.1rem;
    color: var(--cream);
    background: var(--ink);
    overflow: hidden;
    height: 100vh;
    cursor: none;
  }
  .cursor {
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
  }
  .cursor.expand {
    width: 32px; height: 32px;
    background: transparent;
    border: 1px solid var(--accent);
  }
  nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; align-items: center;
    gap: clamp(1.2rem, 4vw, 3rem);
    padding: 1.8rem 3rem;
  }
  .nav-logo {
    font-size: 0.77rem; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--cream);
    opacity: 0.5; margin-right: auto;
    text-decoration: none;
    transition: opacity 0.3s;
  }
  .nav-logo:hover { opacity: 1; }
  nav a.nav-link {
    color: var(--cream); text-decoration: none;
    font-size: 0.68rem; letter-spacing: 0.25em;
    text-transform: uppercase; font-weight: 500;
    position: relative; padding-bottom: 3px;
    opacity: 0.45;
    transition: opacity 0.3s;
  }
  nav a.nav-link::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  nav a.nav-link:hover { opacity: 1; }
  nav a.nav-link:hover::after, nav a.nav-link.active::after { width: 100%; }
  nav a.nav-link.active { opacity: 1; color: var(--accent); }
  .page {
    position: fixed; inset: 0;
    display: flex; align-items: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .page.active { opacity: 1; pointer-events: all; }
  .bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: brightness(0.55) saturate(0.75);
    transition: filter 0.7s;
  }
  .page.active .bg { filter: brightness(0.65) saturate(0.82); }
  .bg-contain {
    position: absolute; inset: 0;
    background-color: #000;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
  }
  .slide-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: brightness(0.55) saturate(0.75);
    opacity: 0;
    transition: opacity 1.4s ease, filter 0.7s;
  }
  #writing .slide-bg {
    bottom: auto;
    height: var(--writing-bg-height, max(100vh, 140vw));
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center top;
    background-color: #000;
  }
  .slide-bg.active { opacity: 1; filter: brightness(0.65) saturate(0.82); }
  #move {
    overflow: hidden;
    align-items: center;
  }
  #move .page-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: auto;
    align-self: auto;
    transform: translateY(-50%);
    z-index: 3;
  }
  #move.page.active .page-content { transform: translateY(-50%); }
  #move.portrait-active {
    overflow-y: auto;
    overflow-x: hidden;
    align-items: flex-start;
  }
  #move .slide-bg.portrait {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: max(100vh, calc(100vw * 2000 / 1413));
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
  }
  #move.portrait-active .page-content {
    min-height: auto;
    padding-top: 0;
  }
  #move.portrait-active .slide-dots {
    position: fixed;
  }
  .page-content {
    position: relative; z-index: 2;
    padding: 0 0 0 clamp(2.5rem, 8vw, 7rem);
    max-width: 600px;
    transform: translateY(20px);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
  }
  .page.active .page-content { transform: translateY(0); }
  .page-content h2,
  :where(.page:not(#hero)) .page-content h1 {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: clamp(2.2rem, 5.5vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cream);
  }
  .page-content h1 .title-note {
    margin-left: 0.45rem;
    font-size: 0.42em;
    letter-spacing: 0.08em;
    text-transform: none;
    opacity: 0.8;
    vertical-align: middle;
  }
  .page-content .section-intro {
    max-width: 32rem;
    margin-top: 1.4rem;
    font-family: Calibri, 'Trebuchet MS', Arial, sans-serif;
    font-size: 1.08rem;
    line-height: 1.5;
    color: rgba(245, 240, 235, 0.82);
  }
  #bio {
    display: grid;
    grid-template-columns: 55% 45%;
    background-color: #0c0c0c;
    isolation: isolate;
    overflow-y: auto;
  }
  #bio .bio-portrait {
    grid-area: 1 / 2;
    justify-self: center;
    width: min(100%, 65vh);
    height: min(100vh, 96vw);
    object-fit: cover;
    mix-blend-mode: lighten;
  }
  #bio .section-intro {
    max-width: 40rem;
  }
  #bio .page-content {
    grid-area: 1 / 1;
    max-width: 760px;
    padding-top: 5rem;
    padding-bottom: 3rem;
  }
  @media (max-width: 700px) {
    #bio {
      display: block;
      padding: 5rem 0 2rem;
    }
    #bio .bio-portrait {
      display: block;
      width: 100%;
      height: min(42svh, 24rem);
      object-fit: contain;
    }
    #bio .page-content {
      margin: 1.5rem 0 0;
      padding: 0 1.2rem;
    }
  }
  .page-content .section-intro .intro-link {
    color: inherit;
    text-decoration: none;
  }
  .page-content .section-intro .intro-link:hover {
    color: var(--cream);
  }
  .page-content .section-link {
    display: inline-block;
    max-width: 34rem;
    margin-top: 1rem;
    font-family: Calibri, 'Trebuchet MS', Arial, sans-serif;
    font-size: 1.08rem;
    line-height: 1.5;
    color: var(--cream);
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 240, 235, 0.45);
    padding-bottom: 0.15rem;
  }
  .page-content .section-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
  }
  #academia .page-content {
    max-width: none;
    width: 100%;
    padding-right: clamp(2.5rem, 8vw, 7rem);
    transform: translateY(-5rem);
  }
  .academia-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 34rem);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }
  .academia-links {
    justify-self: end;
    width: min(34rem, 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .academia-links .section-link:first-child {
    margin-top: 0;
  }
  .page-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
  }
  /* Hero: catarata — velo suave */
  #hero .page-video { filter: brightness(0.76) saturate(1.02) contrast(1.06); }
  /* Academia: montañas — velo normal */
  #academia .page-video { filter: brightness(0.58) saturate(0.75); }
  #hero h1 {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: clamp(1.76rem, 4.18vw, 3.74rem);
    line-height: 1.0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  #hero h1 span { display: block; color: var(--cream); font-weight: 300; }
  #hero .page-content {
    width: 100%;
    max-width: none;
    padding: 0 2rem;
    text-align: center;
  }
  .slide-dots {
    position: absolute; bottom: 2.5rem; left: clamp(2.5rem, 8vw, 7rem);
    z-index: 3; display: flex; gap: 0.6rem; align-items: center;
  }
  .writing-layout {
    position: relative;
    z-index: 4;
    width: 100%;
    min-height: max(100vh, 140vw);
    margin: clamp(5rem, 11vh, 7rem) 0 3rem;
    padding: 0 clamp(2.5rem, 8vw, 7rem) 2rem;
  }
  #writing .page-content {
    max-width: 34rem;
    width: calc(100% - (min(470px, calc(100vw - 4rem)) + clamp(2rem, 4vw, 4rem)));
    margin-right: calc(min(470px, calc(100vw - 4rem)) + clamp(2rem, 4vw, 4rem));
    padding: 0;
    position: relative;
    margin-top: clamp(10rem, 24vh, 16rem);
    padding-bottom: 1.8rem;
    z-index: 5;
  }
  #writing .page-content .section-intro {
    max-width: 100%;
  }
  .writing-library {
    position: absolute;
    top: 1rem;
    right: clamp(2.5rem, 8vw, 7rem);
    width: min(470px, calc(100vw - 4rem));
  }
  #writing {
    overflow-y: auto;
    overflow-x: hidden;
    align-items: flex-start;
  }
  .writing-library-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
  }
  .writing-library-header span {
    font-size: 0.64rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.62);
  }
  .writing-library-header strong {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.94rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.9);
  }
  .writing-subsections {
    display: grid;
    gap: 1rem;
  }
  .writing-card {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: var(--cream);
    max-height: 108px;
    transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s ease;
  }
  .writing-card:hover {
    max-height: 188px;
    transform: translateX(-6px);
  }
  .writing-card img {
    width: 100%;
    height: 188px;
    object-fit: cover;
    display: block;
    opacity: 0.96;
    transition: transform 0.45s ease, opacity 0.35s ease;
  }
  .writing-card:hover img {
    transform: scale(1.03);
    opacity: 1;
  }
  .writing-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.45) 100%);
  }
  .writing-card-label {
    position: absolute;
    left: 0.95rem;
    right: 0.95rem;
    bottom: 0.8rem;
    z-index: 1;
  }
  .writing-card-label strong {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.92rem;
    line-height: 1.05;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 6px 18px rgba(0,0,0,0.42);
  }
  @media (max-width: 700px) {
    .writing-layout {
      padding: 0 1rem;
    }
    #writing .page-content {
      max-width: none;
      width: auto;
      margin-right: 0;
      position: static;
      margin-top: 0;
    }
    .writing-library {
      position: static;
      width: auto;
    }
    .writing-card {
      max-height: 90px;
    }
    .writing-card:hover {
      max-height: 160px;
      transform: none;
    }
    .writing-card img {
      height: 160px;
    }
    .writing-card-label strong {
      font-size: 0.81rem;
      letter-spacing: 0.1em;
    }
  }
  .dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--muted);
    transition: background 0.4s, transform 0.4s;
    cursor: pointer;
  }
  .dot.active { background: var(--accent); transform: scale(1.5); }
  .enter-btn {
    display: inline-block; margin-top: 2.5rem;
    font-size: 0.66rem; letter-spacing: 0.35em;
    text-transform: uppercase; color: var(--muted);
    border: 1px solid var(--muted);
    padding: 0.7rem 1.4rem; cursor: pointer;
    text-decoration: none;
    transition: color 0.3s, border-color 0.3s;
  }
  .enter-btn:hover { color: var(--accent); border-color: var(--accent); }
  .writing-subpage {
    overflow-y: auto;
    overflow-x: hidden;
    align-items: flex-start;
  }
  .writing-subpage .bg-contain {
    background-size: cover;
    background-position: center top;
    filter: brightness(0.4) saturate(0.9);
  }
  #writing-bugs-stream .bg-contain {
    display: none;
  }
  #writing-bugs-stream {
    background-color: #000;
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url('/aidan%20kneels%20to%20bug.png');
    background-attachment: local, local;
    background-position: center top, center top;
    background-size: auto, 100% auto;
    background-repeat: repeat, repeat-y;
  }
  #writing-after-the-wait .bg-contain {
    display: none;
  }
  #writing-after-the-wait {
    background-color: #000;
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url('/8.png');
    background-attachment: local, local;
    background-position: center top, center top;
    background-size: auto, 100% auto;
    background-repeat: repeat, repeat-y;
  }
  #writing-anarchy-or-barbarity .bg-contain {
    display: none;
  }
  #writing-anarchy-or-barbarity {
    background-color: #000;
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url('/bosque2022.png');
    background-attachment: local, local;
    background-position: center top, center top;
    background-size: auto, 100% auto;
    background-repeat: repeat, repeat-y;
  }
  #writing-great-transition .bg-contain {
    display: none;
  }
  #writing-great-transition {
    background-color: #000;
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url('/tajo%20en%20la%20catarata.png');
    background-attachment: local, local;
    background-position: center top, center top;
    background-size: auto, 100% auto;
    background-repeat: repeat, repeat-y;
  }
  #writing-driftskin .bg-contain {
    display: none;
  }
  #writing-driftskin {
    background-color: #000;
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.74)),
      url('/pajaro%20levonorgestrel.jpeg');
    background-attachment: local, local;
    background-position: center top, center top;
    background-size: auto, 100% auto;
    background-repeat: repeat, repeat-y;
  }
  .writing-subpage-shell {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100vw - 3rem));
    margin: clamp(6rem, 12vh, 8rem) auto 4rem;
    padding: 0 0 3rem;
  }
  .writing-subpage-back {
    display: inline-block;
    margin-bottom: 1.4rem;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.72);
    text-decoration: none;
  }
  .writing-subpage-back:hover {
    color: var(--cream);
  }
  .writing-subpage-shell h1 {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    margin-bottom: 1.6rem;
  }
  .writing-subpage-text {
    font-family: Calibri, 'Trebuchet MS', Arial, sans-serif;
    padding: 1.8rem 1.6rem 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.18) 0%, rgba(10, 10, 10, 0.4) 100%);
    backdrop-filter: blur(2px);
  }
  .writing-subpage-text p {
    margin: 0 0 1.3rem;
    font-size: 1.1rem;
    line-height: 1.78;
    color: rgba(245, 240, 235, 0.93);
    text-shadow: 0 6px 18px rgba(0,0,0,0.32);
  }
  .page-content h1 .title-link {
    color: inherit;
    text-decoration: none;
  }
  .page-content h1 .title-link:hover {
    color: var(--cream);
  }
  .movetouch-subpage {
    overflow-y: auto;
    overflow-x: hidden;
    align-items: flex-start;
    background-color: #000;
  }
  .movetouch-subpage-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: max(100vh, calc(100vw * 2000 / 1413));
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)),
      url('/ariel%20y%20bjorn%20se%20aman.png');
    background-position: center top, center top;
    background-size: auto, 100% auto;
    background-repeat: repeat, no-repeat;
    z-index: 1;
  }
  .movetouch-subpage-shell {
    position: relative;
    z-index: 2;
    width: calc(100% - clamp(2rem, 8vw, 8rem));
    margin: clamp(6rem, 12vh, 8rem) auto 4rem;
    min-height: calc(100vw * 3310 / 2340);
    padding-bottom: 3rem;
  }
  .movetouch-subpage-shell h1 {
    margin-bottom: 1.25rem;
    font: 300 clamp(1.1rem, 1.76vw, 1.43rem)/1.35 'Jost', sans-serif;
    letter-spacing: 0.06em;
  }
  .movetouch-subpage-intro {
    width: 100%;
    font: 1.1rem/1.5 Calibri, 'Trebuchet MS', Arial, sans-serif;
    color: var(--cream);
    text-shadow: 0 2px 8px #000;
  }
  .movetouch-subpage-intro p + p { margin-top: .6rem; }
  .movetouch-media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* The two faces occupy the middle of the full-width painting. */
    column-gap: 34vw;
    row-gap: 2rem;
    align-items: start;
    margin-top: 2rem;
  }
  .movetouch-media > figure { min-width: 0; }
  .movetouch-media > figure:not(.diagram-viewer) figcaption {
    padding-top: .5rem;
    font: 300 1.1rem/1.45 'Jost', sans-serif;
  }
  .movetouch-video-embed {
    width: 100%;
    min-width: 0;
    margin: 0;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(245, 240, 235, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
    background: rgba(0, 0, 0, 0.28);
  }
  .movetouch-video-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
  }
  .movetouch-mobile-single {
    display: none;
  }
  .movetouch-mobile-single-title,
  .movetouch-mobile-single-text {
    display: none;
  }
  .movetouch-mobile-end-image {
    display: none;
  }
  @media (max-width: 900px) {
    #move .slide-bg:first-child {
      background-image: url('/xurde%20y%20erenci%20bailan%20con%20brillo.png') !important;
      background-position: center center;
      background-size: cover;
      filter: none;
      opacity: 1 !important;
    }
    #move .slide-bg.portrait {
      display: none !important;
    }
    nav {
      flex-wrap: wrap;
      row-gap: 0.9rem;
      column-gap: 1.1rem;
      padding: 1.2rem 1.2rem 0;
      align-items: flex-start;
    }
    .nav-logo {
      flex: 0 0 100%;
      margin-right: 0;
      margin-bottom: 0.4rem;
      opacity: 0.72;
    }
    nav a.nav-link {
      font-size: 0.75rem;
      letter-spacing: 0.18em;
    }
    .slide-dots {
      left: 1.2rem;
      bottom: 1.4rem;
    }
    .page-content {
      padding-left: 1.2rem;
      padding-right: 1.2rem;
      max-width: 100%;
    }
    #move {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      overflow-y: auto;
    }
    #move .page-content,
    #move.page.active .page-content {
      position: relative;
      top: auto;
      left: auto;
      transform: none;
      width: 100%;
      max-width: none;
      margin-top: 7.2rem;
      padding-bottom: 0;
    }
    #move .page-content {
      background: transparent;
      padding-top: 0;
    }
    #move .page-content .section-intro {
      background: #000;
      max-width: none;
      margin-top: calc(max(100vh, calc(100vw * 2000 / 1413)) - 7.2rem + 1.4rem);
      padding: 1.4rem 0 2.2rem;
    }
    #move.portrait-active .page-content {
      padding-top: 0;
    }
    .writing-layout {
      min-height: auto;
      margin: 7.6rem 0 2.5rem;
      padding: 0 1.2rem 2rem;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }
    #writing .page-content {
      position: static;
      width: auto;
      max-width: none;
      margin-top: 0;
      margin-right: 0;
      padding: 0;
    }
    .writing-library {
      position: static;
      width: 100%;
      right: auto;
      top: auto;
    }
    .writing-subsections {
      gap: 0.8rem;
    }
    .writing-card {
      max-height: 140px;
    }
    .writing-card:hover {
      max-height: 140px;
      transform: none;
    }
    .writing-card img {
      height: 140px;
    }
    #academia .page-content {
      transform: translateY(-8.2rem);
      padding-right: 1.2rem;
      margin-top: 7.2rem;
    }
    .academia-layout {
      grid-template-columns: 1fr;
      gap: 1.4rem;
    }
    .academia-links {
      justify-self: start;
      width: 100%;
    }
  }
  @media (max-width: 700px) {
    #hero .page-content {
      padding: 0 1.2rem;
    }
    .enter-btn {
      margin-top: 1.8rem;
      padding: 0.65rem 1.1rem;
      letter-spacing: 0.22em;
    }
    .writing-subpage-shell {
      width: calc(100vw - 2rem);
      margin: 6.8rem auto 2.5rem;
    }
    .writing-subpage-text {
      padding: 1.2rem 1rem 0;
    }
    .movetouch-video-embed {
      display: none;
    }
    .movetouch-subpage-shell { width: calc(100% - 2rem); min-height: 0; margin: 6.8rem auto 2rem; }
    .movetouch-subpage-bg { display: none; }
    .movetouch-media { grid-template-columns: 1fr; gap: 1.5rem; }
    .movetouch-media::before {
      content: '';
      width: calc(100% + 2rem);
      margin-inline: -1rem;
      aspect-ratio: 2340 / 3310;
      background: url('/ariel%20y%20bjorn%20se%20aman.png') center / contain no-repeat;
    }
    .movetouch-media .movetouch-video-embed { display: block; }
    #move .page-content .section-intro {
      display: none;
    }
    #move .slide-dots {
      display: none;
    }
    .movetouch-mobile-single {
      display: block;
      width: 100%;
      max-width: none;
      margin-top: calc(max(100vh, calc(100vw * 2000 / 1413)) - 6.8rem + 0.5rem);
      background: #000;
      padding: 0.95rem 1rem 2rem;
      margin-left: 0;
      margin-right: 0;
    }
    .movetouch-mobile-single .movetouch-video-embed {
      display: block;
      width: 100%;
      max-width: 100%;
      margin: 0 0 1.4rem;
      aspect-ratio: 16 / 9;
      background: #000;
      border: 1px solid rgba(245, 240, 235, 0.16);
      box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    }
    .movetouch-mobile-single-text {
      display: block;
      margin: 0 0 1.45rem;
      font-size: 1.06rem;
      line-height: 1.58;
      color: var(--cream);
      font-family: Calibri, 'Trebuchet MS', Arial, sans-serif;
    }
    .movetouch-mobile-single-title {
      display: block;
      margin: 0 0 1rem;
      font-size: 1.1rem;
      line-height: 1.2;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--cream);
      font-family: 'Jost', sans-serif;
      font-weight: 300;
    }
    .movetouch-mobile-single .movetouch-video-embed {
      display: block !important;
    }
    .movetouch-mobile-end-image {
      display: block;
      width: calc(100% + 2rem);
      margin: 0 -1rem;
      height: max(100vh, calc(100vw * 2000 / 1413));
      background-image: url('/movetouch-slide-2.jpg');
      background-repeat: no-repeat;
      background-size: 128% auto;
      background-position: 52% -6px;
      background-color: #000;
    }
  }
  @media (max-width: 600px) {
    nav {
      padding: 1rem 0.9rem 0;
      row-gap: 0.75rem;
      column-gap: 0.85rem;
    }
    .nav-logo {
      margin-bottom: 0.5rem;
    }
    nav a.nav-link {
      font-size: 0.7rem;
      letter-spacing: 0.12em;
    }
    .page-content { padding: 0 1rem; }
    body { cursor: auto; }
    .cursor { display: none; }
    #hero h1 { font-size: clamp(2.2rem, 11vw, 3.85rem); }
    .slide-dots {
      left: 1rem;
      bottom: 1rem;
    }
    .writing-card {
      max-height: 126px;
    }
    .writing-card img {
      height: 126px;
    }
    .writing-card-label strong {
      font-size: 0.79rem;
      letter-spacing: 0.08em;
    }
    .movetouch-video-embed {
      width: 100%;
      max-width: 100%;
    }
  }

  .diagram-viewer {
    margin: 0;
    width: 100%;
    min-width: 0;
    color: var(--cream);
    background: #101010;
  }
  .diagram-slide {
    display: block;
    width: 100%;
    height: auto;
  }
  .diagram-viewer figcaption,
  .diagram-paging {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
  }
  .diagram-viewer figcaption {
    padding: 0.3rem 0.75rem;
    justify-content: space-between;
    font: 1rem/1.35 Calibri, Arial, sans-serif;
  }
  .diagram-viewer button {
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0.6rem 0.15rem;
  }
  .diagram-viewer button {
    background: transparent;
    border: 0;
  }
  .diagram-viewer button:disabled { opacity: 0.45; cursor: default; }
  .diagram-viewer button:enabled:hover { text-decoration: underline; }
  @media (max-width: 700px) {
    .movetouch-mobile-single .diagram-viewer { margin-bottom: 1.45rem; }
    #move .movetouch-presentation-link { display: none; }
  }

  .diagram-stage { overflow: auto; }
  .diagram-slide {
    -webkit-touch-callout: none;
    user-select: none;
  }
  .diagram-actions { display: flex; gap: 0.85rem; }
  .diagram-error { padding: 0 0.75rem; }
  .diagram-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(100%, 96rem);
    max-width: 100vw;
    max-height: 100dvh;
    border: none;
    background: #101010;
    color: var(--cream);
    cursor: auto;
  }
  .diagram-dialog::backdrop { background: rgba(0,0,0,.9); }
  .diagram-dialog .diagram-stage {
    height: min(80dvh, 64vw);
    background: #080808;
  }
  .diagram-dialog .diagram-slide {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .diagram-dialog .zoomed .diagram-slide {
    width: max(1512px, 150%);
    height: auto;
  }

  @font-face {
    font-family: 'Portfolio Jost';
    src: url('ai-art/jost-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
  }

  body.ai-art-page {
    height: auto;
    min-height: 100vh;
    overflow: auto;
    background: #0c1015;
  }
  .ai-art-page nav {
    background: linear-gradient(#080b10f2, #080b10b8);
  }
  .ai-art-page nav a { opacity: .85; font-weight: 300; }
  .ai-art-cover { position: relative; isolation: isolate; background: #06090e; }
  .ai-art-cover video {
    display: block;
    width: 100%;
    height: clamp(26rem, 82svh, 60rem);
    object-fit: cover;
    object-position: center;
  }
  .ai-art-cover::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(0deg, rgba(5,10,16,.78), transparent 42%);
  }
  .ai-art-cover-content, .ai-art-playback {
    position: absolute; z-index: 1; bottom: clamp(2rem, 5vw, 4.5rem);
  }
  .ai-art-cover-content { left: clamp(1.3rem, 7vw, 7rem); }
  .ai-art-cover h1 {
    font: 200 clamp(3.5rem, 7vw, 7rem)/1 'Portfolio Jost', 'Jost', sans-serif;
    margin-bottom: .7rem;
  }
  .ai-art-cover-content a, .ai-art-playback {
    color: var(--cream);
    text-decoration: underline;
    text-underline-offset: .3rem;
    font: 300 1.05rem/1.4 'Portfolio Jost', 'Jost', sans-serif;
  }
  .ai-art-playback { right: clamp(1.3rem, 6vw, 5rem); border: 0; background: none; cursor: pointer; }
  .ai-art-page #projects {
    padding: clamp(1.4rem, 4vw, 4rem) clamp(1.2rem, 7vw, 7rem) 5rem;
    max-width: 100rem; margin: auto; scroll-margin-top: 5rem;
  }
  .ai-art-sites, .ai-art-films { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
  .ai-art-site {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; align-items: flex-end; padding: 1.3rem;
    width: 100%; min-width: 0; aspect-ratio: 2.35; min-height: 8rem; color: var(--cream); text-decoration: none;
    background: #202832;
  }
  .ai-art-site img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
  .ai-art-site::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 10%, rgba(0,0,0,.8)); }
  .ai-art-site span { font: 200 clamp(1.4rem, 3vw, 2.6rem)/1.15 'Portfolio Jost', 'Jost', sans-serif; }
  .artist-intro {
    max-width: 66ch;
    margin: 0 0 clamp(2rem, 5vw, 4rem);
    font: 200 clamp(1.25rem, 2vw, 1.65rem)/1.5 'Portfolio Jost', 'Jost', sans-serif;
  }
  #projects figure { min-width: 0; }
  #projects figcaption { padding-top: .75rem; font: 300 1.05rem/1.5 'Portfolio Jost', 'Jost', sans-serif; }
  .ai-art-films { margin-top: clamp(2rem, 4vw, 4rem); row-gap: 2.5rem; }
  .film-preview, .film-frame {
    display: block; width: 100%; aspect-ratio: 16 / 9;
    background: #111; border: 0;
  }
  .film-preview { position: relative; color: white; }
  .film-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
  .film-preview span {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    display: grid; place-items: center; width: 3.4rem; height: 2.4rem;
    background: rgba(15,15,15,.87); border-radius: .5rem; font: 1.2rem sans-serif;
  }
  .film-preview:hover span, .film-preview:focus-visible span { background: #aa1919; }
  .film-title { color: inherit; font-size: 1.25rem; text-underline-offset: .18em; }
  .ai-art-films figcaption p { margin-top: .3rem; }
  .ai-art-site:hover span, .ai-art-site:focus-visible span { text-decoration: underline; text-underline-offset: .2em; }
  @media (max-width: 700px) {
    .ai-art-sites, .ai-art-films { grid-template-columns: 1fr; }
    .ai-art-cover { padding-top: 5rem; }
    .ai-art-cover video { height: auto; aspect-ratio: 854 / 480; }
    .ai-art-cover-content, .ai-art-playback { bottom: 1rem; }
    .ai-art-cover h1 { font-size: 2.7rem; margin-bottom: .2rem; }
    .ai-art-page #projects { scroll-margin-top: 5.5rem; }
  }
  @media (max-width: 380px) {
    nav { column-gap: .3rem; padding-inline: .6rem; }
    nav a.nav-link { letter-spacing: .025em; }
  }

  .portfolio-notes { min-width: 0; scroll-margin-top: 6rem; }
  .portfolio-notes h2 {
    margin: .75rem 0 .3rem;
    font: 300 1.25rem/1.5 'Portfolio Jost', 'Jost', sans-serif;
  }
  .portfolio-notes p { font: 300 1.05rem/1.5 'Portfolio Jost', 'Jost', sans-serif; }

  .movetouch-films { margin-bottom: 2rem; }
  .movetouch-films figure { min-width: 0; margin: 0; }
  .movetouch-films figcaption { padding-top: .75rem; font: 300 1.1rem/1.5 'Jost', sans-serif; color: var(--cream); }
