:root {
  --background-deep: #020203;
  --background-base: #050506;
  --background-elevated: #0a0a0c;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --foreground: #edefef;
  --foreground-muted: #8a8f98;
  --foreground-subtle: rgba(255, 255, 255, 0.6);
  --accent: #5e6ad2;
  --accent-bright: #6872d9;
  --accent-glow: rgba(94, 106, 210, 0.3);
  --border-default: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(94, 106, 210, 0.3);
  --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 2px 20px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 80px rgba(94, 106, 210, 0.1);
  --shadow-accent: 0 0 0 1px rgba(94, 106, 210, 0.5), 0 4px 12px rgba(94, 106, 210, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.18);
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-pill: 999px;
  --container: 76rem;
  --header-height: 4.5rem;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--foreground);
  font-family: "Inter", "Geist Sans", system-ui, sans-serif;
  background: var(--background-base);
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

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

.site-shell {
  position: relative;
  overflow: clip;
}

.bg-layer,
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-gradient {
  background: radial-gradient(ellipse at top, #0a0a0f 0%, #050506 50%, #020203 100%);
}

.bg-grid {
  opacity: 0.025;
  background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 80%);
}

.bg-noise {
  opacity: 0.018;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.75) 0.6px, transparent 0.8px), radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.6) 0.6px, transparent 0.8px), radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.8) 0.6px, transparent 0.8px);
  background-size: 120px 120px;
}

.ambient {
  opacity: 0.95;
}

.ambient-primary,
.ambient-secondary,
.ambient-tertiary,
.ambient-bottom {
  content: "";
}

.ambient-primary::before,
.ambient-secondary::before,
.ambient-tertiary::before,
.ambient-bottom::before {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(150px);
  animation: float 10s ease-in-out infinite;
}

.ambient-primary::before {
  width: 60rem;
  height: 88rem;
  top: -24rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(94, 106, 210, 0.2);
}

.ambient-secondary::before {
  width: 42rem;
  height: 56rem;
  top: 8rem;
  left: -8rem;
  background: rgba(116, 81, 235, 0.14);
  animation-duration: 9s;
}

.ambient-tertiary::before {
  width: 34rem;
  height: 48rem;
  top: 10rem;
  right: -6rem;
  background: rgba(83, 119, 255, 0.12);
  filter: blur(110px);
  animation-duration: 8s;
}

.ambient-bottom::before {
  width: 38rem;
  height: 30rem;
  right: 14%;
  bottom: -8rem;
  background: rgba(94, 106, 210, 0.1);
  filter: blur(130px);
  animation-duration: 11s;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 5, 6, 0.58);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 220ms var(--ease-out-expo), border-color 220ms var(--ease-out-expo);
}

.site-header.is-scrolled {
  background: rgba(5, 5, 6, 0.8);
  border-color: var(--border-default);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.brand,
.section-kicker,
.metric-label,
.console-line span,
.meta-label,
.card-type,
.card-index,
.detail-label,
.floating-label {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
}

.brand {
  font-size: 0.86rem;
  color: var(--foreground);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--foreground-muted);
  transition: color 200ms ease-out;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--foreground);
  outline: none;
}

.nav-toggle {
  display: none;
  min-height: 2.7rem;
  padding: 0 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: rgba(255, 255, 255, 0.03);
  color: var(--foreground);
}

.hero-section {
  padding: 5.5rem 0 4rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(20rem, 0.88fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-pill);
  color: #c7cef7;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(94, 106, 210, 0.2);
  box-shadow: 0 0 0 1px rgba(94, 106, 210, 0.12), 0 0 30px rgba(94, 106, 210, 0.12);
}

.eyebrow-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(94, 106, 210, 0.12), 0 0 20px rgba(94, 106, 210, 0.36);
  animation: pulse 2s ease-in-out infinite;
}

.hero-copy {
  transition: transform 240ms var(--ease-out-expo), opacity 240ms var(--ease-out-expo);
  will-change: transform, opacity;
}

