/* ==========================================================
   SKYCAD — cadastru din cer
   ========================================================== */
:root {
  --ink: #141512;
  --coal: #1d1e1b;
  --graphite: #333333;
  --paper: #ebebeb;
  --white: #ffffff;
  --mute: rgba(255, 255, 255, .55);
  --line: rgba(255, 255, 255, .16);
  --line-dark: rgba(20, 21, 18, .18);
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --display: 'Antonio', 'Arial Narrow', Impact, sans-serif;
  --serif: 'Abril Fatface', 'Bodoni MT', Didot, Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --body: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: clamp(1rem, .95rem + .2vw, 1.125rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--white); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.mono {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 400;
}
.serif { font-family: var(--serif); font-weight: 400; text-transform: none; letter-spacing: -.01em; }
.wrap { padding-inline: var(--pad); position: relative; }

.char, .word { display: inline-block; will-change: transform; }
.word { white-space: nowrap; }
.mask { display: inline-block; overflow: hidden; overflow: clip; vertical-align: top; padding-top: .14em; margin-top: -.14em; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: grid; place-items: center;
  padding: var(--pad);
}
.loader__mark { width: min(38vw, 260px); }
.loader__mark svg { width: 100%; height: auto; overflow: visible; }
.loader__mark path { fill: var(--white); opacity: 0; transform-box: fill-box; transform-origin: center; }
.loader__row {
  position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) + 14px);
  display: flex; justify-content: space-between; align-items: flex-end;
}
.loader__status { color: var(--mute); }
.loader__count { font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 14vw, 11rem); line-height: .8; letter-spacing: -.02em; }
.loader__count i { font-style: normal; font-size: .3em; vertical-align: top; margin-left: .1em; }
.loader__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); height: 1px; background: var(--line); }
.loader__bar span { display: block; height: 100%; background: var(--white); transform: scaleX(0); transform-origin: left; }
.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor, .js .cursor-dot {
    display: block; position: fixed; top: 0; left: 0; z-index: 90;
    pointer-events: none; border-radius: 50%;
    mix-blend-mode: difference;
  }
  .cursor {
    width: 44px; height: 44px; margin: -22px 0 0 -22px;
    border: 1px solid #fff;
    display: grid !important; place-items: center;
    transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, opacity .3s;
    opacity: 0;
  }
  .cursor::before, .cursor::after { content: ''; position: absolute; background: #fff; transition: opacity .3s; }
  .cursor::before { width: 1px; height: 10px; top: -5px; left: 50%; box-shadow: 0 43px 0 #fff; }
  .cursor::after { height: 1px; width: 10px; left: -5px; top: 50%; box-shadow: 43px 0 0 #fff; }
  .cursor-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; background: #fff; opacity: 0; }
  .cursor.is-on, .cursor-dot.is-on { opacity: 1; }
  .cursor.is-hover { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: #fff; }
  .cursor.is-hover::before, .cursor.is-hover::after { opacity: 0; }
  .cursor__label { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
  .cursor.is-hover .cursor__label { opacity: 1; }
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem var(--pad);
  mix-blend-mode: difference;
  color: #fff;
  transition: transform .6s var(--ease);
}
.header.is-hidden { transform: translateY(-110%); }
.header__logo img { height: clamp(46px, 5vw, 64px); width: auto; }
.header__nav { margin-left: auto; display: flex; gap: clamp(1.25rem, 2.5vw, 2.75rem); }
.header__nav a, .header__cta {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  position: relative; padding: .4rem 0;
}
.header__nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__cta { border: 1px solid #fff; padding: .7rem 1.1rem; border-radius: 100px; transition: background-color .3s, color .3s; }
.header__cta:hover { background: #fff; color: #000; }
.burger { display: none; width: 44px; height: 44px; position: relative; margin-left: auto; }
.burger i { position: absolute; left: 8px; right: 8px; height: 1.5px; background: #fff; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger i:first-child { top: 17px; } .burger i:last-child { top: 26px; }
.burger[aria-expanded="true"] i:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 3rem;
  padding: 6rem var(--pad) var(--pad);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3rem, 15vw, 6rem); line-height: 1.05;
  border-top: 1px solid var(--line); padding: .15em 0;
  transform: translateY(40px); opacity: 0; transition: transform .8s var(--ease), opacity .6s;
}
.menu.is-open .menu__nav a { transform: none; opacity: 1; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .06s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .12s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .18s; }
.menu__nav small { color: var(--mute); }
.menu__foot { display: flex; flex-wrap: wrap; gap: .75rem 2rem; color: var(--mute); }

@media (max-width: 860px) {
  .header__nav, .header__cta { display: none; }
  .burger { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 1.15rem 1.7rem; border-radius: 100px; border: 1px solid #fff;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease);
  will-change: transform;
}
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .45s var(--ease); }
.btn::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover svg { transform: rotate(45deg); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light::before { background: var(--ink); }
.btn--light:hover { color: #fff; }
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate;
  padding: 7rem var(--pad) 0;
}
.hero__media { position: absolute; inset: -6% -3%; z-index: -3; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; filter: contrast(1.08) brightness(.82); }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to top, var(--ink) 0%, rgba(20,21,18,.78) 30%, rgba(20,21,18,.1) 62%, rgba(20,21,18,.1) 80%, rgba(20,21,18,.82) 100%),
    radial-gradient(120% 80% at 30% 30%, transparent 40%, rgba(20,21,18,.55) 100%);
}
.hero__scan {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 8vw 8vw;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
}
.hero__scan::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 28vh;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.09) 96%, rgba(255,255,255,.55) 100%);
  animation: scan 6.5s cubic-bezier(.45,0,.55,1) infinite;
}
@keyframes scan { from { transform: translateY(-30vh); } to { transform: translateY(105vh); } }

.hero__cross { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s; }
.hero__cross.is-on { opacity: 1; }
.hero__cross-x, .hero__cross-y { position: absolute; background: rgba(255,255,255,.28); will-change: transform; }
.hero__cross-x { left: 0; right: 0; top: 0; height: 1px; }
.hero__cross-y { top: 0; bottom: 0; left: 0; width: 1px; }
.hero__cross-read { position: absolute; top: 0; left: 0; padding: .6rem 0 0 .8rem; color: rgba(255,255,255,.75); white-space: nowrap; font-size: .62rem; will-change: transform; }
@media (hover: none), (pointer: coarse) { .hero__cross { display: none; } }

.hero__corner { position: absolute; top: 6.5rem; display: flex; flex-direction: column; gap: .35rem; color: rgba(255,255,255,.7); font-size: .65rem; }
.hero__corner--tl { left: var(--pad); }
.hero__corner--tr { right: var(--pad); text-align: right; }
.hero__corner b { font-weight: 500; color: #fff; }
.rec { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-left: .4em; animation: blink 1.4s steps(2) infinite; }

.hero__content { position: relative; }
.hero__eyebrow { color: rgba(255,255,255,.8); margin-bottom: 1.2rem; }
.hero__title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: min(17.5vw, 24vh); line-height: .86; letter-spacing: -.02em;
  margin-left: -.03em;
}
.hero__title .line { display: block; overflow: hidden; overflow: clip; padding-top: .16em; margin-top: -.16em; padding-bottom: .14em; }
.hero__title .line__in { display: block; }
.hero__title .line--serif { font-family: var(--serif); font-weight: 400; text-transform: none; letter-spacing: -.035em; font-size: .86em; line-height: .95; padding-bottom: .12em; padding-left: .04em; margin-top: -.323em; /* own .16em mask + the .14em (parent em) bottom mask of the line above; sibling margins collapse, so it is summed here */ }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem 4rem; flex-wrap: wrap; margin-top: clamp(1.25rem, 3vh, 2.5rem); }
.hero__lead { max-width: 34rem; color: rgba(255,255,255,.82); font-size: clamp(1rem, .9rem + .45vw, 1.3rem); line-height: 1.45; }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  border-top: 1px solid var(--line); margin-top: clamp(1.5rem, 4vh, 3rem); padding: 1.1rem 0;
  color: rgba(255,255,255,.65); font-size: .65rem;
}
.hero__scroll { display: inline-flex; align-items: center; gap: .7rem; }
.hero__scroll i { width: 1px; height: 26px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; inset: 0; background: #fff; animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
@media (max-width: 640px) {
  .hero__corner--tr { display: none; }
  .hero__corner { top: 5.5rem; }
  .hero__title { font-size: min(24vw, 26vh); }
  .hero__bar span:first-child { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--paper); color: var(--ink); overflow: hidden; padding: clamp(1rem, 2.2vw, 2rem) 0; position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee span { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.5rem, 7vw, 6.5rem); line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.marquee span.serif { font-family: var(--serif); font-weight: 400; text-transform: none; font-size: clamp(2.2rem, 6.2vw, 5.8rem); }
.marquee i { width: clamp(1.4rem, 3.4vw, 3.2rem); aspect-ratio: 1; margin: 0 clamp(1.2rem, 3vw, 3rem); flex-shrink: 0; border: 2px solid var(--ink); border-radius: 50%; position: relative; animation: spin 8s linear infinite; }
.marquee i::before, .marquee i::after { content: ''; position: absolute; background: var(--ink); }
.marquee i::before { left: 50%; top: -30%; bottom: -30%; width: 2px; margin-left: -1px; }
.marquee i::after { top: 50%; left: -30%; right: -30%; height: 2px; margin-top: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Section head ---------- */
.sec-head { display: flex; align-items: center; gap: 1.25rem; color: var(--mute); padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); margin-bottom: clamp(2.5rem, 7vw, 6rem); }
.sec-head__title { font-size: .72rem; color: var(--white); }
.sec-head--dark { color: rgba(20,21,18,.55); border-color: var(--line-dark); }
.sec-head--dark .sec-head__title { color: var(--ink); }

/* ---------- About ---------- */
.about { position: relative; padding: clamp(5rem, 12vw, 11rem) 0; overflow: hidden; isolation: isolate; }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .5; }
.about__statement {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.1rem, 6.3vw, 6.75rem); line-height: 1.04; letter-spacing: -.012em;
  max-width: 18ch; max-width: min(100%, 1500px);
}
.about__statement em { font-family: var(--serif); font-style: normal; font-weight: 400; letter-spacing: 0; }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 7rem); margin-top: clamp(4rem, 10vw, 9rem); align-items: start; }
.about__figure { position: relative; max-width: 420px; }
.about__contour { width: 100%; height: auto; animation: float 14s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(5deg) scale(1.04); } }
.about__figure span { display: block; margin-top: 1.5rem; color: var(--mute); }
.about__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 4vw, 4rem); }
.about__cols p { color: rgba(255,255,255,.78); padding-top: 1.25rem; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__figure { max-width: 240px; }
}
@media (max-width: 560px) { .about__cols { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { background: var(--paper); color: var(--ink); padding: clamp(5rem, 11vw, 10rem) 0 clamp(4rem, 8vw, 7rem); position: relative; }
.services__big, .process__big, .contact__big {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3.4rem, 12.5vw, 13rem); line-height: .9; letter-spacing: -.02em;
}
.services__big .serif, .process__big .serif, .contact__big .serif { font-size: .84em; letter-spacing: -.03em; line-height: 1.05; }
.services__big { margin-bottom: clamp(3rem, 7vw, 6rem); }
.svc { border-top: 1px solid var(--ink); }
.svc__row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 5rem minmax(0, 1.25fr) minmax(0, 1fr) 3.5rem; align-items: center; gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.6rem, 3.4vw, 3.2rem) var(--pad);
  border-bottom: 1px solid var(--ink);
  transition: color .5s var(--ease);
}
.svc__row::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.svc__idx { opacity: .6; }
.svc__title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.2rem, 5.6vw, 5.5rem); line-height: 1; letter-spacing: -.012em; transition: transform .6s var(--ease); }
.svc__text { max-width: 30rem; opacity: .78; }
.svc__arrow { width: 3.5rem; height: 3.5rem; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; transition: transform .6s var(--ease), background-color .4s, color .4s; }
.svc__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (hover: hover) {
  .svc__row:hover { color: var(--paper); }
  .svc__row:hover::before { transform: scaleY(1); transform-origin: top; }
  .svc__row:hover .svc__title { transform: translateX(clamp(.5rem, 2vw, 2rem)); }
  .svc__row:hover .svc__arrow { transform: rotate(45deg); background: var(--paper); color: var(--ink); }
}
.svc-float {
  position: fixed; top: 0; left: 0; z-index: 40; pointer-events: none;
  width: clamp(220px, 22vw, 360px); aspect-ratio: 4 / 3; margin: -11% 0 0 -11%;
  overflow: hidden; opacity: 0; transform: scale(.6);
  transition: opacity .35s, transform .5s var(--ease);
  mix-blend-mode: normal;
}
.svc-float.is-on { opacity: 1; transform: scale(1); }
.svc-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; filter: grayscale(1) contrast(1.1); }
.svc-float img.is-on { opacity: 1; }
.svc-float img:nth-child(3) { filter: grayscale(1) brightness(2.2) contrast(1.3); }
@media (max-width: 900px) {
  .svc__row { grid-template-columns: 2.5rem minmax(0, 1fr); row-gap: .8rem; }
  .svc__text { grid-column: 2; }
  .svc__arrow { display: none; }
  .svc-float { display: none; }
}

