:root {
  --paper: #f3eee4;
  --paper-soft: #ede6d7;
  --ink: #22231f;
  --muted: #6f7168;
  --shore: #556f4a;
  --sun: #dccf5a;
  --wet-sand: #7ab7a7;
  --deep-water: #203a3f;
  --fish-soft: #e0a37a;
  --shell: #8a6b4b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Times New Roman", Georgia, serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: multiply;
  background:
    radial-gradient(circle at 20% 30%, rgba(138, 107, 75, 0.10), transparent 32rem),
    linear-gradient(90deg, rgba(32, 58, 63, 0.05) 1px, transparent 1px);
  background-size: auto, 92px 92px;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 122px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  background: rgba(243, 238, 228, 0.96);
  border-bottom: 1px solid rgba(34, 35, 31, 0.12);
  overflow: visible;
}

.site-header > a {
  z-index: 2;
}

.menu-trigger {
  display: inline-flex;
  width: 48px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.menu-trigger span {
  display: block;
  width: 32px;
  height: 2px;
  background: rgba(34, 35, 31, 0.72);
  transition: transform 220ms ease, background 220ms ease;
}

.menu-trigger:hover span,
.menu-trigger:focus-visible span {
  background: var(--shore);
}

.menu-trigger:hover span:first-child,
.menu-trigger:focus-visible span:first-child {
  transform: translateX(7px);
}

.menu-trigger:hover span:nth-child(2),
.menu-trigger:focus-visible span:nth-child(2) {
  transform: translateX(-3px);
}

.logo-label {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: clamp(260px, 28vw, 390px);
  height: auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  text-decoration: none;
  transform: translate(-50%, -50%);
}

.logo-art {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
}

.logo-tail-eraser {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.logo-tail-eraser path {
  fill: none;
  stroke: var(--paper);
  stroke-width: 42;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-reel-stage {
  position: absolute;
  left: 26.7%;
  top: 37.2%;
  width: 19.8%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  z-index: 5;
  background: var(--paper);
  transform: translate(-50%, -50%);
}

.logo-reel-stage img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: colibri-reel-turn 18s linear infinite;
}

.header-film-tail {
  position: absolute;
  z-index: 4;
  left: 32.2%;
  top: 43%;
  width: min(105vw, 1120px);
  height: 110%;
  overflow: visible;
  pointer-events: none;
}

.continuous-film-strip path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.continuous-film-base {
  stroke: rgba(177, 52, 45, 0.84);
  stroke-width: 9;
}

.continuous-film-inner {
  stroke: var(--paper);
  stroke-width: 5.6;
}

.continuous-film-frames {
  stroke: rgba(177, 52, 45, 0.78);
  stroke-width: 2.3;
  stroke-dasharray: 0.012 0.018;
  stroke-linecap: butt;
  animation: continuous-frames-travel 9s linear infinite;
}

@keyframes colibri-reel-turn {
  to { transform: rotate(360deg); }
}

@keyframes continuous-frames-travel {
  to { stroke-dashoffset: -0.3; }
}

.mail-link {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  text-decoration: none;
}

.mail-link svg {
  width: 30px;
  height: 23px;
  fill: none;
  stroke: rgba(34, 35, 31, 0.82);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 180ms ease, transform 180ms ease;
}

.mail-link:hover svg,
.mail-link:focus-visible svg {
  stroke: var(--shore);
  transform: translateY(-2px);
}

.opening-film {
  position: relative;
  min-height: calc(100vh - 122px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(251, 246, 231, 0.98), rgba(243, 238, 228, 0.96)),
    var(--paper);
}

.opening-film::before {
  content: "";
  position: absolute;
  inset: clamp(16px, 2.5vw, 42px);
  border: 1px solid rgba(138, 107, 75, 0.18);
  background:
    radial-gradient(ellipse at 51% 52%, rgba(255, 255, 255, 0.88) 0 36%, rgba(251, 246, 231, 0.82) 56%, rgba(224, 163, 122, 0.18) 72%, transparent 78%),
    linear-gradient(135deg, rgba(220, 207, 90, 0.13), rgba(122, 183, 167, 0.11));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 0 80px rgba(138, 107, 75, 0.12);
  opacity: 0.92;
}

.cinematic-opening {
  min-height: auto;
  background: var(--paper);
}

.cinematic-opening::before {
  display: none;
}

.cinematic-piece {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #efe7d7;
}

.opening-piece-water {
  height: 78vh;
}

.opening-piece-boat {
  height: 940px;
}

.opening-piece-shell {
  height: 78vh;
  min-height: 560px;
}

.cinematic-piece img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.98) contrast(1.02) brightness(0.96);
  transform-origin: center;
  will-change: transform;
}

