@font-face{font-family:DM;src:url(../lsf/fonts/dm-sans.woff2);font-weight:100 700;font-display:swap}
@font-face{font-family:DM;src:url(../lsf/fonts/dm-sans-italic.woff2);font-weight:100 500;font-style:italic;font-display:swap}
*{box-sizing:border-box}
:root{--gutter:var(--header-gutter,clamp(1.25rem,4vw,6rem));--cream:#f6f1e9;--ink:#221c18}
body{margin:0;color:var(--ink);background:var(--cream);font:1.04rem/1.5 DM,sans-serif}
a{color:inherit;text-decoration:none}
a:focus-visible,summary:focus-visible{outline:3px solid #ff9a87;outline-offset:4px}
.skip{position:absolute;top:-5rem;background:white;color:black;padding:.8rem;z-index:10}.skip:focus{top:0}
header{position:absolute;z-index:2;top:0;left:0;width:100%;display:flex;align-items:center;gap:3rem;padding:1.8rem var(--gutter);color:white}
.logo{width:clamp(7.5rem,12vw,12rem);display:block}
nav{display:flex;gap:2rem;margin-left:auto}nav a,.label,.down{font-size:.77rem;letter-spacing:.095em;text-transform:uppercase;font-weight:650}
.pill{display:inline-flex;align-items:center;gap:1.4rem;min-height:46px;padding:.68rem 1.15rem;border-radius:3rem;font-weight:600;font-size:.92rem}
.primary{background:#b62228;color:white}
.scene{position:relative;isolation:isolate;display:grid;align-content:end;min-height:100svh;padding:8rem var(--gutter) clamp(3rem,8vh,7rem);overflow:hidden;color:white}
.back{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover}
.scene::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#100c0ad6,transparent 28%),linear-gradient(24deg,#150f0ff2,transparent 76%)}
h1,h2,p{margin:0}
h1,h2{font-weight:450;letter-spacing:-.066em;line-height:.98;text-wrap:balance}
h1{font-size:clamp(4rem,9vw,10rem);margin:.24em 0}
em{font-weight:220}
.down{display:inline-flex;align-items:center;gap:.8rem;min-height:44px}
.down span{border:1px solid #fff9;border-radius:50%;width:2.4rem;height:2.4rem;display:grid;place-items:center}
h2{font-size:clamp(2.9rem,6vw,6.8rem)}
.paper{padding:clamp(5rem,10vw,11rem) var(--gutter);display:grid;grid-template-columns:1fr 2fr;gap:2rem}
.paper .label{color:#982127}.paper p:not(.label),.scene h2+p{max-width:38em;margin:1.65rem 0;font-size:clamp(1.06rem,1.4vw,1.4rem)}
.feature .label{margin-bottom:1.4rem}.feature::before,.contact::before{background:linear-gradient(50deg,#150e0bf2 10%,#150e0b91 55%,transparent)}
.home-scroll main > section, .home-scroll .service-panel {
  min-height:100vh;
  min-height:100dvh;
}
.phones{margin-top:1.25rem}.phones a:hover,nav a:hover{text-decoration:underline;text-underline-offset:.35em}
@media(min-width:751px){.opening .back{object-position:center 55%}}
@media(max-width:750px),
  (pointer: coarse) and (hover: none) and (max-height: 540px) and (max-width: 1024px) {header{flex-wrap:wrap;justify-content:space-between;gap:.8rem;padding:1.1rem var(--gutter)}nav{order:3;justify-content:space-between;width:100%;gap:.3rem;border-top:1px solid #fff5;padding-top:.4rem}nav a{min-height:44px;display:grid;align-items:center;font-size:.68rem}.scene{padding-top:11rem}.paper{grid-template-columns:1fr}.opening .back{object-position:58% center}.opening::before{background:linear-gradient(180deg,#110d0aec,transparent 38%,#130e0aee)}}
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}

.services { isolation: isolate; background: #281e18; }
.service-track { position: relative; }
.service-panel {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(3rem, 9svh, 8rem) var(--gutter);
  color: #fffaf5;
  background: #281e18;
}
.service-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #180f0ce6, #180f0cb8 28%, #180f0b22 74%);
}
.service-content { max-width: 56rem; }
.service-index { display:flex; align-items:center; gap:.7rem; font-size:.72rem; font-weight:650; letter-spacing:.14em; text-transform:uppercase; }
.service-index::before { content:""; width:2.4rem; height:2px; background:#e65350; }
.service-index span { color: #ffb1a6; }
.service-caption h2 { font-size:clamp(3.2rem,7.3vw,8.5rem); margin:.28em 0; line-height:.94; }
.service-caption h2 em { display:block; }
.service-caption p { font-size:clamp(1.05rem,1.45vw,1.4rem); line-height:1.45; max-width:34ch; text-wrap:pretty; }
.service-caption .glass { margin-top:1.6rem; }
@media (min-height: 500px) and (prefers-reduced-motion: no-preference) {
  .service-panel .back { inset:-12% 0 auto; height:124%; transform:translate3d(0,var(--shift,0%),0); }
}
@media (max-width:750px),
  (pointer: coarse) and (hover: none) and (max-height: 540px) and (max-width: 1024px) {
  .service-panel { align-items:end; padding-bottom:clamp(4rem,17svh,10rem); }
  .service-panel::before { background:linear-gradient(0deg,#180f0bf5,#180f0bc9 37%,#180f0b22 76%); }
  .service-caption h2 { font-size:clamp(2.6rem,10.8vw,5.5rem); }
  .service-caption .glass { padding:1rem 1.65rem; }
}
.detail header { justify-content:space-between; }
.detail-opening { min-height:78svh; }
.detail-opening h1 { max-width:15ch; font-size:clamp(3rem,7vw,7.8rem); }
.detail-opening h1 + p { max-width:46ch; font-size:clamp(1.05rem,1.5vw,1.45rem); }
.detail-body { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3rem;padding:clamp(3rem,7vw,8rem) var(--gutter); }
.detail-body h2 { font-size:clamp(2rem,3.8vw,4rem);margin-bottom:1rem; }
.detail-body p { max-width:48ch; }
.detail-body div a { display:inline-block;margin-top:1rem;text-decoration:underline; }
.detail-body .pill { justify-self:start; }
@media(max-width:750px),
  (pointer: coarse) and (hover: none) and (max-height: 540px) and (max-width: 1024px) {.detail-body{grid-template-columns:1fr;gap:2rem}}

@media (prefers-reduced-motion: no-preference) {
  .home-scroll { scroll-snap-type: y proximity; }
  .home-scroll main > section:not(.services),
  .home-scroll .service-track {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .home-scroll .paper { min-height: 100svh; align-content: center; }
}

@media (max-width:750px) and (prefers-reduced-motion:no-preference),
  (pointer: coarse) and (hover: none) and (max-height: 540px) and (max-width: 1024px) and (prefers-reduced-motion:no-preference) {
  .home-scroll { scroll-snap-type:y mandatory; }
  .home-scroll main > section:not(.services),
  .home-scroll .service-track,
  .home-scroll body > .legal-footer {
    scroll-snap-align:start;
    scroll-snap-stop:normal;
    scroll-margin-block:0;
  }
}

.hero-controls { position:absolute; z-index:1; right:var(--gutter); bottom:1.25rem; display:flex; gap:8px; }
.hero-controls .glass { width:44px; height:44px; padding:0; cursor:pointer; font:600 1.2rem/1 DM,sans-serif; }
.hero-controls .hero-play { font-size:1rem; }
.hero-controls [hidden] { display:none; }
.hero-photos { position:absolute; inset:0; z-index:-2; overflow:hidden; background:#28221c; }
.hero-photos img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; }
.hero-photos .previous { opacity:1; scale:1.045; }
.hero-photos .current { z-index:1; opacity:1; }
@media (max-width:750px),
  (pointer: coarse) and (hover: none) and (max-height: 540px) and (max-width: 1024px) { .hero-photos img:first-child { object-position:57% center; } }
@media (prefers-reduced-motion:no-preference) {
  .hero-photos .current { animation: var(--background-zoom); }
  .hero-photos.playing .current { animation: var(--background-zoom), hero-dissolve 1.5s ease-in-out both; }
  .hero-photos.paused img.current { animation-play-state:paused, running; }
  @keyframes hero-dissolve { from {opacity:0} to {opacity:1} }
}

@media(max-width:750px),
  (pointer: coarse) and (hover: none) and (max-height: 540px) and (max-width: 1024px) {
  .opening { padding-bottom:5.2rem; }
  .opening h1 { font-size:clamp(2.6rem,10vw,4.7rem); }
}

.brickwork { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:center; gap:clamp(2rem,6vw,7rem); }
.brickwork figure { margin:0; }
.brickwork img { display:block; width:100%; height:auto; }
.brickwork figcaption { margin-top:.7rem; font-size:.875rem; }
.brickwork + div { grid-column:1/-1; }
@media(max-width:750px),
  (pointer: coarse) and (hover: none) and (max-height: 540px) and (max-width: 1024px) {
  .brickwork { grid-template-columns:1fr; gap:1.5rem; }
  .hero-photos img[data-src="hero-alvenaria-junta-dupla.webp"],.hero-photos img[data-src$="/hero-alvenaria-junta-dupla.webp"] { object-position:89% center; }
}

/* Institutional introduction */
.company-story {
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  position:relative; isolation:isolate; min-height:100svh; scroll-margin-block-start:0;
  color:#fffaf4; background:#31271f;
  grid-template-areas:"intro copy";
  gap:clamp(2rem,4vw,4.5rem) clamp(2.5rem,5vw,6rem);
  align-items:start;
  padding:clamp(5rem,9svh,8rem) var(--gutter) clamp(3.75rem,6svh,6rem);
}
.company-intro { grid-area:intro; }
.company-intro .label { display:flex; align-items:center; gap:1rem; color:#fffaf4; margin-bottom:1.45rem; }
.company-intro .label::before { content:""; width:3rem; height:4px; background:#ee414b; }
.company-intro h2 { font-size:clamp(2.65rem,4.5vw,5.25rem); }
.company-intro em { display:block; color:#f3d9bd; }
.company-lead,.company-copy p { text-align:justify; text-align-last:start; hyphens:none; }
.company-lead { margin-top:clamp(1.6rem,3vw,3rem); max-width:48ch; font-size:clamp(1.16rem,1.65vw,1.55rem); line-height:1.5; letter-spacing:-.02em; }
.company-photo { overflow:clip; position:absolute; inset:0; z-index:-1; margin:0; }
.company-photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:50% 62%; }
.company-photo::after {
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg,#1d1816b8,transparent 58%),linear-gradient(90deg,#18130f57,#18130f33 28%,#18130fc9 56%,#18130fee);
}
.company-copy { grid-area:copy; border-top:1px solid #ffffff50; padding-top:clamp(1.35rem,2.4vw,2.4rem); }
.company-copy p { font-size:clamp(1.05rem,1.2vw,1.19rem); line-height:1.65; margin-bottom:1.35em; }
.company-copy p:last-of-type { font-size:clamp(1.2rem,1.6vw,1.5rem); line-height:1.45; font-style:italic; color:#f3d9bd; }
/* Shared visual language for the homepage */
.home-scroll {
  --section-heading:clamp(2.65rem,6vw,8rem);
  --section-accent:#ee414b;
}
.home-scroll main :is(.label,.service-index) {
  display:flex; align-items:center; gap:.85rem; margin-bottom:1.35rem;
  font-size:.75rem; font-weight:650; letter-spacing:.11em; text-transform:uppercase;
}
.home-scroll main :is(.label,.service-index)::before {
  content:""; flex:none; width:2.6rem; height:3px; background:var(--section-accent);
}
.home-scroll main h2 { font-size:var(--section-heading); line-height:.98; }
.home-scroll main :is(h1,h2) em { color:#f3dec8; }
.home-scroll main .pill.glass {
  display:inline-flex; align-items:center; justify-content:space-between; gap:1.35rem;
  max-width:100%; min-height:3.5rem; padding:.8rem 1.4rem;
  border-color:#ffffff70; font:600 1rem/1.35 DM,sans-serif;
  letter-spacing:normal; text-transform:none;
}
.home-scroll .quote-action.glass {
  background-color:rgb(161 26 39 / 85%); box-shadow:inset 0 1px 0 #ffc1bd45;
}
.cta-arrow { position:relative; flex:none; width:1.2rem; height:1rem; }
.cta-arrow::before,.cta-arrow::after { content:""; position:absolute; top:50%; right:0; }
.cta-arrow::before { width:100%; border-top:2px solid currentColor; transform:translateY(-50%); }
.cta-arrow::after { width:.54rem; height:.54rem; border:solid currentColor; border-width:2px 2px 0 0; transform:translateY(-50%) rotate(45deg); }
@media (hover:hover) {
  .home-scroll .quote-action.glass:hover { background-color:rgb(180 34 42 / 92%); }
  .home-scroll main .pill.glass:hover { transform:none; }
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .cta-arrow { transition:transform .24s ease; }
  .pill:hover .cta-arrow { transform:translateX(3px); }
}
@media (max-width:480px) { .home-scroll main .quote-action { width:100%; } }
@media (min-width:751px) {
  .company-story {
    grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
    align-content:center;
  }
  .home-scroll .company-intro h2 { font-size:clamp(3.2rem,5.3vw,8.5rem); }
  .company-photo::after {
    background:linear-gradient(180deg,#20191385,transparent 80%),linear-gradient(90deg,#181310c9,#1813109c 45%,#181310d9 65%,#181310e6);
  }
  .company-copy { max-width:70ch; justify-self:end; }
}
@media (prefers-reduced-motion:no-preference) {
  .company-story p.copy-enter { animation:company-arrival 1s cubic-bezier(.18,.65,.25,1) var(--copy-delay, 0ms) backwards; }
  @keyframes company-arrival { from { opacity:0; transform:translateY(.9rem); } to { opacity:1; transform:none; } }
}
@media (max-width:750px),
  (pointer: coarse) and (hover: none) and (max-height: 540px) and (max-width: 1024px) {
  .company-story { grid-template-columns:minmax(0,1fr); grid-template-areas:"intro" "copy"; gap:1.6rem; }
  .company-photo::after { background:linear-gradient(165deg,#201913b8,#201913dd 50%,#201913cf); }
  .company-copy { padding-top:0; border-top:0; }
}
.hero-photos.offscreen img.current { animation: none; }

/* Contact section */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 8rem);
}
.contact-intro .privacy-note { margin: 1rem 0 0; color: #eee1d4; }
.contact-phones {
  width: min(100%, 32rem);
  justify-self: end;
  margin: 0;
  padding: clamp(1.25rem, 2.4vw, 2.5rem);
  background: rgb(32 24 20 / 78%);
  border: 1px solid rgb(255 246 230 / 23%);
  border-radius: .8rem;
  backdrop-filter: blur(14px);
}
.contact-phones h3 {
  margin: 0 0 .65rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f1d8be;
}
.contact-phones a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding-block: .4em;
  border-bottom: 1px solid rgb(255 246 230 / 22%);
  font-size: clamp(1.55rem, 2.2vw, 2.8rem);
  font-weight: 450;
  letter-spacing: -.025em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.contact-phones a::after {
  content: "";
  width: .32em;
  height: .32em;
  margin-inline: .5rem;
  border: solid #efd1b3;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.contact-phones a:focus-visible { outline: 2px solid #f1d8be; outline-offset: 3px; }
.contact-phones .call-cost { margin-top: 1rem; color: #e6d9cd; }
@media (hover: hover) {
  .contact-phones a:hover { color: #f3d9bd; text-decoration: none; }
}
@media (max-width: 800px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .contact-phones { width: 100%; }
}