/* ---------- Process ---------- */
.process { position: relative; overflow: hidden; background: var(--ink); }
.process__track { display: flex; width: max-content; height: 100vh; height: 100svh; align-items: stretch; will-change: transform; }
.panel { width: min(72vw, 1100px); flex-shrink: 0; padding: 7rem clamp(1.5rem, 4vw, 4rem) 4rem; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 2rem; border-left: 1px solid var(--line); }
.panel--intro { width: min(86vw, 1300px); border-left: 0; padding-left: var(--pad); grid-template-rows: auto minmax(0, 1fr) auto; }
.panel--intro .sec-head { margin-bottom: 0; }
.process__big { align-self: center; }
.process__hint { display: flex; align-items: center; gap: 1rem; color: var(--mute); }
.process__hint i { width: 4rem; height: 1px; background: currentColor; position: relative; }
.process__hint i::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }
.panel__viz { min-height: 0; display: grid; place-items: center; }
.panel__body { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(1.25rem, 3vw, 3rem); align-items: start; }
.panel__num { grid-row: span 2; font-family: var(--serif); font-size: clamp(4rem, 9vw, 9rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.7); }
.panel__title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1; margin-bottom: .9rem; }
.panel__body p { color: rgba(255,255,255,.75); max-width: 34rem; }
.process__progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 1.6rem; height: 1px; background: var(--line); }
.process__progress span { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }

