@font-face {
  font-family: "Brittany Signature";
  src: url("../assets/fonts/BrittanySignature.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-white: #ffffff;
  --color-cream: #fbf3e4;
  --color-cream-light: #fef9e7;
  --color-cream-dark: #f5edd8;
  --color-text: #000000;
  --color-text-muted: #333333;
  --font-heading: "Hammersmith One", sans-serif;
  --font-script: "Brittany Signature", cursive;
  --max-width: 1280px;
  --header-height: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --header-offset: calc(var(--header-height) + var(--safe-top));
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 48px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

img,
picture img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  width: min(
    100% - max(2rem, env(safe-area-inset-left) + env(safe-area-inset-right)),
    var(--max-width)
  );
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  padding-top: var(--safe-top);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: clamp(0.78rem, 2.2vw, 0.9375rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo span {
  font-weight: 400;
}

.main-nav ul {
  display: flex;
  gap: 1.75rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
  transition: opacity var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
}

/* Cover (slide 1) */
.cover-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - var(--header-height) - 80px);
  position: relative;
  overflow: hidden;
  padding: 3rem 1rem;
}

.cover-circle {
  position: absolute;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  border-radius: 50%;
  background: var(--color-cream-light);
  top: 50%;
  left: 50%;
  transform: translate(-58%, -52%);
  z-index: 0;
}

.cover-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cover-title {
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.cover-title .outline {
  -webkit-text-stroke: 2.5px var(--color-text);
  color: transparent;
}

.cover-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
}

.cover-handle {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  font-size: 0.875rem;
  font-weight: 400;
}

/* Home — ¿Quién soy? */
.page-home .site-header {
  background: var(--color-cream);
  border-bottom: none;
}

.page-home .site-footer {
  background: var(--color-cream);
  border-top: none;
}

.home-about {
  flex: 1;
  min-height: calc(100vh - var(--header-height) - 72px);
}

.home-about .split-white {
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.home-about .about-portrait-wrap {
  width: min(100%, 440px);
  background: var(--color-white);
}

.home-about .about-portrait-wrap img {
  min-height: 360px;
}

.home-about .split-cream {
  justify-content: flex-start;
  padding: clamp(3.5rem, 9vh, 5.5rem) clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem);
}

.home-about .section-heading.script {
  margin-bottom: 2.75rem;
  line-height: 1.15;
  padding-bottom: 0.15em;
}

/* Split layouts */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.split-cream {
  background: var(--color-cream);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-white {
  background: var(--color-white);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.section-heading {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  text-wrap: balance;
}

.section-heading.script {
  font-family: var(--font-script);
  text-transform: none;
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: 0;
  line-height: 1;
}

.section-text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  max-width: 480px;
}

.section-text p + p {
  margin-top: 1rem;
}

.home-social {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.social-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
}

.social-icon-link:hover,
.social-icon-link:focus-visible {
  text-decoration: none;
}

.social-icon-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--color-text);
  border-radius: 50%;
  color: var(--color-text);
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition);
}

.social-icon-link:hover .social-icon-link__icon,
.social-icon-link:focus-visible .social-icon-link__icon {
  transform: scale(1.08) rotate(-4deg);
  background-color: var(--color-text);
  color: var(--color-cream);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-icon-link__icon svg {
  transition: transform var(--transition);
}

.social-icon-link:hover .social-icon-link__icon svg,
.social-icon-link:focus-visible .social-icon-link__icon svg {
  transform: scale(1.05);
}

.social-icon-link__text {
  font-size: 0.9375rem;
  line-height: 1.4;
}

.social-icon-link--icon-only {
  gap: 0;
}

/* About portrait */
.about-portrait-wrap {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

.about-portrait-wrap img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  min-height: 400px;
}

.about-nameplate {
  background: var(--color-cream);
  padding: 1rem 1.5rem;
  text-align: center;
}

.about-nameplate h3 {
  font-size: 1.125rem;
  font-weight: 400;
}

.about-nameplate p {
  font-size: 0.9375rem;
  font-weight: 400;
}

/* Portfolio service sections */
.service-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.service-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
}

