:root {
  color-scheme: dark;
  --bg: #010307;
  --panel: rgba(4, 11, 23, 0.9);
  --panel-strong: rgba(6, 15, 31, 0.96);
  --line: rgba(136, 164, 219, 0.2);
  --line-strong: rgba(124, 158, 255, 0.45);
  --text: #eef3ff;
  --muted: #aeb9d2;
  --blue: #5d7cff;
  --blue-2: #93b0ff;
  --cyan: #67dfff;
  --green: #60f5be;
  --purple: #b578ff;
  --red: #ff7777;
  --warm: #f0c27a;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  --radius: 8px;
  --max: 1536px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(55, 119, 255, 0.11), transparent 34%),
    radial-gradient(circle at 80% 18%, rgba(73, 217, 255, 0.06), transparent 24%),
    linear-gradient(180deg, #000103 0%, #01040b 48%, #000103 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(87, 122, 195, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 122, 195, 0.024) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(180deg, transparent, black 12%, black 72%, transparent);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 14px 24px 56px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  width: 100vw;
  min-height: 64px;
  margin-inline: calc(50% - 50vw);
  padding: 0 clamp(18px, 4vw, 72px);
  border-bottom: 1px solid rgba(93, 124, 255, 0.16);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(0, 2, 8, 0.98), rgba(1, 5, 15, 0.88));
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-block;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.brand span,
.accent {
  color: var(--blue);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  min-width: 0;
}

.primary-nav a {
  position: relative;
  padding: 18px 0;
  color: rgba(244, 247, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav .mobile-contact-link {
  display: none;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue);
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.header-cta,
.button,
.real-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 45px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-cta {
  border-color: rgba(93, 124, 255, 0.68);
  color: #b9c9ff;
  background: rgba(11, 19, 39, 0.74);
  box-shadow:
    0 0 20px rgba(76, 116, 255, 0.12),
    inset 0 0 14px rgba(93, 124, 255, 0.08);
}

.button.primary,
.real-button {
  border-color: rgba(119, 151, 255, 0.48);
  background: linear-gradient(135deg, #6386ff 0%, #385de0 100%);
  box-shadow:
    0 16px 36px rgba(64, 99, 230, 0.3),
    0 0 24px rgba(89, 127, 255, 0.24);
}

.button.ghost {
  border-color: transparent;
  background: transparent;
}

.button:hover,
.header-cta:hover,
.real-button:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(12, 21, 39, 0.72);
  appearance: none;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

main {
  display: grid;
  gap: 20px;
}

.stage,
.content-section {
  position: relative;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(16, 31, 58, 0.58), rgba(4, 9, 19, 0.86)),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero {
  min-height: 518px;
  padding: 90px 42px 38px;
  border-color: transparent;
  border-radius: 0;
  background: #01040b;
  box-shadow: none;
  isolation: isolate;
}

.scene {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-repeat: no-repeat;
  background-size: cover;
  transition: filter 360ms ease, opacity 360ms ease;
}

.hero-scene {
  inset: 0 0 0 29%;
  background-image: url("./assets/images/led-hero-fit.png");
  background-position: 50% 50%;
  opacity: 1;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(1, 4, 11, 1) 0%, rgba(1, 4, 11, 1) 27%, rgba(1, 4, 11, 0.7) 36%, rgba(1, 4, 11, 0.04) 58%),
    linear-gradient(180deg, rgba(0, 2, 8, 0.28), transparent 28%, rgba(0, 2, 8, 0.2) 100%);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.75;
  background:
    radial-gradient(circle at 70% 18%, rgba(97, 202, 255, 0.18), transparent 20%),
    radial-gradient(circle at 82% 48%, rgba(94, 124, 255, 0.12), transparent 26%);
  transition: opacity 360ms ease;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-2);
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.content-section h1,
.about-copy h2 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(3.15rem, 4.05vw, 4.1rem);
  line-height: 1.08;
}

.hero .accent {
  text-shadow:
    0 0 16px rgba(93, 124, 255, 0.32),
    0 0 34px rgba(93, 124, 255, 0.18);
}

.lede,
.section-copy,
.about-copy p {
  max-width: 620px;
  color: #cbd4e8;
  font-size: 1.04rem;
  line-height: 1.65;
}

.lede {
  margin: 24px 0 0;
}

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


.social-rail {
  position: absolute;
  z-index: 4;
  right: 8px;
  top: 50%;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(125, 153, 218, 0.34);
  border-radius: var(--radius);
  background: rgba(14, 23, 43, 0.84);
  transform: translateY(-50%);
}

.social-rail a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(243, 247, 255, 0.88);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-rail a:hover {
  border-color: var(--line-strong);
  background: rgba(93, 124, 255, 0.12);
  transform: translateY(-2px);
}

.about-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(520px, 1fr);
  min-height: 370px;
  background:
    linear-gradient(135deg, rgba(12, 26, 51, 0.54), rgba(1, 5, 13, 0.92)),
    #01040b;
}

.about-visual {
  position: relative;
  min-height: 370px;
  background-image: url("./assets/images/led-bio-board.png");
  background-position: 50% 52%;
  background-repeat: no-repeat;
  background-size: cover;
  transition: filter 360ms ease;
}

.about-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 52% 48%, rgba(95, 180, 255, 0.18), transparent 30%),
    linear-gradient(90deg, transparent 55%, rgba(1, 4, 11, 0.66));
  transition: opacity 360ms ease;
}

.about-copy {
  display: grid;
  align-content: center;
  padding: clamp(36px, 4.6vw, 58px) clamp(28px, 4.2vw, 58px);
}

.about-copy h2 {
  font-size: clamp(2.25rem, 3.9vw, 3.5rem);
  line-height: 1.04;
}

.skill-grid,
.cards,
.timeline,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.skill-card,
.info-card,
.article-card {
  position: relative;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(76, 116, 255, 0.12), rgba(255, 255, 255, 0.018)),
    rgba(6, 13, 28, 0.88);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.skill-card:hover,
.info-card:hover,
.article-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 28px rgba(93, 124, 255, 0.13);
  transform: translateY(-3px);
}

.skill-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 20px 18px;
}

.skill-card svg {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  color: var(--blue);
}

.skill-card h3,
.info-card h2,
.article-card h2 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.35;
}

.skill-card p,
.info-card p,
.article-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.content-section {
  padding: clamp(38px, 6vw, 72px);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.42fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  min-height: 380px;
  padding: clamp(42px, 6vw, 76px);
}

.page-hero::after {
  position: absolute;
  right: clamp(32px, 7vw, 120px);
  bottom: clamp(28px, 5vw, 70px);
  width: clamp(180px, 22vw, 310px);
  height: clamp(112px, 14vw, 178px);
  content: "";
  border: 1px solid rgba(111, 146, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(33, 61, 126, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.34);
  transform: perspective(800px) rotateY(-12deg) rotateX(4deg);
}

.page-hero > div:first-child {
  position: relative;
  z-index: 2;
}

.page-hero h1,
.content-section h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.02;
}

.page-hero .panel-visual {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  min-height: 220px;
  padding: 28px 0;
  perspective: 900px;
  transform: perspective(900px) rotateY(-14deg) rotateX(4deg);
  transform-origin: right center;
}

.page-hero .panel-visual::before {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 25px;
  width: 2px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(93, 124, 255, 0.4), transparent);
}