.opening-piece-water img {
  object-position: 50% 52%;
  animation: colibri-living-still-a 13s ease-in-out infinite alternate;
}

.opening-piece-boat img {
  object-position: 50% 50%;
  animation: colibri-living-still-b 14s ease-in-out infinite alternate;
}

.opening-piece-shell img {
  object-position: 50% 44%;
  animation: colibri-living-still-c 15s ease-in-out infinite alternate;
}

.cinematic-piece::before,
.cinematic-piece::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.cinematic-piece::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(220, 207, 90, 0.18), transparent 38%),
    radial-gradient(circle at 86% 72%, rgba(224, 163, 122, 0.18), transparent 44%),
    linear-gradient(90deg, rgba(247, 241, 228, 0.08), transparent 18%, transparent 76%, rgba(32, 58, 63, 0.12));
  mix-blend-mode: soft-light;
}

.cinematic-piece::after {
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.4px),
    radial-gradient(circle at 78% 75%, rgba(70, 50, 40, 0.7) 0 1px, transparent 1.5px);
  background-size: 19px 19px, 27px 27px;
  animation: colibri-grain 0.7s steps(2) infinite;
}

.cinematic-piece span {
  position: absolute;
  z-index: 4;
  left: clamp(22px, 3vw, 54px);
  bottom: clamp(18px, 3vw, 42px);
  max-width: 340px;
  color: rgba(247, 241, 228, 0.86);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 0.26em;
  line-height: 1.8;
  text-transform: uppercase;
  text-shadow: 0 1px 18px rgba(36, 58, 63, 0.34);
}

@keyframes colibri-living-still-a {
  from {
    transform: scale(1.01) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.16) translate3d(0, -2.2%, 0);
  }
}

@keyframes colibri-living-still-b {
  from {
    transform: scale(1.02) translate3d(-1.2%, 0.8%, 0);
  }

  to {
    transform: scale(1.16) translate3d(1.8%, -1.8%, 0);
  }
}

@keyframes colibri-living-still-c {
  from {
    transform: scale(1.02) translate3d(-0.8%, 1.2%, 0);
  }

  to {
    transform: scale(1.17) translate3d(1.1%, -2.2%, 0);
  }
}

@keyframes colibri-grain {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(9px, -7px);
  }
}

.film-flower {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: saturate(0.96) contrast(0.98);
}

.projected-garden {
  transform-origin: 600px 380px;
  animation: garden-hold 10s ease-in-out infinite;
}

.spiral-wrap {
  transform-origin: 600px 380px;
  animation: flower-breathe 14s ease-in-out infinite;
}

.projector-haze {
  fill: rgba(220, 207, 90, 0.2);
  filter: blur(28px);
  transform-origin: 600px 380px;
  animation: projector-pulse 5.8s ease-in-out infinite;
}

.film-petal {
  transform-origin: 600px 380px;
}

.petal-one { animation: petal-drift-one 10s ease-in-out infinite; }
.petal-two { animation: petal-drift-two 10.8s ease-in-out infinite -1.2s; }
.petal-three { animation: petal-drift-three 11.4s ease-in-out infinite -2.1s; }
.petal-four { animation: petal-drift-four 10.6s ease-in-out infinite -3s; }

