/* Design tokens: change colors, spacing width, and theme rail values here first. */
:root {
  color-scheme: dark;
  --bg: #06070a;
  --surface: rgba(255, 255, 255, 0.065);
  --surface-strong: rgba(255, 255, 255, 0.11);
  --text: #f7f8fb;
  --muted: #a9afbd;
  --line: rgba(255, 255, 255, 0.13);
  --blue: #67d4ff;
  --green: #80f2b1;
  --coral: #ff9478;
  --yellow: #f3d775;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --max: 1160px;
  --theme-toggle-x: 18%;
  --theme-position: var(--theme-toggle-x);
  --theme-rail-bg: rgba(6, 7, 10, 0.44);
  --theme-tick: rgba(128, 242, 177, 0.82);
  --theme-knob-bg: #9be8d2;
  --theme-knob-icon: #193c35;
}

/* Project catalog: two-column cards with a media-first hierarchy. */
.projects-catalog {
  padding-top: 88px;
  padding-bottom: 112px;
}

.projects-catalog-heading {
  max-width: 740px;
  margin: 0 auto 52px;
  text-align: center;
}

.projects-catalog-heading h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 0.98;
}

.projects-catalog-heading > p:last-child {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.projects-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.catalog-project-card {
  display: block;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.catalog-project-card:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.catalog-project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(128, 242, 177, 0.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.catalog-project-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  background: #10151d;
}

.catalog-project-media > img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 300ms ease;
}

.catalog-project-card:hover .catalog-project-media > img {
  transform: scale(1.025);
}

.catalog-project-nyce {
  background: radial-gradient(circle at 50% 0%, rgba(0, 151, 136, 0.2), transparent 58%), #111820;
}

.catalog-project-nyce img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.catalog-project-megabyte {
  gap: 20px;
  background: radial-gradient(circle at 50% 42%, rgba(66, 153, 225, 0.2), transparent 52%), linear-gradient(145deg, #111823, #0d1118);
}

.catalog-project-megabyte img {
  width: min(330px, 70%);
}

.catalog-project-megabyte > span {
  padding: 8px 13px;
  border: 1px solid rgba(103, 212, 255, 0.24);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.catalog-project-commerce {
  background: radial-gradient(circle at 70% 20%, rgba(243, 215, 117, 0.18), transparent 42%), linear-gradient(145deg, #16140f, #0c1016);
}

.catalog-store-window {
  width: min(390px, 82%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(247, 248, 251, 0.94);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
}

.catalog-store-top {
  display: flex;
  gap: 5px;
  padding: 9px 12px;
  background: #e7ebef;
}

.catalog-store-top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aeb6bf;
}

.catalog-store-content {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  padding: 28px;
}

.catalog-product-image {
  min-height: 125px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f3d775, #ff9478);
}

.catalog-product-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}

.catalog-product-copy i {
  height: 9px;
  border-radius: 999px;
  background: #cbd2d9;
}

.catalog-product-copy i:nth-child(2) {
  width: 68%;
}

.catalog-product-copy b {
  align-self: flex-start;
  margin-top: 8px;
  padding: 9px 18px;
  border-radius: 7px;
  background: #15202c;
  color: #fff;
  font-size: 0.72rem;
}

.catalog-commerce-stat {
  position: absolute;
  right: 30px;
  bottom: 24px;
  display: grid;
  padding: 12px 16px;
  border: 1px solid rgba(243, 215, 117, 0.25);
  border-radius: 12px;
  background: rgba(10, 13, 18, 0.9);
  color: var(--yellow);
}

.catalog-commerce-stat small {
  color: var(--muted);
}

.catalog-commerce-stat strong {
  font-size: 1.35rem;
}

.catalog-project-andev {
  grid-template-columns: auto auto;
  align-content: center;
  gap: 20px;
  background: radial-gradient(circle at 50% 40%, rgba(128, 242, 177, 0.18), transparent 45%), #0d1516;
}

.catalog-project-andev img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.catalog-project-andev div {
  display: grid;
  gap: 5px;
}

.catalog-project-andev strong {
  font-size: 2rem;
}

.catalog-project-andev span {
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-project-game {
  background: radial-gradient(circle at 50% 70%, rgba(103, 212, 255, 0.19), transparent 48%), linear-gradient(180deg, #0b1120, #070910);
}

.catalog-star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #fff;
}

.catalog-star.star-a { top: 20%; left: 18%; }
.catalog-star.star-b { top: 34%; right: 23%; }
.catalog-star.star-c { right: 42%; bottom: 18%; }

.catalog-game-enemy {
  position: absolute;
  width: 44px;
  height: 28px;
  clip-path: polygon(50% 0, 100% 36%, 82% 100%, 50% 72%, 18% 100%, 0 36%);
  background: var(--coral);
  filter: drop-shadow(0 0 11px rgba(255, 148, 120, 0.65));
}

.catalog-game-enemy.enemy-a { top: 22%; left: 30%; }
.catalog-game-enemy.enemy-b { top: 31%; right: 28%; transform: scale(0.72); }

.catalog-game-ship {
  width: 86px;
  height: 104px;
  clip-path: polygon(50% 0, 82% 70%, 100% 100%, 52% 84%, 0 100%, 18% 70%);
  background: linear-gradient(90deg, #67d4ff, #f7f8fb 48%, #80f2b1);
  filter: drop-shadow(0 0 18px rgba(103, 212, 255, 0.7));
}

.catalog-game-score {
  position: absolute;
  top: 24px;
  left: 26px;
  display: grid;
  color: var(--green);
}

.catalog-game-score small {
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.catalog-game-score strong {
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.catalog-project-body {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 30px;
}

.catalog-project-type {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  margin-bottom: 18px;
  padding: 7px 11px;
  border: 1px solid rgba(103, 212, 255, 0.22);
  border-radius: 999px;
  background: rgba(103, 212, 255, 0.08);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
}

.catalog-project-body h2 {
  margin-bottom: 13px;
  font-size: 1.55rem;
  line-height: 1.16;
}

.catalog-project-body > p {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.catalog-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 26px;
}

.catalog-tech-list span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.catalog-project-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: var(--green);
  font-weight: 850;
}

.catalog-project-link .fi {
  transition: transform 180ms ease;
}

.catalog-project-link:hover .fi {
  transform: translateX(4px);
}

body[data-theme="light"] .catalog-project-card {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 22px 60px rgba(52, 46, 38, 0.12);
}

body[data-theme="light"] .projects-catalog-heading > p:last-child,
body[data-theme="light"] .catalog-project-body > p {
  color: #435a56;
}

body[data-theme="light"] .catalog-tech-list span {
  border-color: rgba(0, 107, 92, 0.18);
  color: #435a56;
}

@media (max-width: 820px) {
  .projects-catalog {
    padding-top: 62px;
    padding-bottom: 82px;
  }

  .projects-catalog-heading {
    margin-bottom: 36px;
  }

  .projects-catalog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-project-body {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .projects-catalog-heading h1 {
    font-size: 2.5rem;
  }

  .catalog-project-media {
    padding: 18px;
  }

  .catalog-project-body {
    padding: 24px 21px;
  }

  .catalog-project-andev {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  .catalog-project-andev img {
    width: 88px;
    height: 88px;
  }

  .catalog-commerce-stat {
    right: 16px;
    bottom: 14px;
  }
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #ece5dc;
  --surface: rgba(6, 49, 46, 0.07);
  --surface-strong: rgba(6, 95, 83, 0.12);
  --text: #12312f;
  --muted: #526a67;
  --line: rgba(6, 49, 46, 0.16);
  --blue: #087e9b;
  --green: #006b5c;
  --coral: #a9503b;
  --yellow: #a98413;
  --shadow: 0 24px 70px rgba(52, 46, 38, 0.18);
  --theme-toggle-x: 82%;
  --theme-position: var(--theme-toggle-x);
  --theme-rail-bg: rgba(236, 229, 220, 0.72);
  --theme-tick: rgba(0, 107, 92, 0.72);
  --theme-knob-bg: #006b5c;
  --theme-knob-icon: #f1e8dd;
}

/* Base reset and page background. */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(103, 212, 255, 0.13), transparent 31rem),
    radial-gradient(circle at 90% 15%, rgba(128, 242, 177, 0.12), transparent 26rem),
    linear-gradient(135deg, #06070a 0%, #0d1017 44%, #08090d 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  transition: background 420ms ease, color 320ms ease;
}

body[data-theme="light"] {
  background:
    radial-gradient(circle at top left, rgba(0, 107, 92, 0.12), transparent 30rem),
    radial-gradient(circle at 90% 18%, rgba(8, 126, 155, 0.12), transparent 24rem),
    linear-gradient(135deg, #eee7dd 0%, #f8f4ee 48%, #e8dfd4 100%);
}

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

.fi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#ambientCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.34;
  pointer-events: none;
}

body[data-theme="light"] #ambientCanvas {
  opacity: 0.18;
}

/* Header, brand, and main navigation. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  padding: 12px 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand,
.header-action {
  border: 1px solid var(--line);
  background: rgba(6, 7, 10, 0.76);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

body[data-theme="light"] .brand,
body[data-theme="light"] .header-action,
body[data-theme="light"] .menu-toggle {
  background: rgba(248, 244, 238, 0.76);
  box-shadow: 0 12px 34px rgba(52, 46, 38, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(103, 212, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(103, 212, 255, 0.2);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 11;
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: calc(100% - 360px);
  overflow-x: auto;
  padding: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: translateX(-50%);
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 7, 10, 0.76);
  color: var(--text);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.menu-icon {
  position: relative;
  width: 18px;
  height: 12px;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, top 180ms ease;
}

.menu-icon::before {
  top: 1px;
}

.menu-icon::after {
  top: 9px;
}

.site-header.is-open .menu-icon::before {
  top: 5px;
  transform: rotate(45deg);
}

.site-header.is-open .menu-icon::after {
  top: 5px;
  transform: rotate(-45deg);
}

.nav a,
.header-action {
  min-height: 38px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav a {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  white-space: nowrap;
}

.nav a:hover,
.header-action:hover {
  color: var(--text);
  background: var(--surface-strong);
}

.nav a:hover {
  background: transparent;
}

.nav a[aria-current="page"] {
  color: var(--green);
  background: transparent;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
}

/* Footer theme switch inspired by a draggable rail. */
.theme-rail {
  position: relative;
  width: min(520px, 100%);
  height: 92px;
  pointer-events: auto;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  --theme-position: var(--theme-toggle-x);
}

.theme-track {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  border-radius: 999px;
  opacity: 0.72;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  transition: opacity 220ms ease, filter 220ms ease;
}

.theme-rail:hover .theme-track,
.theme-rail.is-dragging .theme-track {
  opacity: 1;
  filter: drop-shadow(0 0 14px rgba(128, 242, 177, 0.26));
}

.theme-track span {
  display: block;
  width: 2px;
  height: calc(var(--tick-height, 18) * 1px);
  border-radius: 999px;
  background: var(--theme-tick);
  opacity: 0.62;
  transform-origin: center;
  transform: scaleY(var(--tick-scale, 1));
  transition: height 110ms ease, opacity 140ms ease, transform 140ms ease, background 220ms ease;
}

.theme-track::before {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 107, 92, 0.16), transparent);
}

.theme-toggle {
  position: absolute;
  left: var(--theme-position);
  top: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--theme-knob-bg);
  color: var(--theme-knob-icon);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18), 0 0 0 8px color-mix(in srgb, var(--theme-knob-bg) 18%, transparent);
  cursor: grab;
  pointer-events: auto;
  transform: translateX(-50%);
  transition: left 520ms cubic-bezier(0.22, 1, 0.36, 1), background 260ms ease, color 260ms ease, box-shadow 260ms ease, transform 180ms ease;
}

.theme-toggle:active,
.theme-rail.is-dragging .theme-toggle {
  cursor: grabbing;
  transform: translateX(-50%) scale(1.08);
  transition-duration: 80ms, 180ms, 180ms, 180ms, 80ms;
}

.theme-rail.is-dragging .theme-toggle {
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 80ms ease;
}

.theme-rail.is-settling .theme-toggle {
  transition: left 460ms cubic-bezier(0.2, 1.4, 0.38, 1), background 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 180ms ease;
}

.theme-toggle::after {
  content: "";
  position: absolute;
  top: 56px;
  width: 2px;
  height: 38px;
  border-radius: 999px;
  background: var(--theme-tick);
}

.theme-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  pointer-events: none;
  user-select: none;
}

.theme-icon {
  position: absolute;
  width: 28px;
  height: 28px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0;
  transform: scale(0.72) rotate(-16deg);
  transition: opacity 220ms ease, transform 260ms ease;
}

body[data-theme="dark"] .theme-toggle {
  background: #9be8d2;
  color: #193c35;
}

body[data-theme="dark"] .theme-icon-light {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

body[data-theme="dark"] .theme-icon-dark {
  opacity: 0;
  transform: scale(0.72) rotate(16deg);
}

body[data-theme="light"] .theme-toggle {
  background: #006b5c;
  color: #f1e8dd;
}

body[data-theme="light"] .theme-icon-dark {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

body[data-theme="light"] .theme-icon-light {
  opacity: 0;
  transform: scale(0.72) rotate(-16deg);
}

/* Hero: first screen, profile photo, personal mark, and metrics window. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 52px;
  width: min(var(--max), calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 78px 0 52px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 24px;
  font-size: 8.8rem;
  line-height: 0.84;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  color: #eef2f8;
  font-size: 1.32rem;
  line-height: 1.58;
}

body[data-theme="light"] .hero-lead,
body[data-theme="light"] .intro-band p,
body[data-theme="light"] .about-copy p:not(.eyebrow),
body[data-theme="light"] .project-card p,
body[data-theme="light"] .service-list p,
body[data-theme="light"] .timeline p,
body[data-theme="light"] .section-heading p:not(.eyebrow) {
  color: #435a56;
}

.personal-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-top: 20px;
  padding: 7px 13px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #dce2ed;
  font-size: 0.9rem;
  font-weight: 800;
}

.personal-mark img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

body[data-theme="light"] .personal-mark {
  border-color: rgba(0, 107, 92, 0.28);
  background: rgba(255, 255, 255, 0.68);
  color: #12312f;
  box-shadow: 0 8px 24px rgba(52, 46, 38, 0.08);
}

body[data-theme="light"] .personal-mark img {
  background: rgba(0, 107, 92, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 107, 92, 0.14);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.btn-icon,
.tab-icon,
.action-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.btn-icon svg,
.tab-icon svg,
.action-icon svg,
.btn-icon .fi,
.tab-icon .fi,
.action-icon .fi {
  display: block;
  width: 100%;
  height: 100%;
}

.btn-icon svg,
.tab-icon svg,
.action-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-icon .fi,
.tab-icon .fi,
.action-icon .fi {
  font-size: 1.05rem;
}

.btn.primary {
  background: #f7f8fb;
  color: #080a0f;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

body[data-theme="light"] .btn.primary {
  border-color: rgba(0, 107, 92, 0.22);
  background: #006b5c;
  color: #f8f4ee;
}

body[data-theme="light"] .btn.ghost,
body[data-theme="light"] .about-tab,
body[data-theme="light"] .contact-details a,
body[data-theme="light"] .project-tags span,
body[data-theme="light"] .stack-list span {
  border-color: rgba(0, 107, 92, 0.22);
  background: rgba(0, 107, 92, 0.08);
  color: #12312f;
}

body[data-theme="light"] .btn.ghost:hover,
body[data-theme="light"] .about-tab:hover,
body[data-theme="light"] .about-tab.is-active {
  border-color: rgba(0, 107, 92, 0.42);
  background: rgba(0, 107, 92, 0.16);
  color: #062522;
}

body[data-theme="light"] .nav a,
body[data-theme="light"] .nav a:hover {
  border-color: transparent;
  background: transparent;
  color: #12312f;
}

body[data-theme="light"] .nav a[aria-current="page"] {
  border-color: transparent;
  background: transparent;
  color: #006b5c;
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: end;
  min-height: 510px;
}

.profile-frame {
  position: relative;
  overflow: hidden;
  width: min(500px, 100%);
  aspect-ratio: 1;
  margin: 0 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow), 0 0 0 12px rgba(103, 212, 255, 0.045);
}

.profile-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 68% 28%, rgba(103, 212, 255, 0.2), transparent 24%),
    linear-gradient(180deg, transparent 62%, rgba(6, 7, 10, 0.22));
  pointer-events: none;
}

.profile-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: min(470px, 92%);
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(11, 14, 20, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

body[data-theme="light"] .product-window,
body[data-theme="light"] .project-card,
body[data-theme="light"] .game-panel,
body[data-theme="light"] .ranking-panel,
body[data-theme="light"] .about-kicker,
body[data-theme="light"] .about-orbit-card,
body[data-theme="light"] .about-card,
body[data-theme="light"] .contact-section {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.28)),
    rgba(248, 244, 238, 0.82);
}

body[data-theme="light"] .contact-redesign {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

body[data-theme="light"] .contact-redesign h2,
body[data-theme="light"] .contact-trust-grid h3 {
  color: #062522;
  text-shadow: none;
}

body[data-theme="light"] .contact-hero-copy > p:not(.eyebrow),
body[data-theme="light"] .contact-trust-grid p {
  color: #435a56;
}

body[data-theme="light"] .contact-trust-grid article,
body[data-theme="light"] .contact-copy-list a,
body[data-theme="light"] .contact-copy {
  border-color: rgba(0, 107, 92, 0.16);
  background: rgba(255, 255, 255, 0.56);
  color: #12312f;
}

body[data-theme="light"] .about-section::before {
  border-color: rgba(0, 107, 92, 0.11);
  background:
    radial-gradient(circle at 18% 24%, rgba(0, 107, 92, 0.12), transparent 32%),
    radial-gradient(circle at 78% 28%, rgba(26, 158, 219, 0.12), transparent 30%),
    radial-gradient(circle at 58% 88%, rgba(255, 148, 120, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.24));
}

body[data-theme="light"] .metric-grid article,
body[data-theme="light"] .service-list article,
body[data-theme="light"] .timeline article,
body[data-theme="light"] .about-panel,
body[data-theme="light"] .about-stats article,
body[data-theme="light"] .ranking-list li {
  background: rgba(255, 255, 255, 0.5);
}

body[data-theme="light"] .about-tech-strip span,
body[data-theme="light"] .about-process article {
  border-color: rgba(0, 107, 92, 0.18);
  background: rgba(0, 107, 92, 0.07);
  color: #12312f;
}

body[data-theme="light"] .about-orbit-logo {
  background: rgba(248, 244, 238, 0.86);
}

body[data-theme="light"] .about-solutions::before {
  background: transparent;
}

body[data-theme="light"] .about-solutions-copy h2,
body[data-theme="light"] .about-solution-card h3 {
  color: #062522;
  text-shadow: none;
}

body[data-theme="light"] .about-solutions-copy h2 span,
body[data-theme="light"] .about-line-kicker,
body[data-theme="light"] .about-solution-card > span {
  color: #008f78;
}

body[data-theme="light"] .about-solutions-copy p:not(.eyebrow),
body[data-theme="light"] .about-solution-card p {
  color: #34504d;
}

body[data-theme="light"] .about-service-chips span,
body[data-theme="light"] .about-solution-card {
  border-color: rgba(0, 107, 92, 0.2);
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 145, 123, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.62);
  color: #12312f;
}

body[data-theme="light"] .about-solution-icon {
  border-color: rgba(0, 143, 120, 0.35);
  background: rgba(0, 143, 120, 0.08);
}

body[data-theme="light"] .about-service-chips svg,
body[data-theme="light"] .about-solution-icon svg {
  stroke: #008f78;
}

body[data-theme="light"] .about-service-chips .fi,
body[data-theme="light"] .about-solution-icon .fi {
  color: #008f78;
}

.window-top {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.window-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

.window-top span:nth-child(2) {
  background: var(--yellow);
}

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

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.metric-grid article {
  min-height: 98px;
  padding: 16px;
  background: rgba(8, 10, 15, 0.88);
}

.metric-label {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-grid strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.signal-panel {
  padding: 18px;
}

.signal-line {
  height: 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), rgba(103, 212, 255, 0.08));
}

.signal-line.short {
  width: 72%;
  background: linear-gradient(90deg, var(--green), rgba(128, 242, 177, 0.08));
}

.signal-line.accent {
  width: 46%;
  margin-bottom: 0;
  background: linear-gradient(90deg, var(--coral), rgba(255, 148, 120, 0.08));
}

/* Shared section spacing and reveal-ready layout. */
.intro-band,
.section,
.method-section,
.contact-section,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 36px;
  align-items: center;
  padding: 54px 0 72px;
  border-top: 1px solid var(--line);
}

.legacy-about {
  display: none;
}

.intro-band p {
  margin: 0;
  color: #eef2f8;
  font-size: 1.85rem;
  line-height: 1.25;
  font-weight: 700;
}

/* About section: interactive tabs and professional summary. */
.about-section {
  align-items: stretch;
  position: relative;
  gap: 44px;
  overflow: hidden;
  padding: 72px clamp(24px, 4vw, 56px) 84px;
  border-top: 1px solid transparent;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 28px 0 26px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 24%, rgba(128, 242, 177, 0.18), transparent 32%),
    radial-gradient(circle at 78% 28%, rgba(103, 212, 255, 0.18), transparent 30%),
    radial-gradient(circle at 58% 88%, rgba(255, 148, 120, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.about-copy {
  align-self: center;
}

.about-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(128, 242, 177, 0.22);
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.52);
}

.about-kicker img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.about-copy .eyebrow {
  margin-bottom: 0;
  color: var(--green);
  font-size: 0.78rem;
  line-height: 1.2;
}

.about-copy h2 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: 3.35rem;
  line-height: 0.98;
}

.about-copy p:not(.eyebrow) {
  max-width: 590px;
  color: #cfd6e3;
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 600;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 24px;
}

.stack-list span,
.project-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #dce2ed;
  font-size: 0.85rem;
  font-weight: 700;
}

