:root {
  --paper: #f5f7f2;
  --surface: #ffffff;
  --ink: #171716;
  --muted: #626760;
  --line: #dfe4dc;
  --line-strong: #c6d0c1;
  --accent: #a64f3a;
  --accent-dark: #7e3527;
  --teal: #087b73;
  --olive: #536f46;
  --violet: #5b5da8;
  --shadow: 0 20px 70px rgba(20, 20, 20, 0.14);
  --radius: 8px;
  --max: 1160px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(118deg, rgba(8, 123, 115, 0.08), transparent 30%, rgba(166, 79, 58, 0.07) 62%, transparent 82%),
    repeating-linear-gradient(90deg, rgba(23, 23, 22, 0.035) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(23, 23, 22, 0.026) 0 1px, transparent 1px 86px);
  background-position: 0% 50%, 0 0, 0 0;
  background-size: 180% 180%, 86px 86px, 86px 86px;
  animation: pageDrift 26s ease-in-out infinite alternate;
  pointer-events: none;
}

body::selection {
  background: rgba(185, 88, 50, 0.22);
}

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

img,
svg {
  display: block;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 242, 0.88);
  border-bottom: 1px solid rgba(226, 222, 215, 0.78);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: #f2eee8;
  color: var(--ink);
}

.nav-action,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.nav-action {
  padding: 0 15px;
  background: var(--ink);
  color: #fff;
}

.nav-action:hover,
.button:hover {
  transform: translateY(-1px);
}

.nav-action svg,
.button svg,
.contact-link svg,
.quote-block svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hero {
  min-height: 84svh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #171716;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(112deg, rgba(255, 255, 255, 0.08), transparent 28%, rgba(8, 123, 115, 0.24) 52%, transparent 72%),
    linear-gradient(154deg, transparent 0%, rgba(166, 79, 58, 0.28) 34%, transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 82px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 82px),
    #171716;
  background-position: 0% 50%, 100% 30%, 0 0, 0 0, center;
  background-size: 190% 190%, 180% 180%, 82px 82px, 82px 82px, auto;
  animation: heroDrift 22s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(23, 23, 22, 0), rgba(23, 23, 22, 0.42)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 45%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, transparent 0 28%, rgba(255, 255, 255, 0.08) 29%, transparent 31%),
    linear-gradient(100deg, transparent 0 62%, rgba(255, 255, 255, 0.06) 63%, transparent 65%);
  transform: translateX(-4%);
  animation: highlightSweep 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-content {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 72px 0 56px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.84rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0b38b;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 4.6rem;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.13rem;
}

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

.button {
  min-width: 138px;
  padding: 0 18px;
}

.button-primary {
  background: #fff;
  color: var(--ink);
}

.button-primary:hover {
  background: #f3ede6;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.16);
}

.hero-stats {
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 44px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
}

.stat-item {
  min-height: 92px;
  padding: 18px;
  background: rgba(20, 20, 20, 0.3);
  backdrop-filter: blur(12px);
}

.stat-item dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

.stat-item dd {
  margin: 6px 0 0;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.section {
  padding: 88px 0;
}

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

.section-intro {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 36px;
  align-items: center;
}

.intro-lead {
  margin: 0;
  font-size: 1.36rem;
  line-height: 1.55;
  font-weight: 650;
}

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

.meta-pill {
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.meta-pill span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.meta-pill strong {
  display: block;
  margin-top: 4px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

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

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

.section-heading p:last-child,
.contact-copy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.filter-button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.filter-button[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

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

.project-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.04);
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(185, 88, 50, 0.85), rgba(15, 118, 110, 0.75)),
    #29231f;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media.placeholder {
  display: grid;
  place-items: center;
}

.project-media.placeholder::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
}

.project-initial {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.94);
  font-size: 2.7rem;
  font-weight: 800;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.project-body h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.project-body p {
  margin: 12px 0 0;
  color: var(--muted);
}

.outcome-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.outcome-list li {
  display: flex;
  gap: 8px;
  color: #332f2b;
  font-size: 0.92rem;
}

.outcome-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0ebe3;
  color: #4e4841;
  font-size: 0.78rem;
  font-weight: 700;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.project-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 750;
  font-size: 0.88rem;
}

.project-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

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

.section-muted {
  background: rgba(236, 241, 232, 0.78);
  backdrop-filter: blur(12px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 58px;
  align-items: start;
}

.about-heading {
  margin-bottom: 0;
}

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

.quote-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
}

.quote-block svg {
  color: var(--accent);
}

.quote-block p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
}

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

.skill-group {
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
}

.skill-group h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.skill-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-group li {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f5f1ea;
  color: #3f3a35;
  font-size: 0.84rem;
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.76fr) minmax(0, 1.24fr);
  gap: 58px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  color: var(--accent-dark);
  font-weight: 800;
}

.timeline-item h3 {
  margin: 0;
  font-size: 1.08rem;
}

.timeline-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-contact {
  background:
    linear-gradient(118deg, rgba(8, 123, 115, 0.22), transparent 46%, rgba(166, 79, 58, 0.2)),
    var(--ink);
  color: #fff;
}

.section-contact .eyebrow {
  color: #f0b38b;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1.1fr);
  gap: 58px;
  align-items: start;
}

.contact-copy {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
}

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

.contact-link {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.contact-link:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.contact-link span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

.contact-link strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

@keyframes pageDrift {
  from {
    background-position: 0% 50%, 0 0, 0 0;
  }

  to {
    background-position: 100% 52%, 22px 0, 0 22px;
  }
}

@keyframes heroDrift {
  from {
    background-position: 0% 50%, 100% 30%, 0 0, 0 0, center;
  }

  to {
    background-position: 100% 48%, 0% 60%, 28px 0, 0 28px, center;
  }
}

@keyframes highlightSweep {
  from {
    transform: translateX(-6%);
    opacity: 0.52;
  }

  to {
    transform: translateX(6%);
    opacity: 0.9;
  }
}

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

/* iOS-inspired refinement layer */
:root {
  --paper: #f7f7f4;
  --surface: rgba(255, 255, 255, 0.72);
  --ink: #171719;
  --muted: #68696f;
  --line: rgba(18, 18, 20, 0.1);
  --line-strong: rgba(18, 18, 20, 0.16);
  --accent: #ef5ca3;
  --accent-dark: #8754f2;
  --teal: #18b7c8;
  --shadow: 0 24px 80px rgba(35, 35, 42, 0.13);
  --radius: 24px;
  --radius-lg: 34px;
  --radius-xl: 44px;
  --radius-pill: 999px;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  inset: -18%;
  background-image:
    linear-gradient(rgba(247, 247, 244, 0.74), rgba(247, 247, 244, 0.84)),
    url("./assets/chromatic-blur.png");
  background-position: center, 50% 0%;
  background-size: auto, 1500px auto;
  filter: blur(42px) saturate(1.08);
  opacity: 0.5;
}

.skip-link,
.nav-links,
.nav-links a,
.nav-action,
.button {
  border-radius: var(--radius-pill);
}

.site-header {
  background: rgba(247, 247, 244, 0.72);
  border-bottom-color: rgba(18, 18, 20, 0.08);
  backdrop-filter: blur(22px) saturate(1.16);
}

.brand {
  font-weight: 560;
}

.brand-mark {
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 8px 26px rgba(23, 23, 25, 0.14);
}

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

.nav-links {
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 30px rgba(18, 18, 20, 0.05);
}

.nav-action {
  font-weight: 560;
  box-shadow: 0 14px 34px rgba(23, 23, 25, 0.16);
}

.hero {
  min-height: 82svh;
  background: #f8f8f5;
}

.hero-backdrop {
  background-image:
    linear-gradient(90deg, rgba(248, 248, 245, 0.98), rgba(248, 248, 245, 0.74) 52%, rgba(248, 248, 245, 0.9)),
    url("./assets/chromatic-blur.png");
  background-position: center, 52% 44%;
  background-size: auto, 1440px auto;
}

.hero::before {
  background:
    linear-gradient(100deg, transparent 0 28%, rgba(255, 255, 255, 0.34) 29%, transparent 31%),
    linear-gradient(100deg, transparent 0 62%, rgba(255, 255, 255, 0.24) 63%, transparent 65%);
}

.hero::after {
  inset: auto -10% -24%;
  height: 44%;
  background:
    radial-gradient(circle at 20% 36%, rgba(64, 211, 232, 0.42), transparent 34%),
    radial-gradient(circle at 70% 30%, rgba(251, 217, 30, 0.32), transparent 32%),
    radial-gradient(circle at 52% 64%, rgba(236, 45, 142, 0.32), transparent 34%);
  filter: blur(48px);
  opacity: 0.55;
}

.hero-content {
  color: var(--ink);
  padding-bottom: 110px;
}

.hero-profile {
  min-height: 66px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 7px 18px 7px 7px;
  border: 1px solid rgba(18, 18, 20, 0.1);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 56px rgba(35, 35, 42, 0.12);
  backdrop-filter: blur(20px) saturate(1.24);
}

.hero-profile img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgba(18, 18, 20, 0.1);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.hero-profile span {
  max-width: 320px;
  color: rgba(23, 23, 25, 0.72);
  font-size: 0.95rem;
  font-weight: 450;
  line-height: 1.35;
}

.eyebrow {
  font-weight: 560;
}

.hero .eyebrow,
.hero h1 {
  width: max-content;
  max-width: 100%;
  background-image: url("./assets/chromatic-blur.png");
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero .eyebrow {
  background-position: 18% 36%;
  background-size: 520px auto;
}

.hero h1 {
  font-weight: 620;
  line-height: 1.08;
  background-position: 10% 54%;
  background-size: 980px auto;
  animation: textFlow 18s ease-in-out infinite alternate;
}

.hero-copy {
  color: rgba(23, 23, 25, 0.7);
  font-weight: 400;
}

.button {
  font-weight: 560;
}

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 44px rgba(23, 23, 25, 0.18);
}

.button-primary:hover {
  background: #2a2a2f;
}

.button-secondary {
  border-color: rgba(18, 18, 20, 0.12);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.button-secondary:hover {
  border-color: rgba(18, 18, 20, 0.22);
  background: rgba(255, 255, 255, 0.78);
}

.hero-stats {
  border-color: rgba(18, 18, 20, 0.1);
  background: rgba(255, 255, 255, 0.34);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.18);
}

.stat-item {
  background: rgba(255, 255, 255, 0.32);
}

.stat-item dt {
  color: rgba(23, 23, 25, 0.58);
  font-weight: 430;
}

.stat-item dd {
  color: var(--ink);
  font-weight: 620;
}

.section-intro {
  position: relative;
  z-index: 5;
  margin-top: -72px;
  padding: 0 0 46px;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.intro-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(18, 18, 20, 0.1);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 24px 80px rgba(35, 35, 42, 0.12);
  backdrop-filter: blur(26px) saturate(1.18);
}

.intro-lead {
  max-width: 860px;
  font-size: 1.08rem;
  line-height: 1.55;
  font-weight: 460;
}

.intro-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.meta-pill {
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 32px rgba(35, 35, 42, 0.06);
  backdrop-filter: blur(18px) saturate(1.1);
}

.meta-pill span {
  font-weight: 420;
}

.meta-pill strong {
  font-weight: 560;
}

.section {
  position: relative;
}

.section-heading h2 {
  width: max-content;
  max-width: 100%;
  font-weight: 600;
  background-image: linear-gradient(92deg, #171719 0%, #171719 46%, #8d5cf6 64%, #ef5ca3 82%, #25b8d2 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.filter-button {
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.68);
  font-weight: 520;
  backdrop-filter: blur(18px);
}

.filter-button[aria-selected="true"] {
  border-color: rgba(18, 18, 20, 0.08);
  background-image: url("./assets/chromatic-blur.png");
  background-position: 58% 48%;
  background-size: 560px auto;
  color: #fff;
  box-shadow: 0 12px 32px rgba(87, 84, 242, 0.18);
}

.project-card,
.quote-block,
.skill-group,
.contact-link,
.meta-pill {
  border-radius: var(--radius);
}

.project-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(1.12);
  box-shadow: 0 14px 46px rgba(35, 35, 42, 0.07);
}

