/* LBK — home + legal pages. A quiet page with framed project banners. */
:root {
  --bg: #05080f;
  --bg-2: #0a1119;
  --frame: #0c1722;
  --line: rgba(255, 255, 255, .09);
  --text: #e9f2fb;
  --body: #c3d1df;
  --muted: #8ea3b9;
  --faint: #5d7185;
  --accent: #43e0d0;
  --gold: #ffd84d;
  --gutter: clamp(16px, 4vw, 56px);
  --display: "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text);
  font: 16px/1.65 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 700px at 12% -10%, rgba(40, 90, 110, .28), transparent 60%),
    radial-gradient(1000px 700px at 95% 10%, rgba(45, 55, 120, .22), transparent 60%),
    radial-gradient(900px 600px at 50% 110%, rgba(30, 60, 80, .25), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: #fff; color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ── Top bar: logo left, menu button right, nothing in between ── */
.topbar {
  position: relative; z-index: 50;   /* above the menu overlay, so its X stays visible */
  display: flex; align-items: center; justify-content: space-between;
  height: 104px; padding: 0 var(--gutter);
}
.logo {
  display: inline-flex; align-items: center; gap: 11px;
  font-weight: 900; font-size: 30px; letter-spacing: .14em; color: #fff; text-decoration: none;
}
.logo i {
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 14px var(--accent); animation: ping 2.4s ease-out infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(67,224,208,.55); } 70%,100% { box-shadow: 0 0 0 12px rgba(67,224,208,0); } }

.menu-btn {
  width: 52px; height: 52px; display: grid; place-content: center; gap: 7px;
  background: none; border: 0; border-radius: 12px; cursor: pointer; color: #fff;
}
.menu-btn:hover { background: rgba(255,255,255,.06); }
.menu-btn span { display: block; width: 34px; height: 5px; border-radius: 1px; background: currentColor; transition: transform .25s ease; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }

/* ── Navigation overlay ── */
.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 48px;
  background: rgba(5, 8, 15, .97); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
}
.menu.open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.menu-inner { width: min(1100px, 100%); margin: 0 auto; }
.menu-label { margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.menu-projects { list-style: none; margin: 0 0 56px; padding: 0; }
.menu-projects a {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  padding: 10px 0; text-decoration: none; color: #fff;
  font-weight: 900; font-size: clamp(44px, 8vw, 96px); line-height: 1; letter-spacing: .02em; text-transform: uppercase;
  transition: color .15s ease;
}
.menu-projects a:hover { color: var(--accent); }
.menu-projects small { font-size: 14px; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.menu-legal { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.menu-legal a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.menu-legal a:hover { color: #fff; }

/* ── Project banners: framed cards, centred, one per project ── */
.projects { display: grid; gap: clamp(40px, 7vw, 88px); padding: 8px var(--gutter) clamp(56px, 9vw, 110px); }
.banner {
  width: min(1180px, 100%); margin: 0 auto;
  padding: clamp(8px, 1.2vw, 16px); border-radius: 22px;
  background: var(--frame);
  border: 1px solid rgba(67, 224, 208, .18);
  box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 60px rgba(67,224,208,.06);
}
.banner-inner {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 16 / 8.6; min-height: 460px;
  border-radius: 14px; background: #03060b; color: #fff;
  display: grid; place-items: end center;
}
.banner-media { position: absolute; inset: 0; z-index: -2; }
.banner-media canvas { display: block; width: 100%; height: 100%; }
.banner-inner::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 65% at 50% 55%, rgba(3,6,11,.35) 0%, transparent 70%),
    linear-gradient(180deg, rgba(3,6,11,.15) 0%, transparent 35%, rgba(3,6,11,.9) 100%);
}
.banner-body { width: 100%; max-width: 820px; text-align: center; padding: 32px clamp(18px, 4vw, 48px) clamp(28px, 5vw, 56px); }
.eyebrow {
  margin: 0 0 10px; font-size: 12px; font-weight: 700;
  letter-spacing: .34em; text-transform: uppercase; color: var(--accent);
}
.wordmark {
  margin: 0; font-weight: 900; text-transform: uppercase;
  font-size: clamp(72px, 12vw, 176px); line-height: .82; letter-spacing: .05em;
  padding-left: .05em; /* optically recentre the trailing letter-spacing */
  text-shadow: 0 0 26px rgba(67,224,208,.55), 0 0 90px rgba(67,224,208,.28);
}
.desc { margin: 18px auto 24px; max-width: 580px; font-size: clamp(15px, 1.5vw, 18px); color: #d6e2ee; }
.desc strong { color: #fff; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-primary { background: #fff; color: var(--bg); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.35); background: rgba(3,6,11,.45); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: #fff; }
.btn[aria-disabled="true"] { cursor: default; opacity: .75; }
.btn[aria-disabled="true"]:hover { border-color: rgba(255,255,255,.35); }
.btn small { font-size: 11px; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* entrance */
.rise { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.rise.d1 { animation-delay: .12s; } .rise.d2 { animation-delay: .24s; } .rise.d3 { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); padding: 52px var(--gutter) 44px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; justify-items: center; gap: 22px; text-align: center; }
.footer .logo { font-size: 20px; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; list-style: none; margin: 0; padding: 0; }
.legal-links a { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.legal-links a:hover, .legal-links a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.fine { margin: 0; color: var(--faint); font-size: 12px; max-width: 620px; }

/* ── Legal / text pages ── */
.doc { max-width: 780px; margin: 0 auto; padding: 24px var(--gutter) 88px; }
.doc h1 { margin: 0 0 10px; font-weight: 900; font-size: clamp(38px, 6vw, 60px); line-height: 1; }
.doc .updated { margin: 0 0 40px; color: var(--muted); font-size: 14px; }
.doc .lead { font-size: 18px; color: var(--text); }
.doc h2 { margin: 44px 0 10px; font-size: 21px; color: #fff; }
.doc h3 { margin: 26px 0 6px; font-size: 16px; color: #fff; }
.doc p, .doc li { color: var(--body); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc strong { color: #fff; }
.card { margin: 26px 0; padding: 22px 24px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.card p { margin: 4px 0; }

@media (max-width: 720px) {
  .topbar { height: 76px; }
  .logo { font-size: 24px; }
  .menu-btn span { width: 28px; height: 4px; }
  .banner { border-radius: 18px; }
  .banner-inner { aspect-ratio: auto; min-height: min(78svh, 640px); border-radius: 12px; }
  .ctas { flex-direction: column; max-width: 320px; margin: 0 auto; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; opacity: 1; transform: none; }
  .logo i { animation: none; }
  .menu, .menu.open { transition: none; }
}
