﻿/* BRBS Reality landing: two doors. Tokens follow the BRBS Reality and ukku.ai design systems. */
:root {
  --brbs-ink: #0C0F0A;
  --brbs-paper: #F4F6EE;
  --brbs-green: #9ACA3D;
  --ukku-ground: #0C0F0A; /* same green-black as the homes door, so the split reads as one surface */
  --glow-center: #182012;
  --ukku-text: #EAF1EE;
  --ukku-muted: #97A8A0;
  --ukku-green: #9ACA3D; /* one green for both doors: the BRBS logo green */
  --font-brbs: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-ukku-head: "Newsreader", Georgia, serif;
  --font-ukku-body: "Instrument Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--brbs-ink);
  color: var(--brbs-paper);
  font-family: var(--font-brbs);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: max(20px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) 0 max(28px, env(safe-area-inset-left));
  pointer-events: none;
}
/* company logo: larger, centred over the split, arriving out of a soft blur */
.top { justify-content: center; padding-top: max(28px, env(safe-area-inset-top)); }
.top img {
  height: clamp(44px, 4.6vw, 68px); width: auto; display: block;
  filter: drop-shadow(0 0 18px rgba(154,202,61,.35)) drop-shadow(0 0 48px rgba(154,202,61,.18));
  animation: diffuse 1.8s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes diffuse {
  from { opacity: 0; filter: blur(14px) drop-shadow(0 0 0 rgba(154,202,61,0)); transform: scale(1.06); }
  to { opacity: 1; filter: blur(0) drop-shadow(0 0 18px rgba(154,202,61,.35)) drop-shadow(0 0 48px rgba(154,202,61,.18)); transform: scale(1); }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- doors ---------- */
.doors { position: fixed; inset: 0; display: flex; }
.door {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 max(28px, 4vw) max(84px, 11vh);
  text-decoration: none; outline: none;
  transition: flex-grow .9s var(--ease);
}
/* hover widens a side a little; colours never change, so both sides always match */
@media (hover: hover) and (min-width: 820px) {
  .doors:hover .door { flex-grow: .85; }
  .doors .door:hover, .doors .door:focus-visible { flex-grow: 1.2; }
}
.door:focus-visible .cta { outline: 3px solid currentColor; outline-offset: 4px; }

/* homes door */
/* both doors share one background: the ukku.ai ground and glow */
.homes, .tech { background: radial-gradient(120% 80% at 55% 30%, var(--glow-center) 0%, var(--ukku-ground) 70%); }
.homes, .tech { color: var(--ukku-text); }
/* the elevation image and its traced lines share one stage, so they stay aligned at any size */
.stage { position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 2850 / 1420; transform: translateX(-28%); }
.stage img, .stage .lines { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.homes .stage { top: 13%; height: auto; width: 140%; transform: translateX(-36%); transform-origin: 36% 60%; animation: drift 30s ease-in-out infinite alternate; }
.lines path { transition: fill 1.2s ease; }
.lines path.lit { fill: rgba(154,202,61,.14); }
.lines path.warm { fill: rgba(154,202,61,.28); } /* brighter window, same green */
.lines path { stroke: var(--brbs-green); stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.homes .lines { opacity: .7; } /* same quiet glow as the ukku.ai dots */
.lines .structure { stroke-width: 1.6px; }
.lines .ground { stroke-width: 1.2px; }
.lines .detail { stroke-width: 1px; opacity: .85; }
.lines .rail { stroke-width: .8px; opacity: .7; }
.homes .lines { filter: drop-shadow(0 0 4px rgba(154,202,61,.3)); }
@keyframes drift { from { transform: translateX(-36%) scale(1); } to { transform: translateX(-39%) scale(1.06); } }

/* tech door */
.tech { color: var(--ukku-text); font-family: var(--font-ukku-body); }
/* Smart yard: subtle circuit board and CAD draft in line, with a few signals running along the traces */
.pcb { position: absolute; inset: 0; width: 100%; height: 100%; display: block; fill: none; stroke-linecap: round; stroke-linejoin: round;
  -webkit-mask-image: radial-gradient(90% 80% at 60% 38%, #000 35%, transparent 85%); mask-image: radial-gradient(90% 80% at 60% 38%, #000 35%, transparent 85%); }
.pcb path, .pcb rect, .pcb circle { vector-effect: non-scaling-stroke; }
.pcb .cad { stroke: var(--ukku-muted); stroke-width: .8px; opacity: .22; }
.pcb .cad .center { stroke-dasharray: 14 5 3 5; }
.pcb text { fill: var(--ukku-muted); stroke: none; font: 500 11px var(--font-ukku-body); text-anchor: middle; letter-spacing: .04em; }
.pcb .cad text { opacity: 1; } .pcb .cad .tl { text-anchor: start; }
.pcb .traces { stroke: var(--ukku-green); stroke-width: 1px; opacity: .32; }
.pcb .pads { stroke: var(--ukku-green); stroke-width: 1px; opacity: .45; }
.pcb .chips { stroke: var(--ukku-green); stroke-width: 1.2px; opacity: .55; }
.pcb .chips rect { fill: rgba(154,202,61,.04); }
.pcb .pulses { stroke: var(--ukku-green); stroke-width: 2px; filter: drop-shadow(0 0 4px rgba(154,202,61,.8)); }
.pcb .pulses path { stroke-dasharray: .05 1; stroke-dashoffset: 1.05; animation: pulse 6s linear infinite; }
@keyframes pulse { to { stroke-dashoffset: 0; } }
.homes::after, .tech::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(12,15,10,.9) 0%, rgba(12,15,10,.35) 40%, rgba(12,15,10,0) 70%);
}

/* door content */
.content { position: relative; z-index: 2; max-width: 34rem; }
.content > * + * { margin-top: 14px; }
.title { margin: 0; line-height: .95; letter-spacing: -0.03em; text-wrap: balance; }
.homes .title { font-weight: 700; font-size: clamp(44px, 6.4vw, 104px); }
.tech .title { font-family: var(--font-ukku-head); font-weight: 500; font-size: clamp(42px, 5.6vw, 92px); letter-spacing: -0.025em; }
.wordmark { height: clamp(30px, 3.2vw, 44px); width: auto; display: block; margin-bottom: 6px; }
.line { margin: 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; max-width: 32ch; }
.homes .line, .tech .line { color: var(--ukku-muted); }
.cta {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font-weight: 600; font-size: 16px; margin-top: 26px !important;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.cta svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.door:hover .cta svg, .door:focus-visible .cta svg { transform: translateX(4px); }
.homes .cta { background: var(--brbs-green); color: var(--brbs-ink); border-radius: 6px; }
.tech .cta { background: var(--ukku-green); color: var(--brbs-ink); border-radius: 6px; }
.homes:hover .cta, .tech:hover .cta { background: #b0d866; }
.caption {
  position: absolute; z-index: 2; right: max(20px, 2vw); bottom: max(84px, 11vh);
  font-size: 12px; color: rgba(244,246,238,.6); writing-mode: vertical-rl; transform: rotate(180deg);
}

/* seam between doors */
.seam {
  position: fixed; z-index: 10; top: 0; bottom: 0; width: 1px; left: 50%;
  background: linear-gradient(180deg, transparent, rgba(244,246,238,.35) 30%, rgba(244,246,238,.35) 70%, transparent);
  pointer-events: none; transition: left .9s var(--ease), opacity .4s;
}

/* footer */
.legal {
  position: fixed; z-index: 20; inset: auto 0 0 0;
  padding: 0 max(28px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
  font-size: 12px; line-height: 1.5; color: rgba(244,246,238,.62); pointer-events: none;
  display: flex; flex-wrap: wrap; gap: 4px 24px;
}
.legal p { margin: 0; }

/* ---------- small screens: stacked doors ---------- */
@media (max-width: 819px) {
  body { overflow: auto; }
  .doors { position: relative; inset: auto; flex-direction: column; min-height: 100svh; }
  .door { min-height: max(50svh, 440px); padding: 96px 20px 40px; }
  .door.tech { padding-bottom: 96px; }
  .seam { display: none; }
  .top { position: absolute; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .top img { height: 38px; }
  .legal { position: static; background: var(--ukku-ground); padding: 20px max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .door.tech { padding-bottom: 48px; }
  .homes::after, .tech::after { background: linear-gradient(0deg, rgba(12,15,10,.96) 0%, rgba(12,15,10,.78) 55%, rgba(12,15,10,.35) 100%); }
  .homes .stage { top: 14%; width: 190%; }
  .homes .title { font-size: 46px; }
  .tech .title { font-size: 42px; }
  .cta { margin-top: 18px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .homes .stage, .top img { animation: none; }
  .pcb .pulses { display: none; }
  .door, .seam, .cta, .cta svg { transition: none; }
}


