@import url("https://estudiomanzanero.com/wp-content/themes/manzanero/assets/fonts/MDSystem/MDSystem.css");
@import url("https://estudiomanzanero.com/wp-content/themes/manzanero/assets/fonts/Roslindale-Text/Roslindale-Text.css");

:root {
  --bg: #eeede9;
  --footer-bg: #d3d1cb;
  --muted: #938e83;
  --ink: #111111;
  --white: #ffffff;
  --font-display: "Roslindale-Text", "Iowan Old Style", "Times New Roman", serif;
  --font-ui: "MDSystem", Helvetica, Arial, sans-serif;
  --gutter: clamp(1rem, 1.6vw, 1.5rem);
  --page-pad: clamp(1.25rem, 4.8vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

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

.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

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

.loader__wordmark {
  display: flex;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 7rem);
  letter-spacing: -0.06em;
}

.loader__wordmark span {
  display: inline-block;
  transform: translateY(14vh);
  opacity: 0;
  animation: loader-letter 0.95s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.loader__wordmark span:nth-child(1) {
  animation-delay: 0.02s;
}

.loader__wordmark span:nth-child(2) {
  animation-delay: 0.08s;
}

.loader__wordmark span:nth-child(3) {
  animation-delay: 0.14s;
}

.loader__wordmark span:nth-child(4) {
  animation-delay: 0.2s;
}

.loader__wordmark span:nth-child(5) {
  animation-delay: 0.26s;
}

.loader__wordmark span:nth-child(6) {
  animation-delay: 0.32s;
}

.loader__wordmark span:nth-child(7) {
  animation-delay: 0.38s;
}

.loader__wordmark span:nth-child(8) {
  animation-delay: 0.44s;
}

.loader__wordmark span:nth-child(9) {
  animation-delay: 0.5s;
}

.cursor {
  pointer-events: none;
}

.cursor__heart,
.cursor__dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease,
    border-color 0.25s ease, background-color 0.25s ease,
    transform 0.25s ease;
}

.cursor__heart {
  width: 1.1rem;
  height: auto;
  opacity: 0;
}

.cursor__dot {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--ink);
}

.cursor.is-active .cursor__heart {
  width: 1rem;
  opacity: 1;
}

.cursor.is-active .cursor__dot {
  opacity: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  pointer-events: none;
}

