:root {
  color-scheme: dark;
  --ink: #f8fbff;
  --ink-soft: #d9e7ff;
  --muted: #a9b7ca;
  --paper: #050914;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: rgba(9, 16, 34, 0.82);
  --line: rgba(218, 232, 255, 0.16);
  --line-strong: rgba(218, 232, 255, 0.28);
  --cyan: #00b8ff;
  --lime: #b7ff36;
  --coral: #ff4f6d;
  --violet: #7c4dff;
  --gold: #ffbf2f;
  --green: #00c48c;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.22);
  --radius: 8px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #050914;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

button {
  font: inherit;
}

.starfield,
.nebula-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.starfield {
  z-index: -3;
  width: 100%;
  height: 100%;
  background: #050914;
}

.nebula-backdrop {
  z-index: -2;
  opacity: 0.92;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 184, 255, 0.36), transparent 28%),
    radial-gradient(circle at 78% 8%, rgba(124, 77, 255, 0.32), transparent 30%),
    radial-gradient(circle at 70% 72%, rgba(255, 79, 109, 0.24), transparent 28%),
    radial-gradient(circle at 26% 76%, rgba(183, 255, 54, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(5, 9, 20, 0.82), rgba(8, 13, 30, 0.7));
  filter: saturate(1.16);
  animation: nebulaFloat 24s var(--ease) infinite alternate;
}

.nebula-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.32));
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--coral), var(--violet));
  box-shadow: 0 0 18px rgba(0, 184, 255, 0.55);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 32px), var(--max));
  min-height: 66px;
  margin: 14px auto 0;
  padding: 10px 12px;
  background: rgba(7, 12, 28, 0.7);
  border: 1px solid rgba(218, 232, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 14px 48px rgba(8, 17, 31, 0.12);
  backdrop-filter: blur(22px) saturate(1.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #06101d;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  border: 1px solid rgba(8, 17, 31, 0.1);
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(0, 184, 255, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a,
.mobile-nav a {
  position: relative;
  padding: 10px 12px;
  color: var(--ink-soft);
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a::after {
  position: absolute;
  right: 12px;
  bottom: 7px;
  left: 12px;
  height: 2px;
  content: "";
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease);
}

.nav-links a:hover,
.mobile-nav a:hover {
  color: white;
  background: rgba(0, 184, 255, 0.09);
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(218, 232, 255, 0.16);
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 900;
  transition:
    transform 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease),
    color 180ms var(--ease);
}

.sound-toggle svg {
  width: 17px;
  height: 17px;
}

.sound-toggle:hover,
.sound-toggle.is-playing {
  color: white;
  background: rgba(0, 184, 255, 0.16);
  border-color: rgba(0, 184, 255, 0.48);
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.nav-toggle svg,
.button svg,
.proof-grid svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
}

.mobile-nav {
  position: fixed;
  top: 92px;
  left: 16px;
  right: 16px;
  z-index: 39;
  display: none;
  padding: 10px;
  background: rgba(7, 12, 28, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.hero-section {
  position: relative;
  display: grid;
  min-height: 92vh;
  padding: 142px 24px 76px;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -3;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.03) contrast(1.06) brightness(0.56);
  transform: scale(1.02);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero-section::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 9, 20, 0.98) 0%, rgba(5, 9, 20, 0.76) 48%, rgba(5, 9, 20, 0.28) 100%),
    linear-gradient(0deg, rgba(5, 9, 20, 0.98) 0%, rgba(5, 9, 20, 0) 38%);
}

.hero-scrim {
  z-index: -1;
  opacity: 0.74;
  background:
    linear-gradient(115deg, rgba(0, 184, 255, 0.24), transparent 34%),
    linear-gradient(18deg, rgba(255, 79, 109, 0.22), transparent 32%),
    linear-gradient(270deg, rgba(183, 255, 54, 0.2), transparent 36%);
  mix-blend-mode: screen;
}

.hero-content {
  align-self: center;
  width: min(720px, 100%);
  margin: 0 auto;
  transform: translateX(-120px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--coral), var(--cyan));
  border-radius: 999px;
}

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

