/* Yongda Builder — styles */
:root {
  color-scheme: dark;
  --bg: #1C1E19;
  --bg-alt: #23261F;
  --surface: #2A2C25;
  --rule: #4A4C3F;
  --brass: #DDB53C;
  --ink: #ECE9DD;
  --ink-soft: #BDBBAB;
  --ink-faint: #9A988A;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-display: "Big Shoulders Display", "Noto Sans SC", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Noto Sans SC", ui-monospace, Menlo, Consolas, monospace;
  --pad-x: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: clip;
}
::selection { background: var(--brass); color: var(--bg); }
a { color: var(--brass); }
a:hover { color: var(--ink); }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }

.disp { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }
.wrap { position: relative; max-width: 1360px; margin: 0 auto; padding-inline: var(--pad-x); }
.stack { display: flex; flex-direction: column; gap: 64px; }
.sec { position: relative; overflow: hidden; }
.sec-pad { padding-block: 140px 120px; }
.sec-pad-sm { padding-block: 120px; }

/* ---------- section heads ---------- */
.sec-head { display: flex; flex-direction: column; gap: 20px; }
.sec-title-row { display: flex; align-items: baseline; gap: 24px; }
.sec-num { font-weight: 900; font-size: 22px; color: var(--brass); }
.sec-title { font-weight: 900; text-transform: uppercase; font-size: clamp(48px, 7vw, 104px); line-height: .9; }
.rule { height: 1px; background: var(--rule); transform-origin: left; }
.rule.brass { background: linear-gradient(90deg, var(--brass), rgba(221, 181, 60, .15)); }
.sub { display: flex; flex-direction: column; gap: 28px; scroll-margin-top: 96px; }
.sub-title { font-weight: 700; text-transform: uppercase; font-size: 30px; letter-spacing: .04em; line-height: 1; color: var(--brass); }

