/* ============================================================
   Venus 3D Engineering — "go.arch"-style dark elegant layout
   Molten Venus palette kept: gold / orange / crimson on a warm
   near-black, with engineering measuring motifs.
   ============================================================ */
:root {
  --bg:        #ffffff;
  --bg-2:      #f7f1e8;
  --bg-3:      #efe6d8;
  --plum:      #3c1430;
  --plum-2:    #2a0e20;

  --text:      #221812;
  --muted:     #6f6055;
  --faint:     rgba(34,24,18,.05);

  --gold:      #ffb020;
  --gold-bright:#ffcb52;
  --gold-soft: #c98a2e;
  --gold-ink:  #c2700f;
  --orange:    #ff7a1a;
  --crimson:   #e0342b;

  --line:      rgba(34,24,18,.14);
  --line-2:    rgba(34,24,18,.07);
  --whatsapp:  #25d366;

  --pill:      linear-gradient(135deg, #ffda6a, #ff9a2e);
  --gold-grad: linear-gradient(160deg, #fff0bd 0%, #ffc233 36%, #ff8f2e 74%, #ff6a2a 100%);

  --maxw: 1280px;
  --pad-x: clamp(22px, 5vw, 64px);
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: 'Heebo', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }

/* shared bits ------------------------------------------------ */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .32em;
  color: var(--muted); text-transform: none;
}
.eyebrow .gold { color: var(--gold-ink); }

.section-title {
  text-align: center; font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 400; letter-spacing: .26em; color: var(--text);
}
.section-title .gold { color: var(--gold-ink); }

.btn-pill {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: inherit; font-weight: 700; font-size: 14px; letter-spacing: .12em;
  color: #2a1402; background: var(--pill); border: none; cursor: pointer;
  padding: 15px 30px; border-radius: 999px;
  transition: transform .25s, box-shadow .25s, filter .25s;
  box-shadow: 0 14px 30px -12px rgba(255,138,26,.6);
}
.btn-pill:hover { transform: translateY(-3px); filter: saturate(1.08) brightness(1.04); box-shadow: 0 20px 40px -12px rgba(255,138,26,.7); }
.btn-pill .arrow { display:inline-block; transition: transform .25s; }
.btn-pill:hover .arrow { transform: translateX(-5px); }

.mono { font-family: var(--mono); letter-spacing: .04em; }

/* giant ghost watermark behind sections */
.ghost {
  position: absolute; z-index: 0; pointer-events: none; -webkit-user-select: none; user-select: none;
  font-size: clamp(90px, 16vw, 230px); font-weight: 800; line-height: .8;
  color: var(--faint); letter-spacing: .02em; white-space: nowrap;
}

/* ====== engineering / measuring motifs ====== */
.tick-rule { display: flex; align-items: flex-end; gap: 9px; height: 16px; opacity: .5; }
.tick-rule i { width: 1px; background: var(--gold-soft); height: 7px; display: block; }
.tick-rule i:nth-child(5n+1) { height: 14px; }

.coord {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--gold-soft);
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px;
  background: rgba(0,0,0,.25); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.coord::before { content:''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(255,176,32,.2); }

.crosshair { position: absolute; width: 26px; height: 26px; pointer-events: none; opacity: .55; z-index: 3; }
.crosshair::before, .crosshair::after { content:''; position:absolute; background: var(--gold-soft); }
.crosshair::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-.5px); }
.crosshair::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-.5px); }