.page-hero .panel-visual a {
  --led: #9bc6ff;
  --led-rgb: 98, 159, 255;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(var(--led-rgb), 0.74);
  border-radius: var(--radius);
  color: var(--led);
  background:
    linear-gradient(145deg, rgba(var(--led-rgb), 0.12), rgba(255, 255, 255, 0.02) 46%, rgba(0, 0, 0, 0.42)),
    rgba(4, 8, 15, 0.86);
  box-shadow:
    0 0 16px rgba(var(--led-rgb), 0.24),
    0 18px 36px rgba(0, 0, 0, 0.32),
    inset 0 0 20px rgba(var(--led-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(var(--led-rgb), 0.88),
    0 0 18px rgba(var(--led-rgb), 0.4);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.page-hero .panel-visual a::after {
  content: "→";
  color: rgba(238, 243, 255, 0.72);
  font-size: 1.35rem;
  line-height: 1;
}

.page-hero .panel-visual a:hover,
.page-hero .panel-visual a:focus-visible {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 24px rgba(var(--led-rgb), 0.44),
    0 22px 42px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(var(--led-rgb), 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  outline: 0;
  transform: translateX(-4px);
}

.page-hero .panel-visual a:nth-child(2) {
  --led: #81ffd6;
  --led-rgb: 88, 245, 190;
  margin-left: -10px;
}

.page-hero .panel-visual a:nth-child(3) {
  --led: #d2a5ff;
  --led-rgb: 181, 120, 255;
  margin-left: 4px;
}

.section-copy {
  margin: 20px 0 0;
}

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

.info-card span,
.article-card span,
.timeline time {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--blue-2);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.field {
  display: grid;
  gap: 8px;
}

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

.field label {
  color: var(--blue-2);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(5, 12, 24, 0.86);
  padding: 12px 14px;
  font: inherit;
}

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

@media (max-width: 1180px) {
  .page-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-header {
    gap: 20px;
    padding: 0 clamp(16px, 4vw, 32px);
  }

  .primary-nav {
    gap: 20px;
  }

 

}

@media (max-width: 980px) {
  .site-header {
    display: flex;
    justify-content: space-between;
  }

  .menu-toggle {
    display: grid;
    flex: 0 0 44px;
    align-content: center;
  }

  .header-cta {
    display: none;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: clamp(12px, 4vw, 24px);
    left: clamp(12px, 4vw, 24px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(6, 12, 24, 0.96);
    box-shadow: var(--shadow);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    padding: 13px 14px;
    border-radius: 6px;
  }

  .primary-nav a::after {
    display: none;
  }

  .primary-nav a.active,
  .primary-nav a:hover {
    background: rgba(93, 124, 255, 0.12);
  }

  .primary-nav .mobile-contact-link {
    display: block;
    margin-top: 6px;
    border: 1px solid rgba(93, 124, 255, 0.58);
    color: #c4d0ff;
    background: rgba(93, 124, 255, 0.12);
    text-align: center;
  }

  .hero {
    min-height: 790px;
    padding: 36px 24px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(1, 4, 11, 0.98) 0%, rgba(1, 4, 11, 0.86) 42%, rgba(1, 4, 11, 0.28) 100%),
      radial-gradient(circle at 70% 76%, rgba(63, 145, 255, 0.16), transparent 34%);
  }

  .hero-scene {
    background-position: 48% bottom;
  }

  .shortcut-stack {
    position: relative;
    top: auto;
    bottom: auto;
    right: auto;
    width: min(430px, 100%);
    margin-top: 30px;
    transform: none;
    gap: 10px;
  }

  .shortcut-stack::before {
    display: none;
  }

  .social-rail {
    position: relative;
    top: auto;
    right: auto;
    display: inline-grid;
    grid-auto-flow: column;
    width: max-content;
    margin-top: 16px;
    transform: none;
  }

  .about-strip,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .about-visual {
    min-height: 360px;
  }

  .about-copy {
    padding: 36px 28px;
  }

  .skill-grid,
  .cards,
  .timeline,
  .article-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 10px 10px 32px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 9.8vw, 2.65rem);
    text-wrap: normal;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, 300px);
  }

  .hero-copy {
    width: min(100%, 300px);
  }

  .button,
  .real-button {
    width: 100%;
    max-width: 100%;
  }

  .shortcut-stack {
    width: min(100%, 300px);
  }

  .shortcut {
    min-width: 0;
  }

  .about-visual {
    background-position: 34% center;
  }

  .content-section,
  .page-hero {
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}/* ABOUT PAGE NEW */

.about-page-new {
  display: grid;
  gap: 18px;
}

.about-intro-card,
.about-panel-new,
.info-box,
.about-quote {
  border: 1px solid rgba(93, 124, 255, 0.18);
  border-radius: 10px;
  background:
    radial-gradient(circle at 20% 20%, rgba(93,124,255,0.08), transparent 35%),
    linear-gradient(135deg, rgba(8,18,38,0.94), rgba(1,4,11,0.98));
  box-shadow: 0 28px 90px rgba(0,0,0,0.48);
}

.about-intro-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 520px;
  overflow: hidden;
}

.about-profile-art {
  position: relative;
  min-height: 520px;
  background: #020617;
  overflow: hidden;
}

.about-profile-art img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.82) contrast(1.12) saturate(1.08);
}

.about-profile-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 65%, rgba(1,4,11,0.9)),
    radial-gradient(circle at 35% 30%, rgba(93,124,255,0.16), transparent 38%);
  pointer-events: none;
}

.about-intro-text {
  display: grid;
  align-content: center;
  padding: clamp(34px, 5vw, 70px);
}

.about-intro-text h1 {
  margin: 0 0 26px;
  font-size: clamp(3rem, 5.3vw, 5.4rem);
  line-height: 1.02;
  font-weight: 950;
}

.about-intro-text h1 span,
.bottom-info-grid span,
.about-quote span {
  color: var(--blue);
}

.about-intro-text p:not(.eyebrow) {
  color: #cbd4e8;
  font-size: 1.03rem;
  line-height: 1.75;
}

.about-panel-new {
  padding: clamp(30px, 4vw, 52px);
}

.interest-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.interest-row article {
  min-height: 255px;
  padding: 28px 22px;
  border: 1px solid rgba(93,124,255,0.18);
  border-radius: 10px;
  background: rgba(4, 10, 22, 0.75);
  text-align: center;
  transition: 0.2s ease;
}

.interest-row article:hover,
.info-box:hover {
  transform: translateY(-4px);
  border-color: rgba(93,124,255,0.5);
  box-shadow: 0 0 30px rgba(93,124,255,0.16);
}

.icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 2.3rem;
  background: rgba(93,124,255,0.08);
}

.icon.blue,
.journey-icon.blue {
  color: #5d7cff;
  box-shadow: 0 0 32px rgba(93,124,255,0.35);
}

.icon.green,
.journey-icon.green {
  color: #60f5be;
  box-shadow: 0 0 32px rgba(96,245,190,0.28);
}

.icon.purple,
.journey-icon.purple {
  color: #b578ff;
  box-shadow: 0 0 32px rgba(181,120,255,0.28);
}

.icon.gold {
  color: #f0c27a;
  box-shadow: 0 0 32px rgba(240,194,122,0.28);
}

.icon.red,
.journey-icon.red {
  color: #ff7777;
  box-shadow: 0 0 32px rgba(255,119,119,0.28);
}

.interest-row h3 {
  margin: 0 0 14px;
  font-size: 1.18rem;
}

.interest-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.journey-card {
  position: relative;
  overflow: hidden;
}

.journey-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 42px;
}

.journey-track::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 9%;
  right: 9%;
  height: 2px;
  background: linear-gradient(90deg, #5d7cff, #60f5be, #b578ff, #ff7777);
  box-shadow: 0 0 24px rgba(93,124,255,0.65);
}

.journey-track article {
  position: relative;
  z-index: 2;
  text-align: center;
}

.journey-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(93,124,255,0.42);
  border-radius: 50%;
  background: rgba(2,6,23,0.92);
  font-size: 2rem;
}

.journey-track h3 {
  color: var(--blue-2);
  margin: 0 0 12px;
}

.journey-track p {
  color: var(--muted);
  line-height: 1.55;
  max-width: 220px;
  margin: 0 auto;
}

.bottom-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-box {
  min-height: 280px;
  padding: 32px;
  overflow: hidden;
}