.ribbon,
.perfs,
.frames,
.flower-lines path,
.flower-lines circle {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ribbon {
  stroke: #a93a14;
  stroke-width: 44;
  opacity: 0.82;
  filter: drop-shadow(0 16px 18px rgba(138, 107, 75, 0.2));
}

.perfs {
  stroke: rgba(251, 246, 231, 0.94);
  stroke-width: 52;
  stroke-dasharray: 2 21;
  stroke-dashoffset: 0;
  opacity: 0.72;
  animation: perforations-travel 3.6s linear infinite;
}

.frames {
  stroke: rgba(220, 207, 90, 0.78);
  stroke-width: 26;
  stroke-dasharray: 30 26;
  stroke-dashoffset: 0;
  opacity: 0.9;
  mix-blend-mode: screen;
  animation: frames-travel 5.2s linear infinite;
}

.film-core circle {
  fill: rgba(255, 204, 191, 0.3);
  stroke: rgba(85, 111, 74, 0.42);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  animation: core-glow 5.8s ease-in-out infinite;
}

.flower-lines {
  opacity: 0.88;
  transform-origin: 600px 390px;
  animation: trace-flower 8s ease-in-out infinite;
}

.flower-lines path,
.flower-lines circle {
  stroke: rgba(85, 111, 74, 0.64);
  stroke-width: 2.2;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  vector-effect: non-scaling-stroke;
  animation: trace-draw 5.6s ease-in-out infinite;
}

.film-gate {
  transform-origin: 600px 380px;
  transform: scale(1.55) rotate(0deg);
  opacity: 1;
}

.film-edge {
  fill: rgba(236, 55, 51, 0.035);
  stroke: rgba(169, 58, 20, 0.08);
  stroke-width: 1.1;
}

.sprockets rect {
  fill: rgba(251, 246, 231, 0.12);
  stroke: rgba(153, 42, 20, 0.04);
  stroke-width: 0.6;
}

.film-frame {
  fill: rgba(251, 246, 231, 0.035);
  stroke: rgba(220, 207, 90, 0.06);
  stroke-width: 1.6;
}

.film-scroll {
  transform-origin: 600px 380px;
  animation: none;
}

.nature-line,
.projector-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.nature-line {
  stroke: #173fc0;
  stroke-width: 1.35;
}

.blue-flower {
  transform-origin: 610px 422px;
  mix-blend-mode: multiply;
  transform: scale(1.18);
  animation: abstract-drift 12s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.hand-line {
  fill: none;
  stroke-dasharray: 920;
  stroke-dashoffset: 920;
  animation: abstract-line-draw 11.5s cubic-bezier(0.55, 0.02, 0.24, 1) infinite;
}

.main-gesture {
  stroke-width: 1.7;
}

.petal-fragment {
  stroke-width: 1.35;
  animation-delay: 0.35s;
}

.frag-a { animation-delay: 0.45s; }
.frag-b { animation-delay: 0.8s; }
.frag-c { animation-delay: 1.25s; }
.frag-d { animation-delay: 1.55s; }

.small-study {
  stroke-width: 1.25;
  opacity: 0.78;
  animation-duration: 10.5s;
}

.study-a { animation-delay: 2.35s; }
.study-b { animation-delay: 2.75s; }

.motion-echo {
  stroke: rgba(25, 63, 187, 0.34);
  stroke-width: 0.78;
  stroke-dasharray: 5 13;
  opacity: 0;
  animation: echo-slip 8.5s ease-in-out infinite;
}

.echo-a { animation-delay: 0.9s; }
.echo-b { animation-delay: 1.7s; }
.echo-c { animation-delay: 2.4s; }

.nature-dot {
  fill: #193fbb;
  stroke: none;
  opacity: 0;
  animation: dot-flicker 9s ease-in-out infinite;
}

.dot-a { animation-delay: 1.2s; }
.dot-b { animation-delay: 2.1s; }
.dot-c { animation-delay: 3s; }
.dot-d { animation-delay: 3.65s; }

.projector-line {
  stroke: rgba(39, 61, 53, 0.16);
  stroke-width: 1.2;
  stroke-dasharray: 8 12;
  animation: projector-line-drift 6s ease-in-out infinite;
}

.red-bloom {
  transform-origin: 610px 430px;
  animation: red-bloom-drift 12s ease-in-out infinite;
}

.bloom-stem {
  fill: none;
  stroke: rgba(17, 18, 16, 0.92);
  stroke-width: 18;
  stroke-linecap: round;
  stroke-dasharray: 18 10;
  vector-effect: non-scaling-stroke;
  animation: stem-rise 8s ease-in-out infinite;
}

.stem-mark {
  fill: none;
  stroke: rgba(236, 55, 51, 0.92);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.82;
}

.bloom-petals {
  transform-origin: 606px 398px;
  animation: petal-gather 9.5s ease-in-out infinite;
}

.red-petal {
  fill: #e92f32;
  stroke: rgba(251, 246, 231, 0.96);
  stroke-width: 7.2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 10px 4px rgba(138, 107, 75, 0.05));
  transform-origin: 606px 398px;
  animation: petal-form 9.5s ease-in-out infinite;
}

.petal-left-back { animation-delay: 0.05s; }
.petal-right-back { animation-delay: 0.22s; }
.petal-top-left { animation-delay: 0.42s; }
.petal-top-right { animation-delay: 0.62s; }
.petal-center-back { animation-delay: 0.82s; }
.petal-left-front { animation-delay: 1s; }
.petal-right-front { animation-delay: 1.16s; }
.petal-front { animation-delay: 1.34s; }
.petal-heart { animation-delay: 1.52s; }

.bloom-veins {
  fill: none;
  stroke: rgba(251, 246, 231, 0.92);
  stroke-width: 3.1;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.bloom-veins path {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: vein-draw 9.5s ease-in-out infinite;
}

.bloom-veins path:nth-child(2n) { animation-delay: 0.35s; }
.bloom-veins path:nth-child(3n) { animation-delay: 0.7s; }

.bloom-creature {
  fill: rgba(16, 17, 15, 0.92);
  stroke: rgba(251, 246, 231, 0.84);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  opacity: 0.9;
  animation: creature-peek 9.5s ease-in-out infinite;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ida-menu {
  position: relative;
  min-height: 100vh;
  background: var(--paper);
}

.ida-menu nav {
  position: absolute;
  inset: 0;
}

.menu-object {
  position: absolute;
  display: flex;
  width: 300px;
  height: 258px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 44px;
  text-align: center;
  text-decoration: none;
}

.menu-object svg {
  width: 174px;
  height: 174px;
  overflow: visible;
  filter: drop-shadow(0 14px 14px rgba(85, 78, 60, 0.08));
  transition: transform 650ms ease, filter 650ms ease;
}

.menu-object svg * {
  fill: none;
  stroke: rgba(61, 58, 49, 0.64);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.menu-object .object-base {
  fill: rgba(235, 225, 202, 0.62);
  stroke: rgba(103, 91, 70, 0.42);
  opacity: 0.72;
  transition: opacity 300ms ease, fill 300ms ease, stroke 300ms ease;
}

.menu-object .object-tint {
  fill: var(--object-color);
  stroke: transparent;
  opacity: 0;
  transition: opacity 300ms ease;
}

.menu-object strong {
  color: rgba(34, 35, 31, 0.84);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  transform: translateX(0.2em);
}

.menu-object:hover .object-tint,
.menu-object:focus-visible .object-tint {
  opacity: 0.74;
}

.menu-object:hover .object-base,
.menu-object:focus-visible .object-base {
  fill: #efe1bd;
  stroke: rgba(61, 58, 49, 0.24);
  opacity: 0.34;
}

.menu-object:hover svg,
.menu-object:focus-visible svg {
  filter: drop-shadow(0 26px 24px rgba(85, 78, 60, 0.15));
  transform: translateY(-9px) rotate(-1.2deg) scale(1.04);
}

.menu-object:focus-visible {
  outline: 1px solid rgba(32, 58, 63, 0.45);
  outline-offset: 18px;
}

.menu-films { left: 18.6vw; top: 25.6vh; }
.menu-about { right: 17.8vw; top: 25.4vh; }
.menu-contact { left: 18vw; bottom: 11.8vh; }
.menu-process { right: 17.9vw; bottom: 11.9vh; }

.section-page {
  min-height: 100vh;
  padding: 136px clamp(42px, 8vw, 140px);
  background: var(--paper);
  border-top: 1px solid rgba(34, 35, 31, 0.12);
}

.section-label {
  margin: 0 0 42px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.project-list {
  display: grid;
  gap: 28px;
  max-width: 980px;
}

.project-list a,
.section-page h1 {
  font-size: clamp(54px, 8vw, 138px);
  font-weight: 400;
  line-height: 0.9;
  text-decoration: none;
}

.project-list a:hover {
  color: var(--shore);
}

.project-onepager {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 122px clamp(18px, 3vw, 54px) 54px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 24%),
    var(--paper);
  border-top: 1px solid rgba(34, 35, 31, 0.12);
}

.project-frame {
  position: relative;
  width: min(1800px, 100%);
  min-height: min(740px, calc(100vh - 180px));
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-items: center;
  padding: clamp(30px, 4vw, 68px) clamp(28px, 4vw, 74px) clamp(34px, 4vw, 66px);
  background:
    linear-gradient(90deg, rgba(220, 207, 90, 0.08), transparent 18% 82%, rgba(224, 163, 122, 0.07)),
    rgba(251, 248, 239, 0.78);
  border: 1px solid rgba(86, 76, 55, 0.34);
  box-shadow:
    inset 0 0 0 10px rgba(243, 238, 228, 0.82),
    inset 0 0 0 11px rgba(86, 76, 55, 0.18);
}

.project-frame::before,
.project-frame::after {
  content: "";
  position: absolute;
  inset: 22px;
  pointer-events: none;
}

.project-frame::before {
  border: 1px solid rgba(86, 76, 55, 0.22);
}

.project-frame::after {
  inset: 34px;
  border-top: 1px solid rgba(122, 183, 167, 0.2);
  border-bottom: 1px solid rgba(224, 163, 122, 0.2);
}

.project-frame .section-label {
  margin: 0 0 16px;
  text-align: center;
}

.project-frame h1 {
  margin: 0 0 clamp(18px, 2.2vw, 28px);
  color: #b3201f;
  font-size: clamp(42px, 5.4vw, 88px);
  font-style: italic;
  font-weight: 600;
  line-height: 0.9;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.project-note {
  max-width: 850px;
  margin: 0 auto clamp(28px, 3.2vw, 46px);
  color: rgba(34, 35, 31, 0.72);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
}

.project-note p {
  margin: 0;
}

.project-note .project-meta {
  margin-bottom: 10px;
  color: rgba(34, 35, 31, 0.54);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.moving-triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  align-self: stretch;
  min-height: 360px;
}

.image-window {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  background-color: var(--paper-soft);
  background-position: var(--image-position, center center);
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid rgba(86, 76, 55, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.image-window::before,
.image-window::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: var(--image-position, center center);
  background-repeat: no-repeat;
  background-size: cover;
  animation: image-pass 12s steps(1, end) infinite;
}

.image-window::before {
  animation-delay: 4s;
}

.image-window::after {
  animation-delay: 8s;
}

.prudencia-page {
  --img-a1: url("./assets/projects/prudencia/new-stills/prudencia-kitchen-preparation.jpeg");
  --img-a2: url("./assets/projects/prudencia/new-stills/prudencia-coffee-harvest.jpeg");
  --img-a3: url("./assets/projects/prudencia/new-stills/prudencia-mountain-landscape.jpeg");
  --img-b1: url("./assets/projects/prudencia/new-stills/prudencia-cooking-through-gap.jpeg");
  --img-b2: url("./assets/projects/prudencia/new-stills/prudencia-coffee-cupping.jpeg");
  --img-b3: url("./assets/projects/prudencia/new-stills/prudencia-research-table.jpeg");
  --img-c1: url("./assets/projects/prudencia/new-stills/prudencia-fire-cooking.jpeg");
  --img-c2: url("./assets/projects/prudencia/new-stills/prudencia-coffee-cherries.jpeg");
  --img-c3: url("./assets/projects/prudencia/new-stills/prudencia-altar.jpeg");
  --pos-a1: 46% center;
  --pos-a2: 44% center;
  --pos-a3: center center;
  --pos-b1: 54% center;
  --pos-b2: 38% center;
  --pos-b3: 45% center;
  --pos-c1: 52% center;
  --pos-c2: center center;
  --pos-c3: center center;
}

.contra-page {
  --img-a1: url("./assets/projects/contra-la-marea/contra-refuge-house.jpeg");
  --img-a2: url("./assets/projects/contra-la-marea/contra-richard-sea-lion.jpeg");
  --img-a3: url("./assets/projects/contra-la-marea/contra-penguin-walking.jpeg");
  --img-b1: url("./assets/projects/contra-la-marea/contra-penguin-worktable.jpeg");
  --img-b2: url("./assets/projects/contra-la-marea/contra-sea-lion-rest.jpeg");
  --img-b3: url("./assets/projects/contra-la-marea/contra-coastline.jpeg");
  --img-c1: url("./assets/projects/contra-la-marea/contra-sea-lion-close.jpeg");
  --img-c2: url("./assets/projects/contra-la-marea/contra-penguin-walking.jpeg");
  --img-c3: url("./assets/projects/contra-la-marea/contra-richard-sea-lion.jpeg");
}

.jose-page {
  --img-a1: url("./assets/projects/jose-ignacio/jose-ignacio-estancia-reflection.png");
  --img-a2: url("./assets/projects/jose-ignacio/jose-ignacio-polo-field.png");
  --img-a3: url("./assets/projects/jose-ignacio/jose-ignacio-field-sky.png");
  --img-b1: url("./assets/projects/jose-ignacio/jose-ignacio-woman-closeup.png");
  --img-b2: url("./assets/projects/jose-ignacio/jose-ignacio-candle-dinner.png");
  --img-b3: url("./assets/projects/jose-ignacio/jose-ignacio-polo-field.png");
  --img-c1: url("./assets/projects/jose-ignacio/jose-ignacio-fire-gathering.png");
  --img-c2: url("./assets/projects/jose-ignacio/jose-ignacio-yellow-plane.png");
  --img-c3: url("./assets/projects/jose-ignacio/jose-ignacio-field-sky.png");
}

.slot-one {
  background-image: var(--img-a1);
  background-position: var(--pos-a1, center center);
}

.slot-two {
  background-image: var(--img-b1);
  background-position: var(--pos-b1, center center);
}

.slot-three {
  background-image: var(--img-c1);
  background-position: var(--pos-c1, center center);
}

.slot-one::before {
  background-image: var(--img-a2);
  background-position: var(--pos-a2, center center);
}

.slot-one::after {
  background-image: var(--img-a3);
  background-position: var(--pos-a3, center center);
}

.slot-two::before {
  background-image: var(--img-b2);
  background-position: var(--pos-b2, center center);
}

.slot-two::after {
  background-image: var(--img-b3);
  background-position: var(--pos-b3, center center);
}

.slot-three::before {
  background-image: var(--img-c2);
  background-position: var(--pos-c2, center center);
}

.slot-three::after {
  background-image: var(--img-c3);
  background-position: var(--pos-c3, center center);
}

.image-window:hover {
  filter: saturate(1.06);
}

.about-page {
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(0, 760px);
  gap: clamp(52px, 8vw, 140px);
  align-items: center;
  background:
    radial-gradient(circle at 18% 24%, rgba(220, 207, 90, 0.11), transparent 30rem),
    radial-gradient(circle at 86% 78%, rgba(122, 183, 167, 0.12), transparent 34rem),
    var(--paper);
}

.about-page figure {
  position: relative;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(86, 76, 55, 0.22);
  background: rgba(251, 248, 239, 0.62);
}

.about-page figure::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(179, 32, 31, 0.16);
  pointer-events: none;
}

.about-page img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(0.95) brightness(0.98);
}

.about-page h1 {
  max-width: 690px;
  margin: 0 0 38px;
  color: #b3201f;
  font-size: clamp(46px, 6vw, 92px);
  font-style: italic;
  line-height: 0.92;
}

.about-page p:not(.section-label) {
  max-width: 660px;
  margin: 0 0 16px;
  color: rgba(34, 35, 31, 0.68);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.68;
}

.about-page .section-label {
  margin-bottom: 22px;
  color: rgba(34, 35, 31, 0.58);
}

.contact-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-details {
  display: grid;
  gap: clamp(20px, 3vw, 38px);
}

.contact-details a {
  width: fit-content;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 112px);
  font-weight: 400;
  line-height: 0.95;
  text-decoration: none;
  transition: color 180ms ease;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: #b3201f;
}

/* Email: rosy red on hover / tap */
.contact-details a[href^="mailto:"]:hover,
.contact-details a[href^="mailto:"]:focus-visible,
.contact-details a[href^="mailto:"]:active {
  color: #d9536b;
}

@keyframes flower-breathe {
  0%, 100% { transform: rotate(-1deg) scale(0.985); }
  44% { transform: rotate(2.4deg) scale(1.025); }
  72% { transform: rotate(0.8deg) scale(1.01); }
}

@keyframes projector-pulse {
  0%, 100% { transform: scale(0.78); opacity: 0.38; }
  42% { transform: scale(1.24); opacity: 0.68; }
  68% { transform: scale(0.96); opacity: 0.52; }
}

@keyframes petal-drift-one {
  0%, 100% { transform: rotate(-1.8deg) translate(-4px, -10px) scale(1.01); }
  50% { transform: rotate(1.8deg) translate(4px, 8px) scale(0.985); }
}

@keyframes petal-drift-two {
  0%, 100% { transform: rotate(1.4deg) translate(8px, -4px) scale(0.99); }
  50% { transform: rotate(-1.8deg) translate(-7px, 5px) scale(1.015); }
}

@keyframes petal-drift-three {
  0%, 100% { transform: rotate(-1.2deg) translate(5px, 9px) scale(1); }
  50% { transform: rotate(2deg) translate(-5px, -7px) scale(1.02); }
}

@keyframes petal-drift-four {
  0%, 100% { transform: rotate(1.6deg) translate(-8px, 5px) scale(1.01); }
  50% { transform: rotate(-1.4deg) translate(7px, -5px) scale(0.99); }
}

@keyframes perforations-travel {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -54; }
}

@keyframes frames-travel {
  0% { stroke-dashoffset: 0; opacity: 0.7; }
  28% { opacity: 1; }
  100% { stroke-dashoffset: 136; opacity: 0.82; }
}

@keyframes trace-flower {
  0%, 100% { transform: rotate(-4deg) scale(0.96); }
  50% { transform: rotate(5deg) scale(1.08); }
}

@keyframes trace-draw {
  0% { stroke-dashoffset: 180; opacity: 0; }
  26%, 66% { stroke-dashoffset: 0; opacity: 0.95; }
  100% { stroke-dashoffset: -180; opacity: 0; }
}

@keyframes core-glow {
  0%, 100% { opacity: 0.56; }
  50% { opacity: 0.96; }
}

@keyframes garden-hold {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.018); }
}

