/* ==========================================================================
   MSB Painters LLC — styles
   Visual direction: "Guía Visual 1 & 2" — cool light-grey canvas, MSB blue,
   charcoal text, white cards with soft depth, Montserrat Semi-Bold headlines.
   ========================================================================== */

:root {
  /* Brand */
  --blue-300: #A9CBEB;
  --blue-400: #86B6E4;   /* wall paint blue from the references */
  --blue-500: #5FA4DD;   /* MSB Blue (primary swatch) */
  --blue-logo: #5DB3E3;
  --blue-600: #2F74B5;   /* accessible action blue (white text ≥ 4.5:1) */
  --blue-700: #235C93;
  --blue-50:  #EEF5FC;

  /* Neutrals */
  --ink: #23262D;        /* Text Black */
  --ink-2: #4A505A;
  --muted: #5B616B;
  --gray: #8A8E94;       /* Accents & Flooring */
  --line: #DDE3EA;
  --canvas: #EEF1F5;     /* page background (guide's soft grey) */
  --canvas-2: #F6F8FA;
  --surface: #FFFFFF;    /* Backgrounds */
  --night: #1D2128;

  --success: #1F7A4D;
  --success-bg: #E9F6EF;
  --danger: #B3261E;
  --danger-bg: #FCECEA;
  --notice: #8A5A00;
  --notice-bg: #FFF5DF;

  /* Type */
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;

  /* Shape + depth */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(24, 39, 60, .06), 0 2px 8px rgba(24, 39, 60, .06);
  --shadow-md: 0 4px 10px rgba(24, 39, 60, .06), 0 14px 34px rgba(24, 39, 60, .10);
  --shadow-lg: 0 10px 24px rgba(24, 39, 60, .10), 0 30px 70px rgba(24, 39, 60, .16);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); scrollbar-gutter: stable; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.intro-active body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--blue-700); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue-400); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #B8C3CF var(--canvas); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--canvas); }
::-webkit-scrollbar-thumb { background: #B8C3CF; border-radius: 10px; border: 3px solid var(--canvas); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue-600);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.35em;
  border: 1.5px solid transparent; border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s, color .25s, border-color .25s;
}
.btn::before { /* paint sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--blue-700);
  clip-path: inset(0 100% 0 0 round 12px);
  transition: clip-path .45s var(--ease-out);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(47, 116, 181, .28); }
.btn:hover::before { clip-path: inset(0 0 0 0 round 12px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .35s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--blue-600); }
.btn--ghost { --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; border-color: rgba(255,255,255,.75); backdrop-filter: blur(6px); }
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: var(--ink); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); border-color: var(--line); }
.btn--light::before { background: var(--blue-50); }
.btn--light:hover { color: var(--ink); box-shadow: var(--shadow-md); }
.btn--sm { min-height: 40px; padding: .5em 1.05em; font-size: .88rem; border-radius: 10px; }
.btn--sm::before { clip-path: inset(0 100% 0 0 round 10px); }
.btn--lg { min-height: 54px; padding: .85em 1.6em; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
/* The header slides in over the hero photo once the intro hands off */
html.js .header { transform: translateY(-100%); }
html.site-ready .header { transform: none; transition: transform .7s .45s var(--ease-out), box-shadow .3s, border-color .3s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(24, 39, 60, .08); border-color: var(--line); }
.header__inner { height: var(--header-h); max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 24px; }
.header__logo { display: block; flex: none; }
.header__logo img { height: 54px; width: auto; }
.header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
  display: block; padding: 8px 14px; border-radius: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: .93rem;
  color: var(--ink); text-decoration: none; position: relative;
  transition: color .2s, background-color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 3px; border-radius: 3px;
  background: var(--blue-500); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.nav__link:hover { color: var(--blue-700); background: var(--blue-50); }
.nav__link.is-active { color: var(--blue-700); }
.nav__link.is-active::after { transform: scaleX(1); }
.nav__mobile-extra { display: none; }
.header .nav + .header__actions { margin-left: 8px; }

.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: var(--canvas); border: 1px solid var(--line); }
.lang__btn {
  border: 0; background: transparent; cursor: pointer;
  min-width: 38px; min-height: 32px; padding: 0 8px; border-radius: 7px;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .06em; color: var(--muted);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn[aria-pressed="true"] { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-sm); }
