:root {
  --ink: #1c1815;
  --hero: #14110e;
  --cream: #f4f1ec;
  --cream-deep: #e7e1d8;
  --brown: #332e2a;
  --muted: #5c564e;
  --line: rgba(44, 40, 37, 0.18);
  --paper: #f7f4ef;
  --serif-display: "Bodoni Moda", "Didot", "Bodoni MT", "Times New Roman", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", serif;
  --script: "Mrs Saint Delafield", "Segoe Script", cursive;
  --serif: "Cormorant Garamond", Palatino, "Palatino Linotype", Georgia, "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", serif;
  --sans: Outfit, "Segoe UI", sans-serif;
  --header: 84px;
  --measure: 1180px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.45;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 20;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}

p,
h1,
h2,
blockquote,
figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--brown);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.sr-only,
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  clip: auto;
  background: var(--paper);
  color: var(--ink);
}

.container {
  width: min(var(--measure), calc(100% - 80px));
  margin-inline: auto;
}

[data-section] {
  scroll-margin-top: 78px;
}

#inicio {
  scroll-margin-top: 0;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  color: var(--paper);
  transition: background 180ms ease;
}

.header.is-stuck {
  background: rgba(20, 17, 14, 0.94);
  backdrop-filter: blur(8px);
}

.header-bar {
  display: flex;
  align-items: center;
  min-height: var(--header);
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  transition: opacity 180ms ease;
}

.logo-mark {
  font-family: var(--serif-display);
  font-size: 2.7rem;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.75;
}

.logo-name {
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.15;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms var(--ease-out);
}

.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.logo,
.nav a,
.header-tools .social,
.nav-toggle {
  animation: header-in 780ms var(--ease-out-soft) backwards;
}

.logo {
  animation-delay: 60ms;
}

.nav a:nth-child(1) { animation-delay: 150ms; }
.nav a:nth-child(2) { animation-delay: 220ms; }
.nav a:nth-child(3) { animation-delay: 290ms; }
.nav a:nth-child(4) { animation-delay: 360ms; }
.nav a:nth-child(5) { animation-delay: 430ms; }

.header-tools .social:nth-child(1) { animation-delay: 510ms; }
.header-tools .social:nth-child(2) { animation-delay: 580ms; }

.nav-toggle {
  animation-delay: 510ms;
}

@keyframes header-in {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(247, 244, 239, 0.85);
  border-radius: 50%;
  transition:
    transform 160ms var(--ease-out),
    background 180ms ease,
    color 180ms ease;
}

.social:active {
  transform: scale(0.97);
}

.social .ph-thin {
  font-size: 18px;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  font-size: 22px;
  transition: transform 160ms var(--ease-out), opacity 180ms ease;
}

.nav-toggle:active {
  transform: scale(0.97);
}

.nav-toggle .ph-x {
  display: none;
}

.nav-toggle[aria-expanded="true"] .ph-list {
  display: none;
}

.nav-toggle[aria-expanded="true"] .ph-x {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .logo:hover {
    opacity: 0.65;
  }

  .nav a:hover::after,
  .contact-list a:hover::after {
    transform: scaleX(1);
  }

  .social:hover {
    background: var(--paper);
    color: var(--ink);
  }

  .nav-toggle:hover {
    opacity: 0.65;
  }
}

.hero {
  position: relative;
  min-height: 100svh;
  color: var(--paper);
  background: var(--hero);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #14110e 0%, #14110e 30%, rgba(20, 17, 14, 0.88) 44%, rgba(20, 17, 14, 0.28) 60%, rgba(20, 17, 14, 0) 72%),
    linear-gradient(180deg, rgba(20, 17, 14, 0.62) 0%, rgba(20, 17, 14, 0) 18%),
    url("../assets/hero.png") 70% center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 120px 0 80px;
}

.hero-copy {
  width: min(100%, 38rem);
  animation: hero-in 1100ms var(--ease-out-soft) 150ms both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
}

