:root {
  --bg: #05070c;
  --bg-soft: #090d15;
  --panel: rgba(12, 18, 29, 0.78);
  --panel-strong: #0d1420;
  --text: #f5f8ff;
  --muted: #a7b0c0;
  --line: rgba(255, 255, 255, 0.09);
  --blue: #3da7ff;
  --blue-2: #7ec9ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 22px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% -10%, rgba(34, 123, 255, 0.14), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(61, 167, 255, 0.3); }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section { padding: 92px 0; position: relative; }

.page-glow {
  position: fixed;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .08;
  pointer-events: none;
  z-index: -1;
}
.page-glow-a { background: #238fff; top: 8%; right: -180px; }
.page-glow-b { background: #4466ff; bottom: 3%; left: -220px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(16px);
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled {
  border-color: var(--line);
  background: rgba(5, 7, 12, 0.9);
}

.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: .84rem; letter-spacing: .14em; font-weight: 600; white-space: nowrap; }
.brand strong { color: var(--blue); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; border: 1px solid rgba(126,201,255,.32); box-shadow: 0 0 24px rgba(61,167,255,.16); animation: brandLogoLoop 6.5s ease-in-out infinite; transform-origin: 50% 55%; will-change: transform, filter, box-shadow; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .92rem; color: #c3cada; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: white; }
.nav-cta { border: 1px solid var(--line); padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.03); }
.menu-button { display: none; background: transparent; border: 0; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-button span { width: 20px; height: 2px; background: #e8edf7; border-radius: 2px; transition: .2s ease; }

.hero { padding-top: 78px; padding-bottom: 70px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 72px; }
.eyebrow, .kicker { font-size: .74rem; letter-spacing: .2em; font-weight: 700; color: var(--blue-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px rgba(61,167,255,.08), 0 0 18px rgba(61,167,255,.9); }
.hero h1 { margin: 0; font-size: clamp(3rem, 6.5vw, 5.9rem); line-height: .98; letter-spacing: -.055em; max-width: 760px; }
.hero h1 span { color: #88cfff; }
.hero-text { max-width: 640px; margin: 26px 0 0; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 13px; font-weight: 700; font-size: .92rem; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, #75c8ff, #268cf7); color: #03111d; box-shadow: 0 12px 34px rgba(38,140,247,.25); }
.button-primary:hover { box-shadow: 0 16px 40px rgba(38,140,247,.34); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.035); color: white; }
.button-large { min-height: 54px; padding: 0 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 30px; color: #8290a3; font-size: .8rem; text-transform: uppercase; letter-spacing: .11em; }
.hero-meta span::before { content: "•"; color: var(--blue); margin-right: 8px; }


.hero-visual { display: flex; justify-content: center; }
.logo-shell {
  position: relative;
  width: min(100%, 510px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.logo-shell::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,167,255,.34), rgba(61,167,255,.10) 42%, transparent 70%);
  filter: blur(20px);
  animation: logoAuraV7 4.2s ease-in-out infinite;
  z-index: 0;
}
.logo-shell::after {
  content: "";
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  z-index: 4;
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 58%, rgba(126,201,255,.18) 67%, #a9ddff 74%, rgba(61,167,255,.55) 79%, transparent 88% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: logoRingV7 6.8s linear infinite;
  filter: drop-shadow(0 0 7px rgba(61,167,255,.55));
}
.logo-shell img {
  width: 90%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(126,201,255,.34), 0 30px 80px rgba(0,0,0,.55), 0 0 58px rgba(61,167,255,.18);
  animation: heroLogoV7 4.8s ease-in-out infinite;
  transform-origin: center;
  will-change: transform, filter, box-shadow;
}
.orbit {
  position: absolute;
  border: 1px solid rgba(126,201,255,.18);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.orbit::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #c8eaff;
  box-shadow: 0 0 8px #8dd2ff, 0 0 18px rgba(61,167,255,.95), 0 0 30px rgba(61,167,255,.45);
}
.orbit-one { inset: 0; animation: orbitV7 11s linear infinite; }
.orbit-two { inset: 9%; animation: orbitV7 7.5s linear infinite reverse; opacity: .65; }
.orbit-two::before { width: 5px; height: 5px; top: -3px; opacity: .85; }

@keyframes orbitV7 { to { transform: rotate(360deg); } }
@keyframes logoRingV7 { to { transform: rotate(360deg); } }
@keyframes heroLogoV7 {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    filter: brightness(1) saturate(1);
    box-shadow: 0 0 0 1px rgba(126,201,255,.34), 0 30px 80px rgba(0,0,0,.55), 0 0 54px rgba(61,167,255,.16);
  }
  35% {
    transform: translateY(-9px) rotate(-.8deg) scale(1.015);
    filter: brightness(1.055) saturate(1.06);
  }
  65% {
    transform: translateY(-4px) rotate(.55deg) scale(1.025);
    filter: brightness(1.09) saturate(1.10);
    box-shadow: 0 0 0 1px rgba(174,225,255,.44), 0 35px 88px rgba(0,0,0,.52), 0 0 82px rgba(61,167,255,.30);
  }
}
@keyframes logoAuraV7 {
  0%, 100% { transform: scale(.92); opacity: .42; }
  50% { transform: scale(1.10); opacity: .96; }
}
@keyframes logoGlowReducedV7 {
  0%, 100% { filter: brightness(1); box-shadow: 0 0 0 1px rgba(126,201,255,.30), 0 26px 70px rgba(0,0,0,.52), 0 0 38px rgba(61,167,255,.12); }
  50% { filter: brightness(1.06); box-shadow: 0 0 0 1px rgba(174,225,255,.42), 0 26px 70px rgba(0,0,0,.52), 0 0 68px rgba(61,167,255,.28); }
}

.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: end; margin-bottom: 34px; }
.section-heading h2, .about-copy h2, .contact-card h2 { margin: 8px 0 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.04em; }
.section-heading p, .about-copy p, .contact-card p { color: var(--muted); margin: 0; max-width: 580px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)); min-height: 250px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(126,201,255,.24); background: linear-gradient(180deg, rgba(61,167,255,.07), rgba(255,255,255,.018)); }
.icon-box { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(126,201,255,.2); background: rgba(61,167,255,.07); border-radius: 13px; margin-bottom: 48px; }
.icon-box svg { width: 23px; fill: none; stroke: var(--blue-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 8px; font-size: 1.18rem; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; }

.projects-section { background: linear-gradient(180deg, transparent, rgba(38,140,247,.03), transparent); }
.empty-project { min-height: 176px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 28px; border: 1px dashed rgba(126,201,255,.24); border-radius: var(--radius); background: rgba(255,255,255,.018); }
.empty-project-mark { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 2rem; font-weight: 200; color: var(--blue); background: rgba(61,167,255,.08); border: 1px solid rgba(126,201,255,.18); }
.empty-project h3 { margin: 0 0 4px; }
.empty-project p { margin: 0; color: var(--muted); }
.text-link { font-size: .9rem; color: #b9dfff; white-space: nowrap; }
.text-link span { margin-left: 5px; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 76px; align-items: start; }
.about-copy p { margin-top: 24px; }
.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.principles > div { display: grid; grid-template-columns: 56px 160px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.principles span { color: var(--blue); font-size: .8rem; font-weight: 700; letter-spacing: .1em; }
.principles strong { font-size: .96rem; }
.principles p { margin: 0; color: var(--muted); font-size: .9rem; }

.contact-section { padding-top: 60px; }
.contact-card { display: flex; justify-content: space-between; align-items: center; gap: 34px; padding: 38px; border: 1px solid rgba(126,201,255,.2); background: linear-gradient(135deg, rgba(61,167,255,.09), rgba(255,255,255,.025)); border-radius: 28px; box-shadow: var(--shadow); }
.contact-card p { margin-top: 12px; }

.site-footer { padding: 28px 0 38px; }
.footer-wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 26px; color: #7f8a9b; font-size: .82rem; }
.footer-wrap p { margin: 0; text-align: center; }
.brand-footer { font-size: .72rem; color: #cdd5e1; }
.brand-footer .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
.back-to-top { justify-self: end; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 8px; }

/* Tablet */
@media (max-width: 900px) {
  .section { padding: 62px 0; }
  .hero { padding-top: 46px; padding-bottom: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .logo-shell { width: min(64vw, 360px); }
  .section-heading, .about-grid { grid-template-columns: 1fr; gap: 18px; }
  .service-grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .icon-box { margin-bottom: 24px; }
  .principles > div { grid-template-columns: 48px 138px 1fr; }
  .contact-card { flex-direction: column; align-items: flex-start; }
}

/* Mobile — intentionally denser than desktop */
@media (max-width: 700px) {
  body { line-height: 1.5; }
  .container { width: calc(100% - 32px); }
  .page-glow { opacity: .05; }

  .nav-wrap { height: 58px; gap: 12px; }
  .brand { gap: 9px; font-size: .72rem; letter-spacing: .12em; }
  .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .menu-button { display: flex; width: 42px; height: 42px; }
  .site-nav {
    position: absolute;
    top: calc(100% + 7px);
    left: 12px;
    right: 12px;
    display: grid;
    gap: 2px;
    background: rgba(9, 13, 21, .985);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 18px 45px rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px);
    transition: .2s ease;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a { padding: 11px 12px; border-radius: 10px; font-size: .88rem; }
  .site-nav a:hover { background: rgba(255,255,255,.04); }
  .nav-cta { border: 0; background: rgba(61,167,255,.09); color: #cfeaff; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 42px 0; }
  .hero { padding-top: 26px; padding-bottom: 34px; }
  .hero-grid { gap: 24px; }
  .hero-copy { text-align: left; }
  .eyebrow { margin-bottom: 14px; font-size: .66rem; gap: 8px; }
  .status-dot { width: 6px; height: 6px; box-shadow: 0 0 0 5px rgba(61,167,255,.07), 0 0 14px rgba(61,167,255,.75); }
  .hero h1 { font-size: clamp(2.25rem, 10.6vw, 3.15rem); line-height: 1.02; letter-spacing: -.045em; }
  .hero h1 br { display: none; }
  .hero-text { margin: 16px 0 0; font-size: .91rem; line-height: 1.58; max-width: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }
  .button { min-height: 44px; padding: 0 11px; border-radius: 11px; font-size: .8rem; }
  .hero-meta { display: none; }
  .hero-visual { margin-top: 0; }
  .logo-shell { width: min(56vw, 210px); }
  .logo-shell img { width: 88%; box-shadow: 0 0 0 1px rgba(126,201,255,.24), 0 18px 50px rgba(0,0,0,.5), 0 0 38px rgba(61,167,255,.12); }

  .brand-mark { animation-duration: 7.5s; }
  .logo-shell img { animation-duration: 6.6s; }
  .logo-shell::after { animation-duration: 10s; opacity: .58; }
  .orbit-one { inset: 3%; }
  .orbit-two { inset: 12%; }

  .section-heading { gap: 10px; margin-bottom: 20px; }
  .section-heading h2, .about-copy h2, .contact-card h2 { margin-top: 6px; font-size: clamp(1.72rem, 8vw, 2.05rem); line-height: 1.08; letter-spacing: -.035em; }
  .section-heading p, .about-copy p, .contact-card p { font-size: .88rem; line-height: 1.55; }
  .kicker { font-size: .64rem; letter-spacing: .18em; }

  .service-grid { gap: 10px; }
  .card {
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    column-gap: 13px;
    row-gap: 4px;
    align-items: start;
    padding: 17px;
    border-radius: 16px;
  }
  .card:hover { transform: none; }
  .icon-box { grid-row: 1 / span 2; width: 42px; height: 42px; margin: 0; border-radius: 12px; }
  .icon-box svg { width: 21px; }
  .card h3 { margin: 1px 0 0; font-size: 1rem; line-height: 1.25; }
  .card p { margin: 0; font-size: .82rem; line-height: 1.5; }

  .empty-project { min-height: 0; grid-template-columns: 42px 1fr; padding: 17px; gap: 13px; border-radius: 16px; }
  .empty-project-mark { width: 42px; height: 42px; border-radius: 12px; font-size: 1.45rem; }
  .empty-project h3 { margin-top: 0; font-size: .96rem; }
  .empty-project p { font-size: .82rem; line-height: 1.45; }
  .empty-project .text-link { grid-column: 2; padding-top: 2px; font-size: .8rem; }

  .about-grid { gap: 24px; }
  .about-copy p { margin-top: 15px; }
  .principles > div { grid-template-columns: 34px 1fr; gap: 6px 10px; padding: 15px 0; }
  .principles > div p { grid-column: 2; font-size: .82rem; line-height: 1.5; }
  .principles span { font-size: .7rem; }
  .principles strong { font-size: .9rem; }

  .contact-section { padding-top: 34px; }
  .contact-card { gap: 18px; padding: 20px; border-radius: 18px; }
  .contact-card p { margin-top: 9px; }
  .contact-card .button { width: 100%; min-height: 46px; }

  .site-footer { padding: 18px 0 24px; }
  .footer-wrap { grid-template-columns: 1fr auto; gap: 12px; padding-top: 18px; font-size: .74rem; }
  .footer-wrap p { grid-column: 1 / -1; grid-row: 2; text-align: left; line-height: 1.5; }
  .brand-footer { font-size: .66rem; }
  .brand-footer .brand-mark { width: 27px; height: 27px; }
}

@media (max-width: 430px) {
  .container { width: calc(100% - 26px); }
  .hero h1 { font-size: clamp(2.08rem, 10.8vw, 2.65rem); }
  .hero-actions { grid-template-columns: 1fr; }
  .button { min-height: 43px; }
  .logo-shell { width: min(52vw, 185px); }
  .section { padding: 38px 0; }
  .section-heading h2, .about-copy h2, .contact-card h2 { font-size: 1.72rem; }
  .back-to-top { font-size: 0; }
  .back-to-top::after { content: "↑"; font-size: 1rem; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 22px); }
  .brand { font-size: .68rem; }
  .hero { padding-top: 22px; }
  .hero h1 { font-size: 1.98rem; }
  .hero-text { font-size: .87rem; }
  .logo-shell { width: 168px; }
  .card, .empty-project { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }

  /* Respect reduced-motion: no floating/rotating movement, but keep a soft logo pulse. */
  .orbit-one, .orbit-two, .logo-shell::after { animation: none !important; }
  .orbit::before { display: none; }
  .logo-shell img { animation: logoGlowReducedV7 4.2s ease-in-out infinite !important; transform: none !important; }
  .logo-shell::before { animation: none !important; opacity: .72; }
  .brand-mark { animation: none !important; }

  .button, .card, .site-nav a, .menu-button span { transition-duration: .001ms !important; }
}