h1 {
  max-width: 10.5ch;
  margin: 0;
  font-size: 6.1rem;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin: 0;
  font-size: 3.8rem;
  line-height: 1.01;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: #c4d4ea;
  font-size: 1.08rem;
}

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

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 16px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 900;
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease);
}

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

.button-primary {
  color: white;
  background: var(--ink);
  box-shadow: 0 16px 28px rgba(8, 17, 31, 0.18);
}

.button-primary::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--coral));
  opacity: 0;
  transition: opacity 180ms var(--ease);
}

.button-primary:hover::before {
  opacity: 1;
}

.button span,
.button svg {
  position: relative;
  z-index: 1;
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(218, 232, 255, 0.16);
  box-shadow: 0 10px 28px rgba(8, 17, 31, 0.08);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(0, 184, 255, 0.5);
  box-shadow: 0 16px 32px rgba(0, 184, 255, 0.14);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(218, 232, 255, 0.1);
  border-block: 1px solid var(--line);
}

.metric {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 26px;
  overflow: hidden;
  background: rgba(9, 16, 34, 0.66);
  backdrop-filter: blur(14px);
}

.metric::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  content: "";
  background: var(--cyan);
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}

.metric:nth-child(2)::after {
  background: var(--lime);
}

.metric:nth-child(3)::after {
  background: var(--coral);
}

.metric:nth-child(4)::after {
  background: var(--violet);
}

.metric:hover::after {
  transform: scaleX(1);
}

.metric-value {
  color: var(--ink);
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1;
}

.metric-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

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

.section-heading {
  margin-bottom: 38px;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: 56px;
  align-items: start;
}

.profile-copy {
  display: grid;
  gap: 12px;
  max-width: 740px;
  font-size: 1.07rem;
}

.principles {
  display: grid;
  gap: 12px;
}