.kicker {
  margin-bottom: 16px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--serif-display);
  font-size: clamp(2.85rem, 4.7vw, 4.35rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero h1 span {
  display: block;
}

.hero-lead {
  margin-top: 22px;
  font-size: 1.55rem;
  font-weight: 500;
}

.hero blockquote {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 1px solid rgba(247, 244, 239, 0.8);
}

.hero blockquote p {
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 32px;
  padding: 12px 22px;
  border: 1px solid rgba(247, 244, 239, 0.9);
  border-radius: 6px;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  transition: background 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn .ph-thin {
  font-size: 18px;
  line-height: 1;
}

.btn:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-ink {
  margin-top: 28px;
  border-color: rgba(28, 24, 21, 0.8);
  color: var(--ink);
}

.btn.btn-ink:hover {
  background: var(--ink);
  color: var(--paper);
}

.studio {
  background: var(--cream);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 520px);
  gap: clamp(36px, 5vw, 88px);
  align-items: stretch;
  padding-right: max(40px, calc((100vw - 1180px) / 2));
}

.studio-photo {
  position: relative;
  margin: 0;
  min-height: 460px;
}

.studio-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.studio-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px 0 96px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--brown);
}

.eyebrow::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 12px;
  background: currentColor;
}

.eyebrow.center {
  text-align: center;
}

.eyebrow.center::after {
  margin-inline: auto;
}

.studio h2 {
  margin-top: 18px;
  font-family: var(--serif-display);
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 38ch;
  margin-top: 18px;
  font-size: 1.35rem;
  line-height: 1.4;
  color: #3c3833;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
  max-width: 520px;
}

.facts li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 0;
  text-align: center;
  font-size: 1.18rem;
  line-height: 1.2;
  color: #3a352f;
}

.facts li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: #d5cfc6;
}

.facts .ph-thin {
  font-size: 30px;
  line-height: 1;
}

.founder-name {
  margin-top: 42px;
  font-family: var(--script);
  font-size: 3.15rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
}

.founder-role {
  margin-top: -18px;
  font-size: 1.25rem;
  font-style: italic;
  color: #4e4943;
}

.services {
  padding: 92px 0 104px;
  background: var(--brown);
  color: var(--paper);
}

.services .eyebrow {
  color: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 32px;
  margin-top: 48px;
}

.service-grid figure {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.service-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 0 1px rgba(247, 244, 239, 0.28);
}

