html{background: var(--bg0);}
:root{
  --bg0:#070a10;
  --bg1:#0b1020;
  --card:#0f172a;
  --text:#e5e7eb;
  --muted:#a6b0c3;
  --line:rgba(255,255,255,.10);
  --accent:#53c7ff;
  --accent2:#97A8BC;
  --shadow: 0 20px 80px rgba(0,0,0,.45);
  --radius: 18px;
}
*{box-sizing:border-box}
html,body{height:100%;
  position: relative;
  min-height: 100%;
}

/* Fixed background layer (does not scroll). Reliable on mobile. */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(1200px 700px at 60% 10%, rgba(255,143,76,.28), transparent 55%),
    radial-gradient(900px 600px at 40% 30%, rgba(83,199,255,.22), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(120,90,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 60% 10%, rgba(255,143,76,.28), transparent 55%),
    radial-gradient(900px 600px at 40% 30%, rgba(83,199,255,.22), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(120,90,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}



a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px; margin:0 auto; padding:22px}
.nav .container{padding:12px 22px}
.nav{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(8px);
  background: linear-gradient(90deg, rgba(7,10,16,.82), rgba(12,18,34,.74));
  border-bottom:1px solid var(--line);
}
.nav-inner{display:flex; align-items:center; justify-content:space-between; gap:14px}
.brand{display:flex; align-items:center; gap:12px}
.brand img{height:28px; width:auto; object-fit:contain}
.brand .name{font-weight:700; letter-spacing:.3px}
.menu{display:flex; gap:14px; align-items:center; flex-wrap:wrap}
.pill{
  padding:8px 11px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--text);
  background: rgba(255,255,255,.03);
  font-size:14px;
}
.pill:hover{background: rgba(255,255,255,.06); text-decoration:none}
.pill.primary{
  border-color: rgba(83,199,255,.45);
  box-shadow: 0 0 0 4px rgba(83,199,255,.08);
}
.hero{padding:28px 0 22px 0;}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:28px;
  align-items:center;
}
.hero-card{
  padding:26px;
  border:1px solid var(--line);
  background: rgba(15,23,42,.45);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  color:var(--muted);
  background: rgba(255,255,255,.03);
  font-size:13px;
}
h1{margin:14px 0 10px 0; font-size:40px; line-height:1.08}
.subtitle{color:var(--muted); font-size:16px; line-height:1.55; margin:0 0 18px 0}
.cta{display:flex; gap:12px; flex-wrap:wrap}
.logo-wrap{
  text-align:center;
  padding:22px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.logo-wrap img{
  width:100%;
  max-width:520px;
  height:auto;
  object-fit:contain;
  filter: drop-shadow(0 30px 80px rgba(0,0,0,.55));
}
.section{padding:24px 0}
.section h2{font-size:22px; margin:0 0 12px 0}
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15,23,42,.35);
  padding:16px;
}
.card h3{margin:0 0 6px 0; font-size:16px}
.card p{margin:0; color:var(--muted); font-size:14px; line-height:1.55}
.footer{
  border-top:1px solid var(--line);
  margin-top:30px;
  padding:18px 0 30px 0;
  color: var(--muted);
  font-size:13px;
}
.footer a{color:var(--muted)}
.badge{display:inline-flex; align-items:center; gap:8px; color: var(--accent2); font-size:13px;}
.page-title{margin:18px 0 8px 0; font-size:30px}
.prose{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15,23,42,.30);
  padding:18px;
}
.prose h2{margin-top:22px}
.prose p, .prose li{color:var(--muted); line-height:1.65}
.prose strong{color:var(--text)}
@media (max-width: 920px){
  .hero-grid{grid-template-columns:1fr; }
  h1{font-size:34px}
  .grid{grid-template-columns:1fr}
  .brand .name{display:none}
}

/* ---------- Header v5 (desktop + mobile overlay) ---------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(90deg, rgba(7,10,16,.84), rgba(12,18,34,.76));
  border-bottom:1px solid var(--line);
}

.nav .container{padding:10px 22px}

.nav-inner{
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  gap:14px;
}

.brand{display:flex; align-items:center; justify-content:flex-start}
.brand img{
  height: 42px; /* larger on desktop */
  width: auto;
  object-fit: contain;
}

