:root {
  --cyan: #3ee0ff;
  --violet: #8b6cff;
  --magenta: #ff4d8d;
  --amber: #f5b942;
  --teal: #1dbf92;
}

body {
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(139, 108, 255, .16), transparent 55%),
    radial-gradient(800px 380px at 100% 0%, rgba(62, 224, 255, .12), transparent 50%),
    #f4f6fb;
}
h1, h2, h3, .brand-tag, .tenure-bar strong {
  font-family: Syne, Manrope, sans-serif;
  letter-spacing: -.03em;
}

#atmosphere { display: none; }
.cyber-mesh, .header-glow, .brand-tag { display: none !important; }
#main {
  position: relative;
  z-index: 1;
}

.cyber-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(520px 240px at 12% 18%, rgba(62, 224, 255, .28), transparent 62%),
    radial-gradient(480px 260px at 88% 8%, rgba(139, 108, 255, .32), transparent 64%),
    radial-gradient(420px 220px at 72% 88%, rgba(255, 77, 141, .18), transparent 60%),
    radial-gradient(360px 180px at 18% 86%, rgba(245, 185, 66, .16), transparent 62%);
}
.cyber-mesh::before {
  content: "";
  position: absolute;
  inset: -50% -10%;
  background-image:
    linear-gradient(rgba(62, 224, 255, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 108, 255, .14) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(520px) rotateX(62deg);
  animation: meshDrift 28s linear infinite;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 72%, transparent);
}
.cyber-mesh::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), var(--magenta), transparent);
  box-shadow: 0 0 18px rgba(62, 224, 255, .8);
  animation: scanLine 7.5s linear infinite;
  opacity: .75;
}
@keyframes meshDrift {
  from { transform: perspective(520px) rotateX(62deg) translateY(0); }
  to { transform: perspective(520px) rotateX(62deg) translateY(46px); }
}
@keyframes scanLine {
  from { top: -4%; }
  to { top: 108%; }
}

