:root {
  --panel: rgba(8, 19, 34, 0.68);
  --panel-strong: rgba(12, 28, 49, 0.88);
  --panel-soft: rgba(10, 23, 40, 0.48);
  --line: rgba(112, 208, 252, 0.18);
  --line-strong: rgba(112, 208, 252, 0.38);
  --cyan: #00d9ff;
  --sky: #70d0fc;
  --ice: #e6f1ff;
  --muted-blue: #a8b4c7;
  --faint-blue: #718096;
}

.inner-body {
  overflow-x: hidden;
  background: #030712;
}

.inner-page {
  display: block;
  min-height: 100svh;
  overflow: visible;
  background:
    radial-gradient(circle at 74% 13%, rgba(0, 134, 255, 0.11), transparent 27rem),
    radial-gradient(circle at 12% 62%, rgba(0, 217, 255, 0.045), transparent 34rem),
    linear-gradient(145deg, #060b16 0%, #030712 46%, #02050e 100%);
}

.inner-page::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(112, 208, 252, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 208, 252, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.inner-page .star-field,
.inner-page .aurora,
.inner-page .dot-grid {
  position: fixed;
}

.inner-page .aurora {
  opacity: 0.52;
}

.inner-shell {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 96px), 1262px);
  margin-inline: auto;
}

.inner-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  width: 100%;
  height: 94px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 48px;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.inner-header.is-scrolled {
  border-color: rgba(112, 208, 252, 0.11);
  background: rgba(3, 7, 18, 0.74);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

.inner-page .wordmark {
  width: max-content;
  font-size: 35px;
  letter-spacing: -1.8px;
  transform: scaleX(1.16);
}

.inner-nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

.inner-nav a {
  position: relative;
  padding: 16px 0;
  color: rgba(230, 241, 255, 0.72);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.inner-nav a::after {
  position: absolute;
  right: 0;
  bottom: 9px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.inner-nav a:hover,
.inner-nav a:focus-visible,
.inner-nav a[aria-current="page"] {
  color: #fff;
}

.inner-nav a:hover::after,
.inner-nav a:focus-visible::after,
.inner-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.command-trigger,
.menu-trigger {
  min-height: 36px;
  padding: 0 13px;
  color: rgba(230, 241, 255, 0.78);
  border: 1px solid rgba(135, 177, 211, 0.22);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(18, 31, 47, 0.72), rgba(7, 17, 29, 0.7));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.command-trigger:hover,
.command-trigger:focus-visible,
.menu-trigger:hover,
.menu-trigger:focus-visible {
  color: #fff;
  border-color: rgba(112, 208, 252, 0.5);
  background: rgba(21, 42, 63, 0.82);
  transform: translateY(-1px);
}

.menu-trigger {
  display: none;
}

.inner-page .motion-toggle {
  position: relative;
  top: auto;
  right: auto;
  width: 34px;
  height: 34px;
}

.page-main {
  position: relative;
  z-index: 3;
}

.page-hero {
  position: relative;
  display: grid;
  min-height: 690px;
  grid-template-columns: minmax(0, 6fr) minmax(390px, 5fr);
  align-items: center;
  gap: 70px;
  padding: 94px 0 82px;
}

.page-hero--wide {
  grid-template-columns: minmax(370px, 4fr) minmax(540px, 7fr);
}

.page-hero.page-hero--gallery {
  min-height: 610px;
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, 0.72fr);
  align-items: end;
  gap: clamp(64px, 8vw, 128px);
  padding-top: 150px;
}

.gallery-hero__copy {
  align-self: end;
  padding: 0 0 25px clamp(28px, 3vw, 48px);
  border-left: 1px solid rgba(112, 208, 252, 0.2);
}

.gallery-hero__copy .page-lead {
  margin-top: 28px;
}

.gallery-hero__count {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin: 0;
}

.gallery-hero__count strong {
  color: var(--ice);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(58px, 5vw, 76px);
  font-weight: 400;
  line-height: 0.78;
}

.gallery-hero__count span {
  color: var(--faint-blue);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.page-projects .page-hero--wide {
  grid-template-columns: minmax(450px, 5fr) minmax(600px, 7fr);
  gap: 50px;
}

.page-projects .page-hero--wide.page-hero--projects {
  min-height: 540px;
  grid-template-columns: 1fr;
  padding: 120px 0 50px;
}

.projects-hero {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: end;
  gap: clamp(56px, 8vw, 130px);
}

.inner-page.page-projects .page-hero--projects .page-title {
  max-width: 820px;
  font-size: clamp(64px, 6.3vw, 94px);
}

.projects-hero__summary {
  padding: 10px 0 8px clamp(28px, 3vw, 48px);
  border-left: 1px solid rgba(112, 208, 252, 0.2);
}

.projects-hero__summary .page-lead {
  max-width: 560px;
  margin-top: 0;
}

.projects-hero__scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.projects-hero__scope span {
  padding: 8px 11px;
  color: var(--faint-blue);
  border: 1px solid rgba(112, 208, 252, 0.16);
  border-radius: 999px;
  background: rgba(8, 24, 41, 0.5);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-projects #project-index {
  padding-top: 40px;
}

.inner-page.page-projects .page-title {
  font-size: clamp(58px, 5.1vw, 76px);
}

.page-kicker,
.panel-label,
.card-index,
.project-meta,
.micro-label {
  color: var(--sky);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 25px;
}

.page-kicker::before {
  width: 26px;
  height: 1px;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.7);
}

.inner-page .page-title,
.inner-page .section-title,
.inner-page .card-title {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
}

.inner-page .page-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(60px, 6.6vw, 94px);
  line-height: 0.91;
  letter-spacing: -0.035em;
}

.page-title span,
.page-title em {
  display: block;
  white-space: normal;
}

.page-hero > * {
  min-width: 0;
}

.page-title em,
.section-title em {
  color: var(--blue);
  font-style: italic;
}

.page-lead {
  max-width: 615px;
  margin: 31px 0 0;
  color: rgba(230, 241, 255, 0.76);
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: 0.02em;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 31px;
}

.page-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  color: rgba(238, 247, 255, 0.9);
  border: 1px solid rgba(135, 177, 211, 0.28);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 35, 52, 0.82), rgba(8, 19, 32, 0.78));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.16);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: transform 180ms ease, translate 160ms ease-out, color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.page-button--primary {
  color: #fff;
  border-color: rgba(73, 179, 255, 0.76);
  background: linear-gradient(135deg, #078ff0, #0566ce);
  box-shadow: 0 10px 28px rgba(0, 111, 220, 0.24), inset 0 1px rgba(255, 255, 255, 0.2);
}

.page-button:hover,
.page-button:focus-visible {
  color: #fff;
  border-color: rgba(112, 208, 252, 0.72);
  background: linear-gradient(180deg, rgba(28, 49, 71, 0.94), rgba(10, 27, 45, 0.9));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09), 0 12px 28px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.page-button--primary:hover,
.page-button--primary:focus-visible {
  background: linear-gradient(135deg, #149cf8, #0871dd);
  box-shadow: 0 12px 32px rgba(0, 127, 238, 0.3), inset 0 1px rgba(255, 255, 255, 0.22);
}

.page-button:active {
  transform: translateY(0) scale(0.985);
}

.glass-panel,
.section-frame,
.project-card,
.study-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(10, 15, 26, 0.46)),
    rgba(4, 14, 27, 0.58);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px rgba(230, 241, 255, 0.06),
    0 0 24px rgba(0, 134, 255, 0.06);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

.orbit-stage {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  isolation: isolate;
}

.orbit-stage::before,
.orbit-stage::after,
.orbit-ring {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 76%;
  height: 42%;
  border: 1px solid rgba(112, 208, 252, 0.26);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%) rotate(-18deg);
}