.project-media {
  background:
    linear-gradient(rgba(20, 20, 20, 0.08), rgba(20, 20, 20, 0.1)),
    url("./assets/chromatic-blur.png"),
    #29231f;
  background-position: center;
  background-size: cover;
}

.project-initial,
.project-body h3,
.timeline-date,
.timeline-item h3,
.skill-group h3,
.contact-link strong {
  font-weight: 560;
}

.tag,
.project-link {
  font-weight: 520;
}

.tag,
.skill-group li {
  background: rgba(255, 255, 255, 0.62);
}

.section-muted {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.38)),
    rgba(236, 241, 232, 0.52);
  backdrop-filter: blur(16px) saturate(1.12);
}

.quote-block,
.skill-group {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(20px) saturate(1.1);
}

.section-contact {
  background:
    linear-gradient(100deg, rgba(23, 23, 25, 0.92), rgba(23, 23, 25, 0.74)),
    url("./assets/chromatic-blur.png"),
    var(--ink);
  background-position: center;
  background-size: cover;
}

.contact-link {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(1.1);
}

.site-footer {
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px) saturate(1.1);
}

@keyframes textFlow {
  from {
    background-position: 4% 48%;
  }

  to {
    background-position: 64% 58%;
  }
}

@media (max-width: 980px) {
  .intro-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero-content {
    padding-bottom: 92px;
  }

  .hero-profile {
    max-width: 100%;
    padding-right: 14px;
  }

  .hero-profile span {
    max-width: 230px;
  }

  .section-intro {
    margin-top: -58px;
    padding-bottom: 28px;
  }

  .intro-grid {
    padding: 18px;
    border-radius: 30px;
  }

  .intro-meta {
    grid-template-columns: 1fr;
  }

  .meta-pill {
    min-height: 58px;
    border-radius: 20px;
  }
}

.footer-shell {
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
}