.viz { width: 100%; height: 100%; max-height: 46vh; overflow: visible; }
.viz * { vector-effect: non-scaling-stroke; }
.viz__parcel { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.55); stroke-width: 1; stroke-dasharray: 5 5; }
.viz__pts circle { fill: var(--ink); stroke: #fff; stroke-width: 1.5; }
.viz__path { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 3.2s var(--ease) .2s; }
.is-in .viz__path { stroke-dashoffset: 0; }
.viz__drone { fill: #fff; opacity: 0; transition: opacity .6s 1s; }
.is-in .viz__drone { opacity: 1; }
.viz__cells rect { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.3); stroke-width: 1; }
.is-in .viz__cells rect { animation: cell 5.5s linear infinite; animation-delay: calc(var(--i) * .19s); }
@keyframes cell { 0% { fill: rgba(255,255,255,.95); } 12% { fill: rgba(255,255,255,.3); } 40%, 100% { fill: rgba(255,255,255,.04); } }
.viz__frame path { fill: none; stroke: #fff; stroke-width: 1.5; }
.viz--plan .viz__parcel { stroke-dasharray: 1; stroke-dashoffset: 1; stroke: #fff; stroke-width: 1.5; transition: stroke-dashoffset 2.4s var(--ease) .2s; }
.viz__build { fill: rgba(255,255,255,.1); stroke: #fff; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) 1s; }
.is-in .viz--plan .viz__parcel, .is-in .viz__build { stroke-dashoffset: 0; }
.viz__dim { fill: none; stroke: rgba(255,255,255,.4); stroke-width: 1; }
.viz__txt { font-family: var(--mono); font-size: 10px; fill: rgba(255,255,255,.75); letter-spacing: .08em; }
.viz__txt--lg { font-size: 16px; fill: #fff; }
.viz__dim, .viz__txt { opacity: 0; transition: opacity .8s 1.8s; }
.is-in .viz__dim, .is-in .viz__txt { opacity: 1; }

.scope { position: relative; margin: 0; width: min(100%, 68vh); aspect-ratio: 3 / 2; max-height: 46vh; }
.scope video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); transition: filter .8s var(--ease); }
.scope:hover video { filter: none; }
.scope figcaption { position: absolute; left: 0; right: 0; bottom: -1.9rem; display: flex; justify-content: space-between; color: var(--mute); font-size: .62rem; }
.scope__c { position: absolute; width: 18px; height: 18px; border: 0 solid #fff; }
.scope__c--1 { top: -8px; left: -8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.scope__c--2 { top: -8px; right: -8px; border-top-width: 1.5px; border-right-width: 1.5px; }
.scope__c--3 { bottom: -8px; right: -8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.scope__c--4 { bottom: -8px; left: -8px; border-bottom-width: 1.5px; border-left-width: 1.5px; }

/* vertical fallback: mobile, reduced motion, no JS */
.process.is-stacked .process__track, html:not(.js) .process__track { display: block; width: auto; height: auto; }
.process.is-stacked .panel, html:not(.js) .panel { width: auto; border-left: 0; border-top: 1px solid var(--line); padding: 3.5rem var(--pad); gap: 3.5rem; }
.process.is-stacked .panel--intro, html:not(.js) .panel--intro { border-top: 0; padding-top: clamp(5rem, 12vw, 9rem); gap: 2.5rem; }
.process.is-stacked .process__progress, html:not(.js) .process__progress { display: none; }
.process.is-stacked .viz { max-height: none; height: auto; }
.process.is-stacked .scope { max-height: none; width: 100%; }
.process.is-stacked .process__hint { display: none; }

/* ---------- Contact ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; background: #1b1c19; padding-top: clamp(5rem, 11vw, 10rem); }
.contact__map { position: absolute; inset: -8% 0; z-index: -2; will-change: transform; }
.contact__map img, .contact__city { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact__map img { object-fit: cover; object-position: 75% 30%; opacity: .8; transition: opacity 1.2s var(--ease); }
.contact__city { opacity: 0; transition: opacity 1.2s var(--ease); }
.contact__map.has-city img { opacity: 0; }
.contact__map.has-city .contact__city { opacity: .8; }
.contact::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, var(--ink) 0%, transparent 22%, transparent 60%, rgba(20,21,18,.85) 100%); pointer-events: none; }
/* marker: sits on the city centre, which both the fallback map and the visitor map place at 75% / 30% */
.contact__ping { position: absolute; left: 75%; top: 30%; width: 0; height: 0; }
.contact__ping i { position: absolute; left: -11vw; top: -11vw; width: 22vw; height: 22vw; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; opacity: 0; will-change: transform, opacity; animation: ping 4.5s cubic-bezier(.2,.6,.3,1) infinite; }
.contact__ping i:nth-child(2) { animation-delay: 1.5s; } .contact__ping i:nth-child(3) { animation-delay: 3s; }
@keyframes ping { 0% { transform: scale(.05); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.contact__ping b { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.contact__ping::before, .contact__ping::after { content: ''; position: absolute; }
.contact__ping::before { left: -42px; top: 0; width: 84px; height: 1px; background: linear-gradient(90deg, #fff 0 26px, transparent 26px 58px, #fff 58px); }
.contact__ping::after { top: -42px; left: 0; height: 84px; width: 1px; background: linear-gradient(#fff 0 26px, transparent 26px 58px, #fff 58px); }
.contact__place { position: absolute; top: 58px; left: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: .35rem; white-space: nowrap; text-align: center; }
.contact__place small { font: inherit; font-size: .62rem; color: rgba(255,255,255,.6); }
.contact__place strong { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2vw, 2rem); line-height: 1; letter-spacing: .06em; color: #fff; }
/* on phones the marker sits behind the heading, so the city is named in the section head instead */
.sec-head__place { display: none; margin-left: auto; text-align: right; font-size: .65rem; }
.sec-head__place b { font-weight: 500; color: #fff; }
.contact .sec-head__idx, .contact .sec-head__title { white-space: nowrap; flex-shrink: 0; }
.contact.is-paused .contact__ping i { animation-play-state: paused; }
.contact__big { margin-bottom: clamp(3rem, 8vw, 7rem); }
.contact__links { border-top: 1px solid var(--line); }
.contact__link {
  display: grid; grid-template-columns: minmax(6rem, 1fr) minmax(0, 5fr); align-items: baseline; gap: 1rem;
  padding: clamp(1.2rem, 2.6vw, 2.4rem) 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.contact__link span { color: var(--mute); }
.contact__link strong {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.9rem, 6.6vw, 6.5rem); line-height: 1; letter-spacing: -.01em;
  transition: transform .6s var(--ease), letter-spacing .6s var(--ease);
  word-break: break-word;
}
.contact__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
@media (hover: hover) {
  .contact__link:hover::after { transform: scaleX(1); transform-origin: left; }
  .contact__link:hover strong { transform: translateX(clamp(.5rem, 1.5vw, 1.5rem)); }
}
@media (max-width: 640px) {
  .contact__link { grid-template-columns: 1fr; gap: .4rem; }
  .contact__ping i { left: -22vw; top: -22vw; width: 44vw; height: 44vw; }
  .contact__place { display: none; }
  .sec-head__place { display: block; }
}
}

.footer { padding: clamp(4rem, 9vw, 8rem) var(--pad) 1.5rem; display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.footer__logo { width: clamp(150px, 16vw, 230px); height: auto; margin-inline: auto; }
.footer__meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem; color: var(--mute); border-top: 1px solid var(--line); padding-top: 1.25rem; font-size: .65rem; }
.footer__meta a { color: #fff; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .loader { display: none; }
  .hero__scan::after, .contact__ping i { display: none; }
}