.orbit-stage::after {
  width: 63%;
  height: 58%;
  border-color: rgba(0, 150, 253, 0.22);
  transform: translate(-50%, -50%) rotate(48deg);
}

.orbit-ring {
  width: 88%;
  height: 29%;
  border-color: rgba(230, 241, 255, 0.12);
  transform: translate(-50%, -50%) rotate(12deg);
}

.motion-enhanced .orbit-stage::before {
  animation: orbit-drift-one 32s linear infinite;
  will-change: transform;
}

.motion-enhanced .orbit-stage::after {
  animation: orbit-drift-two 39s linear infinite reverse;
  will-change: transform;
}

.motion-enhanced .orbit-ring {
  animation: orbit-drift-ring 24s linear infinite;
  will-change: transform;
}

.orbit-core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(214, 242, 255, 0.62);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.94) 0 12%, transparent 30%),
    linear-gradient(135deg, rgba(151, 91, 255, 0.94), rgba(0, 150, 253, 0.92) 48%, rgba(0, 217, 183, 0.84));
  box-shadow:
    inset 0 0 14px rgba(255, 255, 255, 0.18),
    0 0 18px rgba(0, 150, 253, 0.34),
    0 0 48px rgba(0, 150, 253, 0.14);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: core-pulse 2.8s ease-in-out infinite;
}

.orbit-core::before,
.orbit-core::after {
  position: absolute;
  border: 1px solid rgba(215, 241, 255, 0.16);
  border-radius: 50%;
  content: "";
  opacity: 0;
  animation: orbit-core-signal 2.8s ease-out infinite;
}

.orbit-core::before {
  inset: -13px;
}

.orbit-core::after {
  inset: -25px;
  border-color: rgba(112, 208, 252, 0.1);
  animation-delay: 0.72s;
}

.orbit-core--timeline {
  z-index: 3;
  top: 44%;
  left: 53%;
  width: 58px;
  height: 58px;
}

.portrait-orbit-card .orbit-core {
  width: 40px;
  height: 40px;
  opacity: 0.78;
}

.portrait-orbit-card {
  min-height: 590px;
}

.portrait-orbit-card .orbit-stage {
  min-height: 590px;
}

.about-portrait {
  position: absolute;
  z-index: 1;
  bottom: -58px;
  left: 50%;
  width: 560px;
  height: auto;
  max-width: none;
  filter: grayscale(78%) contrast(1.04) brightness(0.91);
  transform: translateX(-48%);
}