/* Desktop menu */
.menu{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
}

/* Slimmer buttons */
.pill{
  height: 32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0 12px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--text);
  background: rgba(255,255,255,.03);
  font-size:14px;
}
.pill:hover{background: rgba(255,255,255,.06); text-decoration:none}

.pill.primary{
  border-color: rgba(83,199,255,.45);
  box-shadow: 0 0 0 4px rgba(83,199,255,.08);
}

/* Cleaner language button */
.lang-btn{
  min-width: 46px;
  padding: 0 10px;
  font-weight: 700;
  letter-spacing: .2px;
}

/* Hamburger (hidden on desktop) */
.hamburger{
  display:none;
  height:32px;
  width:32px;
  border-radius:10px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.hamburger:hover{background: rgba(255,255,255,.06)}

/* Mobile menu overlay */
.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: rgba(7,10,16,.70);
  backdrop-filter: blur(10px);
}
.mobile-menu .panel{
  position:absolute;
  top:0; left:0; right:0;
  padding: 76px 18px 18px 18px; /* leave room for header */
  display:flex;
  flex-direction:column;
  gap:12px;
}
.mobile-menu .panel a{
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(15,23,42,.40);
  font-size:16px;
  text-decoration:none;
}
.mobile-menu .panel a:hover{background: rgba(15,23,42,.55)}

body.menu-open .mobile-menu{display:block}

@media (max-width: 920px){
  .nav .container{padding:10px 16px}
  .nav-inner{
    grid-template-columns: 40px 1fr 56px; /* hamburger | centered brand | language */
    gap:10px;
  }
  .hamburger{display:flex}
  .menu{display:none}
  .brand{justify-content:center}
  .brand img{
    height:auto;
    width: min(240px, 58vw);
    max-height: 44px;
  }
  .pill{height:34px}
}

/* Prevent accidental tap zoom; pinch-zoom is handled by viewport meta */
html{touch-action: manipulation;}

/* ---------- Overrides v6 ---------- */
html, body{height:100%;}
body{
  margin:0;
  background: transparent; /* background via body::before */
  color: var(--text);
  position: relative;
  min-height: 100%;
}

/* Desktop sizing */
.brand img{height:48px;}
.pill{height:30px; padding:0 12px; font-size:14px;}
.hamburger{height:30px; width:30px}

/* Ensure language toggle is at far right (desktop) */
.nav-inner{
  display:flex;
  align-items:center;
  gap:14px;
}
.brand{margin-right:auto;}
.menu{display:flex; align-items:center; gap:10px; flex-wrap:nowrap;}
.lang-btn{order: 3;} /* after menu */

/* Background layer should always cover viewport */
body::before{inset:0;}

/* Reduce spacing under header a bit */
.hero{padding-top:26px;}
.page-title{margin-top:14px;}

/* Mobile: grid layout with hamburger | centered brand | language right */
@media (max-width: 920px){
  .nav-inner{
    display:grid;
    grid-template-columns: 40px 1fr 56px;
    align-items:center;
    gap:10px;
  }
  .hamburger{display:flex; grid-column:1;}
  .brand{grid-column:2; margin-right:0; justify-content:center;}
  #langToggle{grid-column:3; justify-self:end;}
  .menu{display:none;}
  .brand img{width:min(240px, 58vw); max-height:44px; height:auto;}
}

/* Make overlay not cover header so hamburger remains clickable */
.mobile-menu{z-index:40;}
.nav{z-index:50;}
/* ---------- Overrides v7: always-visible fixed header + spacing ---------- */
:root{
  --nav-h-desktop: 72px;
  --nav-h-mobile: 68px;
}

.nav{
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
}

main.container{
  padding-top: calc(var(--nav-h-desktop) - 14px); /* reduce gap under header */
}

@media (max-width: 920px){
  main.container{
    padding-top: calc(var(--nav-h-mobile) - 14px);
  }
}

/* Make overlay start BELOW the fixed header so the hamburger remains clickable */
.mobile-menu{
  top: var(--nav-h-desktop);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
}
@media (max-width: 920px){
  .mobile-menu{
    top: var(--nav-h-mobile);
  }
}

/* Brand slightly larger (desktop), header buttons 30px (already requested) */
.brand img{height:52px;}
.pill{height:30px;}