.hero-title,
.section-heading h2,
.detail-title {
  margin: 0;
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 700;
  background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0.96) 34%, rgba(255, 255, 255, 0.76) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title {
  font-size: clamp(3.2rem, 8vw, 6.25rem);
  margin-top: 1.25rem;
}

.hero-role {
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  color: #d9dcef;
  margin: 1.2rem 0 1rem;
  max-width: 40rem;
}

.hero-intro,
.section-heading p,
.prose,
.card-summary,
.detail-summary,
.detail-copy p,
.contact-lead,
.video-note,
.hero-metric p,
.console-line strong,
.detail-fact strong,
.detail-fact a {
  color: var(--foreground-muted);
  line-height: 1.8;
}

.hero-intro {
  font-size: 1.05rem;
  max-width: 42rem;
}

.hero-meta,
.hero-actions,
.detail-meta,
.tag-list,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-meta {
  margin-top: 1.5rem;
}

.hero-actions {
  margin-top: 2rem;
}

.hero-footer-note {
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button,
.hero-meta-item,
.contact-chip,
.video-link,
.detail-back,
.floating-button,
.nav-toggle {
  transition: transform 220ms var(--ease-out-expo), background 220ms var(--ease-out-expo), border-color 220ms var(--ease-out-expo), box-shadow 220ms var(--ease-out-expo), color 220ms var(--ease-out-expo), opacity 220ms var(--ease-out-expo);
}

.button,
.hero-meta-item,
.contact-chip,
.video-link,
.detail-back {
  min-height: 2.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.2rem;
  border-radius: 0.7rem;
}

.button:active,
.hero-meta-item:active,
.contact-chip:active,
.video-link:active,
.detail-back:active,
.floating-button:active {
  transform: scale(0.98);
}

.button:focus-visible,
.hero-meta-item:focus-visible,
.contact-chip:focus-visible,
.video-link:focus-visible,
.detail-back:focus-visible,
.floating-button:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible,
.card-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(94, 106, 210, 0.45), 0 0 0 4px rgba(5, 5, 6, 0.95);
}

.button-primary {
  color: #fff;
  background: linear-gradient(180deg, #6872d9 0%, #5e6ad2 100%);
  box-shadow: var(--shadow-accent);
}

.button-primary:hover {
  background: linear-gradient(180deg, #7280e6 0%, #6872d9 100%);
  box-shadow: 0 0 0 1px rgba(94, 106, 210, 0.55), 0 8px 18px rgba(94, 106, 210, 0.32), 0 0 28px rgba(94, 106, 210, 0.34), inset 0 1px 0 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.button-secondary,
.hero-meta-item,
.contact-chip,
.video-link,
.detail-back {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
}

.button-secondary:hover,
.hero-meta-item:hover,
.contact-chip:hover,
.video-link:hover,
.detail-back:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

.hero-meta-item {
  gap: 0.5rem;
}

.meta-label {
  color: var(--foreground-subtle);
  font-size: 0.72rem;
}

.hero-visual,
.glass-card,
.project-card,
.detail-panel,
.detail-content-card,
.video-panel,
.image-tile,
.contact-panel,
.floating-button {
  position: relative;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-default);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hero-visual,
.spotlight-panel {
  --spotlight-x: 50%;
  --spotlight-y: 50%;
}

.spotlight-panel::before,
.project-card::before,
.floating-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--spotlight-x) var(--spotlight-y), rgba(94, 106, 210, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 220ms ease-out;
  pointer-events: none;
}

.spotlight-panel:hover::before,
.project-card:hover::before,
.floating-button:hover::before,
.spotlight-panel:focus-within::before,
.project-card:focus-within::before,
.floating-button:focus-visible::before {
  opacity: 1;
}

.panel-sheen {
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  border-radius: inherit;
  pointer-events: none;
}

.hero-visual {
  min-height: 35rem;
  padding: 1.5rem;
}

.hero-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  height: 100%;
  align-content: end;
}

.hero-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.orbit-large {
  width: 26rem;
  height: 26rem;
  top: 3rem;
  right: 2rem;
}

.orbit-small {
  width: 11rem;
  height: 11rem;
  top: 7rem;
  right: 8rem;
}

.hero-metric,
.hero-console {
  padding: 1.2rem;
}

.hero-metric strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  color: var(--foreground);
}

