@font-face {
  font-family: Inter;
  src: url("/assets/inter-400-700.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #151515;
  --dark: #101010;
  --red: #d71025;
  --red-hover: #b90e20;
  --bright: #ff2639;
  --paper: #f5f5f4;
  --muted: #565654;
  --line: #dcdcd9;
  --header: 76px;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --body: Inter, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-family: var(--body);
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 10px);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #347fec; outline-offset: 4px; }
.wrap { width: min(100% - 96px, 1240px); margin-inline: auto; }
.section-pad { padding-block: 94px; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 20;
  padding: 8px 14px;
  background: #fff;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 10;
  color: #fff;
  background: var(--dark);
  border-bottom: 1px solid #2d2d2d;
}
.header-inner { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; flex: none; align-items: center; }
.brand img { width: 176px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.45vw, 36px); }
.site-nav a, .footer-nav a, .footer-legal a { text-decoration: none; }
.site-nav a { position: relative; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.site-nav a:not(.nav-contact)::after {
  position: absolute;
  inset: auto 0 -7px;
  height: 2px;
  background: var(--bright);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.site-nav .nav-contact { padding: 10px 19px; border: 1px solid #686868; transition: background .2s, border-color .2s; }
.site-nav .nav-contact:hover, .site-nav .nav-contact[aria-current] { background: var(--red); border-color: var(--red); }
.menu-button { display: none; }

.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #272320; }
.hero-media, .hero-photo, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-photo { object-fit: cover; object-position: center 54%; opacity: 0; transform: scale(1.025); transition: opacity .65s ease, transform 1.1s ease-out; }
.hero-photo.is-current { opacity: 1; transform: scale(1); }
.hero-photo[data-hero-photo="madring"] { object-position: 55% 52%; }
.hero-photo[data-hero-photo="valdecarros"] { object-position: 58% center; }
.hero::after {
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(10,10,10,.88), rgba(10,10,10,.68) 27%, rgba(10,10,10,.22) 66%, rgba(10,10,10,.05)),
    linear-gradient(0deg, rgba(10,10,10,.72), transparent 40%);
}
.hero-inner { position: relative; display: flex; align-items: center; min-height: clamp(560px, 46vw, 710px); padding-block: 53px 77px; }
.hero-copy { animation: enter .75s both; }
@keyframes enter { from { opacity: 0; transform: translateY(17px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #3c3c3a;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow > span { width: 28px; height: 2px; display: block; flex: none; background: var(--red); }
.eyebrow--light { color: #fff; }
.eyebrow--light > span { background: var(--bright); }
.hero h1, .legal-heading h1 {
  margin-block: 17px 24px;
  font-family: var(--display);
  font-size: clamp(5.1rem, 9.2vw, 9.15rem);
  font-weight: 800;
  line-height: .80;
  letter-spacing: -.014em;
  text-transform: uppercase;
}
.hero h1 span, .about h2 span, .legal-heading h1 span { color: var(--bright); }
.hero-description { max-width: 440px; margin-block: 29px 26px; font-size: clamp(1.02rem, 1.35vw, 1.22rem); color: #f1f0ef; }
.button {
  min-height: 50px;
  padding: 12px 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background .22s, color .22s, border-color .22s;
}
.button--red { color: white; background: var(--red); }
.button--red:hover { background: var(--red-hover); }
.button--white { color: var(--ink); background: white; }
.button--white:hover { background: var(--ink); color: white; }
.button--outline { color: var(--ink); background: transparent; border-color: #9c9c98; }
.button--outline:hover { background: var(--ink); border-color: var(--ink); color: white; }
.hero-portfolio { position: absolute; inset: auto 0 31px auto; text-align: right; }
.hero-project { max-width: 260px; font-size: .9rem; font-weight: 650; color: #fff; }
.hero-tabs { display: flex; justify-content: flex-end; gap: 5px; }
.hero-tabs button { position: relative; width: 36px; height: 28px; border: 0; padding: 0; background: transparent; }
.hero-tabs button::before { position: absolute; inset: 12px 0 auto; height: 3px; background: #bcbcbc; content: ""; transition: background .2s; }
.hero-tabs button:is(:hover, [aria-pressed="true"])::before { background: var(--bright); }

.projects { background: var(--paper); }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 33px; }
h2 {
  margin-top: 9px;
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5.85rem);
  font-weight: 800;
  line-height: .88;
  letter-spacing: -.012em;
  text-transform: uppercase;
}
h2 span { color: var(--red); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button {
  min-height: 39px;
  padding: 6px 12px;
  color: #282828;
  background: transparent;
  border: 1px solid #cececb;
  font-size: .875rem;
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { color: #fff; border-color: var(--ink); background: var(--ink); }
.projects-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 25px 20px; }
.project-card { grid-column: span 2; min-width: 0; }
.project-card--featured { grid-column: span 3; }
.projects-grid.is-filtered .project-card { grid-column: span 2; }
.project-link { display: block; height: 100%; color: var(--ink); background: #fff; text-decoration: none; border-bottom: 2px solid #dededd; transition: border-color .27s; }
.project-link:hover, .project-link:focus-visible { border-bottom-color: var(--red); }
.project-image { aspect-ratio: 1.58; overflow: hidden; background: #dedbd6; }
.project-card--featured .project-image { aspect-ratio: 1.88; }
.projects-grid.is-filtered .project-image { aspect-ratio: 1.58; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.65,.25,1); }
.project-link:hover img, .project-link:focus-visible img { transform: scale(1.045); }
.project-link[data-project="a5"] img { object-position: center 42%; }
.project-link[data-project="castellana"] img { object-position: center 44%; }
.project-link[data-project="atocha"] img { object-position: center 65%; }
.project-meta { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 15px 19px 17px; }
.project-type { color: var(--muted); font-size: .86rem; font-weight: 650; }
.project-type span { color: var(--red); }
.project-meta h3 { margin-top: 3px; font-family: var(--display); font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.07; font-weight: 700; }
.project-open { position: relative; flex: 0 0 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); transition: color .22s, background .22s, border-color .22s; }
.project-open::before, .project-open::after { grid-area: 1 / 1; background: currentColor; content: ""; }
.project-open::before { width: 11px; height: 1.5px; }
.project-open::after { height: 11px; width: 1.5px; }
.project-link:hover .project-open, .project-link:focus-visible .project-open { background: var(--red); border-color: var(--red); color: #fff; }
.projects-more { margin-top: 30px; text-align: center; }
html:not(.js) :is(.projects-more,.filters,.hero-tabs) { display: none; }

.services { background: #fff; }
.service-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(38px, 7vw, 110px); }
.service-lead { align-self: start; }
.service-lead > p:last-child { margin-top: 24px; max-width: 365px; color: var(--muted); font-size: 1.04rem; }
.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 42px 1fr; gap: 19px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.service-row h3 { margin-bottom: 4px; font-family: var(--display); font-weight: 700; font-size: 1.85rem; line-height: 1; }
.service-row p { color: var(--muted); }
.service-symbol { position: relative; width: 36px; height: 36px; color: var(--red); }
.service-symbol::before, .service-symbol::after { content: ""; position: absolute; border: 2px solid currentColor; }
.symbol-civil::before { inset: 11px 6px 10px; transform: skewX(-24deg); }
.symbol-civil::after { inset: 18px 6px 3px; border-top: 0; transform: skewX(-24deg); }
.symbol-build::before { inset: 4px 14px 5px 5px; }
.symbol-build::after { inset: 12px 5px 5px 22px; border-left: 0; }
.symbol-team::before { inset: 3px 12px 19px; border-radius: 50%; }
.symbol-team::after { inset: 18px 6px 5px; border-radius: 10px 10px 0 0; }

.about { display: grid; grid-template-columns: 1fr 1fr; color: white; background: var(--ink); }
.about-photo { position: relative; min-height: 450px; overflow: hidden; }
.about-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.photo-caption { position: absolute; inset: auto auto 19px 20px; padding: 5px 10px; color: white; background: rgba(15,15,15,.9); font-size: .875rem; }
.about-copy { align-self: center; padding: clamp(42px, 6.7vw, 105px) max(48px, calc((100vw - 1240px) / 2)) clamp(45px, 6vw, 90px) clamp(36px, 5.8vw, 87px); }
.about-copy h2 { font-size: clamp(3rem, 5.4vw, 5.1rem); margin-bottom: 24px; }
.about-copy > p:not(.eyebrow) { max-width: 490px; color: #e2e2e2; margin-bottom: 14px; }
.text-link { display: inline-block; margin-top: 9px; font-weight: 650; text-underline-offset: 4px; }
.text-link:hover { color: #ff7781; }

.careers { background: var(--red); color: #fff; overflow: hidden; }
.careers-layout { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(20px, 7vw, 106px); }
.careers-copy { padding: 70px 0; }
.careers-copy h2 span { color: white; }
.careers-copy .eyebrow > span { background: #fff; }
.careers-copy > p:not(.eyebrow) { margin-top: 20px; max-width: 455px; }
.careers-copy .button { margin-top: 21px; }
.careers-copy .careers-note { font-size: .875rem; }
.careers-note a { text-underline-offset: 3px; }
.careers-photo { position: relative; min-height: 340px; }
.careers-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }

.contact-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(30px, 7vw, 95px); }
.contact-intro { margin-block: 20px; color: var(--muted); }
.contact-details { font-style: normal; border-top: 1px solid var(--line); }
.contact-details > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-details p { color: var(--muted); font-size: .875rem; font-weight: 650; }
.contact-details a { font-size: 1.03rem; font-weight: 650; overflow-wrap: anywhere; text-decoration: none; }
.contact-details a:hover { color: var(--red-hover); text-decoration: underline; text-underline-offset: 3px; }
.site-footer { padding-block: 34px 20px; color: #fff; background: var(--dark); }
.footer-main, .footer-legal { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-main { padding-bottom: 24px; }
.footer-nav, .footer-legal nav { display: flex; flex-wrap: wrap; gap: 11px 22px; }
.footer-nav, .footer-legal { font-size: .875rem; }
.footer-legal { padding-top: 17px; border-top: 1px solid #3b3b3b; color: #cbcbc9; }
.footer-legal small { font-size: inherit; }
:is(.footer-nav,.footer-legal) a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.project-dialog {
  width: min(900px, calc(100% - 42px));
  max-height: calc(100% - 42px);
  padding: 0;
  color: var(--ink);
  border: none;
  background: #fff;
}
.project-dialog::backdrop { background: rgba(0,0,0,.8); }
.project-dialog[open] { animation: enter .25s both; }
.dialog-header, .dialog-detail { padding: 18px 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.dialog-header h2 { font-size: clamp(2.2rem,4.7vw,3.8rem); margin-top: 5px; }
.dialog-close, .gallery-controls button { border: 1px solid #bdbdbb; background: white; color: var(--ink); font-size: .875rem; min-height: 40px; padding: 7px 10px; white-space: nowrap; }
.dialog-close span { margin-left: 4px; font-size: 1.1em; }
:is(.dialog-close,.gallery-controls button):hover { background: var(--ink); color: white; border-color: var(--ink); }
.dialog-figure img { width: 100%; height: min(48vh, 500px); object-fit: contain; background: var(--dark); }
.dialog-figure figcaption { padding: 9px 24px 0; color: var(--muted); font-size: .875rem; }
.dialog-detail > p { max-width: 490px; }
.gallery-controls { display: flex; flex: none; align-items: center; gap: 8px; }
.gallery-count { padding-inline: 3px; color: var(--muted); font-size: .875rem; white-space: nowrap; }
html:has(.project-dialog[open]) { overflow: hidden; }

.legal-heading { padding-block: 52px 63px; color: white; background: var(--ink); }
.legal-heading h1 { margin-bottom: 0; font-size: clamp(3.2rem, 8vw, 7rem); line-height: .9; }
.legal-back { color: #efefed; font-size: .875rem; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.legal-layout { display: grid; grid-template-columns: minmax(0,760px) minmax(190px,1fr); align-items: start; gap: 35px 70px; padding-block: 50px 85px; }
.legal-content h2 { margin: 30px 0 12px; font-size: 2.25rem; line-height: 1; text-transform: none; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p + p { margin-top: 12px; }
.legal-content a { color: var(--red-hover); overflow-wrap: anywhere; text-underline-offset: 3px; }
.legal-content .legal-reference { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 15px; }
.legal-details { margin: 0; }
.legal-details > div { display: grid; grid-template-columns: 160px 1fr; gap: 7px 15px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.legal-details :is(dt,dd) { margin: 0; }
.legal-details dt { font-weight: 650; }
.legal-side { display: grid; gap: 9px; padding: 15px 17px; background: var(--paper); }
.legal-side a { font-size: .94rem; text-underline-offset: 3px; }
.legal-side a[aria-current="page"] { color: var(--red-hover); font-weight: 700; }

.has-reveal [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(16px); }
.has-reveal [data-reveal] { transition: opacity .52s ease, transform .52s ease; }

@media (max-width: 1120px) {
  .section-top { align-items: flex-start; flex-direction: column; gap: 21px; }
  .hero h1 { font-size: clamp(5.5rem, 10.8vw, 8rem); }
}
@media (max-width: 930px) {
  :root { --header: 68px; }
  .wrap { width: calc(100% - 64px); }
  .section-pad { padding-block: 70px; }
  .brand img { width: 150px; }
  .site-nav { gap: 16px; }
  .site-nav .nav-contact { padding-inline: 12px; }
  .about-copy { padding-right: 32px; }
  .legal-layout { gap: 32px; }
}
@media (max-width: 760px) {
  :root { --header: 64px; }
  .wrap { width: calc(100% - 42px); }
  .section-pad { padding-block: 56px; }
  .header-inner { flex-wrap: wrap; gap: 0; }
  .brand img { width: 145px; }
  .js .menu-button { display: inline-flex; align-items: center; gap: 9px; padding: 7px 9px; min-height: 42px; color: #fff; background: transparent; border: 1px solid #666; font-size: .875rem; }
  .menu-icon { position: relative; width: 15px; height: 10px; border-block: 1px solid currentColor; }
  .menu-icon::before { position: absolute; inset: 3.5px 0 auto; height: 1px; background: currentColor; content: ""; }
  .site-nav { flex: 1 0 100%; flex-wrap: wrap; gap: 8px 16px; padding-block: 4px 12px; }
  .js .site-nav { position: absolute; inset: 100% 0 auto; display: none; background: var(--dark); border-top: 1px solid #3b3b3b; padding: 9px 21px 14px; }
  .js .site-nav.is-open { display: grid; gap: 0; }
  .js .site-nav a { padding: 10px 0; }
  .js .site-nav a:not(.nav-contact)::after { inset: auto auto 4px 0; width: 21px; }
  .js .site-nav .nav-contact { justify-self: start; margin-top: 7px; padding: 8px 12px; }
  .hero-inner { min-height: clamp(510px, 100vw, 590px); padding-block: 56px 105px; }
  .hero-photo { object-position: 58% center; }
  .hero::after { background: linear-gradient(90deg, rgba(10,10,10,.79), rgba(10,10,10,.5) 65%, rgba(10,10,10,.22)), linear-gradient(0deg, rgba(10,10,10,.75), transparent 38%); }
  .hero h1 { font-size: clamp(4.4rem, 13.65vw, 7rem); }
  .hero-description { margin-top: 21px; max-width: 340px; }
  .hero-portfolio { bottom: 20px; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
  .project-card, .projects-grid.is-filtered .project-card { grid-column: span 1; }
  .project-image, .project-card--featured .project-image, .projects-grid.is-filtered .project-image { aspect-ratio: 1.35; }
  .project-meta { padding: 11px 12px; align-items: start; }
  .project-type { font-size: .82rem; }
  .project-meta h3 { font-size: 1.55rem; }
  .project-open { flex-basis: 27px; height: 27px; }
  .service-layout, .contact-layout, .about, .careers-layout { grid-template-columns: 1fr; gap: 27px; }
  .about { gap: 0; }
  .about-photo { min-height: 300px; }
  .about-copy { padding: 39px 21px 51px; }
  .careers-copy { padding: 44px 0 0; }
  .careers-photo { min-height: 240px; }
  .careers-photo img { object-position: center 56%; }
  .footer-main, .footer-legal { align-items: flex-start; flex-direction: column; gap: 14px; }
  .dialog-header, .dialog-detail, .dialog-figure figcaption { padding-inline: 14px; }
  .dialog-detail { flex-direction: column; }
  .legal-layout { grid-template-columns: 1fr; gap: 25px; padding-block: 38px 55px; }
  .legal-side { justify-self: start; }
  .legal-heading { padding-block: 40px 49px; }
}
@media (max-width: 475px) {
  .hero h1 { font-size: clamp(3.5rem, 14.15vw, 4.65rem); }
  .hero-inner { min-height: 490px; }
  .project-card--featured { grid-column: span 2; }
  .project-card--featured .project-image { aspect-ratio: 1.78; }
  .project-meta { gap: 6px; }
  .project-meta h3 { font-size: 1.42rem; }
  .project-open { display: none; }
  .filters { gap: 6px; }
  .filters button { padding-inline: 9px; }
  .service-row { gap: 10px; }
  .legal-details > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .has-reveal [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
}