/* cover scan square */
.scan-box {
  position: absolute; z-index: 3; left: 26%; top: 54%;
  width: 200px; height: 200px; transform: translate(-50%,-50%);
  pointer-events: none; transition: width .14s linear, height .14s linear;
}
.scan-box .sb-svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.scan-box .sb-rect { fill: rgba(255,176,32,.05); stroke: var(--gold-bright); stroke-width:1.5; vector-effect:non-scaling-stroke; stroke-dasharray:100; stroke-dashoffset:100; }
.scan-box.drawn .sb-rect { animation: sb-draw 1.3s ease forwards; }
@keyframes sb-draw { to { stroke-dashoffset: 0; } }
.scan-box::before { content:''; position:absolute; inset:11px; border:1px dashed rgba(255,210,130,.25); opacity:0; transition: opacity .5s .9s; }
.scan-box.drawn::before { opacity:1; }
.scan-box .sb-c { position:absolute; width:16px; height:16px; border:2px solid var(--gold-bright); opacity:0; transition: opacity .4s .5s; }
.scan-box.drawn .sb-c { opacity:1; }
.scan-box .sb-c.tl{ top:-1px; left:-1px; border-right:0; border-bottom:0; }
.scan-box .sb-c.tr{ top:-1px; right:-1px; border-left:0; border-bottom:0; }
.scan-box .sb-c.bl{ bottom:-1px; left:-1px; border-right:0; border-top:0; }
.scan-box .sb-c.br{ bottom:-1px; right:-1px; border-left:0; border-top:0; }
.scan-box .sb-dot { position:absolute; top:50%; left:50%; width:5px; height:5px; border-radius:50%; background: var(--gold-bright); transform: translate(-50%,-50%); box-shadow:0 0 0 4px rgba(255,176,32,.18); opacity:0; transition: opacity .4s .6s; }
.scan-box.drawn .sb-dot { opacity:1; }
.scan-box .sb-label { position:absolute; bottom:-26px; left:50%; transform:translateX(-50%); font-family:var(--mono); font-size:11px; letter-spacing:.05em; color: var(--gold-bright); background: rgba(0,0,0,.5); border:1px solid rgba(255,255,255,.15); border-radius:5px; padding:3px 8px; white-space:nowrap; opacity:0; transition: opacity .4s 1s; }
.scan-box.drawn .sb-label { opacity:1; }

/* ============================================================ HEADER */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 22px 0; transition: background .35s, padding .35s, box-shadow .35s;
}
.header.scrolled {
  background: rgba(255,255,255,.93); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 12px 0; box-shadow: 0 1px 0 var(--line-2), 0 10px 30px -22px rgba(0,0,0,.35);
}
.header:not(.scrolled) .nav a,
.header:not(.scrolled) .header-phone,
.header:not(.scrolled) .menu-btn { color: #fff; }
.header:not(.scrolled) .header-phone svg { color: var(--gold-bright); }
.header:not(.scrolled) .nav a.active { color: var(--gold-bright); }
.header:not(.scrolled) .nav a.active::after { background: var(--gold-bright); }
.header .wrap { display: flex; align-items: center; gap: 28px; justify-content: space-between; }
.brand { order: 0; display: flex; align-items: center; }
.brand img { height: 50px; transition: height .35s; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.header.scrolled .brand img { height: 42px; }

.nav { order: 1; display: flex; gap: 28px; margin-inline: auto; }
.nav a {
  font-size: 14px; font-weight: 600; letter-spacing: .16em; color: var(--text); opacity: .82; white-space: nowrap;
  position: relative; padding: 4px 0; transition: opacity .2s, color .2s;
}
.nav a::after { content:''; position:absolute; bottom:-3px; right:0; height:2px; width:0; background: var(--gold-ink); transition: width .3s; }
.nav a:hover { opacity: 1; } .nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--gold-ink); opacity: 1; }

.header-phone { order: 2; display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.header-phone svg { width: 16px; height: 16px; color: var(--gold); }

.menu-btn { display: none; order: 3; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text); }
.menu-btn span { display: block; width: 26px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ============================================================ HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide image-slot { width: 100%; height: 100%; display: block; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(33,24,18,.86) 0%, rgba(33,24,18,.42) 44%, rgba(33,24,18,.18) 75%, rgba(60,20,48,.3) 100%),
    linear-gradient(0deg, rgba(33,24,18,.7) 0%, transparent 42%);
}
.hero-scrim::after {
  content:''; position:absolute; inset:0;
  background: radial-gradient(700px 480px at 80% 30%, rgba(255,148,54,.22), transparent 60%);
  mix-blend-mode: screen;
}