.principles div {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 22px;
  overflow: hidden;
  background: rgba(9, 16, 34, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.principles div::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  content: "";
  background: var(--cyan);
}

.principles div:nth-child(2)::before {
  background: var(--coral);
}

.principles div:nth-child(3)::before {
  background: var(--lime);
}

.principles span,
.process-steps span,
.project-type,
.timeline-date {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.principles p,
.process-steps p,
.proof-grid p,
.project-card p,
.timeline p {
  margin: 0;
}

.skill-layout {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  min-height: 510px;
  overflow: hidden;
  background: rgba(9, 16, 34, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.skill-tabs {
  display: grid;
  align-content: start;
  gap: 1px;
  background: rgba(218, 232, 255, 0.1);
  border-right: 1px solid var(--line);
}

.skill-tab {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  width: 100%;
  min-height: 78px;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  background: rgba(9, 16, 34, 0.82);
  border: 0;
  cursor: pointer;
  transition:
    background 180ms var(--ease),
    transform 180ms var(--ease);
}

.skill-tab:hover,
.skill-tab.is-active {
  background: rgba(0, 184, 255, 0.14);
}

.skill-tab:hover {
  transform: translateX(3px);
}

.skill-tab span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #06101d;
  background: var(--lime);
  border-radius: 7px;
  font-weight: 900;
}

.skill-tab:nth-child(2n) span {
  background: var(--cyan);
}

.skill-tab:nth-child(3n) span {
  color: white;
  background: var(--violet);
}

.skill-tab strong {
  display: block;
  margin-bottom: 4px;
}

.skill-tab small {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}

.skill-panel {
  display: grid;
  align-content: start;
  gap: 28px;
  padding: 34px;
}

.skill-panel-header {
  display: grid;
  gap: 10px;
}

.skill-panel-header h3 {
  font-size: 1.5rem;
}

.skill-panel-header p {
  max-width: 760px;
  margin: 0;
}

.skill-chip-grid,
.tool-list,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.filter-button,
.project-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(218, 232, 255, 0.1);
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 900;
}

.chip:nth-child(3n + 1),
.project-tags span:nth-child(3n + 1) {
  background: rgba(0, 184, 255, 0.12);
}

.chip:nth-child(3n + 2),
.project-tags span:nth-child(3n + 2) {
  background: rgba(183, 255, 54, 0.22);
}

.chip:nth-child(3n + 3),
.project-tags span:nth-child(3n + 3) {
  background: rgba(255, 79, 109, 0.12);
}

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

.skill-detail {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.skill-detail p {
  margin: 0;
  font-size: 0.93rem;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.filter-button {
  cursor: pointer;
  transition:
    transform 180ms var(--ease),
    background 180ms var(--ease),
    color 180ms var(--ease);
}

.filter-button.is-active,
.filter-button:hover {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

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

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

.project-card {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 640px;
  padding: 14px;
  overflow: hidden;
  background: rgba(9, 16, 34, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease),
    border-color 220ms var(--ease);
}

.project-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: var(--cyan);
}

.project-card:nth-child(4n + 2)::before {
  background: var(--coral);
}

.project-card:nth-child(4n + 3)::before {
  background: var(--lime);
}

.project-card:nth-child(4n + 4)::before {
  background: var(--violet);
}

.project-card:hover {
  border-color: rgba(218, 232, 255, 0.28);
  box-shadow: 0 28px 78px rgba(8, 17, 31, 0.18);
  transform: translateY(-7px);
}

.project-card h3 {
  padding: 0 8px;
  font-size: 1.22rem;
}

.project-type {
  padding: 12px 8px 0;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #dce2e5;
  border: 1px solid rgba(8, 17, 31, 0.1);
  border-radius: 7px;
  transition:
    transform 320ms var(--ease),
    filter 320ms var(--ease);
}

.project-card:hover .project-image {
  filter: saturate(1.18) contrast(1.05);
  transform: scale(1.018);
}

.project-card > p,
.project-outcome,
.project-evidence,
.project-meta,
.project-tags,
.project-link {
  margin-inline: 8px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 850;
}

.project-meta span {
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(218, 232, 255, 0.1);
  border-radius: 7px;
}

.project-outcome {
  padding: 14px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(183, 255, 54, 0.22), rgba(0, 184, 255, 0.09)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(218, 232, 255, 0.1);
  border-left: 5px solid var(--lime);
  border-radius: 7px;
  font-weight: 800;
  line-height: 1.5;
}

.project-card:nth-child(4n + 2) .project-outcome {
  border-left-color: var(--coral);
  background:
    linear-gradient(90deg, rgba(255, 79, 109, 0.15), rgba(255, 191, 47, 0.08)),
    rgba(255, 255, 255, 0.06);
}

.project-card:nth-child(4n + 4) .project-outcome {
  border-left-color: var(--violet);
  background:
    linear-gradient(90deg, rgba(124, 77, 255, 0.14), rgba(0, 184, 255, 0.08)),
    rgba(255, 255, 255, 0.06);
}

.project-evidence {
  padding-top: 2px;
  color: #a9b7ca;
  font-size: 0.9rem;
  line-height: 1.55;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  margin-top: auto;
  margin-bottom: 8px;
  padding: 10px 12px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(218, 232, 255, 0.16);
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 900;
  transition:
    transform 180ms var(--ease),
    background 180ms var(--ease);
}

.project-link:hover {
  background: linear-gradient(90deg, rgba(0, 184, 255, 0.28), rgba(124, 77, 255, 0.3));
  transform: translateY(-2px);
}

.process-section {
  width: 100%;
  padding-inline: max(24px, calc((100% - var(--max)) / 2));
  color: white;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    rgba(5, 9, 20, 0.76);
  background-size: 38px 38px;
}

.process-section .eyebrow,
.process-section h2 {
  color: white;
}

.process-section .eyebrow::before {
  background: linear-gradient(90deg, var(--lime), var(--cyan));
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-steps article {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 252px;
  padding: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

.process-steps article::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  content: "";
  background: var(--cyan);
}

.process-steps article:nth-child(2)::after {
  background: var(--lime);
}

.process-steps article:nth-child(3)::after {
  background: var(--coral);
}

.process-steps article:nth-child(4)::after {
  background: var(--violet);
}

.process-steps span,
.process-steps h3 {
  color: white;
}

.process-steps p {
  color: #cbd5e1;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  background: rgba(9, 16, 34, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.timeline h3 {
  margin-bottom: 8px;
}

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

.proof-grid div {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: rgba(9, 16, 34, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms var(--ease);
}

.proof-grid div:hover {
  transform: translateY(-4px);
}

.proof-grid svg {
  width: 28px;
  height: 28px;
  color: var(--coral);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 90px max(24px, calc((100% - var(--max)) / 2));
  color: white;
  background:
    linear-gradient(115deg, rgba(0, 184, 255, 0.22), transparent 34%),
    linear-gradient(18deg, rgba(255, 79, 109, 0.18), transparent 32%),
    rgba(5, 9, 20, 0.82);
}

.contact-section .eyebrow,
.contact-section p {
  color: #dce7f2;
}

.contact-section .eyebrow::before {
  background: linear-gradient(90deg, var(--coral), var(--lime));
}

.contact-section h2 {
  max-width: 780px;
  color: white;
  font-size: 3.6rem;
}

.contact-section .button-primary {
  color: #06101d;
  background: var(--lime);
}

.contact-section .button-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.contact-section .button-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 28px max(24px, calc((100% - var(--max)) / 2)) 40px;
  color: #dce7f2;
  background: rgba(5, 9, 20, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.site-footer a {
  color: var(--lime);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms var(--ease),
    transform 520ms var(--ease);
}

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

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.055) translate3d(14px, -10px, 0);
  }
}

@keyframes nebulaFloat {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(-18px, 12px, 0);
  }
}

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

@media (max-width: 1120px) {
  .hero-content {
    margin-left: 0;
    transform: none;
  }

  h1 {
    max-width: 11ch;
    font-size: 5.1rem;
  }

  h2 {
    font-size: 3.2rem;
  }

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

  .process-steps,
  .intro-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .site-header {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .sound-toggle {
    margin-left: auto;
  }

  .hero-section {
    min-height: 88vh;
    padding: 124px 20px 70px;
  }

  .hero-section::before {
    background:
      linear-gradient(90deg, rgba(251, 251, 247, 0.98) 0%, rgba(251, 251, 247, 0.9) 62%, rgba(251, 251, 247, 0.42) 100%),
      linear-gradient(0deg, rgba(251, 251, 247, 1) 0%, rgba(251, 251, 247, 0) 36%);
  }

  h1 {
    max-width: 10.5ch;
    font-size: 4.1rem;
  }

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

  .section,
  .site-footer {
    width: min(calc(100% - 32px), var(--max));
  }

  .section {
    padding: 74px 0;
  }

  .section-heading-row {
    display: grid;
  }

  .filter-controls {
    justify-content: start;
  }

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

  .skill-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .skill-tab {
    min-height: 96px;
  }

  .skill-tab:hover {
    transform: none;
  }

  .skill-panel {
    padding: 24px;
  }

  .skill-detail-grid,
  .project-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .process-steps,
  .intro-band {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-section {
    padding: 74px 20px;
  }

  .site-footer {
    display: grid;
    padding-inline: 0;
    background: transparent;
    color: var(--muted);
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    display: none;
  }

  .sound-toggle {
    width: 42px;
    height: 42px;
    padding: 0;
  }

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

  h1 {
    font-size: 3.25rem;
  }

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

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

  .button {
    width: 100%;
  }

  .metric,
  .contact-section {
    padding: 24px;
  }

  .skill-tabs {
    grid-template-columns: 1fr;
  }

  .project-card,
  .process-steps article,
  .proof-grid div {
    padding: 18px;
  }

  .project-card > p,
  .project-outcome,
  .project-evidence,
  .project-meta,
  .project-tags,
  .project-link {
    margin-inline: 0;
  }
}