.site-header { overflow: visible; background: #07111f; }
.header-bg {
  background: #07111f !important;
  opacity: 1;
  backdrop-filter: none;
}
.header-inner, .header-line { z-index: 2; }
.header-line {
  background: linear-gradient(90deg, #1dbf92, #3ee0ff, #8b6cff, #ff4d8d, #f5b942) !important;
  opacity: 1 !important;
  height: 3px;
  animation: none;
}
.header-inner { gap: 14px; }
.nav-desktop { overflow: visible; }
.nav-root { gap: 0; }
.nav-item { flex: 0 0 auto; position: relative; }
.nav-link {
  color: #f7fbff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 13.5px;
}
.nav-glyph {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  color: #041018;
  background: linear-gradient(135deg, #1dbf92, #3ee0ff);
  flex: 0 0 auto;
}
.nav-item:nth-child(2) .nav-glyph { background: linear-gradient(135deg, #8b6cff, #ff4d8d); }
.nav-item:nth-child(3) .nav-glyph { background: linear-gradient(135deg, #3ee0ff, #1dbf92); }
.nav-item:nth-child(4) .nav-glyph { background: linear-gradient(135deg, #f5b942, #ff4d8d); }
.nav-item:nth-child(5) .nav-glyph { background: linear-gradient(135deg, #1dbf92, #8b6cff); }
.nav-item:nth-child(6) .nav-glyph { background: linear-gradient(135deg, #ff4d8d, #f5b942); }
.nav-glyph .icon { width: 13px; height: 13px; }
.nav-indicator {
  background: rgba(62, 224, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(62, 224, 255, .45);
}

.btn-primary {
  background: linear-gradient(115deg, var(--teal), var(--cyan) 48%, var(--violet));
  color: #041018;
  box-shadow: 0 10px 28px rgba(62, 224, 255, .22);
}
.btn-primary:hover { filter: saturate(1.15) brightness(1.05); }
.btn-ghost, .hero-arrow { border-color: rgba(62, 224, 255, .7); }

.fx-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.fx-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #3ee0ff, #8b6cff, #1dbf92, transparent);
  box-shadow: 0 0 12px rgba(62, 224, 255, .65);
  animation: scanLine 8s linear infinite;
}
.fx-ring {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  width: 220px;
  height: 220px;
  left: 6%;
  bottom: 10%;
  border-radius: 50%;
  border: 1px dashed rgba(62, 224, 255, .55);
  animation: orbitSpin 22s linear infinite;
}
.fx-ring::before,
.fx-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(139, 108, 255, .45);
}
.fx-ring::before { inset: 28px; animation: orbitSpin 14s linear infinite reverse; }
.fx-ring::after {
  width: 10px;
  height: 10px;
  top: 18px;
  left: 50%;
  background: #3ee0ff;
  box-shadow: 0 0 12px #3ee0ff;
}
.fx-ring-footer { left: auto; right: 4%; bottom: 18%; width: 160px; height: 160px; opacity: .7; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }

.hero {
  background:
    radial-gradient(420px 260px at 82% 42%, rgba(139, 108, 255, .45), transparent 62%),
    linear-gradient(115deg, #071428 0%, #14315f 48%, #0d6a62 100%);
  isolation: isolate;
}
.hero-bg, .hero-shade { display: none; }
.hero .hero-copy {
  align-items: flex-start;
  text-align: left;
  margin-left: max(20px, calc((100% - var(--max)) / 2));
  margin-right: auto;
  width: min(620px, 54%);
}
.hero-art {
  position: absolute;
  z-index: 4;
  right: max(20px, calc((100% - var(--max)) / 2));
  top: 50%;
  width: min(440px, 36vw);
  transform: translateY(-52%);
  border-radius: 28px;
  border: 3px solid rgba(255, 255, 255, .55);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
}
.hero h1 em, .hl {
  background: linear-gradient(100deg, var(--teal), var(--cyan) 40%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-dots button.on {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.tenure-bar {
  position: relative;
  z-index: 1;
  background: #0b1020;
  color: #d5e2f2;
  border-bottom: 1px solid rgba(62, 224, 255, .2);
}
.tenure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 18px 0;
}
.tenure-bar p { margin: 0; }
.tenure-bar strong {
  display: block;
  color: #fff;
  font-size: 16px;
}
.tenure-bar span { display: block; font-size: 13px; color: #9eb0c8; }

.section { background: #fff; }
.section.alt { background: linear-gradient(180deg, #e5fbff, #f7e8ff); }
.color-studio {
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(62, 224, 255, .28), transparent 70%),
    radial-gradient(480px 240px at 100% 100%, rgba(255, 77, 141, .18), transparent 70%),
    linear-gradient(160deg, #f3fbff, #f7f0ff 55%, #fff8ee);
  color: var(--ink);
  padding: 76px 0;
}
.studio-head {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.studio-head h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; }
.studio-head p:last-child { margin: 0; color: #4c5d73; font-size: 16px; }
.studio-stage { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; }
.studio-stage figure { margin: 0; position: relative; border-radius: 24px; overflow: hidden; min-height: 280px; }
.studio-stage img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 320px; }
.studio-apps img { min-height: 320px; }
.studio-stage figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(255, 255, 255, .94);
  color: #07111f;
  border-radius: 16px;
  padding: 12px 14px;
}
.studio-stage figcaption strong { display: block; font-size: 16px; }
.studio-stage figcaption span { display: block; color: #5d6b80; font-size: 13px; }
.studio-services {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.studio-service {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid #e6eef6;
  box-shadow: 0 10px 24px rgba(11, 18, 32, .05);
}
.studio-service img { width: 56px; height: 56px; object-fit: cover; border-radius: 14px; }
.studio-service strong { font-size: 15px; }
.studio-service span { color: #5d6b80; font-size: 13px; line-height: 1.35; }
.studio-service:hover { transform: translateY(-3px); border-color: #8b6cff; }
.cap-art { width: 64px; height: 64px; object-fit: cover; border-radius: 16px; margin-bottom: 12px; }
.partner-card {
  background:
    radial-gradient(400px 160px at 0% 0%, rgba(62, 224, 255, .2), transparent 50%),
    linear-gradient(160deg, #12182c, #0b1020 60%);
  border: 1px solid rgba(139, 108, 255, .35);
}
.cap-card, .list-card, .blog-card, .form-card, .quote {
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(29, 191, 146, .7), rgba(62, 224, 255, .7), rgba(139, 108, 255, .75), rgba(255, 77, 141, .55)) border-box;
}
.cap-card .ico {
  background: linear-gradient(135deg, rgba(62, 224, 255, .18), rgba(139, 108, 255, .18));
  color: #5b3fd6;
}
.story:nth-child(3n + 1) { background: linear-gradient(160deg, #12344a, #241447 70%, #0b1020); }
.story:nth-child(3n + 2) { background: linear-gradient(160deg, #145c4a, #3a2458 72%, #0b1020); }
.story:nth-child(3n) { background: linear-gradient(160deg, #6a3a16, #1e3a5f 70%, #0b1020); }

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #071428, #2a1570 55%, #0c6a62);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(62, 224, 255, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 108, 255, .14) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(500px) rotateX(58deg);
  animation: meshDrift 24s linear infinite;
  opacity: .45;
}
.page-hero-art {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: min(420px, 38vw);
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%);
  mask-image: linear-gradient(90deg, transparent, #000 28%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  background: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.cta-band, .site-footer { position: relative; z-index: 1; overflow: hidden; }
.cta-band {
  background: linear-gradient(120deg, #071428, #3a1578 52%, #0c5c62);
}
.site-footer {
  background: #07111f;
}
.blog-card:nth-child(3n + 1) .blog-thumb { background: url('../images/generated/lunai-photo-lab.jpg') center/cover; }
.blog-card:nth-child(3n + 2) .blog-thumb { background: url('../images/generated/lunai-photo-apps.jpg') center/cover; }
.blog-card:nth-child(3n) .blog-thumb { background: url('../images/generated/lunai-hero-ai.jpg') center/cover; }
.cta-band .container, .site-footer .container, .site-footer .legal { position: relative; z-index: 2; }
.cta-form {
  background: rgba(10, 16, 32, .82);
  border: 1px solid rgba(62, 224, 255, .22);
  box-shadow: 0 0 0 1px rgba(139, 108, 255, .15), 0 20px 50px rgba(0, 0, 0, .28);
}
.seo-service-links a {
  background: #fff;
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, var(--teal), var(--cyan), var(--violet)) border-box;
}

.about-mark {
  background: #fff;
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid #e6ebf2;
}
.about-mark img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 0 auto 14px;
  background: #fff;
}
.about-mark p { margin: 0; color: #5d6b80; }
.about-split { align-items: start; }

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 1280px) {
  .nav-link { padding: 6px 6px; font-size: 13px; }
  .nav-glyph { width: 18px; height: 18px; }
}
@media (max-width: 980px) {
  .hero-art { display: none; }
  .hero .hero-copy { width: min(var(--max), calc(100% - 40px)); align-items: center; text-align: center; margin-left: auto; }
  .studio-head, .studio-stage { grid-template-columns: 1fr; }
  .studio-services { grid-template-columns: repeat(3, 1fr); }
  .page-hero-art { width: 46vw; opacity: .35; }
}
@media (max-width: 900px) {
  .tenure-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 540px; }
  .nav-glyph { display: none; }
}
@media (max-width: 640px) {
  .studio-services { grid-template-columns: 1fr 1fr; }
  .color-studio { padding: 52px 0; }
  .tenure-grid { grid-template-columns: 1fr; gap: 12px; padding: 16px 0; }
  .page-hero { padding: 48px 0 36px; }
  .cyber-mesh::before { background-size: 32px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .cyber-mesh::before, .cyber-mesh::after, .header-glow,
  .fx-scan, .fx-ring, .fx-ring::before, .page-hero::before { animation: none !important; }
}
