:root {
  --bg: #020814;
  --bg-soft: #061426;
  --surface: rgba(8, 20, 36, 0.72);
  --surface-strong: rgba(11, 27, 47, 0.9);
  --surface-light: rgba(255, 255, 255, 0.055);
  --ink: #f7fbff;
  --muted: #a6b4c7;
  --muted-strong: #cfdaeb;
  --line: rgba(105, 161, 238, 0.2);
  --line-strong: rgba(74, 144, 255, 0.48);
  --blue: #2378ff;
  --blue-2: #54b6ff;
  --cyan: #22d3ee;
  --violet: #7755ff;
  --green: #4ade80;
  --amber: #f7c948;
  --radius: 8px;
  --header: 78px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --glow: 0 0 42px rgba(35, 120, 255, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 8%, rgba(34, 116, 255, 0.22), transparent 32rem),
    radial-gradient(circle at 78% 0%, rgba(34, 211, 238, 0.13), transparent 30rem),
    linear-gradient(180deg, #020711 0%, #04101d 44%, #020711 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(86, 162, 255, 0.16) 1px, transparent 1.4px);
  background-position: 0 0;
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  opacity: 0.34;
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 5%, rgba(37, 99, 235, 0.11) 34%, transparent 55%),
    radial-gradient(circle at 90% 65%, rgba(119, 85, 255, 0.12), transparent 24rem);
  animation: ambientSweep 18s ease-in-out infinite alternate;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  font-size: 4.55rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 1.22rem;
}

p {
  color: var(--muted);
}

::selection {
  background: rgba(35, 120, 255, 0.35);
  color: #fff;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  transform: translateY(-170%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #061426;
  color: #fff;
  padding: 0.8rem 1rem;
  font-weight: 850;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: none;
}

.cursor-glow {
  position: fixed;
  z-index: 999;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(36, 130, 255, 0.22), transparent 64%);
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.25s ease;
  mix-blend-mode: screen;
}

body.has-cursor .cursor-glow {
  opacity: 1;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header);
  border-bottom: 1px solid rgba(88, 139, 206, 0.16);
  background: rgba(2, 8, 20, 0.74);
  backdrop-filter: blur(18px);
  transition: height 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  height: 66px;
  background: rgba(2, 8, 20, 0.94);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #fff;
}

.brand-mark {
  display: block;
  width: 174px;
  height: 56px;
  background: url("../images/__logo.png") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  filter: drop-shadow(0 0 18px rgba(36, 130, 255, 0.22));
}

.brand > span:not(.brand-mark) {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-menu a {
  position: relative;
  border-radius: var(--radius);
  color: #d8e5f8;
  padding: 0.62rem 0.78rem;
  font-size: 0.93rem;
  font-weight: 850;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  bottom: -0.85rem;
  left: 0.8rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: #fff;
  background: rgba(59, 130, 246, 0.1);
}

.nav-menu a:hover::after,
.nav-menu a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-resume {
  margin-left: 0.5rem;
  border: 1px solid rgba(61, 132, 255, 0.72);
  background: rgba(17, 43, 78, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.nav-resume:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(35, 120, 255, 0.2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(105, 161, 238, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.065);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 8px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero-section {
  position: relative;
  min-height: 93svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header) + 78px) 0 86px;
  color: #fff;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 73% 27%, rgba(35, 120, 255, 0.23), transparent 22rem),
    radial-gradient(circle at 18% 24%, rgba(34, 211, 238, 0.1), transparent 24rem),
    radial-gradient(circle, rgba(80, 154, 255, 0.16) 1px, transparent 1.5px);
  background-size: auto, auto, 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(87, 166, 255, 0.8), transparent);
  box-shadow: 0 -20px 70px rgba(35, 120, 255, 0.28);
}

.page-hero {
  min-height: auto;
  padding: calc(var(--header) + 62px) 0 72px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
  align-items: center;
  gap: 3.6rem;
}

.hero-copy {
  max-width: 760px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
  border: 1px solid rgba(65, 142, 255, 0.42);
  border-radius: var(--radius);
  background: rgba(17, 48, 90, 0.55);
  color: #aee7ff;
  padding: 0.52rem 0.74rem;
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: inset 0 0 18px rgba(35, 120, 255, 0.13);
}

.status-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.14);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.hero-copy h1 .accent {
  background: linear-gradient(100deg, #78d7ff 0%, #3184ff 45%, #7b61ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(35, 120, 255, 0.18));
}

.hero-lede {
  max-width: 700px;
  margin-top: 1.35rem;
  color: var(--muted-strong);
  font-size: 1.08rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.9rem 1.18rem;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-125%);
  transition: transform 0.55s ease;
}

