/* =============================================================
   Nivel 305 Remodeling (demo) — styles.css
   Light architectural: concrete paper, charcoal ink, safety orange.
   ============================================================= */

/* 1. Tokens */
:root {
  --paper:   #F4F1EA;
  --paper-2: #EAE4D8;
  --sand:    #D9CBB4;
  --ink:     #161513;
  --ink-2:   #3B3833;
  --mute:    #7A746A;
  --line:    rgba(22, 21, 19, .14);
  --accent:  #F05A28;
  --accent-2:#C8441A;
  --night:   #1B1A17;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans:    "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 3rem);
  --maxw: 1320px;
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  font-family: var(--sans);
  font-variation-settings: "wdth" 100;
  font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-weight: 800; line-height: .95; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* 3. Utilities */
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .6rem 1rem; background: var(--ink); color: var(--paper); border-radius: 6px; }
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

/* 4. Typography */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow .tick { width: 22px; height: 10px; border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); position: relative; }
.eyebrow .tick::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--accent); }
.eyebrow--light { color: var(--sand); }

.title {
  font-family: var(--display);
  font-variation-settings: "wdth" 70;
  font-weight: 850;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 6.6vw, 5.8rem);
  letter-spacing: -.01em;
  margin-top: 1rem;
}
.title em { font-style: normal; color: var(--accent); }
.title--light { color: var(--paper); }
.head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); max-width: 60rem; }
.head-sub { margin-top: 1.2rem; max-width: 46ch; color: var(--ink-2); font-size: 1.08rem; }
.head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; max-width: none; }

/* 5. Components */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.3rem; border-radius: 6px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; line-height: 1;
  transition: transform .5s var(--ease-out), color .35s var(--ease-out), box-shadow .5s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease-out); }
.btn:hover::before { transform: scaleX(1); }
.btn-lg { padding: 1.1rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(240, 90, 40, .7); }
.btn-accent::before { background: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark::before { background: var(--accent); }
.btn-line { border: 2px solid var(--ink); color: var(--ink); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: var(--paper); }

.chip {
  padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: .88rem; font-weight: 600; color: var(--ink-2);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* 6. Sections */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.topbar { background: var(--ink); color: var(--sand); font-size: .8rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 36px; }
.topbar a { color: var(--paper); font-weight: 700; }
.topbar .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: .45rem; vertical-align: 1px; }
.topbar-hide { display: none; }

.nav { position: sticky; top: 0; z-index: 100; background: rgba(244, 241, 234, .96); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
@supports (backdrop-filter: blur(12px)) { .nav { background: rgba(244, 241, 234, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.nav.is-scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--nav-h); }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-variation-settings: "wdth" 75; font-weight: 900; font-size: 1.5rem; letter-spacing: .02em; }
.logo svg { width: 40px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; }
.logo svg circle { fill: var(--accent); stroke: none; }
.logo b { color: var(--accent); font-weight: 900; }
.nav-links { display: none; }
.nav-links a:not(.btn) { position: relative; font-weight: 600; font-size: .93rem; color: var(--ink-2); }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav-toggle { width: 44px; height: 44px; border-radius: 6px; border: 1.5px solid var(--ink); display: grid; place-content: center; gap: 6px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .45s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-links.is-open {
  display: flex; flex-direction: column; gap: 1.2rem;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  padding: 1.6rem var(--gutter) 2rem; background: var(--paper); border-bottom: 1px solid var(--line);
}
.nav-links.is-open a:not(.btn) { font-family: var(--display); font-variation-settings: "wdth" 75; font-weight: 800; font-size: 1.8rem; text-transform: uppercase; color: var(--ink); }

/* Hero */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem); overflow: clip; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  opacity: .6;
}
.hero-layout { display: grid; gap: 2.5rem; align-items: center; }
.hero-title {
  font-family: var(--display);
  font-variation-settings: "wdth" 66;
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 12vw, 6.6rem);
  line-height: .88; letter-spacing: -.015em;
  margin: 1.2rem 0 1.6rem;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; white-space: nowrap; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { max-width: 44ch; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-media { position: relative; margin: 0; }
.hero-frame {
  position: relative; overflow: hidden; border-radius: 10px;
  aspect-ratio: 4 / 3.4; background: var(--paper-2);
  box-shadow: 0 40px 80px -40px rgba(22, 21, 19, .45);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.8s var(--ease-out); }
.hero-tag {
  position: absolute; left: 1rem; bottom: 1rem;
  display: flex; gap: .7rem; align-items: center;
  padding: .55rem .85rem; border-radius: 6px;
  background: rgba(244, 241, 234, .94); font-size: .82rem; font-weight: 600;
}
.hero-tag .mono { color: var(--accent); }
.hero-badge {
  position: absolute; top: -34px; right: -10px; width: 118px; height: 118px;
  border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 18px 40px -16px rgba(240, 90, 40, .8);
}
.hero-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero-badge text { font-family: var(--mono); font-size: 9.6px; letter-spacing: 1.5px; fill: #fff; }
.hero-badge b { font-family: var(--display); font-variation-settings: "wdth" 70; font-weight: 900; font-size: 1.9rem; }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 2px solid var(--ink);
}
.stats li { padding: 1.2rem 1rem 0 0; border-right: 1px solid var(--line); }
.stats li:nth-child(2n) { border-right: 0; padding-left: 1rem; }
.stats strong { display: block; font-family: var(--display); font-variation-settings: "wdth" 70; font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; }
.stats li > span { display: block; margin-top: .3rem; font-size: .85rem; color: var(--mute); max-width: 20ch; }

/* Ruler marquee */
.ruler { position: relative; background: var(--accent); color: var(--ink); overflow: hidden; padding: 1rem 0 1.1rem; }
.ruler::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 16px), repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 80px);
  background-size: auto 6px, auto 12px; background-repeat: repeat-x; opacity: .5;
}
.ruler-track { display: flex; gap: 2.4rem; width: max-content; padding-top: .5rem; animation: marquee 40s linear infinite; }
.ruler span { font-family: var(--display); font-variation-settings: "wdth" 70; font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 3.6vw, 2.8rem); white-space: nowrap; display: inline-flex; align-items: center; gap: 2.4rem; }
.ruler span::after { content: ""; width: 14px; height: 14px; border: 3px solid var(--ink); border-radius: 50%; }