.service-text.cream {
  background: var(--color-cream);
}

.service-text.white {
  background: var(--color-white);
}

.service-images {
  display: grid;
  gap: 0;
}

.service-images.two-cols {
  grid-template-columns: 1fr 1fr;
}

.service-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

/* Events grid */
.events-section {
  display: grid;
  grid-template-columns: 2fr 3fr;
  min-height: 520px;
}

.events-text {
  background: var(--color-white);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.events-grid-wrap {
  background: var(--color-cream);
  padding: 2rem;
  display: flex;
  align-items: center;
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
}

.event-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.event-card figcaption {
  text-align: center;
  font-weight: 400;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Artistas layout */
.artistas-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  background: var(--color-white);
}

.artistas-left {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 520px;
}

.artistas-text {
  background: var(--color-cream);
  padding: 2.5rem;
}

.artistas-text .section-text {
  margin-top: 1rem;
}

.artistas-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

.artistas-right {
  min-height: 520px;
}

.artistas-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 520px;
}

/* Studio section */
.studio-section {
  background: var(--color-white);
}

.studio-top {
  display: grid;
  grid-template-columns: 1fr;
  padding: 3rem 2rem 2rem;
  gap: 2rem;
  align-items: start;
  background: var(--color-white);
}

.studio-top > div:first-child {
  max-width: 40rem;
}

.studio-top > div:last-child {
  display: flex;
  flex-direction: column;
  max-width: 28rem;
}

.studio-top img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.studio-caption {
  text-align: center;
  font-weight: 400;
  font-size: 1rem;
  margin-top: 0.75rem;
}

.studio-bottom {
  background: var(--color-cream);
  padding: 2.5rem 2rem 3rem;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.studio-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Portfolio experience */
.portfolio-page {
  --portfolio-index-height: 48px;
  background: var(--color-white);
}

.js .portfolio-page.is-loading {
  overflow: hidden;
}

.portfolio-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  background: var(--color-cream);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.js .portfolio-loader {
  display: grid;
}

.portfolio-page.is-ready .portfolio-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.portfolio-loader-inner {
  width: min(78vw, 360px);
  text-align: center;
}

.portfolio-loader-brand,
.portfolio-loader-label {
  display: block;
}

.portfolio-loader-brand {
  margin-bottom: 0.35rem;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
}

.portfolio-loader-label {
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
}

.portfolio-loader-track {
  height: 2px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
}

.portfolio-loader-progress {
  display: block;
  width: var(--load-progress, 0%);
  height: 100%;
  background: var(--color-text);
  transition: width 0.25s ease;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: var(--scroll-progress, 0%);
  height: 2px;
  background: var(--color-text);
  pointer-events: none;
}

.portfolio-index {
  position: sticky;
  top: var(--header-offset);
  z-index: 90;
  height: var(--portfolio-index-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 5vw, 3rem);
  padding-inline: 1rem;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.portfolio-index::-webkit-scrollbar {
  display: none;
}

.portfolio-index a {
  flex: 0 0 auto;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  transition: opacity var(--transition);
}

.portfolio-index a:hover,
.portfolio-index a:focus-visible {
  opacity: 1;
}

.portfolio-panel {
  scroll-margin-top: calc(var(--header-offset) + var(--portfolio-index-height));
  overflow: hidden;
}

.portfolio-page picture {
  display: block;
  overflow: hidden;
}

.portfolio-page .service-images picture,
.portfolio-page .artistas-left > picture,
.portfolio-page .artistas-right > picture {
  height: 100%;
}

.portfolio-page picture img {
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.02);
  transform-origin: center;
  will-change: transform;
  transition: transform 0.12s linear, filter 0.6s ease;
}

.js .portfolio-page.enhanced [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .portfolio-page.enhanced [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-page .event-card,
.portfolio-page .studio-grid figure {
  transition: transform 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .portfolio-page .event-card:hover,
  .portfolio-page .studio-grid figure:hover {
    transform: translateY(-6px);
  }
}

/* Contact */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-height) - 80px);
}