.btn:hover::before {
  transform: translateX(125%);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, #1e6fff, #2f88ff 48%, #0f5be3);
  color: #fff;
  box-shadow: 0 18px 38px rgba(35, 120, 255, 0.28);
}

.btn-dark {
  border-color: rgba(120, 172, 255, 0.28);
  background: #061426;
  color: #fff;
}

.btn-glass,
.btn-light {
  border-color: rgba(115, 167, 255, 0.34);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.btn-outline {
  border-color: var(--line);
  background: transparent;
  color: #fff;
}

.arrow {
  font-weight: 950;
  transition: transform 0.2s ease;
}

.btn:hover .arrow,
.text-link:hover .arrow {
  transform: translateX(4px);
}

.mini-stats {
  display: grid;
  max-width: 780px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.35rem;
}

.mini-stats div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
}

.mini-stats strong {
  display: block;
  color: #73b8ff;
  font-size: 1.65rem;
  line-height: 1;
  text-shadow: 0 0 24px rgba(35, 120, 255, 0.42);
}

.mini-stats span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted-strong);
  font-size: 0.86rem;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 540px;
  place-items: center;
}

.hero-visual > .project-card {
  width: min(460px, 100%);
}

.orbital-stage {
  position: relative;
  width: min(650px, 100%);
  min-height: 520px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.orbital-stage::before {
  content: "";
  position: absolute;
  inset: 8% 4% 3% 16%;
  z-index: -1;
  border: 1px solid rgba(73, 143, 255, 0.28);
  border-radius: 50%;
  transform: rotate(-12deg);
  box-shadow: inset 0 0 50px rgba(35, 120, 255, 0.12), 0 0 52px rgba(35, 120, 255, 0.2);
  animation: orbitBreath 5.8s ease-in-out infinite;
}

.orbit-line {
  position: absolute;
  z-index: -1;
  border: 1px dashed rgba(66, 152, 255, 0.34);
  border-radius: 50%;
}

.orbit-one {
  width: 96%;
  height: 58%;
  transform: rotate(-16deg);
  animation: orbitSpin 18s linear infinite;
}

.orbit-two {
  width: 70%;
  height: 78%;
  transform: rotate(28deg);
  animation: orbitSpin 24s linear infinite reverse;
}

.hero-banner-card {
  position: relative;
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid rgba(96, 166, 255, 0.44);
  border-radius: var(--radius);
  background: #061426 url("../images/hero.png") 94% center / 168% auto no-repeat;
  box-shadow: 0 30px 95px rgba(0, 0, 0, 0.42), var(--glow);
  transform-style: preserve-3d;
}

.hero-banner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.16) 45%, transparent 62%);
  transform: translateX(-120%);
  animation: scanLine 7s ease-in-out infinite;
}

.hero-banner-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 34%;
  background: linear-gradient(to top, rgba(2, 8, 20, 0.82), transparent);
}

.hero-banner-card img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  opacity: 0;
}

.tech-tile,
.float-badge {
  position: absolute;
  z-index: 4;
  display: grid;
  min-width: 70px;
  min-height: 64px;
  place-items: center;
  border: 1px solid rgba(102, 171, 255, 0.34);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 41, 74, 0.92), rgba(5, 15, 29, 0.9));
  color: #fff;
  padding: 0.72rem 0.78rem;
  font-weight: 950;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 28px rgba(35, 120, 255, 0.22);
  backdrop-filter: blur(18px);
  animation: tileFloat 5.5s ease-in-out infinite;
}

.tech-tile small {
  display: block;
  color: #9ecfff;
  font-size: 0.68rem;
  font-weight: 800;
}

.tile-code {
  top: 9%;
  left: 7%;
}

.tile-js {
  top: 17%;
  right: 1%;
  color: #ffd84d;
  animation-delay: 0.7s;
}

.tile-php {
  bottom: 24%;
  left: 2%;
  color: #bdcaff;
  font-style: italic;
  animation-delay: 1.3s;
}

.tile-db {
  right: 9%;
  bottom: 7%;
  animation-delay: 2s;
}

.portrait-card {
  position: relative;
  width: min(420px, 100%);
  overflow: hidden;
  border: 1px solid rgba(96, 166, 255, 0.38);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 28%, rgba(35, 120, 255, 0.18), transparent 58%),
    rgba(8, 20, 36, 0.82);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34), var(--glow);
  transform-style: preserve-3d;
}