[data-hidden="true"] {
  display: none;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

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

  .intro-grid,
  .about-grid,
  .experience-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-heading {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .nav-shell {
    min-height: 64px;
  }

  .brand-name {
    max-width: 140px;
  }

  .nav-action span {
    display: none;
  }

  .nav-action {
    width: 44px;
    padding: 0;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-backdrop {
    background-position: 62% center;
  }

  .hero-content {
    padding: 56px 0 42px;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-stats,
  .intro-meta,
  .project-grid,
  .skill-groups,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .section-intro {
    padding: 28px 0;
  }

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

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

  .footer-shell {
    min-height: 78px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.05rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .project-body,
  .skill-group,
  .quote-block,
  .contact-link {
    padding: 16px;
  }
}

main .hero::before {
  inset: -12% !important;
  background:
    radial-gradient(circle at 18% 26%, rgba(110, 98, 255, 0.22) 0 2px, transparent 4px),
    radial-gradient(circle at 76% 18%, rgba(239, 92, 163, 0.18) 0 2px, transparent 5px),
    radial-gradient(circle at 58% 72%, rgba(41, 213, 218, 0.16) 0 2px, transparent 5px),
    radial-gradient(circle at 34% 62%, rgba(251, 217, 30, 0.12) 0 1px, transparent 4px) !important;
  background-size: 420px 420px, 520px 520px, 470px 470px, 560px 560px !important;
  background-position: 0 0, 100px 40px, 40px 120px, 160px 80px !important;
  filter: blur(1.2px) !important;
  opacity: 0.42 !important;
  transform: translate3d(0, 0, 0) scale(1);
  animation: microGlowDrift 28s ease-in-out infinite alternate !important;
}

.hero-stats {
  max-width: 700px !important;
  grid-template-columns: repeat(3, minmax(0, auto)) !important;
  gap: 26px !important;
  margin-top: 30px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.stat-item {
  min-height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

.stat-item dt {
  color: rgba(255, 255, 255, 0.52) !important;
  font-size: 0.76rem !important;
  font-weight: 420 !important;
  line-height: 1.25 !important;
}

.stat-item dd {
  margin-top: 4px !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 1.02rem !important;
  font-weight: 520 !important;
  line-height: 1.25 !important;
}

.section-intro {
  margin-top: -54px !important;
  padding-bottom: 34px !important;
}

.intro-grid {
  gap: 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.intro-lead {
  max-width: 780px !important;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 0.98rem !important;
  line-height: 1.62 !important;
  font-weight: 420 !important;
}

.intro-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px 22px !important;
}

.meta-pill {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.meta-pill span,
.meta-pill strong {
  display: inline !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.64) !important;
  font-size: 0.82rem !important;
  font-weight: 420 !important;
  line-height: 1.4 !important;
}

.meta-pill span::after {
  content: " ";
}

.meta-pill strong {
  color: rgba(255, 255, 255, 0.9) !important;
}

@media (max-width: 720px) {
  .hero-stats {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .section-intro {
    margin-top: -42px !important;
    padding-bottom: 24px !important;
  }
}

main .hero::after {
  inset: -22% !important;
  height: auto !important;
  background-image: url("./assets/chromatic-blur.png") !important;
  background-repeat: no-repeat !important;
  background-position: 42% 46% !important;
  background-size: 1280px auto !important;
  filter: blur(34px) saturate(1.28) !important;
  opacity: 0.24 !important;
  mix-blend-mode: screen;
  transform: translate3d(-3%, -1%, 0) scale(1.04);
  animation: ambientColorFloat 9s ease-in-out infinite alternate !important;
}

body::after {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: -2;
  background:
    linear-gradient(rgba(5, 5, 7, 0.66), rgba(5, 5, 7, 0.72)),
    url("./assets/chromatic-blur.png");
  background-repeat: no-repeat;
  background-position: 35% 30%;
  background-size: 1540px auto;
  filter: blur(24px) saturate(1.18);
  opacity: 0.82;
  transform: translate3d(-3%, -2%, 0) scale(1.06);
  animation: siteAuroraFloat 10s ease-in-out infinite alternate;
  pointer-events: none;
}

body::before {
  z-index: -1;
  background:
    linear-gradient(130deg, rgba(5, 5, 7, 0.6), rgba(5, 5, 7, 0.34) 48%, rgba(5, 5, 7, 0.7)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 96px);
  background-position: center, 0 0, 0 0;
  background-size: auto, 96px 96px, 96px 96px;
  filter: none;
  opacity: 1;
  animation: siteGridDrift 16s ease-in-out infinite alternate;
}

main .hero,
.section,
.section-muted,
.section-contact,
.site-footer {
  background: transparent !important;
}

main .hero-backdrop {
  background-image:
    linear-gradient(90deg, rgba(5, 5, 7, 0.74), rgba(5, 5, 7, 0.22) 52%, rgba(5, 5, 7, 0.68)),
    url("./assets/chromatic-blur.png") !important;
  background-position: center, 42% 44%;
  background-size: auto, 1500px auto;
  opacity: 0.96;
  animation: heroAuroraFloat 8s ease-in-out infinite alternate !important;
}

main .hero::after {
  opacity: 0.34 !important;
  animation-duration: 7s !important;
}

.intro-grid,
.hero-stats,
.project-card,
.quote-block,
.skill-group,
.contact-link,
.meta-pill {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055)),
    rgba(8, 8, 10, 0.52) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(24px) saturate(1.2) !important;
}

.project-media {
  background:
    linear-gradient(rgba(5, 5, 7, 0.16), rgba(5, 5, 7, 0.2)),
    url("./assets/chromatic-blur.png") !important;
  background-position: center !important;
  background-size: cover !important;
}

.section-contact .contact-link {
  background: rgba(255, 255, 255, 0.09) !important;
}

@keyframes siteAuroraFloat {
  from {
    background-position: 28% 22%;
    transform: translate3d(-4%, -2%, 0) scale(1.06);
  }

  50% {
    background-position: 56% 48%;
  }

  to {
    background-position: 72% 62%;
    transform: translate3d(4%, 3%, 0) scale(1.12);
  }
}

@keyframes heroAuroraFloat {
  from {
    background-position: center, 34% 40%;
  }

  to {
    background-position: center, 68% 58%;
  }
}

@keyframes siteGridDrift {
  from {
    background-position: center, 0 0, 0 0;
  }

  to {
    background-position: center, 28px 0, 0 28px;
  }
}

main .hero-backdrop {
  animation: darkHeroDrift 12s ease-in-out infinite alternate !important;
}

@keyframes ambientColorFloat {
  from {
    background-position: 36% 42%;
    opacity: 0.18;
    transform: translate3d(-4%, -2%, 0) scale(1.04);
  }

  45% {
    opacity: 0.3;
  }

  to {
    background-position: 64% 58%;
    opacity: 0.27;
    transform: translate3d(4%, 2%, 0) scale(1.12);
  }
}

/* Dark chromatic theme */
:root {
  --paper: #050507;
  --surface: rgba(255, 255, 255, 0.08);
  --ink: #f7f7fb;
  --muted: rgba(247, 247, 251, 0.66);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

body {
  background: #050507;
  color: var(--ink);
}

body::before {
  inset: -20%;
  background-image:
    radial-gradient(circle at 16% 18%, rgba(75, 86, 255, 0.16), transparent 26%),
    radial-gradient(circle at 84% 20%, rgba(240, 92, 163, 0.13), transparent 28%),
    radial-gradient(circle at 48% 82%, rgba(35, 218, 222, 0.12), transparent 30%),
    linear-gradient(rgba(5, 5, 7, 0.94), rgba(5, 5, 7, 0.97)),
    url("./assets/chromatic-blur.png");
  background-position: 0% 20%, 100% 12%, 46% 100%, center, 50% 0%;
  background-size: 880px 880px, 720px 720px, 980px 980px, auto, 1500px auto;
  filter: blur(60px) saturate(1.18);
  opacity: 0.36;
  animation: darkColorDrift 24s ease-in-out infinite alternate;
}

.site-header {
  background: rgba(5, 5, 7, 0.66);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(1.18);
}

.brand,
.brand-name {
  color: rgba(255, 255, 255, 0.94);
}

.brand-mark {
  background: rgba(255, 255, 255, 0.1);
}

.nav-links {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.68);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-action {
  background: rgba(255, 255, 255, 0.92);
  color: #07070a;
}

.hero {
  background: #050507;
}

.hero-backdrop {
  background-image:
    radial-gradient(circle at 12% 18%, rgba(73, 85, 255, 0.13), transparent 30%),
    radial-gradient(circle at 82% 24%, rgba(240, 92, 163, 0.11), transparent 32%),
    radial-gradient(circle at 56% 78%, rgba(41, 213, 218, 0.09), transparent 34%),
    linear-gradient(90deg, rgba(5, 5, 7, 0.99), rgba(5, 5, 7, 0.9) 52%, rgba(5, 5, 7, 0.98)),
    url("./assets/chromatic-blur.png");
  background-position: 0% 48%, 100% 22%, 50% 100%, center, 52% 44%;
  background-size: 920px 920px, 760px 760px, 920px 920px, auto, 1440px auto;
  animation: darkHeroDrift 22s ease-in-out infinite alternate;
}

.hero::before {
  inset: -12%;
  background:
    radial-gradient(circle at 18% 26%, rgba(110, 98, 255, 0.22) 0 2px, transparent 4px),
    radial-gradient(circle at 76% 18%, rgba(239, 92, 163, 0.18) 0 2px, transparent 5px),
    radial-gradient(circle at 58% 72%, rgba(41, 213, 218, 0.16) 0 2px, transparent 5px),
    radial-gradient(circle at 34% 62%, rgba(251, 217, 30, 0.12) 0 1px, transparent 4px);
  background-size: 420px 420px, 520px 520px, 470px 470px, 560px 560px;
  background-position: 0 0, 100px 40px, 40px 120px, 160px 80px;
  filter: blur(1.2px);
  opacity: 0.48;
  transform: none;
  animation: microGlowDrift 28s ease-in-out infinite alternate;
}

.hero::after {
  background:
    radial-gradient(circle at 20% 36%, rgba(64, 211, 232, 0.16), transparent 32%),
    radial-gradient(circle at 70% 30%, rgba(251, 217, 30, 0.09), transparent 30%),
    radial-gradient(circle at 52% 64%, rgba(236, 45, 142, 0.14), transparent 32%);
  filter: blur(66px);
  opacity: 0.3;
}

.hero-content {
  color: #fff;
}

.hero-profile {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.24);
}

.hero-profile img {
  border-color: rgba(255, 255, 255, 0.16);
}

.hero-profile span,
.hero-copy {
  color: rgba(255, 255, 255, 0.72);
}

.button-primary {
  background: rgba(255, 255, 255, 0.94);
  color: #07070a;
}

.button-primary:hover {
  background: #fff;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.13);
}

.hero-stats,
.intro-grid,
.project-card,
.quote-block,
.skill-group {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.055)),
    rgba(8, 8, 10, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.stat-item {
  background: rgba(255, 255, 255, 0.045);
}

.stat-item dt,
.meta-pill span,
.project-meta,
.project-body p,
.timeline-item p,
.section-heading p:last-child {
  color: rgba(255, 255, 255, 0.6);
}

.stat-item dd,
.meta-pill strong,
.intro-lead,
.project-body h3,
.skill-group h3,
.timeline-item h3 {
  color: #fff;
}

.section-intro {
  background: transparent;
}

.intro-grid {
  color: #fff;
}

.meta-pill {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.section-heading h2 {
  background-image: linear-gradient(92deg, #ffffff 0%, #ffffff 42%, #8d5cf6 62%, #ef5ca3 80%, #25b8d2 100%);
}

.filter-button {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.68);
}

.filter-button[aria-selected="true"] {
  border-color: rgba(255, 255, 255, 0.16);
}

.outcome-list li {
  color: rgba(255, 255, 255, 0.74);
}

.tag,
.skill-group li,
.project-link {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.section-muted {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(5, 5, 7, 0.96);
}

.timeline-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.section-contact {
  background:
    linear-gradient(100deg, rgba(5, 5, 7, 0.94), rgba(5, 5, 7, 0.76)),
    url("./assets/chromatic-blur.png"),
    #050507;
}

.site-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 7, 0.72);
}

.footer-shell {
  color: rgba(255, 255, 255, 0.62);
}

@keyframes darkColorDrift {
  from {
    background-position: 0% 20%, 100% 12%, 46% 100%, center, 42% 0%;
  }

  to {
    background-position: 18% 30%, 84% 28%, 56% 82%, center, 58% 18%;
  }
}

@keyframes darkHeroDrift {
  from {
    background-position: 0% 48%, 100% 22%, 50% 100%, center, 44% 42%;
  }

  to {
    background-position: 14% 38%, 86% 34%, 60% 88%, center, 58% 54%;
  }
}

@keyframes microGlowDrift {
  from {
    background-position: 0 0, 100px 40px, 40px 120px, 160px 80px;
    opacity: 0.36;
  }

  to {
    background-position: 46px 34px, 62px 92px, 96px 74px, 118px 136px;
    opacity: 0.5;
  }
}

@media (max-width: 720px) {
  .hero-content {
    padding-bottom: 92px;
  }

  .section-intro {
    padding-top: 0;
  }
}

/* Final lightweight info treatment */
main .hero-stats {
  max-width: 700px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, auto)) !important;
  gap: 26px !important;
  margin-top: 30px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

main .stat-item {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

main .stat-item dt {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.72rem !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}

main .stat-item dd {
  margin-top: 3px !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.98rem !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

main .section-intro {
  margin-top: -48px !important;
  padding: 0 0 34px !important;
  border: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

main .intro-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

main .intro-lead {
  max-width: 780px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.94rem !important;
  line-height: 1.62 !important;
  font-weight: 400 !important;
}

main .intro-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 20px !important;
}

main .meta-pill {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

main .meta-pill span,
main .meta-pill strong {
  display: inline !important;
  margin: 0 !important;
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
}

main .meta-pill span {
  color: rgba(255, 255, 255, 0.5) !important;
}

main .meta-pill span::after {
  content: " ";
}

main .meta-pill strong {
  color: rgba(255, 255, 255, 0.86) !important;
}

@media (max-width: 720px) {
  main .hero-stats {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  main .section-intro {
    margin-top: -34px !important;
    padding-bottom: 24px !important;
  }
}

/* Remove the small hero info blocks per latest direction */
main .hero-stats,
main .section-intro {
  display: none !important;
}

main .hero-content {
  position: relative;
  padding-bottom: 76px !important;
}

.hero-kicker {
  position: absolute;
  top: 14px;
  left: 0;
  width: min(100%, 680px);
  display: grid;
  gap: 7px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 420;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-profile {
  margin-top: 92px;
}

.hero-kicker span:first-child {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
  font-weight: 560;
}

.hero-kicker span:last-child {
  width: max-content;
  max-width: 100%;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

@media (max-width: 720px) {
  main .hero-content {
    padding-bottom: 64px !important;
  }

  .hero-kicker {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 22px;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .hero-kicker span:first-child {
    font-size: 0.74rem;
  }

  .hero-profile {
    margin-top: 0;
  }
}

/* Hero palette inspired by the latest reference */
main .hero-backdrop {
  background-image:
    linear-gradient(90deg, rgba(5, 5, 7, 0.7), rgba(5, 5, 7, 0.28) 48%, rgba(5, 5, 7, 0.62)),
    radial-gradient(circle at 90% 88%, rgba(0, 221, 205, 0.72), transparent 36%),
    radial-gradient(circle at 72% 52%, rgba(185, 235, 58, 0.58), transparent 38%),
    radial-gradient(circle at 48% 28%, rgba(255, 173, 48, 0.42), transparent 34%),
    radial-gradient(circle at 8% 84%, rgba(239, 55, 142, 0.64), transparent 42%),
    radial-gradient(circle at 4% 4%, rgba(49, 55, 205, 0.74), transparent 48%),
    linear-gradient(#050507, #050507) !important;
  background-position: center, 92% 84%, 70% 48%, 48% 24%, 8% 82%, 4% 4%, center;
  background-size: auto, 880px 880px, 960px 960px, 820px 820px, 920px 920px, 980px 980px, auto;
  animation: referencePaletteFloat 9s ease-in-out infinite alternate !important;
}

main .hero::after {
  background-image:
    radial-gradient(circle at 88% 76%, rgba(0, 225, 210, 0.36), transparent 34%),
    radial-gradient(circle at 24% 72%, rgba(244, 58, 145, 0.24), transparent 38%),
    radial-gradient(circle at 58% 34%, rgba(255, 209, 42, 0.18), transparent 34%) !important;
  opacity: 0.36 !important;
  filter: blur(56px) saturate(1.16) !important;
}

@keyframes referencePaletteFloat {
  from {
    background-position: center, 92% 84%, 70% 48%, 48% 24%, 8% 82%, 4% 4%, center;
  }

  to {
    background-position: center, 78% 72%, 62% 58%, 56% 32%, 16% 68%, 12% 14%, center;
  }
}

/* Stronger aurora motion and tighter hero composition */
main .hero-profile {
  margin-top: 16px !important;
}

main .hero-backdrop {
  background-image:
    linear-gradient(90deg, rgba(5, 5, 7, 0.5), rgba(5, 5, 7, 0.14) 48%, rgba(5, 5, 7, 0.2)),
    radial-gradient(circle at 94% 4%, rgba(255, 184, 40, 0.72), transparent 30%),
    radial-gradient(circle at 96% 24%, rgba(0, 225, 205, 0.68), transparent 34%),
    radial-gradient(circle at 72% 54%, rgba(184, 235, 58, 0.62), transparent 40%),
    radial-gradient(circle at 45% 24%, rgba(255, 120, 52, 0.44), transparent 36%),
    radial-gradient(circle at 8% 82%, rgba(239, 55, 142, 0.7), transparent 43%),
    radial-gradient(circle at 0% 0%, rgba(49, 55, 205, 0.78), transparent 50%),
    linear-gradient(#050507, #050507) !important;
  background-position: center, 94% 4%, 96% 24%, 72% 54%, 45% 24%, 8% 82%, 0% 0%, center;
  background-size: auto, 840px 840px, 820px 820px, 980px 980px, 880px 880px, 940px 940px, 980px 980px, auto;
  animation: strongPaletteShift 5.6s ease-in-out infinite alternate !important;
}

main .hero::after {
  inset: -26% !important;
  height: auto !important;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 210, 58, 0.46), transparent 28%),
    radial-gradient(circle at 86% 38%, rgba(0, 235, 215, 0.38), transparent 34%),
    radial-gradient(circle at 26% 72%, rgba(245, 58, 145, 0.34), transparent 40%),
    radial-gradient(circle at 54% 50%, rgba(176, 255, 70, 0.24), transparent 34%) !important;
  filter: blur(44px) saturate(1.42) !important;
  opacity: 0.62 !important;
  mix-blend-mode: screen !important;
  transform: translate3d(-3%, -2%, 0) scale(1.06);
  animation: auroraLayerFloat 4.8s ease-in-out infinite alternate !important;
}

@keyframes strongPaletteShift {
  from {
    background-position: center, 94% 4%, 96% 24%, 72% 54%, 45% 24%, 8% 82%, 0% 0%, center;
    background-size: auto, 840px 840px, 820px 820px, 980px 980px, 880px 880px, 940px 940px, 980px 980px, auto;
  }

  to {
    background-position: center, 76% 18%, 82% 42%, 60% 64%, 58% 34%, 18% 66%, 10% 12%, center;
    background-size: auto, 980px 980px, 960px 960px, 1120px 1120px, 980px 980px, 1060px 1060px, 1120px 1120px, auto;
  }
}

@keyframes auroraLayerFloat {
  from {
    opacity: 0.48;
    transform: translate3d(-5%, -3%, 0) scale(1.04);
  }

  to {
    opacity: 0.72;
    transform: translate3d(5%, 4%, 0) scale(1.14);
  }
}

/* Remove the dark lower-right corner in the hero */
main .hero-backdrop {
  background-image:
    linear-gradient(90deg, rgba(5, 5, 7, 0.5), rgba(5, 5, 7, 0.12) 46%, rgba(5, 5, 7, 0.06)),
    radial-gradient(circle at 96% 96%, rgba(0, 238, 210, 0.72), transparent 34%),
    radial-gradient(circle at 86% 72%, rgba(92, 224, 132, 0.5), transparent 42%),
    radial-gradient(circle at 94% 4%, rgba(255, 184, 40, 0.72), transparent 30%),
    radial-gradient(circle at 72% 54%, rgba(184, 235, 58, 0.62), transparent 40%),
    radial-gradient(circle at 45% 24%, rgba(255, 120, 52, 0.44), transparent 36%),
    radial-gradient(circle at 8% 82%, rgba(239, 55, 142, 0.7), transparent 43%),
    radial-gradient(circle at 0% 0%, rgba(49, 55, 205, 0.78), transparent 50%),
    linear-gradient(#050507, #050507) !important;
  background-position: center, 96% 96%, 86% 72%, 94% 4%, 72% 54%, 45% 24%, 8% 82%, 0% 0%, center;
  background-size: auto, 980px 980px, 980px 980px, 840px 840px, 980px 980px, 880px 880px, 940px 940px, 980px 980px, auto;
  animation: visibleGreenPaletteShift 3.8s ease-in-out infinite alternate !important;
}

main .hero::after {
  background:
    radial-gradient(circle at 94% 86%, rgba(0, 245, 220, 0.42), transparent 32%),
    radial-gradient(circle at 84% 66%, rgba(110, 255, 138, 0.28), transparent 34%),
    radial-gradient(circle at 26% 72%, rgba(245, 58, 145, 0.3), transparent 40%),
    radial-gradient(circle at 54% 50%, rgba(176, 255, 70, 0.22), transparent 34%) !important;
  opacity: 0.74 !important;
  animation: visibleGreenGlowFloat 3.4s ease-in-out infinite alternate !important;
}

@keyframes noCornerPaletteShift {
  from {
    background-position: center, 96% 96%, 86% 72%, 94% 4%, 72% 54%, 45% 24%, 8% 82%, 0% 0%, center;
  }

  to {
    background-position: center, 84% 82%, 76% 64%, 76% 18%, 60% 64%, 58% 34%, 18% 66%, 10% 12%, center;
  }
}

@keyframes visibleGreenPaletteShift {
  from {
    background-position: center, 98% 98%, 88% 76%, 94% 4%, 72% 54%, 45% 24%, 8% 82%, 0% 0%, center;
    background-size: auto, 940px 940px, 920px 920px, 840px 840px, 980px 980px, 880px 880px, 940px 940px, 980px 980px, auto;
    filter: saturate(1.04) brightness(0.98);
  }

  48% {
    filter: saturate(1.24) brightness(1.1);
  }

  to {
    background-position: center, 78% 74%, 70% 58%, 76% 18%, 56% 64%, 58% 34%, 18% 66%, 10% 12%, center;
    background-size: auto, 1180px 1180px, 1120px 1120px, 960px 960px, 1160px 1160px, 980px 980px, 1080px 1080px, 1120px 1120px, auto;
    filter: saturate(1.18) brightness(1.04);
  }
}

@keyframes visibleGreenGlowFloat {
  from {
    opacity: 0.48;
    transform: translate3d(-6%, -4%, 0) scale(1.02);
  }

  50% {
    opacity: 0.82;
  }

  to {
    opacity: 0.78;
    transform: translate3d(7%, 5%, 0) scale(1.16);
  }
}

/* Color blocks push each other: blue -> red -> green */
main .hero-backdrop {
  animation: fastColorBlockPush 4.2s cubic-bezier(0.42, 0, 0.18, 1) infinite !important;
}

main .hero::after {
  animation: fastColorPressureGlow 4.2s cubic-bezier(0.42, 0, 0.18, 1) infinite !important;
}

@keyframes colorBlockPush {
  0%,
  100% {
    background-position: center, 104% 96%, 88% 78%, 94% 4%, 74% 56%, 46% 24%, 8% 82%, -4% -2%, center;
    background-size: auto, 880px 880px, 820px 820px, 800px 800px, 900px 900px, 820px 820px, 900px 900px, 1360px 1360px, auto;
    filter: saturate(1.18) brightness(1.02);
  }

  28% {
    background-position: center, 98% 92%, 84% 72%, 88% 10%, 70% 56%, 42% 28%, 18% 72%, 10% 6%, center;
    background-size: auto, 920px 920px, 900px 900px, 840px 840px, 940px 940px, 880px 880px, 1320px 1320px, 920px 920px, auto;
    filter: saturate(1.26) brightness(1.08);
  }

  58% {
    background-position: center, 92% 86%, 78% 66%, 80% 18%, 66% 58%, 58% 36%, 8% 84%, 2% 4%, center;
    background-size: auto, 940px 940px, 940px 940px, 820px 820px, 980px 980px, 1260px 1260px, 920px 920px, 900px 900px, auto;
    filter: saturate(1.3) brightness(1.08);
  }

  78% {
    background-position: center, 88% 84%, 76% 62%, 88% 10%, 66% 62%, 46% 32%, 12% 74%, 8% 10%, center;
    background-size: auto, 980px 980px, 980px 980px, 860px 860px, 980px 980px, 940px 940px, 1040px 1040px, 1040px 1040px, auto;
    filter: saturate(1.24) brightness(1.06);
  }
}

@keyframes colorPressureGlow {
  0%,
  100% {
    opacity: 0.52;
    transform: translate3d(-5%, -4%, 0) scale(1.04);
  }

  28% {
    opacity: 0.72;
    transform: translate3d(-1%, 2%, 0) scale(1.14);
  }

  58% {
    opacity: 0.66;
    transform: translate3d(5%, -1%, 0) scale(1.1);
  }

  78% {
    opacity: 0.64;
    transform: translate3d(4%, 3%, 0) scale(1.08);
  }
}

@keyframes fastColorBlockPush {
  0%,
  100% {
    background-position: center, 112% 104%, 98% 84%, 96% 4%, 82% 58%, 48% 24%, 8% 84%, -10% -6%, center;
    background-size: auto, 560px 560px, 580px 580px, 760px 760px, 680px 680px, 780px 780px, 980px 980px, 1480px 1480px, auto;
    filter: saturate(1.16) brightness(1.02);
  }

  24% {
    background-position: center, 106% 98%, 94% 78%, 86% 10%, 76% 58%, 42% 26%, 22% 68%, 2% 4%, center;
    background-size: auto, 620px 620px, 640px 640px, 760px 760px, 700px 700px, 840px 840px, 1500px 1500px, 920px 920px, auto;
    filter: saturate(1.32) brightness(1.1);
  }

  50% {
    background-position: center, 100% 92%, 88% 72%, 78% 18%, 72% 60%, 58% 36%, 8% 86%, 6% 8%, center;
    background-size: auto, 640px 640px, 660px 660px, 780px 780px, 720px 720px, 1480px 1480px, 960px 960px, 900px 900px, auto;
    filter: saturate(1.34) brightness(1.1);
  }

  76% {
    background-position: center, 96% 86%, 84% 66%, 88% 10%, 70% 64%, 46% 32%, 12% 76%, 8% 10%, center;
    background-size: auto, 760px 760px, 760px 760px, 780px 780px, 780px 780px, 880px 880px, 1040px 1040px, 1040px 1040px, auto;
    filter: saturate(1.2) brightness(1.04);
  }
}

@keyframes fastColorPressureGlow {
  0%,
  100% {
    opacity: 0.48;
    transform: translate3d(-7%, -5%, 0) scale(1.02);
  }

  24% {
    opacity: 0.86;
    transform: translate3d(-3%, 4%, 0) scale(1.2);
  }

  50% {
    opacity: 0.78;
    transform: translate3d(6%, -2%, 0) scale(1.16);
  }

  76% {
    opacity: 0.58;
    transform: translate3d(5%, 4%, 0) scale(1.1);
  }
}

/* Grouped portfolio browsing */
.project-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 54px !important;
}

.project-section {
  display: grid;
  gap: 18px;
  scroll-margin-top: 96px;
}

.project-section-heading {
  display: grid;
  gap: 4px;
}

.project-section-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  font-weight: 430;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.project-section-heading h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.9rem;
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: 0;
}

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

@media (min-width: 1180px) {
  .project-grid-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .project-grid {
    gap: 42px !important;
  }

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

  .project-section-heading h3 {
    font-size: 1.48rem;
  }
}

/* Featured video project */
.project-card-featured {
  grid-column: 1 / -1;
  overflow: hidden;
}

.project-card-featured .project-media {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
}

.project-card-gallery {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(24px) saturate(1.18);
}

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

.project-card-gallery .project-meta {
  color: rgba(255, 255, 255, 0.54);
}

.project-card-gallery .project-body h3 {
  color: rgba(255, 255, 255, 0.94);
}

.project-media-gallery {
  columns: 2 220px;
  column-gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(1.14);
}

.pinterest-pin {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0 0 14px;
  break-inside: avoid;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.18);
}

.pinterest-pin::after {
  content: "...";
  position: absolute;
  top: 8px;
  right: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.pinterest-pin img {
  display: block;
  width: 100%;
  height: auto;
}

.project-media-video {
  background: #050507;
}

.project-media-video video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: inherit;
  background: #050507;
  object-fit: cover;
}

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

.project-card-featured .project-body {
  max-width: 820px;
}

.project-card-caption-only .project-body {
  padding-top: 18px;
}

.project-card-caption-only .project-body h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 520;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.94);
}

.project-body-compact {
  padding-top: 18px;
}

.project-body-compact .project-meta {
  margin-bottom: 8px;
}

.project-body-compact h3 {
  margin: 0;
}

@media (min-width: 980px) {
  .project-card-featured .project-body {
    padding: 22px 24px 24px;
  }
}

/* Rounded control hover interaction */
.button,
.nav-action,
.filter-button,
.project-link,
.contact-link,
.hero-profile,
.brand-mark {
  transform: translateZ(0) scale(1);
  transform-origin: center;
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
  will-change: transform;
}

.button:hover,
.button:focus-visible,
.nav-action:hover,
.nav-action:focus-visible,
.filter-button:hover,
.filter-button:focus-visible,
.project-link:hover,
.project-link:focus-visible,
.contact-link:hover,
.contact-link:focus-visible,
.hero-profile:hover,
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: translateZ(0) scale(1.055);
}

.button:active,
.nav-action:active,
.filter-button:active,
.project-link:active,
.contact-link:active {
  transform: translateZ(0) scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .nav-action,
  .filter-button,
  .project-link,
  .contact-link,
  .hero-profile,
  .brand-mark {
    transition: none;
    will-change: auto;
  }

  .button:hover,
  .button:focus-visible,
  .nav-action:hover,
  .nav-action:focus-visible,
  .filter-button:hover,
  .filter-button:focus-visible,
  .project-link:hover,
  .project-link:focus-visible,
  .contact-link:hover,
  .contact-link:focus-visible,
  .hero-profile:hover,
  .brand:hover .brand-mark,
  .brand:focus-visible .brand-mark {
    transform: none;
  }
}

/* More visible color pushing without letting green dominate */
main .hero-backdrop {
  animation: punchyBackdropPush 3.2s cubic-bezier(0.42, 0, 0.18, 1) infinite !important;
  will-change: background-position, background-size, filter;
}

main .hero::before {
  inset: -22% !important;
  background:
    radial-gradient(circle, rgba(58, 71, 255, 0.56), transparent 58%),
    radial-gradient(circle, rgba(239, 55, 142, 0.62), transparent 60%),
    radial-gradient(circle, rgba(0, 238, 210, 0.34), transparent 56%),
    radial-gradient(circle, rgba(188, 242, 74, 0.24), transparent 62%) !important;
  background-repeat: no-repeat !important;
  background-position: -8% 10%, 6% 82%, 104% 84%, 82% 42%;
  background-size: 1180px 1180px, 980px 980px, 620px 620px, 620px 620px;
  filter: blur(38px) saturate(1.28) !important;
  mix-blend-mode: screen !important;
  opacity: 0.62 !important;
  transform: translate3d(0, 0, 0) scale(1);
  animation: punchyColorPressure 3.2s cubic-bezier(0.42, 0, 0.18, 1) infinite !important;
  will-change: background-position, background-size, opacity, transform;
}

main .hero::after {
  animation: punchyLightPulse 3.2s cubic-bezier(0.42, 0, 0.18, 1) infinite !important;
}

main .hero-backdrop {
  transform: translate3d(-3%, -2%, 0) scale(1.08);
  animation: livingBackdropPush 3s cubic-bezier(0.42, 0, 0.18, 1) infinite !important;
  will-change: transform, filter;
}

main .hero::before {
  animation: livingColorPressure 3s cubic-bezier(0.42, 0, 0.18, 1) infinite !important;
  will-change: transform, filter, opacity;
}

main .hero::after {
  animation: livingGlowPressure 3s cubic-bezier(0.42, 0, 0.18, 1) infinite !important;
  will-change: transform, opacity;
}

@keyframes livingBackdropPush {
  0%,
  100% {
    transform: translate3d(-5%, -3%, 0) scale(1.1);
    filter: saturate(1.14) brightness(1.02);
  }

  33% {
    transform: translate3d(4%, -1%, 0) scale(1.16);
    filter: saturate(1.34) brightness(1.12);
  }

  66% {
    transform: translate3d(-1%, 4%, 0) scale(1.13);
    filter: saturate(1.28) brightness(1.08);
  }
}

@keyframes livingColorPressure {
  0%,
  100% {
    opacity: 0.54;
    transform: translate3d(-8%, -4%, 0) scale(1.04);
    filter: blur(38px) saturate(1.22);
  }

  33% {
    opacity: 0.82;
    transform: translate3d(6%, 3%, 0) scale(1.18);
    filter: blur(34px) saturate(1.42);
  }

  66% {
    opacity: 0.7;
    transform: translate3d(10%, -2%, 0) scale(1.1);
    filter: blur(38px) saturate(1.3);
  }
}

@keyframes livingGlowPressure {
  0%,
  100% {
    opacity: 0.44;
    transform: translate3d(-8%, -5%, 0) scale(1.03);
  }

  33% {
    opacity: 0.82;
    transform: translate3d(-1%, 5%, 0) scale(1.2);
  }

  66% {
    opacity: 0.68;
    transform: translate3d(8%, 2%, 0) scale(1.12);
  }
}

@keyframes punchyBackdropPush {
  0%,
  100% {
    background-position: center, 112% 104%, 98% 84%, 96% 4%, 82% 58%, 48% 24%, 8% 84%, -10% -6%, center;
    background-size: auto, 540px 540px, 560px 560px, 760px 760px, 660px 660px, 780px 780px, 1040px 1040px, 1500px 1500px, auto;
    filter: saturate(1.16) brightness(1.02);
  }

  32% {
    background-position: center, 110% 100%, 96% 78%, 84% 10%, 76% 58%, 42% 26%, 22% 68%, 2% 4%, center;
    background-size: auto, 560px 560px, 580px 580px, 760px 760px, 680px 680px, 840px 840px, 1520px 1520px, 920px 920px, auto;
    filter: saturate(1.34) brightness(1.1);
  }

  64% {
    background-position: center, 100% 92%, 88% 72%, 78% 18%, 74% 60%, 58% 36%, 6% 86%, 4% 8%, center;
    background-size: auto, 620px 620px, 620px 620px, 780px 780px, 700px 700px, 1500px 1500px, 960px 960px, 920px 920px, auto;
    filter: saturate(1.36) brightness(1.08);
  }
}

@keyframes punchyColorPressure {
  0%,
  100% {
    background-position: -8% 10%, 6% 82%, 104% 84%, 82% 42%;
    background-size: 1180px 1180px, 980px 980px, 620px 620px, 620px 620px;
    opacity: 0.56;
    transform: translate3d(-2%, -1%, 0) scale(1.02);
  }

  32% {
    background-position: 12% 16%, -6% 76%, 98% 78%, 74% 50%;
    background-size: 820px 820px, 1360px 1360px, 600px 600px, 580px 580px;
    opacity: 0.76;
    transform: translate3d(2%, 1%, 0) scale(1.08);
  }

  64% {
    background-position: -2% 18%, 12% 86%, 90% 76%, 78% 48%;
    background-size: 920px 920px, 920px 920px, 760px 760px, 620px 620px;
    opacity: 0.7;
    transform: translate3d(4%, 2%, 0) scale(1.1);
  }
}

@keyframes punchyLightPulse {
  0%,
  100% {
    opacity: 0.46;
    transform: translate3d(-6%, -4%, 0) scale(1.03);
  }

  32% {
    opacity: 0.82;
    transform: translate3d(-2%, 4%, 0) scale(1.18);
  }

  64% {
    opacity: 0.68;
    transform: translate3d(7%, 3%, 0) scale(1.14);
  }
}

/* Final hover scale override for rounded interactive controls */
button,
.button,
.nav-action,
.filter-button,
.project-link,
.contact-link,
.hero-profile,
.brand-mark {
  transform: translateZ(0) scale(1);
  transform-origin: center !important;
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease !important;
  will-change: transform;
}

button:hover,
button:focus-visible,
.button:hover,
.button:focus-visible,
.nav-action:hover,
.nav-action:focus-visible,
.filter-button:hover,
.filter-button:focus-visible,
.project-link:hover,
.project-link:focus-visible,
.contact-link:hover,
.contact-link:focus-visible,
  .hero-profile:hover,
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: translateZ(0) scale(1.14);
  animation: superBouncyHoverPop 620ms linear both !important;
}

button:active,
.button:active,
.nav-action:active,
.filter-button:active,
.project-link:active,
.contact-link:active {
  transform: translateZ(0) scale(0.98) !important;
}

@keyframes bouncyHoverPop {
  0% {
    transform: translateZ(0) scale(1);
  }

  42% {
    transform: translateZ(0) scale(1.16);
  }

  68% {
    transform: translateZ(0) scale(1.08);
  }

  100% {
    transform: translateZ(0) scale(1.12);
  }
}

@keyframes superBouncyHoverPop {
  0% {
    transform: translateZ(0) scale(1);
  }

  22% {
    transform: translateZ(0) scale(1.24);
  }

  42% {
    transform: translateZ(0) scale(1.06);
  }

  60% {
    transform: translateZ(0) scale(1.18);
  }

  78% {
    transform: translateZ(0) scale(1.11);
  }

  100% {
    transform: translateZ(0) scale(1.14);
  }
}

/* Pointer-triggered elastic rebound bounce */
button.is-bouncy-hover,
.button.is-bouncy-hover,
.nav-action.is-bouncy-hover,
.filter-button.is-bouncy-hover,
.project-card.is-bouncy-hover,
.project-link.is-bouncy-hover,
.contact-link.is-bouncy-hover,
.hero-profile.is-bouncy-hover,
.brand-mark.is-bouncy-hover,
.brand:hover .brand-mark.is-bouncy-hover,
.brand:focus-visible .brand-mark.is-bouncy-hover {
  transform: translateZ(0) scale(1.18);
  filter: brightness(1.08) saturate(1.12);
}

button.is-bouncy-enter,
.button.is-bouncy-enter,
.nav-action.is-bouncy-enter,
.filter-button.is-bouncy-enter,
.project-card.is-bouncy-enter,
.project-link.is-bouncy-enter,
.contact-link.is-bouncy-enter,
.hero-profile.is-bouncy-enter,
.brand-mark.is-bouncy-enter,
.brand:hover .brand-mark.is-bouncy-enter,
.brand:focus-visible .brand-mark.is-bouncy-enter {
  animation: elasticButtonPopIn 860ms linear both !important;
}

button.is-bouncy-leave,
.button.is-bouncy-leave,
.nav-action.is-bouncy-leave,
.filter-button.is-bouncy-leave,
.project-card.is-bouncy-leave,
.project-link.is-bouncy-leave,
.contact-link.is-bouncy-leave,
.hero-profile.is-bouncy-leave,
.brand-mark.is-bouncy-leave,
.brand:hover .brand-mark.is-bouncy-leave,
.brand:focus-visible .brand-mark.is-bouncy-leave {
  animation: elasticButtonPopOut 520ms linear both !important;
}

@keyframes elasticButtonPopIn {
  0% {
    transform: translateZ(0) scale(1);
  }

  16% {
    transform: translateZ(0) scale(1.36);
  }

  28% {
    transform: translateZ(0) scale(0.96);
  }

  44% {
    transform: translateZ(0) scale(1.26);
  }

  60% {
    transform: translateZ(0) scale(1.08);
  }

  76% {
    transform: translateZ(0) scale(1.21);
  }

  88% {
    transform: translateZ(0) scale(1.14);
  }

  100% {
    transform: translateZ(0) scale(1.18);
  }
}

@keyframes elasticButtonPopOut {
  0% {
    transform: translateZ(0) scale(1.18);
  }

  28% {
    transform: translateZ(0) scale(0.86);
  }

  56% {
    transform: translateZ(0) scale(1.08);
  }

  78% {
    transform: translateZ(0) scale(0.98);
  }

  100% {
    transform: translateZ(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  button,
  .button,
  .nav-action,
  .filter-button,
  .project-card,
  .project-link,
  .contact-link,
  .hero-profile,
  .brand-mark {
    transition: none !important;
    will-change: auto;
  }
}

/* Final visible elastic hover: obvious pop + rebound */
button,
.button,
.nav-action,
.filter-button,
.project-link,
.contact-link,
.hero-profile,
.brand-mark,
.project-card {
  backface-visibility: hidden;
  transform-origin: center center !important;
  will-change: transform, filter;
}

button:hover,
button:focus-visible,
.button:hover,
.button:focus-visible,
.nav-action:hover,
.nav-action:focus-visible,
.filter-button:hover,
.filter-button:focus-visible,
.project-link:hover,
.project-link:focus-visible,
.contact-link:hover,
.contact-link:focus-visible,
.hero-profile:hover,
.hero-profile:focus-visible,
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  animation: tactileControlPopIn 880ms linear both !important;
  filter: brightness(1.1) saturate(1.12);
  box-shadow: 0 18px 52px rgba(0, 245, 210, 0.2);
  position: relative;
  z-index: 5;
}

.project-card:hover,
.project-card:focus-visible,
.project-card.is-bouncy-hover {
  animation: tactileCardPopIn 880ms linear both !important;
  filter: brightness(1.08) saturate(1.1);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
  position: relative;
  z-index: 4;
}

button.is-bouncy-hover,
.button.is-bouncy-hover,
.nav-action.is-bouncy-hover,
.filter-button.is-bouncy-hover,
.project-link.is-bouncy-hover,
.contact-link.is-bouncy-hover,
.hero-profile.is-bouncy-hover,
.brand-mark.is-bouncy-hover {
  animation: tactileControlPopIn 880ms linear both !important;
}

button.is-bouncy-leave,
.button.is-bouncy-leave,
.nav-action.is-bouncy-leave,
.filter-button.is-bouncy-leave,
.project-link.is-bouncy-leave,
.contact-link.is-bouncy-leave,
.hero-profile.is-bouncy-leave,
.brand-mark.is-bouncy-leave {
  animation: tactileControlPopOut 560ms linear both !important;
}

.project-card.is-bouncy-leave {
  animation: tactileCardPopOut 560ms linear both !important;
}

@keyframes tactileControlPopIn {
  0% {
    transform: translateZ(0) scale(1);
  }

  16% {
    transform: translateZ(0) scale(1.48);
  }

  30% {
    transform: translateZ(0) scale(0.88);
  }

  46% {
    transform: translateZ(0) scale(1.38);
  }

  62% {
    transform: translateZ(0) scale(1.08);
  }

  78% {
    transform: translateZ(0) scale(1.3);
  }

  100% {
    transform: translateZ(0) scale(1.25);
  }
}

@keyframes tactileControlPopOut {
  0% {
    transform: translateZ(0) scale(1.25);
  }

  28% {
    transform: translateZ(0) scale(0.8);
  }

  55% {
    transform: translateZ(0) scale(1.12);
  }

  78% {
    transform: translateZ(0) scale(0.97);
  }

  100% {
    transform: translateZ(0) scale(1);
  }
}

@keyframes tactileCardPopIn {
  0% {
    transform: translateZ(0) scale(1);
  }

  18% {
    transform: translateZ(0) scale(1.14);
  }

  32% {
    transform: translateZ(0) scale(0.975);
  }

  50% {
    transform: translateZ(0) scale(1.105);
  }

  72% {
    transform: translateZ(0) scale(1.025);
  }

  100% {
    transform: translateZ(0) scale(1.08);
  }
}

@keyframes tactileCardPopOut {
  0% {
    transform: translateZ(0) scale(1.08);
  }

  28% {
    transform: translateZ(0) scale(0.94);
  }

  56% {
    transform: translateZ(0) scale(1.035);
  }

  100% {
    transform: translateZ(0) scale(1);
  }
}

/* Lock large surfaces; keep rebound only on small controls */
.project-card,
.project-card:hover,
.project-card:focus-visible,
.project-card.is-bouncy-hover,
.project-card.is-bouncy-enter,
.project-card.is-bouncy-leave,
.project-media,
.project-media:hover,
.project-media-video,
.project-media-video:hover,
.hero-profile,
.hero-profile:hover,
.hero-profile:focus-visible,
.hero-profile.is-bouncy-hover,
.hero-profile.is-bouncy-enter,
.hero-profile.is-bouncy-leave,
.contact-link,
.contact-link:hover,
.contact-link:focus-visible,
.contact-link.is-bouncy-hover,
.contact-link.is-bouncy-enter,
.contact-link.is-bouncy-leave,
.brand-mark,
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark,
.brand-mark.is-bouncy-hover,
.brand-mark.is-bouncy-enter,
.brand-mark.is-bouncy-leave {
  animation: none !important;
  transform: none !important;
}

button,
.button,
.nav-action,
.filter-button,
.project-link {
  transform: translateZ(0) scale(1);
  transform-origin: center center !important;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease !important;
  will-change: transform, filter;
}

button:hover,
button:focus-visible,
.button:hover,
.button:focus-visible,
.nav-action:hover,
.nav-action:focus-visible,
.filter-button:hover,
.filter-button:focus-visible,
.project-link:hover,
.project-link:focus-visible,
button.is-bouncy-hover,
.button.is-bouncy-hover,
.nav-action.is-bouncy-hover,
.filter-button.is-bouncy-hover,
.project-link.is-bouncy-hover,
button.is-bouncy-enter,
.button.is-bouncy-enter,
.nav-action.is-bouncy-enter,
.filter-button.is-bouncy-enter,
.project-link.is-bouncy-enter {
  animation: quickControlReboundIn 360ms linear both !important;
  filter: none;
  position: relative;
  z-index: 8;
}

button.is-bouncy-leave,
.button.is-bouncy-leave,
.nav-action.is-bouncy-leave,
.filter-button.is-bouncy-leave,
.project-link.is-bouncy-leave {
  animation: quickControlReboundOut 220ms linear both !important;
}

button:active,
.button:active,
.nav-action:active,
.filter-button:active,
.project-link:active {
  animation: none !important;
  transform: translateZ(0) scale(0.92) !important;
}

@keyframes quickControlReboundIn {
  0% {
    transform: translateZ(0) scale(1);
  }

  18% {
    transform: translateZ(0) translateY(-1px) scale(1.22, 0.96);
  }

  38% {
    transform: translateZ(0) translateY(1px) scale(0.97, 1.05);
  }

  62% {
    transform: translateZ(0) translateY(-1px) scale(1.13, 0.98);
  }

  82% {
    transform: translateZ(0) scale(1.03, 1.02);
  }

  100% {
    transform: translateZ(0) scale(1.09);
  }
}

@keyframes quickControlReboundOut {
  0% {
    transform: translateZ(0) scale(1.09);
  }

  36% {
    transform: translateZ(0) scale(0.95, 1.05);
  }

  68% {
    transform: translateZ(0) scale(1.03, 0.98);
  }

  100% {
    transform: translateZ(0) scale(1);
  }
}

/* iOS Dock-style proximity scaling for small controls */
button,
.button,
.nav-action,
.filter-button,
.project-link {
  --dock-scale: 1;
  --dock-lift: 0px;
  animation: none !important;
  filter: none !important;
  transform: translate3d(0, var(--dock-lift), 0) scale(var(--dock-scale)) !important;
  transform-origin: center center !important;
  transition:
    transform 70ms cubic-bezier(0.16, 1, 0.3, 1),
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease !important;
  will-change: transform;
}

body button:hover,
body button:focus-visible,
body .button:hover,
body .button:focus-visible,
body .nav-action:hover,
body .nav-action:focus-visible,
body .filter-button:hover,
body .filter-button:focus-visible,
body .project-link:hover,
body .project-link:focus-visible,
body button.is-bouncy-hover,
body .button.is-bouncy-hover,
body .nav-action.is-bouncy-hover,
body .filter-button.is-bouncy-hover,
body .project-link.is-bouncy-hover,
body button.is-bouncy-enter,
body .button.is-bouncy-enter,
body .nav-action.is-bouncy-enter,
body .filter-button.is-bouncy-enter,
body .project-link.is-bouncy-enter,
body button.is-bouncy-leave,
body .button.is-bouncy-leave,
body .nav-action.is-bouncy-leave,
body .filter-button.is-bouncy-leave,
body .project-link.is-bouncy-leave,
body button.is-dock-active,
body .button.is-dock-active,
body .nav-action.is-dock-active,
body .filter-button.is-dock-active,
body .project-link.is-dock-active {
  animation: none !important;
  filter: none !important;
  transform: translate3d(0, var(--dock-lift), 0) scale(var(--dock-scale)) !important;
}

body button:active,
body .button:active,
body .nav-action:active,
body .filter-button:active,
body .project-link:active {
  animation: none !important;
  transform: translate3d(0, var(--dock-lift), 0) scale(0.94) !important;
}

@media (prefers-reduced-motion: reduce) {
  button,
  .button,
  .nav-action,
  .filter-button,
  .project-link {
    --dock-scale: 1 !important;
    --dock-lift: 0px !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Gallery should float directly on the page background */
.project-card-gallery,
.project-card-gallery:hover,
.project-card-gallery:focus-visible {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.project-card-gallery .project-body {
  padding-inline: 0;
}

.project-media-gallery {
  background: transparent !important;
  backdrop-filter: none !important;
  padding: 0;
}

.pinterest-pin {
  background: transparent !important;
  box-shadow: none;
}

/* Process gallery for fashion pattern work */
.project-card-gallery-process {
  grid-column: 1 / -1;
}

.project-media-gallery-process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  columns: initial;
}

.project-media-gallery-process .pinterest-pin {
  margin: 0;
  break-inside: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.16);
}

.project-media-gallery-process .pinterest-pin::after {
  content: none;
}

.project-media-gallery-process .pinterest-pin img,
.project-media-gallery-process .pinterest-pin video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media-gallery-process .pinterest-pin video {
  border: 0;
  border-radius: inherit;
  background: #050507;
}

.project-media-gallery-process .pinterest-pin figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
  background: rgba(5, 5, 7, 0.34);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 520;
  line-height: 1;
  backdrop-filter: blur(16px) saturate(1.18);
}

.project-media-gallery-process .pinterest-pin-portrait {
  max-width: 520px;
  justify-self: center;
  aspect-ratio: 0.78;
}

@media (min-width: 620px) {
  .project-media-gallery-process {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .project-media-gallery-process .pinterest-pin-process {
    grid-column: span 6;
    aspect-ratio: 3 / 2;
  }

  .project-media-gallery-process .pinterest-pin-wide {
    grid-column: 1 / -1;
  }

  .project-media-gallery-process .pinterest-pin-banner {
    grid-column: span 8;
    align-self: start;
    aspect-ratio: auto;
    background: #fff !important;
  }

  .project-media-gallery-process .pinterest-pin-feature {
    grid-column: span 6;
  }

  .project-media-gallery-process .pinterest-pin-support {
    grid-column: span 6;
  }

  .project-media-gallery-process .pinterest-pin-video {
    grid-column: span 6;
  }

  .project-media-gallery-process .pinterest-pin-video-large {
    grid-column: 7 / -1;
    aspect-ratio: 2 / 3;
    justify-self: stretch;
    width: 100%;
  }

  .project-media-gallery-process .pinterest-pin-portrait {
    grid-column: span 4;
    aspect-ratio: 0.78;
  }
}

.project-media-gallery-process .pinterest-pin-video {
  background: transparent !important;
}

.project-media-gallery-process .pinterest-pin-banner img {
  height: auto;
  object-fit: contain;
  background: #fff;
}

.project-media-gallery-process .pinterest-pin-video video {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}

.project-media-gallery-process .pinterest-pin-video-large video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: transparent !important;
}

/* Physical garment boards */
.project-card-gallery-physical {
  grid-column: 1 / -1;
}

.project-media-gallery-physical {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.project-media-gallery-physical .pinterest-pin {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #fff !important;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.15);
}

.project-media-gallery-physical .pinterest-pin::after {
  content: none;
}

.project-media-gallery-physical .pinterest-pin img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

/* AI outfit lookbook layout */
.project-card-gallery-lookbook {
  grid-column: 1 / -1;
}

.project-media-gallery-lookbook {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  columns: initial;
  max-width: 980px;
  margin: 0 auto;
}

.project-media-gallery-lookbook .pinterest-pin {
  margin: 0;
  break-inside: auto;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.14);
}

.project-media-gallery-lookbook .pinterest-pin::after {
  content: none;
}

.project-media-gallery-lookbook .pinterest-pin img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media-gallery-lookbook .pinterest-pin-outfit {
  width: min(440px, 100%);
  justify-self: center;
}

.project-media-gallery-lookbook .pinterest-pin-outfit img {
  height: auto;
  object-fit: contain;
  background: #fff;
}

@media (min-width: 700px) {
  .project-media-gallery-lookbook {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-media-gallery-lookbook .pinterest-pin-outfit {
    grid-column: 1 / -1;
  }
}

/* Model swap layout */
.project-card-gallery-model-swap {
  grid-column: 1 / -1;
}

.project-media-gallery-model-swap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100vw - 24px, 1180px);
  max-width: none;
  margin: 0 auto;
}

.project-media-gallery-model-swap .pinterest-pin {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(248, 250, 246, 0.88) !important;
  box-shadow: 0 16px 54px rgba(0, 0, 0, 0.16);
}

.project-media-gallery-model-swap .pinterest-pin::after {
  content: none;
}

.project-media-gallery-model-swap .pinterest-pin img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-media-gallery-model-swap .pinterest-pin-base {
  grid-column: 1 / -1;
  width: min(220px, 52%);
  justify-self: center;
  background: #f4f7f8 !important;
}

.project-media-gallery-model-swap .pinterest-pin-source,
.project-media-gallery-model-swap .pinterest-pin-result {
  padding: 6px;
}

.project-media-gallery-model-swap .pinterest-pin-result {
  background: rgba(245, 244, 237, 0.94) !important;
}

.project-media-gallery-model-swap .pinterest-pin-base img {
  height: auto;
  object-fit: contain;
}

@media (min-width: 760px) {
  .project-media-gallery-model-swap {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .project-media-gallery-model-swap .pinterest-pin:not(.pinterest-pin-base) {
    aspect-ratio: 3 / 5;
  }
}

/* Shoe remix layout */
.project-card-gallery-shoe-remix {
  grid-column: 1 / -1;
}

.project-media-gallery-shoe-remix {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 1.4vw, 18px);
  width: min(100vw - 24px, 1180px);
  max-width: none;
  margin: 0 auto;
}

.project-media-gallery-shoe-remix .pinterest-pin {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(248, 250, 246, 0.94);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
}

.project-media-gallery-shoe-remix .pinterest-pin::after {
  content: none;
}

.project-media-gallery-shoe-remix .pinterest-pin img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 760px) {
  .project-media-gallery-shoe-remix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Final hero overflow guard: keep animated color layers from flashing at viewport edges */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

main,
.hero {
  max-width: 100%;
  overflow-x: clip;
}

main .hero {
  overflow: hidden !important;
  isolation: isolate;
  contain: paint;
}

main .hero-backdrop,
main .hero::before,
main .hero::after {
  pointer-events: none;
  backface-visibility: hidden;
}

main .hero-backdrop {
  inset: -24% !important;
  width: auto !important;
  max-width: none !important;
  background-image:
    radial-gradient(circle at 86% 82%, rgba(0, 238, 210, 0.76), transparent 42%),
    radial-gradient(circle at 70% 58%, rgba(94, 225, 128, 0.52), transparent 46%),
    radial-gradient(circle at 80% 14%, rgba(255, 189, 36, 0.66), transparent 38%),
    radial-gradient(circle at 46% 28%, rgba(255, 116, 70, 0.46), transparent 44%),
    radial-gradient(circle at 18% 72%, rgba(241, 54, 148, 0.72), transparent 48%),
    radial-gradient(circle at 20% 18%, rgba(48, 55, 210, 0.7), transparent 52%),
    radial-gradient(circle at 58% 66%, rgba(165, 118, 255, 0.42), transparent 50%),
    linear-gradient(#050507, #050507) !important;
  background-position: 86% 82%, 70% 58%, 80% 14%, 46% 28%, 18% 72%, 20% 18%, 58% 66%, center;
  background-size: 138% 138%, 132% 132%, 142% 142%, 148% 148%, 154% 154%, 160% 160%, 144% 144%, auto;
  background-repeat: no-repeat !important;
  transform: none !important;
  animation: safeHeroColorPush 4.1s cubic-bezier(0.42, 0, 0.16, 1) infinite !important;
  will-change: background-position, background-size, filter;
}

main .hero::before {
  inset: -24% !important;
  background:
    radial-gradient(circle at 20% 28%, rgba(255, 255, 255, 0.16), transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(0, 238, 210, 0.18), transparent 38%) !important;
  background-position: 20% 28%, 78% 72%;
  background-size: 132% 132%, 140% 140%;
  background-repeat: no-repeat !important;
  transform: none !important;
  animation: safeHeroGlow 3.8s cubic-bezier(0.42, 0, 0.16, 1) infinite !important;
}

main .hero::after {
  inset: auto 0 0 !important;
  height: 34% !important;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0), rgba(5, 5, 7, 0.28) 76%, rgba(5, 5, 7, 0.36)) !important;
  transform: none !important;
  animation: none !important;
}

/* Remove animated edge/grid lines that read as flickering borders */
body::before {
  display: none !important;
  content: none !important;
  animation: none !important;
  background: transparent;
}

body::after {
  display: none !important;
  content: none !important;
  inset: -28% !important;
  width: auto !important;
  max-width: none !important;
  animation: none !important;
  background: transparent;
}

/* Site-wide chromatic ambience, kept separate from the hero to avoid edge flicker */
body::before,
body::after {
  content: "" !important;
  display: block !important;
  position: fixed !important;
  pointer-events: none !important;
  transform: none !important;
}

body::before {
  inset: 0 !important;
  z-index: 0 !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(83, 76, 255, 0.26), transparent 42%),
    radial-gradient(circle at 88% 70%, rgba(0, 238, 210, 0.2), transparent 44%),
    linear-gradient(135deg, rgba(241, 54, 148, 0.22), rgba(5, 5, 7, 0.34) 42%, rgba(94, 225, 128, 0.2) 74%, rgba(255, 184, 44, 0.14)),
    #050507 !important;
  animation: none !important;
}

body::after {
  inset: -22% !important;
  z-index: 0 !important;
  width: auto !important;
  max-width: none !important;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(83, 76, 255, 0.5), transparent 34%),
    radial-gradient(circle at 84% 28%, rgba(255, 184, 44, 0.42), transparent 36%),
    radial-gradient(circle at 78% 72%, rgba(0, 238, 210, 0.42), transparent 38%),
    radial-gradient(circle at 24% 78%, rgba(241, 54, 148, 0.34), transparent 42%),
    radial-gradient(circle at 52% 52%, rgba(94, 225, 128, 0.18), transparent 48%) !important;
  background-position: 18% 18%, 84% 28%, 78% 72%, 24% 78%, 52% 52%;
  background-size: 1120px 1120px, 980px 980px, 1180px 1180px, 1080px 1080px, 1380px 1380px;
  background-repeat: no-repeat !important;
  filter: blur(30px) saturate(1.24);
  opacity: 0.9 !important;
  animation: siteChromaticBreath 8s cubic-bezier(0.42, 0, 0.16, 1) infinite !important;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

@keyframes safeHeroColorPush {
  0%,
  100% {
    background-position: 86% 82%, 70% 58%, 80% 14%, 46% 28%, 18% 72%, 20% 18%, 58% 66%, center;
    background-size: 138% 138%, 132% 132%, 142% 142%, 148% 148%, 154% 154%, 160% 160%, 144% 144%, auto;
    filter: saturate(1.12) brightness(1.02);
  }

  34% {
    background-position: 74% 70%, 62% 66%, 68% 20%, 54% 34%, 26% 64%, 28% 22%, 46% 74%, center;
    background-size: 158% 158%, 124% 124%, 150% 150%, 136% 136%, 138% 138%, 172% 172%, 128% 128%, auto;
    filter: saturate(1.36) brightness(1.1);
  }

  68% {
    background-position: 88% 86%, 76% 62%, 86% 20%, 58% 42%, 12% 78%, 16% 12%, 68% 54%, center;
    background-size: 128% 128%, 154% 154%, 132% 132%, 164% 164%, 174% 174%, 130% 130%, 156% 156%, auto;
    filter: saturate(1.32) brightness(1.08);
  }
}

@keyframes siteChromaticBreath {
  0%,
  100% {
    background-position: 18% 18%, 84% 28%, 78% 72%, 24% 78%, 52% 52%;
    background-size: 1120px 1120px, 980px 980px, 1180px 1180px, 1080px 1080px, 1380px 1380px;
    filter: blur(28px) saturate(1.12);
  }

  42% {
    background-position: 24% 24%, 76% 18%, 70% 68%, 32% 72%, 48% 58%;
    background-size: 1320px 1320px, 820px 820px, 980px 980px, 1280px 1280px, 1120px 1120px;
    filter: blur(30px) saturate(1.32);
  }

  72% {
    background-position: 14% 30%, 88% 34%, 84% 78%, 18% 66%, 58% 48%;
    background-size: 900px 900px, 1180px 1180px, 1360px 1360px, 940px 940px, 1260px 1260px;
    filter: blur(28px) saturate(1.26);
  }
}

@keyframes safeHeroGlow {
  0%,
  100% {
    background-position: 20% 28%, 78% 72%;
    background-size: 132% 132%, 140% 140%;
    opacity: 0.68;
  }

  50% {
    background-position: 26% 32%, 72% 66%;
    background-size: 148% 148%, 158% 158%;
    opacity: 0.86;
  }
}