.stack-list span {
  padding: 10px 13px;
}

.about-tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 560px;
  margin-top: 18px;
}

.about-tech-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(103, 212, 255, 0.2);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(103, 212, 255, 0.14), rgba(128, 242, 177, 0.055));
  color: #eef7ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.about-experience {
  --scene-x: 0px;
  --scene-y: 0px;
  display: grid;
  grid-template-columns: minmax(160px, 0.74fr) minmax(0, 1.26fr);
  gap: 14px;
  align-content: stretch;
}

.about-orbit-card {
  position: relative;
  min-height: 242px;
  border: 1px solid rgba(128, 242, 177, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(128, 242, 177, 0.16), rgba(103, 212, 255, 0.08) 52%, rgba(255, 148, 120, 0.1)),
    rgba(8, 11, 17, 0.82);
  overflow: hidden;
  transform: translate3d(var(--scene-x), var(--scene-y), 0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.about-experience:hover .about-orbit-card {
  border-color: rgba(128, 242, 177, 0.42);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.about-orbit-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 210deg, transparent, rgba(103, 212, 255, 0.26), transparent, rgba(255, 148, 120, 0.2), transparent);
  opacity: 0.52;
  animation: slowSpin 16s linear infinite;
}

.about-orbit-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 48%, transparent 0 74px, #000 76px);
  opacity: 0.22;
}