.info-box h2 {
  margin: 0 0 22px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.info-box p {
  color: var(--muted);
  line-height: 1.65;
}

.system-box ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.system-box li {
  display: grid;
  gap: 2px;
}

.system-box strong {
  color: var(--blue-2);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.education-box {
  background:
    radial-gradient(circle at 80% 50%, rgba(93,124,255,0.18), transparent 36%),
    linear-gradient(135deg, rgba(8,18,38,0.94), rgba(1,4,11,0.98));
}

.location-box {
  background:
    radial-gradient(circle at 50% 45%, rgba(93,124,255,0.18), transparent 38%),
    linear-gradient(135deg, rgba(8,18,38,0.94), rgba(1,4,11,0.98));
}

.system-box {
  background:
    radial-gradient(circle at 85% 55%, rgba(93,124,255,0.2), transparent 36%),
    linear-gradient(135deg, rgba(8,18,38,0.94), rgba(1,4,11,0.98));
}

.about-quote {
  padding: 28px;
  text-align: center;
}

.about-quote p {
  margin: 0;
  color: #dbe5ff;
  font-size: 1.18rem;
  font-style: italic;
}

@media (max-width: 1050px) {
  .about-intro-card,
  .bottom-info-grid {
    grid-template-columns: 1fr;
  }

  .interest-row,
  .journey-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .journey-track::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .interest-row,
  .journey-track {
    grid-template-columns: 1fr;
  }

  .about-intro-text h1 {
    font-size: 2.7rem;
  }
}
/* CLEAN ABOUT PAGE */

.about-dashboard {
  display: grid;
  gap: 18px;
}

.about-hero-final,
.about-block,
.journey-final,
.about-info-final article,
.final-quote {
  border: 1px solid rgba(93,124,255,0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at 80% 20%, rgba(93,124,255,0.12), transparent 32%),
    linear-gradient(135deg, rgba(7,15,32,0.96), rgba(1,4,11,0.98));
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
}

/* HERO */
.about-hero-final {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
  align-items: center;
  min-height: 500px;
  padding: 58px 70px;
}

.about-copy-final h1 {
  margin: 0 0 26px;
  font-size: clamp(3.6rem, 6vw, 6.4rem);
  line-height: 0.95;
  font-weight: 950;
}

.about-copy-final h1 span,
.about-info-final span,
.final-quote span {
  color: var(--blue);
}

.about-copy-final p:not(.eyebrow) {
  max-width: 680px;
  color: #cbd4e8;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* PROFILE CARD */
.profile-hud-card {
  position: relative;
  min-height: 340px;
  border: 1px solid rgba(93,124,255,0.45);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(3,8,18,0.9);
}

.profile-hud-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.profile-hud-card .hud-data {
  display: none;
}

/* CURRENT INTERESTS */
.about-block,
.journey-final {
  padding: 34px 42px;
}

.interests-final {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.interests-final article {
  min-height: 205px;
  padding: 26px 22px;
  border-radius: 10px;
  border: 1px solid rgba(93,124,255,0.25);
  background: rgba(5,12,28,0.85);
  text-align: center;
}

.interests-final article:nth-child(1) { border-color: rgba(93,124,255,0.5); }
.interests-final article:nth-child(2) { border-color: rgba(96,245,190,0.5); }
.interests-final article:nth-child(3) { border-color: rgba(181,120,255,0.5); }
.interests-final article:nth-child(4) { border-color: rgba(240,194,122,0.5); }
.interests-final article:nth-child(5) { border-color: rgba(255,119,119,0.5); }

.interests-final span {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background-size: 72%;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(93,124,255,0.12);
  box-shadow: 0 0 28px rgba(93,124,255,0.35);
}

.interests-final article:nth-child(1) span {
  background-image: url("./assets/images/about/icon-biomedical.png");
}

.interests-final article:nth-child(2) span {
  background-image: url("./assets/images/about/icon-web.png");
}

.interests-final article:nth-child(3) span {
  background-image: url("./assets/images/about/icon-repair.png");
}

.interests-final article:nth-child(4) span {
  background-image: url("./assets/images/about/icon-medtech.png");
}

.interests-final article:nth-child(5) span {
  background-image: url("./assets/images/about/icon-design.png");
}

.interests-final h3 {
  margin: 0 0 14px;
  font-size: 1.12rem;
}

.interests-final p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.9rem;
}

/* JOURNEY */
.timeline-final {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 30px;
}

.timeline-final article {
  text-align: center;
}

.timeline-final div {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid rgba(93,124,255,0.45);
  background-color: rgba(2,6,23,0.96);
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 0 26px rgba(93,124,255,0.35);
}

.timeline-final article:nth-child(1) div {
  background-image: url("./assets/images/about/icon-phone.png");
}

.timeline-final article:nth-child(2) div {
  background-image: url("./assets/images/about/icon-lightbulb.png");
}

.timeline-final article:nth-child(3) div {
  background-image: url("./assets/images/about/icon-flask.png");
}

.timeline-final article:nth-child(4) div {
  background-image: url("./assets/images/about/icon-code.png");
}

.timeline-final h3 {
  margin: 0 0 10px;
  color: var(--blue-2);
}

.timeline-final p {
  margin: 0 auto;
  max-width: 220px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* BOTTOM CARDS */
.about-info-final {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.about-info-final article {
  min-height: 220px;
  padding: 30px;
  background-size: cover;
  background-position: center;
}

.about-info-final h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

.about-info-final p,
.about-info-final li {
  color: var(--muted);
  line-height: 1.6;
}

.about-info-final ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-info-final b {
  display: inline-block;
  min-width: 82px;
  color: var(--blue-2);
  text-transform: uppercase;
  font-size: 0.78rem;
}

.final-quote {
  padding: 24px;
  text-align: center;
}

.final-quote p {
  margin: 0;
  color: #dbe5ff;
  font-size: 1.08rem;
  font-style: italic;
}

@media (max-width: 1050px) {
  .about-hero-final,
  .about-info-final {
    grid-template-columns: 1fr;
  }

  .interests-final,
  .timeline-final {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .about-hero-final {
    padding: 32px 22px;
  }

  .interests-final,
  .timeline-final {
    grid-template-columns: 1fr;
  }
}
.site-header {
  margin-bottom: 0;
  border-radius: 0;
}

.page-shell {
  padding-top: 0;
}

.container {
  padding-top: 14px;
}

/* Projects page */
body.projects-page {
  background:
    radial-gradient(circle at 18% 8%, rgba(93, 124, 255, 0.18), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(103, 223, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #00030a 0%, #02050d 48%, #000207 100%);
}

.projects-shell {
  width: min(100%, 1760px);
}

.projects-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1fr);
  gap: 32px;
  align-items: stretch;
  padding: clamp(28px, 4vw, 48px) 6px 22px;
}

.projects-title h1 {
  margin: 10px 0 14px;
  font-size: clamp(3rem, 5.2vw, 4.45rem);
  line-height: 0.96;
}

.projects-title h1 span {
  color: var(--blue);
}

.projects-title > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.62;
}

.project-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--blue-2);
  font-size: 0.92rem;
  font-weight: 800;
}

.project-note span {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(93, 124, 255, 0.6);
  border-radius: 7px;
  background:
    radial-gradient(circle, rgba(103, 223, 255, 0.7) 0 18%, transparent 20%),
    rgba(93, 124, 255, 0.12);
  box-shadow: 0 0 22px rgba(93, 124, 255, 0.35);
}

.project-metrics,
.project-filter-bar,
.project-card,
.project-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(93, 124, 255, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(9, 22, 50, 0.74), rgba(2, 7, 18, 0.95)),
    rgba(4, 10, 24, 0.82);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.project-metrics::before,
.project-filter-bar::before,
.project-card::before,
.project-cta::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 20% 0%, rgba(93, 124, 255, 0.16), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(103, 223, 255, 0.08), transparent 28%),
    linear-gradient(90deg, rgba(93, 124, 255, 0.08), transparent 40%);
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 176px;
  padding: 26px 24px;
}

.metric-item {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
}

.metric-item + .metric-item {
  border-left: 1px dashed rgba(93, 124, 255, 0.36);
}

.metric-icon,
.project-icon,
.project-cta-icon {
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(93, 124, 255, 0.14);
  box-shadow: inset 0 0 22px rgba(93, 124, 255, 0.18), 0 0 24px rgba(93, 124, 255, 0.12);
}

.metric-icon {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(93, 124, 255, 0.32);
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 900;
}

.metric-item strong {
  color: #dff4ff;
  font-size: clamp(1.75rem, 2.5vw, 2.45rem);
  line-height: 1;
  text-shadow: 0 0 20px rgba(103, 223, 255, 0.32);
}

.metric-item p {
  margin: 0;
  color: #b6c5ea;
  font-weight: 750;
}

.project-filter-bar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 10px;
}

