@font-face {
  font-family: Inter;
  src: url("assets/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

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

:root {
  color-scheme: light;
  --black: #101113;
  --ink: #181a1d;
  --muted: #4a4e55;
  --line: #d9dbdf;
  --red: #c7191f;
  --red-dark: #a71219;
  --red-light: #ff7775;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: Inter, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 1rem/1.65 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid #3076ef; outline-offset: 5px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--head);
  font-weight: 700;
  line-height: 1;
}

p { margin: 0; }
.wrap { width: min(100% - 5rem, 73.75rem); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: .7rem 1rem;
  transform: translateY(-160%);
  background: #fff;
  color: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  border-bottom: 1px solid #303137;
  background: #000;
  color: #fff;
}

.header-layout, .footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-layout { min-height: 5.25rem; }
.brand { flex-shrink: 0; }
.brand img { width: 11rem; height: auto; }
.site-header nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2.5rem); }
.site-header nav a { font-size: .94rem; font-weight: 600; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: .35em; }

.nav-contact {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding-inline: 1.1rem;
  border: 1px solid #63636a;
  border-radius: .2rem;
}
.nav-contact:hover { border-color: #fff; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 4px solid var(--red);
  background: var(--black);
  color: #fff;
}

.hero-image {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 30%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  filter: saturate(.58);
  mask-image: linear-gradient(90deg, transparent, #000 16%);
}

.hero-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #101113 0%, #101113f5 12%, #10111371 48%, #10111300 80%),
    linear-gradient(0deg, #10111378, transparent 48%);
  content: "";
}

.hero-layout {
  display: flex;
  min-height: clamp(31rem, 48vw, 38rem);
  align-items: center;
  padding-block: 4.2rem 4.6rem;
}

.hero-content { width: min(100%, 41rem); }
.eyebrow, .project-type {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: .65rem; color: #f5f5f5; }
.eyebrow::before { width: 1.5rem; height: .17rem; background: var(--red-light); content: ""; }

.hero h1 {
  margin-top: .65rem;
  font-size: clamp(5.35rem, 8.1vw, 8.2rem);
  letter-spacing: -.028em;
  line-height: .87;
}

.hero-description {
  max-width: 29rem;
  margin-block: 1.55rem 1.8rem;
  color: #ededf0;
  font-size: 1.075rem;
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  justify-content: center;
  align-items: center;
  padding: .7rem 1.3rem;
  border-radius: .2rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.button-red { background: var(--red); color: #fff; }
.button-red:hover { background: var(--red-dark); }
.section { padding-block: clamp(3.6rem, 6.4vw, 6.1rem); }
.section-intro { margin-bottom: 1.9rem; }
h2 { font-size: clamp(2.9rem, 5.6vw, 4.3rem); letter-spacing: -.018em; }
.section-intro p { max-width: 40rem; margin-top: .8rem; color: var(--muted); }
.service-grid, .project-grid { display: grid; gap: 1.25rem; }
.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.service {
  display: flex;
  min-height: 17rem;
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2.3rem);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: .25rem;
  background-color: #f7f2e8;
}

.service h3, .project h3 { font-size: clamp(1.8rem, 3vw, 2.55rem); }
.service p { max-width: 34rem; margin-top: .7rem; color: var(--muted); }
.service ul { margin: 1rem 0 0; padding-inline-start: 1.15rem; }
.service li + li { margin-top: .18rem; }
.service li::marker { color: var(--red); }

.retrofit {
  border-color: #303137;
  border-top-color: var(--red);
  background: linear-gradient(90deg, #17181b 46%, #17181bea 70%, #17181b80 100%),
    #17181b url("assets/takumi-tablero.webp") right 38% / 52% auto no-repeat;
  color: #fff;
}
.retrofit .service-body { max-width: 28rem; }
.retrofit p { color: #eeeff1; }
.retrofit li::marker { color: var(--red-light); }

.projects {
  border-block: 1px solid #e2e3e6;
  background: #f3f4f6;
}

.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.project {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .25rem;
  background: #fff;
}

.project img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  background: #dedfe1;
}

.project-body { padding: 1.3rem 1.4rem 1.55rem; }
.project-type { color: var(--red-dark); }
.project h3 { margin-block: .35rem .65rem; }
.project-body > p:last-child { color: var(--muted); }

.contact { padding-block: clamp(3rem, 6vw, 5rem); background: var(--red-dark); color: #fff; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2.3rem; }
.contact h2 { font-size: clamp(2.8rem, 5.25vw, 4rem); }
.contact p { max-width: 36rem; margin-top: .8rem; }
.contact-actions { display: grid; justify-items: start; gap: .65rem; }
.button-light { background: #fff; color: #841119; }
.button-light:hover { background: #ffe6e6; }
.contact .email { font-size: .94rem; text-underline-offset: .24em; overflow-wrap: anywhere; }

.site-footer { background: var(--black); color: #e5e6e8; }
.footer-layout { min-height: 4.6rem; font-size: .94rem; }
.footer-layout a { padding-block: .65rem; text-underline-offset: .24em; }

@media (max-width: 62rem) {
  .hero-image { left: 23%; }
  .hero-image::after { background: linear-gradient(90deg, #101113 0%, #101113f1 16%, #10111361 67%, #1011131a 100%); }
  .retrofit { background: #17181b; }
}

@media (max-width: 45rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .header-layout { min-height: 4.25rem; }
  .brand img { width: 8rem; }
  .site-header nav { gap: .85rem; }
  .site-header nav a { font-size: .875rem; }
  .nav-contact { padding-inline: .65rem; }
  .hero-layout { min-height: 32.5rem; padding-block: 4rem 2.75rem; align-items: end; }
  .hero-image { inset: 0; }
  .hero-image img { object-position: 65% top; mask-image: none; }
  .hero-image::after {
    background: linear-gradient(0deg, #101113 0%, #101113fa 19%, #101113b8 55%, #10111347 100%);
  }
  .hero h1 { font-size: clamp(4.35rem, 12vw, 6.25rem); }
  .hero-description { margin-block: 1.2rem 1.45rem; font-size: 1rem; }
  .service-grid, .project-grid, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .service { min-height: auto; }
  .contact-layout { gap: 1.5rem; }
}

@media (max-width: 30rem) {
  .header-layout { gap: .65rem; }
  .brand img { width: 6rem; }
  .site-header nav { gap: .65rem; }
  .site-header nav a { display: inline-flex; min-height: 2.75rem; align-items: center; }
  .nav-contact { padding-inline: .5rem; }
}

@media (max-width: 23rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-layout { flex-wrap: wrap; justify-content: center; gap: .4rem 1rem; padding-block: .65rem; }
  .brand img { width: 7rem; }
  .hero h1 { font-size: clamp(3.85rem, 14vw, 4.35rem); }
}

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