:root {
  --ink: #26231f;
  --ink-soft: #655f57;
  --paper: #eeeae3;
  --paper-deep: #d8d1c7;
  --stone: #8b877f;
  --taupe: #746f67;
  --wood: #493b2e;
  --white: #f8f5ef;
  --line: rgba(38, 35, 31, 0.2);
  --serif: "Italiana", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.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; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 200; padding: .7rem 1rem; background: var(--white); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  min-height: 7rem;
  padding: 1.65rem 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  transition: min-height 300ms ease, background 300ms ease, color 300ms ease, backdrop-filter 300ms ease;
}
.site-header.is-scrolled { min-height: 5.4rem; background: rgba(238,234,227,.9); color: var(--ink); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: .85rem; }
.brand-logo { width: 3.25rem; height: 3.25rem; object-fit: contain; transition: filter 300ms ease; }
.site-header.is-scrolled .brand-logo { filter: brightness(.18); }
.brand-name { font-family: var(--serif); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(1.5rem, 2.5vw, 3rem); }
.main-nav a { font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; transition: opacity 180ms ease; }
.main-nav a:hover { opacity: .58; }
.main-nav .nav-contact { padding: .78rem 1.2rem; border: 1px solid currentColor; }
.menu-button { display: none; }

.hero { min-height: 100svh; position: relative; display: grid; place-items: center; overflow: hidden; background: var(--ink); color: var(--white); }
.hero-visual { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.64) saturate(.72) contrast(.94); animation: gentleZoom 20s ease-out both; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,18,14,.28), transparent 55%), linear-gradient(180deg, rgba(14,12,10,.28), transparent 35%, rgba(14,12,10,.38)); }
.hero-visual figcaption { position: absolute; left: 4vw; right: 4vw; bottom: 2.4rem; z-index: 2; display: flex; justify-content: flex-end; gap: 1.2rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; }
.hero-copy { position: relative; z-index: 3; width: min(74rem, 84vw); text-align: center; }
.eyebrow, .section-label { margin: 0 0 2rem; font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .18em; }
.hero h1, .statement h2, .section-heading h2, .services h2, .process h2, .contact h2 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.025em; }
.hero h1 { font-size: clamp(4rem, 8.2vw, 9.5rem); }
em { font-style: italic; font-weight: 400; }
.hero-intro { width: min(34rem, 82vw); margin: 2.1rem auto 0; color: rgba(248,245,239,.78); font-size: clamp(1rem, 1.25vw, 1.2rem); font-weight: 300; }
.hero-scroll { position: absolute; z-index: 4; left: 4vw; bottom: 2.35rem; display: flex; gap: 1rem; align-items: center; font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; }
.hero-scroll span { font-size: 1.1rem; }
@keyframes gentleZoom { from { transform: scale(1.06); } to { transform: scale(1); } }

.statement { padding: clamp(8rem, 13vw, 13rem) 9vw; display: grid; grid-template-columns: 1fr 3.1fr; gap: 5vw; background: #ded8cf; }
.statement .section-label { grid-row: 1 / 3; }
.statement h2 { max-width: 74rem; font-size: clamp(3.3rem, 6vw, 7rem); }
.statement h2 em { color: var(--wood); }
.statement-detail { max-width: 50rem; margin: 4rem 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; color: var(--ink-soft); font-weight: 300; }
.statement-detail p { margin: 0; }

.projects { padding: clamp(7rem, 11vw, 11rem) 2vw; background: var(--paper); }
.section-heading { margin: 0 2vw 5rem; display: grid; grid-template-columns: 1fr 2fr auto; align-items: end; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.section-heading .section-label { margin: 0; }
.section-heading h2 { font-size: clamp(3.4rem, 6vw, 7rem); }
.project-count { font-size: .68rem; letter-spacing: .14em; }
.portfolio-list { display: flex; flex-direction: column; gap: 2vw; }
.portfolio-project { position: relative; height: min(78vw, 68rem); min-height: 44rem; overflow: hidden; background: var(--stone); }
.project-meta { position: absolute; z-index: 8; left: 2.5rem; right: 2.5rem; bottom: 2.2rem; padding: 0; display: flex; justify-content: space-between; align-items: flex-end; color: var(--white); pointer-events: none; }
.project-meta h3 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5.2vw, 6.3rem); font-weight: 400; line-height: .98; }
.project-kicker, .project-number { margin: 0 0 .6rem; color: rgba(248,245,239,.76); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; }
.project-number { margin: 0 0 .5rem; font-family: var(--serif); font-size: 1.15rem; }
.project-gallery { height: 100%; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(12, 1fr); gap: 3px; }
.gallery-item { margin: 0; overflow: hidden; background: var(--paper-deep); position: relative; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(16,13,10,.38)); pointer-events: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms cubic-bezier(.2,.6,.2,1); }
.gallery-item:hover img { transform: scale(1.025); }