.project-filters {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.project-filter,
.project-sort,
.project-cta-button,
.project-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(93, 124, 255, 0.32);
  border-radius: 12px;
  color: #dfe8ff;
  background: rgba(4, 13, 34, 0.74);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.project-filter,
.project-sort {
  padding: 0 18px;
}

.project-filter:hover,
.project-filter.active,
.project-sort:hover,
.project-cta-button:hover,
.project-action:hover {
  border-color: rgba(103, 223, 255, 0.58);
  background: linear-gradient(135deg, rgba(44, 80, 230, 0.78), rgba(10, 30, 92, 0.78));
  box-shadow: 0 0 30px rgba(93, 124, 255, 0.24);
  transform: translateY(-2px);
}

.project-filter.active {
  color: #fff;
  background: linear-gradient(135deg, #5d57ff, #1b60ff);
}

.project-sort {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.projects-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(320px, 0.82fr) minmax(320px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.project-card {
  display: grid;
  align-content: start;
  color: inherit;
  min-height: 220px;
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease, opacity 180ms ease;
}

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

.project-card:hover {
  border-color: rgba(103, 223, 255, 0.55);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44), 0 0 34px rgba(93, 124, 255, 0.24);
  transform: translateY(-4px);
}

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

.project-image {
  position: relative;
  overflow: hidden;
  height: 160px;
  min-height: 160px;
  background: #020611;
}

.project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
  transition: transform 240ms ease, filter 240ms ease;
}

.project-card:hover .project-image img {
  filter: saturate(1.16) contrast(1.08);
  transform: scale(1.04);
}

.project-badge,
.project-number {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(93, 124, 255, 0.44);
  border-radius: 999px;
  color: #dce7ff;
  background: rgba(12, 24, 58, 0.86);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 22px rgba(93, 124, 255, 0.28);
}

.project-number {
  color: var(--blue-2);
}

.project-card-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 18px 22px 20px;
}

.project-card-body.stacked {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
}

.project-icon {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(103, 223, 255, 0.25);
  border-radius: 14px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.project-card h2 {
  margin: 0;
  color: #f4f7ff;
  font-size: clamp(1.1rem, 1.5vw, 1.55rem);
  line-height: 1.18;
}

.project-card p {
  margin: 8px 0 0;
  color: #aeb9d2;
  line-height: 1.52;
}

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

.project-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(103, 223, 255, 0.14);
  border-radius: 999px;
  color: #67dfff;
  background: rgba(5, 216, 255, 0.08);
  font-size: 0.74rem;
  font-weight: 800;
}

.project-action {
  align-self: end;
  min-width: 132px;
  padding: 0 14px;
}

.project-featured {
  grid-row: span 2;
  min-height: 340px;
}

.project-featured .project-image {
  height: 238px;
  min-height: 228px;
}

.project-tall {
  grid-template-rows: auto auto;
}

.project-tall .project-image {
  height: 160px;
}

.project-tall .project-card-body {
  padding: 16px 20px 18px;
}

.project-tall .project-icon {
  width: 50px;
  height: 50px;
}

.project-tall p {
  font-size: 0.94rem;
  line-height: 1.42;
}

.project-tall .project-tags {
  margin-top: 6px;
}

.project-tall .project-action {
  min-height: 38px;
}

.project-compact {
  grid-template-columns: minmax(135px, 0.42fr) minmax(0, 1fr);
  min-height: 154px;
}

.project-compact .project-image {
  height: 154px;
  min-height: 154px;
}

.project-empty {
  display: none;
  margin: 18px 0 0;
  padding: 24px;
  border: 1px solid rgba(93, 124, 255, 0.28);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  background: rgba(4, 13, 34, 0.72);
}

.project-empty.is-visible {
  display: block;
}

.projects-loading {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.projects-legacy-cards {
  display: none !important;
}

.cms-published-project {
  --project-accent: #5d7cff;
  border-color: rgba(93, 124, 255, 0.52);
  box-shadow: 0 0 24px rgba(93, 124, 255, 0.08), 0 20px 55px rgba(0, 0, 0, 0.32);
}

.project-cta {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: 22px 28px;
}

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

.project-cta > div {
  display: flex;
  gap: 18px;
  align-items: center;
}

.project-cta-icon {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(93, 124, 255, 0.32);
  border-radius: 14px;
  color: var(--purple);
  font-size: 1.4rem;
}

.project-cta h2 {
  margin: 0 0 4px;
  font-size: 1.28rem;
}

.project-cta p {
  margin: 0;
  color: var(--muted);
}

.project-cta-button {
  min-width: min(310px, 100%);
  padding: 0 20px;
  color: #cfc0ff;
}

@media (max-width: 1180px) {
  .projects-hero,
  .projects-showcase {
    grid-template-columns: 1fr;
  }

  .project-featured {
    grid-row: auto;
  }

  .project-metrics {
    min-height: 170px;
  }
}

@media (max-width: 860px) {
  .projects-hero {
    padding-top: 32px;
  }

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

  .metric-item + .metric-item {
    border-left: 0;
  }

  .metric-item:nth-child(even) {
    border-left: 1px dashed rgba(93, 124, 255, 0.28);
  }

  .metric-item:nth-child(n + 3) {
    padding-top: 20px;
    border-top: 1px dashed rgba(93, 124, 255, 0.28);
  }

  .project-filter-bar,
  .project-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .project-sort,
  .project-cta-button {
    width: 100%;
  }

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

@media (max-width: 560px) {
  .projects-title h1 {
    font-size: clamp(2.6rem, 18vw, 4rem);
  }

  .project-metrics {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 14px;
  }

  .project-card-body {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 18px;
  }

  .project-action {
    width: 100%;
  }

  .project-image,
  .project-featured .project-image,
  .project-compact .project-image {
    height: 200px;
    min-height: 200px;
  }
}

.project-spotlight {
  min-height: calc(100vh - 76px);
  background:
    radial-gradient(circle at 36% 6%, rgba(18, 105, 255, 0.12), transparent 34%),
    radial-gradient(circle at 88% 38%, rgba(93, 124, 255, 0.07), transparent 30%),
    linear-gradient(180deg, rgba(0, 4, 12, 0.16), rgba(0, 2, 8, 0.76));
}

.project-spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: clamp(24px, 4vw, 58px);
  min-height: calc(100vh - 76px);
  border-top: 1px solid rgba(93, 124, 255, 0.1);
}

.project-spotlight-main,
.project-list-side {
  position: relative;
  overflow: hidden;
}

.project-spotlight-main {
  padding: clamp(48px, 5vw, 76px) 0 48px clamp(28px, 5vw, 84px);
}

.project-spotlight-main::before,
.project-list-side::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 18%, rgba(23, 103, 255, 0.14), transparent 34%),
    radial-gradient(circle at 70% 72%, rgba(103, 223, 255, 0.045), transparent 32%);
}

.project-list-side {
  padding: clamp(76px, 9vw, 118px) clamp(24px, 4vw, 56px) 48px 0;
  background:
    radial-gradient(circle at 20% 22%, rgba(18, 104, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(3, 9, 22, 0.18), rgba(0, 2, 8, 0.42));
}

.project-label,
.project-list-title {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: #0d7dff;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-list-title {
  margin-bottom: 28px;
  color: #c5cfdf;
  letter-spacing: 0.16em;
}

.project-spotlight h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: #f7f9ff;
  font-size: clamp(3.6rem, 5.8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.project-spotlight h1 span {
  color: var(--blue);
}

.project-intro {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 0 36px;
  color: #b9c4d5;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.75;
}

.study-preview-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(45, 130, 255, 0.42);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% -10%, rgba(91, 145, 255, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(9, 22, 48, 0.82), rgba(1, 6, 17, 0.98));
  box-shadow:
    0 0 0 1px rgba(115, 170, 255, 0.08),
    0 0 54px rgba(17, 104, 255, 0.18),
    0 34px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.study-preview-frame::before {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(111, 162, 255, 0.1);
  border-radius: 26px;
  content: "";
  pointer-events: none;
}

.study-preview-app {
  position: relative;
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  height: clamp(390px, 32vw, 520px);
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 68% 22%, rgba(19, 93, 255, 0.12), transparent 32%),
    #020711;
}

.study-preview-sidebar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 30px 16px 22px;
  border-right: 1px solid rgba(103, 151, 255, 0.1);
  background: linear-gradient(180deg, rgba(4, 13, 30, 0.96), rgba(2, 7, 18, 0.9));
}

.study-preview-logo {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 850;
}

.study-preview-logo span,
.study-preview-user span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: #1269ff;
}

.study-preview-logo span {
  border-radius: 8px;
  color: #60cdff;
  font-size: 0.56rem;
  background: rgba(18, 105, 255, 0.14);
}

.study-preview-sidebar nav {
  display: grid;
  gap: 9px;
}

.study-preview-sidebar nav span {
  min-height: 33px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #c8d2e6;
  font-size: 0.74rem;
}