.about-orbit-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(8, 12, 18, 0.82);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.32), 0 0 0 12px rgba(128, 242, 177, 0.06);
  transform: translate(-50%, -50%);
}

.about-orbit-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.about-orbit-ring {
  position: absolute;
  inset: 54px 32px;
  z-index: 1;
  border: 1px dashed rgba(128, 242, 177, 0.34);
  border-radius: 50%;
}

.about-orbit-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #06110f;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.chip-web {
  top: 28px;
  left: 24px;
  background: #80f2b1;
}

.chip-code {
  right: 20px;
  bottom: 38px;
  background: #67d4ff;
}

.chip-product {
  right: 28px;
  top: 42px;
  background: #ff9478;
}

.about-orbit-lines {
  position: absolute;
  right: 22px;
  bottom: 18px;
  left: 22px;
  z-index: 2;
  display: grid;
  gap: 7px;
}

.about-orbit-lines span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.about-orbit-lines span:nth-child(1) {
  width: 78%;
  background: linear-gradient(90deg, #67d4ff, transparent);
}

.about-orbit-lines span:nth-child(2) {
  width: 58%;
  background: linear-gradient(90deg, #80f2b1, transparent);
}

.about-orbit-lines span:nth-child(3) {
  width: 40%;
  background: linear-gradient(90deg, #ff9478, transparent);
}

.about-card {
  display: grid;
  min-height: 242px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(103, 212, 255, 0.11), rgba(255, 255, 255, 0.045)),
    rgba(10, 12, 18, 0.8);
}

.about-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.about-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.about-tab.is-active,
.about-tab:hover {
  border-color: rgba(128, 242, 177, 0.56);
  background: rgba(128, 242, 177, 0.12);
  color: var(--text);
}

.about-panel {
  display: none;
  min-height: 165px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.about-panel.is-active {
  display: block;
  animation: panelIn 180ms ease both;
}

.about-panel span {
  display: block;
  margin-bottom: 16px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.about-panel h3 {
  margin-bottom: 12px;
  font-size: 1.7rem;
  line-height: 1.05;
}

.about-panel p {
  margin: 0;
  color: #dce2ed;
  font-size: 1rem;
  line-height: 1.68;
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  grid-column: 1 / -1;
}

.about-stats article {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.about-stats article:hover {
  transform: translateY(-4px);
  border-color: rgba(128, 242, 177, 0.32);
}

.about-stats strong,
.about-stats span {
  display: block;
}

.about-stats strong {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 1rem;
}

.about-stats span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.about-process {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.about-process article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(103, 212, 255, 0.18);
  border-radius: 8px;
  background: rgba(103, 212, 255, 0.06);
}

.about-process span {
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 900;
}

.about-process strong {
  color: var(--text);
  font-size: 0.9rem;
}

/* About solutions layout: client-facing value proposition. */
.about-solutions {
  grid-template-columns: minmax(320px, 0.86fr) minmax(420px, 1.14fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 78px 0 88px;
  border-top: 0;
  border-radius: 0;
}

.about-solutions::before {
  inset: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.about-solutions-copy {
  max-width: 640px;
}

.about-line-kicker {
  display: grid;
  grid-template-columns: auto minmax(56px, 170px);
  gap: 14px;
  align-items: center;
  width: fit-content;
  margin-bottom: 28px;
  color: #18f0c5;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.about-line-kicker i {
  position: relative;
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(24, 240, 197, 0.9), rgba(24, 240, 197, 0));
}

.about-line-kicker i::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #18f0c5;
  box-shadow: 0 0 18px rgba(24, 240, 197, 0.95);
  transform: translateY(-50%);
}

.about-solutions-copy h2 {
  max-width: 620px;
  margin-bottom: 28px;
  color: #f7fbff;
  font-size: clamp(3.1rem, 5.2vw, 5.15rem);
  line-height: 1.03;
  letter-spacing: 0;
  text-shadow: 0 7px 0 rgba(0, 0, 0, 0.22);
}

.about-solutions-copy h2 span {
  color: #28f0c4;
}

.about-solutions-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(238, 242, 248, 0.86);
  font-size: 1.25rem;
  line-height: 1.7;
  font-weight: 500;
}

.about-service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 12px;
  max-width: 650px;
  margin-top: 34px;
}

.about-service-chips span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid rgba(24, 240, 197, 0.25);
  border-radius: 999px;
  background: rgba(1, 22, 26, 0.56);
  color: #f5fbff;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: inset 0 0 18px rgba(24, 240, 197, 0.05);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.about-service-chips span:hover {
  transform: translateY(-3px);
  border-color: rgba(24, 240, 197, 0.56);
  background: rgba(24, 240, 197, 0.1);
}

.about-service-chips svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #16eec4;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-service-chips .fi {
  width: 20px;
  height: 20px;
  color: #16eec4;
  font-size: 1.1rem;
}

.about-cta {
  width: fit-content;
  min-width: 284px;
  margin-top: 42px;
  padding: 18px 20px 18px 22px;
  border-color: rgba(31, 245, 198, 0.52);
  background: linear-gradient(135deg, #4cffd2, #15dcb4);
  color: #001f23;
  box-shadow: 0 16px 40px rgba(18, 236, 195, 0.34);
}

.about-cta:hover {
  color: #001f23;
  box-shadow: 0 20px 56px rgba(18, 236, 195, 0.42);
}

.about-cta .btn-icon {
  background: transparent;
}

.about-cta .btn-icon svg,
.about-cta-arrow {
  stroke: currentColor;
}

.about-cta-arrow {
  width: 24px;
  height: 24px;
  margin-left: auto;
  fill: none;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  font-size: 1.12rem;
}

.about-solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-solution-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 36px;
  border: 1px solid rgba(24, 240, 197, 0.25);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 10%, rgba(24, 240, 197, 0.1), transparent 36%),
    linear-gradient(145deg, rgba(2, 28, 34, 0.86), rgba(2, 13, 18, 0.76));
  box-shadow: inset 0 0 38px rgba(24, 240, 197, 0.035);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.about-solution-card::after {
  content: "";
  position: absolute;
  inset: auto -28% -42% 14%;
  height: 62%;
  background: radial-gradient(circle, rgba(24, 240, 197, 0.16), transparent 64%);
  opacity: 0;
  transition: opacity 260ms ease;
}

.about-solution-card:hover {
  transform: translateY(-8px);
  border-color: rgba(24, 240, 197, 0.52);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34), inset 0 0 44px rgba(24, 240, 197, 0.07);
}

.about-solution-card:hover::after {
  opacity: 1;
}

.about-solution-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 22px;
  border: 1px solid rgba(24, 240, 197, 0.48);
  border-radius: 999px;
  background: rgba(24, 240, 197, 0.07);
  box-shadow: 0 0 0 10px rgba(24, 240, 197, 0.035);
}

.about-solution-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: #16eec4;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-solution-icon .fi {
  width: 36px;
  height: 36px;
  color: #16eec4;
  font-size: 2.05rem;
}

.about-solution-card > span {
  display: block;
  margin-bottom: 10px;
  color: #18f0c5;
  font-size: 1rem;
  font-weight: 900;
}

.about-solution-card h3 {
  max-width: 320px;
  margin-bottom: 18px;
  color: #f8fbff;
  font-size: clamp(1.8rem, 2.4vw, 2.45rem);
  line-height: 1.12;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.22);
}

