:root {
  --background: #05080d;
  --foreground: #f7fbff;
  --muted: rgba(234, 240, 246, 0.78);
  --light-surface: #d7dbe0;
  --light-foreground: #13161b;
  --light-muted: rgba(19, 22, 27, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scrollbar-width: none;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: "Manrope", sans-serif;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 0.32rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(10, 12, 16, 0.74),
    rgba(10, 12, 16, 0.58)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 38px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  width: 100%;
  margin: 0;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.topbar-brand img {
  display: block;
  width: min(9.6rem, 26vw);
  height: auto;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: rgba(239, 244, 249, 0.8);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.topbar-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateY(-1px);
}

.topbar-nav a.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.site-page {
  position: relative;
}

#top,
#project,
#identity,
#contact {
  scroll-margin-top: 5.5rem;
}

.hero-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-background,
.hero-overlay,
.page-load-blur,
.cursor-blur,
.bottom-blur-bar {
  position: absolute;
  inset: 0;
}

.hero-background {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.1), transparent 26%),
    url("./hero-background.jpg") center center / cover no-repeat;
  transform: scale(1.08);
  filter: blur(18px);
  animation: background-resolve 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(5, 8, 13, 0.28), rgba(5, 8, 13, 0.72)),
    radial-gradient(circle at 50% 50%, rgba(10, 16, 24, 0.06), rgba(5, 8, 13, 0.5));
}

.page-load-blur {
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(24px) saturate(115%);
  -webkit-backdrop-filter: blur(24px) saturate(115%);
  opacity: 1;
  animation: load-blur-fade 1.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cursor-blur {
  pointer-events: none;
  z-index: 2;
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  opacity: 0;
  transition: opacity 180ms ease;
  mask-image: radial-gradient(
    circle 16rem at var(--cursor-x, 50%) var(--cursor-y, 50%),
    rgba(0, 0, 0, 1) 0,
    rgba(0, 0, 0, 0.96) 22%,
    rgba(0, 0, 0, 0.78) 40%,
    rgba(0, 0, 0, 0.46) 58%,
    rgba(0, 0, 0, 0.18) 74%,
    transparent 90%
  );
  -webkit-mask-image: radial-gradient(
    circle 16rem at var(--cursor-x, 50%) var(--cursor-y, 50%),
    rgba(0, 0, 0, 1) 0,
    rgba(0, 0, 0, 0.96) 22%,
    rgba(0, 0, 0, 0.78) 40%,
    rgba(0, 0, 0, 0.46) 58%,
    rgba(0, 0, 0, 0.18) 74%,
    transparent 90%
  );
}

.cursor-blur.is-active {
  opacity: 1;
}

.bottom-blur-bar {
  inset: auto 0 0 0;
  z-index: 2;
  height: clamp(7rem, 14vw, 11rem);
  pointer-events: none;
  backdrop-filter: blur(24px) saturate(105%);
  -webkit-backdrop-filter: blur(24px) saturate(105%);
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(3, 5, 9, 0.18) 22%,
      rgba(7, 10, 14, 0.4) 48%,
      rgba(12, 15, 20, 0.68) 76%,
      rgba(17, 20, 25, 0.9) 100%
    );
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.18);
}

.hero-content {
  position: relative;
  z-index: 4;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 7rem 2rem 2rem;
  text-align: center;
}