.study-preview-sidebar nav span.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(18, 105, 255, 0.8), rgba(7, 38, 105, 0.8));
}

.study-preview-user {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(103, 151, 255, 0.1);
  color: #fff;
}

.study-preview-user small {
  color: #96a4bd;
  font-size: 0.68rem;
  line-height: 1.4;
}

.study-preview-screen {
  padding: clamp(22px, 2.4vw, 32px) clamp(20px, 2.6vw, 30px) 18px;
}

.study-preview-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 18px;
}

.study-preview-top h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.12rem;
}

.study-preview-top p {
  margin: 0;
  color: #8793aa;
  font-size: 0.8rem;
}

.study-preview-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(116, 151, 255, 0.18);
  border-radius: 10px;
  color: #7888a6;
  background: rgba(0, 4, 13, 0.62);
  font-size: 0.74rem;
}

.study-preview-search span {
  width: 10px;
  height: 10px;
  border: 2px solid #8b9ab4;
  border-radius: 50%;
}

.study-preview-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.study-preview-cards article,
.study-preview-goals,
.study-preview-chart {
  border: 1px solid rgba(105, 137, 210, 0.11);
  border-radius: 12px;
  background:
    radial-gradient(circle at 90% 10%, rgba(20, 103, 255, 0.08), transparent 35%),
    rgba(5, 15, 32, 0.82);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.study-preview-cards article {
  display: grid;
  gap: 8px;
  min-height: 88px;
  padding: 14px 12px;
}

.study-preview-cards span {
  color: #1687ff;
  font-size: 0.68rem;
  font-weight: 900;
}

.study-preview-cards span.green {
  color: #39d783;
}

.study-preview-cards strong {
  color: #fff;
  font-size: 0.88rem;
}

.study-preview-cards small {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #a8b4c8;
}

.study-preview-cards b {
  color: #ffd35c;
}

.study-preview-cards i,
.study-preview-goals i {
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(83, 107, 158, 0.32);
}

.study-preview-cards i::before,
.study-preview-goals i::before {
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1269ff, #7cc9ff);
  content: "";
}

.study-preview-streak em {
  color: #45d37d;
  font-size: 1.9rem;
  font-style: normal;
  line-height: 1;
}

.study-preview-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  gap: 18px;
}

.study-preview-goals,
.study-preview-chart {
  padding: 14px;
}

.study-preview-goals h3,
.study-preview-chart h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 0.82rem;
}

.study-preview-goals > div {
  display: grid;
  grid-template-columns: 22px 1fr 42px 110px;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid rgba(105, 137, 210, 0.09);
}

.study-preview-goals > div > span {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 211, 92, 0.58);
  border-radius: 50%;
}

.study-preview-goals p {
  margin: 0;
  color: #fff;
  font-size: 0.74rem;
}

.study-preview-goals small {
  display: block;
  color: #8390a8;
  margin-top: 3px;
}

.study-preview-goals b {
  color: #dbe8ff;
  font-size: 0.76rem;
}

.study-preview-chart svg {
  width: 100%;
  height: 92px;
}

.study-preview-chart path {
  fill: none;
  stroke: #1269ff;
  stroke-width: 4;
  filter: drop-shadow(0 0 10px rgba(18, 105, 255, 0.5));
}

.study-preview-chart circle {
  fill: #1269ff;
}

.study-preview-chart div {
  display: flex;
  justify-content: space-between;
  color: #8c98ad;
  font-size: 0.66rem;
}

.project-feature-pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.project-feature-pills span {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(93, 124, 255, 0.28);
  border-radius: 9px;
  color: #e8eefb;
  background: rgba(2, 8, 20, 0.7);
  box-shadow: inset 0 0 18px rgba(19, 105, 255, 0.08);
}

.project-feature-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 34px;
  align-items: center;
  margin-top: 34px;
}

.project-primary-action,
.project-secondary-action,
.project-list-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.project-primary-action,
.project-secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  color: #eef4ff;
  font-weight: 760;
}

.project-primary-action {
  padding: 0 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1269ff, #1657ff);
  box-shadow: 0 18px 40px rgba(18, 105, 255, 0.22);
}

.project-secondary-action {
  color: #b8c3d8;
}

.project-primary-action svg,
.project-secondary-action svg,
.project-list-card svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-primary-action:hover,
.project-secondary-action:hover {
  transform: translateY(-2px);
}

.project-slide-dots {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  margin-top: 44px;
}

.project-slide-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(116, 151, 255, 0.24);
}

.project-slide-dots span.active {
  background: #1269ff;
}

.project-list-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(118px, 144px) minmax(0, 1fr) 26px;
  gap: 22px;
  align-items: center;
  min-height: 206px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(45, 130, 255, 0.6);
  border-radius: 18px;
  color: #f7f9ff;
  background:
    radial-gradient(circle at 0% 50%, rgba(18, 105, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(8, 23, 50, 0.88), rgba(1, 6, 17, 0.95));
  box-shadow: 0 0 42px rgba(18, 105, 255, 0.14);
}

.project-list-card:hover {
  border-color: rgba(96, 205, 255, 0.82);
  box-shadow: 0 0 52px rgba(18, 105, 255, 0.28);
  transform: translateY(-3px);
}

.project-list-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(93, 124, 255, 0.22);
  border-radius: 12px;
  background: #020713;
}

.project-list-card strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.08;
}

.project-list-card small {
  display: block;
  max-width: 300px;
  color: #c0cadd;
  font-size: 0.94rem;
  line-height: 1.55;
}

.project-list-glow {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #1269ff;
  box-shadow: 0 0 24px rgba(18, 105, 255, 0.86);
}

@media (max-width: 1180px) {
  .project-spotlight-grid {
    grid-template-columns: 1fr;
  }

  .project-spotlight-main {
    border-right: 0;
    padding-right: clamp(28px, 5vw, 84px);
  }

  .project-list-side {
    padding: 36px clamp(28px, 5vw, 84px) 48px;
  }
}

@media (max-width: 820px) {
  .project-spotlight-main,
  .project-list-side {
    padding-right: 18px;
    padding-left: 18px;
  }

  .study-preview-frame {
    border-radius: 18px;
    padding: 10px;
  }

  .study-preview-app {
    grid-template-columns: 1fr;
  }

  .study-preview-sidebar {
    display: none;
  }

  .study-preview-cards,
  .study-preview-lower,
  .project-list-card {
    grid-template-columns: 1fr;
  }

  .study-preview-goals > div {
    grid-template-columns: 22px 1fr 40px;
  }

  .study-preview-goals i {
    grid-column: 2 / -1;
  }

  .study-preview-search {
    display: none;
  }

  .project-feature-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .project-primary-action,
  .project-secondary-action {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .project-spotlight h1 {
    font-size: clamp(3rem, 18vw, 4.4rem);
  }

  .study-preview-screen {
    padding: 26px 16px 18px;
  }

  .study-preview-top {
    margin-bottom: 18px;
  }

  .project-feature-pills span,
  .project-primary-action,
  .project-secondary-action {
    width: 100%;
    justify-content: center;
  }
}

/* Reference-style projects gallery */
body.projects-gallery-page {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 55% 8%, rgba(19, 81, 221, 0.12), transparent 30%),
    radial-gradient(circle at 86% 36%, rgba(113, 61, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #00040b 0%, #020711 54%, #00030a 100%);
}

.projects-gallery-main {
  padding: 0 clamp(14px, 3.2vw, 54px) 34px;
}

.projects-gallery-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(400px, 0.82fr) minmax(460px, 1.18fr);
  gap: clamp(20px, 2.4vw, 40px);
  align-items: center;
  min-height: 390px;
  padding: clamp(34px, 4vw, 58px) 6px 28px;
  overflow: hidden;
}

.projects-gallery-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 62% 42%, rgba(18, 105, 255, 0.15), transparent 30%),
    radial-gradient(circle at 78% 62%, rgba(120, 62, 255, 0.1), transparent 25%);
}