.lang__sep { color: #B5BDC7; font-size: .8rem; user-select: none; }

.nav-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.nav-toggle:hover { background: var(--canvas); }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle__close { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .header__logo img { height: 46px; }
  .header__cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(24, 39, 60, .14);
    padding: 12px var(--gutter) 24px;
    max-height: calc(100dvh - var(--header-h)); overflow: auto;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .45s var(--ease-out), visibility 0s .45s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease-out), visibility 0s; }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__link { font-size: 1.1rem; padding: 14px 12px; }
  .nav__link::after { left: 12px; right: auto; width: 28px; bottom: 8px; }
  .nav__mobile-extra { display: grid; gap: 14px; margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
  .nav__call { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-weight: 600; color: var(--ink); text-decoration: none; padding: 8px; }
  .header.nav-open .nav-toggle__open { display: none; }
  .header.nav-open .nav-toggle__close { display: block; }
}

/* ---------- Hero ----------
   Full-screen, same photo and framing as the last frame of the intro,
   so the intro dissolves into it without any jump. */
.hero { position: relative; }
.hero__frame {
  position: relative; min-height: 100vh; min-height: 100svh;
  overflow: hidden; background: #6E95C3; isolation: isolate;
  display: flex; align-items: center;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 30, 46, .74) 0%, rgba(18, 30, 46, .5) 36%, rgba(18, 30, 46, .06) 70%),
    linear-gradient(0deg, rgba(18, 30, 46, .35), rgba(18, 30, 46, 0) 40%);
}
.hero__content {
  width: 100%; max-width: 1320px; margin-inline: auto; color: #fff;
  padding: calc(var(--header-h) + clamp(28px, 5vw, 64px)) clamp(22px, 5vw, 64px) clamp(84px, 9vw, 128px);
}
.hero__title { max-width: 820px; font-size: clamp(2.3rem, 4.2vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.04; color: #fff; text-shadow: 0 2px 24px rgba(10, 20, 35, .25); }
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__line > span { display: inline-block; }
.hero__line--accent > span { color: var(--blue-300); }
.hero__text { margin: 22px 0 32px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; max-width: 34ch; color: rgba(255,255,255,.92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stroke { position: absolute; left: -2%; bottom: -26px; width: 58%; height: 90px; color: var(--blue-500); opacity: .9; z-index: 0; pointer-events: none; }

@media (max-width: 699px) {
  .hero__frame { align-items: flex-end; }
  .hero__shade { background: linear-gradient(0deg, rgba(18, 30, 46, .88) 0%, rgba(18, 30, 46, .6) 46%, rgba(18, 30, 46, .1) 78%); }
  .hero__content { padding-bottom: 84px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stroke { width: 90%; bottom: -34px; }
}

/* Hero entrance — the photo is already there; shade and text arrive on top of it */
html.js .hero__shade { opacity: 0; }
html.js .hero__line > span { transform: translateY(105%); }
html.js .hero__text, html.js .hero__actions { opacity: 0; transform: translateY(16px); }
html.js .hero__stroke { clip-path: inset(0 100% 0 0); }
html.site-ready .hero__shade { opacity: 1; transition: opacity 1.1s ease .1s; }
html.site-ready .hero__line > span { transform: none; transition: transform 1s .25s var(--ease-out); }
html.site-ready .hero__line--accent > span { transition-delay: .37s; }
html.site-ready .hero__text { opacity: 1; transform: none; transition: opacity .8s .55s, transform .9s .55s var(--ease-out); }
html.site-ready .hero__actions { opacity: 1; transform: none; transition: opacity .8s .67s, transform .9s .67s var(--ease-out); }
html.site-ready .hero__stroke { clip-path: inset(0 0 0 0); transition: clip-path 1.2s .7s var(--ease-in-out); }

/* Quick contact bar */
.quickbar {
  position: relative; z-index: 2;
  max-width: 1040px; margin: -44px auto 0; padding-inline: var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.quickbar__item {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 18px 20px; border-radius: var(--r-md);
  background: #fff; box-shadow: var(--shadow-md); color: var(--ink); text-decoration: none;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.quickbar__item .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); transition: background-color .3s, color .3s; }
.quickbar__item strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.quickbar__item small { display: block; color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.quickbar__item:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.quickbar__item:hover .icon { background: var(--blue-600); color: #fff; }
@media (max-width: 820px) {
  .quickbar { grid-template-columns: 1fr; margin-top: -28px; gap: 10px; }
  .quickbar__item { padding: 14px 16px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section__head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); color: var(--ink); margin-bottom: 14px; }
.section__lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; margin: 0; }

/* Reveal on scroll */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Services ---------- */
.services { padding-top: clamp(88px, 11vw, 140px); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services__grid { grid-template-columns: 1fr; } }
.service {
  background: #fff; border-radius: var(--r-lg); padding: 30px 28px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid #E6EBF0;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.service__icon { width: 58px; height: 58px; color: var(--blue-500); margin-bottom: 20px; }
.service__title { font-size: 1.2rem; margin-bottom: 8px; }
.service { display: flex; flex-direction: column; }
.service__text { color: var(--muted); margin: 0; font-size: .97rem; }
.service__items { display: grid; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.service__items li { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--ink); }
.service__items .icon { width: 22px; height: 22px; padding: 4px; border-radius: 7px; background: var(--blue-50); color: var(--blue-600); }

.services__empty {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 32px;
  padding: clamp(26px, 4vw, 40px); border-radius: var(--r-lg);
  background: #fff; border: 1.5px dashed var(--blue-300);
}
.services__empty-icon { width: 64px; height: 64px; color: var(--blue-500); }
.services__empty h3 { font-size: 1.3rem; margin-bottom: 6px; }
.services__empty p { margin: 0; color: var(--muted); max-width: 52ch; }
@media (max-width: 760px) { .services__empty { grid-template-columns: 1fr; } }

/* ---------- Portfolio ---------- */
.portfolio { background: var(--surface); }
.portfolio__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.project { display: flex; flex-direction: column; background: var(--canvas-2); border-radius: var(--r-lg); padding: 14px; border: 1px solid #E8EDF2; }
.project--wide { grid-column: 1 / -1; }
.project__media { position: relative; border-radius: calc(var(--r-lg) - 8px); overflow: hidden; background: #DDE3EA; }
.project__body { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; padding: 18px 8px 6px; }
.project__title { font-size: 1.25rem; margin-bottom: 4px; }
.project__text { color: var(--muted); margin: 0; font-size: .95rem; max-width: 46ch; }
.project__count { font-family: var(--font-display); font-weight: 600; font-size: .8rem; color: var(--blue-700); }

/* View toggle */
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #fff; border: 1px solid var(--line); flex: none; }
.seg__btn { border: 0; background: transparent; cursor: pointer; padding: 6px 12px; border-radius: 7px; font-family: var(--font-display); font-weight: 600; font-size: .8rem; color: var(--muted); transition: background-color .25s, color .25s; }
.seg__btn[aria-pressed="true"] { background: var(--blue-600); color: #fff; }
.seg__btn:not([aria-pressed="true"]):hover { color: var(--ink); background: var(--canvas); }

/* Image reveal (paint wipe) */
html.js .project__media { clip-path: inset(0 100% 0 0 round 16px); transition: clip-path 1.25s var(--ease-in-out); }
html.js .project.is-visible .project__media { clip-path: inset(0 0 0 0 round 16px); }

/* Drag comparison */
.compare { --pos: 50%; position: relative; aspect-ratio: 3 / 4; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 0 18px rgba(0,0,0,.25); pointer-events: none;
}
.compare__knob {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--blue-600); color: #fff; border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  transition: transform .3s var(--ease-out);
}
.compare__knob .icon { width: 24px; height: 24px; }
.compare:hover .compare__knob, .compare.is-dragging .compare__knob { transform: scale(1.1); }
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
  -webkit-appearance: none; appearance: none; pointer-events: none; /* pointer drag handled in JS; input kept for keyboard + screen readers */
}
.compare { cursor: ew-resize; }
.compare__range:focus-visible + .compare__handle .compare__knob { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 7px var(--blue-500); }

.tag {
  position: absolute; top: 14px; z-index: 2;
  padding: 6px 12px; border-radius: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(20, 26, 34, .72); color: #fff; backdrop-filter: blur(6px); pointer-events: none;
}
.tag--before { left: 14px; }
.tag--after { right: 14px; background: var(--blue-600); }

/* Side by side */
.pair { display: flex; gap: 6px; }
.pair__item { position: relative; margin: 0; flex: var(--ar, .75) 1 0; aspect-ratio: var(--ar, .75); overflow: hidden; }
.pair__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.pair__item:hover img { transform: scale(1.03); }
.pair__item .tag--after { right: auto; left: 14px; }

.project__view[hidden] { display: none; }
.project__view { animation: viewIn .5s var(--ease-out); }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 860px) {
  .portfolio__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .project--wide .pair { flex-direction: column; }
  .project--wide .pair__item { flex: none; width: 100%; }
}

/* ---------- CTA band ---------- */
.band { padding: clamp(64px, 9vw, 112px) var(--gutter) 0; }
.band__inner {
  position: relative; max-width: 1240px; margin-inline: auto; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch;
  border-radius: var(--r-xl); background: var(--night); color: #fff; box-shadow: var(--shadow-lg);
}
.band__split { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; }
.band__split img { width: 100%; height: 100%; object-fit: cover; }
.band__split img:first-child { filter: grayscale(.35) brightness(.85); }
.band__brush { position: absolute; left: 30%; top: 50%; width: 42%; transform: translateY(-50%) rotate(-4deg); filter: drop-shadow(0 6px 14px rgba(0,0,0,.3)); }
.band__content { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.band__title { font-size: clamp(1.7rem, 3vw, 2.4rem); color: #fff; margin-bottom: 14px; }
.band__text { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 42ch; margin-bottom: 28px; }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .band { padding-inline: 0; }
  .band__inner { grid-template-columns: 1fr; border-radius: 0; }
  .band__split { min-height: 240px; aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) { .band__actions .btn { flex: 1 1 100%; } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about__media { position: relative; min-height: 520px; }
.about__photo { position: absolute; margin: 0; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); background: #DDE3EA; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--a { left: 0; top: 0; width: 62%; aspect-ratio: 3 / 4; }
.about__photo--b { right: 0; bottom: 0; width: 56%; aspect-ratio: 4 / 3; border: 6px solid var(--canvas); }
.about__logo { position: absolute; right: 6%; top: 4%; width: 112px; padding: 12px; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.about__copy p { color: var(--ink-2); font-size: 1.05rem; max-width: 60ch; }
.about__points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 28px; }
.about__points li { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.about__points .icon { width: 28px; height: 28px; padding: 5px; border-radius: 8px; background: var(--blue-50); color: var(--blue-600); }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { min-height: 0; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; }
}
@media (max-width: 480px) { .about__points { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--canvas) 0%, #E5EBF2 100%); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact__details { margin: 28px 0; display: grid; gap: 14px; }
.contact__details dt { font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact__details dd { margin: 2px 0 0; font-size: 1.15rem; font-family: var(--font-display); font-weight: 600; overflow-wrap: anywhere; }
.contact__details a { color: var(--ink); text-decoration: none; }
.contact__details a:hover { color: var(--blue-700); text-decoration: underline; }
.contact__actions { display: grid; gap: 10px; }
.action {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px;
  background: #fff; border: 1px solid #E3E9EF; border-radius: 14px; color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; text-transform: uppercase; letter-spacing: .03em;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
.action__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--blue-50); color: var(--blue-600); transition: background-color .3s, color .3s; flex: none; }
.action__label { flex: 1; }
.action__ext { width: 18px; height: 18px; color: var(--gray); }
.action:hover { color: var(--ink); transform: translateX(4px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.action:hover .action__icon { background: var(--blue-600); color: #fff; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Quote form ---------- */
.quote { background: #fff; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lg); scroll-margin-top: calc(var(--header-h) + 16px); }
.quote__title { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 6px; }
.quote__note { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--ink); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid #CBD4DE; border-radius: 12px; background: var(--canvas-2);
  font-size: 1rem; color: var(--ink); caret-color: var(--blue-600);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%232F74B5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
.field ::placeholder { color: #737A84; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #A9B5C2; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(95, 164, 221, .25); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #FFF8F7; }
.field__error { margin: 0; min-height: 0; color: var(--danger); font-size: .86rem; font-weight: 600; display: none; }
.field.has-error .field__error { display: block; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.choice { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 12px; border: 1.5px solid #CBD4DE; background: var(--canvas-2); cursor: pointer; font-weight: 600; font-size: .95rem; transition: border-color .2s, background-color .2s; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue-600); }
.choice:hover { border-color: #A9B5C2; }
.choice:has(input:checked) { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-700); }
.field--choices.has-error .choice { border-color: var(--danger); }

.form__alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: .95rem; line-height: 1.5; }
.form__alert[hidden] { display: none; }
.form__alert .icon { width: 22px; height: 22px; margin-top: 1px; }
.form__alert p { margin: 0; }
.form__alert .btn { margin-top: 12px; }
.form__alert--error { background: var(--danger-bg); color: var(--danger); }
.form__alert--success { background: var(--success-bg); color: var(--success); }
.form__alert--notice { background: var(--notice-bg); color: var(--notice); }

.form__submit { margin-top: 6px; }
.spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.form__submit.is-loading .spinner { display: inline-block; }
.form__submit:disabled { opacity: .75; cursor: progress; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: rgba(255,255,255,.78); padding: clamp(56px, 8vw, 88px) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; }
.footer__logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 14px; }
.footer__logo img { height: 62px; width: auto; }
.footer__name { margin: 18px 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff; }
.footer__tag { max-width: 34ch; font-size: .95rem; }
.footer__heading { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-weight: 700; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.78); text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__col .icon { width: 18px; height: 18px; color: var(--blue-400); }
.footer .lang { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.footer .lang__btn { color: rgba(255,255,255,.7); }
.footer .lang__btn:hover { color: #fff; }
.footer .lang__btn[aria-pressed="true"] { background: #fff; color: var(--blue-700); }
.footer .lang__sep { color: rgba(255,255,255,.3); }
.footer__cta { margin-top: 20px; }
.footer__cta.btn { color: #fff; }
.footer__bottom { margin-top: 56px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.footer__bottom p { margin: 0; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ==========================================================================
   INTRO — the brush paints the room (photo reveal on canvas)
   ========================================================================== */
.intro { display: none; }
html.has-intro .intro {
  display: block; position: fixed; inset: 0; z-index: 1000;
  background: #CFCCC7;
  clip-path: inset(0 0 0 0);
}
.intro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .3s ease; }
.intro.s-room .intro__canvas { opacity: 1; }
.intro__brush {
  position: absolute; left: 0; top: 0; width: 140px; height: 240px; overflow: visible; pointer-events: none;
  transform-origin: 70px 215px; will-change: transform; opacity: 0;
  filter: drop-shadow(0 6px 10px rgba(16, 30, 50, .35));
}

.intro__brand {
  position: absolute; left: 0; right: 0; top: max(22px, 4vh); margin-inline: auto;
  width: max-content; max-width: calc(100% - 32px); transform: translateY(-12px);
  display: flex; align-items: center; gap: 16px; opacity: 0;
  padding: 12px 22px 12px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(24, 39, 60, .14);
  transition: opacity .4s ease, transform .5s var(--ease-out);
}
.intro.s-brand .intro__brand { opacity: 1; transform: none; }
.intro__mark { width: 74px; height: 52px; }
.intro__name { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--ink); letter-spacing: -.01em; line-height: 1.1; }
.intro__name span { font-weight: 600; font-style: italic; }
.intro__tag { margin: 4px 0 0; font-family: var(--font-display); font-weight: 500; color: var(--muted); font-size: clamp(.85rem, 1.5vw, 1rem); }

.intro__skip {
  position: absolute; right: max(16px, 2.5vw); bottom: max(16px, 2.5vh);
  border: 1px solid rgba(35, 38, 45, .18); background: rgba(255,255,255,.75); backdrop-filter: blur(6px);
  color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: background-color .2s, transform .3s var(--ease-out);
}
.intro__skip:hover { background: #fff; transform: translateY(-1px); }

.intro.is-leaving { opacity: 0; transition: opacity .55s ease; pointer-events: none; }
.intro.is-leaving.is-fast { transition-duration: .35s; }
.intro.is-leaving .intro__skip { opacity: 0; }

@media (max-width: 600px) {
  .intro__brand { flex-direction: column; text-align: center; gap: 8px; top: max(28px, 6vh); padding: 14px 20px; }
  .intro__mark { width: 64px; height: 46px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .project__media { clip-path: none; }
}