.gallery-madrid .gallery-item:nth-child(1) { grid-column: 1 / 8; grid-row: 1 / 13; }
.gallery-madrid .gallery-item:nth-child(2) { grid-column: 8 / 13; grid-row: 1 / 6; }
.gallery-madrid .gallery-item:nth-child(3) { grid-column: 8 / 13; grid-row: 6 / 13; }
.gallery-moraleja .gallery-item:nth-child(1) { grid-column: 1 / 8; grid-row: 1 / 8; }
.gallery-moraleja .gallery-item:nth-child(2) { grid-column: 8 / 13; grid-row: 1 / 6; }
.gallery-moraleja .gallery-item:nth-child(3) { grid-column: 8 / 13; grid-row: 6 / 13; }
.gallery-moraleja .gallery-item:nth-child(4) { grid-column: 1 / 8; grid-row: 8 / 13; }
.gallery-salamanca .gallery-item:nth-child(1) { grid-column: 1 / 9; grid-row: 1 / 13; }
.gallery-salamanca .gallery-item:nth-child(2) { grid-column: 9 / 13; grid-row: 1 / 10; }
.gallery-salamanca .gallery-item:nth-child(3) { grid-column: 9 / 13; grid-row: 10 / 13; }
.gallery-marques .gallery-item:first-child { grid-column: 1 / 9; grid-row: 1 / 13; }
.gallery-marques .gallery-item:last-child { grid-column: 9 / 13; grid-row: 1 / 13; }

