@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=IBM+Plex+Mono:wght@400;700&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --background: #f5f5f5;
  --foreground: #1a1a1a;
  --primary: #df4f86;
  --primary-foreground: #ffffff;
  --muted: #e4e4e4;
  --muted-foreground: #545454;
  --border: rgba(0, 0, 0, 0.25);
  --container: 80rem;
  --page-pad: clamp(1.5rem, 3.5vw, 3rem);
  --section-space: clamp(5rem, 9vw, 8rem);
  --font-display: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-label: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scrollbar-width: none;
  font-size: 16px;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.lightbox-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
figure,
ul {
  margin: 0;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--foreground);
  color: #fff;
  padding: 0.75rem 1rem;
  font-family: var(--font-label);
  font-size: 0.75rem;
}

.skip-link:focus {
  top: 1rem;
}

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

.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("images/Dise_o_sin_t_tulo.3c846bbd.png") center / cover no-repeat;
  opacity: 0.3;
  mix-blend-mode: multiply;
  transform: scale(1.025);
  animation: paper-drift 18s ease-in-out 3s infinite alternate;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(245, 245, 245, 0.85);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-shell {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
}

.brand {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  transition: color 180ms ease;
}

.brand:hover {
  color: var(--primary);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary);
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--border);
  padding: 0.25rem;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
}

.language-button {
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.35rem 0.55rem;
  transition: background 180ms ease, color 180ms ease;
}

.language-button:hover {
  color: var(--foreground);
}

.language-button.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.mobile-controls,
.mobile-menu {
  display: none;
}