@keyframes film-feed {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-22px); }
  72% { transform: translateY(-14px); }
}

@keyframes projector-line-drift {
  0%, 100% { stroke-dashoffset: 0; opacity: 0.22; }
  50% { stroke-dashoffset: -40; opacity: 0.44; }
}

@keyframes hand-line-draw {
  0% { stroke-dashoffset: 760; opacity: 0; }
  12% { opacity: 0.9; }
  42%, 72% { stroke-dashoffset: 0; opacity: 0.92; }
  86% { opacity: 0.42; }
  100% { stroke-dashoffset: -760; opacity: 0; }
}

@keyframes hand-drift {
  0%, 100% { transform: rotate(-0.7deg) translate(-2px, 4px) scale(0.985); }
  38% { transform: rotate(1.1deg) translate(3px, -5px) scale(1.015); }
  67% { transform: rotate(0.2deg) translate(1px, -1px) scale(1); }
}

@keyframes abstract-line-draw {
  0% { stroke-dashoffset: 920; opacity: 0; }
  10% { opacity: 0.34; }
  24% { stroke-dashoffset: 360; opacity: 0.92; }
  46%, 64% { stroke-dashoffset: 0; opacity: 0.86; }
  76% { stroke-dashoffset: -180; opacity: 0.5; }
  100% { stroke-dashoffset: -920; opacity: 0; }
}