.orbit-tag {
  position: absolute;
  z-index: 3;
  margin: 0;
  padding: 7px 9px;
  color: rgba(230, 241, 255, 0.74);
  border: 1px solid rgba(112, 208, 252, 0.17);
  border-radius: 4px;
  background: rgba(3, 13, 25, 0.76);
  cursor: pointer;
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.orbit-tag--one { top: 17%; left: 8%; }
.orbit-tag--two { top: 29%; right: 7%; }
.orbit-tag--three { right: 9%; bottom: 17%; }
.orbit-tag--four { bottom: 20%; left: 7%; }

.metric-rail {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 105px;
  padding: 22px 25px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
}

.metric span {
  color: var(--muted-blue);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-section {
  position: relative;
  padding: 104px 0;
}

.page-section--compact {
  padding-top: 48px;
}

.section-heading {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) minmax(260px, 430px);
  align-items: end;
  gap: 28px;
  margin-bottom: 45px;
}

.inner-page .section-title {
  margin: 0;
  font-size: clamp(43px, 4.5vw, 67px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.section-intro {
  margin: 0;
  color: var(--muted-blue);
  font-size: 15px;
  line-height: 1.7;
}

.section-frame {
  position: relative;
  padding: 40px;
}

.section-frame > .panel-label {
  position: absolute;
  top: -9px;
  left: 24px;
  padding: 0 9px;
  background: #040916;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 2fr);
  gap: 72px;
}

.story-index {
  position: sticky;
  top: 125px;
  height: max-content;
  padding: 25px;
}

.story-index a {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 11px;
  color: var(--muted-blue);
  border-bottom: 1px solid rgba(112, 208, 252, 0.09);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-index a::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: #29425f;
}

.story-index a:hover::before,
.story-index a:focus-visible::before {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.story-copy {
  display: grid;
  gap: 55px;
}

.story-chapter {
  position: relative;
  padding-left: 34px;
  border-left: 1px solid rgba(112, 208, 252, 0.16);
}

.story-chapter::before {
  position: absolute;
  top: 7px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  content: "";
  background: var(--blue);
  box-shadow: 0 0 15px rgba(0, 150, 253, 0.72);
}

.story-chapter h3 {
  margin: 0 0 16px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 31px;
  font-weight: 400;
}

.story-chapter p {
  max-width: 720px;
  margin: 0;
  color: rgba(230, 241, 255, 0.72);
  font-size: 16px;
  line-height: 1.78;
}

.pull-quote {
  margin: 15px 0;
  padding: 28px 0 28px 34px;
  color: var(--ice);
  border-left: 2px solid var(--blue);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(28px, 3.3vw, 46px);
  line-height: 1.15;
}

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

.skill-card,
.study-card,
.discipline-card {
  position: relative;
  min-height: 190px;
  padding: 28px;
  overflow: hidden;
}

.skill-card::after,
.discipline-card::after {
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(0, 150, 253, 0.18);
  border-radius: 50%;
  content: "";
  box-shadow: inset 0 0 25px rgba(0, 150, 253, 0.05);
}

.skill-card h3,
.study-card h3,
.discipline-card h3 {
  margin: 17px 0 10px;
  font-size: 21px;
  font-weight: 500;
}

.skill-card p,
.study-card p,
.discipline-card p {
  margin: 0;
  color: var(--muted-blue);
  font-size: 14px;
  line-height: 1.65;
}

.dna-table-wrap {
  overflow-x: auto;
}

.dna-table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
}

.dna-table th,
.dna-table td {
  height: 55px;
  padding: 0 15px;
  border: 1px solid rgba(112, 208, 252, 0.11);
  text-align: center;
}

.dna-table th {
  color: var(--faint-blue);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dna-table th:first-child,
.dna-table td:first-child {
  width: 31%;
  color: var(--ice);
  text-align: left;
}

.dna-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1b3a57;
}

.dna-dot.is-active {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.9);
}

.career-timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.career-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 177px;
  width: 1px;
  content: "";
  background: linear-gradient(var(--blue), rgba(112, 208, 252, 0.08));
}

.timeline-entry {
  position: relative;
  display: grid;
  min-height: 154px;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 56px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(112, 208, 252, 0.1);
}

.timeline-entry::before {
  position: absolute;
  top: 39px;
  left: 172px;
  width: 11px;
  height: 11px;
  border: 2px solid #c8edff;
  border-radius: 50%;
  content: "";
  background: var(--blue);
  box-shadow: 0 0 16px rgba(0, 150, 253, 0.75);
}

.timeline-date {
  padding-top: 3px;
  color: var(--sky);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin: 0 0 5px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 27px;
  font-weight: 400;
}

.timeline-role {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-content p:last-child {
  max-width: 710px;
  margin: 0;
  color: var(--muted-blue);
  font-size: 14px;
  line-height: 1.65;
}

.project-constellation {
  position: relative;
  min-height: 590px;
  overflow: hidden;
}

.constellation-lines {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: none;
}

.constellation-axis,
.constellation-edge {
  vector-effect: non-scaling-stroke;
}

.constellation-axis {
  stroke: rgba(112, 208, 252, 0.12);
  stroke-width: 0.7;
  stroke-dasharray: 2 10;
}

.constellation-edge {
  stroke: rgba(0, 150, 253, 0.48);
  stroke-width: 0.9;
  stroke-dasharray: 9 8;
  transition: stroke 220ms ease, opacity 220ms ease, filter 220ms ease;
}

.constellation-edge.is-active {
  stroke: rgba(112, 208, 252, 0.88);
  filter: drop-shadow(0 0 4px rgba(0, 150, 253, 0.38));
}

.constellation-edge.is-dimmed {
  opacity: 0.16;
}

.constellation-orbit {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 70%;
  height: 43%;
  border: 1px solid rgba(112, 208, 252, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
}

.constellation-orbit--two {
  width: 53%;
  height: 70%;
  transform: translate(-50%, -50%) rotate(54deg);
}

.motion-enhanced .constellation-lines {
  animation: constellation-breathe 5.6s ease-in-out infinite;
}

.motion-enhanced .constellation-edge {
  animation: constellation-flow 18s linear infinite;
}

.motion-enhanced .constellation-orbit:not(.constellation-orbit--two) {
  animation: constellation-spin-one 34s linear infinite;
}

.motion-enhanced .constellation-orbit--two {
  animation: constellation-spin-two 42s linear infinite reverse;
}

.project-node {
  position: absolute;
  z-index: 4;
  top: var(--y);
  left: var(--x);
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  color: #dff5ff;
  border: 1px solid rgba(112, 208, 252, 0.5);
  border-radius: 50%;
  background: rgba(5, 21, 38, 0.9);
  box-shadow: 0 0 0 7px rgba(0, 150, 253, 0.04), 0 0 20px rgba(0, 150, 253, 0.15);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.project-node:hover,
.project-node:focus-visible,
.project-node.is-active {
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(0, 150, 253, 0.08), 0 0 28px rgba(0, 150, 253, 0.65);
  transform: translate(-50%, -50%) scale(1.12);
}

.orbit-preview {
  position: absolute;
  z-index: 5;
  bottom: 20px;
  left: 20px;
  display: grid;
  width: min(370px, calc(100% - 40px));
  min-height: 132px;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  padding: 12px;
}

.project-constellation.is-radial-orbit .orbit-preview {
  z-index: 20;
  top: calc(44% - 104px);
  bottom: auto;
  left: 53%;
  width: min(390px, calc(100% - 44px));
  min-height: 178px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 14px) scale(0.96);
  transform-origin: 50% 0;
  transition:
    opacity 240ms ease,
    visibility 240ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-constellation.is-radial-orbit .orbit-preview.is-expanded {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.orbit-preview img {
  width: 118px;
  height: 106px;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(0.82) brightness(0.8) contrast(1.04);
}

.orbit-preview h3 {
  margin: 8px 0 7px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 21px;
  font-weight: 400;
}

.orbit-preview p {
  margin: 0;
  color: var(--muted-blue);
  font-size: 12px;
  line-height: 1.5;
}

.orbit-preview__body {
  min-width: 0;
}

.orbit-preview__topline,
.orbit-energy__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.orbit-preview__topline .project-meta {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orbit-status {
  flex: 0 0 auto;
  padding: 3px 6px;
  color: #dff8ff;
  border: 1px solid rgba(112, 208, 252, 0.34);
  border-radius: 3px;
  background: rgba(0, 150, 253, 0.1);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.orbit-energy {
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid rgba(112, 208, 252, 0.1);
}

.orbit-energy__label {
  color: rgba(230, 241, 255, 0.58);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orbit-energy__label strong {
  color: rgba(230, 248, 255, 0.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 500;
}

.orbit-energy__track {
  display: block;
  height: 2px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(230, 241, 255, 0.08);
}

.orbit-energy__track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0096fd, #8e67ff);
  transition: width 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.orbit-connections {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.orbit-connections::before {
  width: 100%;
  color: rgba(230, 241, 255, 0.46);
  content: "Connected nodes";
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.orbit-related-link {
  padding: 4px 7px;
  color: rgba(225, 244, 255, 0.72);
  border: 1px solid rgba(112, 208, 252, 0.16);
  border-radius: 3px;
  background: rgba(4, 18, 32, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.orbit-related-link:hover,
.orbit-related-link:focus-visible {
  color: #fff;
  border-color: rgba(112, 208, 252, 0.46);
  background: rgba(0, 150, 253, 0.16);
}

.orbit-node-detail {
  position: absolute;
  z-index: 14;
  bottom: 18px;
  left: 50%;
  width: min(310px, calc(100% - 36px));
  padding: 14px 16px;
  opacity: 0;
  visibility: hidden;
  border: 1px solid rgba(112, 208, 252, 0.2);
  border-radius: 8px;
  background: rgba(3, 14, 27, 0.88);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  transform: translate(-50%, 10px) scale(0.97);
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

.orbit-node-detail.is-expanded {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.orbit-node-detail span {
  color: #70d0fc;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.orbit-node-detail h3 {
  margin: 7px 0 5px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
}

.orbit-node-detail p {
  margin: 0;
  color: var(--muted-blue);
  font-size: 11px;
  line-height: 1.5;
}

.orbit-mobile-list {
  display: none;
}

.filter-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 30px;
}

.filter-chip {
  min-height: 44px;
  padding: 0 18px;
  color: var(--muted-blue);
  border: 1px solid rgba(135, 177, 211, 0.2);
  border-radius: 999px;
  background: rgba(10, 23, 39, 0.58);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(70, 175, 255, 0.64);
  background: rgba(0, 113, 224, 0.22);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 8px 22px rgba(0, 81, 170, 0.12);
}

.filter-chip:hover,
.filter-chip:focus-visible {
  transform: translateY(-1px);
}

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

.project-card {
  --interaction-y: 0px;
  position: relative;
  display: flex;
  min-height: 490px;
  flex-direction: column;
  padding: 12px;
  overflow: hidden;
  translate: 0 var(--interaction-y);
  transition: border-color 200ms ease, translate 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.project-card:hover {
  --interaction-y: -4px;
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 32px rgba(0, 150, 253, 0.09);
}

.project-card[hidden],
.media-tile[hidden] {
  display: none !important;
}

.project-cover {
  position: relative;
  height: 270px;
  min-height: 270px;
  flex: 0 0 270px;
  overflow: hidden;
  border: 1px solid rgba(112, 208, 252, 0.1);
  border-radius: 8px;
  background: #050914;
}

.project-cover::before,
.project-cover::after {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(0, 150, 253, 0.28);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.project-cover::before {
  top: 18%;
  right: -6%;
  width: 53%;
  height: 62%;
  transform: rotate(-22deg);
}

.project-cover::after {
  right: 18%;
  bottom: -25%;
  width: 38%;
  height: 65%;
  border-color: rgba(0, 217, 255, 0.15);
  transform: rotate(32deg);
}

.project-cover :is(img, video) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.82) contrast(1.04);
  transition: transform 350ms ease, filter 350ms ease;
}

.project-cover .project-video--contain {
  object-fit: contain;
}

.project-card:hover .project-cover :is(img, video) {
  filter: saturate(1) brightness(0.94) contrast(1.03);
  transform: scale(1.018);
}

.project-cover--editing {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
}

.project-cover--apparel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3px;
  padding: 3px;
}

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

.project-cover--apparel .editing-frame:last-child img {
  object-position: center;
}

.editing-frame {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  cursor: zoom-in;
  border: 0;
  border-radius: 4px;
  background: #08111d;
}

.project-cover--editing .editing-frame img {
  object-position: center;
}

.editing-frame span {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 7px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: rgba(238, 249, 255, 0.9);
  border: 1px solid rgba(166, 224, 255, 0.35);
  border-radius: 50%;
  background: rgba(2, 8, 17, 0.72);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.editing-frame:focus-visible {
  z-index: 3;
  outline: 2px solid rgba(62, 177, 255, 0.95);
  outline-offset: -3px;
}

.editing-frame:hover img,
.editing-frame:focus-visible img {
  filter: saturate(1) brightness(0.98) contrast(1.02);
}

.project-gallery-note {
  color: var(--ice);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 16px 12px;
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.inner-page .card-title {
  margin: 12px 0 10px;
  font-size: 31px;
  line-height: 1.05;
}

.project-description {
  max-width: 530px;
  margin: 0;
  color: var(--muted-blue);
  font-size: 14px;
  line-height: 1.62;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 21px;
}

.text-link {
  color: var(--ice);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--cyan);
}

.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: clamp(290px, 27vw, 370px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.media-tile {
  position: relative;
  min-height: 0;
  grid-column: span 4;
  grid-row: span 1;
  overflow: hidden;
  padding: 0;
  cursor: zoom-in;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #07101e;
  font: inherit;
  text-align: left;
}

.gallery-grid > .media-tile:nth-child(1),
.gallery-grid > .media-tile:nth-child(4),
.gallery-grid > .media-tile:nth-child(5),
.gallery-grid > .media-tile:nth-child(8),
.gallery-grid > .media-tile:nth-child(10) {
  grid-column: span 8;
}

.gallery-grid[data-layout-filter="landscape"] {
  grid-auto-rows: clamp(245px, 23vw, 315px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid[data-layout-filter="portrait"] {
  grid-auto-rows: clamp(390px, 40vw, 520px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid[data-layout-filter]:not([data-layout-filter="all"]) > .media-tile {
  grid-column: span 1;
  grid-row: span 1;
}

.media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.04) brightness(0.78);
  transition: transform 500ms ease, filter 400ms ease;
}

.media-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(1, 6, 14, 0.92), transparent 46%);
}

.media-caption {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
  color: #fff;
}

.media-caption strong {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.media-caption span {
  color: rgba(230, 241, 255, 0.6);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-tile:hover img,
.media-tile:focus-visible img {
  filter: saturate(1) contrast(1.02) brightness(0.95);
  transform: scale(1.025);
}

.source-note {
  margin-top: 24px;
  color: var(--faint-blue);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 8px;
}

.site-footer__inner {
  display: flex;
  width: 100%;
  max-width: 1024px;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-inline: auto;
  padding: 8px 16px;
}

.site-footer__copy {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

.site-footer__copy > span {
  color: #959595;
}

.site-footer__copy strong {
  padding-inline: 4px;
  font-weight: 400;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-icon-link {
  position: relative;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #e0e0e0;
  border-radius: 12px;
  background: transparent;
  transition: color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.footer-icon-link svg {
  width: 16px;
  height: 16px;
}

.footer-icon-link::after {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 5px 7px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(8, 13, 22, 0.96);
  content: attr(data-tooltip);
  font-size: 10px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.footer-icon-link:hover,
.footer-icon-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.footer-icon-link:hover::after,
.footer-icon-link:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.lightbox,
.command-menu {
  width: min(1120px, calc(100vw - 40px));
  max-width: none;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(112, 208, 252, 0.24);
  border-radius: 12px;
  background: rgba(2, 7, 16, 0.94);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 150, 253, 0.1);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.lightbox::backdrop,
.command-menu::backdrop {
  background: rgba(0, 3, 10, 0.88);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.lightbox-layout {
  display: grid;
  min-height: min(780px, calc(100vh - 60px));
  grid-template-rows: 1fr auto;
}

.lightbox-media {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 48px 65px 25px;
}

.lightbox-media img {
  max-width: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(112, 208, 252, 0.28);
  border-radius: 50%;
  background: rgba(5, 18, 32, 0.8);
  cursor: pointer;
  font: inherit;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  border-color: rgba(112, 208, 252, 0.68);
  background: rgba(13, 42, 68, 0.94);
  transform: scale(1.04);
}

.lightbox-close { top: 18px; right: 18px; }
.lightbox-nav--prev { top: 50%; left: 15px; }
.lightbox-nav--next { top: 50%; right: 15px; }

.lightbox-meta {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 25px;
  border-top: 1px solid var(--line);
}

.lightbox-meta h2 {
  margin: 0 0 4px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}

.lightbox-meta p {
  margin: 0;
  color: var(--muted-blue);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-menu {
  width: min(570px, calc(100vw - 32px));
}

.command-shell {
  padding: 18px;
}

.command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 7px 16px;
  border-bottom: 1px solid var(--line);
}

.command-head strong {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.command-head button {
  display: grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  padding: 0 8px;
  color: var(--muted-blue);
  border: 1px solid rgba(135, 177, 211, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.command-head button:hover,
.command-head button:focus-visible {
  color: #fff;
  border-color: rgba(112, 208, 252, 0.45);
  background: rgba(0, 134, 255, 0.08);
}

.page-button:focus-visible,
.filter-chip:focus-visible,
.command-trigger:focus-visible,
.menu-trigger:focus-visible,
.footer-icon-link:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible,
.command-head button:focus-visible {
  outline: 2px solid rgba(62, 177, 255, 0.92);
  outline-offset: 3px;
}

.command-links {
  display: grid;
  gap: 5px;
  padding-top: 12px;
}

.command-links a {
  display: grid;
  min-height: 51px;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
}

.command-links a:hover,
.command-links a:focus-visible {
  border-color: rgba(112, 208, 252, 0.22);
  background: rgba(0, 134, 255, 0.09);
}

.command-number,
.command-key {
  color: var(--faint-blue);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal {
  --reveal-y: 0px;
  opacity: 1;
  filter: blur(0);
  scale: 1;
  translate: 0 calc(var(--reveal-y) + var(--interaction-y, 0px));
}

.motion-enhanced .reveal {
  --reveal-y: 28px;
  opacity: 0;
  filter: blur(8px);
  scale: 0.985;
  transition:
    opacity 720ms cubic-bezier(0.16, 1, 0.3, 1),
    translate 720ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 680ms cubic-bezier(0.16, 1, 0.3, 1),
    scale 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-enhanced .reveal.is-visible {
  --reveal-y: 0px;
  opacity: 1;
  filter: blur(0);
  scale: 1;
}

.scroll-reveal {
  opacity: 1;
  filter: blur(0);
  scale: 1;
  translate: 0 0;
}

.motion-enhanced .scroll-reveal {
  opacity: 0;
  filter: blur(8px);
  scale: 0.985;
  translate: 0 30px;
  transition:
    opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
    translate 760ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 700ms cubic-bezier(0.16, 1, 0.3, 1),
    scale 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-enhanced .scroll-reveal.is-in-view {
  opacity: 1;
  filter: blur(0);
  scale: 1;
  translate: 0 0;
}

.motion-enhanced .inner-page::before {
  background-position: 0 var(--scroll-parallax, 0px);
}

.motion-enhanced .inner-page .aurora {
  transform: translate3d(0, var(--aurora-scroll-y, 0px), 0) scale(1.05);
  animation: page-aurora-breathe 8.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes page-aurora-breathe {
  0%, 100% { opacity: 0.42; filter: saturate(0.92) brightness(0.94); }
  50% { opacity: 0.62; filter: saturate(1.18) brightness(1.1); }
}

@media (min-width: 821px) {
  .motion-enhanced .inner-page .page-hero > :first-child {
    transform: translate3d(0, var(--inner-copy-scroll-y, 0px), 0);
    will-change: transform;
  }

  .motion-enhanced .inner-page .page-hero > :last-child {
    transform: translate3d(0, var(--inner-visual-scroll-y, 0px), 0);
    will-change: transform;
  }
}

.motion-enhanced .button,
.motion-enhanced .page-button {
  translate: var(--magnetic-x, 0px) var(--magnetic-y, 0px);
}

@media (hover: hover) and (pointer: fine) and (min-width: 821px) {
  .motion-enhanced .landing:not(.inner-page) .portrait-composition {
    transform: translate3d(
      var(--portrait-shift-x, 0px),
      calc(var(--portrait-shift-y, 0px) + var(--hero-scroll-lift, 0px)),
      0
    ) scale(var(--portrait-fit-scale, 1));
    transition: transform 180ms ease-out;
    will-change: transform;
  }

  .motion-enhanced .pointer-reactive {
    transform-origin: 50% 50%;
    transform-style: preserve-3d;
    transition:
      opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
      translate 420ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 200ms ease,
      box-shadow 200ms ease;
  }

  .motion-enhanced .pointer-reactive.is-pointer-active {
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    will-change: transform;
  }

  .motion-enhanced .project-card.pointer-reactive {
    transition:
      opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
      translate 200ms ease,
      transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 200ms ease,
      box-shadow 200ms ease;
  }
}

/* Native adaptation of the supplied GlowCard component. */
.glow-card {
  --glow-base: 220;
  --glow-spread: 200;
  --glow-hue: var(--glow-base);
  --glow-x: 50%;
  --glow-y: 50%;
  isolation: isolate;
}

.glow-card-layer {
  position: absolute;
  z-index: 8;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      200px circle at var(--glow-x) var(--glow-y),
      hsl(var(--glow-hue) 100% 70% / 0.09),
      transparent 72%
    );
  transition: opacity 220ms ease;
}

.glow-card-layer::before,
.glow-card-layer::after {
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(
      150px circle at var(--glow-x) var(--glow-y),
      hsl(var(--glow-hue) 100% 56% / 0.82),
      transparent 74%
    );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.glow-card-layer::after {
  inset: -3px;
  padding: 4px;
  opacity: 0.42;
  background:
    radial-gradient(
      110px circle at var(--glow-x) var(--glow-y),
      rgba(255, 255, 255, 0.72),
      transparent 72%
    );
  filter: blur(6px) brightness(1.22);
}

.glow-card:is(:hover, :focus-within, .is-pointer-active) > .glow-card-layer {
  opacity: 0.78;
}

.orbit-glow-target {
  --glow-hue: 205;
  --glow-x: 50%;
  --glow-y: 50%;
}

.orbit-glow-layer {
  position: absolute;
  z-index: 6;
  inset: -2px;
  padding: 2px;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      180px circle at var(--glow-x) var(--glow-y),
      hsl(var(--glow-hue) 90% 70% / 0.48),
      transparent 72%
    );
  filter: drop-shadow(0 0 5px hsl(var(--glow-hue) 90% 62% / 0.34));
  transition: opacity 220ms ease;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.orbit-glow-target.is-orbit-active > .orbit-glow-layer {
  opacity: 0.52;
}

/* Shared radial-orbit behavior, based on the referenced orbital timeline. */
.project-constellation.is-radial-orbit .constellation-lines {
  opacity: 0.9;
}

.project-constellation.is-radial-orbit .project-node {
  --node-lift: 0;
  z-index: var(--orbit-z, 4);
  top: calc(var(--orbit-center-y, 45%) + var(--orbit-y, 0px));
  left: calc(var(--orbit-center-x, 52%) + var(--orbit-x, 0px));
  opacity: var(--orbit-opacity, 1);
  transform: translate(-50%, -50%);
  scale: calc(var(--orbit-scale, 1) + var(--node-lift));
  transition:
    opacity 240ms ease,
    scale 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
  will-change: top, left, opacity;
}

.project-constellation.is-radial-orbit .project-node.radial-project-node {
  overflow: visible;
}

.orbital-energy-halo {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: var(--orbit-energy-size, 70px);
  height: var(--orbit-energy-size, 70px);
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(210, 240, 255, 0.12) 0,
      rgba(0, 150, 253, 0.055) 42%,
      transparent 72%
    );
  pointer-events: none;
  opacity: 0.46;
  transform: translate(-50%, -50%);
  transition: width 300ms ease, height 300ms ease, opacity 220ms ease;
}

.orbital-node-label {
  position: absolute;
  z-index: 2;
  top: calc(100% + 9px);
  left: 50%;
  max-width: 120px;
  color: rgba(225, 243, 255, 0.58);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.2;
  pointer-events: none;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: color 180ms ease, scale 180ms ease;
  white-space: nowrap;
}

.project-node:is(:hover, :focus-visible, .is-active) > .orbital-node-label {
  color: rgba(240, 250, 255, 0.92);
  scale: 1.06;
}

.project-node.is-active > .orbital-energy-halo {
  opacity: 0.72;
}

.project-node.is-related > .orbital-energy-halo {
  animation: orbital-energy-pulse 1.35s ease-in-out infinite;
}

.project-constellation.is-radial-orbit .project-node:is(:hover, :focus-visible, .is-active) {
  --node-lift: 0.1;
  transform: translate(-50%, -50%);
}

.project-constellation.is-radial-orbit .project-node.is-active {
  --node-lift: 0.16;
}

.project-constellation.is-radial-orbit .project-node.is-related:not(.is-active) {
  color: #effbff;
  border-color: rgba(202, 239, 255, 0.76);
  background: rgba(112, 208, 252, 0.32);
}

.project-constellation.is-radial-orbit .project-node.is-related,
.radial-orbit-stage .radial-orbit-node.is-related {
  animation: orbital-related-pulse 1.65s ease-in-out infinite;
}

.radial-orbit-stage .radial-orbit-node {
  --node-lift: 0;
  z-index: var(--orbit-z, 4);
  top: calc(50% + var(--orbit-y, 0px));
  right: auto;
  bottom: auto;
  left: calc(50% + var(--orbit-x, 0px));
  opacity: var(--orbit-opacity, 1);
  transform: translate(-50%, -50%);
  scale: calc(var(--orbit-scale, 1) + var(--node-lift));
  transition:
    color 180ms ease,
    border-color 180ms ease,
    opacity 240ms ease,
    scale 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
  will-change: top, left, opacity;
}

.work-page .page-hero .radial-orbit-stage .radial-orbit-node {
  top: calc(50% + var(--orbit-y, 0px));
  right: auto;
  bottom: auto;
  left: calc(50% + var(--orbit-x, 0px));
}

.radial-orbit-stage .radial-orbit-node:is(:hover, :focus-visible, .is-active) {
  --node-lift: 0.08;
  color: #f2fbff;
  border-color: rgba(112, 208, 252, 0.58);
  background: rgba(4, 30, 50, 0.94);
  box-shadow: 0 0 20px rgba(0, 150, 253, 0.16);
}

.radial-orbit-stage .radial-orbit-node.is-active {
  --node-lift: 0.12;
}

.radial-orbit-stage .radial-orbit-node.is-related:not(.is-active) {
  color: rgba(239, 251, 255, 0.9);
  border-color: rgba(112, 208, 252, 0.4);
  background: rgba(0, 150, 253, 0.15);
}

@keyframes orbital-related-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 150, 253, 0.05);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(0, 150, 253, 0.08), 0 0 18px rgba(0, 150, 253, 0.14);
  }
}

@keyframes orbital-energy-pulse {
  0%, 100% {
    opacity: 0.38;
    scale: 0.92;
  }
  50% {
    opacity: 0.68;
    scale: 1.08;
  }
}

@media (hover: none), (pointer: coarse) {
  .glow-card-layer,
  .orbit-glow-layer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-enhanced .orbit-stage::before,
  .motion-enhanced .orbit-stage::after,
  .motion-enhanced .orbit-ring,
  .motion-enhanced .constellation-orbit,
  .orbit-core,
  .orbit-core::before,
  .orbit-core::after {
    animation: none;
  }

  .project-constellation.is-radial-orbit .project-node,
  .radial-orbit-stage .radial-orbit-node,
  .project-constellation.is-radial-orbit .orbit-preview,
  .orbit-node-detail {
    transition: none;
  }

  .project-constellation.is-radial-orbit .project-node.is-related,
  .radial-orbit-stage .radial-orbit-node.is-related {
    animation: none;
  }

  .project-node.is-related > .orbital-energy-halo {
    animation: none;
  }
}

@media (forced-colors: active) {
  .glow-card-layer,
  .orbit-glow-layer {
    display: none;
  }
}

@keyframes core-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.92); }
  50% { transform: translate(-50%, -50%) scale(1.12); }
}

@keyframes orbit-core-signal {
  0% {
    opacity: 0;
    scale: 0.72;
  }
  28% {
    opacity: 0.52;
  }
  100% {
    opacity: 0;
    scale: 1.32;
  }
}

@keyframes orbit-drift-one {
  from { transform: translate(-50%, -50%) rotate(-18deg); }
  to { transform: translate(-50%, -50%) rotate(342deg); }
}

@keyframes orbit-drift-two {
  from { transform: translate(-50%, -50%) rotate(48deg); }
  to { transform: translate(-50%, -50%) rotate(408deg); }
}

@keyframes orbit-drift-ring {
  from { transform: translate(-50%, -50%) rotate(12deg); }
  to { transform: translate(-50%, -50%) rotate(372deg); }
}

@keyframes constellation-breathe {
  0%, 100% { opacity: 0.72; filter: drop-shadow(0 0 0 rgba(0, 150, 253, 0)); }
  50% { opacity: 0.94; filter: drop-shadow(0 0 5px rgba(0, 150, 253, 0.18)); }
}

@keyframes constellation-flow {
  to { stroke-dashoffset: -170; }
}

@keyframes constellation-spin-one {
  from { transform: translate(-50%, -50%) rotate(-12deg); }
  to { transform: translate(-50%, -50%) rotate(348deg); }
}

@keyframes constellation-spin-two {
  from { transform: translate(-50%, -50%) rotate(54deg); }
  to { transform: translate(-50%, -50%) rotate(414deg); }
}

@media (max-width: 1080px) {
  .inner-shell {
    width: min(calc(100% - 64px), 960px);
  }

  .inner-header {
    padding-inline: 32px;
  }

  .inner-nav {
    gap: 24px;
  }

  .page-hero,
  .page-hero--wide {
    grid-template-columns: 1fr 0.86fr;
    gap: 35px;
  }

  .page-projects .page-hero--wide {
    grid-template-columns: 1fr 0.86fr;
    gap: 35px;
  }

  .section-heading {
    grid-template-columns: 110px 1fr;
  }

  .section-intro {
    grid-column: 2;
  }

}

@media (max-width: 820px) {
  .inner-shell {
    width: min(calc(100% - 40px), 720px);
  }

  .inner-header {
    height: 78px;
    grid-template-columns: 1fr auto;
    padding-inline: 20px;
    overflow: visible;
  }

  .inner-page .wordmark {
    font-size: 31px;
  }

  .inner-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(3, 9, 20, 0.95);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .inner-nav.is-open {
    display: grid;
  }

  .inner-nav a {
    min-height: 45px;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(112, 208, 252, 0.08);
  }

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

  .header-tools {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .command-trigger {
    display: none;
  }

  .menu-trigger {
    display: inline-flex;
    min-width: 48px;
    align-items: center;
    justify-content: center;
  }

  .page-hero,
  .page-hero--wide {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 90px 0 65px;
  }

  .page-hero.page-hero--gallery {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .gallery-hero__copy {
    padding: 30px 0 0;
    border-top: 1px solid rgba(112, 208, 252, 0.2);
    border-left: 0;
  }

  .page-projects .page-hero--wide {
    grid-template-columns: 1fr;
  }

  .page-projects .page-hero--wide.page-hero--projects {
    min-height: auto;
    padding: 90px 0 48px;
  }

  .projects-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .projects-hero__summary {
    padding: 26px 0 0;
    border-top: 1px solid rgba(112, 208, 252, 0.2);
    border-left: 0;
  }

  .inner-page.page-projects .page-hero--projects .page-title {
    font-size: clamp(48px, 13vw, 64px);
  }

  .inner-page .page-title {
    font-size: clamp(54px, 12vw, 78px);
  }

  .inner-page.page-projects .page-title {
    font-size: clamp(52px, 11.5vw, 72px);
  }

  .orbit-stage,
  .portrait-orbit-card .orbit-stage {
    min-height: 520px;
  }

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

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

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .page-section {
    padding: 78px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .section-intro {
    grid-column: auto;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .story-index {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 8px 14px;
  }

  .story-index a {
    flex: 0 0 auto;
    padding: 0 14px;
    border-bottom: 0;
  }

  .skills-grid,
  .studies-grid,
  .discipline-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-constellation {
    min-height: auto;
    padding: 24px;
  }

  .project-constellation > :not(.orbit-mobile-list) {
    display: none;
  }

  .orbit-mobile-list {
    display: grid;
    gap: 7px;
  }

  .orbit-mobile-list a {
    display: grid;
    min-height: 48px;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    border-bottom: 1px solid rgba(112, 208, 252, 0.1);
    font-size: 12px;
  }

  .gallery-grid {
    grid-auto-rows: clamp(250px, 45vw, 340px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid[data-layout-filter="all"] > .media-tile {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-grid[data-layout-filter="all"] > .media-tile:nth-child(13) {
    grid-column: span 2;
  }

  .gallery-grid[data-layout-filter="landscape"] {
    grid-auto-rows: clamp(185px, 30vw, 235px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid[data-layout-filter="portrait"] {
    grid-auto-rows: clamp(330px, 67vw, 470px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 768px) {
  .site-footer__inner {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding-block: 20px;
    text-align: center;
  }
}

@media (max-width: 540px) {
  .inner-shell {
    width: calc(100% - 32px);
  }

  .inner-page .motion-toggle {
    width: 32px;
    height: 32px;
  }

  .inner-page .page-title {
    font-size: clamp(48px, 14vw, 64px);
  }

  .page-lead {
    font-size: 15px;
  }

  .orbit-stage,
  .portrait-orbit-card .orbit-stage {
    min-height: 450px;
  }

  .about-portrait {
    width: 490px;
  }

  .metric {
    min-height: 92px;
    padding: 18px;
  }

  .metric strong {
    font-size: 24px;
  }

  .section-frame {
    padding: 28px 20px;
  }

  .story-chapter {
    padding-left: 25px;
  }

  .career-timeline::before {
    left: 7px;
  }

  .timeline-entry {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 25px 0 25px 35px;
  }

  .timeline-entry::before {
    top: 31px;
    left: 2px;
  }

  .project-card {
    min-height: 450px;
  }

  .project-cover {
    height: 230px;
    min-height: 230px;
    flex-basis: 230px;
  }

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

  .project-cover--editing .editing-frame img {
    object-position: center 48%;
  }

  .gallery-grid,
  .gallery-grid[data-layout-filter] {
    display: grid;
    grid-auto-rows: auto;
    grid-template-columns: 1fr;
  }

  .gallery-grid > .media-tile:nth-child(n),
  .gallery-grid[data-layout-filter] > .media-tile:nth-child(n) {
    min-height: 290px;
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .gallery-grid > .media-tile.media-tile--portrait {
    min-height: 440px;
  }

  .lightbox-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .lightbox-media {
    padding: 60px 18px 20px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 12px;
  }
}

/* Shared glass navigation dock, adapted from the live chelgadores.tech header. */
.portfolio-header.site-header,
.portfolio-header.inner-header {
  position: fixed;
  z-index: 100;
  top: 16px;
  right: 0;
  left: 0;
  display: grid;
  width: 100%;
  height: 58px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding: 0 20px;
  overflow: visible;
  pointer-events: none;
  border: 0;
  background: transparent;
  transform: none;
}

.portfolio-header::before {
  position: fixed;
  z-index: -1;
  top: -16px;
  right: 0;
  left: 0;
  height: 92px;
  pointer-events: none;
  content: "";
  background: linear-gradient(to bottom, rgba(2, 5, 13, 0.94), rgba(2, 5, 13, 0));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(#000 18%, rgba(0, 0, 0, 0.82) 54%, transparent 100%);
  mask-image: linear-gradient(#000 18%, rgba(0, 0, 0, 0.82) 54%, transparent 100%);
}

.portfolio-header.inner-header.is-scrolled {
  border-color: transparent;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.portfolio-brand,
.portfolio-header__tools,
.portfolio-nav {
  pointer-events: auto;
}

.portfolio-header .portfolio-brand,
.portfolio-header.inner-header .portfolio-brand {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  display: inline-flex;
  justify-self: start;
  width: max-content;
  align-items: baseline;
  color: #f2f8fb;
  font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  font-size: 35px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -2.5px;
  text-shadow: 0 1px 18px rgba(183, 231, 255, 0.08);
  transform: scaleX(1.16);
  transform-origin: left center;
  transition: color 200ms ease, transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-brand__name {
  display: inline-block;
}

.portfolio-brand__dot {
  display: inline-block;
  margin-left: 1px;
  color: #55c9ff;
  font-weight: 400;
  text-shadow: 0 0 9px rgba(0, 168, 255, 0.72);
  transform-origin: 50% 72%;
  transition: color 200ms ease, text-shadow 200ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-header .portfolio-brand:hover,
.portfolio-header .portfolio-brand:focus-visible {
  color: #fff;
  transform: translateY(-1px) scaleX(1.16);
}

.portfolio-header .portfolio-brand:hover .portfolio-brand__dot,
.portfolio-header .portfolio-brand:focus-visible .portfolio-brand__dot {
  color: #8cddff;
  text-shadow: 0 0 12px rgba(0, 168, 255, 0.9);
  transform: scale(1.16);
}

.portfolio-nav.primary-nav,
.portfolio-nav.inner-nav {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  display: flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 5px;
  border: 1px solid rgba(149, 166, 184, 0.28);
  border-radius: 18px;
  background: rgba(2, 7, 14, 0.7);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16), 0 8px 14px rgba(0, 0, 0, 0.14), 0 12px 30px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
}

.portfolio-nav .portfolio-nav__link {
  position: relative;
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  color: rgba(230, 241, 255, 0.76);
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
  transition: color 200ms ease-in-out, border-color 200ms ease-in-out, background-color 200ms ease-in-out, box-shadow 200ms ease-in-out, transform 200ms ease-in-out;
}

.portfolio-nav .portfolio-nav__link::after {
  display: none;
}

.portfolio-nav .portfolio-nav__link:hover,
.portfolio-nav .portfolio-nav__link:focus-visible {
  color: #fff;
  border-color: rgba(149, 166, 184, 0.3);
  background: rgba(149, 166, 184, 0.1);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.portfolio-nav .portfolio-nav__link[aria-current="page"] {
  color: #fff;
  border-color: rgba(149, 166, 184, 0.32);
  background: rgba(149, 166, 184, 0.24);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 5px 16px rgba(0, 0, 0, 0.15);
}

.portfolio-nav .portfolio-nav__link:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

.portfolio-nav__link svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  overflow: visible;
}

.portfolio-nav__link--home {
  padding-inline: 12px !important;
}

.portfolio-nav__link--home .portfolio-nav__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.portfolio-nav__divider {
  width: 1px;
  height: 28px;
  margin: 0 3px;
  background: rgba(149, 166, 184, 0.24);
}

.portfolio-header__tools {
  display: flex;
  justify-self: end;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.portfolio-header .command-trigger {
  min-height: 40px;
  padding-inline: 15px;
  border-radius: 12px;
}

.portfolio-header .motion-toggle,
.portfolio-header.inner-header .motion-toggle {
  position: relative;
  top: auto;
  right: auto;
  width: 40px;
  height: 40px;
  margin: 0;
  overflow: visible;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.portfolio-header .motion-toggle span {
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-header .motion-toggle span::before,
.portfolio-header .motion-toggle span::after {
  position: absolute;
  content: "";
}

.portfolio-header .motion-toggle span::before {
  inset: 0;
  background: linear-gradient(135deg, #ffffff 20%, #9bdcff 62%, #00a8ff);
  clip-path: polygon(50% 0, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0 50%, 39% 36%);
  filter: drop-shadow(0 0 4px rgba(156, 222, 255, 0.84));
}

.portfolio-header .motion-toggle span::after {
  top: -2px;
  right: -4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #dff7ff;
  box-shadow: -19px 13px 0 -1px rgba(112, 208, 252, 0.78);
}

.portfolio-header .motion-toggle {
  border-color: rgba(112, 208, 252, 0.42);
  background: radial-gradient(circle at 50% 45%, rgba(0, 150, 253, 0.2), transparent 58%), rgba(6, 22, 36, 0.9);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.22);
}

.portfolio-header .motion-toggle[aria-pressed="true"] {
  border-color: rgba(112, 208, 252, 0.5);
  background: radial-gradient(circle, rgba(0, 150, 253, 0.18), rgba(4, 18, 34, 0.94) 68%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 3px rgba(0, 150, 253, 0.04),
    0 0 16px rgba(0, 150, 253, 0.12);
}

.portfolio-header .motion-toggle::after {
  position: absolute;
  inset: -5px;
  pointer-events: none;
  border: 1px solid rgba(0, 150, 253, 0.48);
  border-radius: 50%;
  content: "";
  opacity: 0;
}

.motion-enhanced .portfolio-header .motion-toggle::after {
  animation: star-control-pulse 3.2s ease-out infinite;
}

.stars-reduced .portfolio-header .motion-toggle::after {
  border-color: rgba(112, 208, 252, 0.26);
  animation-duration: 4.8s;
}

.stars-reduced .portfolio-header .motion-toggle span {
  animation: star-icon-turn 3.2s linear infinite;
  opacity: 0.72;
  transform: translate(-50%, -50%) scale(0.82);
  transform-origin: 50% 50%;
}

.portfolio-header .motion-toggle:hover span,
.portfolio-header .motion-toggle:focus-visible span {
  transform: translate(-50%, -50%) scale(1.18);
}

@keyframes star-control-pulse {
  0%, 48% { opacity: 0; transform: scale(0.82); }
  62% { opacity: 0.5; }
  100% { opacity: 0; transform: scale(1.22); }
}

@keyframes star-icon-turn {
  to { rotate: 1turn; }
}

/* Mouse-revealed background: a stationary field under the live site's eased 75vh mask. */
.cursor-aura {
  --cursor-aura-x: 50vw;
  --cursor-aura-y: 50vh;
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 100vw 100vh at 50% 0%, rgba(13, 72, 60, 0.22), transparent 100%),
    radial-gradient(circle, rgba(8, 169, 124, 0.075) 1px, transparent 1px) 0 0 / 2px 2px;
  -webkit-mask-image: radial-gradient(75vh at var(--cursor-aura-x) var(--cursor-aura-y), #000 0%, transparent 100%);
  mask-image: radial-gradient(75vh at var(--cursor-aura-x) var(--cursor-aura-y), #000 0%, transparent 100%);
  transition: opacity 180ms ease;
  will-change: opacity, filter, mask-image, background-position;
}

.motion-enhanced .cursor-aura.is-active {
  opacity: 0.46;
}

.motion-enhanced .cursor-aura.is-active {
  animation:
    cursor-field-breathe 5.2s ease-in-out infinite,
    cursor-texture-drift 12s linear infinite;
}

@keyframes cursor-field-breathe {
  0%, 100% { filter: brightness(0.88) saturate(0.92); }
  50% { filter: brightness(1.02) saturate(1.04); }
}

@keyframes cursor-texture-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 12px 8px; }
}

/* Pointer-positioned glass refraction and a short specular sweep for UI buttons. */
.button,
.page-button,
.command-trigger,
.filter-chip,
.orbit-related-link,
.command-head button {
  --glass-x: 50%;
  --glass-y: 50%;
  --button-glow-hue: 205;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.project-node,
.orbit-tag,
.lightbox-close,
.lightbox-nav {
  --glass-x: 50%;
  --glass-y: 50%;
  --button-glow-hue: 205;
  isolation: isolate;
  overflow: hidden;
}

.button--outline,
.page-button:not(.page-button--primary),
.command-trigger,
.filter-chip {
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
}

.button::before,
.page-button::before,
.command-trigger::before,
.filter-chip::before,
.orbit-related-link::before,
.project-node::before,
.orbit-tag::before,
.lightbox-close::before,
.lightbox-nav::before,
.command-head button::before {
  position: absolute;
  z-index: 0;
  inset: -1px;
  pointer-events: none;
  content: "";
  opacity: 0;
  background:
    radial-gradient(
      135px circle at var(--glass-x) var(--glass-y),
      hsl(var(--button-glow-hue) 92% 82% / 0.12),
      hsl(var(--button-glow-hue) 88% 64% / 0.065) 36%,
      transparent 72%
    );
  box-shadow: inset 0 0 0 1px hsl(var(--button-glow-hue) 90% 70% / 0.055);
  transform: scale(0.92);
  transition: opacity 220ms ease, transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button::after,
.page-button::after,
.command-trigger::after,
.filter-chip::after,
.orbit-related-link::after,
.project-node::after,
.orbit-tag::after,
.lightbox-close::after,
.lightbox-nav::after,
.command-head button::after {
  position: absolute;
  z-index: 1;
  top: -55%;
  left: -65%;
  width: 45%;
  height: 210%;
  pointer-events: none;
  content: "";
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.035) 24%,
    rgba(230, 248, 255, 0.22) 50%,
    rgba(112, 208, 252, 0.035) 76%,
    transparent
  );
  filter: blur(0.5px);
  transform: translate3d(-20%, 0, 0) rotate(17deg);
}

@media (hover: hover) {
  .button:hover::before,
  .page-button:hover::before,
  .command-trigger:hover::before,
  .filter-chip:hover::before,
  .orbit-related-link:hover::before,
  .project-node:hover::before,
  .orbit-tag:hover::before,
  .lightbox-close:hover::before,
  .lightbox-nav:hover::before,
  .command-head button:hover::before {
    opacity: 0.68;
    transform: scale(1);
  }

  .button:hover::after,
  .page-button:hover::after,
  .command-trigger:hover::after,
  .filter-chip:hover::after,
  .orbit-related-link:hover::after,
  .project-node:hover::after,
  .orbit-tag:hover::after,
  .lightbox-close:hover::after,
  .lightbox-nav:hover::after,
  .command-head button:hover::after {
    animation: glass-button-sweep 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

.button:focus-visible::before,
.page-button:focus-visible::before,
.command-trigger:focus-visible::before,
.filter-chip:focus-visible::before,
.orbit-related-link:focus-visible::before,
.project-node:focus-visible::before,
.orbit-tag:focus-visible::before,
.lightbox-close:focus-visible::before,
.lightbox-nav:focus-visible::before,
.command-head button:focus-visible::before {
  opacity: 0.62;
  transform: scale(1);
}

@keyframes glass-button-sweep {
  0% {
    opacity: 0;
    transform: translate3d(-20%, 0, 0) rotate(17deg);
  }
  18% { opacity: 0.9; }
  72% { opacity: 0.64; }
  100% {
    opacity: 0;
    transform: translate3d(470%, 0, 0) rotate(17deg);
  }
}

@media (max-width: 1100px) {
  .portfolio-header .command-trigger {
    display: none;
  }

  .portfolio-nav .portfolio-nav__link {
    padding-inline: 12px;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 20px;
  }

  :where([id]) {
    scroll-margin-top: 20px;
  }

  body {
    padding-bottom: 92px;
  }

  .portfolio-header.site-header,
  .portfolio-header.inner-header {
    top: auto;
    right: auto;
    bottom: 20px;
    left: 50%;
    display: block;
    width: max-content;
    height: auto;
    padding: 0;
    transform: translateX(-50%);
  }

  .portfolio-header::before,
  .portfolio-brand,
  .portfolio-header__tools {
    display: none;
  }

  .portfolio-nav.primary-nav,
  .portfolio-nav.inner-nav,
  .portfolio-nav.inner-nav.is-open {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    width: max-content;
    grid-template-columns: none;
    gap: 3px;
    padding: 5px;
    border-radius: 18px;
    background: rgba(2, 7, 14, 0.86);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.055);
  }

  .portfolio-nav .portfolio-nav__link {
    width: 46px;
    min-width: 46px;
    height: 44px;
    min-height: 44px;
    padding: 0 !important;
    border-bottom: 1px solid transparent;
  }

  .portfolio-nav__link svg {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .portfolio-nav__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
  }

  .portfolio-nav__divider {
    height: 28px;
    margin-inline: 2px;
  }

  .hero-actions {
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .hero-actions .button {
    min-width: min(100%, 180px);
    padding-inline: 20px;
  }

  .page-button {
    padding-inline: 20px;
  }
}

@media (forced-colors: active) {
  .cursor-aura {
    display: none;
  }

  .portfolio-nav.primary-nav,
  .portfolio-nav.inner-nav {
    border: 1px solid CanvasText;
  }
}
