/* Alzado: recorridos 3D para inmobiliarias. One dark theme, a blueprint grid behind everything, thick bars and a glowing scan line as motifs.
   Shape rule: everything is square-cornered (radius 0), like a drawing sheet. One accent (redline vermilion). */
:root {
  --paper: #0d1012;
  --paper-2: #14181b;
  --ink: #eef0ee;
  --ink-2: #b4bcc0;
  --ink-3: #8f999e;
  --line: rgba(238, 240, 238, .14);
  --accent: #ff6a3d;
  --accent-ink: #ff8a64;
  --on-ink: #0d1012;
  --sheet-ink: #e6ebee;
  --sheet-soft: #8fa0aa;
  --gutter: clamp(16px, 3.4vw, 48px);
  --head: 64px;
  --bar: 8px;
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--sans); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(165, 190, 210, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(165, 190, 210, .07) 1px, transparent 1px),
    linear-gradient(rgba(165, 190, 210, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(165, 190, 210, .035) 1px, transparent 1px);
  background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 30%, transparent 100%);
}
.film-on::before { display: none; } /* fully covered by the film: not worth compositing */
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--on-ink); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), 1400px); margin-inline: auto; }
.num, .mono { font-family: var(--mono); font-feature-settings: "zero" 0; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, min(5vw, 9.5dvh), 5rem); line-height: 1; letter-spacing: -0.04em; font-stretch: 108%; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
.lead { color: var(--ink-2); font-size: clamp(1.02rem, 1.25vw, 1.18rem); max-width: 46ch; }
/* headline lines rise out of a mask */
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.08em; }
.ln > span { display: block; }

/* buttons: square, ink on paper; secondary is a text link with an arrow */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink); text-decoration: none; font-weight: 600;
  font-size: 15.5px; letter-spacing: -0.005em; white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-ink); }
.btn:active { transform: translateY(1px) scale(.985); }
.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; font-size: 15.5px; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 12px) / 100% 1px no-repeat;
}
.link .arr { transition: transform .25s var(--ease); }
.link:hover .arr { transform: translateX(4px); }