.menu-button {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-content: center;
  gap: 0.25rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  width: 1.25rem;
  height: 1px;
  background: var(--foreground);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button.is-open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.section {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
  padding: var(--section-space) clamp(0rem, 1.8vw, 1.5rem);
  border-top: 1px solid var(--border);
  scroll-margin-top: 4rem;
}

.projects-section {
  border-top: 0;
  padding-top: clamp(5rem, 7vw, 6rem);
  padding-bottom: clamp(5rem, 7vw, 6rem);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4rem;
}

.about-intro {
  grid-column: span 4;
}

.about-details {
  grid-column: span 8;
  padding-top: 3rem;
}

.about-intro h2,
.project-intro h2,
.iadc-section h2,
.content-section h2,
.contact-section h2,
.photos-copy h2 {
  margin-top: 1.25rem;
}

.media-frame {
  overflow: hidden;
  background: var(--muted);
}

.profile-photo {
  margin-top: 2.5rem;
  aspect-ratio: 3 / 4;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: scale(1.28);
  transform-origin: bottom;
  transition: transform 700ms ease;
}

.profile-photo:hover img {
  transform: scale(1.31);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-block: 1px solid var(--border);
}

.tab-button {
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  padding: 1rem 0.75rem;
  color: var(--foreground);
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-align: left;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.tab-button:last-child {
  border-right: 0;
}

.tab-button:hover {
  background: var(--muted);
}

.tab-button.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.tab-panel {
  min-height: 22.5rem;
  border-bottom: 1px solid var(--border);
  padding-block: 3rem;
}

.tab-panel.is-changing {
  animation: panel-in 260ms ease both;
}

.tab-help,
.project-photo figcaption,
.photo-tags,
.site-footer,
.meta-line,
.case-number,
.focus-title,
.project-period,
.instagram-link {
  font-family: var(--font-label);
}

.tab-help {
  margin-top: 1.25rem;
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.profile-heading {
  max-width: 42rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.panel-copy {
  max-width: 42rem;
  margin-top: 1.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
}

.panel-copy p + p {
  margin-top: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 42rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
}

.stat-value {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.stat-label,
.panel-kicker,
.panel-meta {
  font-family: var(--font-label);
  text-transform: uppercase;
}

.stat-label {
  margin-top: 0.25rem;
  font-size: 0.625rem;
  letter-spacing: 0.05em;
}

.experience-list {
  display: grid;
  gap: 2.5rem;
}

.experience-entry {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 2rem;
  border-top: 2px solid var(--primary);
  padding-top: 1rem;
}

.panel-kicker {
  color: var(--primary);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.experience-entry h3,
.education-card h3 {
  margin-bottom: 0.75rem;
}

.panel-meta {
  margin-bottom: 1.25rem;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  line-height: 1.55;
}

.dash-list {
  list-style: none;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.dash-list li {
  position: relative;
  padding-left: 1.25rem;
}

.dash-list li::before {
  position: absolute;
  left: 0;
  content: "—";
  color: var(--primary);
}

.education-grid,
.recognition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.education-card,
.recognition-card {
  border-top: 2px solid var(--primary);
  padding-top: 1rem;
}

.education-card p:last-child,
.recognition-card > p:not(.panel-kicker) {
  font-size: 0.875rem;
  line-height: 1.625;
}

.recognition-card .secondary-recognition {
  margin-top: 1.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.recognition-link {
  display: block;
  margin-top: 1.25rem;
  overflow: hidden;
}

.recognition-link img,
.recognition-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.recognition-card > img {
  margin-top: 1.25rem;
  aspect-ratio: 4 / 3;
}

.recognition-link img {
  transition: transform 500ms ease;
}

.recognition-link:hover img {
  transform: scale(1.02);
}

.text-link {
  display: inline-block;
  margin-top: 0.75rem;
  border-bottom: 1px solid var(--primary);
  padding-bottom: 0.25rem;
  color: var(--primary);
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.tools-grid h3 {
  margin-bottom: 1.5rem;
}

.tool-list,
.skill-list {
  display: grid;
  list-style: none;
  padding: 0;
}

.tool-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.tool-list li {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  font-family: var(--font-label);
  font-size: 0.75rem;
}

.skill-list {
  gap: 0.6rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.project-photo,
.project-intro {
  min-width: 0;
}

.project-photo {
  grid-column: span 5;
}

.project-intro {
  grid-column: span 7;
  padding-top: 0.5rem;
}

.project-photo-frame {
  aspect-ratio: 4 / 5;
}

.project-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-photo figcaption {
  margin-top: 0.75rem;
  font-size: 0.625rem;
  letter-spacing: 0.025em;
}

.project-tags {
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.75rem;
  color: var(--primary);
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  line-height: 1.625;
  text-transform: uppercase;
}

.accent-copy {
  max-width: 42rem;
  margin-top: 1.75rem;
  border-left: 2px solid var(--primary);
  padding-left: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
}

.accent-copy p + p,
.copy-stack p + p {
  margin-top: 1.25rem;
}

.project-cases {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
}

.case-study {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem;
  padding-block: 3rem;
  border-bottom: 1px solid var(--border);
}

.case-study:last-child {
  border-bottom: 0;
}

.case-number {
  grid-column: span 2;
  color: var(--primary);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}

.case-copy {
  grid-column: span 7;
}

.case-copy .copy-stack {
  max-width: 42rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
}

.case-focus {
  grid-column: span 3;
  border-left: 1px solid var(--border);
  padding-left: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.625;
}

.focus-title {
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.iadc-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.iadc-grid > div:first-child,
.content-grid > div:first-child {
  grid-column: span 5;
}

.iadc-copy,
.content-copy {
  grid-column: span 7;
  padding-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
}

.iadc-copy strong {
  font-weight: 600;
}

.project-period {
  margin-top: 2rem;
  border-left: 2px solid var(--primary);
  padding-left: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  line-height: 1.625;
}

.project-period p:first-child {
  margin-bottom: 0.5rem;
  color: var(--primary);
  letter-spacing: 0.16em;
}

.content-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.concept-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.concept-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.concept-list li::before {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.artwork-block,
.photos-block {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.art-card {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--muted);
}

.art-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photos-copy {
  grid-column: span 4;
}

.photos-copy h2 {
  max-width: 20rem;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 0.95;
}

.photos-copy > p:not(.eyebrow):not(.photo-tags) {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
}

.photo-tags {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.025em;
  line-height: 1.625;
}

.instagram-link {
  display: inline-block;
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--primary);
  padding-bottom: 0.25rem;
  color: var(--primary);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  transition: color 180ms ease;
}

.instagram-link:hover {
  color: var(--foreground);
}

.photo-grid {
  display: grid;
  grid-column: span 8;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.photo-card {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 0;
  background: var(--muted);
  cursor: zoom-in;
  padding: 0;
  text-align: left;
}

.photo-card-offset {
  margin-top: 2.5rem;
}

.photo-card-mural {
  aspect-ratio: 4 / 5;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.photo-card-mural img {
  transform: scale(1.2);
  transform-origin: top;
}

.photo-card:hover img {
  transform: scale(1.05);
}

.photo-card-mural:hover img {
  transform: scale(1.25);
}

.contact-section {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.contact-grid {
  align-items: center;
}

.contact-art {
  grid-column: span 5;
  aspect-ratio: 1;
  overflow: hidden;
}

.contact-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.85;
}

.contact-copy {
  display: flex;
  grid-column: span 7;
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-copy > p:not(.eyebrow) {
  margin-top: 2rem;
  font-size: 0.875rem;
  line-height: 1.625;
}

.contact-card {
  width: 100%;
  margin-top: 3rem;
  border-block: 1px solid var(--border);
  padding-block: 2rem;
}

.contact-card p {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.contact-card a {
  color: var(--primary);
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  overflow-wrap: anywhere;
  transition: color 180ms ease;
}

.contact-card a:hover {
  color: var(--foreground);
}

.site-footer {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
  border-top: 1px solid var(--border);
  padding: 2rem var(--page-pad);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 26, 0.92);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  z-index: 2;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 180ms ease;
}

.lightbox-close:hover {
  background: var(--primary);
}

.lightbox-close svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.lightbox-frame {
  display: grid;
  max-width: min(90vw, 72rem);
  max-height: calc(100vh - 5rem);
  place-items: center;
  overflow: hidden;
}

.lightbox-frame img {
  max-width: 100%;
  max-height: calc(100vh - 5rem);
  object-fit: contain;
}

.noscript-message {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 100;
  background: var(--foreground);
  color: #fff;
  padding: 1rem;
  font-size: 0.875rem;
  text-align: center;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 650ms ease, transform 650ms ease;
}

.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(1.25rem);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1023px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-intro,
  .about-details,
  .project-photo,
  .project-intro,
  .iadc-grid > div:first-child,
  .iadc-copy,
  .content-grid > div:first-child,
  .content-copy,
  .photos-copy,
  .photo-grid,
  .contact-art,
  .contact-copy {
    grid-column: 1;
  }

  .about-details {
    padding-top: 0;
  }

  .profile-photo {
    max-width: 31rem;
  }

  .project-photo {
    max-width: 36rem;
  }

  .case-study {
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 1.5rem;
  }

  .case-number {
    grid-column: 1;
  }

  .case-copy {
    grid-column: 2;
  }

  .case-focus {
    grid-column: 2;
    margin-top: 0.5rem;
  }

  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-art {
    width: min(100%, 32rem);
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  .desktop-nav {
    display: none;
  }

  .mobile-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .mobile-menu {
    position: absolute;
    inset: 4rem 0 auto;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border);
    background: rgba(245, 245, 245, 0.97);
    padding: 0 6vw 1rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu a {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    font-size: 0.95rem;
  }

  .mobile-menu a.is-active {
    color: var(--primary);
  }

  .hero {
    padding-top: 7rem;
  }

  h1 {
    font-size: clamp(3.25rem, 16vw, 5.5rem);
  }

  .hero-motion-word {
    font-size: 0.86em;
    letter-spacing: -0.055em;
  }

  .intro-identity > p {
    max-width: 11ch;
    font-size: clamp(3.2rem, 15vw, 5.2rem);
    line-height: 0.9;
  }

  .intro-actions {
    flex-direction: column;
    gap: 0.85rem;
  }

  .section {
    width: calc(100% - 3rem);
    padding-inline: 0;
  }

  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab-button {
    border-bottom: 1px solid var(--border);
  }

  .tab-button:nth-child(even) {
    border-right: 0;
  }

  .tab-button:last-child {
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }

  .experience-entry {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .education-grid,
  .recognition-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .case-study {
    grid-template-columns: 1fr;
  }

  .case-number,
  .case-copy,
  .case-focus {
    grid-column: 1;
  }

  .case-focus {
    margin-top: 0;
  }

  .art-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-card-mural {
    grid-column: 1 / -1;
    width: 65%;
    justify-self: end;
  }

  .contact-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

@media (max-width: 480px) {
  .nav-shell {
    padding-inline: 1rem;
  }

  .brand {
    max-width: 9.5rem;
    font-size: 0.6875rem;
  }

  .mobile-controls {
    gap: 0.25rem;
  }

  .hero {
    padding-inline: 1.5rem;
  }

  h1 {
    font-size: clamp(3rem, 15.5vw, 4.5rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .tool-list {
    grid-template-columns: 1fr;
  }

  .photo-card-mural {
    width: 100%;
  }

  .contact-card a {
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .site-background { opacity: 0.3; }

}

@media print {
  .site-header,
  .site-background,
  .lightbox,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .hero {
    min-height: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}



/* CINEMA 7 — optimized embedded images — embedded cutouts, recorded paper audio, no entry gate. */
body { background: #fff; }
.site-background { opacity: .30; animation: none; transform: none; }
.brand { font-family: var(--font-display); font-weight: 700; color: #080808; font-size: 1.05rem; letter-spacing: -.035em; }
.hero { position: relative; height: 100svh; min-height: 0; overflow: hidden; padding: 0; isolation: isolate; }
.hero-heading-wrap { position: absolute; z-index: 4; left: 6%; top: max(6rem, 15%); width: 82%; }
.hero-signature { font-family: var(--font-display); font-size: clamp(1rem, 1.8vw, 1.7rem); font-weight: 700; color: #080808; letter-spacing: -.04em; margin-bottom: .4rem; }
.eyebrow { color: #a72959; font-family: var(--font-label); font-size: .8rem; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.hero-kicker { margin-bottom: clamp(.4rem, 1.7vh, 1rem); }
h1,h2,h3 { font-family: var(--font-display); font-weight: 400; }
.hero h1 { font-size: clamp(2.7rem, min(7.2vw, 12.5svh), 8rem); line-height: 1.03; letter-spacing: -.045em; }
h2 { font-size: clamp(2.4rem, 4vw, 3.8rem); letter-spacing: -.02em; line-height: .98; }
h3 { font-size: 1.5rem; letter-spacing: -.015em; line-height: 1.05; }
em { color: var(--primary); font-style: normal; }
.hero-title-line,.hero-motion-word { display: block; }
.hero .hero-motion-word { font-size: 1em; letter-spacing: inherit; white-space: nowrap; }
.hero-copy { position: absolute; z-index: 4; left: 6%; bottom: 6%; width: 39%; max-width: 38rem; font-size: clamp(.875rem, 1.05vw, 1rem); line-height: 1.5; }
.hero-lead { font-size: clamp(1rem, 1.3vw, 1.15rem); margin-bottom: .7rem; }
.scene-art { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.scene-teal { position: absolute; width: 40%; height: 38%; right: 5%; bottom: 9%; background: #4b9caa; box-shadow: inset 0 0 45px #214d5312; }
.scene-teal::after { content: ""; position: absolute; inset: 0; opacity: .12; background: url("images/Dise_o_sin_t_tulo.3c846bbd.png") center/cover; mix-blend-mode: multiply; }
.scene-branch { position: absolute; width: 87%; height: 37%; left: -1%; top: 42%; background: url("images/v27-f60737321de4.webp") center/contain no-repeat; transform-origin: center; }
.scene-woman { position: absolute; width: 31%; height: 63%; right: 4%; bottom: 5%; background: url("images/v27-5a985e7935e5.webp") center bottom/contain no-repeat; transform-origin: center bottom; }
.cinema-name-stage { display: none; position: fixed; inset: 0; z-index: 100; background: #fff; place-items: center; pointer-events: none; }
.news-name { display: grid; gap: .18em; font-size: clamp(3.2rem, min(10vw, 13svh), 8rem); text-align: center; }
.news-word { display: flex; justify-content: center; gap: .055em; }
.news-letter { display: block; font-family: Georgia, 'Times New Roman', serif; font-weight: 900; line-height: 1.03; padding: .03em .065em .07em; color: #080808; background: #f0ede6; box-shadow: .02em .035em .025em #00000017; transform: rotate(-2deg); }
.news-letter:nth-child(3n) { font-family: var(--font-display); font-weight: 700; transform: rotate(2.5deg); background: #f7f5ee; }
.news-letter:nth-child(4n) { font-family: 'Arial Black', Arial, sans-serif; font-weight: 900; transform: rotate(-3deg); background: #e8e6df; }
.news-letter:nth-child(5n) { transform: rotate(1deg) translateY(.025em); background: #f3f1eb; }
.fold-stage { display:none; position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; background:#fff; }
.fold-sheet { position:absolute; inset:0; }
.fold-panel { position:absolute; width:50%; height:50%; opacity:1; backface-visibility:visible; background-image:linear-gradient(#ffffffaa,#ffffffaa),url("images/Dise_o_sin_t_tulo.3c846bbd.png"); background-size:200% 200%; box-shadow:0 5px 18px #35222b18; }
.fold-quarter { left:0; top:0; background-position:left top; }
.fold-second { left:50%; top:0; background-position:right top; transform-origin:left center; }
.fold-third { left:0; top:50%; background-position:left bottom; transform-origin:center top; }
.fold-fourth { left:50%; top:50%; background-position:right bottom; transform-origin:center top; }
.fold-panel::after { content:""; position:absolute; inset:0; border:1px solid #76636918; }
.cinema-controls { position: fixed; z-index: 105; right: 1rem; bottom: .65rem; display: flex; gap: .4rem; }
.cinema-controls button { font: .75rem var(--font-label); cursor: pointer; padding: .55rem .7rem; background: #fffffff0; color: #222; border: 1px solid #777; }
.cinema-controls button[hidden] { display: none; }
html[data-cinema="loading"],html[data-cinema="playing"] { overflow: hidden; }
[data-cinema="loading"] .cinema-name-stage,[data-cinema="playing"] .cinema-name-stage { display: grid; }
[data-cinema="loading"] .news-letter { opacity: 0; }
[data-cinema="playing"] .fold-stage { display: block; }
[data-cinema="loading"] .hero-heading-wrap,[data-cinema="loading"] .scene-art,[data-cinema="loading"] .hero-copy,[data-cinema="loading"] .site-header { visibility: hidden; }
[data-cinema="loading"] .site-background,[data-cinema="playing"] .site-background { opacity: 0; }
[data-cinema="playing"] #cinema-replay { display: none; }
@media (max-width: 767px) {
  .hero-heading-wrap { top: max(5.3rem, 14%); left: 6%; width: 90%; }
  .hero-signature { font-size: 1.05rem; }
  .hero-kicker { font-size: .72rem; letter-spacing: .04em; }
  .hero h1 { font-size: clamp(2rem, min(12.9vw, 9svh), 4.4rem); }
  .scene-teal { width: 66%; height: 28%; right: 5%; bottom: 23%; }
  .scene-branch { width: 115%; height: 28%; left: -12%; top: 40%; }
  .scene-woman { width: 51%; height: 42%; right: 2%; bottom: 22%; }
  .hero-copy { width: 88%; max-width: none; bottom: 7%; font-size: .875rem; line-height: 1.35; }
  .hero-lead { font-size: 1rem; margin-bottom: .4rem; }
  .news-name { font-size: clamp(2.1rem, min(9.3vw, 12svh), 4.5rem); }
  .cinema-controls { right: .5rem; bottom: .4rem; }
}
@media (max-height: 580px) and (min-width: 768px) {
  .hero-heading-wrap { top: 5rem; }
  .hero h1 { font-size: min(6vw, 12svh); }
  .hero-signature { font-size: 1rem; }
  .hero-kicker { font-size: .7rem; margin-bottom: .2rem; }
  .hero-copy { font-size: .8rem; bottom: 5%; line-height: 1.3; }
  .hero-lead { font-size: .9rem; margin-bottom: .3rem; }
}
@media (max-width: 380px) and (max-height: 650px) {
  .hero-copy { font-size: .8rem; bottom: 8%; }
  .hero-lead { font-size: .9rem; }
  .scene-woman { bottom: 26%; height: 37%; }
  .scene-teal { bottom: 27%; height: 25%; }
  .scene-branch { top: 41%; height: 25%; }
}
/* Respect enlarged text: readability takes priority over a forced viewport. */
@media (prefers-reduced-motion: reduce) { .cinema-name-stage,.fold-stage { display: none !important; } }
@media print { .cinema-name-stage,.fold-stage,.cinema-controls { display: none !important; } .hero { min-height: 35rem; } }

/* Cut contours are native vector masks; original bitmap files stay unmodified. */

.scene-branch { height:auto; aspect-ratio:2048/700; background-size:100% 100%; -webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%202048%20700%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M%2023%20139%20Q%20166%2099%20285%2048%20Q%20411%20-4%20533%2028%20Q%20648%2040%20736%20114%20Q%20812%20190%20913%20192%20Q%201042%20188%201188%2096%20Q%201319%203%201430%2034%20Q%201535%2049%201641%20147%20Q%201747%20263%201874%20254%20Q%201962%20255%202023%20229%20Q%201951%20305%201843%20291%20Q%201745%20294%201658%20269%20Q%201482%20204%201330%20242%20Q%201145%20298%201111%20350%20Q%201058%20396%201119%20433%20Q%201299%20533%201330%20611%20Q%201345%20658%201286%20677%20Q%201229%20690%201182%20650%20L%20950%20431%20Q%20903%20400%20831%20418%20Q%20732%20425%20682%20392%20Q%20626%20352%20581%20285%20Q%20541%20211%20438%20178%20Q%20241%20124%2023%20139%20Z%22%2F%3E%3C%2Fsvg%3E"); mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%202048%20700%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M%2023%20139%20Q%20166%2099%20285%2048%20Q%20411%20-4%20533%2028%20Q%20648%2040%20736%20114%20Q%20812%20190%20913%20192%20Q%201042%20188%201188%2096%20Q%201319%203%201430%2034%20Q%201535%2049%201641%20147%20Q%201747%20263%201874%20254%20Q%201962%20255%202023%20229%20Q%201951%20305%201843%20291%20Q%201745%20294%201658%20269%20Q%201482%20204%201330%20242%20Q%201145%20298%201111%20350%20Q%201058%20396%201119%20433%20Q%201299%20533%201330%20611%20Q%201345%20658%201286%20677%20Q%201229%20690%201182%20650%20L%20950%20431%20Q%20903%20400%20831%20418%20Q%20732%20425%20682%20392%20Q%20626%20352%20581%20285%20Q%20541%20211%20438%20178%20Q%20241%20124%2023%20139%20Z%22%2F%3E%3C%2Fsvg%3E"); -webkit-mask-size:100% 100%; mask-size:100% 100%; }
.scene-woman { width:min(35vw,56svh); height:auto; aspect-ratio:1195/1316; background-size:100% 100%; -webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201195%201316%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M%2024%201316%20L%20111%201046%20Q%20186%20824%20274%20743%20Q%20337%20671%20526%20649%20L%20535%20624%20L%20520%20604%20L%20535%20585%20L%20524%20558%20L%20500%20545%20L%20476%20521%20L%20490%20494%20L%20495%20478%20Q%20472%20432%20470%20388%20Q%20451%20353%20451%20324%20Q%20424%20227%20443%20143%20Q%20448%2093%20483%2078%20Q%20590%2035%20725%2046%20Q%20822%2044%20886%2076%20Q%20968%20119%201000%20242%20Q%201060%20305%201071%20371%20Q%201115%20440%201084%20512%20Q%201061%20575%20968%20621%20L%20931%20651%20L%20937%20697%20Q%201010%20760%201084%20837%20Q%201151%20876%201170%20989%20L%201158%201316%20Z%22%2F%3E%3C%2Fsvg%3E"); mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201195%201316%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M%2024%201316%20L%20111%201046%20Q%20186%20824%20274%20743%20Q%20337%20671%20526%20649%20L%20535%20624%20L%20520%20604%20L%20535%20585%20L%20524%20558%20L%20500%20545%20L%20476%20521%20L%20490%20494%20L%20495%20478%20Q%20472%20432%20470%20388%20Q%20451%20353%20451%20324%20Q%20424%20227%20443%20143%20Q%20448%2093%20483%2078%20Q%20590%2035%20725%2046%20Q%20822%2044%20886%2076%20Q%20968%20119%201000%20242%20Q%201060%20305%201071%20371%20Q%201115%20440%201084%20512%20Q%201061%20575%20968%20621%20L%20931%20651%20L%20937%20697%20Q%201010%20760%201084%20837%20Q%201151%20876%201170%20989%20L%201158%201316%20Z%22%2F%3E%3C%2Fsvg%3E"); -webkit-mask-size:100% 100%; mask-size:100% 100%; }
@media(max-width:767px){.scene-woman{width:min(51vw,38svh);height:auto;}.scene-branch{height:auto;}}
@media(max-width:380px) and (max-height:650px){.scene-woman{width:min(51vw,33svh);height:auto;}}

/* CINEMA 8 — free the copy while keeping the branch visually dominant. */
.hero-copy > p:not(.hero-lead) {
  font-size: clamp(1.025rem, 1.15vw, 1.125rem);
  line-height: 1.55;
}

@media (min-width: 768px) {
  .scene-branch {
    left: 6%;
    width: 78%;
  }

  .hero-copy {
    width: 40%;
    max-width: 42rem;
  }
}

@media (max-width: 767px) {
  .hero-copy > p:not(.hero-lead) {
    font-size: clamp(.95rem, 4vw, 1.05rem);
    line-height: 1.45;
  }
}

/* CINEMA 9 — the branch supports the collage and recedes behind the woman. */
@media (min-width: 768px) {
  .scene-branch {
    left: 43%;
    top: 42%;
    width: 54%;
    height: 24%;
    aspect-ratio: auto;
    background-size: 100% 100%;
  }
}

@media (max-width: 767px) {
  .scene-branch {
    left: 34%;
    top: 43%;
    width: 70%;
    height: 16%;
    aspect-ratio: auto;
    background-size: 100% 100%;
  }
}

/* CINEMA 10 — thin, right-weighted branch; its second half sits behind the woman. */
@media (min-width: 768px) {
  .scene-branch {
    left: 48%;
    top: 42%;
    width: 52%;
    height: 18%;
    aspect-ratio: auto;
    background-size: 100% 100%;
  }
}

@media (max-width: 767px) {
  .scene-branch {
    left: 28%;
    top: 44%;
    width: 72%;
    height: 12%;
    aspect-ratio: auto;
    background-size: 100% 100%;
  }
}

/* CINEMA 11 — medium branch proportion traced from the hand-drawn guide. */
@media (min-width: 768px) {
  .scene-branch {
    left: 34%;
    top: 50%;
    width: 66%;
    height: 32%;
    aspect-ratio: auto;
    background-size: 100% 100%;
  }
}

@media (max-width: 767px) {
  .scene-branch {
    left: 20%;
    top: 44%;
    width: 80%;
    height: 20%;
    aspect-ratio: auto;
    background-size: 100% 100%;
  }
}

/* PROJECT DOSSIERS — text-led work sequence; no placeholder imagery. */
.projects-section {
  padding-top: clamp(3.25rem, 5vw, 4.75rem);
  padding-bottom: clamp(3.5rem, 5vw, 5rem);
}

.projects-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .9rem 0 1.15rem;
}

.projects-masthead h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: .92;
  text-align: left;
}

.projects-count,
.project-meta,
.project-order,
.subcase-index {
  font-family: var(--font-label);
  text-transform: uppercase;
}

.projects-count {
  justify-self: end;
  color: var(--primary);
  font-size: .72rem;
  letter-spacing: .12em;
  text-align: right;
}

.project-dossier {
  display: block;
  border-bottom: 1px solid var(--border);
  padding: clamp(2.25rem, 3.5vw, 3.5rem) 0;
}

.project-dossier-head,
.project-overview {
  display: grid;
  grid-template-columns: clamp(5.5rem, 8vw, 8.5rem) minmax(0, 1fr);
  column-gap: clamp(1.35rem, 2.75vw, 3rem);
}

.project-dossier-head {
  align-items: start;
}

.project-overview {
  margin-top: 1.35rem;
  align-items: start;
}

.project-order {
  color: var(--primary);
  font-size: clamp(1.35rem, 2vw, 2.15rem);
  letter-spacing: .06em;
  line-height: 1;
}

.project-title-block,
.project-description {
  min-width: 0;
}

.project-meta {
  color: var(--primary);
  font-size: .72rem;
  letter-spacing: .12em;
  line-height: 1.25;
}

.project-year {
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.project-title-block h3 {
  max-width: none;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3.35rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .98;
}

.project-title-block .project-tags {
  margin-top: .65rem;
  border-bottom: 0;
  padding-bottom: 0;
  color: var(--primary);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .075em;
  line-height: 1.35;
}

.project-statement {
  max-width: 68rem;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.42vw, 1.34rem);
  letter-spacing: -.012em;
  line-height: 1.28;
}

.project-detail {
  max-width: 68rem;
  margin-top: .7rem;
  font-size: 1rem;
  line-height: 1.45;
}

.project-subcases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 3rem);
  margin: 1.35rem 0 0 calc(clamp(5.5rem, 8vw, 8.5rem) + clamp(1.35rem, 2.75vw, 3rem));
  border-top: 1px solid var(--border);
}

.project-subcase {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: .8rem;
  border-bottom: 0;
  padding: .85rem 0;
}

.project-subcase + .project-subcase {
  border-left: 1px solid var(--border);
  padding-left: clamp(1.25rem, 3vw, 3rem);
}

.subcase-index {
  color: var(--primary);
  font-size: .68rem;
  letter-spacing: .08em;
}

.project-subcase h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.1;
}

.project-subcase h4 + p {
  margin-top: .35rem;
  font-size: .93rem;
  line-height: 1.45;
}

.project-disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  max-width: 42rem;
  margin: 1.1rem 0 0 calc(clamp(5.5rem, 8vw, 8.5rem) + clamp(1.35rem, 2.75vw, 3rem));
  padding: 0;
  list-style: none;
}

.project-disciplines li {
  border-top: 1px solid var(--border);
  padding-top: .45rem;
  color: var(--primary);
  font-family: var(--font-label);
  font-size: .71rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .projects-masthead,
  .project-dossier-head,
  .project-overview {
    grid-template-columns: 1fr;
  }

  .projects-masthead {
    gap: .85rem;
  }

  .projects-count {
    justify-self: start;
    text-align: left;
  }

  .project-dossier {
    gap: 1.1rem;
    padding: 2.5rem 0;
  }

  .project-overview {
    gap: .7rem;
    margin-top: .8rem;
  }

  .project-subcases {
    grid-template-columns: 1fr;
    gap: 0;
    margin-left: 0;
  }

  .project-subcase + .project-subcase {
    border-top: 1px solid var(--border);
    border-left: 0;
    padding-left: 0;
  }

  .project-disciplines {
    margin-left: 0;
  }

  .project-title-block h3 {
    max-width: 14ch;
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  .project-statement {
    font-size: 1.16rem;
  }

  .project-detail {
    font-size: 1rem;
  }
}

/* CINEMA 12 — one intentional gesture starts sound and picture on frame zero. */
.cinema-start {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  background: #fff;
  padding: 1.5rem;
}

[data-cinema="waiting"] .cinema-start {
  display: grid;
}

.cinema-start-button {
  border: 0;
  background: transparent;
  color: #080808;
  cursor: pointer;
  padding: 2rem;
  text-align: center;
}

.cinema-start-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 7rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .95;
}

.cinema-start-action {
  display: block;
  width: max-content;
  margin: 2rem auto 0;
  border-bottom: 2px solid var(--primary);
  padding-bottom: .35rem;
  color: var(--primary);
  font-family: var(--font-label);
  font-size: clamp(.9rem, 1.35vw, 1.15rem);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cinema-start-hint {
  display: block;
  margin-top: .8rem;
  color: #555;
  font-size: .78rem;
}

html[data-cinema="waiting"] {
  overflow: hidden;
}

[data-cinema="waiting"] .hero-heading-wrap,
[data-cinema="waiting"] .scene-art,
[data-cinema="waiting"] .hero-copy,
[data-cinema="waiting"] .site-header,
[data-cinema="waiting"] .cinema-controls {
  visibility: hidden;
}

@media (max-width: 767px) {
  .cinema-start-title {
    font-size: clamp(2.15rem, 12vw, 4.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cinema-start {
    display: none !important;
  }
}

@media print {
  .cinema-start {
    display: none !important;
  }
}

/* V20 — Profile keeps one clean section transition and adapts to small screens. */
.about-section {
  border-top: 0;
  padding-top: clamp(3.25rem, 5vw, 4.75rem);
  padding-bottom: clamp(4rem, 6vw, 6rem);
}

.about-masthead {
  border-bottom: 1px solid var(--border);
  padding: .9rem 0 1.15rem;
}

.about-masthead h2 {
  max-width: 100%;
  margin: .6rem 0 0;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: .92;
}

.about-tabs-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 4fr);
  gap: 2rem;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}

.about-tabs-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
  align-self: center;
  color: var(--primary);
  font-family: var(--font-label);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.about-tabs-hint {
  color: var(--foreground);
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.35;
  text-transform: none;
}

.about-tabs-row .tabs {
  border-block: 0;
}

.about-tabs-row .tab-button {
  padding: 1.1rem .8rem;
  font-size: .68rem;
  font-weight: 700;
}

.about-grid {
  margin-top: clamp(2rem, 3.5vw, 3.5rem);
  align-items: stretch;
}

.about-intro,
.about-details {
  min-width: 0;
}

.about-details {
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

.profile-photo {
  margin-top: 0;
}

.about-details .tab-panel {
  display: flex;
  flex: 1;
  min-height: 0;
  border-bottom: 0;
  padding: 0 0 1.2rem;
}

.profile-panel {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.profile-heading {
  max-width: 44rem;
  font-size: clamp(1.5rem, 2.25vw, 2.1rem);
  line-height: 1.12;
}

.panel-copy {
  max-width: 44rem;
  margin-top: 1.15rem;
  font-size: 1rem;
  line-height: 1.5;
}

.panel-copy p + p {
  margin-top: .7rem;
}

.profile-panel .stats-grid {
  max-width: none;
  margin-top: auto;
  padding-top: 1.2rem;
}

@media (max-width: 767px) {
  .about-section {
    padding-top: 2.75rem;
    padding-bottom: 4rem;
  }

  .about-masthead {
    padding-top: .25rem;
  }

  .about-masthead h2 {
    font-size: clamp(2.6rem, 12vw, 4rem);
    line-height: .94;
    overflow-wrap: anywhere;
  }

  .about-tabs-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-tabs-label {
    padding: .85rem 0;
  }

  .about-tabs-row .tabs {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .about-tabs-row .tab-button {
    flex: 0 0 auto;
    min-width: 8.5rem;
  }

  .about-grid {
    gap: 1.75rem;
    margin-top: 1.5rem;
  }

  .about-details .tab-panel {
    display: block;
    padding-bottom: 1rem;
  }

  .profile-photo {
    width: 100%;
  }

  .profile-panel .profile-heading,
  .profile-panel .panel-copy {
    max-width: none;
  }

  .profile-panel .stats-grid {
    margin-top: 1.5rem;
  }
}

/* V21 — tighten the profile entrance and introduce personal work as an editorial section. */
.projects-section {
  padding-bottom: clamp(2rem, 3.25vw, 3.25rem);
}

.about-section {
  padding-top: clamp(1rem, 2vw, 1.75rem);
}

.about-masthead {
  padding-top: 0;
  padding-bottom: 1rem;
}

.about-masthead h2 {
  margin-top: 0;
}

.about-tabs-label,
.about-tabs-hint {
  color: var(--foreground);
}

.about-tabs-hint {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .05em;
}

.content-section {
  padding-top: clamp(3.25rem, 5vw, 4.75rem);
}

.art-masthead {
  border-bottom: 1px solid var(--border);
  padding: 0 0 1.15rem;
}

.art-masthead h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: .92;
}

.artwork-block {
  margin-top: clamp(2rem, 3.5vw, 3.5rem);
  border-top: 0;
  padding-top: 0;
}

@media (max-width: 767px) {
  .projects-section {
    padding-bottom: 2.5rem;
  }

  .about-section {
    padding-top: 1rem;
  }

  .art-masthead h2 {
    font-size: clamp(2.6rem, 12vw, 4rem);
    line-height: .94;
  }

  .artwork-block {
    margin-top: 1.5rem;
  }
}

/* V25 — hero stop-motion: green frame → woman → lasso → linked collage. */
.scene-art .scene-teal {
  z-index: 1;
  opacity: 0;
  transform-origin: center;
}

.scene-woman-frame,
.scene-lasso-frame,
.scene-linked-frame {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transform-origin: center;
  background-repeat: no-repeat;
}

/* The original woman is kept as a paper cutout; the inherited mask removes its outer matte. */
.scene-woman-frame {
  z-index: 2;
  width: min(30vw, 28rem);
  height: auto;
  aspect-ratio: 800 / 882;
  right: 6%;
  bottom: 3.5%;
  background: url("images/hero-woman-original-v25.webp") center bottom / 100% 100% no-repeat;
  transform-origin: 72% 82%;
}

/* The lasso is an independent cutout, so it can travel in after the woman. */
.scene-lasso-frame {
  z-index: 3;
  width: min(56vw, 54rem);
  aspect-ratio: 3 / 2;
  right: -2%;
  top: 18%;
  background-image: url("images/hero-lasso-clean-v25.png");
  background-position: center;
  background-size: contain;
}

/* This is the third stop-motion frame: it replaces, rather than overlays, the first two cutouts. */
.scene-linked-frame {
  z-index: 4;
  width: min(47vw, 45rem);
  aspect-ratio: 629 / 397;
  right: 1.5%;
  bottom: 5.5%;
  background-image: url("images/hero-linked-original-v25.png");
  background-position: center;
  background-size: contain;
}

/* Stable final state after the animation finishes. */
[data-cinema="done"] .scene-teal,
[data-cinema="done"] .scene-linked-frame {
  opacity: 1;
  transform: none;
}

[data-cinema="done"] .scene-woman-frame,
[data-cinema="done"] .scene-lasso-frame {
  opacity: 0;
}

@media (max-width: 767px) {
  .hero-heading-wrap {
    top: max(4.7rem, 10svh);
    left: 6%;
    width: 88%;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.15rem);
  }

  .hero-copy {
    left: 6%;
    bottom: 4%;
    width: 88%;
    font-size: .86rem;
    line-height: 1.38;
  }

  .hero-lead {
    font-size: 1rem;
    margin-bottom: .4rem;
  }

  .scene-art .scene-teal {
    width: 64%;
    height: 24%;
    right: 4%;
    bottom: 24%;
  }

  .scene-woman-frame {
    width: min(53vw, 17rem);
    right: 2%;
    bottom: 20%;
  }

  .scene-lasso-frame {
    width: 96vw;
    right: -16%;
    top: 28%;
  }

  .scene-linked-frame {
    width: 90vw;
    right: -2%;
    bottom: 20%;
  }
}

@media (max-width: 380px), (max-height: 700px) and (max-width: 767px) {
  .hero-heading-wrap { top: 4.1rem; }
  .hero h1 { font-size: clamp(2.25rem, 12vw, 3.4rem); }
  .hero-copy { bottom: 2.5%; font-size: .8rem; }
  .scene-art .scene-teal { bottom: 22%; }
  .scene-woman-frame,
  .scene-linked-frame { bottom: 18%; }
  .scene-lasso-frame { top: 24%; }
}

/* The cinema remains available on phones, including when the device asks for reduced motion. */
@media (prefers-reduced-motion: reduce) {
  [data-cinema="waiting"] .cinema-start { display: grid !important; }
  [data-cinema="playing"] .cinema-name-stage { display: grid !important; }
  [data-cinema="playing"] .fold-stage { display: block !important; }
}

/* V26: embedded approved cutouts, shared stage and stable final frame. */
.scene-art { inset:auto; right:2%; bottom:4%; width:min(48vw,76svh); aspect-ratio:3/2; height:auto; }
.scene-art .scene-teal { width:82%; height:65%; right:5%; bottom:6%; }
.scene-art .scene-woman-frame { width:45.7%; aspect-ratio:2/3; right:14%; bottom:0; background-image:url("images/v27-081c6e4b730c.png"); background-size:100% 100%; filter:url(#paper-cutout); mask:none; -webkit-mask:none; }
.scene-art .scene-lasso-frame { width:100%; aspect-ratio:3/2; top:0; right:0; bottom:auto; background-image:url("images/v27-2143167781b9.png"); }
.scene-art .scene-linked-frame { width:100%; aspect-ratio:3/2; right:0; bottom:0; background-image:url("images/v27-464bf6c731bd.png"); filter:url(#paper-cutout); }
[data-cinema="done"] .scene-art .scene-teal { opacity:1; }
@media(max-width:767px) {
 .hero { height:auto; min-height:100svh; padding:5rem 6% 2.8rem; display:flex; flex-direction:column; gap:1.2rem; }
 .hero-heading-wrap { position:relative; top:auto; left:auto; width:100%; }
 .scene-art { position:relative; inset:auto; width:100%; height:auto; aspect-ratio:3/2; flex-shrink:0; margin:0; }
 .hero-copy { position:relative; inset:auto; width:100%; margin:0; font-size:1rem; }
}