.metric-label,
.console-line span,
.section-kicker,
.card-type,
.card-index,
.detail-label,
.floating-label {
  font-size: 0.72rem;
  color: #bac1ff;
  text-transform: uppercase;
}

.accent-card {
  box-shadow: 0 0 0 1px rgba(94, 106, 210, 0.22), 0 18px 50px rgba(0, 0, 0, 0.48), 0 0 80px rgba(94, 106, 210, 0.12);
}

.console-top {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.console-top span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.console-body {
  display: grid;
  gap: 0.85rem;
}

.console-line {
  display: grid;
  gap: 0.15rem;
}

.console-line strong {
  color: var(--foreground);
  font-weight: 500;
}

.section {
  padding: 7rem 0;
  scroll-margin-top: calc(var(--header-height) + 1.4rem);
}

.section-border {
  position: relative;
}

.section-border::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(calc(100% - 2rem), var(--container));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.section-heading {
  display: grid;
  gap: 0.95rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.detail-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.about-content,
.contact-panel {
  padding: 1.6rem;
}

.prose {
  font-size: 1.02rem;
}

.prose p {
  margin: 0 0 1.2rem;
}

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

.card-grid .project-card {
  grid-column: span 3;
}

.bento-grid .project-card:nth-child(3),
.bento-grid .project-card:nth-child(4),
.bento-grid .project-card:nth-child(5) {
  grid-column: span 2;
}

.exploration-grid .project-card:nth-child(3),
.exploration-grid .project-card:nth-child(4),
.exploration-grid .project-card:nth-child(5) {
  grid-column: span 2;
}

.project-card {
  transition: transform 260ms var(--ease-out-expo), border-color 260ms var(--ease-out-expo), box-shadow 260ms var(--ease-out-expo), background 260ms var(--ease-out-expo);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.card-link {
  position: relative;
  display: grid;
  min-height: 100%;
  z-index: 1;
}

.card-cover,
.detail-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.18), transparent 22%), radial-gradient(circle at 70% 28%, rgba(94, 106, 210, 0.28), transparent 36%), linear-gradient(180deg, rgba(17, 18, 24, 0.88) 0%, rgba(8, 8, 11, 1) 100%);
}

.image-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.18), transparent 22%), radial-gradient(circle at 70% 28%, rgba(94, 106, 210, 0.28), transparent 36%), linear-gradient(180deg, rgba(17, 18, 24, 0.88) 0%, rgba(8, 8, 11, 1) 100%);
}

.card-cover-image,
.detail-cover-image,
.detail-gallery-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.tone-1 .card-cover {
  background: radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.2), transparent 22%), radial-gradient(circle at 74% 22%, rgba(94, 106, 210, 0.34), transparent 38%), linear-gradient(180deg, rgba(15, 18, 28, 0.96) 0%, rgba(8, 8, 11, 1) 100%);
}

.tone-2 .card-cover {
  background: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.14), transparent 20%), radial-gradient(circle at 68% 24%, rgba(130, 83, 255, 0.28), transparent 34%), linear-gradient(180deg, rgba(18, 16, 29, 0.94) 0%, rgba(8, 8, 11, 1) 100%);
}

.tone-3 .card-cover {
  background: radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.16), transparent 20%), radial-gradient(circle at 76% 26%, rgba(83, 119, 255, 0.3), transparent 36%), linear-gradient(180deg, rgba(13, 19, 29, 0.95) 0%, rgba(8, 8, 11, 1) 100%);
}

.tone-4 .card-cover {
  background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.15), transparent 20%), radial-gradient(circle at 70% 24%, rgba(111, 94, 210, 0.3), transparent 34%), linear-gradient(180deg, rgba(20, 17, 29, 0.95) 0%, rgba(8, 8, 11, 1) 100%);
}

.card-cover::before,
.detail-cover::before,
.image-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.16;
}

.card-cover::after,
.detail-cover::after,
.image-placeholder::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 2, 3, 0.85) 100%);
}