/* Services */
.services { padding: clamp(5rem, 10vw, 8rem) 0; }
.srv-grid { display: grid; gap: 1.2rem; }
.srv {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.srv::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.srv:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(22, 21, 19, .35); }
.srv:hover::after { transform: scaleX(1); }
.srv-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.srv-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.srv:hover .srv-img img { transform: scale(1.07); }
.srv-body { padding: 1.4rem 1.4rem 1.6rem; }
.srv-body .mono { color: var(--accent); }
.srv h3 { font-family: var(--display); font-variation-settings: "wdth" 75; font-weight: 850; text-transform: uppercase; font-size: 1.7rem; margin: .4rem 0 .5rem; }
.srv p { color: var(--ink-2); font-size: .95rem; }

/* Before / after */
.ba { background: var(--night); color: var(--paper); padding: clamp(5rem, 10vw, 8rem) 0; }
.ba-layout { display: grid; gap: 2.5rem; align-items: center; }
.ba-text { color: var(--sand); margin-top: 1.2rem; max-width: 40ch; font-size: 1.05rem; }
.ba-specs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(244, 241, 234, .18); }
.ba-specs dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.ba-specs dd { font-family: var(--display); font-variation-settings: "wdth" 75; font-weight: 800; font-size: 1.5rem; }