.hero .wrap { position: relative; z-index: 4; width: 100%; }
.hero-inner { display: block; }

/* numbered rail */
.hero-rail { position: absolute; top: 138px; right: var(--pad-x); bottom: 116px; width: 180px; z-index: 4; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.hero-rail .idx { display: flex; align-items: baseline; gap: 10px; }
.hero-rail .idx .big { font-size: 76px; font-weight: 800; line-height: .8; color: var(--gold); }
.hero-rail .idx .tot { font-family: var(--mono); font-size: 15px; color: rgba(255,255,255,.7); }
.hero-nav { display: flex; gap: 18px; margin: 22px 0 30px; }
.hero-nav button {
  background: none; border: none; cursor: pointer; color: rgba(255,255,255,.72);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; display: inline-flex; align-items: center; gap: 7px;
  transition: color .2s;
}
.hero-nav button:hover { color: var(--gold-bright); }
.hero-nav svg { width: 16px; height: 16px; }
.hero-vert {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: 12px; font-weight: 600; letter-spacing: .4em; color: rgba(255,255,255,.7);
  margin: auto 0 26px;
}
.hero-social { display: flex; flex-direction: column; gap: 14px; }
.hero-social a { color: rgba(255,255,255,.7); transition: color .2s, transform .2s; }
.hero-social a:hover { color: var(--gold-bright); transform: translateY(-2px); }
.hero-social svg { width: 18px; height: 18px; }

/* hero centre content */
.hero-feature { max-width: 720px; margin: 0 auto; text-align: center; }
.hero-feature .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .3em; color: var(--gold-soft); margin-bottom: 22px; }
.hero-feature h1 {
  font-size: clamp(34px, 5.4vw, 62px); font-weight: 400; letter-spacing: .14em; color: #fff;
  line-height: 1.15; margin-bottom: 22px;
}
.hero-feature h1 .gold { color: var(--gold-bright); }
.hero-feature p { color: rgba(239,231,224,.82); font-size: 17px; max-width: 30em; margin: 0 auto 30px; }
.hero-feature .btn-pill { margin: 0 auto; }

.hero-coord { position: absolute; z-index: 4; }
.hero-coord.c1 { bottom: 74px; left: 50%; transform: translateX(-50%); }

.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 5; color: rgba(255,255,255,.8); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .2em; }
.scroll-cue svg { width: 22px; height: 22px; animation: bob 1.8s infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(7px)} }