/* Mobile hamburger bigger and cleaner */
@media (max-width: 920px){
  .hamburger{
    height:44px;
    width:44px;
    border:none;
    background: transparent;
    font-size:26px;
  }
}

/* Hero title wordmark */
.hero-wordmark{
  display:block;
  width:min(520px, 100%);
  height:auto;
  margin: 6px 0 10px 0;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.35));
}
.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* Slightly tighter hero spacing (optional but aligns with reduced gap request) */
.hero{padding-top:18px;}

/* ---------- Overrides v8: spacing + overlay menu polish ---------- */
:root{
  --content-gap-desktop: 22px;  /* space between header and page content */
  --content-gap-mobile: 20px;

  --menu-gap-desktop: 18px;     /* space between header and first menu button */
  --menu-gap-mobile: 18px;
}

/* 1) Content spacing under fixed header */
main.container{
  padding-top: calc(var(--nav-h-desktop) + var(--content-gap-desktop));
}
@media (max-width: 920px){
  main.container{
    padding-top: calc(var(--nav-h-mobile) + var(--content-gap-mobile));
  }
}

/* 2) Overlay must start flush to top (no visible strip under header).
      Header stays clickable because it has higher z-index. */
.mobile-menu{
  top: 0 !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
}

/* 3) Menu panel: consistent spacing (header->first button) and between buttons */
.mobile-menu .panel{
  top: 0;
  padding: calc(var(--nav-h-desktop) + var(--menu-gap-desktop)) 18px 18px 18px;
  gap: 12px;
}
@media (max-width: 920px){
  .mobile-menu .panel{
    padding: calc(var(--nav-h-mobile) + var(--menu-gap-mobile)) 18px 18px 18px;
  }
}

/* Make menu buttons look slightly more premium and consistent */
.mobile-menu .panel a{
  border-radius: 16px;
}


/* ---------- Privacy title inside card ---------- */
.prose .page-title{margin:0 0 14px 0; font-size:30px}

/* Footer centered override */
.footer{
  text-align:center;
  justify-content:center;
}
.footer a{display:none;}
/* ---------- Header v9: hamburger navigation on wide desktop ---------- */
@media (min-width: 921px){
  /* Keep the brand on the left and replace the wide desktop link row
     with the same hamburger + language controls used by the narrow layout. */
  .brand{
    order:1;
    margin-right:auto;
  }

  .hamburger{
    order:2;
    display:flex;
    height:44px;
    width:44px;
    border:none;
    background:transparent;
    font-size:26px;
  }

  .menu{
    display:none;
  }

  #langToggle{
    order:3;
  }
}

/* ---------- Apps portfolio + LumaFind pages ---------- */
.page-hero{
  padding:18px 0 8px 0;
}
.page-hero-wide{
  max-width:820px;
}
.page-hero h1,
.luma-copy h1{
  margin:14px 0 10px;
  font-size:clamp(38px, 7vw, 64px);
  line-height:1.02;
  letter-spacing:-1.5px;
}
.page-lead{
  max-width:760px;
  font-size:17px;
}
.section-heading-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}
.section-heading-row h2{margin:0}