.hero-logo {
  display: block;
  width: min(78rem, 88vw);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  filter:
    drop-shadow(0 0.15rem 1rem rgba(0, 0, 0, 0.28))
    drop-shadow(0 0.45rem 2.8rem rgba(0, 0, 0, 0.28));
  animation: hero-copy-enter 1.2s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-content p {
  width: min(44rem, 92vw);
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.8;
  text-wrap: balance;
  text-shadow: 0 0.15rem 0.8rem rgba(0, 0, 0, 0.26);
  animation: hero-copy-enter 1.25s 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.next-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 150vh;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(
    180deg,
    #12151a 0%,
    #171a1f 72%,
    #22262d 82%,
    #4a5059 90%,
    #98a0aa 97%,
    #d7dbe0 100%
  );
}

.next-section::before,
.next-section::after,
.light-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.next-section::before {
  top: 0;
  height: clamp(9rem, 16vw, 14rem);
  background:
    linear-gradient(
      180deg,
      rgba(17, 20, 25, 0.88) 0%,
      rgba(17, 20, 25, 0.34) 48%,
      rgba(17, 20, 25, 0) 100%
    );
  filter: blur(34px);
  opacity: 0.95;
}

.next-section::after {
  bottom: 0;
  height: clamp(14rem, 22vw, 20rem);
  background:
    linear-gradient(
      180deg,
      rgba(215, 219, 224, 0) 0%,
      rgba(215, 219, 224, 0.12) 18%,
      rgba(215, 219, 224, 0.38) 48%,
      rgba(215, 219, 224, 0.72) 76%,
      rgba(215, 219, 224, 0.94) 100%
    );
  filter: blur(54px);
}

.project-shell,
.identity-shell {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.project-eyebrow,
.identity-eyebrow,
.identity-card h3,
.project-card__number {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-shell {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.95fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

.project-copy {
  width: min(52rem, 100%);
}

.project-eyebrow {
  display: inline-block;
  color: rgba(234, 240, 246, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-copy h2 {
  margin: 0.9rem 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.7rem, 5.6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.project-intro {
  width: min(40rem, 100%);
  margin: 1.2rem 0 0;
  color: rgba(244, 248, 252, 0.9);
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  font-weight: 600;
  line-height: 1.85;
}

.project-summary {
  width: min(48rem, 100%);
  margin: 1rem 0 0;
  color: rgba(234, 240, 246, 0.72);
  line-height: 1.9;
}

.project-showcase {
  display: flex;
  justify-content: flex-end;
}

.project-showcase__frame {
  position: relative;
  width: min(34rem, 100%);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 20% 20%, rgba(240, 246, 252, 0.18), transparent 26%),
    radial-gradient(circle at 78% 24%, rgba(146, 170, 192, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(34, 39, 46, 0.94), rgba(15, 18, 24, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 28px 70px rgba(0, 0, 0, 0.18);
  transition:
    transform 280ms ease,
    box-shadow 280ms ease,
    border-color 280ms ease;
}

.project-showcase__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-showcase__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 24%, rgba(0, 0, 0, 0.18) 100%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 22px
    );
}

.project-showcase__frame:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 34px 84px rgba(0, 0, 0, 0.24);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.35rem;
}

.project-card {
  padding: 1.35rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1),
    rgba(17, 21, 27, 0.34)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 48px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.project-card__number {
  display: inline-block;
  color: rgba(234, 240, 246, 0.58);
  font-size: 0.72rem;
  font-weight: 800;
}

.project-card h3 {
  margin: 0.9rem 0 0;
  color: rgba(245, 249, 252, 0.98);
  font-family: "Sora", sans-serif;
  font-size: 1.08rem;
}

.project-card p {
  margin: 0.85rem 0 0;
  color: rgba(234, 240, 246, 0.7);
  line-height: 1.8;
}

.project-card:hover,
.identity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 26px 60px rgba(0, 0, 0, 0.18);
}

.identity-eyebrow {
  display: inline-block;
  color: rgba(234, 240, 246, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
}

.identity-shell {
  position: relative;
  z-index: 1;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.identity-shell h2 {
  width: min(16ch, 100%);
  margin: 1rem 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.identity-intro {
  width: min(42rem, 100%);
  margin: 1.35rem 0 0;
  color: rgba(234, 240, 246, 0.76);
  font-size: 1.02rem;
  line-height: 1.85;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.identity-card {
  padding: 1.35rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(16, 20, 26, 0.28)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 48px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.identity-card h3 {
  margin: 0;
  color: rgba(245, 249, 252, 0.96);
  font-size: 0.78rem;
  font-weight: 800;
}

.identity-card p {
  margin: 0.95rem 0 0;
  color: rgba(234, 240, 246, 0.72);
  line-height: 1.75;
}

.light-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  background: linear-gradient(180deg, #d7dbe0 0%, #d1d5da 22%, #c7ccd2 100%);
  color: var(--light-foreground);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 4vw, 3rem);
}

.light-section::before {
  top: 0;
  height: clamp(10rem, 16vw, 14rem);
  background:
    linear-gradient(
      180deg,
      rgba(247, 249, 252, 0.42) 0%,
      rgba(247, 249, 252, 0.18) 36%,
      rgba(247, 249, 252, 0) 100%
    );
  filter: blur(28px);
  opacity: 0.82;
}

.contact-shell {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-copy {
  padding-top: 0.6rem;
}

.contact-eyebrow,
.contact-direct__label,
.field span,
.contact-submit,
.contact-note {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-eyebrow {
  display: inline-block;
  color: rgba(19, 22, 27, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-copy h2 {
  margin: 1rem 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.contact-copy > p,
.contact-direct p,
.contact-note {
  color: var(--light-muted);
  line-height: 1.8;
}

.contact-copy > p {
  margin: 1.25rem 0 0;
  font-size: 1.02rem;
}

.contact-direct {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(19, 22, 27, 0.12);
}

.contact-direct__label {
  display: block;
  color: rgba(19, 22, 27, 0.5);
  font-size: 0.72rem;
  font-weight: 800;
}

.contact-direct a {
  display: inline-block;
  margin-top: 0.55rem;
  color: #12161c;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  text-decoration: none;
}

.contact-direct a:hover {
  opacity: 0.76;
}

.contact-form {
  padding: clamp(1.2rem, 3vw, 1.75rem);
  border-radius: 1.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(240, 243, 247, 0.84));
  border: 1px solid rgba(19, 22, 27, 0.08);
  box-shadow:
    0 26px 70px rgba(26, 31, 38, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 280ms ease,
    box-shadow 280ms ease;
}

.contact-form:hover {
  transform: translateY(-3px);
  box-shadow:
    0 30px 80px rgba(26, 31, 38, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

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

.field {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.field:first-child,
.field-grid .field {
  margin-top: 0;
}

.field span {
  color: rgba(19, 22, 27, 0.58);
  font-size: 0.72rem;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(19, 22, 27, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.74);
  color: #12161c;
  font: inherit;
  padding: 1rem 1.05rem;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 10rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(19, 22, 27, 0.42);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(19, 22, 27, 0.34);
  box-shadow: 0 0 0 4px rgba(19, 22, 27, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.contact-submit {
  border: 0;
  border-radius: 999px;
  background: #13161b;
  color: #f7fbff;
  min-height: 3.6rem;
  padding: 0.95rem 1.4rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    box-shadow 160ms ease;
  box-shadow: 0 16px 34px rgba(19, 22, 27, 0.2);
}

.contact-submit:hover {
  transform: translateY(-2px);
  opacity: 0.96;
}

.contact-direct-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(19, 22, 27, 0.14);
  color: #13161b;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.54);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.contact-direct-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(19, 22, 27, 0.2);
}

.site-footer {
  position: relative;
  color: rgba(230, 237, 244, 0.8);
  background: linear-gradient(180deg, #0d1015 0%, #080a0e 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__inner {
  width: calc(100% - 3rem);
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(14rem, 1fr) minmax(18rem, 1.1fr);
  gap: 4rem;
  padding: 2.4rem 0 2rem;
  align-items: start;
}

.site-footer__eyebrow,
.site-footer__label {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 249, 252, 0.64);
}

.site-footer__brand strong {
  display: block;
  margin-top: 0.9rem;
  color: rgba(245, 249, 252, 0.96);
  font-family: "Sora", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.site-footer__column {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.site-footer__nav {
  display: grid;
  gap: 0.65rem;
}

.site-footer__nav a,
.site-footer__contact a {
  color: rgba(230, 237, 244, 0.72);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer__nav a:hover,
.site-footer__contact a:hover {
  color: #ffffff;
}

.site-footer__contact a {
  display: inline-block;
  color: rgba(245, 249, 252, 0.94);
  font-weight: 700;
}

.site-footer__contact p {
  margin: 0;
  color: rgba(230, 237, 244, 0.58);
  line-height: 1.75;
}

.site-footer__bottom {
  width: calc(100% - 3rem);
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__bottom p {
  margin: 0;
  color: rgba(230, 237, 244, 0.5);
  font-size: 0.84rem;
}

.reveal-block,
.reveal-item {
  opacity: 0;
  transform: translateY(2rem);
  filter: blur(16px);
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-block.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.project-card:nth-child(1),
.identity-card:nth-child(1) {
  transition-delay: 70ms;
}

.project-card:nth-child(2),
.identity-card:nth-child(2),
.contact-form.reveal-item {
  transition-delay: 150ms;
}

.project-card:nth-child(3),
.identity-card:nth-child(3) {
  transition-delay: 230ms;
}

.scroll-pill {
  position: fixed;
  top: 0;
  right: 1rem;
  z-index: 20;
  width: 0.5rem;
  height: 7rem;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(236, 243, 250, 0.24) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transform: translate3d(0, 0, 0);
  transition:
    opacity 220ms ease,
    right 220ms ease,
    height 220ms ease;
}

.scroll-pill.is-visible {
  opacity: 0.92;
}

body:hover .scroll-pill,
body:focus-within .scroll-pill {
  right: 1.15rem;
}

@keyframes load-blur-fade {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes background-resolve {
  from {
    filter: blur(18px);
    transform: scale(1.12);
  }

  to {
    filter: blur(0);
    transform: scale(1.08);
  }
}

@keyframes hero-copy-enter {
  from {
    opacity: 0;
    transform: translateY(1rem);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 0.28rem 0.65rem;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-brand,
  .topbar-nav {
    justify-content: center;
  }

  .hero-logo {
    width: min(92vw, 38rem);
  }

  .cursor-blur {
    mask-image: radial-gradient(
      circle 11rem at var(--cursor-x, 50%) var(--cursor-y, 50%),
      rgba(0, 0, 0, 1) 0,
      rgba(0, 0, 0, 0.96) 24%,
      rgba(0, 0, 0, 0.76) 42%,
      rgba(0, 0, 0, 0.42) 60%,
      rgba(0, 0, 0, 0.16) 76%,
      transparent 90%
    );
    -webkit-mask-image: radial-gradient(
      circle 11rem at var(--cursor-x, 50%) var(--cursor-y, 50%),
      rgba(0, 0, 0, 1) 0,
      rgba(0, 0, 0, 0.96) 24%,
      rgba(0, 0, 0, 0.76) 42%,
      rgba(0, 0, 0, 0.42) 60%,
      rgba(0, 0, 0, 0.16) 76%,
      transparent 90%
    );
  }

  .field-grid,
  .contact-shell,
  .project-hero,
  .project-grid,
  .identity-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .project-showcase {
    justify-content: stretch;
  }

  .project-showcase__frame {
    width: 100%;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-submit,
  .contact-direct-button {
    width: 100%;
  }

  .site-footer__inner {
    gap: 1.3rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .hero-background,
  .page-load-blur,
  .hero-logo,
  .hero-content p {
    animation: none;
  }

  .cursor-blur {
    display: none;
  }

  .scroll-pill {
    transition: none;
  }

  .reveal-block,
  .reveal-item {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .project-showcase__frame,
  .project-card,
  .identity-card,
  .contact-form,
  .topbar-nav a {
    transition: none;
  }
}