/* ---------- atmosphere ---------- */
.glow { position: absolute; pointer-events: none; width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(221, 181, 60, .10), transparent 62%); filter: blur(10px); }
.bp { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(74, 76, 63, .55) 1px, transparent 1px), linear-gradient(90deg, rgba(74, 76, 63, .55) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 20% 30%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 20% 30%, #000 0%, transparent 70%); }
.hatch { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(135deg, rgba(221, 181, 60, .06) 0 1px, transparent 1px 22px); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.about-hatch { top: 35%; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 75%); mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 75%); }
.projects-hatch { -webkit-mask-image: linear-gradient(0deg, #000, transparent 70%); mask-image: linear-gradient(0deg, #000, transparent 70%); }
.bignum { position: absolute; right: -2vw; top: 40px; font-family: "Big Shoulders Display", sans-serif; font-weight: 900; font-size: clamp(220px, 32vw, 460px); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(221, 181, 60, .22); pointer-events: none; user-select: none; }
.bignum.left { left: -2vw; right: auto; }

/* ---------- progress + header ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; z-index: 60; }
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background-color: transparent; border-bottom: 1px solid transparent; transition: background-color .5s ease, border-color .5s ease, backdrop-filter .5s ease; }
.hdr.scrolled { background-color: rgba(28, 30, 25, .82); border-bottom-color: var(--rule); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hdr-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 24px; transition: padding .5s var(--ease); }
.hdr.scrolled .hdr-in { padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 14px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { height: 44px; width: auto; display: block; }
.brand-name { font-weight: 700; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.nav-desk { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 14px; letter-spacing: .02em; }
.nav-a { position: relative; color: rgba(244, 243, 238, .72); text-decoration: none; padding: 12px 0; transition: color .35s ease; }
.hdr.scrolled .nav-a { color: var(--ink-soft); }
.nav-a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-a:hover { color: var(--ink); }
.nav-a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-n { font-size: 11px; margin-right: 6px; color: rgba(244, 243, 238, .5); transition: color .35s ease; }
.hdr.scrolled .nav-n { color: var(--ink-faint); }
.nav-a:hover .nav-n { color: var(--brass); }

.nav-cta { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; margin-left: 8px; border: 1px solid var(--brass); color: var(--brass); text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: color .45s ease, box-shadow .45s ease; }
.nav-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brass); transform: translateY(101%); transition: transform .55s var(--ease); }
.nav-cta:hover { color: var(--bg); box-shadow: 0 10px 30px -8px rgba(221, 181, 60, .5); }
.nav-cta:hover::before { transform: translateY(0); }
.cta-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(221, 181, 60, .6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(221, 181, 60, 0); } }

.lang { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; color: var(--ink); }
.lang button { all: unset; box-sizing: border-box; position: relative; cursor: pointer; min-height: 44px; min-width: 40px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; opacity: .55; transition: opacity .3s ease, color .3s ease; }
.lang button:hover { opacity: .9; }
.lang button.on { opacity: 1; color: var(--brass); }
.lang button::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 10px; height: 1px; background: var(--brass); transform: scaleX(0); transition: transform .45s var(--ease); }
.lang button.on::after { transform: scaleX(1); }
.lang-sep { width: 1px; height: 14px; background: currentColor; opacity: .3; }

.icon-btn, .menu-btn { all: unset; box-sizing: border-box; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); color: var(--ink); cursor: pointer; transition: border-color .3s ease, color .3s ease; }
.icon-btn:hover, .menu-btn:hover { border-color: var(--brass); color: var(--brass); }
.menu-btn { display: none; border-color: rgba(236, 233, 221, .3); }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 3px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 880px; display: flex; align-items: flex-end; overflow: hidden; background: #25271F; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid-ph { position: absolute; inset: -10%; background: radial-gradient(40% 50% at 25% 35%, rgba(221, 181, 60, .28), transparent 70%), radial-gradient(35% 45% at 75% 60%, rgba(236, 233, 221, .14), transparent 70%), radial-gradient(50% 60% at 55% 15%, rgba(110, 109, 96, .35), transparent 70%), linear-gradient(120deg, #3A3C33, #25271F 60%, #33352C); background-size: 140% 140%; animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { 0% { background-position: 0% 0%; transform: scale(1); } 100% { background-position: 100% 100%; transform: scale(1.08); } }
.scan { position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 30, 25, .55) 0%, rgba(28, 30, 25, .15) 38%, rgba(28, 30, 25, .55) 70%, var(--bg) 100%); }
.hero-in { width: 100%; padding-block: 200px 72px; display: flex; flex-direction: column; gap: 40px; }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero-title { font-weight: 900; text-transform: uppercase; font-size: clamp(88px, 17vw, 250px); line-height: .84; letter-spacing: -.01em; display: flex; flex-direction: column; }
.mask { display: inline-flex; overflow: hidden; padding-bottom: .02em; }
.mask.outline { color: transparent; -webkit-text-stroke: 1.5px var(--brass); }
.ch { display: inline-block; will-change: transform; }
.hero-logo { position: relative; width: 220px; height: 220px; flex: none; margin-bottom: 12px; }
.hero-logo img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); }
.hero-foot { display: flex; align-items: center; gap: 24px; }
.hero-sub { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); white-space: nowrap; }
.hero-rule { flex: 1; height: 1px; background: var(--brass); transform-origin: left; }
.cue-track { width: 1px; height: 56px; background: rgba(244, 243, 238, .25); position: relative; overflow: hidden; }
.cue { position: absolute; inset: 0; background: var(--brass); animation: pulse 2.4s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes pulse { 0%, 100% { transform: scaleY(.35); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

/* ---------- about ---------- */
#about { overflow: clip; }
.about-text { font-size: clamp(16px, calc(1.6vw - 2px), 20px); line-height: 1.7; letter-spacing: -.005em; color: var(--ink-soft); text-align: justify; hyphens: auto; -webkit-hyphens: auto; display: flex; flex-direction: column; gap: 20px; }
.about-text .lead { color: var(--ink); }

/* 3D cards */
.d3 { position: relative; border: 1px solid var(--rule); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 1px 2px rgba(0, 0, 0, .3), 0 8px 16px -4px rgba(0, 0, 0, .35), 0 28px 56px -18px rgba(0, 0, 0, .6); transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s ease; will-change: transform; }
.d3:hover { border-color: rgba(221, 181, 60, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 2px 4px rgba(0, 0, 0, .3), 0 18px 32px -8px rgba(0, 0, 0, .45), 0 48px 90px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(221, 181, 60, .25), 0 30px 80px -30px rgba(221, 181, 60, .25); }
.d3-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease; background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .08), transparent 45%); }
.d3:hover .d3-glare { opacity: 1; }