/* ============================================================ ABOUT */
.section { position: relative; padding: 110px 0; }
.about { background: var(--bg-2); }
.about .ghost { top: 40px; right: 2vw; }
.about .head { text-align: center; margin-bottom: 60px; }
.about .head .eyebrow { display: block; margin-bottom: 14px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 2; }
.about-copy h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; margin-bottom: 18px; letter-spacing: .02em; }
.about-copy h2 .gold { color: var(--gold-ink); }
.about-copy p { color: var(--muted); font-size: 16px; max-width: 36em; }
.spec { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 4px; }
.spec li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.spec li:last-child { border-bottom: 1px solid var(--line-2); }
.spec .si { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,176,32,.16); color: var(--gold-ink); flex: none; }
.spec .si svg { width: 24px; height: 24px; }
.spec .st { font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.spec .sd { color: var(--muted); font-size: 13.5px; }

/* about model viewer */
.viewer-shell { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, #2a1226, var(--plum-2)); aspect-ratio: 1/1; }
.viewer-shell .corner { position: absolute; width: 16px; height: 16px; border: 1px solid var(--gold-soft); opacity: .7; z-index: 4; }
.viewer-shell .corner.tl { top:12px; left:12px; border-right:0; border-bottom:0; }
.viewer-shell .corner.tr { top:12px; right:12px; border-left:0; border-bottom:0; }
.viewer-shell .corner.bl { bottom:12px; left:12px; border-right:0; border-top:0; }
.viewer-shell .corner.br { bottom:12px; right:12px; border-left:0; border-top:0; }
model-viewer { width: 100%; height: 100%; background: transparent; }
.viewer-shell .skeleton { position:absolute; inset:0; display:grid; place-items:center; background: linear-gradient(110deg, rgba(255,255,255,.02) 30%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.02) 70%); background-size:200% 100%; animation: shimmer 1.6s infinite; color: var(--muted); font-size: 13px; transition: opacity .4s; pointer-events:none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.viewer-expand { position:absolute; top:14px; right:14px; z-index:6; cursor:pointer; display:inline-flex; align-items:center; gap:8px; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border:1px solid var(--line); color:#fff; font-family:inherit; font-size:12px; font-weight:700; letter-spacing:.08em; padding:9px 13px; border-radius:999px; transition: background .25s, transform .25s; }
.viewer-expand:hover { background: var(--pill); color:#2a1402; transform: translateY(-2px); }
.viewer-expand svg { width:16px; height:16px; }
.viewer-expand .ic-close { display:none; }
.viewer-shell.fullscreen { position: fixed; inset: 18px; z-index: 999; height:auto; aspect-ratio:auto; border-radius: 12px; box-shadow: 0 0 0 100vmax rgba(10,6,9,.82); }
.viewer-shell.fullscreen .viewer-expand .ic-open { display:none; }
.viewer-shell.fullscreen .viewer-expand .ic-close { display:block; }
.viewer-shell.fullscreen .viewer-expand .ex-label { display:none; }
.viewer-badge { position:absolute; bottom:14px; left:14px; z-index:5; }

/* ============================================================ PROJECTS */
.projects { background: var(--bg); padding-bottom: 0; }
.projects .head { text-align: center; margin-bottom: 56px; position: relative; z-index: 2; }
.proj-strip-wrap { position: relative; }
.proj-strip {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.proj-strip::-webkit-scrollbar { display: none; }
/* ~3.4 cards visible on desktop → natural peek of the next card */
.proj { flex: 0 0 clamp(260px, 27vw, 420px); position: relative; height: 540px; overflow: hidden; border-left: 1px solid rgba(0,0,0,.4); }
.proj image-slot { position:absolute; inset:0; width:100%; height:100%; }
.proj .pov { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(21,16,14,.85), rgba(21,16,14,.15) 55%, rgba(21,16,14,.4)); z-index: 2; pointer-events: none; }
.proj .ptitle { position: absolute; top: 30px; right: 28px; left: 28px; z-index: 3; }
.proj .ptitle h3 { font-size: 19px; font-weight: 700; letter-spacing: .08em; line-height: 1.3; color: #fff; }
.proj .ptitle span { font-family: var(--mono); font-size: 11px; color: var(--gold-bright); letter-spacing: .1em; }
.proj .pside {
  position: absolute; bottom: 26px; right: 24px; z-index: 3;
  writing-mode: vertical-rl; font-size: 11px; font-weight: 600; letter-spacing: .34em; color: rgba(255,255,255,.72);
}
.proj .pmag {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 4;
  width: 78px; height: 78px; border-radius: 50%; background: var(--pill); display: grid; place-items: center;
  color: #2a1402; box-shadow: 0 18px 40px -14px rgba(255,138,26,.7); transition: transform .3s;
}
.proj .pmag:hover { transform: translate(-50%,-50%) scale(1.08); }
.proj .pmag svg { width: 30px; height: 30px; }
.proj-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--line); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .25s;
}
.proj-arrow:hover { background: var(--pill); color: #2a1402; }
.proj-arrow svg { width: 20px; height: 20px; }
.proj-arrow.prev { right: 18px; } .proj-arrow.next { left: 18px; }

/* ============================================================ MILESTONE NUMBER */
.milestone { background: var(--bg-2); position: relative; }
.milestone .wrap { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 72px); flex-wrap: wrap; }
.milestone .num {
  font-size: clamp(150px, 24vw, 320px); font-weight: 900; line-height: .8; letter-spacing: -.02em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 20px 50px rgba(255,138,26,.3)); order: 1;
}
.milestone .m-side { order: 2; text-align: right; max-width: 340px; }
.milestone .cap { font-size: clamp(17px, 1.8vw, 22px); font-weight: 600; letter-spacing: .1em; color: var(--text); line-height: 1.4; }
.milestone .cap .gold { color: var(--gold-ink); }
.milestone .tick-rule { justify-content: flex-start; margin-top: 24px; }

/* ============================================================ CLIENTS */
.clients { background: var(--bg); position: relative; overflow: hidden; }
.clients .ghost { bottom: 18px; left: 2vw; }
.clients .head { text-align: center; margin-bottom: 44px; position: relative; z-index: 2; }
.client-marquee { position: relative; z-index: 2; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.client-track { display: flex; gap: 16px; width: max-content; animation: client-ltr 34s linear infinite; }
.client-marquee:hover .client-track { animation-play-state: paused; }
@keyframes client-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.client-marquee + .client-marquee { margin-top: 16px; }
#clientRow2 { display: none; }
.client-chip {
  flex: none; height: 78px; padding: 0 38px; border-radius: 14px;
  display: grid; place-items: center; white-space: nowrap;
  background: var(--bg-2); border: 1px solid var(--line);
  font-weight: 700; font-size: 17px; letter-spacing: .06em; color: var(--muted);
  transition: color .25s, border-color .25s, background .25s;
}
.client-chip:hover { color: var(--gold-ink); border-color: var(--gold-ink); background: var(--bg-3); }
.clients .cta-row { text-align: center; margin-top: 44px; position: relative; z-index: 2; }

/* ============================================================ CONTACT */
.contact { background: var(--bg-2); position: relative; }
.contact .ghost { top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: .04; }
.contact .head { text-align: center; margin-bottom: 56px; position: relative; z-index: 2; }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; position: relative; z-index: 2; }
.contact-info .ci { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-family: var(--mono); font-size: 14px; color: var(--text); letter-spacing: .04em; }
.contact-info .ci .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,176,32,.16); color: var(--gold-ink); flex: none; }
.contact-info .ci .ic svg { width: 20px; height: 20px; }
.contact-info .socials { display: flex; gap: 12px; margin-top: 28px; }
.contact-info .socials a { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-3); color: var(--text); transition: background .25s, transform .25s; }
.contact-info .socials a:hover { background: var(--pill); color: #2a1402; transform: translateY(-3px); }
.contact-info .socials svg { width: 19px; height: 19px; }

.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform .f-full { grid-column: 1 / -1; }
.cform input, .cform textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 8px; padding: 15px 16px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.cform textarea { min-height: 120px; resize: vertical; }
.cform input::placeholder, .cform textarea::placeholder { color: #7d6f67; }
#cf-phone { direction: rtl; text-align: right; }
.cform input:focus, .cform textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,176,32,.15); }
.cform .submit-row { grid-column: 1 / -1; display: flex; justify-content: flex-start; }