@keyframes abstract-drift {
  0%, 100% { transform: translate(-7px, 8px) rotate(-1.4deg) scale(1.12); }
  28% { transform: translate(6px, -8px) rotate(1.9deg) scale(1.17); }
  54% { transform: translate(0, -2px) rotate(-0.2deg) scale(1.15); }
  78% { transform: translate(8px, 4px) rotate(0.8deg) scale(1.13); }
}

@keyframes echo-slip {
  0%, 18% { opacity: 0; stroke-dashoffset: 80; transform: translate(-9px, 7px); }
  34% { opacity: 0.48; }
  58% { opacity: 0.28; stroke-dashoffset: -20; transform: translate(5px, -3px); }
  100% { opacity: 0; stroke-dashoffset: -90; transform: translate(13px, -8px); }
}

@keyframes dot-flicker {
  0%, 28%, 100% { opacity: 0; transform: scale(0.55); }
  38%, 54% { opacity: 0.72; transform: scale(1); }
  67% { opacity: 0.18; transform: scale(0.78); }
}

@keyframes red-bloom-drift {
  0%, 100% { transform: translate(-4px, 16px) rotate(-0.25deg) scale(1.24); }
  36% { transform: translate(4px, 4px) rotate(0.35deg) scale(1.255); }
  68% { transform: translate(1px, 10px) rotate(-0.1deg) scale(1.245); }
}