.app-grid{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);
  gap:16px;
}
.app-card{
  position:relative;
  overflow:hidden;
  min-height:330px;
  border:1px solid var(--line);
  border-radius:24px;
  background:rgba(15,23,42,.38);
  box-shadow:0 18px 60px rgba(0,0,0,.22);
}
.featured-app{
  display:grid;
  grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);
  align-items:stretch;
}
.app-card-visual{
  min-height:330px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:34px;
  background:
    radial-gradient(280px 220px at 25% 20%, rgba(83,199,255,.22), transparent 65%),
    radial-gradient(280px 220px at 90% 85%, rgba(255,143,76,.18), transparent 65%),
    rgba(255,255,255,.015);
  border-right:1px solid var(--line);
}
.luma-mark{
  width:min(190px,80%);
  aspect-ratio:1;
  display:grid;
  place-items:center;
  border-radius:34%;
  border:1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.22), transparent 22%),
    linear-gradient(145deg, rgba(83,199,255,.88), rgba(91,80,210,.82) 55%, rgba(255,143,76,.82));
  box-shadow:0 25px 70px rgba(0,0,0,.42), inset 0 0 35px rgba(255,255,255,.08);
}
.luma-mark span{
  font-size:clamp(64px,8vw,100px);
  font-weight:800;
  letter-spacing:-7px;
  text-shadow:0 8px 26px rgba(0,0,0,.35);
}
.app-card-content{
  padding:28px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
}
.app-card-content h2{
  margin:10px 0 10px;
  font-size:30px;
}
.app-card-content p{
  margin:0 0 20px;
  color:var(--muted);
  line-height:1.65;
}
.app-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.mini-badge,
.section-label{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:4px 9px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background:rgba(255,255,255,.035);
  color:var(--accent2);
  font-size:12px;
  font-weight:650;
  letter-spacing:.2px;
}
.action-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--text);
  font-weight:650;
  text-decoration:none;
}
.action-link:hover{
  text-decoration:none;
  gap:12px;
}
.future-app{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.future-icon{
  width:56px;
  height:56px;
  margin:28px 28px 0;
  display:grid;
  place-items:center;
  border-radius:18px;
  border:1px dashed rgba(255,255,255,.22);
  color:var(--muted);
  font-size:30px;
}

.luma-hero{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);
  gap:30px;
  align-items:center;
  padding:24px 0 30px;
}
.eyebrow-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:14px;
  margin-bottom:20px;
}
.eyebrow-link:hover{color:var(--text); text-decoration:none}
.luma-meta{margin-bottom:2px}
.luma-tagline{
  margin:0 0 14px;
  font-size:21px;
  font-weight:650;
  color:var(--text);
}
.cta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:22px;
}
.page-cta{
  min-height:40px;
  height:auto;
  padding:9px 15px;
}
.luma-visual{
  position:relative;
  min-height:420px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:22px;
  border:1px solid var(--line);
  border-radius:28px;
  overflow:hidden;
  background:
    radial-gradient(420px 300px at 70% 18%, rgba(255,143,76,.20), transparent 62%),
    radial-gradient(420px 330px at 18% 78%, rgba(83,199,255,.22), transparent 62%),
    rgba(15,23,42,.30);
  box-shadow:var(--shadow);
}
.find-board{
  width:min(310px,72%);
  aspect-ratio:1;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  transform:rotate(-3deg);
}
.find-board span{
  border-radius:15px;
  border:1px solid rgba(255,255,255,.16);
  background:linear-gradient(145deg, rgba(83,199,255,.72), rgba(75,95,190,.58));
  box-shadow:0 10px 24px rgba(0,0,0,.22);
}
.find-board .odd{
  border-radius:50%;
  background:linear-gradient(145deg, rgba(255,177,91,.92), rgba(232,91,119,.76));
  box-shadow:0 0 0 5px rgba(255,143,76,.08), 0 10px 24px rgba(0,0,0,.22);
}
.visual-caption{
  font-size:28px;
  font-weight:760;
  letter-spacing:.5px;
}
.feature-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.feature-card,
.info-panel,
.support-strip{
  border:1px solid var(--line);
  border-radius:20px;
  background:rgba(15,23,42,.32);
}
.feature-card{padding:22px}
.feature-number{
  color:var(--accent2);
  font-size:12px;
  font-weight:800;
  letter-spacing:1.2px;
  margin-bottom:18px;
}
.feature-card h3{
  margin:0 0 8px;
  font-size:18px;
}
.feature-card p,
.info-panel p,
.support-strip p{
  margin:0;
  color:var(--muted);
  line-height:1.65;
}
.info-split{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.info-panel{padding:24px}
.info-panel h2{
  margin:10px 0 10px;
  font-size:23px;
}
.info-panel .action-link{margin-top:18px}
.support-strip{
  margin:12px 0 0;
  padding:24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}
.support-strip h2{
  margin:10px 0 5px;
  font-size:23px;
}

@media (max-width: 920px){
  .page-hero h1,
  .luma-copy h1{font-size:42px}
  .app-grid,
  .luma-hero,
  .info-split{grid-template-columns:1fr}
  .featured-app{grid-template-columns:1fr}
  .app-card-visual{
    min-height:230px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .luma-visual{min-height:360px}
  .feature-grid{grid-template-columns:1fr}
  .support-strip{align-items:flex-start; flex-direction:column}
}

@media (max-width: 560px){
  .page-hero h1,
  .luma-copy h1{font-size:36px; letter-spacing:-.8px}
  .page-lead{font-size:16px}
  .app-card-content{padding:22px}
  .app-card-content h2{font-size:26px}
  .luma-visual{min-height:310px}
  .find-board{width:min(260px,76%); gap:9px}
  .find-board span{border-radius:12px}
  .visual-caption{font-size:24px}
}

/* Clickable project cards on the homepage */
.card-link{position:relative; display:block; padding-right:46px; text-decoration:none}
.card-link:hover{text-decoration:none; background:rgba(15,23,42,.48); border-color:rgba(255,255,255,.16)}
.card-arrow{position:absolute; right:17px; top:50%; transform:translateY(-50%); color:var(--muted); font-size:20px; transition:transform .18s ease}
.card-link:hover .card-arrow{transform:translate(4px,-50%); color:var(--text)}

/* ---------- Privacy Center + split privacy policies ---------- */
.privacy-center-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.privacy-choice-card{
  min-height:250px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-end;
  gap:10px;
  padding:26px;
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(15,23,42,.34);
  box-shadow:0 18px 60px rgba(0,0,0,.18);
  text-decoration:none;
}
.privacy-choice-card:hover{
  text-decoration:none;
  background:rgba(15,23,42,.46);
  border-color:rgba(83,199,255,.28);
}
.privacy-choice-card h2{margin:4px 0 0;font-size:26px}
.privacy-choice-card p{margin:0 0 8px;color:var(--muted);line-height:1.65}
.privacy-note{
  margin:8px 0 12px;
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.025);
}
.privacy-note p{margin:6px 0 0;color:var(--muted);line-height:1.55}
.policy-tools{margin:0 0 12px}
.policy-meta{
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.025);
}
.prose code{font-size:.92em;word-break:break-word}
.prose a{text-decoration:underline;text-decoration-color:rgba(83,199,255,.35);text-underline-offset:3px}
.prose a:hover{text-decoration-color:rgba(83,199,255,.8)}
@media (max-width: 760px){
  .privacy-center-grid{grid-template-columns:1fr}
  .privacy-choice-card{min-height:210px;padding:22px}
  .privacy-choice-card h2{font-size:23px}
}