.site-header__desktop-nav a,
.footer__menu a,
.gallery__text a,
.footer__meta a {
  position: relative;
  font-family: var(--font-ui);
  font-size: clamp(0.85rem, 1vw, 1rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.site-header__desktop-nav a::after,
.footer__menu a::after,
.gallery__text a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.site-header__desktop-nav a:hover::after,
.footer__menu a:hover::after,
.gallery__text a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__desktop-nav {
  pointer-events: auto;
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 1rem;
}

.site-header__wordmark {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.hero__collage {
  position: relative;
  height: 100svh;
}

.hero__card {
  position: absolute;
  overflow: hidden;
}

.hero__card img {
  object-fit: cover;
  box-shadow: 0 24px 64px rgba(17, 17, 17, 0.08);
}

.hero__card--1 {
  top: 0;
  left: 20vw;
  width: 19vw;
}

.hero__card--2 {
  top: 13svh;
  left: 51vw;
  width: 25vw;
}

.hero__card--3 {
  top: 41svh;
  left: 31vw;
  width: 36vw;
}

.hero__card--4 {
  top: 60svh;
  left: 4vw;
  width: 26vw;
}

.hero__card--5 {
  top: 82svh;
  left: 54vw;
  width: 31vw;
}

.statement {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: var(--page-pad);
  text-align: center;
}

.statement__info,
.gallery__text,
.footer__label,
.footer__copy,
.footer__menu a,
.footer__meta,
.footer__form input,
.footer__acceptance {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.statement__info {
  max-width: 18rem;
  margin: 0 auto;
  font-size: clamp(0.95rem, 1.15vw, 1rem);
  line-height: 1.1;
}

.statement__title {
  align-self: center;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.statement__title--smaller {
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  text-wrap: balance;
}

.gallery {
  padding: 0 0 5rem;
}

.gallery__canvas {
  --design-width: 430;
  position: relative;
  height: 585vw;
}

.gallery__item,
.gallery__text {
  position: absolute;
  transform: translate(-50%, -50%);
}

.gallery__item {
  left: calc(var(--x) / var(--design-width) * 100vw);
  top: calc(var(--y) / var(--design-width) * 100vw);
  width: calc(var(--w) / var(--design-width) * 100vw);
  aspect-ratio: var(--w) / var(--h);
  overflow: hidden;
}

.gallery__item img {
  height: 100%;
  object-fit: cover;
}

.gallery__text {
  left: calc(var(--x) / var(--design-width) * 100vw);
  top: calc(var(--y) / var(--design-width) * 100vw);
  width: calc(var(--w) / var(--design-width) * 100vw);
  font-size: 0.78rem;
  line-height: 1.15;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.gallery__text--1 {
  text-align: center;
}

.gallery__item--1 {
  --x: 90;
  --y: 0;
  --w: 155;
  --h: 232;
}

.gallery__item--2 {
  --x: 111;
  --y: 284;
  --w: 292;
  --h: 219;
}

.gallery__item--3 {
  --x: 86;
  --y: 676;
  --w: 151;
  --h: 101;
}

.gallery__item--4 {
  --x: 160;
  --y: 887;
  --w: 161;
  --h: 241;
}

.gallery__item--5 {
  --x: 301;
  --y: 1214;
  --w: 129;
  --h: 194;
}

.gallery__item--6 {
  --x: 118;
  --y: 1463;
  --w: 218;
  --h: 327;
}

.gallery__item--7 {
  --x: 249;
  --y: 1778;
  --w: 143;
  --h: 95;
}

.gallery__item--8 {
  --x: 187;
  --y: 1943;
  --w: 179;
  --h: 269;
}

.gallery__item--9 {
  --x: 118;
  --y: 2262;
  --w: 212;
  --h: 141;
}

.gallery__item--10 {
  --x: 200;
  --y: 2517;
  --w: 180;
  --h: 270;
}

.gallery__item--11 {
  --x: 153;
  --y: 2961;
  --w: 212;
  --h: 141;
}

.gallery__item--12 {
  --x: 98;
  --y: 3151;
  --w: 155;
  --h: 233;
}

.gallery__item--13 {
  --x: 303;
  --y: 3399;
  --w: 79;
  --h: 119;
}

.gallery__item--14 {
  --x: 155;
  --y: 3557;
  --w: 207;
  --h: 310;
}

.gallery__text--1 {
  --x: 220;
  --y: 520;
  --w: 280;
}

.gallery__text--2 {
  --x: 218;
  --y: 1290;
  --w: 314;
}

.footer {
  min-height: 100svh;
  background: var(--footer-bg);
  margin-top: 6rem;
}

.inquiry {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) var(--page-pad) clamp(3rem, 7vw, 6rem);
}

.inquiry__intro {
  margin-bottom: 2.5rem;
}

.inquiry__eyebrow,
.inquiry__field label,
.inquiry__submit,
.inquiry__status {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.inquiry__eyebrow {
  margin-bottom: 0.85rem;
  font-size: clamp(0.85rem, 1vw, 1rem);
}

.inquiry__title {
  max-width: none;
  margin: 0;
  font-size: clamp(1rem, 3.2vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.inquiry__form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.inquiry__field {
  display: grid;
  gap: 0.55rem;
}

.inquiry__field label {
  font-size: 0.82rem;
}

.inquiry__field--required label::after {
  content: " *";
}

.inquiry__field input,
.inquiry__field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.3);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.2;
  padding: 0.8rem 0;
}

.inquiry__field textarea {
  min-height: 10rem;
  resize: vertical;
  border: 1px solid rgba(17, 17, 17, 0.18);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.18);
}

.inquiry__field input::placeholder,
.inquiry__field textarea::placeholder {
  color: rgba(17, 17, 17, 0.48);
}

.inquiry__field input:focus,
.inquiry__field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.inquiry__actions {
  display: grid;
  gap: 0.8rem;
  padding-top: 0.5rem;
}

.inquiry__submit {
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  position: relative;
}

.inquiry__submit::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.12rem;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.inquiry__status {
  min-height: 1rem;
  font-size: 0.75rem;
  color: rgba(17, 17, 17, 0.68);
}

@media (min-width: 611px) {
  .hero__card--1 {
    width: 12vw;
  }

  .hero__card--2 {
    width: 18vw;
  }

  .hero__card--3 {
    width: 29vw;
  }

  .hero__card--4 {
    width: 19vw;
  }

  .hero__card--5 {
    width: 24vw;
  }
}

@media (min-width: 1191px) {
  .site-header__desktop-nav {
    top: 2.5rem;
    right: 4.8vw;
    gap: 2rem;
  }

  .site-header__side-mark {
    display: none;
  }

  .site-header__wordmark {
    position: fixed;
    left: 50%;
    bottom: 0.75rem;
    display: flex;
    gap: 0.4rem;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 7rem);
    letter-spacing: -0.06em;
    opacity: 0.18;
    pointer-events: none;
    white-space: nowrap;
  }

  .site-header__wordmark span {
    display: inline-block;
  }

  .inquiry__form {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }

  .inquiry__field--full,
  .inquiry__actions {
    grid-column: 1 / -1;
  }

  .hero__card--1 {
    top: 0;
    left: calc(78 / 1440 * 100%);
    width: calc(122 / 1440 * 100%);
  }

  .hero__card--2 {
    top: calc(122 / 1024 * 100%);
    left: calc(563 / 1440 * 100%);
    width: calc(190 / 1440 * 100%);
  }

  .hero__card--3 {
    top: calc(247 / 1024 * 100%);
    left: calc(1174 / 1440 * 100%);
    width: calc(197 / 1440 * 100%);
  }

  .hero__card--4 {
    top: calc(483 / 1024 * 100%);
    left: calc(243 / 1440 * 100%);
    width: calc(184 / 1440 * 100%);
  }

  .hero__card--5 {
    top: calc(607 / 1024 * 100%);
    left: calc(826 / 1440 * 100%);
    width: calc(187 / 1440 * 100%);
  }

  .gallery__canvas {
    --design-width: 1512;
    height: 248vw;
  }

  .gallery__item--1 {
    --x: 156;
    --y: 0;
    --w: 285;
    --h: 427;
  }

  .gallery__item--2 {
    --x: 738;
    --y: 360;
    --w: 583;
    --h: 437;
  }

  .gallery__item--3 {
    --x: 179;
    --y: 845;
    --w: 271;
    --h: 181;
  }

  .gallery__item--4 {
    --x: 637;
    --y: 1262;
    --w: 304;
    --h: 456;
  }

  .gallery__item--5 {
    --x: 1272;
    --y: 1695;
    --w: 240;
    --h: 359;
  }

  .gallery__item--6 {
    --x: 276;
    --y: 1958;
    --w: 515;
    --h: 772;
  }

  .gallery__item--7 {
    --x: 756;
    --y: 2503;
    --w: 229;
    --h: 153;
  }

  .gallery__item--8 {
    --x: 919;
    --y: 2916;
    --w: 388;
    --h: 583;
  }

  .gallery__item--9 {
    --x: 226;
    --y: 3229;
    --w: 423;
    --h: 282;
  }

  .gallery__text {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.22;
  }

  .gallery__text--1 {
    --x: 936;
    --y: 1010;
    --w: 420;
  }

  .gallery__text--2 {
    --x: 1050;
    --y: 2140;
    --w: 460;
  }

  .gallery__item--10 {
    --x: 698;
    --y: 3783;
    --w: 483;
    --h: 725;
  }

  .gallery__item--11 {
    --x: 902;
    --y: 4726;
    --w: 423;
    --h: 282;
  }

  .gallery__item--12 {
    --x: 249;
    --y: 4753;
    --w: 363;
    --h: 544;
  }

  .gallery__item--13 {
    --x: 1239;
    --y: 5423;
    --w: 148;
    --h: 222;
  }

  .gallery__item--14 {
    --x: 811;
    --y: 5502;
    --w: 321;
    --h: 482;
  }

  .gallery__text {
    font-size: clamp(0.85rem, 1.06vw, 1rem);
  }

  .gallery__text--4 {
    --x: 218;
    --y: 4006;
    --w: 339;
    text-align: left;
  }

  .gallery__text--5 {
    --x: 32;
    --y: 5396;
    --w: 322;
  }

}

@media (max-width: 1190px) {
  .cursor {
    display: none;
  }
}

@keyframes loader-letter {
  from {
    opacity: 0;
    transform: translateY(14vh);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