@keyframes stem-rise {
  0% { stroke-dashoffset: 90; opacity: 0.1; }
  20%, 70% { stroke-dashoffset: 0; opacity: 0.96; }
  100% { stroke-dashoffset: -42; opacity: 0.78; }
}

@keyframes petal-gather {
  0% { transform: translateY(14px) scale(0.94); }
  26%, 72% { transform: translateY(0) scale(1); }
  100% { transform: translateY(6px) scale(0.982); }
}

@keyframes petal-form {
  0% { opacity: 0; transform: rotate(-3deg) translateY(14px) scale(0.9); }
  20% { opacity: 0.95; }
  42%, 74% { opacity: 1; transform: rotate(0deg) translateY(0) scale(1); }
  100% { opacity: 0.9; transform: rotate(0.8deg) translateY(4px) scale(0.99); }
}

@keyframes vein-draw {
  0%, 18% { stroke-dashoffset: 180; opacity: 0; }
  35%, 72% { stroke-dashoffset: 0; opacity: 0.92; }
  100% { stroke-dashoffset: -180; opacity: 0.2; }
}

@keyframes creature-peek {
  0%, 26%, 100% { opacity: 0; transform: translateY(16px) scale(0.8); }
  42%, 68% { opacity: 0.88; transform: translateY(0) scale(1); }
}

