/* WEP-EMET — clean white, Apple-like. System fonts only (nothing loaded from third parties). */
:root {
  --bg: #ffffff;
  --alt: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --link: #0066cc;
  --radius: 28px;
  --wrap: 1080px;
  --m: max(16px, 4vw);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.47 var(--font); letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 5rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1.07; font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 600; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; }

/* Buttons: pills */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  gap: 10px; border-radius: 980px; font-weight: 500; font-size: 1rem; text-decoration: none; letter-spacing: -0.01em;
  transition: background-color 200ms var(--ease), transform 150ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #000; }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost:hover { background: var(--alt); }
.link { display: inline-block; color: var(--link); font-size: 1.1rem; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Landing: sky, big centred headline, building rising out of the clouds */
.sky-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; background: #acccec; } /* = the hero image's top-edge sky */
/* The image follows the text and slides up under it by its empty-sky part only (the roof starts ~48% down the image),
   so the building never reaches the button on any screen size. */
.sky { position: relative; z-index: 0; display: block; width: 100%; height: auto; margin-top: calc(-0.41 * 100vw * 941 / 1672);
  -webkit-mask-image: linear-gradient(transparent, #000 14%); mask-image: linear-gradient(transparent, #000 14%); }
@media (max-width: 700px) { /* phones: a taller crop so the house reads */
  .sky { height: 56svh; object-fit: cover; object-position: 50% 100%; margin-top: -14svh; }
}
.nav { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  width: 100%; max-width: 1400px; padding: 22px var(--m); }
.brand { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; text-decoration: none; }
.nav nav { display: flex; gap: clamp(16px, 2.4vw, 34px); font-size: 0.92rem; font-weight: 500; }
.nav nav a { text-decoration: none; color: var(--ink); padding: 8px 0; opacity: 0.85; transition: opacity 150ms; }
.nav nav a:hover { opacity: 1; }
.nav-side { justify-self: end; display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 980px; background: rgba(0, 0, 0, 0.06); }
.lang-switch a { min-width: 40px; padding: 7px 10px; border-radius: 980px; text-align: center; font-size: 0.8rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.lang-switch a:hover { color: var(--ink); }
.sky-text { position: relative; z-index: 2; max-width: 1100px; margin-top: clamp(20px, 4vh, 56px); padding: 0 var(--m); text-align: center; }
.sky-text h1 { font-size: clamp(2.6rem, 1.2rem + 5.4vw, 6.4rem); line-height: 1; font-weight: 800; letter-spacing: -0.045em; }
.sky-sub { margin: 22px auto 30px; max-width: 760px; font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.45rem); line-height: 1.35; }
.sky-sub strong { font-weight: 600; }
.sky-sub span { color: rgba(29, 29, 31, 0.55); }
.sky-text .btn { min-height: 52px; padding: 0 26px; gap: 10px; }
@media (max-width: 860px) { /* phones: logo on top, the page links in a row you can swipe */
  .nav { grid-template-columns: 1fr auto; gap: 6px; padding-top: 16px; padding-bottom: 10px; }
  .nav nav { grid-column: 1 / -1; grid-row: 2; }
  .nav-side { grid-column: 2; grid-row: 1; }
  .nav nav { overflow-x: auto; gap: 20px; scrollbar-width: none; }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav nav a { flex: none; }
  .nav-cta { display: none; }
}

/* Tour section: text and points on the left, the live tour on the right */
.tour-section { padding-top: clamp(64px, 8vw, 110px); }
.tour-split { display: grid; grid-template-columns: minmax(280px, 5fr) 8fr; gap: clamp(28px, 4vw, 64px); align-items: center; max-width: 1400px; margin: 0 auto; }
.tour-section .tour-copy h2 { text-align: left; } /* beats the centred .section h2 */
.tour-lead { margin-top: 16px; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); color: var(--muted); }
.checks { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 0.7rem; font-weight: 700; }
.tour-copy .actions { align-items: center; gap: 20px; }
.tour-copy .btn { gap: 10px; }
.tour-section .tour-copy .link { display: inline-block; margin: 0; } /* beats the centred .section .link */
.tour-copy .hint { margin-top: 22px; }
.tour-split .tour-frame { width: 100%; height: clamp(420px, 72svh, 760px); margin: 0; }
@media (max-width: 900px) {
  .tour-split { grid-template-columns: 1fr; }
  .tour-split .tour-frame { height: 62svh; min-height: 360px; }
}
.tour-frame { max-width: 1400px; height: clamp(420px, calc(100svh - 300px), 860px); margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: var(--alt); }
.tour-frame { background: var(--alt) center / cover no-repeat; } /* image: versioned poster set inline by build.py */
.tour-frame iframe { display: block; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 600ms var(--ease); }
.tour-frame.ready iframe { opacity: 1; }
.hint { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 699px) {
  .tour-frame { height: 62svh; min-height: 360px; border-radius: 20px; }
  }

/* Sections */
.section { padding: clamp(80px, 10vw, 140px) var(--m); }
.alt { background: var(--alt); }
.section h2 { text-align: center; }
.sub { max-width: 720px; margin: 16px auto 0; text-align: center; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--muted); }
.section .link { display: block; width: fit-content; margin: 32px auto 0; }


/* Projects: one card per project; "Ver fotos" opens that project's photos full screen */
.projects { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; margin-top: 56px; }
.project { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--bg); }
.project-cover { all: unset; display: block; overflow: hidden; cursor: zoom-in; }
.project-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 500ms var(--ease); }
.project-cover:hover img { transform: scale(1.03); }
.project-cover:focus-visible { outline: 3px solid var(--link); outline-offset: -3px; }
.project-body { display: grid; gap: 10px; align-content: start; padding: 26px 28px 30px; }
.project-body h3 { font-size: 1.6rem; letter-spacing: -0.02em; }
.project-body p { color: var(--muted); }
.project-meta { font-size: 0.9rem; }
.project-body .link { all: unset; color: var(--link); font-size: 1.05rem; cursor: pointer; width: fit-content; margin-top: 6px; }
.project-body .link:hover { text-decoration: underline; }
.project-body .link:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.project-next { justify-content: center; background: var(--ink); color: #fff; }
.project-next .project-body { padding: 40px 36px; gap: 14px; }
.project-next h3 { font-size: 2rem; }
.project-next p { color: rgba(255, 255, 255, 0.7); }
.project-next .btn { width: fit-content; margin-top: 8px; background: #fff; color: var(--ink); }
.project-next .btn:hover { background: var(--alt); }
@media (max-width: 800px) { .projects { grid-template-columns: 1fr; } }

/* Contact */
.contact .actions { justify-content: center; margin-top: 36px; }
.contact-line { margin-top: 20px; text-align: center; color: var(--muted); }

/* Footer */
.footer { padding: 24px var(--m); background: var(--alt); border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Lightbox */
#lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(255, 255, 255, 0.97); }
#lightbox[open] { display: grid; place-items: center; }
#lightbox::backdrop { background: transparent; }
#lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 12px; }
#lightbox button { all: unset; position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--alt); color: var(--ink); font-size: 1.8rem; cursor: pointer; }
#lightbox button:focus-visible { outline: 3px solid var(--link); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }

/* Gentle entrances, only once the observer exists (site.js adds .io) */
.io .reveal, .io .project { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.io .in { opacity: 1 !important; transform: none !important; }
@media print { .io .reveal, .io .project { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .io .reveal, .io .project { opacity: 1; transform: none; }
}

/* Tour full screen: exit button only while full screen */
.tour-frame { position: relative; }
.tour-exit { display: none; position: absolute; right: 16px; bottom: 16px; z-index: 2; min-height: 44px; padding: 0 18px; border: 0; border-radius: 980px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); font: 600 0.95rem var(--font); cursor: pointer; }
.tour-frame:fullscreen { border-radius: 0; max-width: none; }
.tour-frame:fullscreen .tour-exit { display: block; }

/* Landing: clouds dissolve into the white page (no hard edge); house rises on load, sinks on scroll (site.js) */
.sky-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 92%); }
.sky { animation: rise-from-clouds 1400ms var(--ease) both; will-change: translate; }
@keyframes rise-from-clouds { from { transform: translateY(70px); opacity: 0; } }
.sky-text { animation: fade-in 900ms var(--ease) both; will-change: translate, opacity; }
@keyframes fade-in { from { opacity: 0; transform: translateY(12px); } }

/* Menu: floats over the sky on the home page, a plain bar on the other pages */
.nav { margin: 0 auto; }
.page-home .nav { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.page-home .sky-hero { padding-top: 88px; }
body:not(.page-home) .nav { max-width: none; background: #fff; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.nav nav a[aria-current="page"] { opacity: 1; font-weight: 700; }

/* Sub-page header */
.page-head { max-width: 900px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--m) clamp(24px, 3vw, 40px); text-align: center; }
.page-head h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.04em; }
.page-head .lead { margin-top: 18px; }
.section-tight { padding-top: clamp(24px, 3vw, 40px); }
.center { text-align: center; }
.hint.center { margin-top: 16px; }
.center-block { display: block; width: fit-content; margin: 32px auto 0; }
.sub-left { margin: 14px 0 26px; color: var(--muted); font-size: 1.1rem; }

/* Home: what we do, two services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.service { display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: var(--alt); }
.service-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-body { display: grid; gap: 12px; align-content: start; padding: 30px 32px 34px; }
.service-body h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.03em; }
.service-body p { color: var(--muted); font-size: 1.05rem; }
.service-body .checks { margin: 8px 0 18px; }
.service-body .btn { width: fit-content; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }


/* Renders: what's included, examples */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.section .split h2 { text-align: left; }
.split .checks { margin: 6px 0 0; font-size: 1.1rem; gap: 18px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.tile { all: unset; display: block; overflow: hidden; border-radius: 18px; cursor: zoom-in; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 400ms var(--ease); }
.tile:hover img { transform: scale(1.03); }
.tile:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
@media (max-width: 700px) { .examples { grid-template-columns: 1fr 1fr; } }

/* Tours: how it works */
.how { list-style: none; counter-reset: how; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0 0; padding: 0; }
.how li { counter-increment: how; padding: 28px; border-radius: 24px; background: var(--bg); }
.how li::before { content: counter(how); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; }
.how h3 { margin-bottom: 8px; }
.how p { color: var(--muted); }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }

/* Contact: a dark closing band on every page, so it never merges with the grey section before it */
.contact { background: var(--ink); color: #fff; }
.contact .sub, .contact .contact-line { color: rgba(255, 255, 255, 0.65); }
.contact .btn-solid { background: #fff; color: var(--ink); }
.contact .btn-solid:hover { background: var(--alt); }
.contact .btn-ghost { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); color: #fff; }
.contact .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.contact :focus-visible { outline-color: #fff; }


/* Renders: from floor plan to final photo, one step per row, image and text alternating sides */
.process { display: grid; gap: clamp(48px, 7vw, 96px); margin-top: clamp(48px, 6vw, 80px); }
.pstep { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.pstep:nth-child(even) { grid-template-columns: 5fr 7fr; }
.pstep:nth-child(even) .pstep-img { order: 2; }
.pstep-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; background: var(--alt); }
.pstep:first-child .pstep-img { object-fit: contain; background: #f3eee6; } /* the whole floor plan, not a crop */
.pstep-n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; }
.pstep h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -0.03em; margin-bottom: 12px; }
.pstep p { color: var(--muted); font-size: 1.1rem; max-width: 44ch; }
@media (max-width: 800px) {
  .pstep, .pstep:nth-child(even) { grid-template-columns: 1fr; }
  .pstep:nth-child(even) .pstep-img { order: 0; }
}

/* Logo */
.brand img { display: block; height: 30px; width: auto; }
@media (max-width: 860px) { .brand img { height: 24px; } }
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.6); border-top: 0; }
.footer a { color: rgba(255, 255, 255, 0.8); }
.footer-in { align-items: center; }
.footer-logo { height: 24px; width: auto; }

/* About: team */
.about-text { display: grid; gap: 18px; font-size: 1.15rem; color: var(--muted); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 48px auto 0; }
.member { margin: 0; }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; background: var(--bg); }
.member figcaption { margin-top: 14px; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; text-align: center; }
.member figcaption span { display: block; margin-top: 4px; font-size: 0.95rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
@media (max-width: 960px) { .team { grid-template-columns: 1fr 1fr; max-width: 640px; } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; max-width: 360px; } }

/* About: our story as a 3-step timeline */
.story { list-style: none; position: relative; display: grid; gap: 22px; max-width: 820px; margin: 48px auto 0; padding: 0 0 0 40px; }
.story::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.story-step { position: relative; padding: 26px 30px; border-radius: 24px; background: var(--alt); }
.story-step::before { content: ""; position: absolute; left: -36px; top: 30px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px var(--bg); }
.story-place { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 980px; background: var(--bg); font-size: 0.85rem; font-weight: 600; }
.story-step h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.story-step p { color: var(--muted); font-size: 1.1rem; line-height: 1.55; }
.story-step p + p { margin-top: 10px; }
@media (max-width: 600px) { .story { padding-left: 28px; } .story-step { padding: 22px; } .story-step::before { left: -24px; } .story::before { left: 5px; } }

/* About: team and story side by side (desktop); faces first, swipeable row (phone) */
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 4vw, 64px); align-items: start; max-width: 1280px; margin: 0 auto; }
.section .about-grid h2 { text-align: left; }
.about-sub { margin-top: 10px; color: var(--muted); font-size: 1.1rem; }
.about-team { position: sticky; top: 24px; }
.about-team .team { grid-template-columns: 1fr 1fr; gap: 14px; max-width: none; margin: 28px 0 0; }
.about-team .member img { border-radius: 20px; }
.about-team .member figcaption { font-size: 1.1rem; margin-top: 10px; }
.about-story .story { margin: 28px 0 0; max-width: none; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-team { position: static; }
  .about-team .team { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-right: calc(var(--m) * -1); padding-right: var(--m); scrollbar-width: none; }
  .about-team .team::-webkit-scrollbar { display: none; }
  .about-team .member { flex: 0 0 62%; max-width: 260px; scroll-snap-align: start; }
}

/* Home: why wepemet — text only: sourced facts + reasons */
.why-claim { margin: 14px auto 0; max-width: 820px; text-align: center; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; color: var(--muted); }
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.fact { padding: 30px 28px; border-radius: 24px; background: var(--bg); }
.fact-n { display: block; font-size: clamp(3rem, 2rem + 3vw, 4.6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.fact p { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }
.fact-src { margin-top: 14px; font-size: 0.85rem; color: var(--muted); text-align: center; }
.fact-src a { color: var(--muted); }
.why-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; max-width: 980px; margin: 56px auto 0; padding: 0; }
.why-list li { position: relative; padding-left: 30px; font-size: 1.1rem; line-height: 1.5; color: var(--muted); }
.why-list li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 0.7rem; font-weight: 700; }
.why-list b { color: var(--ink); }
@media (max-width: 800px) { .facts-row, .why-list { grid-template-columns: 1fr; } }