.service-grid figcaption {
  text-align: left;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.projects {
  padding: 96px 0 108px;
  background: var(--cream);
}

.projects h2 {
  margin-top: 16px;
  font-family: var(--serif-display);
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.project-list {
  margin-top: 64px;
}

.project-empty {
  max-width: 42ch;
  font-size: 1.3rem;
  line-height: 1.4;
  color: #3c3833;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
}

.project + .project {
  margin-top: 72px;
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.project:nth-child(even) {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.project:nth-child(even) .project-copy {
  order: -1;
}

.project:nth-child(even) figure {
  margin: 15px 15px 0 0;
}

.project:nth-child(even) .project-plate {
  left: auto;
  right: -15px;
}

.project figure {
  position: relative;
  margin: 15px 0 0 15px;
}

.project .project-plate {
  position: absolute;
  z-index: 0;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  background: var(--brown);
}

.project img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.project h3 {
  margin: 0;
  font-family: var(--serif-display);
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.project p {
  max-width: 38ch;
  margin-top: 14px;
  font-size: 1.3rem;
  line-height: 1.4;
  color: #3c3833;
}

.contact {
  padding: 96px 0 108px;
  background: var(--brown);
  color: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.contact-grid > .contact-list {
  margin-top: 0;
}

.contact .eyebrow,
.contact h2 {
  color: var(--paper);
}

.contact h2 {
  margin-top: 16px;
  font-family: var(--serif-display);
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 32ch;
  margin-top: 18px;
  font-size: 1.3rem;
  line-height: 1.4;
  color: rgba(247, 244, 239, 0.82);
}

.contact-copy > p.contact-place {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: var(--paper);
  font-size: 1.25rem;
}

.contact-place .ph-thin {
  font-size: 22px;
  line-height: 1;
}

.contact-list {
  margin-top: 36px;
}

.contact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid rgba(247, 244, 239, 0.18);
  font-size: 1.25rem;
}

.contact-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.contact-value {
  margin-left: auto;
  text-align: right;
}

.contact-list li:last-child {
  border-bottom: 1px solid rgba(247, 244, 239, 0.18);
}

.contact-list .ph-thin {
  font-size: 22px;
  line-height: 1;
}

.contact-list a {
  position: relative;
  text-decoration: none;
}

.contact-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 220ms var(--ease-out);
}

.contact-list a:focus-visible::after {
  transform: scaleX(1);
}

.footer {
  background: var(--brown);
  color: var(--paper);
  border-top: 1px solid rgba(247, 244, 239, 0.16);
}

.footer-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 84px;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-brand span {
  font-family: var(--serif-display);
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  text-transform: none;
}

.footer-note {
  color: rgba(247, 244, 239, 0.78);
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

@media (max-width: 980px) {
  .container {
    width: min(var(--measure), calc(100% - 40px));
  }

  .nav {
    position: fixed;
    top: 76px;
    right: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin: 0;
    padding: 22px 22px 18px;
    background: rgba(20, 17, 14, 0.97);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transform-origin: top center;
    pointer-events: none;
    transition:
      opacity 200ms var(--ease-out),
      transform 200ms var(--ease-out),
      visibility 0s linear 200ms;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition:
      opacity 200ms var(--ease-out),
      transform 200ms var(--ease-out),
      visibility 0s linear 0s;
  }

  .nav-toggle {
    display: grid;
  }

  .studio-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-right: 0;
  }

  .studio-copy {
    padding: 0 20px 72px;
  }

  .studio-photo {
    min-height: 0;
  }

  .studio-photo img {
    position: static;
    height: auto;
    aspect-ratio: 370 / 290;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .project,
  .project:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .project:nth-child(even) .project-copy {
    order: 0;
  }

  .project:nth-child(even) figure {
    margin: 15px 0 0 15px;
  }

  .project:nth-child(even) .project-plate {
    left: -15px;
    right: auto;
  }

  .project + .project {
    margin-top: 48px;
    padding-top: 48px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-grid > .contact-copy {
    order: -1;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(20, 17, 14, 0.5) 0%, rgba(20, 17, 14, 0.55) 28%, rgba(20, 17, 14, 0.82) 100%),
      url("../assets/hero.jpg") center 30% / cover no-repeat;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-lead,
  .hero blockquote p {
    font-size: 1.3rem;
  }

  .facts {
    max-width: none;
  }

  .facts li {
    padding-inline: 8px;
    font-size: 1.02rem;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 0;
    gap: 10px;
  }

  .footer-links {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .header,
  .btn,
  .social,
  .nav-toggle,
  .logo,
  .nav a::after,
  .contact-list a::after {
    transition: none;
  }

  .btn:active,
  .social:active,
  .nav-toggle:active {
    transform: none;
  }

  .hero-copy {
    animation: hero-in-fade 700ms var(--ease-out-soft) 150ms both;
  }

  .logo,
  .nav a,
  .header-tools .social,
  .nav-toggle {
    animation-name: hero-in-fade;
    animation-duration: 600ms;
  }

  .nav,
  .nav.is-open {
    transform: none;
    transition: opacity 200ms var(--ease-out), visibility 0s linear 200ms;
  }

  .nav.is-open {
    transition: opacity 200ms var(--ease-out), visibility 0s linear 0s;
  }
}

@keyframes hero-in-fade {
  from {
    opacity: 0;
  }
}
