:root {
  --indigo: #322A81;
  --indigo-deep: #262068;
  --asphalt: #1A1A18;
  --ink: #15151c;
  --muted: #cfcbf2;
  --line: rgba(255, 255, 255, .18);
  --panel: rgba(255, 255, 255, .07);
  --yellow: #ffc81a;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; background: var(--indigo); color: #fff; font: 17px/1.55 var(--body); overflow-x: hidden; }
/* The intro opens on a plain white screen */
body.intro { overflow: hidden; background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1; text-transform: uppercase; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Buttons */
.btn { display: inline-block; font: 600 17px var(--body); padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--yellow); color: var(--asphalt); }
.btn-primary:hover { background: #fff; }
.btn-line, .btn-line.light { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.btn-line:hover { background: #fff; color: var(--indigo); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header: a floating bar, finer type, a sliding underline and a dot for the section on screen */
.site-header { position: fixed; top: 14px; left: max(var(--gutter), 50% - 640px); right: max(var(--gutter), 50% - 640px); z-index: 50; display: flex; align-items: center; gap: 28px; padding: 9px 9px 9px 22px; border-radius: 999px; background: rgba(36, 30, 98, .86); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 12px 36px rgba(10, 8, 40, .35), inset 0 1px 0 rgba(255, 255, 255, .08); transition: opacity .6s ease, top .35s ease, padding .35s ease, background-color .35s ease; }
.site-header.scrolled { top: 10px; padding-block: 6px; background: rgba(30, 25, 84, .92); }
body.intro .site-header { opacity: 0; pointer-events: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 24px var(--display); letter-spacing: .01em; color: #fff; }
.brand svg { width: 28px; height: 38px; }
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav > a { position: relative; padding: 8px 0; text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: .05em; color: rgba(255, 255, 255, .82); transition: color .2s; }
.nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav > a::before { content: ""; position: absolute; left: 50%; bottom: -6px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--yellow); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .3s; }
.nav > a:hover, .nav > a[aria-current] { color: #fff; }
.nav > a:hover::after { transform: scaleX(1); }
.nav > a[aria-current]::before { opacity: 1; transform: none; }
.nav-actions { display: none; }
.btn-call { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 999px; background: #fff; color: var(--indigo); font: 600 15px var(--body); letter-spacing: .02em; text-decoration: none; position: relative; box-shadow: 0 0 18px 2px rgba(255, 200, 26, .28); transition: background-color .2s, color .2s; --ring: rgba(255, 200, 26, .55); }
.btn-call svg { width: 17px; height: 17px; }
.btn-call:hover { background: var(--yellow); color: var(--asphalt); }

.menu-toggle { display: none; width: 44px; height: 44px; margin-left: 4px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s ease; }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
body.menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Back to top, above the WhatsApp button */
.to-top { position: fixed; right: 25px; bottom: 92px; z-index: 40; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(36, 30, 98, .9); color: #fff; cursor: pointer; box-shadow: 0 8px 24px rgba(10, 8, 40, .35); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s, background-color .2s; }
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--yellow); color: var(--asphalt); }
/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #fff; }
#lines { opacity: 0; }
#lines path { fill: none; }
body:not(.intro):not(.past-hero) #dash { animation: drive 2.4s linear infinite; }
@keyframes drive { to { stroke-dashoffset: -20; } }
.hero-copy { position: absolute; inset: 0 auto 0 0; display: flex; flex-direction: column; justify-content: center; padding: 60px var(--gutter) 0; max-width: min(640px, 48vw); transition: opacity .7s ease, transform .7s ease; }
body.intro .hero-copy, body.intro .scroll-hint { opacity: 0; transform: translateY(14px); }
.hero h1 { font-size: clamp(38px, 4.4vw, 68px); }
.lede { margin: 20px 0 30px; font-size: 19px; max-width: 27em; color: var(--muted); }
.scroll-hint { position: absolute; left: var(--gutter); bottom: 22px; font: 600 13px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: opacity .7s ease; }
.scroll-hint::after { content: ""; display: inline-block; width: 40px; height: 2px; margin-left: 12px; vertical-align: middle; background: currentColor; }

/* The journey: one tall landscape that scrolls natively. Layers, bottom to top:
   ground and road, the moving layer, tree canopies, light and lamps, captions. */
.map { position: relative; isolation: isolate; margin-top: -1px; overflow: clip; }
.map-layer { position: absolute; top: 0; left: 0; height: 100%; display: block; pointer-events: none; transform-origin: 0 0; will-change: transform; }
.map-bg { z-index: 0; }
.map-fx { z-index: 1; }
.map-movers { z-index: 2; }
.map-top { z-index: 3; }
.map-glow, .map-beams { z-index: 5; }
/* Each moving thing is its own small layer, slid around by the graphics chip */
.mover { position: absolute; top: 0; left: 0; will-change: transform; }
.mover svg { position: absolute; width: 1px; height: 1px; overflow: visible; }
.map-view { position: sticky; top: 0; height: 100vh; height: 100svh; z-index: 4; pointer-events: none; overflow: hidden; }
.light { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.light { opacity: 0; will-change: opacity; }
.light.morning { background: linear-gradient(135deg, rgba(255, 243, 196, .26), rgba(255, 255, 255, 0) 55%, rgba(44, 111, 142, .16)); }
.light.afternoon { background: linear-gradient(135deg, rgba(255, 205, 120, .26), rgba(255, 190, 110, .05) 45%, rgba(40, 20, 70, .22)); }
.light.dusk { background: linear-gradient(200deg, rgba(255, 150, 80, .4), rgba(125, 62, 118, .52) 50%, rgba(44, 36, 112, .66)); }
.clock { position: absolute; top: 84px; right: var(--gutter); display: flex; align-items: center; gap: 8px; background: rgba(10, 14, 20, .6); padding: 7px 16px; border-radius: 999px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px 2px rgba(255, 200, 26, .7); }

/* Each caption stays beside the road while its stretch passes, then scrolls away */
.zone { position: absolute; left: 0; right: 0; top: calc(var(--from) * var(--s) * 1px); height: calc(var(--len) * var(--s) * 1px); z-index: 6; pointer-events: none; }
.caption { position: sticky; top: 24vh; margin-left: var(--gutter); width: min(34vw, 560px); text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.caption::before { content: ""; position: absolute; inset: -60px -80px; z-index: -1; background: radial-gradient(closest-side, var(--tone), transparent); opacity: .72; }
.caption .num { font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.caption h3 { font-size: clamp(44px, 6.4vw, 110px); line-height: .92; margin: 10px 0 18px; }
.caption p:not(.num) { font-size: clamp(18px, 1.4vw, 21px); max-width: 26em; }
.chips { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; text-shadow: none; }
.chips li { background: rgba(10, 14, 20, .5); border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 5px 14px; font-size: 15px; font-weight: 500; }

/* Things in the artwork that appear as the work is done */
.map-layer .pop { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.map-layer .pop.on { transform: none; }
.map-layer .blinker.on .halo { transform-box: fill-box; transform-origin: center; animation: beacon 1.1s ease-in-out infinite; }
@keyframes beacon { 0%, 100% { opacity: .1; transform: scale(.6); } 50% { opacity: .5; transform: scale(1.25); } }

/* Rain over the night stretch: dashes sliding along their own direction */
.rain { position: absolute; inset: -140px; pointer-events: none; opacity: 0; will-change: transform;
  background: repeating-linear-gradient(100deg, transparent 0 21px, rgba(200, 215, 255, .2) 21px 22px);
  -webkit-mask-image: repeating-linear-gradient(10deg, #000 0 24px, transparent 24px 70px); mask-image: repeating-linear-gradient(10deg, #000 0 24px, transparent 24px 70px);
  animation: rain .32s linear infinite; }
@keyframes rain { to { transform: translate(-12.2px, 68.9px); } }
/* Sections */
.section { padding: clamp(72px, 12vh, 140px) 0; }
.kicker { font: 600 15px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.section h2, .contact h2 { font-size: clamp(40px, 6vw, 88px); max-width: 14em; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.cols > div { border-top: 3px solid #fff; padding-top: 18px; }
.cols h3, .plant strong, .locations h3 { font: 700 26px/1.1 var(--display); text-transform: uppercase; }
.cols p { margin-top: 8px; color: var(--muted); }

.marquee { margin-top: clamp(56px, 9vh, 96px); overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: slide 26s linear infinite; }
.marquee span { font: 700 clamp(26px, 3.4vw, 44px) var(--display); text-transform: uppercase; padding: 0 28px; white-space: nowrap; }
.marquee span::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 56px; background: var(--yellow); transform: rotate(45deg) translateY(-6px); }
@keyframes slide { to { transform: translateX(-50%); } }

.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.work { border: 1.5px solid var(--line); border-radius: 14px; padding: 24px; background: var(--panel); }
.work .tag { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.work h3 { font-size: 34px; margin: 10px 0 18px; min-height: 2em; }
.work dl { margin: 0; }
.work dl div { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); }
.work dt { color: var(--muted); }
.work dd { margin: 0; font-weight: 600; }

.band { background: var(--indigo-deep); padding: clamp(48px, 8vh, 88px) 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-block: 0; }
.stats div { display: flex; flex-direction: column; }
.stats dd { margin: 0; font: 700 clamp(56px, 7vw, 104px)/1 var(--display); font-variant-numeric: tabular-nums; color: var(--yellow); }
.stats dt { margin-top: 6px; color: var(--muted); font-weight: 500; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.big { font-size: clamp(20px, 1.8vw, 24px); margin-top: 24px; max-width: 30em; }
.sign-off { margin-top: 28px; color: var(--muted); }
.sign-off strong { display: block; font: 700 28px var(--display); color: #fff; text-transform: uppercase; }
.plant { list-style: none; margin: 0; padding: 0; }
.plant li { padding: 16px 0; border-top: 1px solid var(--line); font: 700 26px/1.1 var(--display); text-transform: uppercase; }
.photos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin-top: clamp(48px, 8vh, 88px); }
.photos img { width: 100%; height: clamp(200px, 32vw, 380px); object-fit: cover; border-radius: 14px; background: var(--panel); }

.sub { font-size: clamp(30px, 3.4vw, 44px); margin: 72px 0 24px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: var(--panel); aspect-ratio: 4 / 5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 36px 14px 12px; font-size: 14px; font-weight: 500; background: linear-gradient(transparent, rgba(12, 10, 40, .85)); }

/* Contact */
.contact { background: var(--indigo-deep); padding: clamp(72px, 12vh, 140px) 0; }
.phone { display: inline-block; margin-top: 20px; font: 700 clamp(56px, 9vw, 132px)/1 var(--display); color: var(--yellow); text-decoration: none; }
.phone:hover { color: #fff; }
.hours { margin-top: 10px; color: var(--muted); }
.office { font-style: normal; margin-top: 52px; padding-top: 18px; border-top: 1px solid var(--line); }
.office h3 { font-size: 26px; margin-bottom: 8px; }
.office p { color: var(--muted); }
.btn-map { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 13px 22px; border-radius: 999px; background: #4285f4; color: #fff; font-weight: 600; text-decoration: none; position: relative; box-shadow: 0 0 24px 4px rgba(66, 133, 244, .5); transition: transform .15s; --ring: rgba(66, 133, 244, .6); }
.btn-map svg { width: 20px; height: 20px; }
.btn-map:hover { transform: translateY(-2px); }
.map-embed { display: block; width: 100%; height: 260px; margin-top: 22px; border: 0; border-radius: 14px; background: var(--panel); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--panel); border-radius: 18px; padding: clamp(20px, 3vw, 36px); }
.form h3 { grid-column: 1 / -1; font-size: 30px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.full { grid-column: 1 / -1; }
.form label { font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea { width: 100%; font: 17px var(--body); color: var(--ink); background: #fff; border: 2px solid transparent; border-radius: 8px; padding: 12px 14px; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--yellow); }
.form-error { color: #ffd0c9; font-weight: 500; }

/* Footer */
.site-footer { background: var(--asphalt); color: #a9abb3; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-block: clamp(48px, 8vh, 80px); }
.footer-grid h3 { font: 600 14px var(--body); letter-spacing: .14em; color: #fff; margin-bottom: 18px; }
.footer-grid nav a, .footer-grid div > a:not(.brand) { display: block; width: fit-content; text-decoration: none; padding: 5px 0; color: #d5d6db; }
.footer-grid a:not(.brand):hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-grid p { margin-top: 6px; }
.footer-brand p { margin-top: 16px; max-width: 26em; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 15px; }
.footer-legal a { margin-left: 24px; color: #d5d6db; }
.footer-legal a:first-child { margin-left: 0; }

.whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 0 26px 6px rgba(37, 211, 102, .55); transition: opacity .6s ease, transform .15s ease; --ring: rgba(37, 211, 102, .6); }
.whatsapp svg { width: 32px; height: 32px; }
.whatsapp:hover { transform: scale(1.07); }
.btn-call::after, .btn-map::after, .whatsapp::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 3px var(--ring); pointer-events: none; animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } 70%, to { transform: scale(1.35); opacity: 0; } }
body.intro .whatsapp { opacity: 0; pointer-events: none; }

/* Privacy and terms pages */
.legal { width: min(760px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 130px 0 96px; }
.legal h1 { font-size: clamp(44px, 7vw, 80px); }
.legal .updated { color: var(--muted); margin-top: 12px; }
.legal h2 { font-size: 30px; margin: 44px 0 10px; }
.legal p, .legal li { color: #e4e2f7; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--yellow); }

@media (max-width: 900px) {
  .site-header { gap: 10px; padding: 7px 7px 7px 18px; }
  .btn-call { margin-left: auto; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 0; z-index: -1; margin: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 90px var(--gutter) 40px; background: #1e1954; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
  body.menu-open .nav { opacity: 1; visibility: visible; }
  .nav > a { font: 700 clamp(38px, 10vw, 56px)/1.1 var(--display); letter-spacing: 0; text-transform: uppercase; color: #fff; }
  .nav > a::before { display: none; }
  .nav-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
  .hero-copy { justify-content: flex-start; padding-top: 104px; padding-bottom: 64px; max-width: none; bottom: auto; background: linear-gradient(var(--indigo) 80%, rgba(50, 42, 129, 0)); }
  .scroll-hint { display: none; }
  .cols, .works, .split, .locations { grid-template-columns: 1fr; }
  .cols { gap: 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .photos { grid-template-columns: 1fr 1fr; }
  .photos img:first-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
/* Phones: the map is shown larger and pans to follow the road; captions run across the top */
@media (max-width: 800px) {
  .clock { top: auto; bottom: 18px; right: auto; left: var(--gutter); font-size: 14px; padding: 6px 12px; }
  .caption { position: fixed; top: 72px; left: 0; right: 0; margin: 0; width: auto; padding: 14px var(--gutter) 22px; background: linear-gradient(var(--tone) 72%, transparent); text-shadow: none; opacity: 0; transform: translateY(-8px); transition: opacity .35s ease, transform .35s ease; }
  .zone.active .caption { opacity: 1; transform: none; }
  body.intro .caption { opacity: 0; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .caption::before, .chips { display: none; }
  .caption h3 { font-size: clamp(36px, 11vw, 56px); margin: 4px 0 8px; }
  .caption p:not(.num) { font-size: 16px; }
}
@media (max-width: 520px) {
  .brand span { font-size: 22px; }
  .btn-call { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .btn-call span { display: none; }
  .to-top { right: 19px; bottom: 80px; width: 44px; height: 44px; }
  .form { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
  .whatsapp { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