.card-cover-ui,
.detail-cover-ui {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 1;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  z-index: 1;
}

.card-cover-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(8, 8, 11, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dfe3ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.card-cover-pill-muted {
  color: rgba(255, 255, 255, 0.72);
}











.detail-screen-body i:nth-child(5) {
  width: 48%;
}


.detail-cover-stack {
  display: grid;
  gap: 0.65rem;
}

.detail-cover-stack b {
  display: block;
  height: 4.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.card-body {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.card-index {
  color: rgba(255, 255, 255, 0.42);
}

.card-title {
  margin: 0.5rem 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.tag-list {
  gap: 0.65rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d0d4e7;
  font-size: 0.82rem;
}

.card-cta {
  color: #c6cbf7;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

.contact-compact {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
}

.contact-panel {
  display: grid;
  gap: 1.25rem;
}

.contact-lead {
  margin: 0;
}

.contact-actions {
  margin-top: 0.4rem;
}

.contact-actions-compact {
  margin-top: 0;
  align-self: start;
}

.floating-contact {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 35;
  display: grid;
  gap: 0.75rem;
}

.floating-button {
  width: 3.4rem;
  height: 3.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 1px solid var(--border-default);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-card);
  color: var(--foreground);
  overflow: visible;
}

.floating-button:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card-hover);
}

.floating-icon {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  font-weight: 700;
}

.floating-tooltip {
  position: absolute;
  top: 50%;
  right: calc(100% + 0.7rem);
  transform: translateY(-50%) translateX(8px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 0.7rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-default);
  background: rgba(8, 8, 11, 0.92);
  color: var(--foreground);
  box-shadow: var(--shadow-card);
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}

.floating-button:hover .floating-tooltip,
.floating-button:focus-visible .floating-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  z-index: 40;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(94, 106, 210, 0.32);
  background: rgba(8, 8, 11, 0.94);
  color: #dbe0ff;
  box-shadow: var(--shadow-card);
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.detail-main {
  padding: 5rem 0 6rem;
}

.detail-shell {
  display: grid;
  gap: 2rem;
}

.detail-head {
  display: grid;
  gap: 1.25rem;
}

.detail-back {
  width: fit-content;
  border-radius: var(--radius-pill);
}

.detail-summary {
  max-width: 52rem;
}

.detail-layout {
  display: grid;
  gap: 1.5rem;
}

.detail-panel,
.video-panel,
.image-tile {
  border-radius: 1.4rem;
}

.detail-panel-body {
  padding: 1.4rem;
}

.detail-copy {
  display: grid;
  gap: 1.5rem;
}

.detail-copy-stack {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.detail-content-card {
  padding: 1.4rem;
  border-radius: 1.35rem;
}

.detail-block h3 {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
  color: var(--foreground);
}

.detail-block p {
  margin: 0;
}

.detail-sidebar,
.detail-facts {
  display: grid;
  gap: 1rem;
}

.detail-fact {
  display: grid;
  gap: 0.45rem;
}

.detail-fact strong,
.detail-fact a {
  color: var(--foreground);
  font-weight: 500;
}

.detail-fact .video-link {
  width: fit-content;
}

.video-panel {
  padding: 1.25rem;
}

.video-note {
  margin: 0 0 1rem;
}

.detail-gallery-wrap {
  width: 100%;
}

.detail-gallery-head {
  margin: 0 0 1rem;
}

.detail-gallery-label {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(94, 106, 210, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #bac1ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.image-grid {
  display: grid;
  gap: 1rem;
}

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

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

.image-placeholder {
  aspect-ratio: 16 / 9;
  min-height: 0;
  display: grid;
  align-items: end;
  padding: 1rem;
}

.image-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 2rem);
  justify-self: start;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 11, 0.6);
  color: #dbe0ff;
  font-size: 0.82rem;
  line-height: 1.2;
  backdrop-filter: blur(10px);
}

.detail-gallery-image + .image-pill {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.video-gallery-card .image-placeholder::after {
  height: 58%;
}

.gallery-card-stack {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 0.65rem;
}

.gallery-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: min(100%, 22rem);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 11, 0.62);
  color: #dbe0ff;
  font-size: 0.82rem;
  line-height: 1.25;
  backdrop-filter: blur(10px);
}