.ba-slider {
  position: relative; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden;
  user-select: none; touch-action: pan-y; background: #2a2824;
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before { filter: saturate(.85) contrast(.95); }
.ba-label {
  position: absolute; top: 1rem; padding: .4rem .7rem; border-radius: 4px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(27, 26, 23, .78); color: var(--paper); pointer-events: none;
}
.ba-label--before { left: 1rem; }
.ba-label--after { right: 1rem; background: var(--accent); color: #fff; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; }
.ba-handle i { position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--paper); }
.ba-handle b {
  position: absolute; top: 50%; left: 0; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6);
  transition: transform .3s var(--ease-out);
}
.ba-handle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ba-slider.is-dragging .ba-handle b { transform: scale(1.12); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-range:focus-visible + * , .ba-slider:focus-within .ba-handle b { outline: 3px solid var(--paper); outline-offset: 3px; }

/* Projects */
.projects { padding: clamp(5rem, 10vw, 8rem) 0; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.gallery { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.g-item { position: relative; margin: 0; overflow: hidden; border-radius: 10px; background: var(--paper-2); aspect-ratio: 4 / 3; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1.1rem 1rem;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  background: linear-gradient(180deg, transparent, rgba(22, 21, 19, .78));
  color: var(--paper);
}
.g-item figcaption b { font-family: var(--display); font-variation-settings: "wdth" 75; font-weight: 800; text-transform: uppercase; font-size: 1.25rem; line-height: 1.05; }
.g-item figcaption span { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); white-space: nowrap; }
.g-item.is-hidden { display: none; }
.g-item.is-entering { opacity: 0; transform: scale(.97); }

/* Process */
.process { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--paper-2); }
.process-layout { display: grid; gap: 3rem; }
.process-img { margin: 2rem 0 0; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 2; }
.process-img img { width: 100%; height: 100%; object-fit: cover; }
.steps { position: relative; display: grid; gap: 0; padding-left: 0; }
.step { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; padding: 1.8rem 0; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.step-n { font-family: var(--display); font-variation-settings: "wdth" 70; font-weight: 900; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: color .5s var(--ease-out), -webkit-text-stroke-color .5s; }
.step.is-on .step-n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step h3 { font-family: var(--display); font-variation-settings: "wdth" 75; font-weight: 850; text-transform: uppercase; font-size: 1.55rem; margin-bottom: .4rem; }
.step p { color: var(--ink-2); max-width: 46ch; }
.steps-line { display: none; }

/* Reviews */
.reviews { padding: clamp(5rem, 10vw, 8rem) 0; }
.rev-grid { display: grid; gap: 1.2rem; }
.rev { margin: 0; padding: 1.8rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem; }
.rev .stars { color: var(--accent); letter-spacing: .2em; }
.rev > p:not(.stars) { font-size: 1.12rem; line-height: 1.45; font-weight: 500; }
.rev footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.rev footer span { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

/* Areas + FAQ */
.areas { padding: 0 0 clamp(5rem, 10vw, 8rem); }
.areas-layout { display: grid; gap: 3rem; }
.area-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.area-list li { padding: .55rem 1rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: .9rem; }
.area-list li:first-child { background: var(--accent); }
.faq { border-top: 2px solid var(--ink); align-self: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.3rem 0; font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.4rem; color: var(--accent); transition: transform .4s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.3rem; color: var(--ink-2); max-width: 52ch; }

/* Contact */
.contact { background: var(--night); color: var(--paper); padding: clamp(5rem, 10vw, 8rem) 0; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(244, 241, 234, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 241, 234, .06) 1px, transparent 1px);
  background-size: 64px 64px;
}
.contact-layout { position: relative; display: grid; gap: 3rem; align-items: start; }
.contact-points { margin-top: 2.2rem; display: grid; gap: 1rem; }
.contact-points li { display: flex; gap: 1rem; align-items: baseline; padding-bottom: 1rem; border-bottom: 1px solid rgba(244, 241, 234, .14); font-size: 1.1rem; }
.contact-points .mono { color: var(--accent); min-width: 5.5rem; }
.quote { background: var(--paper); color: var(--ink); border-radius: 12px; padding: clamp(1.4rem, 4vw, 2.4rem); display: grid; gap: 1.1rem; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8); }
.q-row { display: grid; gap: 1.1rem; }
.q-field { display: grid; gap: .45rem; border: 0; padding: 0; min-width: 0; }
.q-field > span, .q-field legend { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 0; margin-bottom: .1rem; }
.q-field input, .q-field textarea {
  width: 100%; padding: .9rem 1rem; border-radius: 6px; border: 1.5px solid var(--line); background: #fff;
  transition: border-color .3s, box-shadow .3s;
}
.q-field textarea { resize: vertical; min-height: 96px; }
.q-field input:focus, .q-field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(240, 90, 40, .18); }
.q-field.is-invalid input { border-color: var(--accent-2); }
.q-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.q-chips label { position: relative; }
.q-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.q-chips span { display: block; padding: .55rem .95rem; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; background: #fff; transition: all .25s var(--ease-out); }
.q-chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.q-chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.q-field.is-invalid .q-chips span { border-color: var(--accent-2); }
.q-status { min-height: 1.4em; font-size: .92rem; font-weight: 600; color: var(--accent-2); }
.q-status.is-ok { color: #2f7d4f; }

/* Footer */
.footer { background: var(--ink); color: var(--sand); padding: clamp(3rem, 7vw, 5rem) 0 6rem; overflow: hidden; }
.footer-word { font-family: var(--display); font-variation-settings: "wdth" 62; font-weight: 900; font-size: clamp(5rem, 24vw, 22rem); line-height: .8; color: var(--paper); letter-spacing: -.02em; }
.footer-word b { color: var(--accent); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(244, 241, 234, .16); font-size: .85rem; }
.footer-row a, .demo-note a { text-decoration: underline; text-underline-offset: 3px; }
.footer-row a:hover, .demo-note a:hover { color: var(--accent); }
.demo-note { margin-top: 1.2rem; font-size: .8rem; color: var(--mute); max-width: 70ch; }

.demo-pill {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 150;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .9rem; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
  transition: background-color .3s var(--ease-out);
}
.demo-pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.demo-pill:hover { background: var(--accent); }

/* 7. Effects (only when JS runs: .fx) */
.fx .hero-title .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.fx .hero-title .line:nth-child(2) > span { transition-delay: .08s; }
.fx .hero-title .line:nth-child(3) > span { transition-delay: .16s; }
.fx .hero-title .line:nth-child(4) > span { transition-delay: .24s; }
.fx.is-loaded .hero-title .line > span { transform: none; }
.fx [data-hero] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out) .45s, transform 1s var(--ease-out) .45s; }
.fx.is-loaded [data-hero] { opacity: 1; transform: none; }
.fx .hero-frame { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-out) .2s; }
.fx.is-loaded .hero-frame { clip-path: inset(0 0 0 0); }
.fx.is-loaded .hero-frame img { transform: scale(1); }
.fx .hero-badge, .fx .hero-tag { opacity: 0; transform: scale(.8); transition: opacity .6s var(--ease-out) 1s, transform .8s var(--ease-out) 1s; }
.fx.is-loaded .hero-badge, .fx.is-loaded .hero-tag { opacity: 1; transform: none; }
.fx [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.fx [data-reveal].is-in { opacity: 1; transform: none; }
.fx .srv-grid [data-reveal]:nth-child(3n+2), .fx .rev-grid [data-reveal]:nth-child(2) { transition-delay: .1s; }
.fx .srv-grid [data-reveal]:nth-child(3n), .fx .rev-grid [data-reveal]:nth-child(3) { transition-delay: .2s; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* 8. Responsive */
@media (min-width: 540px) {
  .q-row { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .g-tall { grid-row: span 2; aspect-ratio: auto; }
}
@media (min-width: 720px) {
  .topbar-hide { display: inline; }
  .srv-grid { grid-template-columns: repeat(2, 1fr); }
  .rev-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats li, .stats li:nth-child(2n) { padding: 1.2rem 1.2rem 0; border-right: 1px solid var(--line); }
  .stats li:first-child { padding-left: 0; }
  .stats li:last-child { border-right: 0; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; align-items: center; gap: 2rem; }
  .nav-cta { display: inline-flex; }
  .nav-toggle, .nav-cta-mobile { display: none; }
  .nav-links.is-open { all: unset; display: flex; align-items: center; gap: 2rem; }
  .hero-layout { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .hero-title { font-size: clamp(4rem, 6.4vw, 6.6rem); }
  .srv-grid { grid-template-columns: repeat(3, 1fr); }
  .ba-layout { grid-template-columns: .8fr 1.2fr; gap: 4rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .g-wide { grid-column: 1 / -1; aspect-ratio: 3 / 1; }
  .process-layout { grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; }
  .process-side { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .areas-layout { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .contact-layout { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

/* 9. Reduced motion — intrusive only */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-badge svg { animation: none; }
}