.projects-gallery-copy,
.projects-gallery-visual,
.projects-gallery-stats {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.projects-gallery-copy .eyebrow {
  margin: 0 0 12px;
  color: #5795ff;
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.projects-gallery-copy h1 {
  margin: 0;
  color: #f5f8ff;
  font-size: clamp(3rem, 4.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.projects-gallery-copy h1 span {
  color: #3981ff;
}

.projects-gallery-copy > p:not(.eyebrow) {
  max-width: 500px;
  margin: 22px 0 0;
  color: #adb9cc;
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 1.72;
}

.projects-explore-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  margin-top: 28px;
  padding: 0 22px;
  border: 1px solid rgba(73, 107, 255, 0.72);
  border-radius: 8px;
  color: #f1f5ff;
  background: rgba(6, 14, 34, 0.7);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 26px rgba(56, 83, 255, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.projects-explore-button:hover {
  border-color: #4a8dff;
  box-shadow: 0 0 34px rgba(56, 83, 255, 0.24);
  transform: translateY(-2px);
}

.projects-explore-button svg,
.projects-build-cta svg,
.project-showcase-copy .project-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.projects-gallery-visual {
  min-height: 330px;
  display: grid;
  place-items: center;
}

.projects-gallery-visual::before {
  position: absolute;
  inset: 16% 3% 4%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(28, 91, 255, 0.24), rgba(74, 42, 220, 0.08) 46%, transparent 72%);
  filter: blur(20px);
}

.projects-gallery-visual img {
  position: relative;
  z-index: 1;
  width: min(112%, 760px);
  max-width: none;
  filter: saturate(1.18) contrast(1.05) drop-shadow(0 30px 40px rgba(0, 0, 0, 0.52));
  transform: scale(1.08);
}

.projects-gallery-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(105, 143, 255, 0.38);
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at 15% 0%, rgba(45, 117, 255, 0.28), transparent 42%),
    linear-gradient(145deg, rgba(11, 25, 53, 0.96), rgba(4, 9, 22, 0.94));
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.05);
}

.projects-stats-heading {
  grid-column: 1 / -1;
  margin: 0 2px 3px;
}

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

.projects-stats-heading span {
  color: #70ddff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.projects-stats-heading strong {
  margin-top: 3px;
  color: #f5f8ff;
  font-size: 1rem;
}

.projects-gallery-stats > div {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 112px;
  padding: 14px;
  overflow: hidden;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(110, 151, 255, 0.2);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(36, 76, 151, 0.34), rgba(14, 27, 55, 0.66));
}

.projects-gallery-stats > div + div {
  border-top: 1px solid rgba(110, 151, 255, 0.2);
}

.projects-gallery-stats > div:nth-of-type(2) {
  background: linear-gradient(145deg, rgba(112, 49, 177, 0.34), rgba(35, 20, 65, 0.7));
}

.projects-gallery-stats > div:nth-of-type(3) {
  background: linear-gradient(145deg, rgba(20, 136, 167, 0.34), rgba(9, 43, 62, 0.7));
}

.projects-gallery-stats > div:nth-of-type(4) {
  background: linear-gradient(145deg, rgba(83, 64, 183, 0.38), rgba(28, 22, 70, 0.7));
}

.projects-gallery-stats .stat-symbol {
  position: absolute;
  top: 12px;
  right: 12px;
  width: auto;
  height: auto;
  border: 0;
  color: rgba(146, 205, 255, 0.72);
  background: transparent;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  font-weight: 900;
  box-shadow: none;
}

.projects-gallery-stats .stat-symbol.purple,
.projects-gallery-stats .stat-symbol.violet {
  color: #c17cff;
  border-color: rgba(160, 74, 255, 0.24);
  background: rgba(87, 25, 150, 0.18);
}

.projects-gallery-stats .stat-symbol.cyan {
  color: #6fe7ff;
}

.projects-gallery-stats .stat-symbol.purple,
.projects-gallery-stats .stat-symbol.violet,
.projects-gallery-stats .stat-symbol.cyan {
  border: 0;
  background: transparent;
}

.projects-gallery-stats p {
  margin: 0;
}

.projects-gallery-stats strong,
.projects-gallery-stats small {
  display: block;
}

.projects-gallery-stats strong {
  color: #f4f7ff;
  font-size: 1.32rem;
}

.projects-gallery-stats > div strong {
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-shadow: 0 0 26px rgba(112, 159, 255, 0.36);
}

.projects-gallery-stats small {
  margin-top: 4px;
  color: #9eabc0;
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.projects-gallery-content {
  position: relative;
}

.projects-reference-filters {
  margin-bottom: 12px;
  border-color: rgba(78, 115, 194, 0.2);
  border-radius: 13px;
  background: rgba(2, 9, 21, 0.72);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.projects-reference-filters::before {
  opacity: 0.42;
}

.projects-reference-filters .project-filter,
.projects-reference-filters .project-sort {
  min-height: 40px;
  border-radius: 10px;
  border-color: rgba(81, 113, 177, 0.18);
  background: rgba(3, 10, 24, 0.64);
  font-size: 0.78rem;
}

.projects-reference-filters .project-filter > span,
.projects-reference-filters .project-sort > span {
  color: #9fb6e4;
  font-size: 0.66rem;
  font-weight: 900;
}

.projects-reference-filters .project-filter.active {
  border-color: rgba(86, 96, 255, 0.82);
  background: linear-gradient(135deg, rgba(60, 65, 221, 0.92), rgba(26, 61, 180, 0.9));
  box-shadow: 0 0 26px rgba(71, 72, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.projects-feature-row,
.projects-compact-row {
  display: grid;
  gap: 14px;
}

.projects-feature-row {
  grid-template-columns: minmax(0, 1.38fr) minmax(270px, 0.9fr) minmax(270px, 0.88fr);
}

.projects-compact-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.project-showcase-card,
.project-reference-compact {
  --project-accent: #3278ff;
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--project-accent) 48%, rgba(75, 104, 162, 0.18));
  border-radius: 14px;
  background: #030a17;
  box-shadow: none;
}

.project-showcase-card {
  min-height: 318px;
  align-content: end;
}

.project-showcase-study {
  --project-accent: #8a42ff;
}

.project-showcase-repair {
  --project-accent: #258bff;
}

.project-showcase-card::before,
.project-reference-compact::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 7, 17, 0.97) 0%, rgba(2, 7, 17, 0.78) 42%, rgba(2, 7, 17, 0.14) 76%),
    linear-gradient(180deg, rgba(2, 7, 17, 0.05), rgba(2, 7, 17, 0.88));
}

.project-showcase-study::before,
.project-showcase-repair::before {
  background: linear-gradient(180deg, rgba(2, 7, 17, 0.08) 10%, rgba(2, 7, 17, 0.96) 70%);
}

.project-showcase-card:hover,
.project-reference-compact:hover {
  border-color: var(--project-accent);
  box-shadow: 0 0 30px color-mix(in srgb, var(--project-accent) 20%, transparent), 0 24px 70px rgba(0, 0, 0, 0.38);
  transform: translateY(-3px);
}

.project-showcase-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 260ms ease, filter 260ms ease;
}

.project-showcase-featured .project-showcase-art {
  object-position: 62% center;
}

.project-showcase-study .project-showcase-art {
  object-position: center 18%;
}

.project-showcase-repair .project-showcase-art {
  object-position: center;
}

.project-showcase-card:hover .project-showcase-art,
.project-reference-compact:hover .project-showcase-art {
  filter: saturate(1.16) contrast(1.05);
  transform: scale(1.025);
}

.project-showcase-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  max-width: 62%;
  padding: 26px 22px 18px;
}

.project-showcase-study .project-showcase-copy,
.project-showcase-repair .project-showcase-copy {
  max-width: 100%;
  padding-top: 112px;
}

.project-reference-label {
  margin-bottom: 12px;
  color: #5d8cff;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-showcase-copy h2 {
  margin: 0;
  color: #f7f9ff;
  font-size: clamp(1.12rem, 1.4vw, 1.48rem);
  line-height: 1.15;
}

.project-showcase-copy p {
  margin: 9px 0 0;
  color: #aeb9cc;
  font-size: 0.82rem;
  line-height: 1.55;
}

.project-showcase-copy .project-tags {
  gap: 5px;
  margin-top: 12px;
}

.project-showcase-copy .project-tags span {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  color: #4aa4ff;
  font-size: 0.66rem;
}

.project-showcase-copy .project-action {
  width: max-content;
  min-width: 0;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 13px;
  border-radius: 7px;
  color: #eaf1ff;
  font-size: 0.72rem;
}