.about-solution-card p {
  max-width: 340px;
  color: rgba(238, 242, 248, 0.82);
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 500;
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes panelIn {
  from {
    transform: translateY(6px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Main content sections. */
.section,
.method-section {
  padding: 78px 0;
}

.game-section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.game-title {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.space-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 2px solid #67d4ff;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffef8a, #ff5b9f 38%, #6837db 70%, #17284f);
  box-shadow: 0 0 0 8px rgba(103, 212, 255, 0.08), 0 0 34px rgba(255, 91, 159, 0.3);
}

.space-icon::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 31px;
  border-radius: 50% 50% 38% 38%;
  background: linear-gradient(90deg, #e8fbff, #67d4ff 48%, #ffffff 52%, #80f2b1);
  clip-path: polygon(50% 0, 100% 72%, 72% 64%, 62% 100%, 38% 100%, 28% 64%, 0 72%);
  transform: rotate(18deg);
}

.section-heading {
  max-width: 660px;
  margin-bottom: 34px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.contact-section h2 {
  margin-bottom: 0;
  font-size: 4.6rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Projects grid. */
.project-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  max-width: none;
  margin-bottom: 48px;
}

.project-heading > div:first-child {
  max-width: 760px;
}

.project-heading-aside {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding-bottom: 6px;
  color: var(--muted);
  text-align: right;
}

.project-heading-aside strong {
  color: var(--green);
  font-size: 4rem;
  line-height: 0.78;
}

.project-heading-aside span {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  --project-accent: var(--green);
  --project-accent-soft: rgba(128, 242, 177, 0.14);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  grid-column: span 3;
  min-height: 360px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, var(--project-accent-soft), rgba(255, 255, 255, 0.035) 44%),
    rgba(9, 12, 17, 0.78);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--project-accent), transparent 78%);
}

.project-card::after {
  content: attr(data-project);
  position: absolute;
  z-index: 0;
  right: 18px;
  bottom: -20px;
  color: var(--project-accent-soft);
  font-size: 7.5rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.project-card:hover {
  z-index: 2;
  border-color: color-mix(in srgb, var(--project-accent) 48%, transparent);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32), 0 0 34px var(--project-accent-soft);
  transform: translateY(-7px);
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-card.featured {
  --project-accent: #67d4ff;
  --project-accent-soft: rgba(103, 212, 255, 0.14);
  grid-column: span 6;
  min-height: 430px;
  background:
    linear-gradient(125deg, rgba(103, 212, 255, 0.16), transparent 45%),
    linear-gradient(145deg, rgba(128, 242, 177, 0.16), rgba(255, 255, 255, 0.035)),
    rgba(9, 12, 17, 0.85);
}

.project-card.project-wide {
  grid-column: span 4;
}

.project-card.project-narrow {
  grid-column: span 2;
}

.project-megabyte {
  --project-accent: #67d4ff;
  --project-accent-soft: rgba(103, 212, 255, 0.15);
  grid-column: span 3;
  background:
    radial-gradient(circle at 12% 10%, rgba(28, 221, 255, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(32, 118, 255, 0.14), rgba(255, 255, 255, 0.035) 48%),
    rgba(9, 12, 17, 0.78);
}

.project-commerce {
  --project-accent: #f3d775;
  --project-accent-soft: rgba(243, 215, 117, 0.15);
  grid-column: span 3;
}

.project-personal {
  --project-accent: #ff9478;
  --project-accent-soft: rgba(255, 148, 120, 0.15);
}

.project-space {
  --project-accent: #ad8cff;
  --project-accent-soft: rgba(173, 140, 255, 0.16);
}

body[data-theme="light"] .project-card.featured {
  background:
    linear-gradient(125deg, rgba(8, 126, 155, 0.14), transparent 48%),
    linear-gradient(145deg, rgba(0, 107, 92, 0.1), rgba(255, 255, 255, 0.5)),
    rgba(248, 244, 238, 0.9);
}

body[data-theme="light"] .project-megabyte {
  background:
    radial-gradient(circle at 14% 8%, rgba(10, 191, 221, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(8, 126, 155, 0.11), rgba(255, 255, 255, 0.72) 52%),
    rgba(248, 244, 238, 0.95);
}

body[data-theme="light"] .client-case-proof span {
  border-color: rgba(8, 126, 155, 0.2);
  background: rgba(8, 126, 155, 0.08);
  color: #183b45;
}

.project-art {
  position: relative;
  overflow: hidden;
  height: 170px;
  margin: -28px -28px 28px;
  border-bottom: 1px solid var(--line);
}

.project-art + .project-kicker {
  margin-bottom: 26px;
}

.project-art--megabyte {
  background:
    linear-gradient(135deg, rgba(19, 223, 233, 0.16), transparent 42%),
    linear-gradient(160deg, #ffffff 0%, #f4fbff 100%);
}

.megabyte-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -40%);
  transition: transform 300ms ease;
}

.client-case-badge {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(25, 171, 210, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #053657;
  box-shadow: 0 16px 34px rgba(3, 29, 52, 0.18);
  backdrop-filter: blur(10px);
}

.client-case-badge span {
  color: #087e9b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.client-case-badge strong {
  font-size: 0.92rem;
}

.client-case-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.client-case-proof span {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--project-accent) 24%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--project-accent) 9%, transparent);
  color: #dce2ed;
  font-size: 0.86rem;
  line-height: 1.3;
}

.client-case-proof strong {
  color: var(--project-accent);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.client-case h3 {
  font-size: 2rem;
}

.project-art--commerce {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  gap: 30px;
  align-items: end;
  padding: 28px 34px;
  background: linear-gradient(135deg, #18291e, #263a22 54%, #5b4b18);
}

.commerce-metric {
  align-self: center;
}

.commerce-metric span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.commerce-metric strong {
  color: #fff2a8;
  font-size: 3rem;
  line-height: 1;
}

.commerce-bars {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  height: 100px;
}

.commerce-bars i {
  width: min(34px, 15%);
  height: 28%;
  border-radius: 4px 4px 0 0;
  background: #80f2b1;
  box-shadow: 0 0 18px rgba(128, 242, 177, 0.22);
  transform-origin: bottom;
  transition: transform 260ms ease;
}

.commerce-bars i:nth-child(2) { height: 44%; background: #67d4ff; }
.commerce-bars i:nth-child(3) { height: 62%; background: #f3d775; }
.commerce-bars i:nth-child(4) { height: 78%; background: #ff9478; }
.commerce-bars i:nth-child(5) { height: 100%; background: #80f2b1; }

.project-art--personal {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 34px;
  background: linear-gradient(125deg, #1b0d17, #25142e 52%, #0e2630);
}

.project-art--personal img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 7px rgba(255, 148, 120, 0.1), 0 16px 32px rgba(0, 0, 0, 0.36);
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.project-art--personal div {
  display: grid;
  gap: 8px;
}

.project-art--personal strong {
  color: #ffffff;
  font-size: clamp(1.3rem, 3vw, 2.5rem);
  line-height: 1;
}

.project-art--personal span {
  color: #ffb5a3;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-art--space {
  background:
    radial-gradient(circle at 14% 24%, #ffffff 0 1px, transparent 2px),
    radial-gradient(circle at 78% 35%, #67d4ff 0 1px, transparent 2px),
    radial-gradient(circle at 48% 72%, #f3d775 0 1px, transparent 2px),
    linear-gradient(160deg, #090525, #25104c 56%, #071d2d);
  background-size: 54px 54px, 72px 72px, 43px 43px, auto;
}

.space-project-ship {
  position: absolute;
  bottom: 20px;
  left: 50%;
  width: 42px;
  height: 58px;
  background: linear-gradient(90deg, #67d4ff, #ffffff 50%, #80f2b1);
  clip-path: polygon(50% 0, 78% 44%, 100% 82%, 66% 68%, 60% 100%, 40% 100%, 34% 68%, 0 82%, 22% 44%);
  filter: drop-shadow(0 0 12px #67d4ff);
  transform: translateX(-50%);
  transition: transform 280ms ease, filter 280ms ease;
}

.space-project-ship::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 16px;
  width: 10px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(#ffffff, #ff5b9f, transparent);
}

.space-enemy {
  position: absolute;
  width: 28px;
  height: 24px;
  background: linear-gradient(135deg, #ff5b9f, #f3d775);
  clip-path: polygon(50% 100%, 30% 56%, 0 76%, 18% 25%, 50% 0, 82% 25%, 100% 76%, 70% 56%);
  filter: drop-shadow(0 0 7px #ff5b9f);
}

.enemy-one { top: 30px; left: 24%; }
.enemy-two { top: 54px; right: 20%; background: linear-gradient(135deg, #ad8cff, #67d4ff); }

.space-star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 9px #ffffff;
}

.star-one { top: 34px; right: 42%; }
.star-two { top: 76px; left: 13%; background: #80f2b1; }

.project-megabyte:hover .megabyte-logo {
  transform: translate(-50%, -38%) scale(1.04);
}

.project-commerce:hover .commerce-bars i {
  transform: scaleY(1.08);
}

.project-commerce:hover .commerce-bars i:nth-child(even) {
  transform: scaleY(0.92);
}

.project-personal:hover .project-art--personal img {
  box-shadow: 0 0 0 9px rgba(255, 148, 120, 0.14), 0 20px 38px rgba(0, 0, 0, 0.44);
  transform: rotate(-4deg) scale(1.04);
}

.project-space:hover .space-project-ship {
  filter: drop-shadow(0 0 18px #67d4ff);
  transform: translate(-50%, -8px);
}

.project-card.featured .project-kicker {
  margin-bottom: 24px;
}

.project-feature-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 36px;
  align-items: start;
  margin-bottom: 20px;
}

.project-feature-head h3 {
  margin-bottom: 0;
}

.project-company {
  display: grid;
  justify-items: end;
  gap: 8px;
  padding-top: 4px;
  text-align: right;
}

.project-company img {
  width: min(220px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3));
}

.project-company span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-case-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.42fr);
  gap: 28px;
  align-items: start;
  margin-top: 26px;
}

.project-case-copy > p {
  margin-bottom: 0;
}

.project-case-copy .project-highlights {
  grid-template-columns: 1fr;
  margin-top: 18px;
}

.project-case-copy .project-highlights li {
  min-height: auto;
  padding: 13px 14px;
}

.project-showcase {
  --showcase-a: #07978b;
  --showcase-b: #67d4ff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
  align-items: stretch;
}

.project-showcase[data-showcase-theme="login"] {
  --showcase-a: #009d8f;
  --showcase-b: #72e3d8;
}

.project-showcase[data-showcase-theme="dashboard"] {
  --showcase-a: #00a28e;
  --showcase-b: #ef3151;
}

.project-showcase[data-showcase-theme="register"] {
  --showcase-a: #087e9b;
  --showcase-b: #67d4ff;
}

.project-showcase[data-showcase-theme="search"] {
  --showcase-a: #006b5c;
  --showcase-b: #39bcd7;
}

.project-showcase-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8.4;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--showcase-b) 48%, transparent);
  border-radius: 7px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--showcase-a) 78%, #08131a), color-mix(in srgb, var(--showcase-b) 45%, #101829));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26), 0 0 28px color-mix(in srgb, var(--showcase-a) 18%, transparent);
  transition: background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.project-showcase-stage::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff9478;
  box-shadow: 13px 0 #f3d775, 26px 0 #80f2b1;
}

.project-showcase-main {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  padding: 18px 14px 40px;
  object-fit: contain;
  filter: drop-shadow(0 13px 18px rgba(0, 0, 0, 0.3));
  transition: opacity 180ms ease, transform 240ms ease;
}

.project-showcase-main.is-switching {
  opacity: 0.28;
  transform: scale(0.985);
}

.project-showcase-stage figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--showcase-a) 76%, rgba(5, 17, 23, 0.92));
  color: #f6ffff;
  backdrop-filter: blur(10px);
}

.project-showcase-stage figcaption span {
  font-size: 0.74rem;
  font-weight: 800;
}

.project-showcase-stage figcaption strong {
  color: #80f2b1;
  font-size: 0.7rem;
}

.project-showcase-thumbs {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-content: center;
  margin-top: 0;
}

.project-showcase-thumbs button {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  outline: 0;
  background: #eef2f3;
  cursor: pointer;
  opacity: 0.58;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.project-showcase-thumbs button:hover,
.project-showcase-thumbs button:focus-visible,
.project-showcase-thumbs button.is-active {
  border-color: var(--showcase-b);
  opacity: 1;
  transform: translateX(-4px);
}

.project-showcase-thumbs button.is-active {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--showcase-b) 22%, transparent);
}

.project-showcase-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 3px;
  background: #ffffff;
  object-fit: contain;
}

body[data-theme="light"] .project-showcase-stage {
  border-color: color-mix(in srgb, var(--showcase-a) 42%, transparent);
  box-shadow: 0 18px 38px rgba(52, 46, 38, 0.14), 0 0 26px color-mix(in srgb, var(--showcase-a) 13%, transparent);
}

body[data-theme="light"] .project-showcase-thumbs button {
  border-color: rgba(0, 107, 92, 0.18);
}

body[data-theme="light"] .project-showcase-thumbs button:hover,
body[data-theme="light"] .project-showcase-thumbs button:focus-visible,
body[data-theme="light"] .project-showcase-thumbs button.is-active {
  border-color: #006b5c;
}

.project-kicker {
  margin-bottom: 80px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card h3,
.service-list h3,
.timeline h3 {
  margin-bottom: 14px;
  font-size: 2.35rem;
  line-height: 1.02;
}

.project-card p,
.service-list p,
.timeline p {
  max-width: 680px;
  color: #c6ccd8;
  font-size: 1rem;
  line-height: 1.65;
}

.project-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.project-highlights li {
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: #d7dce6;
  font-size: 0.9rem;
  line-height: 1.5;
}

.project-tech-label {
  margin: 26px 0 0;
  color: var(--green) !important;
  font-size: 0.76rem !important;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-theme="light"] .project-highlights li {
  border-color: rgba(0, 107, 92, 0.16);
  background: rgba(255, 255, 255, 0.58);
  color: #304a46;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.project-tags span {
  padding: 8px 10px;
}

.tech-tags span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 6px 6px;
}

.tech-mark {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 6px;
  background: var(--mark-bg);
  color: var(--mark-color, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.tech-mark.java { --mark-bg: linear-gradient(145deg, #e76f00, #2874a6); }
.tech-mark.javafx { --mark-bg: linear-gradient(145deg, #54c8f0, #126d9a); }
.tech-mark.h2 { --mark-bg: linear-gradient(145deg, #1676d2, #0b305f); }
.tech-mark.poi { --mark-bg: linear-gradient(145deg, #d84c32, #f0a13a); }
.tech-mark.fxml { --mark-bg: linear-gradient(145deg, #56c271, #167b45); }
.tech-mark.css { --mark-bg: linear-gradient(145deg, #3c99dc, #1769aa); }
.tech-mark.idea { --mark-bg: linear-gradient(145deg, #ff2e93, #7b2cff 55%, #111111 56%); }
.tech-mark.github { --mark-bg: linear-gradient(145deg, #4b5563, #111827); }

body[data-theme="light"] .project-company img {
  filter: contrast(1.2) saturate(1.08) drop-shadow(0 8px 16px rgba(52, 46, 38, 0.14));
}

.project-link {
  width: fit-content;
  margin-top: auto;
}

/* Projects redesign: result-first case system. */
.projects-redesign {
  position: relative;
  padding-top: 62px;
}

.projects-redesign::before {
  content: "";
  position: absolute;
  inset: 28px -5vw auto;
  z-index: -1;
  height: 420px;
  background:
    radial-gradient(circle at 18% 20%, rgba(24, 240, 197, 0.1), transparent 34%),
    radial-gradient(circle at 84% 34%, rgba(255, 148, 120, 0.08), transparent 32%);
  pointer-events: none;
}

.projects-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  align-items: end;
  margin-bottom: 18px;
}

.projects-hero-copy {
  max-width: 820px;
}

.projects-hero h2 {
  max-width: 680px;
  margin-bottom: 14px;
  font-size: clamp(2.25rem, 3.8vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.projects-hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(238, 242, 248, 0.78);
  font-size: 1rem;
  line-height: 1.62;
}

.projects-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.projects-results article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(24, 240, 197, 0.18);
  border-radius: 8px;
  background: rgba(2, 18, 23, 0.46);
  box-shadow: inset 0 0 30px rgba(24, 240, 197, 0.035);
}

.projects-results strong,
.projects-results span {
  display: block;
}

.projects-results strong {
  margin-bottom: 0;
  color: #28f0c4;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 0.9;
}

.projects-results span {
  color: rgba(238, 242, 248, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.project-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.project-filter-bar button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(24, 240, 197, 0.22);
  border-radius: 999px;
  background: rgba(2, 18, 23, 0.36);
  color: rgba(238, 242, 248, 0.82);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, color 200ms ease;
}

.project-filter-bar button:hover,
.project-filter-bar button.is-active {
  transform: translateY(-2px);
  border-color: rgba(24, 240, 197, 0.62);
  background: linear-gradient(135deg, rgba(24, 240, 197, 0.18), rgba(103, 212, 255, 0.08));
  color: #ffffff;
}

.project-featured-case,
.project-case-card {
  border: 1px solid rgba(24, 240, 197, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(2, 28, 34, 0.72), rgba(7, 10, 18, 0.68)),
    rgba(2, 18, 23, 0.66);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.22), inset 0 0 34px rgba(24, 240, 197, 0.028);
}

.project-featured-case {
  display: block;
  padding: 18px;
  margin-bottom: 18px;
  overflow: hidden;
}

.project-case-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
}

.project-case-topline,
.case-meta,
.case-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.case-category,
.case-status,
.case-pill,
.case-meta strong,
.case-proof span {
  border: 1px solid rgba(24, 240, 197, 0.2);
  border-radius: 999px;
  background: rgba(24, 240, 197, 0.08);
  color: rgba(238, 242, 248, 0.84);
  font-size: 0.76rem;
  font-weight: 900;
}

.case-category {
  border-color: rgba(255, 148, 120, 0.42);
  background: rgba(255, 148, 120, 0.12);
  color: #ffb39f;
  padding: 7px 10px;
  text-transform: uppercase;
}

.case-status,
.case-pill,
.case-meta strong,
.case-proof span {
  padding: 7px 10px;
}

.project-featured-case .project-feature-head {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
  gap: 22px;
  margin-bottom: 0;
}

.project-featured-case h3 {
  max-width: 640px;
  margin-bottom: 10px;
  font-size: clamp(1.75rem, 2.7vw, 2.65rem);
  line-height: 1.06;
}

.project-featured-case .project-company img {
  width: min(170px, 100%);
}

.project-featured-case p {
  color: rgba(238, 242, 248, 0.78);
  font-size: 0.95rem;
  line-height: 1.58;
}

.project-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-featured-case .project-showcase {
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  max-width: 860px;
  margin-top: 2px;
}

.project-featured-case .project-showcase-stage {
  aspect-ratio: 16 / 6.8;
}

.project-featured-case .project-showcase-main {
  padding: 16px 14px 38px;
}

.project-featured-case .project-showcase-thumbs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: none;
}

.project-featured-case .project-showcase-thumbs button:hover,
.project-featured-case .project-showcase-thumbs button:focus-visible,
.project-featured-case .project-showcase-thumbs button.is-active {
  transform: translateY(-2px);
}

.project-impact-grid article {
  padding: 10px;
  border: 1px solid rgba(103, 212, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.project-impact-grid strong {
  display: block;
  margin-bottom: 6px;
  color: #28f0c4;
  font-size: 0.78rem;
}

.project-impact-grid span {
  color: rgba(238, 242, 248, 0.7);
  font-size: 0.74rem;
  line-height: 1.38;
}

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

.project-case-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease, opacity 220ms ease;
}

.project-case-card:hover {
  transform: translateY(-5px);
  border-color: rgba(24, 240, 197, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3), 0 0 26px rgba(24, 240, 197, 0.075);
}

.project-case-card.is-hidden {
  display: none;
}

.case-media {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 112px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.case-media-logo {
  place-items: center;
  background:
    radial-gradient(circle at 20% 12%, rgba(103, 212, 255, 0.18), transparent 36%),
    #ffffff;
}

.case-media-logo .megabyte-logo {
  position: static;
  width: min(100%, 320px);
  transform: none;
}

.case-media-commerce {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  background: linear-gradient(135deg, #13261f, #203526 52%, #5c3a24);
}

.case-media-personal {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(125deg, #160d14, #25142e 52%, #08262b);
}

.case-media-personal img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 7px rgba(255, 148, 120, 0.1), 0 16px 32px rgba(0, 0, 0, 0.36);
}

.case-media-personal strong,
.case-media-personal span {
  display: block;
}

.case-media-personal strong {
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
}

.case-media-personal span {
  color: #ffb5a3;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-media-space {
  background:
    radial-gradient(circle at 14% 24%, #ffffff 0 1px, transparent 2px),
    radial-gradient(circle at 78% 35%, #67d4ff 0 1px, transparent 2px),
    radial-gradient(circle at 48% 72%, #f3d775 0 1px, transparent 2px),
    linear-gradient(160deg, #090525, #25104c 56%, #071d2d);
  background-size: 54px 54px, 72px 72px, 43px 43px, auto;
}

.case-pill {
  position: absolute;
  right: 14px;
  bottom: 14px;
  backdrop-filter: blur(10px);
}

.case-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.case-meta {
  margin-bottom: 12px;
}

.case-meta span {
  color: #ff9478;
  font-size: 0.9rem;
  font-weight: 900;
}

.case-body h3 {
  margin-bottom: 10px;
  color: #f8fbff;
  font-size: 1.32rem;
  line-height: 1.14;
}

.case-body p {
  color: rgba(238, 242, 248, 0.72);
  font-size: 0.88rem;
  line-height: 1.5;
}

.case-proof {
  margin-top: auto;
  padding-top: 14px;
}

.project-case-card .project-tags {
  margin-top: 14px;
}

body[data-theme="light"] .projects-hero-copy > p:not(.eyebrow),
body[data-theme="light"] .project-featured-case p,
body[data-theme="light"] .case-body p,
body[data-theme="light"] .project-impact-grid span,
body[data-theme="light"] .projects-results span {
  color: #435a56;
}

body[data-theme="light"] .projects-results article,
body[data-theme="light"] .project-featured-case,
body[data-theme="light"] .project-case-card {
  border-color: rgba(0, 107, 92, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(248, 244, 238, 0.62)),
    rgba(248, 244, 238, 0.9);
}

body[data-theme="light"] .project-filter-bar button,
body[data-theme="light"] .case-status,
body[data-theme="light"] .case-pill,
body[data-theme="light"] .case-meta strong,
body[data-theme="light"] .case-proof span,
body[data-theme="light"] .project-impact-grid article {
  border-color: rgba(0, 107, 92, 0.18);
  background: rgba(0, 107, 92, 0.07);
  color: #12312f;
}

body[data-theme="light"] .case-body h3 {
  color: #062522;
}

@media (max-width: 1100px) {
  .projects-hero,
  .project-featured-case {
    grid-template-columns: 1fr;
  }

  .project-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .projects-results article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .projects-hero h2 {
    font-size: 2.35rem;
  }

  .projects-results,
  .project-impact-grid,
  .project-case-grid {
    grid-template-columns: 1fr;
  }

  .project-featured-case {
    padding: 16px;
  }

  .project-filter-bar {
    gap: 8px;
  }

  .project-filter-bar button {
    flex: 0 1 auto;
    padding-inline: 12px;
  }

  .project-featured-case .project-feature-head {
    grid-template-columns: 1fr;
  }

  .project-featured-case h3 {
    font-size: 1.86rem;
  }

  .project-case-card {
    min-height: auto;
  }

  .case-media {
    min-height: 146px;
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 52px;
}

.space-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  align-items: stretch;
}

/* Mini Juego: arena, stats, controls, and ranking. */
.game-panel,
.ranking-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(9, 12, 17, 0.82);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
}

.game-panel {
  overflow: hidden;
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.game-stats article {
  min-height: 104px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.game-stats article:last-child {
  border-right: 0;
}

.game-stats span,
.ranking-heading span,
.player-field span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.game-stats strong {
  color: var(--text);
  font-size: 2.35rem;
  line-height: 1;
}

.game-arena {
  position: relative;
  height: 430px;
  overflow: hidden;
  touch-action: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 209, 102, 0.95) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 35%, rgba(103, 212, 255, 0.9) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 44% 72%, rgba(255, 255, 255, 0.82) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 12%, rgba(255, 91, 159, 0.32), transparent 11rem),
    radial-gradient(circle at 14% 88%, rgba(80, 237, 255, 0.25), transparent 13rem),
    linear-gradient(165deg, #090525 0%, #11134a 48%, #071426 100%);
  background-size: 94px 94px, 137px 137px, 72px 72px, auto, auto, auto;
  cursor: crosshair;
}

.game-arena::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(103, 212, 255, 0.05) 70%, rgba(128, 242, 177, 0.14) 100%);
  pointer-events: none;
}

.arena-message {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(420px, calc(100% - 40px));
  transform: translate(-50%, -50%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 7, 10, 0.72);
  text-align: center;
  pointer-events: none;
}

.arena-message span {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.arena-message strong {
  display: block;
  color: #eef2f8;
  font-size: 1.25rem;
  line-height: 1.35;
}

.arena-message.is-hidden {
  opacity: 0;
}

.player-ship,
.enemy-fighter,
.laser-shot,
.space-explosion {
  position: absolute;
  pointer-events: none;
}

.player-ship {
  z-index: 6;
  bottom: 20px;
  width: 52px;
  height: 62px;
  border-radius: 50% 50% 35% 35%;
  background: linear-gradient(90deg, #5ae7ff, #f8ffff 42%, #ffffff 58%, #80f2b1);
  clip-path: polygon(50% 0, 76% 38%, 100% 76%, 68% 66%, 61% 100%, 39% 100%, 32% 66%, 0 76%, 24% 38%);
  filter: drop-shadow(0 0 8px #67d4ff) drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
}

.player-ship::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 20px;
  width: 12px;
  height: 18px;
  border-radius: 50% 50% 35% 35%;
  background: linear-gradient(#fff5a6, #ff5b9f);
  box-shadow: 0 0 10px #ff5b9f;
}

.player-ship::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 20px;
  width: 12px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(#ffffff, #67d4ff 45%, transparent);
  filter: blur(1px);
  animation: enginePulse 160ms ease-in-out infinite alternate;
}

.enemy-fighter {
  z-index: 4;
  width: 46px;
  height: 42px;
  background: linear-gradient(135deg, var(--enemy-a), var(--enemy-b));
  clip-path: polygon(50% 100%, 37% 65%, 0 83%, 16% 40%, 35% 30%, 50% 0, 65% 30%, 84% 40%, 100% 83%, 63% 65%);
  filter: drop-shadow(0 0 8px var(--enemy-a));
}

.enemy-fighter::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 18px;
  width: 10px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 8px #ffffff;
}

.enemy-fighter.color-1 { --enemy-a: #ff5b9f; --enemy-b: #ff9a62; }
.enemy-fighter.color-2 { --enemy-a: #8a5cff; --enemy-b: #52e5ff; }
.enemy-fighter.color-3 { --enemy-a: #ffe56b; --enemy-b: #64f2a7; }
.enemy-fighter.color-4 { --enemy-a: #ff6b6b; --enemy-b: #b83bff; }

.laser-shot {
  z-index: 5;
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 5px #ffffff, 0 0 12px #52e5ff, 0 0 20px #52e5ff;
}

.space-explosion {
  z-index: 7;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 8px #ffe56b, 0 0 0 18px rgba(255, 91, 159, 0.62), 0 0 36px 26px rgba(82, 229, 255, 0.34);
  animation: spaceBurst 320ms ease-out forwards;
}

.game-arena.is-hit {
  animation: arenaHit 220ms ease-out;
}

@keyframes enginePulse {
  to { transform: scaleY(1.35); opacity: 0.7; }
}

@keyframes spaceBurst {
  to { transform: scale(1.8); opacity: 0; }
}

@keyframes arenaHit {
  50% { box-shadow: inset 0 0 0 4px rgba(255, 91, 159, 0.8), inset 0 0 55px rgba(255, 91, 159, 0.45); }
}

.game-controls {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.player-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

body[data-theme="light"] .player-field input,
body[data-theme="light"] .ranking-list li,
body[data-theme="light"] .about-stats article {
  border-color: rgba(0, 107, 92, 0.18);
  background: rgba(255, 255, 255, 0.62);
  color: #12312f;
}

body[data-theme="light"] .game-stats strong,
body[data-theme="light"] .metric-grid strong,
body[data-theme="light"] .ranking-heading strong,
body[data-theme="light"] .about-stats strong {
  color: #062522;
}

.player-field input:focus {
  border-color: rgba(128, 242, 177, 0.72);
}

.ranking-panel {
  padding: 22px;
}

.ranking-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ranking-heading span {
  margin-bottom: 0;
}

.ranking-heading strong {
  color: var(--green);
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style-position: inside;
}

.ranking-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #eef2f8;
  font-weight: 800;
}

.ranking-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.sticky-heading {
  position: sticky;
  top: 110px;
  align-self: start;
  margin-bottom: 0;
}

/* Services and method timeline. */
.service-list {
  display: grid;
  gap: 12px;
}

.service-list article {
  padding: 26px;
  border-top: 1px solid var(--line);
}

.service-number,
.timeline span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.timeline article {
  min-height: 270px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.045);
  border-right: 1px solid var(--line);
}

.timeline article:last-child {
  border-right: 0;
}

.services-showcase {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.services-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
  gap: 34px;
  align-items: stretch;
  overflow: hidden;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid rgba(128, 242, 177, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 8%, rgba(128, 242, 177, 0.22), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(103, 212, 255, 0.2), transparent 28%),
    radial-gradient(circle at 64% 100%, rgba(255, 148, 120, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(8, 11, 17, 0.84);
}

.services-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(128, 242, 177, 0.54), transparent);
}

.services-copy {
  position: relative;
  z-index: 1;
}

.services-copy h2,
.services-close h2 {
  max-width: 860px;
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.92;
}

.services-copy p:not(.eyebrow),
.services-close p:not(.eyebrow) {
  max-width: 720px;
  color: #dce2ed;
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 650;
}

.services-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.services-proof-card {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 360px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(6, 9, 13, 0.26), rgba(255, 255, 255, 0.05)),
    rgba(8, 12, 18, 0.62);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.services-proof-card::before {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 138px;
  height: 138px;
  border: 1px dashed rgba(128, 242, 177, 0.26);
  border-radius: 50%;
}

.services-proof-card img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(6, 7, 10, 0.38);
}

.services-proof-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.services-proof-card strong {
  display: block;
  max-width: 320px;
  color: var(--text);
  font-size: 2rem;
  line-height: 1.04;
}

.services-proof-card ul,
.service-list-redesign ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.services-proof-card li,
.service-list-redesign li {
  position: relative;
  padding-left: 22px;
  color: #dce2ed;
  font-weight: 750;
  line-height: 1.45;
}

.services-proof-card li::before,
.service-list-redesign li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(128, 242, 177, 0.4);
}

.service-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.service-value-grid article {
  display: grid;
  gap: 14px;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.045);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-value-grid article:hover,
.service-list-redesign article:hover {
  transform: translateY(-5px);
  border-color: rgba(128, 242, 177, 0.34);
}

.service-value-icon,
.service-card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(128, 242, 177, 0.12);
  color: var(--green);
}

.service-value-icon svg,
.service-card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-value-grid strong {
  color: var(--text);
  font-size: 1.35rem;
}

.service-value-grid p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.58;
}

.service-list-redesign {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.service-list-redesign article {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 420px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 12%, rgba(103, 212, 255, 0.12), transparent 32%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.045);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.service-list-redesign article:nth-child(2) {
  background:
    radial-gradient(circle at 80% 12%, rgba(128, 242, 177, 0.14), transparent 32%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.045);
}

.service-list-redesign article:nth-child(3) {
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 148, 120, 0.14), transparent 32%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.045);
}

.service-list-redesign .service-number {
  margin-bottom: 18px;
}

.service-list-redesign .service-card-icon {
  margin-bottom: 26px;
}

.service-list-redesign h3 {
  margin-bottom: 14px;
}

.service-list-redesign p {
  margin-bottom: 0;
}

.services-close {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 26px;
  align-items: stretch;
  margin-top: 14px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 148, 120, 0.13), transparent 34%),
    linear-gradient(150deg, rgba(103, 212, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(10, 12, 18, 0.78);
}

.services-close h2 {
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
}

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

.service-timeline article {
  min-height: 210px;
}

.service-timeline article:nth-child(2) {
  border-right: 0;
}

.service-timeline article:nth-child(1),
.service-timeline article:nth-child(2) {
  border-bottom: 1px solid var(--line);
}

body[data-theme="light"] .services-hero,
body[data-theme="light"] .services-proof-card,
body[data-theme="light"] .service-value-grid article,
body[data-theme="light"] .service-list-redesign article,
body[data-theme="light"] .services-close {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.24)),
    rgba(248, 244, 238, 0.82);
}

body[data-theme="light"] .services-copy p:not(.eyebrow),
body[data-theme="light"] .services-close p:not(.eyebrow),
body[data-theme="light"] .services-proof-card li,
body[data-theme="light"] .service-list-redesign li {
  color: #2d4140;
}

/* Solutions page: persuasive two-column service presentation. */
.solutions-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: clamp(36px, 6vw, 78px);
  width: min(var(--max), calc(100% - 32px));
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: clamp(58px, 7vh, 92px) 0 70px;
  align-items: center;
}

.solutions-intro {
  max-width: 640px;
}

.solutions-intro .eyebrow {
  margin-bottom: 22px;
  color: var(--green);
  font-size: 0.92rem;
}

.solutions-intro h1 {
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 5.35vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.solutions-intro > p {
  max-width: 590px;
  color: #d8dee9;
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.72;
}

.solutions-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.solutions-benefits article {
  display: grid;
  gap: 9px;
  align-content: start;
}

.solutions-benefits span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--green);
}

.solutions-benefits svg,
.solutions-cta svg,
.solution-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.solutions-benefits .fi,
.solutions-cta .fi,
.solution-icon .fi {
  width: 100%;
  height: 100%;
  font-size: 2.15rem;
}

.solutions-benefits strong,
.solutions-benefits small {
  display: block;
}

.solutions-benefits strong {
  color: var(--text);
  font-size: 0.92rem;
}

.solutions-benefits small {
  color: #d8dee9;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.solutions-cta {
  justify-content: space-between;
  width: min(340px, 100%);
  min-height: 58px;
  margin-top: 28px;
  padding-inline: 22px;
  border-color: rgba(16, 239, 204, 0.62);
  background: rgba(0, 214, 181, 0.06);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(16, 239, 204, 0.08), 0 0 26px rgba(16, 239, 204, 0.07);
}

.solutions-cta .btn-icon,
.solutions-cta .cta-arrow {
  color: var(--green);
}

.solutions-cta .cta-arrow {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.solutions-list {
  display: grid;
  gap: 16px;
}

.solution-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  min-height: 150px;
  padding: 24px;
  border: 1px solid rgba(218, 228, 244, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(16, 239, 204, 0.06), transparent 42%),
    rgba(8, 12, 18, 0.64);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 239, 204, 0.46);
  background:
    linear-gradient(120deg, rgba(16, 239, 204, 0.1), transparent 46%),
    rgba(10, 16, 24, 0.78);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
}

.solution-icon {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(16, 239, 204, 0.2);
  border-radius: 8px;
  background: rgba(16, 239, 204, 0.045);
  color: var(--green);
}

.solution-icon svg {
  width: 50px;
  height: 50px;
}

.solution-icon .fi {
  width: 50px;
  height: 50px;
  font-size: 2.85rem;
}

.solution-number {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 1rem;
  font-weight: 900;
}

.solution-card h2 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(1.55rem, 2.1vw, 2.05rem);
  line-height: 1.06;
}

.solution-card p {
  max-width: 560px;
  margin: 0;
  color: #d8dee9;
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.48;
}

body[data-theme="light"] .solutions-intro > p,
body[data-theme="light"] .solutions-benefits small,
body[data-theme="light"] .solution-card p {
  color: #2d4140;
}

body[data-theme="light"] .solution-card {
  border-color: rgba(0, 107, 92, 0.18);
  background:
    linear-gradient(120deg, rgba(0, 107, 92, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.64);
}

body[data-theme="light"] .solution-icon {
  border-color: rgba(0, 107, 92, 0.2);
  background: rgba(0, 107, 92, 0.06);
}

body[data-theme="light"] .solutions-cta {
  border-color: rgba(0, 107, 92, 0.44);
  background: rgba(0, 107, 92, 0.08);
  color: #12312f;
}

/* Contact and footer. */
.contact-section {
  position: relative;
  overflow: hidden;
  margin-top: 52px;
  padding: 60px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 148, 120, 0.15), transparent 34%),
    linear-gradient(150deg, rgba(103, 212, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(10, 12, 18, 0.82);
}

.contact-brand {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(6, 7, 10, 0.44);
  opacity: 0.72;
}

.contact-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-details a {
  min-height: 42px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #eef2f8;
  font-size: 0.92rem;
  font-weight: 700;
}

/* Contact redesign: direct invitation and trust cards. */
.contact-redesign {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: 42px;
  padding: clamp(34px, 5vw, 62px);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.contact-hero-copy {
  position: relative;
  z-index: 2;
}

.contact-redesign h2 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.85rem, 5.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 7px 0 rgba(0, 0, 0, 0.22);
}

.contact-redesign h2 span {
  color: #44e5bc;
}

.contact-hero-copy > p:not(.eyebrow) {
  max-width: 520px;
  color: rgba(238, 242, 248, 0.74);
  font-size: 1.15rem;
  line-height: 1.64;
}

.contact-primary-actions {
  gap: 14px;
  margin-top: 30px;
}

.contact-primary-actions .btn {
  min-width: 210px;
  justify-content: space-between;
  padding-inline: 18px;
}

.contact-primary-actions .btn.primary {
  background: linear-gradient(135deg, #70ffd7, #1edcb6);
  color: #001f23;
  box-shadow: 0 18px 42px rgba(24, 240, 197, 0.28);
}

.contact-arrow {
  width: 22px;
  height: 22px;
  margin-left: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  font-size: 1.08rem;
}

.contact-copy-list {
  display: grid;
  grid-template-columns: minmax(210px, auto) 42px minmax(190px, auto) 42px;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 24px;
}

.contact-copy-list a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

.contact-detail-icon,
.contact-copy {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.contact-detail-icon svg,
.contact-copy svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail-icon .fi,
.contact-copy .fi {
  width: 18px;
  height: 18px;
  font-size: 1rem;
}

.contact-copy {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(238, 242, 248, 0.84);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.contact-copy:hover,
.contact-copy.is-copied {
  transform: translateY(-2px);
  border-color: rgba(24, 240, 197, 0.54);
  color: #44e5bc;
}

.contact-visual {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.contact-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(460px, 86vw);
  height: min(460px, 86vw);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 58%, rgba(86, 255, 204, 0.2), transparent 30%),
    radial-gradient(circle at 48% 48%, rgba(16, 50, 56, 0.42), transparent 66%);
  filter: blur(28px);
  opacity: 0.7;
  transform: translate(-50%, -50%);
}

.contact-orbit {
  position: absolute;
  width: min(390px, 82%);
  aspect-ratio: 1;
  border: 1px solid rgba(88, 222, 185, 0.25);
  border-radius: 50%;
  box-shadow: inset 0 0 70px rgba(24, 240, 197, 0.08), 0 0 80px rgba(24, 240, 197, 0.08);
}

.contact-orbit::before {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(88, 222, 185, 0.28);
  border-radius: 50%;
}

.contact-logo-orb {
  position: absolute;
  top: 20px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(4, 11, 18, 0.58);
}

.contact-logo-orb img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.contact-envelope {
  position: relative;
  z-index: 2;
  width: min(280px, 64vw);
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(145deg, #111925, #070b12);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38), 0 0 80px rgba(68, 229, 188, 0.22);
}

.contact-envelope::before {
  content: "";
  position: absolute;
  inset: auto 0 -38px;
  height: 46px;
  background: radial-gradient(ellipse, rgba(111, 255, 215, 0.58), transparent 68%);
  filter: blur(10px);
}

.contact-letter {
  position: absolute;
  right: 26px;
  bottom: 58px;
  left: 26px;
  display: grid;
  place-items: center;
  height: 122px;
  border-radius: 12px;
  background: linear-gradient(145deg, #b8ffd9, #34d7aa);
  box-shadow: 0 18px 50px rgba(24, 240, 197, 0.26);
}

.contact-letter img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  opacity: 0.62;
}

.envelope-fold {
  position: absolute;
  bottom: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
}

.fold-left {
  left: 0;
  clip-path: polygon(0 24%, 100% 62%, 0 100%);
}

.fold-right {
  right: 0;
  clip-path: polygon(100% 24%, 0 62%, 100% 100%);
}

.contact-bubble {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 240, 197, 0.22);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(98, 240, 193, 0.26), rgba(4, 12, 18, 0.82));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  transform: rotate(-10deg);
}

.bubble-heart {
  left: 10%;
  bottom: 22%;
  width: 78px;
  height: 78px;
}

.bubble-heart svg {
  width: 36px;
  height: 36px;
  fill: #55f0bf;
  stroke: #55f0bf;
}

.bubble-heart .fi {
  width: 36px;
  height: 36px;
  color: #55f0bf;
  font-size: 2rem;
}

.bubble-chat {
  top: 24%;
  right: 8%;
  grid-template-columns: repeat(3, 10px);
  gap: 8px;
  width: 100px;
  height: 70px;
  transform: rotate(12deg);
}

.bubble-chat span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #55f0bf;
  box-shadow: 0 0 14px rgba(85, 240, 191, 0.7);
}

.contact-trust-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.contact-trust-grid article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 118px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(24, 240, 197, 0.32);
  border-radius: 50%;
  background: rgba(24, 240, 197, 0.08);
}

.trust-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #44e5bc;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-icon .fi {
  width: 30px;
  height: 30px;
  color: #44e5bc;
  font-size: 1.75rem;
}

.contact-trust-grid h3 {
  margin-bottom: 7px;
  color: #f8fbff;
  font-size: 1rem;
}

.contact-trust-grid p {
  color: rgba(238, 242, 248, 0.68);
  font-size: 0.9rem;
  line-height: 1.5;
}

.site-footer {
  display: grid;
  gap: 22px;
  padding: 38px 0 54px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.icon-credit {
  color: color-mix(in srgb, var(--muted), transparent 12%);
}

.icon-credit a {
  color: var(--green);
  font-weight: 800;
}

.site-footer .theme-rail {
  justify-self: center;
}

[data-reveal] {
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .header-action {
    display: none;
  }

  .nav {
    max-width: calc(100% - 220px);
  }
}

/* Tablet and mobile layout, including bottom navigation behavior. */
@media (max-width: 900px) {
  .theme-rail {
    width: min(520px, calc(100% - 32px));
    height: 62px;
  }

  .theme-track {
    bottom: 14px;
  }

  .theme-toggle {
    width: 46px;
    height: 46px;
  }

  .theme-toggle::after {
    top: 46px;
    height: 26px;
  }

  .site-header {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    position: fixed;
    top: auto;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 16px;
    z-index: 20;
    width: auto;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    max-height: none;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: visible;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
    transition: opacity 180ms ease, transform 220ms ease;
  }

  .nav.is-mobile-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    padding: 6px 3px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(6, 7, 10, 0.86);
    color: #f7f8fb;
    font-size: 0.72rem;
    line-height: 1.08;
    white-space: normal;
    text-align: center;
  }

  .nav a:hover {
    border-color: rgba(128, 242, 177, 0.42);
    background: rgba(16, 21, 26, 0.94);
  }

  .nav a[aria-current="page"] {
    border-color: rgba(128, 242, 177, 0.62);
    background: #17342c;
    color: #9ff4c2;
  }

  body[data-theme="light"] .nav a {
    border-color: rgba(6, 49, 46, 0.18);
    background: rgba(248, 244, 238, 0.94);
    color: #12312f;
  }

  body[data-theme="light"] .nav a:hover {
    border-color: rgba(0, 107, 92, 0.38);
    background: #e2eee9;
  }

  body[data-theme="light"] .nav a[aria-current="page"] {
    border-color: #006b5c;
    background: #006b5c;
    color: #f8f4ee;
  }

  .hero,
  .intro-band,
  .services-hero,
  .services-close,
  .space-game,
  .contact-redesign,
  .split {
    grid-template-columns: 1fr;
  }

  .about-copy h2 {
    font-size: 2.65rem;
  }

  .about-card {
    min-height: auto;
  }

  .about-section {
    padding: 60px clamp(18px, 4vw, 32px) 70px;
  }

  .about-solutions {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: auto;
    padding: 72px 0;
  }

  .about-section::before {
    inset: 20px 0 18px;
  }

  .about-experience {
    grid-template-columns: 1fr;
  }

  .about-solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-orbit-card {
    min-height: 280px;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  h1 {
    font-size: 5.6rem;
  }

  .hero-lead {
    font-size: 1.18rem;
  }

  .personal-mark {
    margin-top: 16px;
  }

  .section-heading h2,
  .contact-section h2 {
    font-size: 3.25rem;
  }

  .project-card h3,
  .service-list h3,
  .timeline h3 {
    font-size: 2rem;
  }

  .contact-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-copy-list {
    grid-template-columns: minmax(0, 1fr) 42px;
    width: 100%;
  }

  .hero-visual {
    min-height: auto;
  }

  .profile-frame {
    margin-inline: auto;
  }

  .sticky-heading {
    position: static;
  }

  .product-window {
    width: min(520px, 100%);
    margin: 28px auto 0;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stack-list {
    justify-content: flex-start;
  }

  .project-card,
  .project-card.featured,
  .project-card.project-wide,
  .project-card.project-narrow {
    grid-column: span 6;
  }

  .project-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-heading-aside {
    justify-content: flex-start;
    text-align: left;
  }

  .project-case-layout {
    grid-template-columns: 1fr;
  }

  .services-showcase {
    padding: 72px 0;
  }

  .service-value-grid,
  .service-list-redesign {
    grid-template-columns: 1fr;
  }

  .solutions-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 82px;
  }

  .solutions-intro {
    max-width: none;
  }

  .solutions-list {
    gap: 14px;
  }

  .solution-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 24px;
  }

  .solution-icon {
    width: 86px;
    height: 86px;
  }

  .solution-icon svg,
  .solution-icon .fi {
    width: 48px;
    height: 48px;
  }

  .service-list-redesign article {
    min-height: auto;
  }

  .services-proof-card {
    min-height: 300px;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline article:nth-child(2) {
    border-right: 0;
  }

  .ranking-panel {
    order: -1;
  }
}

/* Small phones. */
@media (max-width: 620px) {
  .theme-rail {
    width: 100%;
    height: 54px;
  }

  .theme-track {
    opacity: 0.48;
  }

  .theme-toggle {
    width: 42px;
    height: 42px;
  }

  .theme-toggle::after {
    top: 42px;
    height: 20px;
  }

  .brand {
    max-width: calc(100% - 104px);
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-action {
    display: none;
  }

  .personal-mark,
  .contact-brand {
    display: none;
  }

  .nav {
    right: 12px;
    left: 12px;
    gap: 1px;
  }

  .nav a {
    justify-content: center;
    min-height: 44px;
    padding-inline: 2px;
    font-size: 0.67rem;
  }

  h1 {
    font-size: 3.75rem;
  }

  .intro-band p {
    font-size: 1.38rem;
  }

  .about-section {
    padding: 42px 16px 56px;
  }

  .about-solutions {
    padding: 54px 0 64px;
  }

  .about-line-kicker {
    grid-template-columns: auto minmax(42px, 100px);
    margin-bottom: 22px;
    font-size: 0.86rem;
  }

  .about-kicker {
    padding: 7px 10px;
  }

  .about-copy h2,
  .about-solutions-copy h2 {
    font-size: 2.05rem;
  }

  .about-copy p:not(.eyebrow),
  .about-panel p,
  .about-solutions-copy p:not(.eyebrow),
  .about-solution-card p {
    font-size: 0.96rem;
  }

  .about-service-chips {
    gap: 10px;
    margin-top: 24px;
  }

  .about-service-chips span {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 0.84rem;
  }

  .about-cta {
    width: 100%;
    min-width: 0;
    margin-top: 30px;
  }

  .about-solution-grid {
    grid-template-columns: 1fr;
  }

  .about-solution-card {
    min-height: auto;
    padding: 26px;
  }

  .about-solution-card h3 {
    font-size: 1.7rem;
  }

  .about-solution-icon {
    width: 66px;
    height: 66px;
  }

  .about-tabs,
  .about-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-panel {
    min-height: auto;
    padding: 18px;
  }

  .about-orbit-card {
    min-height: 238px;
  }

  .about-orbit-ring {
    inset: 50px 24px;
  }

  .about-orbit-logo {
    width: 82px;
    height: 82px;
  }

  .about-orbit-logo img {
    width: 52px;
    height: 52px;
  }

  .about-orbit-chip {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  .chip-product {
    right: 18px;
  }

  .about-stats article {
    min-height: 86px;
    padding: 12px 10px;
  }

  .about-stats strong {
    margin-bottom: 10px;
    font-size: 0.9rem;
  }

  .about-stats span {
    font-size: 0.74rem;
  }

  .about-process {
    grid-template-columns: 1fr;
  }

  .services-showcase {
    width: min(var(--max), calc(100% - 24px));
    padding: 48px 0 62px;
  }

  .solutions-section {
    width: min(var(--max), calc(100% - 24px));
    padding: 52px 0 68px;
  }

  .solutions-intro h1 {
    font-size: 3.05rem;
  }

  .solutions-intro > p {
    font-size: 1rem;
  }

  .solutions-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .solutions-benefits span {
    width: 46px;
    height: 46px;
  }

  .solutions-cta {
    width: 100%;
  }

  .solution-card {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 18px;
    padding: 22px;
  }

  .solution-icon {
    width: 78px;
    height: 78px;
  }

  .solution-card h2 {
    font-size: 1.52rem;
  }

  .solution-card p {
    font-size: 0.98rem;
  }

  .services-hero,
  .services-close {
    padding: 22px;
  }

  .services-copy h2 {
    font-size: 2.55rem;
  }

  .services-copy p:not(.eyebrow),
  .services-close p:not(.eyebrow) {
    font-size: 0.98rem;
  }

  .services-actions .btn {
    width: 100%;
  }

  .services-proof-card {
    min-height: auto;
  }

  .services-proof-card strong {
    font-size: 1.62rem;
  }

  .service-value-grid article,
  .service-list-redesign article {
    padding: 20px;
  }

  .service-timeline {
    grid-template-columns: 1fr;
  }

  .service-timeline article,
  .service-timeline article:nth-child(2),
  .service-timeline article:nth-child(1) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-heading h2,
  .contact-section h2 {
    font-size: 2.42rem;
  }

  .project-card h3,
  .service-list h3,
  .timeline h3 {
    font-size: 1.65rem;
  }

  .client-case-proof {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .game-controls,
  .timeline {
    grid-template-columns: 1fr;
  }

  .game-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-frame {
    width: min(343px, 100%);
  }

  .product-window {
    margin-top: 18px;
  }

  .metric-grid article {
    min-height: 104px;
  }

  .game-stats article {
    min-height: 86px;
    border-bottom: 1px solid var(--line);
  }

  .game-stats article:nth-child(2n) {
    border-right: 0;
  }

  .game-stats article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .game-arena {
    height: 360px;
  }

  .game-controls .btn {
    width: 100%;
  }

  .timeline article,
  .timeline article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline article:last-child {
    border-bottom: 0;
  }

  .project-card {
    min-height: auto;
    padding: 22px;
  }

  .project-art {
    margin: -22px -22px 24px;
  }

  .project-art--commerce {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 24px 18px;
  }

  .commerce-bars {
    gap: 6px;
  }

  .project-art--personal {
    gap: 16px;
    padding: 24px 18px;
  }

  .project-art--personal img {
    width: 70px;
    height: 70px;
  }

  .project-showcase-stage {
    aspect-ratio: 4 / 3;
  }

  .project-showcase {
    grid-template-columns: 1fr;
  }

  .project-showcase-main {
    padding: 24px 12px 44px;
  }

  .project-showcase-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: none;
    margin-top: 8px;
  }

  .project-showcase-thumbs button:hover,
  .project-showcase-thumbs button:focus-visible,
  .project-showcase-thumbs button.is-active {
    transform: translateY(-2px);
  }

  .project-showcase-stage figcaption {
    padding: 8px 10px;
  }

  .project-highlights {
    grid-template-columns: 1fr;
  }

  .project-feature-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-company {
    justify-items: start;
    text-align: left;
  }

  .project-company img {
    width: min(180px, 72%);
  }

  .project-highlights li {
    min-height: auto;
  }

  .project-card.featured .project-kicker {
    margin-bottom: 28px;
  }

  .project-kicker {
    margin-bottom: 48px;
  }

  .contact-section {
    padding: 32px 22px;
  }

  .contact-redesign {
    margin-top: 28px;
    padding: 28px 18px;
  }

  .contact-redesign h2 {
    font-size: 2.38rem;
  }

  .contact-hero-copy > p:not(.eyebrow) {
    font-size: 0.98rem;
  }

  .contact-primary-actions .btn,
  .contact-copy-list a {
    width: 100%;
  }

  .contact-visual {
    min-height: 300px;
  }

  .contact-envelope {
    width: min(230px, 72vw);
    height: 140px;
  }

  .contact-letter {
    right: 22px;
    bottom: 48px;
    left: 22px;
    height: 100px;
  }

  .bubble-heart {
    width: 62px;
    height: 62px;
  }

  .bubble-chat {
    width: 78px;
    height: 58px;
  }

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

  .contact-trust-grid article {
    min-height: auto;
    padding: 16px;
  }

  .site-footer {
    padding-bottom: 92px;
  }

  .footer-copy {
    flex-direction: column;
  }
}

/* Fresh project experience: concise cards, motion and dedicated case pages. */
.projects-catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.catalog-project-card {
  --card-rotate-x: 0deg;
  --card-rotate-y: 0deg;
  --card-glow-x: 50%;
  --card-glow-y: 50%;
  position: relative;
  isolation: isolate;
  transform: perspective(900px) rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y));
  transform-style: preserve-3d;
  will-change: transform;
}

.catalog-project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(circle at var(--card-glow-x) var(--card-glow-y), rgba(128, 242, 177, 0.2), transparent 30%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.catalog-project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 1px solid transparent;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(103, 212, 255, 0.58), transparent 34%, transparent 66%, rgba(128, 242, 177, 0.42)) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.catalog-project-card:hover {
  transform: perspective(900px) translateY(-7px) rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y));
}

.catalog-project-card:hover::before,
.catalog-project-card:hover::after {
  opacity: 1;
}

.catalog-project-card .catalog-project-media,
.catalog-project-card .catalog-project-body {
  transform: translateZ(18px);
}

.catalog-project-card .catalog-project-link {
  width: 100%;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.catalog-project-body {
  min-height: 290px;
  padding: 25px;
}

.catalog-project-body h2 {
  font-size: 1.38rem;
}

.catalog-project-nyce img {
  animation: projectScreenFloat 5.5s ease-in-out infinite;
}

.catalog-project-megabyte img {
  animation: projectLogoBreathe 4.2s ease-in-out infinite;
}

.catalog-project-commerce .catalog-store-window {
  animation: projectStoreFloat 5s ease-in-out infinite;
}

@keyframes projectScreenFloat {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-8px) rotate(0.4deg); }
}

@keyframes projectLogoBreathe {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(103, 212, 255, 0)); }
  50% { filter: drop-shadow(0 10px 22px rgba(103, 212, 255, 0.25)); }
}

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

.project-detail {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 110px;
}

.project-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 180ms ease, transform 180ms ease;
}

.project-detail-back:hover {
  color: var(--green);
  transform: translateX(-4px);
}

.project-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 58px;
  min-height: 620px;
}

.project-detail-copy h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 4.4vw, 4.8rem);
  line-height: 0.94;
}

.project-detail-copy > p {
  max-width: 610px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.project-detail-cover {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 480px;
  margin: 0;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: radial-gradient(circle at 50% 20%, rgba(103, 212, 255, 0.18), transparent 55%), rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.project-detail-cover-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  animation: projectScreenFloat 5.5s ease-in-out infinite;
}

.project-detail-logo {
  align-content: center;
  gap: 24px;
}

.project-detail-logo img {
  width: min(390px, 80%);
}

.project-detail-logo span {
  padding: 9px 15px;
  border: 1px solid rgba(103, 212, 255, 0.22);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 850;
}

.project-detail-story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 64px 0;
}

.project-detail-story article {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.project-detail-story article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 42px;
  border-radius: 50%;
  background: rgba(128, 242, 177, 0.12);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.project-detail-story h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.project-detail-story p,
.project-detail-feature p {
  color: var(--muted);
  line-height: 1.65;
}

.project-detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 64px 0;
}

.project-detail-gallery img {
  width: 100%;
  min-height: 270px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  object-fit: contain;
  transition: transform 220ms ease, border-color 220ms ease;
}

.project-detail-gallery img:hover {
  transform: translateY(-6px);
  border-color: rgba(128, 242, 177, 0.4);
}

.project-detail-feature {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  margin: 64px 0;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: radial-gradient(circle at 15% 50%, rgba(103, 212, 255, 0.16), transparent 30%), rgba(255, 255, 255, 0.035);
}

.project-detail-feature-icon {
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
  border-radius: 30px;
  background: rgba(103, 212, 255, 0.12);
  color: var(--blue);
  font-size: 3.2rem;
  animation: projectLogoBreathe 4.2s ease-in-out infinite;
}

.project-detail-feature h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.project-detail-feature-commerce {
  background: radial-gradient(circle at 15% 50%, rgba(243, 215, 117, 0.17), transparent 30%), rgba(255, 255, 255, 0.035);
}

.project-detail-feature-commerce .project-detail-feature-icon {
  background: rgba(243, 215, 117, 0.12);
  color: var(--yellow);
}

.project-detail-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
  margin-top: 72px;
  padding: 58px;
  border: 1px solid rgba(128, 242, 177, 0.3);
  border-radius: 30px;
  background: radial-gradient(circle at 85% 20%, rgba(103, 212, 255, 0.14), transparent 36%), rgba(128, 242, 177, 0.07);
}

.project-detail-cta h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.02;
}

.project-detail-cta .btn {
  flex: 0 0 auto;
}

body[data-theme="light"] .project-detail-cover,
body[data-theme="light"] .project-detail-story article,
body[data-theme="light"] .project-detail-gallery img,
body[data-theme="light"] .project-detail-feature {
  background-color: rgba(255, 255, 255, 0.58);
  box-shadow: 0 20px 60px rgba(52, 46, 38, 0.1);
}

body[data-theme="light"] .project-detail-copy > p,
body[data-theme="light"] .project-detail-story p,
body[data-theme="light"] .project-detail-feature p {
  color: #435a56;
}

@media (max-width: 1050px) {
  .projects-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-detail-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .project-detail-copy {
    max-width: 760px;
  }
}

@media (max-width: 700px) {
  .projects-catalog-grid,
  .project-detail-story,
  .project-detail-gallery {
    grid-template-columns: 1fr;
  }

  .catalog-project-body {
    min-height: 0;
  }

  .project-detail {
    padding-top: 28px;
  }

  .project-detail-hero {
    gap: 34px;
  }

  .project-detail-copy h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .project-detail-cover {
    min-height: 310px;
    padding: 22px;
  }

  .project-detail-story article {
    min-height: 0;
  }

  .project-detail-story article > span {
    margin-bottom: 26px;
  }

  .project-detail-gallery img {
    min-height: 220px;
  }

  .project-detail-feature {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
  }

  .project-detail-feature-icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    font-size: 2.2rem;
  }

  .project-detail-cta {
    align-items: stretch;
    flex-direction: column;
    padding: 36px 24px;
  }

  .project-detail-cta .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-project-card,
  .catalog-project-nyce img,
  .catalog-project-megabyte img,
  .catalog-project-commerce .catalog-store-window,
  .project-detail-cover-image img,
  .project-detail-feature-icon {
    animation: none !important;
    transform: none !important;
  }
}