/* ---------- About + Contact pages ---------- */
.about-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.about-card{min-height:260px}
.about-card h2{margin:0 0 10px;font-size:23px}
.about-card p{margin:0;color:var(--muted);line-height:1.65}
.contact-grid{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(280px,.82fr);
  gap:16px;
}
.contact-primary,.contact-side{
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(15,23,42,.34);
  padding:28px;
}
.contact-primary{
  min-height:300px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  background:
    radial-gradient(480px 280px at 10% 0%, rgba(83,199,255,.14), transparent 62%),
    rgba(15,23,42,.34);
}
.contact-primary h2{
  margin:12px 0 10px;
  font-size:clamp(24px,4vw,36px);
  overflow-wrap:anywhere;
}
.contact-primary p,.contact-side p{margin:0;color:var(--muted);line-height:1.65}
.contact-mail{margin-top:22px;min-height:40px;height:auto;padding:9px 15px}
.contact-side{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.contact-side h2{margin:12px 0 10px;font-size:24px}
.contact-side .action-link{margin-top:18px}
.contact-note a{text-decoration:underline;text-decoration-color:rgba(83,199,255,.35);text-underline-offset:3px}
.legal-draft{padding-top:40px !important}
@media (max-width:920px){
  .about-grid{grid-template-columns:1fr}
  .about-card{min-height:0}
  .contact-grid{grid-template-columns:1fr}
  .contact-primary{min-height:250px}
}

/* ---------- Global expandable hamburger navigation v10 ---------- */
.mobile-menu .panel{
  bottom:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}

.mobile-menu .menu-row,
.mobile-menu .submenu a{
  min-height:44px;
  width:100%;
  display:flex;
  align-items:center;
  border:1px solid var(--line);
  border-radius:16px;
  color:var(--text);
  background:rgba(15,23,42,.40);
  font:inherit;
  font-size:16px;
  text-decoration:none;
  cursor:pointer;
  box-sizing:border-box;
}

.mobile-menu > .panel > .menu-row,
.mobile-menu .submenu-toggle{
  justify-content:center;
  padding:10px 46px;
  position:relative;
}

.mobile-menu .menu-row:hover,
.mobile-menu .submenu a:hover,
.mobile-menu .submenu-toggle:focus-visible{
  background:rgba(15,23,42,.58);
}

.mobile-menu .menu-group{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.mobile-menu .submenu-toggle{
  appearance:none;
  -webkit-appearance:none;
}

.mobile-menu .menu-chevron{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  font-size:24px;
  line-height:1;
  transition:transform .18s ease;
  opacity:.82;
}

.mobile-menu .submenu-toggle[aria-expanded="true"] .menu-chevron{
  transform:translateY(-50%) rotate(90deg);
}

.mobile-menu .submenu{
  display:grid;
  gap:8px;
  padding:0 12px 2px;
}

.mobile-menu .submenu[hidden]{display:none !important;}

.mobile-menu .submenu a{
  justify-content:flex-start;
  min-height:40px;
  padding:9px 16px 9px 30px;
  font-size:15px;
  background:rgba(10,17,30,.50);
  border-color:rgba(148,163,184,.18);
}

.mobile-menu a[aria-current="page"]{
  border-color:rgba(226,232,240,.48);
  background:rgba(30,41,59,.72);
}

@media (max-width: 520px){
  .mobile-menu > .panel > .menu-row,
  .mobile-menu .submenu-toggle{
    min-height:46px;
  }
  .mobile-menu .submenu{
    padding-left:8px;
    padding-right:8px;
  }
}


/* ---------- Quality pass v11: menu backdrop + accessibility ---------- */
body.menu-open{overflow:hidden;}

/* Keep the scrollable menu panel only as tall as needed. The remaining
   overlay is a true clickable backdrop; direct clicks on blank panel
   space are also handled by the page scripts. */
.mobile-menu .panel{
  bottom:auto;
  max-height:100%;
}

/* Clear keyboard focus without changing mouse/touch appearance. */
a:focus-visible,
button:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:3px;
}

/* Respect users who prefer less animation. */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
  }
}