.contact-text-side {
  background: var(--color-cream);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-text-side h1,
.contact-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.contact-text-side p {
  font-size: 1rem;
  font-weight: 400;
  max-width: 400px;
  line-height: 1.8;
}

.contact-card-side {
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.contact-cards {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1.6 / 1;
}

.contact-card {
  position: absolute;
  inset: 0;
  background: var(--color-cream);
  border: 2px solid var(--color-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  font-weight: 400;
  font-size: 1rem;
  padding: 1.5rem;
  line-height: 1.5;
}

.contact-card.back-1 {
  transform: translate(12px, 12px);
  z-index: 1;
}

.contact-card.back-2 {
  transform: translate(24px, 24px);
  z-index: 0;
}

.contact-card.front {
  z-index: 2;
  gap: 1.25rem;
}

.contact-title span {
  display: block;
}

.contact-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.contact-card a.social-icon-link:hover,
.contact-card a.social-icon-link:focus-visible {
  text-decoration: none;
}

/* 404 */
.error-section {
  min-height: calc(100vh - var(--header-offset) - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  gap: 1rem;
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--color-text);
}

.error-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 400;
}

.error-text {
  max-width: 34rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.error-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--color-text);
  background: var(--color-text);
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition);
}

.error-btn:hover {
  background: transparent;
  color: var(--color-text);
}

.error-link {
  color: var(--color-text);
}

.error-link:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 1.25rem 0 max(1.25rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 400;
  opacity: 0.78;
}