/* ---------------------------------------------------------------- header */
.head {
  position: fixed; inset: 0 0 auto; z-index: 30; height: var(--head);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.head.scrolled { border-bottom-color: var(--line); }
@media (prefers-reduced-transparency: reduce) { .head { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.head .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.04em; font-stretch: 118%; }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { position: relative; text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 12px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.head .btn { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
@media (max-width: 760px) { .nav { display: none; } .head .btn { margin-left: auto; } }

/* ---------------------------------------------------------------- hero: full-screen film, always dark */
.hero {
  position: relative; height: 100dvh; min-height: 540px; overflow: hidden; background: var(--paper); color: var(--ink); isolation: isolate;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(13, 16, 18, .94) 18%, rgba(13, 16, 18, 0)); }
/* the box holds frames and plan overlay in one pixel space and covers the screen, cropping what does not fit */
.film {
  --ar: 1.7778; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max(100%, calc(100dvh * var(--ar))); aspect-ratio: var(--ar);
  background: var(--paper) url("img/seq/v2/l/g.webp") center / 100% 100% no-repeat;
}
.film.is-p { --ar: .5625; background-image: url("img/seq/v2/p/g.webp"); }
.film > * { position: absolute; inset: 0; width: 100%; height: 100%; }
#seq { opacity: 0; will-change: opacity; }
.film .plan { z-index: 1; }
.film .plan-p, .film.is-p .plan-l { display: none; }
.film.is-p .plan-p { display: block; }
.film .scan { z-index: 3; width: 3px; right: auto; background: var(--accent); opacity: 0; box-shadow: 0 0 30px 7px rgba(255, 106, 61, .65); }
.still { display: none; position: absolute; inset: 0; }
.still img { width: 100%; height: 100%; object-fit: cover; }
.still::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13, 16, 18, .88) 12%, rgba(13, 16, 18, .25) 70%); }
.lite .film, .no-js .film { display: none; }
.lite .still, .no-js .still { display: block; }
.hero-ui {
  position: relative; z-index: 2; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px;
  padding-block: calc(var(--head) + 8px) clamp(16px, 2.8vh, 26px);
}
.hero-copy { grid-area: 1 / 1; }
.hero-copy { align-self: center; display: grid; gap: clamp(16px, 2.6vh, 24px); max-width: min(56%, 760px); }
.hero h1 { font-size: clamp(2.6rem, min(6.1vw, 12dvh), 6.6rem); line-height: 1; letter-spacing: -0.045em; font-stretch: 108%; font-weight: 600; text-wrap: nowrap; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 44ch; color: var(--ink-2); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero .btn { min-height: 52px; padding: 0 26px; }
.hint { font: 500 12.5px/1 var(--mono); color: var(--ink-3); }
.lite .hint, .no-js .hint { display: none; }
.hint .arr { display: inline-block; margin-left: 4px; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
/* timeline: thick bars that fill with the film */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); }
.steps li { position: relative; padding-top: 20px; color: rgba(238, 240, 238, .6); font: 500 clamp(12.5px, 1vw, 14.5px)/1.35 var(--mono); transition: color .3s; }
.steps li::before, .steps li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--bar); }
.steps li::before { background: rgba(238, 240, 238, .2); }
.steps li::after { background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.steps li b { display: block; font: 600 clamp(1.2rem, 1.9vw, 1.7rem)/1.15 var(--sans); font-stretch: 106%; color: inherit; letter-spacing: -0.02em; margin-bottom: 5px; }
.steps li.on { color: #fff; }
.steps li.done { color: rgba(238, 240, 238, .88); }
.lite .steps li::after, .no-js .steps li::after { transform: none; }
.lite .steps li, .no-js .steps li { color: rgba(238, 240, 238, .88); }
/* over the film the header goes dark too, with no bar */
.head.on-hero {
  --ink: #fff; --ink-2: #fff; color: var(--ink); border-bottom-color: transparent;
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.head.on-hero::before { content: ""; position: absolute; inset: 0 0 -46px; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(13, 16, 18, .86), rgba(13, 16, 18, .5) 55%, rgba(13, 16, 18, 0)); }
/* stroke widths are in drawing units; no non-scaling-stroke, it breaks pathLength dashes */
.plan path { fill: none; stroke: var(--sheet-ink); stroke-linejoin: round; stroke-linecap: square; }
.plan .g-walls .ext { stroke-width: 2.8; fill: var(--sheet-ink); fill-opacity: 0; }
.plan .g-walls .int { stroke-width: 2; fill: var(--sheet-ink); fill-opacity: 0; }
.no-js .plan .g-walls .ext, .no-js .plan .g-walls .int { fill-opacity: .85; }
.plan .g-walls .porch { stroke-width: 1.4; stroke: var(--sheet-soft); }
.plan .g-open path { stroke-width: 1.3; }
.plan .g-open .arc { stroke: var(--sheet-soft); stroke-width: 1.1; }
.plan .g-furn path, .plan .g-furn circle { fill: none; stroke: var(--sheet-soft); stroke-width: 1.2; }
.plan .g-dims path { stroke: #c2401b; stroke-width: 1.4; }
.plan .g-dims text { fill: #b5370f; font: 500 16px var(--mono); }
.plan .g-rooms text { fill: var(--sheet-ink); font: 600 14px var(--sans); letter-spacing: -0.01em; }
.plan .g-rooms .m2 { fill: var(--sheet-soft); font: 500 12px var(--mono); }
.film .plan .g-dims path { stroke: var(--accent); }
.film .plan .g-dims text { fill: var(--accent-ink); }
.film .plan-p .g-rooms { display: none; }
/* initial (pre-JS / no-motion) state shows the full drawing */
.js .plan path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .plan .g-furn, .js .plan .g-dims, .js .plan .g-rooms { opacity: 0; }

@media (max-width: 899px) {
  .hero { min-height: 100svh; height: 100svh; }
  .hero-ui { padding-top: calc(var(--head) + 14px); }
  .hero-copy { align-self: start; max-width: none; gap: 12px; }
  .hero h1 { font-size: clamp(2.3rem, 11.5vw, 4.4rem); }
  .hero .lead { font-size: .95rem; }
  .hint { display: none; }
  .hero .btn { min-height: 48px; padding: 0 20px; }
  .steps li { padding-top: 14px; font-size: 11.5px; }
  .steps li::before, .steps li::after { height: 6px; }
  .steps li b { font-size: 16px; margin-bottom: 3px; }
}

/* ---------------------------------------------------------------- shared section rhythm */
.sec { position: relative; padding-block: clamp(88px, 13vh, 150px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 5vh, 52px); }
.sec-head .kicker { grid-column: 1 / -1; }
.sec-head .lead { padding-bottom: .4em; }
.kicker { display: flex; align-items: center; gap: 12px; font: 500 13px/1 var(--mono); color: var(--ink-2); letter-spacing: .02em; }
.kicker::before { content: ""; flex: none; width: 34px; height: var(--bar); background: var(--accent); }
/* the glowing line of the hero, reused wherever an image is revealed */
.scanl { position: absolute; top: 0; bottom: 0; left: 0; z-index: 3; width: 3px; transform: translateX(-100%); background: var(--accent); opacity: 0; box-shadow: 0 0 26px 6px rgba(255, 106, 61, .6); pointer-events: none; }
@media (max-width: 899px) {
  .sec-head { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- demo window */
/* the whole demo (window and options) fits on one screen at 100% zoom, with room to spare */
/* the anchor lands with the section at the very top, so nothing of the film shows under the header */
.demo { padding-block: calc(var(--head) + clamp(14px, 3vh, 30px)) clamp(56px, 9vh, 100px); scroll-margin-top: calc(-1 * (var(--head) + 12px)); }
/* on large screens the demo rises over the pinned film as it goes dark, so the last frame never lingers on its own */
.curtain .demo { position: relative; z-index: 2; margin-top: calc(-1 * max(100dvh, 540px)); background: var(--paper); }
.curtain .demo::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 22vh; pointer-events: none; background: linear-gradient(to top, var(--paper), rgba(13, 16, 18, 0)); }
.curtain .demo::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 72px; pointer-events: none; background: linear-gradient(to bottom, var(--paper), rgba(13, 16, 18, 0)); }
.demo .sec-head { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 18px; }
.demo h2 { font-size: clamp(2rem, min(3.6vw, 6.5dvh), 3.4rem); }
.demo .frame {
  --demo-w: min(calc((100dvh - var(--head) - 270px) * 16 / 9), 1040px);
  position: relative; display: grid; grid-template-columns: minmax(0, var(--demo-w)) minmax(270px, 1fr);
  gap: clamp(20px, 3vw, 44px); align-items: start;
}
/* viewfinder corners that stay put while the window opens inside them */
.win-wrap {
  --c: var(--accent); padding: 10px;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 26px 3px, linear-gradient(var(--c), var(--c)) 0 0 / 3px 26px,
    linear-gradient(var(--c), var(--c)) 100% 0 / 26px 3px, linear-gradient(var(--c), var(--c)) 100% 0 / 3px 26px,
    linear-gradient(var(--c), var(--c)) 0 100% / 26px 3px, linear-gradient(var(--c), var(--c)) 0 100% / 3px 26px,
    linear-gradient(var(--c), var(--c)) 100% 100% / 26px 3px, linear-gradient(var(--c), var(--c)) 100% 100% / 3px 26px;
  background-repeat: no-repeat;
}
.demo .side { display: grid; gap: 18px; align-content: start; padding-top: 10px; }
.demo .side .lead { font-size: 1.02rem; }
.demo .note { margin-top: 0; }
.win {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--paper-2); overflow: hidden;
  clip-path: inset(0 0 0 0); will-change: clip-path;
}
.win > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }
.win iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #c9d6de; }
.win .veil { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: linear-gradient(to top, rgba(13, 16, 18, .55), rgba(13, 16, 18, .1)); color: var(--ink); }
.win .veil .panel { display: grid; justify-items: center; gap: 14px; padding: 22px 28px 20px; background: rgba(13, 16, 18, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px var(--line); }
@media (prefers-reduced-transparency: reduce) { .win .veil .panel { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.win .veil .btn { min-height: 54px; padding: 0 28px; font-size: 16px; }
.win .veil small { font: 500 12.5px/1.4 var(--mono); color: var(--ink-2); }
.live { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); color: var(--ink); }
.live i { width: 8px; height: 8px; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.win .loading { position: absolute; left: 0; right: 0; bottom: 0; height: var(--bar); background: rgba(255, 255, 255, .14); }
.win .loading i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .4s var(--ease); }
.win:fullscreen { aspect-ratio: auto; max-height: none; }
.controls { display: grid; gap: 16px; }
.ctl { display: grid; gap: 9px; }
.ctl > span { font: 500 12.5px/1 var(--mono); color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 40px; padding: 0 13px; border: 1px solid rgba(238, 240, 238, .22); background: transparent; color: var(--ink); cursor: pointer;
  font-size: 14px; font-weight: 500; transition: background-color .2s, border-color .2s, color .2s, transform .18s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-ink); border-color: var(--accent); font-weight: 600; }
.chip:active { transform: translateY(1px); }
.controls .full {
  justify-self: stretch; justify-content: center; min-height: 50px; padding: 0 16px; border: 1px solid var(--ink); background: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.controls .full:hover { background: var(--accent); border-color: var(--accent); color: var(--on-ink); }
.note { font-size: 13.5px; color: var(--ink-3); max-width: 80ch; }
@media (max-width: 899px) {
  .demo .frame { grid-template-columns: minmax(0, 1fr); }
  .win { max-height: max(calc(100dvh - var(--head) - 170px), 260px); }
  .controls .full { justify-self: stretch; }
}
/* narrow columns: the demo explains itself once inside, so the note makes way */
@media (max-width: 1099px) { .demo .note { display: none; } }
@media (max-width: 640px) {
  .win { aspect-ratio: 4 / 5; }
  .chip { min-height: 44px; }
}

/* ---------------------------------------------------------------- the promise, lit word by word */
.say { position: relative; padding-block: clamp(56px, 12vh, 140px); }
.say p { font-size: clamp(2.7rem, min(8.4vw, 17dvh), 8.8rem); font-weight: 600; line-height: 1; letter-spacing: -0.05em; font-stretch: 110%; }
.say p > span, .say em { display: block; }
.say em { font-style: normal; color: var(--accent); }

/* ---------------------------------------------------------------- staging comparator */
.compare-sec { padding-top: clamp(24px, 5vh, 60px); }
.compare-sec .wrap { display: grid; grid-template-columns: 60% minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.compare { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; user-select: none; touch-action: pan-y; background: var(--paper-2); --pos: 50%; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .rule { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--accent); box-shadow: 0 0 26px 6px rgba(255, 106, 61, .55); pointer-events: none; }
.compare .knob {
  position: absolute; top: 50%; left: var(--pos); width: 54px; height: 54px; margin: -27px 0 0 -27px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-ink); pointer-events: none; font: 700 19px/1 var(--sans); transition: transform .25s var(--ease);
}
.compare:hover .knob { transform: scale(1.1); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare input:focus-visible ~ .knob { outline: 2px solid var(--ink); outline-offset: 3px; }
.compare .tag { position: absolute; bottom: 14px; font: 500 12.5px/1 var(--mono); color: var(--ink); background: rgba(13, 16, 18, .72); padding: 8px 10px; pointer-events: none; }
.compare .tag.l { left: 14px; } .compare .tag.r { right: 14px; }
.compare-copy { display: grid; gap: 20px; }
.hintk { font: 500 12.5px/1.4 var(--mono); color: var(--ink-3); }
@media (max-width: 899px) {
  .compare-sec .wrap { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .compare { aspect-ratio: 4 / 3; max-width: 460px; }
  .compare-copy { order: -1; }
}

/* ---------------------------------------------------------------- images: one series per service */
.deliv > * { min-width: 0; }
.deliv-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); margin-bottom: clamp(18px, 3vh, 28px); }
.tab { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; min-height: 48px; padding: 20px 0 0; border: 0; background: none; color: rgba(238, 240, 238, .6); text-align: left; cursor: pointer; transition: color .25s; }
.tab::before, .tab::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--bar); }
.tab::before { background: rgba(238, 240, 238, .2); transition: background-color .25s; }
.tab::after { background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.tab:hover { color: var(--ink); }
.tab:hover::before { background: rgba(238, 240, 238, .34); }
.tab b { font: 600 clamp(1.2rem, 1.9vw, 1.7rem)/1.15 var(--sans); font-stretch: 106%; letter-spacing: -0.02em; }
.tab .n { font: 500 12.5px/1 var(--mono); color: var(--ink-3); }
.tab[aria-selected="true"] { color: #fff; }
.tab[aria-selected="true"] .n { color: var(--ink-2); }
.deliv-view {
  --shot-w: min(calc((100dvh - var(--head) - 230px) * 1.6), 960px);
  display: grid; grid-template-columns: minmax(0, var(--shot-w)) minmax(260px, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start;
}
.shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); cursor: pointer; touch-action: pan-y; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot img.next { clip-path: inset(0 100% 0 0); transition: clip-path .85s var(--ease); }
.shot img.next.in { clip-path: inset(0 0 0 0); }
.deliv-side { display: grid; gap: 16px; align-content: start; }
.deliv-desc { color: var(--ink-2); font-size: 1.02rem; }
.cap { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-block: 1px solid var(--line); font-size: 15px; }
.cap .code { flex: none; font: 500 12.5px/1 var(--mono); color: var(--accent-ink); }
.cap .cnt { flex: none; margin-left: auto; font: 500 12.5px/1 var(--mono); color: var(--ink-3); }
.thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.thumbs button { position: relative; aspect-ratio: 16 / 10; padding: 0; border: 0; overflow: hidden; background: var(--paper-2); cursor: pointer; opacity: .55; transition: opacity .25s, box-shadow .25s; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.thumbs button:hover { opacity: 1; }
.thumbs button:hover img { transform: scale(1.06); }
.thumbs button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.pp { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; font: 500 12.5px/1 var(--mono); color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; transition: color .2s; }
.pp:hover { color: var(--accent-ink); }
@media (max-width: 899px) {
  .deliv-view { grid-template-columns: minmax(0, 1fr); }
  .tab { padding-top: 14px; }
  .tab::before, .tab::after { height: 6px; }
  .tab b { font-size: 16px; }
  .tab .n { display: none; }
  .thumbs { display: flex; overflow-x: auto; scrollbar-width: none; padding: 3px; margin-inline: -3px; }
  .thumbs::-webkit-scrollbar { display: none; }
  .thumbs button { flex: 0 0 92px; }
}

/* ---------------------------------------------------------------- process: cards on the thick line */
.process { overflow: hidden; }
.rail { position: relative; }
.track { position: relative; width: min(100% - 2 * var(--gutter), 1400px); margin-inline: auto; padding-top: 54px; }
.process .cota { position: absolute; left: 0; top: 0; height: 40px; width: 100%; overflow: visible; }
.process .cota path { fill: none; }
.process .cota .bar-bg { stroke: rgba(238, 240, 238, .2); stroke-width: var(--bar); }
.process .cota .bar-fg { stroke: var(--accent); stroke-width: var(--bar); }
.process .cota .ticks { stroke: var(--ink-2); stroke-width: 2; }
.process ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step { display: grid; gap: 16px; align-content: start; }
.st { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 18px; align-items: start; }
.st .num { font-size: clamp(3rem, min(5.4vw, 10dvh), 5.2rem); font-weight: 600; line-height: .92; letter-spacing: -0.05em; font-stretch: 108%; color: var(--accent); transition: color .35s, -webkit-text-stroke-color .35s; -webkit-text-stroke: 1.5px var(--accent); }
.st .mono { display: block; font-size: 12.5px; line-height: 1; color: var(--accent-ink); margin-bottom: 8px; }
.step h3 { font-size: clamp(1.25rem, 1.9vw, 1.65rem); font-stretch: 106%; letter-spacing: -0.025em; margin-bottom: 7px; transition: color .3s; }
.step p { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; max-width: 40ch; }
.vis { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.vis > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 1 · the drawing arrives with its files */
.vis-plan { background: var(--paper) url("img/seq/v2/l/g.webp") center / cover no-repeat; }
.vis-plan .plan-mini { position: absolute; inset: 6% 0 6% 18%; width: 82%; height: 88%; }
.plan-mini .g-rooms, .plan-mini .g-furn { display: none; }
.plan-mini .g-walls .ext { stroke-width: 4; } .plan-mini .g-walls .int { stroke-width: 3; }
.plan-mini .g-open path { stroke-width: 2; }
.plan-mini .g-dims path { stroke: var(--accent); stroke-width: 2.2; }
.plan-mini .g-dims text { fill: var(--accent-ink); font-size: 22px; }
.vis-plan .files { position: absolute; left: 5%; bottom: 7%; margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; justify-items: start; }
.vis-plan .files li { font: 500 12px/1 var(--mono); color: var(--ink); background: rgba(13, 16, 18, .85); box-shadow: 0 0 0 1px rgba(238, 240, 238, .24); padding: 8px 10px; }
/* 2 · the model in a browser window */
.vis-app .bar { position: absolute; left: 0; right: 0; top: 0; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #1c2125; z-index: 1; }
.vis-app .bar i { width: 8px; height: 8px; background: rgba(238, 240, 238, .28); }
.vis-app .bar i:first-child { background: var(--accent); }
.vis-app .bar span { margin-left: 10px; font: 500 11.5px/1 var(--mono); color: var(--ink-2); }
.vis-app > img { top: 30px; height: calc(100% - 30px); }
/* 3 · render, phone and the formats (the phone is the one rounded thing: it depicts a device) */
.vis-out .phone { position: absolute; right: 6%; bottom: -4%; width: 24%; aspect-ratio: 430 / 932; padding: 5px; background: #0a0c0d; border-radius: 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(238, 240, 238, .16); }
.vis-out .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 17px; }
.vis-out .tags { position: absolute; left: 5%; top: 7%; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.vis-out .tags li { font: 500 12px/1 var(--mono); color: var(--ink); background: rgba(13, 16, 18, .78); padding: 8px 10px; }
/* large screens with motion: the cards become a row that slides sideways while the section is pinned */
.process.hs { scroll-margin-top: calc(-1 * (var(--head) + 12px)); height: 100dvh; min-height: 620px; padding-block: calc(var(--head) + 12px) 20px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; }
.process.hs .sec-head { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: clamp(14px, 2.6vh, 26px); }
.process.hs h2 { font-size: clamp(2.1rem, min(4vw, 7.4dvh), 4rem); }
.process.hs .track { width: max-content; margin: 0; padding-left: max(var(--gutter), (100vw - 1400px) / 2); padding-right: max(var(--gutter), (100vw - 1400px) / 2); }
.process.hs ol { display: flex; gap: clamp(32px, 4vw, 64px); }
.process.hs .step { width: min(46vw, (100dvh - 470px) * 1.6, 820px); min-width: 400px; }
.process.hs .step:not(.on) .vis { filter: saturate(.7) brightness(.8); }
.process.hs .step .vis { transition: filter .45s; }
.process.hs .step:not(.on) h3 { color: var(--ink-3); }
.process.hs .step:not(.on) .num { color: transparent; }
@media (max-width: 899px) {
  .track { width: auto; padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
  .track::-webkit-scrollbar { display: none; }
  .process ol { display: flex; gap: 18px; width: max-content; }
  .step { width: min(84vw, 460px); scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .process .cota { left: var(--gutter); }
  .process .cota .bar-bg, .process .cota .bar-fg { stroke-width: 6; }
  .vis-plan .files li { font-size: 11px; padding: 6px 7px; }
}

/* ---------------------------------------------------------------- contact: the closing shot */
.contact { min-height: 100dvh; display: grid; align-items: center; overflow: hidden; isolation: isolate; padding-block: clamp(96px, 13vh, 140px); }
.contact .bg { position: absolute; inset: -9% 0; z-index: -2; background: url("img/ext-02.webp") center / cover no-repeat; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, var(--paper) 0, rgba(13, 16, 18, 0) 26%, rgba(13, 16, 18, 0) 74%, var(--paper) 100%),
    linear-gradient(95deg, rgba(13, 16, 18, .9) 8%, rgba(13, 16, 18, .42) 52%, rgba(13, 16, 18, .62) 100%);
}
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.contact .intro { display: grid; gap: 22px; }
.contact h2 { font-size: clamp(2.5rem, min(5.4vw, 10.5dvh), 5.6rem); }
.contact .direct { font-size: 15.5px; color: var(--ink-2); }
.contact .direct a { color: var(--ink); font-weight: 600; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(20px, 2.6vw, 36px); background: rgba(13, 16, 18, .76); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px var(--line); }
@media (prefers-reduced-transparency: reduce) { form { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.field { display: grid; gap: 8px; align-content: start; }
.field.wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14.5px; }
.field label small { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: rgba(238, 240, 238, .05); border: 1px solid rgba(238, 240, 238, .26);
  border-radius: 0; font-size: 16px; transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(238, 240, 238, .5); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); background: rgba(238, 240, 238, .08); }
.field .err { font-size: 13.5px; color: var(--accent-ink); min-height: 1em; }
.field [aria-invalid="true"] { border-color: var(--accent-ink); }
.form-end { grid-column: 1 / -1; display: grid; gap: 12px; }
form .btn { width: 100%; min-height: 56px; background: var(--accent); border-color: var(--accent); color: var(--on-ink); font-size: 16px; }
form .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.form-end .status { font-size: 14.5px; color: var(--ink-2); }
.form-end .status:empty { display: none; }
@media (max-height: 800px) and (min-width: 900px) {
  form { gap: 10px 18px; padding: 20px 24px; }
  .field { gap: 6px; }
  .field input { min-height: 44px; padding-block: 8px; }
  .field textarea { min-height: 76px; }
  form .btn { min-height: 50px; }
}
@media (max-width: 899px) {
  .contact { min-height: 0; }
  .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  form { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- footer: the name, huge */
.foot { padding-block: clamp(36px, 6vh, 64px) 22px; overflow: hidden; }
.foot-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 40px; padding-bottom: clamp(20px, 3vh, 32px); border-bottom: 1px solid var(--line); }
.foot-claim { font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 600; letter-spacing: -0.015em; font-stretch: 106%; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.foot-nav a:hover { color: var(--accent-ink); }
.wordmark { overflow: hidden; margin-block: clamp(14px, 2.4vh, 26px) 6px; font-size: min(28.2vw, 425px); font-weight: 700; line-height: .86; letter-spacing: -0.065em; font-stretch: 118%; color: transparent; -webkit-text-stroke: 1.5px rgba(238, 240, 238, .42); white-space: nowrap; user-select: none; }
.wordmark span { display: block; padding-bottom: .06em; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; font: 500 12px/1.5 var(--mono); color: var(--ink-3); }

/* ---------------------------------------------------------------- reveal helpers (JS adds .js to <html>) */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .js .plan-mini path { stroke-dashoffset: 0; }
  .js .plan-mini .g-dims { opacity: 1; }
  .hint .arr { animation: none; }
  .plan-mini .g-walls .ext, .plan-mini .g-walls .int { fill-opacity: .85; }
  .shot img.next { transition: none; }
  .scanl { display: none; }
}

/* small sheets: thicker drawing, no room names (they would be unreadable) */
@media (max-width: 899px) {
  .plan .g-walls .ext { stroke-width: 5; }
  .plan .g-walls .int { stroke-width: 3.6; }
  .plan .g-walls .porch, .plan .g-open path { stroke-width: 2.4; }
  .plan .g-open .arc, .plan .g-furn path, .plan .g-furn circle { stroke-width: 2; }
  .plan .g-dims path { stroke-width: 2.4; }
  .plan .g-dims text { font-size: 30px; }
  .plan .g-rooms { display: none; }
}