/* ---------- Final content + visual polish v12 ---------- */
.skip-link{
  position:fixed;
  left:18px;
  top:10px;
  z-index:1200;
  transform:translateY(-180%);
  padding:9px 13px;
  border-radius:12px;
  border:1px solid rgba(83,199,255,.45);
  background:#0b1020;
  color:var(--text);
  font-weight:700;
  box-shadow:0 12px 30px rgba(0,0,0,.35);
  transition:transform .16s ease;
}
.skip-link:focus{transform:translateY(0); text-decoration:none;}

.home-hero{padding-bottom:18px;}
.home-hero-card{
  width:100%;
  padding:clamp(26px,5vw,48px);
  background:
    radial-gradient(680px 320px at 95% 0%, rgba(255,143,76,.12), transparent 66%),
    radial-gradient(600px 300px at 0% 100%, rgba(83,199,255,.10), transparent 66%),
    rgba(15,23,42,.42);
}
.home-hero-card .hero-wordmark{width:min(650px,100%); margin-top:14px;}
.home-hero-copy{max-width:760px; font-size:clamp(16px,2vw,18px); margin-bottom:0;}
.home-hero-actions{margin-top:24px;}
.home-hero-actions .pill{gap:8px;}

.home-section-heading{margin-bottom:14px;}
.home-section-heading h2{margin:9px 0 0; font-size:clamp(28px,4vw,38px);}
.home-featured-project{
  display:grid;
  grid-template-columns:minmax(260px,.85fr) minmax(0,1.15fr);
  min-height:330px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:24px;
  background:rgba(15,23,42,.36);
  box-shadow:0 18px 60px rgba(0,0,0,.20);
  text-decoration:none;
  transition:border-color .18s ease, background .18s ease, transform .18s ease;
}
.home-featured-project:hover{
  text-decoration:none;
  border-color:rgba(83,199,255,.28);
  background:rgba(15,23,42,.45);
  transform:translateY(-2px);
}
.home-project-visual{
  display:grid;
  place-items:center;
  min-height:330px;
  padding:34px;
  border-right:1px solid var(--line);
  background:
    radial-gradient(300px 220px at 25% 20%, rgba(83,199,255,.22), transparent 65%),
    radial-gradient(300px 240px at 90% 85%, rgba(255,143,76,.18), transparent 65%),
    rgba(255,255,255,.012);
}
.home-find-board{
  width:min(230px,78%);
  aspect-ratio:1;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  transform:rotate(-3deg);
}
.home-find-board span{
  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;
  background:linear-gradient(145deg, rgba(83,199,255,.72), rgba(75,95,190,.58));
  box-shadow:0 9px 20px rgba(0,0,0,.20);
}
.home-find-board .odd{
  border-radius:50%;
  background:linear-gradient(145deg, rgba(255,177,91,.92), rgba(232,91,119,.76));
  box-shadow:0 0 0 5px rgba(255,143,76,.08), 0 9px 20px rgba(0,0,0,.20);
}
.home-project-copy{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  padding:clamp(24px,5vw,38px);
}
.home-project-copy h3{margin:14px 0 10px; font-size:clamp(24px,4vw,34px);}
.home-project-copy p{margin:0 0 20px; max-width:620px; color:var(--muted); line-height:1.65;}
.home-featured-project:hover .action-link{gap:12px;}