.services { padding: clamp(8rem, 12vw, 12rem) 8vw; background: #302d28; color: var(--paper); }
.section-label--light { color: rgba(248,245,239,.65); }
.services-intro { display: grid; grid-template-columns: 1fr 2.6fr; gap: 4vw; margin-bottom: 7rem; }
.services-intro h2 { font-size: clamp(3.4rem, 6vw, 7rem); }
.service-list { margin-left: 28%; border-top: 1px solid rgba(255,255,255,.24); }
.service-item { padding: 2.5rem 0; display: grid; grid-template-columns: 5rem 1fr; border-bottom: 1px solid rgba(255,255,255,.24); }
.service-number { color: #b5a895; font-family: var(--serif); }
.service-item h3 { margin: 0 0 .7rem; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3.4rem); font-weight: 400; }
.service-item p { max-width: 42rem; margin: 0; color: rgba(243,239,232,.7); font-weight: 300; }
.service-item--rental { margin-top: 2rem; padding: 2.6rem; background: #6d675e; border-bottom: 0; }
.service-item--rental .service-number, .service-item--rental p { color: var(--paper); }
.service-badge, .service-points { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; }
.service-points { margin-top: 1.8rem !important; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.3); }

.process { padding: clamp(8rem, 12vw, 12rem) 8vw; display: grid; grid-template-columns: 1fr 1.5fr; gap: 8vw; background: var(--paper); }
.process-title { position: sticky; top: 8rem; align-self: start; }
.process h2 { font-size: clamp(3.7rem, 5.5vw, 6.5rem); }
.process-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-steps li { padding: 2.7rem 0 3.4rem; display: grid; grid-template-columns: 5rem 1fr; border-bottom: 1px solid var(--line); }
.process-steps > li > span { font-size: .7rem; letter-spacing: .12em; color: var(--taupe); }
.process-steps h3 { margin: 0 0 .7rem; font-family: var(--serif); font-size: 2.5rem; font-weight: 400; }
.process-steps p { max-width: 31rem; margin: 0; color: var(--ink-soft); font-weight: 300; }

.quote { margin: 0; padding: clamp(8rem, 13vw, 13rem) 6vw; background: #847e74; color: var(--white); text-align: center; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(3.5rem, 7vw, 8rem); line-height: 1.02; }
.quote p { margin: 2.5rem 0 0; font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; }

.contact { padding: clamp(8rem, 13vw, 13rem) 8vw 10rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 8vw; background: #23211e; color: var(--paper); }
.contact h2 { font-size: clamp(3.8rem, 6.5vw, 7.5rem); }
.contact-action { align-self: end; }
.contact-action > p { max-width: 34rem; margin: 0 0 3rem; color: rgba(243,239,232,.7); font-size: 1.08rem; font-weight: 300; }
.contact-button { padding: 1.3rem 0; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.4); border-bottom: 1px solid rgba(255,255,255,.4); font-size: clamp(1rem, 1.8vw, 1.5rem); }

.floating-contact { position: fixed; z-index: 70; left: 50%; bottom: 1.15rem; width: min(46rem, calc(100vw - 3rem)); transform: translateX(-50%); padding: 1rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: rgba(102,98,91,.94); color: var(--white); backdrop-filter: blur(10px); box-shadow: 0 12px 35px rgba(0,0,0,.14); font-family: var(--serif); font-size: 1.05rem; }
.floating-contact a { display: flex; gap: .8rem; align-items: center; font-family: var(--sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; }
.site-footer { padding: 3rem 4vw 6rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; background: #171614; color: var(--paper); border-top: 1px solid rgba(255,255,255,.12); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a, .site-footer p { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.site-footer p { margin: 0; text-align: right; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 750ms ease, transform 750ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .site-header { min-height: 5.5rem; padding: 1rem 1.2rem; }
  .brand-logo { width: 2.7rem; height: 2.7rem; }
  .menu-button { width: 2.8rem; height: 2.8rem; padding: 0; display: flex; flex-direction: column; justify-content: center; gap: .42rem; align-items: center; border: 0; background: transparent; color: inherit; cursor: pointer; }
  .menu-button span:not(.sr-only) { width: 1.5rem; height: 1px; background: currentColor; transition: transform 180ms ease; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 0; z-index: -1; padding: 8rem 1.4rem 3rem; display: none; flex-direction: column; align-items: flex-start; background: var(--paper); color: var(--ink); }
  .main-nav.is-open { display: flex; }
  .main-nav a { font-family: var(--serif); font-size: 2.5rem; text-transform: none; letter-spacing: 0; }
  .main-nav .nav-contact { margin-top: 1rem; font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; }
  .hero-copy { width: calc(100% - 2.4rem); }
  .hero h1 { font-size: clamp(3.8rem, 15vw, 7rem); }
  .hero-intro { margin-top: 1.8rem; }
  .hero-scroll { left: 1.2rem; bottom: 1.5rem; }
  .hero-visual figcaption { right: 1.2rem; bottom: 1.55rem; }
  .hero-visual figcaption span:first-child { display: none; }
  .statement { padding: 7rem 1.2rem; display: block; }
  .statement h2 { font-size: clamp(3rem, 12vw, 5.5rem); }
  .statement-detail { grid-template-columns: 1fr; margin-top: 3rem; gap: 1.5rem; }
  .projects { padding: 6.5rem .7rem; }
  .section-heading { margin: 0 .5rem 3rem; grid-template-columns: 1fr auto; gap: 1rem; }
  .section-heading .section-label { grid-column: 1 / 3; margin-bottom: 1.3rem; }
  .section-heading h2 { font-size: clamp(3rem, 13vw, 5.5rem); }
  .portfolio-list { gap: .7rem; }
  .portfolio-project { height: 105svh; min-height: 42rem; }
  .project-meta { left: 1.1rem; right: 1.1rem; bottom: 1.2rem; }
  .project-meta h3 { font-size: clamp(2.4rem, 10vw, 4rem); }
  .project-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 58% 42%; }
  .gallery-madrid .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
  .gallery-madrid .gallery-item:nth-child(2) { grid-column: 1 / 2; grid-row: 2 / 3; }
  .gallery-madrid .gallery-item:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
  .gallery-salamanca { grid-template-rows: 58% 28% 14%; }
  .gallery-salamanca .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
  .gallery-salamanca .gallery-item:nth-child(2) { grid-column: 1 / 3; grid-row: 2 / 3; }
  .gallery-salamanca .gallery-item:nth-child(3) { grid-column: 1 / 3; grid-row: 3 / 4; }
  .gallery-marques { grid-template-rows: 70% 30%; }
  .gallery-marques .gallery-item:first-child { grid-column: 1 / 3; grid-row: 1 / 2; }
  .gallery-marques .gallery-item:last-child { grid-column: 1 / 3; grid-row: 2 / 3; }
  .gallery-moraleja .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
  .gallery-moraleja .gallery-item:nth-child(2) { grid-column: 1 / 2; grid-row: 2 / 3; }
  .gallery-moraleja .gallery-item:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
  .gallery-moraleja .gallery-item:nth-child(4) { display: none; }
  .services { padding: 7rem 1.2rem; }
  .services-intro { display: block; margin-bottom: 4rem; }
  .services-intro h2 { font-size: clamp(3.2rem, 13vw, 5rem); }
  .service-list { margin-left: 0; }
  .service-item { grid-template-columns: 3.2rem 1fr; }
  .service-item--rental { padding: 2rem 1.4rem; }
  .process { padding: 7rem 1.2rem; display: block; }
  .process-title { position: static; margin-bottom: 4rem; }
  .process-steps li { grid-template-columns: 3.2rem 1fr; }
  .quote { padding: 7rem 1.2rem; }
  .quote blockquote { font-size: clamp(3.2rem, 13vw, 5.5rem); }
  .contact { padding: 7rem 1.2rem 10rem; display: block; }
  .contact h2 { font-size: clamp(3.5rem, 14vw, 6rem); }
  .contact-action { margin-top: 4rem; }
  .contact-button span:first-child { overflow-wrap: anywhere; }
  .floating-contact { bottom: .7rem; width: calc(100vw - 1.4rem); padding: .85rem 1rem; }
  .floating-contact > span { display: none; }
  .floating-contact a { width: 100%; justify-content: space-between; }
  .site-footer { display: flex; align-items: flex-start; flex-direction: column; padding: 3rem 1.2rem 6rem; }
  .site-footer p { text-align: left; }
}

@media (max-width: 480px) {
  .brand-name { font-size: .78rem; }
  .hero h1 { font-size: 3.65rem; }
  .hero-intro { font-size: .95rem; }
  .project-count { display: none; }
  .section-heading { display: block; }
  .project-meta h3 { font-size: 2.35rem; }
  .service-item { display: block; }
  .service-number { display: block; margin-bottom: 1rem; }
}