.gallery-video-link {
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 11, 0.72);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
  transition: transform 220ms var(--ease-out-expo), background 220ms var(--ease-out-expo), border-color 220ms var(--ease-out-expo), box-shadow 220ms var(--ease-out-expo);
}

.gallery-video-link:hover {
  transform: translateY(-1px);
  background: rgba(14, 14, 18, 0.82);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.gallery-video-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(94, 106, 210, 0.45), 0 0 0 4px rgba(5, 5, 6, 0.95);
}

.empty-state {
  padding: 3rem 0;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.82);
    opacity: 0.65;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

@media (max-width: 1024px) {
  .hero-shell,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .card-grid .project-card,
  .bento-grid .project-card:first-child,
  .bento-grid .project-card:nth-child(2),
  .bento-grid .project-card:nth-child(3),
  .bento-grid .project-card:nth-child(4),
  .bento-grid .project-card:nth-child(5),
  .exploration-grid .project-card:nth-child(3),
  .exploration-grid .project-card:nth-child(4),
  .exploration-grid .project-card:nth-child(5) {
    grid-column: span 1;
  }

  .sticky-heading {
    position: static;
  }

  .hero-visual {
    min-height: 30rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 4rem;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .hero-section {
    padding-top: 4rem;
  }

  .hero-title {
    font-size: clamp(2.8rem, 14vw, 4.75rem);
  }

  .section {
    padding: 5rem 0;
  }

  .card-grid,
  .image-grid-two,
  .image-grid-three {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-height) + 0.7rem);
    left: 0.625rem;
    right: 0.625rem;
    display: grid;
    gap: 0.3rem;
    padding: 0.7rem;
    border-radius: 1rem;
    background: rgba(5, 5, 6, 0.95);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease-out, transform 200ms ease-out;
  }

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

  .site-nav a {
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.05);
  }

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

  .orbit-large,
  .orbit-small {
    display: none;
  }

  .floating-contact {
    right: 0.8rem;
    bottom: 0.8rem;
  }

  .floating-button {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
  }

  .floating-tooltip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.detail-cover-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 12, 0.62);
  color: #dbe0ff;
  backdrop-filter: blur(10px);
}

.detail-cover-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 4.25rem 1.1rem 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(5rem, 0.9fr);
  gap: 0.9rem;
  align-items: end;
}

.detail-cover-screen {
  min-height: 8.5rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.detail-screen-top {
  display: flex;
  gap: 0.35rem;
  padding: 0.8rem 0.9rem;
}

.detail-screen-top span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.detail-screen-body {
  display: grid;
  gap: 0.55rem;
  padding: 0 0.9rem 0.9rem;
}

.detail-screen-body i {
  display: block;
  height: 0.55rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.detail-screen-body i:nth-child(1) { width: 76%; }
.detail-screen-body i:nth-child(2) { width: 92%; }
.detail-screen-body i:nth-child(3) { width: 58%; }
.detail-screen-body i:nth-child(4) { width: 82%; }
.detail-screen-body i:nth-child(5) { width: 48%; }

.detail-cover-stack {
  display: grid;
  gap: 0.65rem;
}

.detail-cover-stack b {
  display: block;
  height: 4.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.detail-cover {
  min-height: 0;
}

.detail-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 2, 3, 0.82) 100%);
  z-index: 0;
}

.detail-cover-video-link {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border-radius: var(--radius-pill);
  color: #fff;
  background: rgba(8, 8, 11, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  transition: transform 220ms var(--ease-out-expo), background 220ms var(--ease-out-expo), border-color 220ms var(--ease-out-expo), box-shadow 220ms var(--ease-out-expo);
}

.detail-cover-video-link:hover {
  transform: translateY(-1px);
  background: rgba(14, 14, 18, 0.82);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.detail-cover-video-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(94, 106, 210, 0.45), 0 0 0 4px rgba(5, 5, 6, 0.95);
}