.home-discover-section{padding-top:30px;}
.home-discover-grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px;}
.home-discover-card{min-height:180px; padding:24px 54px 24px 24px; display:flex; flex-direction:column; justify-content:flex-end;}
.home-discover-card h3{margin:12px 0 8px; font-size:22px;}
.home-discover-card p{font-size:15px;}

.about-hero{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);
  gap:28px;
  align-items:center;
  padding:18px 0 18px;
}
.about-hero-copy h1{margin:14px 0 10px; font-size:clamp(38px,7vw,60px); line-height:1.02; letter-spacing:-1.4px;}
.about-logo-panel{
  min-height:330px;
  display:grid;
  place-items:center;
  padding:30px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:24px;
  background:
    radial-gradient(430px 280px at 65% 20%, rgba(255,143,76,.13), transparent 65%),
    radial-gradient(430px 300px at 15% 90%, rgba(83,199,255,.13), transparent 65%),
    rgba(15,23,42,.28);
  box-shadow:var(--shadow);
}
.about-logo-panel img{width:100%; max-width:520px; height:auto; filter:drop-shadow(0 22px 55px rgba(0,0,0,.42));}

.footer{display:flex; flex-direction:column; align-items:center; gap:14px;}
.footer .footer-nav{display:flex; justify-content:center; flex-wrap:wrap; gap:8px 18px;}
.footer .footer-nav a{display:inline-flex; color:var(--muted); text-decoration:none;}
.footer .footer-nav a:hover{color:var(--text); text-decoration:none;}
.footer-copy{color:var(--muted);}

@media (max-width:920px){
  .home-featured-project,.about-hero{grid-template-columns:1fr;}
  .home-project-visual{min-height:250px; border-right:0; border-bottom:1px solid var(--line);}
  .about-logo-panel{min-height:270px;}
  .about-logo-panel img{max-width:470px;}
}
@media (max-width:620px){
  .home-hero-card{padding:24px 20px;}
  .home-discover-grid{grid-template-columns:1fr;}
  .home-discover-card{min-height:150px;}
  .home-project-visual{min-height:220px; padding:26px;}
  .home-find-board{width:min(205px,76%); gap:8px;}
  .home-find-board span{border-radius:11px;}
  .footer .footer-nav{gap:8px 14px;}
}


/* ---------- Menu alignment polish v13 ---------- */
/* Draw the submenu chevron geometrically instead of relying on a font glyph.
   This keeps it optically centered at every viewport size. */
.mobile-menu .menu-chevron{
  right:16px;
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0;
  line-height:0;
}

.mobile-menu .menu-chevron::before{
  content:"";
  width:10px;
  height:10px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(-45deg);
  box-sizing:border-box;
}

/* Submenu buttons follow the same centered label alignment as the main menu.
   Their smaller inset group still communicates the hierarchy. */
.mobile-menu .submenu a{
  justify-content:center;
  padding:9px 16px;
  text-align:center;
}