.portrait-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.12) 44%, transparent 62%);
  transform: translateX(-120%);
  animation: scanLine 6s ease-in-out infinite;
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

.portrait-caption {
  position: absolute;
  z-index: 3;
  inset: auto 14px 14px;
  border: 1px solid rgba(115, 167, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(3, 11, 23, 0.82);
  padding: 0.9rem;
  backdrop-filter: blur(16px);
}

.portrait-caption strong,
.portrait-caption span {
  display: block;
}

.portrait-caption span {
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.float-badge {
  min-width: 78px;
}

.badge-a {
  top: 13%;
  left: -7%;
}

.badge-b {
  top: 30%;
  right: -6%;
  animation-delay: 0.8s;
}

.badge-c {
  bottom: 22%;
  left: -4%;
  animation-delay: 1.5s;
}

.badge-d {
  right: 9%;
  bottom: 2%;
  animation-delay: 2.2s;
}

.code-window {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 26px;
  width: min(330px, 82%);
  overflow: hidden;
  border: 1px solid rgba(105, 161, 238, 0.28);
  border-radius: var(--radius);
  background: rgba(3, 11, 23, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(105, 161, 238, 0.18);
  padding: 0.75rem 0.85rem;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b6b;
}

.window-bar span:nth-child(2) {
  background: var(--amber);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.window-bar b {
  margin-left: 0.4rem;
  color: #9eb2ce;
  font-size: 0.82rem;
}

.code-window pre {
  margin: 0;
  padding: 1rem;
  color: #dfeaff;
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.code-window em {
  color: #7ddcff;
  font-style: normal;
}

.code-window strong {
  color: #73aaff;
}

.logo-strip {
  overflow: hidden;
  border-block: 1px solid rgba(105, 161, 238, 0.14);
  background: rgba(3, 11, 23, 0.72);
  color: #fff;
  backdrop-filter: blur(14px);
}

.marquee {
  padding: 1rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0.75rem;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  border: 1px solid rgba(105, 161, 238, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: #cde8ff;
  padding: 0.58rem 0.82rem;
  font-weight: 900;
}

.section {
  position: relative;
  isolation: isolate;
  padding: 6.6rem 0;
}

.section-tight {
  padding: 4.8rem 0;
}

.section-alt,
.section-dark,
.section-cta {
  background: transparent;
}

.section-alt::before,
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 28, 50, 0.32), rgba(2, 8, 20, 0.06));
  border-block: 1px solid rgba(105, 161, 238, 0.08);
}

.section-header {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header.align-start {
  margin-inline: 0;
  text-align: left;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: #58c7ff;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.section-header p {
  margin-top: 1rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
}

.split-center {
  align-items: center;
}

.panel,
.insight-card,
.service-card,
.tool-card,
.process-card,
.contact-card,
.project-card,
.metric-card,
.service-detail,
.contact-form,
.project-case,
.timeline-content {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 29, 49, 0.82), rgba(7, 18, 33, 0.74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 20px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.panel::before,
.insight-card::before,
.service-card::before,
.tool-card::before,
.process-card::before,
.contact-card::before,
.project-card::before,
.metric-card::before,
.service-detail::before,
.contact-form::before,
.project-case::before,
.timeline-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(97, 186, 255, 0.72), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.panel:hover::before,
.insight-card:hover::before,
.service-card:hover::before,
.tool-card:hover::before,
.process-card:hover::before,
.contact-card:hover::before,
.project-card:hover::before,
.metric-card:hover::before,
.service-detail:hover::before,
.contact-form:hover::before,
.project-case:hover::before,
.timeline-content:hover::before {
  opacity: 1;
}

.panel {
  padding: 2rem;
}

.page-map {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}

.page-map a {
  border: 1px solid rgba(105, 161, 238, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: #dcecff;
  padding: 0.58rem 0.72rem;
  font-weight: 850;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-map a:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(35, 120, 255, 0.13);
}

.quick-facts,
.chips,
.tag-list,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.quick-facts {
  margin-top: 1.4rem;
}

.quick-facts span,
.chips span,
.tag,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 900;
}

.quick-facts span,
.chips span,
.tag-list span {
  border: 1px solid rgba(105, 161, 238, 0.22);
  background: rgba(35, 120, 255, 0.1);
  color: #cae8ff;
  padding: 0.5rem 0.68rem;
}

.tag {
  margin-bottom: 0.75rem;
  background: rgba(35, 120, 255, 0.16);
  color: #8fd7ff;
  padding: 0.42rem 0.62rem;
  text-transform: uppercase;
}

.insight-grid,
.service-grid,
.toolbox-grid,
.process-grid,
.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card-grid {
  grid-template-columns: 1fr;
}

.insight-card,
.service-card,
.tool-card,
.process-card,
.contact-card,
.metric-card,
.service-detail {
  padding: 1.35rem;
}

.card-number,
.service-card b,
.process-card b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(87, 158, 255, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(36, 130, 255, 0.28), rgba(119, 85, 255, 0.13));
  color: #8ed8ff;
  font-weight: 950;
  box-shadow: inset 0 0 18px rgba(35, 120, 255, 0.14);
}

.insight-card h3,
.service-card h3,
.tool-card h3,
.process-card h3,
.contact-card h3,
.service-detail h3,
.project-body h3,
.project-case-body h3 {
  margin-bottom: 0.65rem;
  color: #fff;
}

.service-card,
.project-card,
.contact-card,
.tool-card,
.service-detail,
.process-card,
.insight-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover,
.project-card:hover,
.contact-card:hover,
.tool-card:hover,
.service-detail:hover,
.process-card:hover,
.insight-card:hover {
  transform: translateY(-7px);
  border-color: rgba(73, 153, 255, 0.62);
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.26), 0 0 42px rgba(35, 120, 255, 0.15);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.project-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.project-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid rgba(105, 161, 238, 0.14);
  background: #061426;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.project-card:hover img,
.project-case:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.045);
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem;
}

.project-body p {
  margin: 0.72rem 0 1rem;
}

.project-body .text-link {
  margin-top: auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: #61c8ff;
  font-weight: 950;
}

.feature-list,
.check-list,
.detail-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.check-list li,
.detail-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--muted);
}