.project-reference-number,
.project-reference-icon {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--project-accent) 54%, transparent);
  color: #bcd5ff;
  background: rgba(4, 14, 36, 0.82);
  box-shadow: 0 0 18px color-mix(in srgb, var(--project-accent) 22%, transparent);
}

.project-reference-number {
  top: 14px;
  left: 16px;
  min-width: 38px;
  height: 34px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 850;
}

.project-reference-icon {
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 0.58rem;
  font-weight: 900;
}

.project-reference-number.purple,
.project-reference-icon.purple {
  color: #d39aff;
}

.project-reference-number.cyan,
.project-reference-icon.cyan {
  color: #67dfff;
}

.project-reference-number.green,
.project-reference-icon.green {
  color: #54edb5;
}

.project-reference-number.orange,
.project-reference-icon.orange {
  color: #ffb061;
}

.project-reference-compact {
  --project-accent: #16b8ff;
  min-height: 222px;
}

.project-reference-compact.accent-green {
  --project-accent: #18c98c;
}

.project-reference-compact.accent-orange {
  --project-accent: #e87c34;
}

.project-reference-compact.accent-purple {
  --project-accent: #9b4dff;
}

.project-reference-compact .project-showcase-art {
  left: 38%;
  width: 62%;
  opacity: 0.74;
  object-position: center;
}

.project-reference-compact .project-showcase-copy {
  max-width: 72%;
  min-height: 222px;
  padding: 54px 16px 14px;
}

.project-reference-compact .project-showcase-copy h2 {
  font-size: 1.02rem;
}

.project-reference-compact .project-showcase-copy p {
  font-size: 0.74rem;
}

.project-reference-compact .project-reference-icon {
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
}

.projects-build-cta {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  min-height: 76px;
  margin-top: 14px;
  padding: 12px 20px;
  border: 1px solid rgba(75, 104, 166, 0.2);
  border-radius: 13px;
  background:
    radial-gradient(circle at 94% 50%, rgba(91, 47, 255, 0.16), transparent 25%),
    rgba(3, 10, 24, 0.72);
}

.projects-build-cta > div {
  display: flex;
  gap: 18px;
  align-items: center;
}

.projects-build-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(87, 100, 255, 0.34);
  border-radius: 10px;
  color: #8795ff;
  background: rgba(47, 43, 150, 0.16);
  font-size: 0.64rem;
  font-weight: 900;
}

.projects-build-cta p {
  margin: 0;
}

.projects-build-cta strong,
.projects-build-cta small {
  display: block;
}

.projects-build-cta strong {
  color: #d78cff;
  font-size: 1rem;
}

.projects-build-cta small {
  margin-top: 4px;
  color: #9da9bc;
}

.projects-build-cta > a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-width: 300px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(105, 60, 255, 0.78);
  border-radius: 8px;
  color: #c398ff;
  background: linear-gradient(135deg, rgba(59, 38, 165, 0.52), rgba(23, 17, 73, 0.54));
  box-shadow: 0 0 24px rgba(93, 60, 255, 0.14);
}

@media (max-width: 1240px) {
  .projects-gallery-hero {
    grid-template-columns: minmax(340px, 0.76fr) minmax(390px, 1fr);
  }

  .projects-gallery-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 8px 16px;
  }

  .projects-gallery-stats > div + div {
    border-top: 0;
    border-left: 1px solid rgba(96, 128, 192, 0.14);
    padding-left: 16px;
  }

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

  .project-showcase-featured {
    grid-column: 1 / -1;
  }

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

@media (max-width: 820px) {
  .projects-gallery-main {
    padding-right: 14px;
    padding-left: 14px;
  }

  .projects-gallery-hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .projects-gallery-visual {
    min-height: 260px;
  }

  .projects-gallery-visual img {
    width: min(100%, 700px);
    transform: none;
  }

  .projects-gallery-stats {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-gallery-stats > div + div {
    border-left: 0;
    padding-left: 0;
  }

  .projects-gallery-stats > div:nth-child(even) {
    border-left: 1px solid rgba(96, 128, 192, 0.14);
    padding-left: 14px;
  }

  .projects-gallery-stats > div:nth-child(n + 3) {
    border-top: 1px solid rgba(96, 128, 192, 0.14);
  }

  .projects-reference-filters {
    align-items: stretch;
  }

  .projects-reference-filters .project-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-feature-row,
  .projects-compact-row {
    grid-template-columns: 1fr;
  }

  .project-showcase-featured {
    grid-column: auto;
  }

  .project-showcase-card,
  .project-reference-compact {
    min-height: 300px;
  }

  .project-reference-compact .project-showcase-copy {
    min-height: 300px;
  }

  .projects-build-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .projects-build-cta > a {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .projects-gallery-hero,
  .projects-gallery-hero > * {
    width: 100%;
    max-width: 100%;
  }

  .projects-gallery-copy h1 {
    max-width: 100%;
    font-size: clamp(2.65rem, 12.5vw, 3.25rem);
    line-height: 1.03;
  }

  .projects-gallery-copy > p:not(.eyebrow) {
    max-width: 100%;
    font-size: 0.94rem;
    overflow-wrap: anywhere;
  }

  .projects-gallery-stats > div {
    min-width: 0;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .projects-gallery-stats small {
    overflow-wrap: anywhere;
  }

  .projects-reference-filters .project-filters {
    grid-template-columns: 1fr;
  }

  .project-showcase-copy,
  .project-reference-compact .project-showcase-copy {
    max-width: 100%;
    min-height: 340px;
    padding: 112px 16px 16px;
  }

  .project-showcase-card::before,
  .project-reference-compact::before {
    background: linear-gradient(180deg, rgba(2, 7, 17, 0.08), rgba(2, 7, 17, 0.98) 58%);
  }

  .project-reference-compact .project-showcase-art {
    left: 0;
    width: 100%;
  }

  .projects-build-cta > div {
    align-items: flex-start;
  }
}

/* Roadmap page */
body.roadmap-page {
  background:
    linear-gradient(180deg, rgba(2, 6, 17, 0.14), rgba(0, 2, 8, 0.96)),
    radial-gradient(circle at 70% 4%, rgba(93, 124, 255, 0.12), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(165, 88, 255, 0.12), transparent 28%),
    #00030a;
}

.roadmap-shell {
  width: min(100%, 1680px);
  min-height: 100vh;
}

.roadmap-main {
  position: relative;
  isolation: isolate;
  gap: clamp(22px, 3vw, 34px);
  padding: clamp(34px, 5vw, 72px) 16px 48px;
}

.roadmap-main::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 72%;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(64, 116, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 116, 255, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 54% 18%, rgba(23, 110, 255, 0.08), transparent 32%);
  background-size: 82px 82px, 82px 82px, 100% 100%;
  mask-image: linear-gradient(180deg, black 0 58%, transparent 100%);
}

.roadmap-main::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle, rgba(82, 156, 255, 0.85) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(126, 82, 255, 0.72) 0 2px, transparent 3px);
  background-position: 74% 4%, 86% 14%;
  background-size: 220px 180px, 270px 240px;
  opacity: 0.24;
}

.roadmap-hero {
  position: relative;
  min-height: clamp(300px, 35vw, 420px);
  overflow: hidden;
  border-radius: 18px;
}

.roadmap-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: clamp(16px, 3vw, 38px) clamp(12px, 3vw, 36px);
}

.roadmap-kicker {
  margin: 0 0 18px;
  color: #9eb2ff;
  font-size: clamp(0.82rem, 1.15vw, 1rem);
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.roadmap-copy h1 {
  margin: 0;
  color: #f4f7ff;
  font-size: clamp(3.8rem, 8.5vw, 7.1rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.92;
  text-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
}

.roadmap-copy h1 span {
  color: var(--blue);
}

.roadmap-copy > p {
  max-width: 470px;
  margin: 28px 0 0;
  color: #c6cfdf;
  font-size: clamp(1rem, 1.7vw, 1.45rem);
  line-height: 1.55;
}

.roadmap-dna {
  position: absolute;
  top: 8px;
  right: auto;
  left: 0;
  width: 112%;
  min-width: 1180px;
  height: auto;
  opacity: 0.44;
  filter: drop-shadow(0 0 20px rgba(43, 124, 255, 0.2)) saturate(1.05);
  transform: translateX(-5%);
  transform-origin: 52% 48%;
  animation: roadmap-dna-float 9s ease-in-out infinite;
  will-change: transform, filter, opacity;
}

@keyframes roadmap-dna-float {
  0%,
  100% {
    opacity: 0.42;
    filter: drop-shadow(0 0 18px rgba(43, 124, 255, 0.18)) saturate(1.02);
    transform: translate3d(-5%, 0, 0) scale(1);
  }

  50% {
    opacity: 0.56;
    filter: drop-shadow(0 0 24px rgba(83, 120, 255, 0.26)) saturate(1.1);
    transform: translate3d(-7%, -8px, 0) scale(1.01);
  }
}

.roadmap-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: -24px;
  overflow: hidden;
  border: 1px solid rgba(93, 124, 255, 0.34);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(4, 12, 30, 0.38), rgba(1, 5, 16, 0.88)),
    rgba(1, 5, 15, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 28px 90px rgba(0, 0, 0, 0.42);
}

.roadmap-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(49, 201, 255, 0.1), transparent 34%, rgba(179, 89, 255, 0.12)),
    radial-gradient(circle at 22% 8%, rgba(49, 201, 255, 0.12), transparent 26%),
    radial-gradient(circle at 76% 12%, rgba(219, 91, 255, 0.12), transparent 26%);
}