/* Core Value: one row of tall cards — scrolls sideways when it doesn't fit */
.values { display: grid; grid-auto-flow: column; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; --bleed: calc(max(0px, (100vw - 1360px) / 2) + var(--pad-x)); scroll-padding-inline: var(--bleed); padding: 12px var(--bleed) 40px; margin: -12px calc(50% - 50vw) -28px; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.values > * { scroll-snap-align: start; }
.values::-webkit-scrollbar { height: 6px; }
.values::-webkit-scrollbar-thumb { background: var(--rule); }
.values { grid-auto-columns: minmax(min(280px, 78vw), 1fr); gap: 24px; }
.value { background: linear-gradient(160deg, var(--surface) 0%, #1E201B 100%); padding: 40px 32px 44px; display: flex; flex-direction: column; gap: 16px; }
.value::before { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.value:hover::before { transform: scaleX(1); }
.value p { color: var(--ink-soft); }
/* subtle decoration: large faint icon in the background, short brass rule under the title, blueprint corner tick */
.value { overflow: hidden; }
.value > :not(.v-ic):not(.d3-glare) { position: relative; }
.v-ic { position: absolute; right: -28px; bottom: -28px; width: 190px; height: 190px; fill: none; stroke: var(--brass); stroke-width: .8; stroke-linecap: round; stroke-linejoin: round; opacity: .08; pointer-events: none; transition: opacity .6s ease, transform .9s var(--ease); }
.value:hover .v-ic { opacity: .16; transform: scale(1.06) rotate(-4deg); }
.v-title::after { content: ""; display: block; width: 28px; height: 1px; margin-top: 16px; background: var(--brass); opacity: .6; transition: width .6s var(--ease), opacity .4s ease; }
.value:hover .v-title::after { width: 56px; opacity: 1; }
.value::after { content: ""; position: absolute; right: 14px; bottom: 14px; width: 14px; height: 14px; border-right: 1px solid rgba(221, 181, 60, .35); border-bottom: 1px solid rgba(221, 181, 60, .35); pointer-events: none; transition: border-color .4s ease; }
.value:hover::after { border-color: var(--brass); }
.v-title { overflow-wrap: anywhere; font-weight: 700; font-size: clamp(28px, 2.3vw, 34px); line-height: 1; text-transform: uppercase; letter-spacing: .01em; }

/* ---------- services (photo background pinned while content scrolls over it) ---------- */
.services { background: var(--bg); border-block: 1px solid var(--rule); }
.services-bg { position: absolute; inset: 0; clip-path: inset(0); -webkit-clip-path: inset(0); }
.services-fixed { position: fixed; inset: 0; pointer-events: none; }
.photo { position: absolute; inset: -4%; background-size: cover; background-position: center; filter: saturate(.75); }
.photo-a { background-image: url(../assets/interior-1.webp); animation: xfade-a 16s ease-in-out infinite; }
.photo-b { background-image: url(../assets/interior-2.webp); animation: xfade-b 16s ease-in-out infinite; }
@keyframes xfade-a { 0% { opacity: 1; transform: scale(1) translateX(0); } 42% { opacity: 1; } 50% { opacity: 0; transform: scale(1.08) translateX(-1.5%); } 92% { opacity: 0; transform: scale(1); } 100% { opacity: 1; transform: scale(1); } }
@keyframes xfade-b { 0% { opacity: 0; transform: scale(1.08); } 42% { opacity: 0; } 50% { opacity: 1; transform: scale(1); } 92% { opacity: 1; transform: scale(1.08) translateX(1.5%); } 100% { opacity: 0; } }
.services-tint { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28, 30, 25, .94) 0%, rgba(28, 30, 25, .82) 45%, rgba(28, 30, 25, .6) 100%); }
.services-edge { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0, transparent 90px, transparent calc(100% - 90px), rgba(0, 0, 0, .45) 100%); }
.svcs { display: flex; flex-direction: column; }
.svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 16px 64px; align-items: baseline; padding: 44px 0; border-bottom: 1px solid var(--rule); transition: padding-left .6s var(--ease), background-color .5s ease; }
.svc:hover { padding-left: 24px; background-color: var(--surface); }
.svc p { color: var(--ink-soft); max-width: 560px; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.svc-head { display: flex; align-items: baseline; gap: 28px; }
.svc-n { font-weight: 900; font-size: 56px; line-height: 1; color: var(--rule); transition: color .4s ease; }
.svc:hover .svc-n { color: var(--brass); }
.svc-title { font-weight: 700; font-size: clamp(32px, 3.4vw, 48px); line-height: 1; text-transform: uppercase; }

/* ---------- projects carousel ---------- */
.carousel { display: flex; flex-direction: column; gap: 28px; }
.track { position: relative; display: flex; gap: 32px; padding: 24px 160px 72px; margin: -24px calc(50% - 50vw) -48px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.track::-webkit-scrollbar { display: none; }
.track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slide { display: flex; flex: 0 0 100%; min-width: 0; scroll-snap-align: center; transform-origin: center; transition: opacity .8s var(--ease), filter .8s var(--ease), transform .8s var(--ease); }
.js .slide:not(.is-active) { opacity: .5; filter: brightness(.4) saturate(.5); transform: scale(.94); }
.js .slide:not(.is-active):hover { opacity: .7; filter: brightness(.6) saturate(.7); }
.card { width: 100%; min-height: 600px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); background: linear-gradient(160deg, #2E3029 0%, #1E201B 100%); }
.p-media { position: relative; overflow: hidden; border-right: 1px solid var(--rule); background-color: #262821; background-image: repeating-linear-gradient(135deg, rgba(221, 181, 60, .07) 0 1px, transparent 1px 14px); }
.p-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; user-select: none; }
/* multiple photos per project: they cross-fade; first one shows without JS */
.p-media img + img { opacity: 0; }
.js .p-media img { opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease, transform 7s linear; }
.js .p-media img.on { opacity: 1; transform: scale(1); }
.slide.is-active .card { cursor: zoom-in; }
.p-view { all: unset; box-sizing: border-box; position: absolute; left: 16px; bottom: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; background: rgba(18, 19, 16, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(236, 233, 221, .25); color: var(--ink); font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background-color .4s ease, color .4s ease, border-color .4s ease; }
.card:hover .p-view, .p-view:focus-visible { background: var(--brass); border-color: var(--brass); color: var(--bg); }
.slide:not(.is-active) .p-view { visibility: hidden; }

/* photo viewer */
.viewer { position: fixed; inset: 0; z-index: 160; display: flex; flex-direction: column; background: rgba(12, 13, 11, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.v-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--pad-x); border-bottom: 1px solid var(--rule); }
.vw-title { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.vw-title .disp { font-weight: 900; font-size: 26px; line-height: 1; color: var(--brass); }
.vw-title h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 30px); line-height: 1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-right { display: flex; align-items: center; gap: 16px; flex: none; }
.v-count { font-size: 12px; letter-spacing: .1em; color: var(--ink-soft); }
.v-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 24px 88px; }
.v-stage img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); user-select: none; -webkit-user-drag: none; touch-action: pan-y; }
.v-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; background: rgba(18, 19, 16, .6); }
.v-nav.prev { left: 20px; }
.v-nav.next { right: 20px; }
.v-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px var(--pad-x) 20px; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.v-thumbs button { all: unset; box-sizing: border-box; flex: none; width: 96px; height: 64px; cursor: pointer; border: 1px solid transparent; opacity: .45; transition: opacity .3s ease, border-color .3s ease; }
.v-thumbs button:hover { opacity: .8; }
.v-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--brass); }
.v-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .v-stage { padding: 12px 0; }
  .v-nav { width: 48px; height: 48px; top: auto; bottom: 12px; transform: none; }
  .v-nav.prev { left: auto; right: 68px; }
  .v-nav.next { right: 12px; }
  .v-thumbs button { width: 72px; height: 48px; }
  .v-count { display: none; }
}
.p-body { padding: clamp(28px, 3.6vw, 56px); display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.p-num { font-weight: 900; font-size: 64px; line-height: .8; color: var(--rule); }
.p-name { font-weight: 900; font-size: clamp(32px, 3.2vw, 50px); line-height: .95; text-transform: uppercase; }
.p-desc { color: var(--ink-soft); line-height: 1.55; }
.specs { margin: 0; display: flex; flex-direction: column; }
.specs > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--rule); }
.specs dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.specs dd { margin: 0; }
.car-ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.car-count { display: flex; align-items: baseline; gap: 10px; }
.car-count .disp { font-weight: 900; font-size: 40px; line-height: 1; color: var(--brass); }
.car-count .mono { font-size: 13px; color: var(--ink-soft); }
.dots { display: flex; flex: 1; min-width: 200px; max-width: 520px; gap: 6px; }
.dot { all: unset; box-sizing: border-box; flex: 1; height: 44px; display: flex; align-items: center; cursor: pointer; }
.dot-bar { display: block; width: 100%; height: 2px; background: var(--rule); transition: background-color .4s ease, height .4s var(--ease); }
.dot:hover .dot-bar { background: var(--ink-soft); }
.dot[aria-current="true"] .dot-bar { background: var(--brass); height: 4px; }
.car-btns { display: flex; gap: 8px; }