/* ============================================================ FOOTER */
.footer { background: var(--bg); padding: 44px 0; border-top: 1px solid var(--line-2); }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer img { height: 46px; cursor: pointer; }
.footer .credit { color: var(--muted); font-size: 13px; font-family: var(--mono); letter-spacing: .05em; }
.footer-legal { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-legal a { color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; transition: color .15s; }
.footer-legal a:hover { color: var(--gold); }
.footer-legal span { color: var(--muted); font-size: 12px; }

/* ============================================================ FABs + DRONE */
.fab-wa {
  position: fixed; bottom: 26px; left: 26px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .25s;
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 31px; height: 31px; }
.fab-wa::before { content:''; position:absolute; inset:0; border-radius:50%; border:2px solid var(--whatsapp); animation: pulse-ring 2s infinite; }
@keyframes pulse-ring { 0%{transform:scale(1);opacity:.8} 100%{transform:scale(1.6);opacity:0} }

.to-top { position: fixed; bottom: 26px; right: 26px; z-index: 90; width: 50px; height: 50px; border-radius: 12px; background: var(--pill); color: #2a1402; border: none; cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* accessibility widget */
.a11y-fab {
  position: fixed; bottom: 96px; left: 26px; z-index: 91;
  width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
  background: #1452d6; color: #fff; border: 2px solid #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(20,82,214,.6);
  transition: transform .25s;
}
.a11y-fab:hover { transform: scale(1.08); }
.a11y-fab svg { width: 30px; height: 30px; }
.a11y-panel {
  position: fixed; bottom: 160px; left: 26px; z-index: 92; width: 270px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.28);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s;
}
.a11y-panel.open { opacity: 1; visibility: visible; transform: none; }
.a11y-panel h4 { font-size: 15px; font-weight: 800; letter-spacing: .06em; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.a11y-panel h4 svg { width: 20px; height: 20px; color: #4d8bff; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-btn {
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text);
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 8px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 5px; transition: border-color .2s, background .2s;
}
.a11y-btn:hover { border-color: var(--gold); }
.a11y-btn.active { border-color: var(--gold); background: rgba(255,194,51,.14); color: var(--gold); }
.a11y-btn svg { width: 20px; height: 20px; }
.a11y-reset { grid-column: 1 / -1; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 10px; padding: 9px; font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.a11y-reset:hover { color: var(--text); border-color: var(--muted); }

/* a11y states */
html.a11y-contrast, html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast .section, html.a11y-contrast .about, html.a11y-contrast .clients,
html.a11y-contrast .contact, html.a11y-contrast .milestone, html.a11y-contrast .projects,
html.a11y-contrast .footer, html.a11y-contrast .header.scrolled,
html.a11y-contrast .client-chip, html.a11y-contrast .a11y-panel { background: #000 !important; }
html.a11y-contrast .muted, html.a11y-contrast .eyebrow, html.a11y-contrast .nav a,
html.a11y-contrast p, html.a11y-contrast .cap, html.a11y-contrast .credit, html.a11y-contrast .client-chip { color: #fff !important; }
html.a11y-contrast .gold, html.a11y-contrast .section-title .gold, html.a11y-contrast .hero-feature h1 .gold { color: #ffea00 !important; -webkit-text-fill-color: #ffea00 !important; }
html.a11y-contrast .num { -webkit-text-fill-color: #ffea00 !important; background: none !important; color: #ffea00 !important; }
html.a11y-grayscale { filter: grayscale(1); }
html.a11y-underline a { text-decoration: underline !important; }
html[data-a11y-motion] *, html[data-a11y-motion] *::before, html[data-a11y-motion] *::after { animation-play-state: paused !important; }

/* drone */
.drone { position: fixed; top: 0; left: 0; z-index: 120; width: 64px; height: 64px; pointer-events: none; will-change: transform, opacity; opacity: 0; transition: opacity .45s ease; }
.drone .bob { animation: drone-bob 2.4s ease-in-out infinite; }
@keyframes drone-bob { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-3px); } }
.drone .rotor { transform-box: fill-box; transform-origin: center; animation: spin .12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.drone .scan { stroke-dasharray: 2 4; opacity: .8; animation: scan-pulse 1.2s ease-in-out infinite; }
@keyframes scan-pulse { 0%,100%{ opacity:.25; } 50%{ opacity:.85; } }

/* ============================================================ REVEAL */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

/* ============================================================ MOBILE DRAWER */
.mobile-drawer { position: fixed; inset: 0; z-index: 200; background: rgba(10,6,9,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.mobile-drawer.open { opacity: 1; visibility: visible; }
.drawer-panel { position: absolute; inset: 0 0 0 auto; width: min(82vw, 340px); background: var(--bg-2); padding: 26px 24px; display: flex; flex-direction: column; gap: 6px; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.mobile-drawer.open .drawer-panel { transform: none; }
.drawer-panel .dh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer-panel .dh img { height: 42px; }
.drawer-panel a { font-size: 17px; font-weight: 600; letter-spacing: .1em; padding: 14px 6px; border-bottom: 1px solid var(--line-2); }
.close-btn { background: none; border: none; font-size: 30px; cursor: pointer; color: var(--text); line-height: 1; }

/* social links hidden by default; shown via data-active attribute set by site.config.js */
[data-social] { display: none; }
[data-social][data-active] { display: inline-flex; }

/* hero slides — background-image is set by site.config.js when a cover URL exists;
   nth-child rules below are fallbacks shown only when no inline style is applied */
.hero-slide { background-size: cover; background-position: center; }
.hero-slide:nth-child(1):not([style*="background-image"]) { background-image: url('https://firebasestorage.googleapis.com/v0/b/venusengi.firebasestorage.app/o/DP0inTh%20-%20Imgur.png?alt=media&token=7f70267d-a4fb-40e8-9618-6a20731cc7d6'); }
.hero-slide:nth-child(2):not([style*="background-image"]) { background-image: url('https://firebasestorage.googleapis.com/v0/b/venusengi.firebasestorage.app/o/Gemini_Generated_Image_qqvv9hqqvv9hqqvv.png?alt=media&token=8a384904-5fba-4103-a5da-56e8741f407b'); }
.hero-slide:nth-child(3):not([style*="background-image"]) { background-image: url('https://firebasestorage.googleapis.com/v0/b/venusengi.firebasestorage.app/o/img1.png?alt=media&token=5ed7784c-7ccc-4d05-9256-7e7fab4df3e8'); }

/* project images — fill the panel */
.proj-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-img:not([src]) { background: linear-gradient(135deg, #15100e 0%, #2a1810 100%); }

/* clickable project cards */
.proj--clickable { cursor: pointer; }
.proj--clickable:hover .pov { opacity: .5; }
.proj--clickable::after {
  content: '';
  position: absolute; inset: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  transition: border-color .25s;
  pointer-events: none;
}
.proj--clickable:hover::after { border-color: var(--gold); }

/* projects CTA bar */
.proj-cta-bar {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  background: var(--bg-2);
}
.proj-cta-btn { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; padding: 14px 32px; }
.proj-cta-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Project post modal — magazine style ── */
.proj-modal-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(10,6,4,.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.proj-modal-overlay.open { opacity: 1; pointer-events: auto; }

.proj-modal {
  position: relative;
  background: var(--bg);
  border-radius: 24px;
  width: min(880px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(32px) scale(.97);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 48px 120px rgba(0,0,0,.55);
  direction: rtl;
}
.proj-modal-overlay.open .proj-modal { transform: none; }

/* close — sticky so it stays visible while scrolling */
.proj-modal-close {
  position: sticky; top: 14px; float: left; z-index: 10;
  width: 40px; height: 40px; margin: 14px 0 -54px 14px;
  border-radius: 50%; border: none;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.proj-modal-close:hover { background: rgba(0,0,0,.85); }

/* cover */
.proj-modal-cover {
  width: 100%; height: clamp(240px, 40vh, 440px);
  overflow: hidden; border-radius: 24px 24px 0 0; position: relative;
}
.proj-modal-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,8,3,.5) 0%, transparent 60%);
  border-radius: inherit; pointer-events: none;
}
.proj-modal-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* inline 3-D viewer inside modal body */
.proj-modal-glb { width: 100%; height: 340px; border-radius: 16px; overflow: hidden; margin: 24px 0; background: #f5f5f5; }
.proj-modal-glb model-viewer { width: 100%; height: 100%; }
@media (max-width: 600px) { .proj-modal-glb { height: 240px; } }

/* body */
.proj-modal-body { padding: 40px 56px 56px; }
@media (max-width: 600px) { .proj-modal-body { padding: 24px 22px 40px; } }

.proj-modal-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.proj-modal-city { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.proj-modal-tag {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.proj-modal-title {
  font-size: clamp(30px, 5vw, 46px); font-weight: 900;
  color: var(--text); margin-bottom: 26px;
  line-height: 1.1; letter-spacing: -.02em;
}

/* rich text body */
.proj-modal-info { font-size: 16.5px; line-height: 1.9; color: var(--text); }
.proj-modal-info p { margin-bottom: 16px; }
.proj-modal-info h2 { font-size: 23px; font-weight: 800; color: var(--text); margin: 28px 0 10px; }
.proj-modal-info h3 { font-size: 19px; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.proj-modal-info ul, .proj-modal-info ol { padding-right: 24px; margin: 10px 0; }
.proj-modal-info li { margin-bottom: 6px; }
.proj-modal-info a { color: var(--gold-ink); text-decoration: underline; }
/* inline images (from Quill or gallery) */
.proj-modal-info img, .proj-modal-inline-img {
  width: 100%; max-height: 420px;
  object-fit: cover; display: block;
  border-radius: 18px; margin: 30px 0;
}

/* method badge */
.proj-modal-method {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border-radius: 12px;
  padding: 14px 20px; margin-top: 30px;
}
.proj-modal-method-label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.proj-modal-method-val { font-size: 15px; font-weight: 600; color: var(--text); }

/* footer */
.proj-modal-footer { margin-top: 36px; display: flex; justify-content: center; }
.proj-modal-cta { display: inline-flex; align-items: center; gap: 8px; }
.proj-modal-cta svg { width: 17px; height: 17px; }

/* client chip with logo — remove text padding, just show the image */
.client-chip--logo { padding: 0 16px; }
.client-chip--logo img { display: block; }

/* ============================================================ VIDEOS */
#nav-videos, #drawer-nav-videos { display: none; }
.videos { display: none; position: relative; overflow: hidden; }
.videos .ghost { top: 30px; right: 2vw; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .video-grid { grid-template-columns: 1fr; }
}

.video-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }

.video-ratio-box {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #0d0d0d;
  overflow: hidden;
}
.video-ratio-box iframe,
.video-ratio-box video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-title {
  padding: 13px 16px 15px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  line-height: 1.4;
  border-top: 1px solid var(--line);
  min-height: 46px;
}

/* hero crosshair positions */
.crosshair.ch-1 { top: 120px; right: 18vw; }
.crosshair.ch-2 { bottom: 130px; left: 40vw; }

/* projects ghost position */
.projects .ghost { top: 30px; left: 2vw; }

/* ============================================================ RESPONSIVE */
@media (max-width: 1024px) {
  /* ~2.4 cards visible on tablet */
  .proj { flex: 0 0 clamp(240px, 44vw, 360px); height: 420px; }
  .proj .pmag { display: none; }
  .hero-rail { display: none; }
}
@media (max-width: 860px) {
  .nav, .header-phone { display: none; }
  .menu-btn { display: block; }
  .brand { margin-inline-start: 0; }
  .header .wrap { justify-content: space-between; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-rail { display: none; }
  .hero-feature { text-align: center; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .scan-box { display: none; }
  .drone { display: none; }
}
@media (max-width: 560px) {
  /* ~1.2 cards visible on mobile — strong peek of next card */
  .proj { flex: 0 0 82vw; height: 380px; }
  .cform { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