@keyframes image-pass {
  0%, 32% { opacity: 1; }
  33%, 100% { opacity: 0; }
}

@media (max-width: 820px) {
  .site-header {
    height: 96px;
    padding: 0 20px;
  }

  .menu-trigger {
    width: 44px;
    height: 32px;
    gap: 7px;
  }

  .menu-trigger span {
    width: 36px;
  }

  .logo-label {
    width: min(58vw, 290px);
  }

  .mail-link {
    width: 28px;
  }

  .mail-link svg {
    width: 25px;
    height: 19px;
  }

  .header-film-tail {
    opacity: 1;
    width: 118vw;
  }

  .opening-film {
    min-height: calc(100vh - 96px);
  }

  .cinematic-opening {
    min-height: auto;
  }

  .opening-piece-water {
    height: 86vh;
  }

  .opening-piece-boat {
    height: 770px;
  }

  .opening-piece-shell {
    height: 78vh;
    min-height: 520px;
  }

  .cinematic-piece span {
    opacity: 1;
  }

  .film-flower {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .ida-menu {
    min-height: 940px;
  }

  .menu-object {
    width: 188px;
    height: 204px;
    gap: 30px;
  }

  .menu-object svg {
    width: 126px;
    height: 126px;
  }

  .menu-object strong {
    font-size: 16px;
  }

  .menu-films { left: 5vw; top: 18vh; }
  .menu-about { right: 5vw; top: 18vh; }
  .menu-contact { left: 5vw; bottom: 14vh; }
  .menu-process { right: 5vw; bottom: 14vh; }

  /* Mobile: 4 icons in a compact 2x2 grid, centred */
  .ida-menu {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ida-menu nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 8px;
    width: 100%;
    max-width: 420px;
    padding: 0 16px;
  }

  .ida-menu .menu-object {
    position: static;
    width: auto;
    height: auto;
    gap: 22px;
  }

  .about-page {
    grid-template-columns: 1fr;
  }

  .about-page figure {
    max-width: 320px;
  }

  .project-onepager {
    padding: 96px 14px 28px;
  }

  .project-frame {
    min-height: auto;
    padding: 34px 22px 30px;
    box-shadow:
      inset 0 0 0 6px rgba(243, 238, 228, 0.82),
      inset 0 0 0 7px rgba(86, 76, 55, 0.18);
  }

  .project-frame::before {
    inset: 14px;
  }

  .project-frame::after {
    inset: 22px;
  }

  .project-frame h1 {
    margin-bottom: 28px;
  }

  .moving-triptych {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 14px;
  }

  .image-window {
    min-height: 220px;
  }

  .contact-details a {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-reel-stage img,
  .continuous-film-frames {
    animation: none;
  }
}


/* Project credits and labs — quiet festival-credit line, same type system as .project-meta */
.project-note .project-credit {
  margin-top: 16px;
  color: rgba(34, 35, 31, 0.54);
  font-family: "Times New Roman", Georgia, serif;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.02em;
}

.project-laurels {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 18px auto 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px solid rgba(86, 76, 55, 0.18);
  max-width: 640px;
}

.project-laurels li {
  padding: 0 18px;
  color: rgba(34, 35, 31, 0.62);
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.project-laurels span {
  margin-right: 10px;
  color: rgba(169, 58, 20, 0.78);
}

@media (max-width: 820px) {
  .project-laurels {
    flex-direction: column;
    align-items: center;
  }

  .project-laurels li {
    padding: 0 6px;
    font-size: 10px;
  }

  .project-laurels li + li {
    border-left: 0;
  }

  .project-laurels span {
    display: block;
    margin: 0 0 1px;
  }
}

/* Herbario en película — third opening panel */
.opening-piece-herbarium {
  height: 78vh;
  min-height: 560px;
  background: var(--paper);
}

.herbarium-stage {
  position: absolute;
  inset: -6% 5%;
  display: flex;
  justify-content: center;
  gap: clamp(5px, 0.9vw, 14px);
  animation: herbarium-flicker 7s steps(1, end) infinite;
}

.herbarium-strip {
  position: relative;
  flex: 1 1 0;
  max-width: 190px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(86, 76, 55, 0.08),
    0 10px 26px rgba(79, 58, 39, 0.10);
}

.herbarium-strip:nth-child(odd) { transform: translateY(-2.5%) rotate(-0.35deg); }
.herbarium-strip:nth-child(even) { transform: translateY(3%) rotate(0.3deg); }

.herbarium-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
  animation: herbarium-drift 90s linear infinite;
}

.herbarium-tile {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 10;
}

.strip-0 .herbarium-track { animation-duration: 96s; animation-delay: -12s; }
.strip-1 .herbarium-track { animation-duration: 120s; animation-direction: reverse; animation-delay: -40s; }
.strip-2 .herbarium-track { animation-duration: 84s; animation-delay: -25s; }
.strip-3 .herbarium-track { animation-duration: 132s; animation-direction: reverse; animation-delay: -70s; }
.strip-4 .herbarium-track { animation-duration: 102s; animation-delay: -5s; }
.strip-5 .herbarium-track { animation-duration: 116s; animation-direction: reverse; animation-delay: -55s; }
.strip-6 .herbarium-track { animation-duration: 90s; animation-delay: -33s; }

@keyframes herbarium-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes herbarium-flicker {
  0%, 100% { opacity: 1; }
  41% { opacity: 0.965; }
  42% { opacity: 1; }
  73% { opacity: 0.975; }
  74% { opacity: 1; }
}

@media (max-width: 820px) {
  .opening-piece-herbarium {
    height: 78vh;
    min-height: 520px;
  }

  .herbarium-stage {
    inset: -6% 4%;
  }

  .herbarium-strip:nth-child(n + 5) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .herbarium-track,
  .herbarium-stage {
    animation: none;
  }
}

/* Hand-drawn lowercase logo (2026-10-26) */
.logo-label.hand-logo {
  width: clamp(220px, 22vw, 300px);
}
.hand-logo-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.hand-logo-tag {
  padding: 10px 18px 8px;
  background: #d8574a;
  box-shadow: 0 1px 0 rgba(34, 35, 31, 0.08);
}
.hand-logo .reel-spin {
  animation: hand-reel-spin 16s linear infinite;
  transform-box: view-box;
}
@keyframes hand-reel-spin { to { transform: rotate(360deg); } }
@media (max-width: 820px) {
  .logo-label.hand-logo { width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .hand-logo .reel-spin { animation: none; }
}