.feature-list li::before,
.check-list li::before,
.detail-list li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 0 5px rgba(84, 182, 255, 0.12);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 20px;
  width: 2px;
  background: linear-gradient(var(--blue), var(--cyan), var(--violet));
  box-shadow: 0 0 22px rgba(35, 120, 255, 0.32);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1rem;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(105, 161, 238, 0.28);
  border-radius: 50%;
  background: #07182c;
  color: #9ddaff;
  font-weight: 950;
  box-shadow: 0 0 24px rgba(35, 120, 255, 0.2);
}

.timeline-content {
  padding: 1.1rem;
}

.timeline-content time {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: #71cfff;
  font-weight: 900;
}

.stack-cloud {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
}

.skill-pill {
  display: grid;
  min-height: 96px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 29, 49, 0.86), rgba(7, 18, 33, 0.78));
  color: #fff;
  padding: 0.8rem;
  text-align: center;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.skill-pill small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-weight: 750;
}

.skill-pill:hover {
  transform: translateY(-5px);
  border-color: rgba(73, 153, 255, 0.6);
  box-shadow: 0 18px 45px rgba(35, 120, 255, 0.13);
}

.project-case-list {
  display: grid;
  gap: 1.3rem;
}

.project-case {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
}

.project-case-media {
  overflow: hidden;
  min-height: 320px;
  background: #061426;
}

.project-case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.project-case-body {
  padding: 2rem;
}

.project-case-body p {
  margin-top: 0.85rem;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.project-meta-grid div {
  border: 1px solid rgba(105, 161, 238, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  padding: 0.85rem;
}

.project-meta-grid strong {
  display: block;
  color: #fff;
  font-size: 0.85rem;
}

.project-meta-grid span {
  color: var(--muted);
  font-size: 0.88rem;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-detail h3 {
  margin-bottom: 0.75rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 1.3rem;
  align-items: start;
}

.contact-card a {
  display: inline-flex;
  margin-top: 0.4rem;
  color: #62caff;
  font-weight: 900;
}

.contact-card span {
  color: var(--muted-strong);
}

.contact-form {
  padding: 1.6rem;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #e7f1ff;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(105, 161, 238, 0.22);
  border-radius: var(--radius);
  background: rgba(2, 8, 20, 0.66);
  color: #fff;
  padding: 0.88rem 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7f90aa;
}

.field select option {
  color: #07111f;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(72, 158, 255, 0.85);
  background: rgba(3, 13, 25, 0.92);
  box-shadow: 0 0 0 4px rgba(35, 120, 255, 0.16);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.12);
}

.form-status {
  min-height: 1.5rem;
  margin-top: 1rem;
  color: var(--muted);
  font-weight: 800;
}

.contact-form .btn {
  margin-top: 1rem;
}

.section-cta {
  padding-top: 0;
}

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  border: 1px solid rgba(73, 153, 255, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, rgba(35, 120, 255, 0.22), transparent 44%),
    linear-gradient(180deg, rgba(12, 31, 56, 0.9), rgba(5, 17, 32, 0.86));
  color: #fff;
  padding: 2.4rem;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28), var(--glow);
}