/* ---------- contact ---------- */
.contact { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 70%); border-top: 1px solid var(--rule); }
.contact-in { padding-bottom: 96px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 40px 56px; align-items: stretch; }
.c-rows { display: flex; flex-direction: column; }
.c-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: padding-left .6s var(--ease), background-color .5s ease; }
.c-row:first-child { border-top: 1px solid var(--rule); }
a.c-row:hover { padding-left: 14px; background-color: rgba(221, 181, 60, .04); color: var(--ink); }
.c-ic { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rule); color: var(--brass); transition: background-color .45s ease, color .45s ease, border-color .45s ease; }
a.c-row:hover .c-ic { background: var(--brass); color: var(--bg); border-color: var(--brass); }
.c-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.c-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.c-value { font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: .01em; }
.c-value.break { overflow-wrap: anywhere; }
.c-row address { font-style: normal; font-size: 18px; line-height: 1.55; }
.c-arrow { display: flex; color: var(--ink-faint); transition: transform .5s var(--ease), color .4s ease; }
a.c-row:hover .c-arrow { transform: translate(4px, -4px); color: var(--brass); }

.map-card { display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; min-height: 440px; color: var(--ink); text-decoration: none; background: var(--bg-alt); }
.map-card:hover { color: var(--ink); }
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(74, 76, 63, .6) 1px, transparent 1px), linear-gradient(90deg, rgba(74, 76, 63, .6) 1px, transparent 1px); background-size: 40px 40px; transition: transform 1.4s var(--ease); }
.map-card:hover .map-grid { transform: scale(1.06); }
.map-roads { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.map-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35, 38, 31, 0) 30%, rgba(28, 30, 25, .96) 88%); }
.pin { position: absolute; left: 50%; top: 44%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px rgba(28, 30, 25, .9), 0 0 30px rgba(221, 181, 60, .6); }
.pin::before, .pin::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--brass); animation: pin-ring 2.6s ease-out infinite; }
.pin::after { animation-delay: 1.3s; }
@keyframes pin-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(5); opacity: 0; } }
.pin-label { position: absolute; left: 50%; top: 44%; transform: translate(18px, -50%); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: rgba(28, 30, 25, .85); border: 1px solid var(--rule); padding: 6px 10px; white-space: nowrap; }
.map-foot { position: relative; padding: 32px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.map-place { display: flex; flex-direction: column; gap: 4px; }
.map-place .disp { font-weight: 700; font-size: 28px; line-height: 1; text-transform: uppercase; }
.map-place span:last-child { font-size: 14px; color: var(--ink-soft); }
.dir { display: inline-flex; align-items: center; gap: 10px; color: var(--brass); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.dir svg { transition: transform .5s var(--ease); }
.map-card:hover .dir svg { transform: translate(4px, -4px); }

/* ---------- footer ---------- */
.footer { background: var(--bg-alt); }
.footer-in { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 32px; }
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 12px; letter-spacing: .08em; color: var(--ink-soft); }

/* ---------- mobile menu ---------- */
.menu { position: fixed; inset: 0; z-index: 150; overflow-y: auto; background: #121310; display: flex; flex-direction: column; padding: 14px 20px 32px; }
.menu-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.menu-top img { height: 40px; width: auto; display: block; }
.menu-nav { position: relative; display: flex; flex-direction: column; margin-top: 48px; border-top: 1px solid var(--rule); }
.m-link { display: flex; align-items: baseline; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1; text-transform: uppercase; }
.m-link .mono { font-size: 12px; color: var(--brass); font-weight: 400; }
.m-link:hover { color: var(--brass); }
.m-foot { position: relative; margin-top: auto; padding-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.m-foot .lang { margin-left: -6px; }
.m-foot .nav-cta { margin-left: 0; }

/* ---------- welcome loader (JS only; hides itself after 8s if the script never runs) ---------- */
.loader { display: none; position: fixed; inset: 0; z-index: 200; }
.js .loader { display: block; animation: loader-failsafe 0s 8s forwards; }
@keyframes loader-failsafe { to { visibility: hidden; } }
.ld-half { position: absolute; left: 0; right: 0; height: 50.5%; background: #121310; }
.ld-top { top: 0; }
.ld-bot { bottom: 0; }
.ld-seam { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--brass); transform: scaleX(0); }
.ld-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; padding: 24px; }
.ld-glow { position: absolute; width: 640px; height: 640px; max-width: 120vw; border-radius: 50%; background: radial-gradient(circle, rgba(221, 181, 60, .12), transparent 60%); }
.ld-logo { position: relative; width: 104px; height: auto; opacity: 0; }
.ld-name { position: relative; display: flex; flex-wrap: wrap; justify-content: center; overflow: hidden; font-weight: 700; font-size: clamp(18px, 2.6vw, 30px); letter-spacing: .34em; text-transform: uppercase; }
.ld-name span { display: inline-block; white-space: pre; opacity: 0; }
.ld-bar-row { position: relative; width: min(280px, 60vw); display: flex; align-items: center; gap: 14px; }
.ld-bar-track { flex: 1; height: 1px; background: var(--rule); position: relative; overflow: hidden; }
.ld-bar { position: absolute; inset: 0; background: var(--brass); transform: scaleX(0); transform-origin: left; }
.ld-num { font-size: 11px; letter-spacing: .1em; color: var(--ink-soft); width: 28px; text-align: right; }

/* ---------- WhatsApp contact ---------- */
.whatsapp-button { position: fixed; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: #25D366; color: #fff; text-decoration: none; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); -webkit-tap-highlight-color: transparent; transition: box-shadow .2s ease, border-color .2s ease; }
.whatsapp-button img { display: block; width: 28px; height: 28px; }
.whatsapp-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.whatsapp-button:active { box-shadow: 0 2px 10px rgba(0, 0, 0, .3), inset 0 0 0 2px rgba(255, 255, 255, .4); }
.whatsapp-tooltip { position: absolute; right: calc(100% + 12px); padding: 8px 12px; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg); color: var(--ink); font-size: 13px; line-height: 1.4; white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.whatsapp-button:focus-visible .whatsapp-tooltip { opacity: 1; visibility: visible; }
.menu:not([hidden]) ~ .whatsapp-button,
.viewer:not([hidden]) ~ .whatsapp-button { display: none; }
/* Match the intro's 8-second fallback if its JavaScript does not finish. */
.js .loader ~ .whatsapp-button { visibility: hidden; animation: whatsapp-ready 0s 8s forwards; }
@keyframes whatsapp-ready { to { visibility: visible; } }
@media (hover: hover) and (pointer: fine) {
  .whatsapp-button:hover { border-color: #fff; box-shadow: 0 8px 28px rgba(0, 0, 0, .4), 0 0 0 4px rgba(37, 211, 102, .14); }
  .whatsapp-button:hover .whatsapp-tooltip { opacity: 1; visibility: visible; }
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .nav-desk { display: none; }
  .whatsapp-button { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .menu-btn { display: inline-flex; }
  .hdr-in { flex-wrap: nowrap; padding-block: 14px; }
  .hdr.scrolled .hdr-in { padding-block: 10px; }
  .brand img { height: 36px; }
  .brand-name { font-size: 17px; }
  .hide-sm { display: none !important; }
  .hero { min-height: 680px; }
  .hero-in { padding-block: 140px 48px; }
  .sec-pad, .sec-pad-sm { padding-block: 96px; }
  .contact-in { padding-bottom: 64px; }
  .bignum { font-size: 180px; top: 24px; }
  .value { padding: 32px 26px 36px; }
  .svc { padding: 32px 0; }
  .track { padding-inline: 36px; }
  .card { min-height: 700px; grid-template-columns: 1fr; grid-template-rows: 260px minmax(0, 1fr); }
  .p-media { border-right: 0; border-bottom: 1px solid var(--rule); }
  .c-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; padding: 22px 0; }
  .c-ic { width: 48px; height: 48px; }
  .map-card { min-height: 360px; }
  .foot-bar { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .whatsapp-button, .whatsapp-tooltip { transition: none; }
  .vid-ph, .cue, .cta-dot, .pin::before, .pin::after, .photo-a { animation: none; }
  .photo-b { display: none; }
}