.footer-social {
  display: flex;
  gap: 1.25rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* LLM map page */
.llm-map-page .site-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.llm-map {
  padding: 3rem 1rem 4rem;
  max-width: 720px;
}

.llm-map h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.llm-map-intro {
  margin-bottom: 2.5rem;
  line-height: 1.8;
  opacity: 0.8;
}

.llm-map section {
  margin-bottom: 2.5rem;
}

.llm-map h2 {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.llm-map dl {
  display: grid;
  gap: 0.75rem 1.5rem;
}

.llm-map dt {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

.llm-map dd {
  margin: 0;
  line-height: 1.7;
}

.llm-map ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.llm-map a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) and (min-width: 901px) {
  .split-cream,
  .service-text,
  .events-text,
  .contact-text-side {
    padding: 2.5rem 2rem;
  }

  .section-heading {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
  }

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

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 2;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-offset) 0 0 0;
    z-index: 1;
    background: var(--color-white);
    padding: 2rem max(1.5rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom));
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    visibility: hidden;
  }

  .main-nav.open {
    transform: translateX(0);
    visibility: visible;
  }

  .page-home .main-nav {
    background: var(--color-cream);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .main-nav a {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
    opacity: 0.78;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: var(--header-offset) 0 0;
    z-index: 95;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .split-section,
  .service-section,
  .events-section,
  .artistas-section,
  .studio-top,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .split-section,
  .service-section,
  .events-section,
  .artistas-section,
  .artistas-left,
  .artistas-right,
  .contact-section {
    min-height: auto;
  }

  .home-about {
    min-height: auto;
  }

  .home-about .split-white {
    order: -1;
  }

  .home-about .split-cream {
    padding-block: clamp(3rem, 8vw, 4.5rem);
  }

  .home-about .split-white {
    padding-block: clamp(2rem, 6vw, 3rem);
  }

  .home-about .about-portrait-wrap {
    width: min(100%, 380px);
    margin-inline: auto;
  }

  .about-portrait-wrap img,
  .home-about .about-portrait-wrap img {
    min-height: 0;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 24%;
  }

  .section-text {
    max-width: none;
  }

  .service-text,
  .events-text,
  .artistas-text {
    padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2rem);
  }

  .portfolio-page picture img {
    transform: none;
    will-change: auto;
  }

  .portfolio-index {
    justify-content: flex-start;
    gap: 0.25rem;
    padding-inline: max(0.5rem, env(safe-area-inset-left));
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .portfolio-index a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-inline: 0.75rem;
    scroll-snap-align: start;
  }

  .js .portfolio-page.is-loading {
    overflow: auto;
  }

  .portfolio-loader {
    pointer-events: none;
  }

  .portfolio-page .service-images picture,
  .portfolio-page .artistas-left > picture,
  .portfolio-page .artistas-right > picture {
    height: auto;
  }

  .artistas-left img,
  .artistas-right img {
    min-height: 0;
  }

  .artistas-left > picture img {
    aspect-ratio: 4 / 3;
  }

  .artistas-right > picture img {
    aspect-ratio: 3 / 4;
  }

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

  .cover-page {
    min-height: auto;
    padding-block: clamp(2.5rem, 10vh, 4rem);
  }

  .cover-circle {
    width: min(85vw, 420px);
    height: min(85vw, 420px);
    transform: translate(-50%, -50%);
  }

  .cover-handle {
    position: static;
    margin-top: 3rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .service-images.two-cols {
    grid-template-columns: 1fr 1fr;
  }

  .events-grid {
    gap: 1rem;
  }

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

@media (max-width: 640px) {
  :root {
    --header-height: 56px;
  }

  .container {
    width: min(
      100% - max(1.25rem, env(safe-area-inset-left) + env(safe-area-inset-right)),
      var(--max-width)
    );
  }

  .logo {
    font-size: clamp(0.72rem, 3.8vw, 0.875rem);
  }

  .logo span {
    display: none;
  }

  .split-cream,
  .service-text,
  .events-text,
  .artistas-text,
  .contact-text-side {
    padding: 2rem 1.5rem;
  }

  .home-about .split-cream {
    padding: 2.5rem 1.5rem;
  }

  .home-about .section-heading.script {
    font-size: clamp(2.5rem, 13vw, 3.75rem);
    line-height: 1.2;
    margin-bottom: 2rem;
    padding-bottom: 0.25em;
    overflow: visible;
  }

  .events-grid,
  .service-images.two-cols {
    grid-template-columns: 1fr;
  }

  .service-images img {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .events-grid-wrap,
  .studio-bottom {
    padding: 1.5rem;
  }

  .event-card img,
  .studio-grid img {
    aspect-ratio: 4 / 3;
  }

  .studio-top {
    padding: 2rem 1.5rem;
  }

  .contact-card-side {
    padding: 2.25rem 1.5rem 2.75rem;
    overflow: hidden;
  }

  .contact-cards {
    width: min(calc(100% - 1rem), 340px);
  }

  .contact-card.back-1 {
    transform: translate(8px, 8px);
  }

  .contact-card.back-2 {
    transform: translate(16px, 16px);
  }

  .contact-card {
    padding: 1.25rem;
  }

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

  .contact-text-side p {
    max-width: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .contact-cards {
    aspect-ratio: auto;
    min-height: 220px;
  }

  .contact-card.back-1,
  .contact-card.back-2 {
    display: none;
  }

  .contact-card.front {
    position: relative;
    inset: auto;
    min-height: 220px;
  }
}

@media (max-width: 380px) {
  body {
    font-size: 16px;
  }

  .section-heading {
    font-size: 1.8rem;
  }

  .contact-title {
    font-size: 1.65rem;
  }

  .cover-title {
    font-size: clamp(2.75rem, 14vw, 3.5rem);
  }

  .cover-title .outline {
    -webkit-text-stroke-width: 1.5px;
  }

  .events-grid-wrap,
  .studio-bottom,
  .studio-top,
  .contact-card-side {
    padding-inline: 1rem;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .home-about,
  .contact-section {
    min-height: auto;
  }

  .home-about .split-cream,
  .contact-text-side {
    padding-block: 2rem;
  }

  .home-about .split-white {
    padding-block: 1.5rem;
  }

  .home-about .about-portrait-wrap {
    max-width: 320px;
  }

  .portfolio-index {
    position: static;
  }

  .main-nav {
    padding-top: 1rem;
  }

  .main-nav a {
    min-height: 40px;
  }
}

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

  .portfolio-loader,
  .main-nav,
  .menu-toggle span,
  .portfolio-page [data-reveal],
  .portfolio-page picture img,
  .portfolio-page .event-card,
  .portfolio-page .studio-grid figure {
    transition: none;
  }

  .portfolio-page [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .portfolio-page picture img {
    transform: none;
    will-change: auto;
  }
}