.cta-panel::after {
  content: "";
  position: absolute;
  right: 2rem;
  bottom: 1.2rem;
  width: 180px;
  height: 80px;
  border-bottom: 1px dashed rgba(103, 184, 255, 0.4);
  border-radius: 50%;
  transform: rotate(-8deg);
  opacity: 0.62;
}

.cta-panel h2 {
  color: #fff;
}

.cta-panel p {
  color: #cbd8ea;
}

.site-footer {
  position: relative;
  padding: 4.5rem 0 1.4rem;
  border-top: 1px solid rgba(105, 161, 238, 0.14);
  background: rgba(2, 8, 20, 0.9);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.9fr 0.9fr;
  gap: 2rem;
}

.site-footer h2 {
  margin-bottom: 1rem;
  color: #5bcfff;
  font-size: 1rem;
}

.site-footer a,
.site-footer span {
  display: block;
  margin: 0.45rem 0;
  color: #c3d1e5;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer p {
  margin-top: 1rem;
  color: #9caac0;
}

.footer-brand {
  margin-bottom: 1rem;
}

.copyright {
  width: min(1180px, calc(100% - 40px));
  margin: 2.3rem auto 0 !important;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(105, 161, 238, 0.12);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.78s ease, transform 0.78s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.from-left {
  transform: translateX(-34px);
}

.reveal.from-right {
  transform: translateX(34px);
}

.reveal.zoom-in {
  transform: scale(0.96);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes ambientSweep {
  from {
    transform: translate3d(-1%, -1%, 0);
    opacity: 0.74;
  }
  to {
    transform: translate3d(1%, 1%, 0);
    opacity: 1;
  }
}

@keyframes tileFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes orbitBreath {
  0%,
  100% {
    opacity: 0.8;
    transform: rotate(-12deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: rotate(-12deg) scale(1.025);
  }
}

@keyframes orbitSpin {
  to {
    transform: rotate(344deg);
  }
}

@keyframes scanLine {
  0%,
  45% {
    transform: translateX(-120%);
  }
  65%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.14);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(74, 222, 128, 0.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  h1 {
    font-size: 3.8rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .hero-grid,
  .split,
  .contact-layout,
  .project-case {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 500px;
  }

  .orbital-stage {
    min-height: 500px;
  }

  .insight-grid,
  .service-grid,
  .toolbox-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stack-cloud {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .project-case-media {
    min-height: 260px;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: var(--header) 20px auto;
    display: grid;
    gap: 0.45rem;
    border: 1px solid rgba(105, 161, 238, 0.18);
    border-radius: var(--radius);
    background: rgba(2, 8, 20, 0.98);
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-menu a::after {
    bottom: 0.35rem;
  }

  .nav-resume {
    margin-left: 0;
    text-align: center;
  }

  .project-grid,
  .service-detail-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-section,
  .page-hero {
    padding-top: calc(var(--header) + 44px);
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .hero-visual,
  .orbital-stage {
    min-height: auto;
  }

  .orbital-stage {
    width: 100%;
  }

  .orbit-line,
  .orbital-stage::before,
  .tech-tile {
    display: none;
  }

  .hero-banner-card img {
    aspect-ratio: 1.18 / 1;
  }

  .code-window {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 1rem;
  }

  .float-badge {
    display: none;
  }

  .mini-stats,
  .project-grid,
  .insight-grid,
  .service-grid,
  .toolbox-grid,
  .process-grid,
  .service-detail-grid,
  .stack-cloud,
  .project-meta-grid,
  .input-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 5rem 0;
  }

  .section-tight {
    padding: 3.8rem 0;
  }

  .panel,
  .project-case-body,
  .contact-form,
  .cta-panel {
    padding: 1.25rem;
  }

  .brand-mark {
    width: 136px;
    height: 46px;
  }

  .site-header.is-scrolled {
    height: 64px;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 2.32rem;
  }

  .hero-actions,
  .cta-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }
}