.roadmap-track {
  position: absolute;
  top: 72px;
  right: 5%;
  left: 5%;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, #1ebeff, #25d7d9, #835cff, #dd68e6, #5b68ff);
  box-shadow: 0 0 22px rgba(74, 148, 255, 0.68);
}

.roadmap-goal {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  min-height: 420px;
  padding: 30px clamp(20px, 2vw, 34px) 34px;
}

.roadmap-goal + .roadmap-goal {
  border-left: 1px solid rgba(93, 124, 255, 0.22);
}

.goal-top {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 130px;
}

.goal-number {
  color: var(--goal-color);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow: 0 0 22px color-mix(in srgb, var(--goal-color) 76%, transparent);
}

.goal-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 2px solid color-mix(in srgb, var(--goal-color) 76%, transparent);
  border-radius: 999px;
  color: var(--goal-color);
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--goal-color) 22%, transparent), transparent 58%),
    rgba(1, 8, 20, 0.92);
  box-shadow:
    0 0 36px color-mix(in srgb, var(--goal-color) 42%, transparent),
    inset 0 0 22px color-mix(in srgb, var(--goal-color) 20%, transparent);
}

.goal-icon::before,
.goal-icon::after {
  position: absolute;
  top: 50%;
  width: 38px;
  height: 3px;
  content: "";
  background: var(--goal-color);
  box-shadow: 0 0 16px var(--goal-color);
}

.goal-icon::before {
  right: 100%;
}

.goal-icon::after {
  left: 100%;
}

.roadmap-goal:first-of-type .goal-icon::before,
.roadmap-goal:last-of-type .goal-icon::after {
  display: none;
}

.goal-icon svg {
  width: 46px;
  height: 46px;
  stroke-width: 1.55;
  filter: drop-shadow(0 0 10px currentColor);
}

.roadmap-goal h2 {
  min-height: 64px;
  margin: 0;
  color: var(--goal-color);
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1.22;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 20px color-mix(in srgb, var(--goal-color) 40%, transparent);
}

.roadmap-goal h2::after {
  display: block;
  width: 76px;
  height: 1px;
  margin: 18px auto 0;
  content: "";
  background: linear-gradient(90deg, transparent, var(--goal-color), transparent);
  box-shadow: 0 0 16px var(--goal-color);
}

.roadmap-goal p {
  max-width: 230px;
  margin: 0 auto;
  color: #b7c1d5;
  font-size: clamp(0.98rem, 1.15vw, 1.11rem);
  line-height: 1.58;
}

.goal-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.goal-progress span {
  display: block;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--goal-color), color-mix(in srgb, var(--goal-color) 34%, transparent));
  box-shadow: 0 0 16px color-mix(in srgb, var(--goal-color) 72%, transparent);
}

.goal-progress i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--goal-color) 34%, transparent);
}

.goal-cyan {
  --goal-color: #29c7ff;
}

.goal-teal {
  --goal-color: #27dbe5;
}

.goal-violet {
  --goal-color: #7f5cff;
}

.goal-pink {
  --goal-color: #e06af3;
}

.goal-blue {
  --goal-color: #6a68ff;
}

.roadmap-quote {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 4vw, 64px);
  align-items: center;
  justify-self: center;
  width: min(100%, 1080px);
  min-height: 102px;
  padding: 20px clamp(28px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(93, 124, 255, 0.3);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(6, 16, 39, 0.78), rgba(1, 6, 17, 0.94)),
    rgba(2, 7, 18, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.roadmap-quote span {
  color: rgba(93, 124, 255, 0.7);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 22px rgba(93, 124, 255, 0.48);
}

.roadmap-quote p {
  margin: 0;
  color: #eef3ff;
  font-size: clamp(0.95rem, 1.6vw, 1.24rem);
  font-weight: 650;
  letter-spacing: 0.42em;
  text-align: center;
  text-transform: uppercase;
}

.quote-pulse {
  position: absolute;
  right: 50%;
  bottom: 12px;
  width: 100px;
  height: 24px;
  translate: 50% 0;
  background:
    linear-gradient(90deg, transparent 0 36%, #4a6bff 36% 38%, transparent 38% 42%, #4a6bff 42% 45%, transparent 45% 49%, #67dfff 49% 51%, transparent 51% 56%, #4a6bff 56% 58%, transparent 58% 100%);
  filter: drop-shadow(0 0 8px #4a6bff);
  clip-path: polygon(0 52%, 35% 52%, 42% 52%, 48% 0, 55% 100%, 62% 52%, 100% 52%, 100% 56%, 64% 56%, 55% 100%, 48% 8%, 43% 56%, 0 56%);
}

@media (max-width: 1180px) {
  .roadmap-panel {
    grid-template-columns: 1fr;
  }

  .roadmap-track,
  .goal-icon::before,
  .goal-icon::after {
    display: none;
  }

  .roadmap-goal {
    min-height: auto;
    grid-template-columns: 140px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    padding: 26px;
  }

  .roadmap-goal + .roadmap-goal {
    border-top: 1px solid rgba(93, 124, 255, 0.22);
    border-left: 0;
  }

  .goal-top {
    grid-row: 1 / 4;
    min-height: auto;
  }

  .roadmap-goal h2,
  .roadmap-goal p {
    max-width: none;
    text-align: left;
  }

  .roadmap-goal h2::after {
    margin-right: 0;
    margin-left: 0;
  }

  .goal-progress {
    width: min(360px, 100%);
  }
}

@media (max-width: 860px) {
  .roadmap-main {
    padding-right: 0;
    padding-left: 0;
  }

  .roadmap-hero {
    min-height: 420px;
  }

  .roadmap-dna {
    top: 56px;
    right: auto;
    left: 0;
    width: 165%;
    min-width: 760px;
    opacity: 0.36;
  }

  .roadmap-copy {
    padding-top: 30px;
  }

  .roadmap-copy h1 {
    letter-spacing: 0;
  }

  .roadmap-goal {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .goal-top {
    grid-row: auto;
  }

  .roadmap-goal h2,
  .roadmap-goal p {
    text-align: center;
  }

  .roadmap-goal h2::after {
    margin-right: auto;
    margin-left: auto;
  }

  .goal-progress {
    margin-inline: auto;
  }

  .roadmap-quote {
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: center;
  }

  .roadmap-quote span {
    line-height: 0.8;
  }

  .roadmap-quote p {
    letter-spacing: 0.18em;
  }
}

@media (max-width: 560px) {
  .roadmap-hero {
    min-height: 380px;
  }

  .roadmap-copy {
    padding-right: 18px;
    padding-left: 18px;
  }

  .roadmap-kicker {
    letter-spacing: 0.22em;
  }

  .roadmap-copy h1 {
    font-size: clamp(3.45rem, 21vw, 5rem);
  }

  .roadmap-copy > p {
    font-size: 1rem;
  }

  .roadmap-panel {
    border-radius: 18px;
  }

  .roadmap-goal {
    padding: 26px 20px 30px;
  }

  .goal-icon {
    width: 92px;
    height: 92px;
  }

  .goal-icon svg {
    width: 40px;
    height: 40px;
  }

  .roadmap-quote {
    padding: 20px 18px 28px;
  }

  .roadmap-quote p {
    letter-spacing: 0.12em;
    line-height: 1.55;
  }
}
