:root {
  color-scheme: dark;
  --bg: #090b10;
  --bg-elevated: #0e1118;
  --surface: #121620;
  --surface-soft: #171c27;
  --text: #f2f0e9;
  --muted: #959aa7;
  --muted-strong: #b7bbc5;
  --line: rgba(242, 240, 233, 0.12);
  --line-strong: rgba(242, 240, 233, 0.22);
  --accent: #d8ff5f;
  --accent-strong: #bceb32;
  --accent-ink: #10130a;
  --violet: #9f8cff;
  --blue: #64b8ff;
  --danger: #ff7b7b;
  --success: #80e6a3;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --page-padding: clamp(1.25rem, 4vw, 4.5rem);
  --max-width: 1440px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eeeae0;
  --bg-elevated: #f5f2ea;
  --surface: #f9f7f1;
  --surface-soft: #e7e2d7;
  --text: #111319;
  --muted: #666b74;
  --muted-strong: #464b54;
  --line: rgba(17, 19, 25, 0.12);
  --line-strong: rgba(17, 19, 25, 0.24);
  --accent: #bfe83e;
  --accent-strong: #a7d126;
  --accent-ink: #121608;
  --shadow: 0 30px 80px rgba(68, 61, 48, 0.14);
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color 500ms var(--ease-smooth),
    color 500ms var(--ease-smooth);
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

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

button {
  border: 0;
}

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

ul {
  list-style: none;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1100;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(216, 255, 95, 0.55);
  transform: scaleX(0);
  transform-origin: left;
}

.section-shell {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: var(--page-padding);
}

.eyebrow,
.mono-label,
.section-kicker,
.project-topline,
.project-status,
.filter-button,
.scroll-cue,
.profile-index {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--muted-strong);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 1rem var(--page-padding);
  transition:
    transform 450ms var(--ease-out),
    padding 350ms var(--ease-out);
}

.site-header.is-hidden {
  transform: translateY(-120%);
}

.site-header.is-scrolled {
  padding-top: 0.65rem;
}

.nav-shell {
  width: min(100%, calc(var(--max-width) - (var(--page-padding) * 2)));
  min-height: 68px;
  margin-inline: auto;
  padding: 0.6rem 0.7rem 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid transparent;
  border-radius: 18px;
  transition:
    min-height 350ms var(--ease-out),
    background-color 350ms ease,
    border-color 350ms ease,
    box-shadow 350ms ease;
}

.site-header.is-scrolled .nav-shell {
  min-height: 60px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(20px) saturate(130%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 50%;
  font-family: "DM Mono", monospace;
  font-size: 0.77rem;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-copy strong {
  font-size: 0.83rem;
  font-weight: 700;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.66rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2.2rem);
}

.nav-links a {
  position: relative;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 250ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 350ms var(--ease-out);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.language-switch {
  display: flex;
  align-items: center;
  padding: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-button {
  min-width: 35px;
  padding: 0.4rem 0.55rem;
  background: transparent;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  transition:
    color 250ms ease,
    background-color 250ms ease;
}

.lang-button.is-active {
  background: var(--text);
  color: var(--bg);
}

.icon-button,
.menu-toggle {
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.icon-button {
  width: 42px;
  height: 42px;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.moon-icon,
html[data-theme="light"] .sun-icon {
  display: none;
}

html[data-theme="light"] .moon-icon {
  display: block;
}

.menu-toggle {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
}

.menu-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 1px;
  background: var(--text);
  transition: transform 300ms var(--ease-out);
}

.menu-toggle span:first-child {
  transform: translate(-50%, -4px);
}

.menu-toggle span:last-child {
  transform: translate(-50%, 3px);
}

.menu-toggle.is-active span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle.is-active span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: clamp(9.5rem, 15vh, 12rem);
  padding-bottom: clamp(5rem, 10vh, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.52fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
  overflow: clip;
  contain: paint;
}

.hero::after {
  content: "";
  position: absolute;
  right: var(--page-padding);
  bottom: 0;
  left: var(--page-padding);
  height: 1px;
  background: var(--line);
}

.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero-orb-one {
  top: 13%;
  left: 42%;
  width: clamp(180px, 28vw, 440px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(159, 140, 255, 0.15), transparent 68%);
  animation: orbFloat 9s ease-in-out infinite alternate;
}

.hero-orb-two {
  right: -8%;
  bottom: 8%;
  width: clamp(220px, 32vw, 520px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(216, 255, 95, 0.1), transparent 68%);
  animation: orbFloat 12s ease-in-out 1s infinite alternate-reverse;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-copy > .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(216, 255, 95, 0.1);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero-title {
  max-width: 980px;
  font-size: clamp(3.2rem, 7.25vw, 7.9rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.91;
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-line > span {
  display: block;
  transform: translateY(115%);
  transition: transform 1s var(--ease-out);
}

.title-line:nth-child(2) > span {
  transition-delay: 80ms;
}

.title-line:nth-child(3) > span {
  transition-delay: 160ms;
}

body.is-ready .title-line > span {
  transform: translateY(0);
}

.title-line-accent {
  color: var(--accent);
  font-weight: 500;
}

.hero-description {
  max-width: 680px;
  margin-top: clamp(1.6rem, 3vw, 2.6rem);
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.75;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.button {
  min-height: 54px;
  padding: 0.9rem 1.2rem 0.9rem 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition:
    background-color 300ms ease,
    border-color 300ms ease,
    color 300ms ease,
    box-shadow 300ms ease;
  will-change: transform;
}

.button svg,
.text-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 350ms var(--ease-out);
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 rgba(216, 255, 95, 0);
}

.button-primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 13px 35px rgba(184, 231, 49, 0.18);
}

.button-primary:hover svg {
  transform: translateX(4px);
}

.button-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.button-ghost:hover {
  background: var(--surface);
  border-color: var(--text);
}

.button-ghost:hover svg,
.text-link:hover svg {
  transform: translate(3px, -3px);
}

.hero-profile {
  width: min(100%, 390px);
  min-width: 0;
  justify-self: end;
}

.profile-frame {
  position: relative;
  padding: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transform:
    perspective(1000px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
  transition:
    transform 180ms ease-out,
    background-color 500ms ease;
  transform-style: preserve-3d;
}

.profile-image-wrap {
  position: relative;
  aspect-ratio: 0.89;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 8px);
}

.profile-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(9, 11, 16, 0.48), transparent 42%),
    linear-gradient(125deg, transparent 60%, rgba(216, 255, 95, 0.1));
  pointer-events: none;
}

.profile-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.03);
  transform: scale(1.015);
  transition: transform 900ms var(--ease-out);
}

.profile-frame:hover img {
  transform: scale(1.055);
}

.profile-scan {
  position: absolute;
  inset: -25% 0 auto;
  z-index: 1;
  height: 25%;
  background: linear-gradient(to bottom, transparent, rgba(216, 255, 95, 0.12), transparent);
  animation: scan 6s linear infinite;
}

.profile-meta {
  padding: 1rem 0.75rem 0.55rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.profile-meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mono-label {
  color: var(--muted);
  font-size: 0.58rem;
}

.profile-meta strong {
  font-size: 0.88rem;
  font-weight: 600;
}

.profile-index {
  color: var(--muted);
}

.hero-facts {
  margin-top: 1rem;
  padding-inline: 0.6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hero-facts > div {
  display: flex;
  flex-direction: column;
}

.hero-facts strong {
  font-family: "DM Mono", monospace;
  font-size: 0.86rem;
  font-weight: 500;
}

.hero-facts span {
  color: var(--muted);
  font-size: 0.68rem;
}

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: var(--page-padding);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
}

.scroll-cue i {
  position: relative;
  width: 50px;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: lineTravel 2.4s var(--ease-smooth) infinite;
}

.hero-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 900ms 450ms var(--ease-out),
    transform 900ms 450ms var(--ease-out);
}

body.is-ready .hero-reveal {
  opacity: 1;
  transform: translateY(0);
}

.hero-profile.hero-reveal {
  transition-delay: 650ms;
}

.about,
.expertise,
.projects,
.contact {
  padding-top: clamp(6rem, 12vw, 11rem);
  padding-bottom: clamp(6rem, 12vw, 11rem);
}

.section-kicker {
  margin-bottom: clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 45px 1fr;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
}

.section-kicker::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  height: 1px;
  margin-left: 10rem;
  background: var(--line);
}

.section-kicker p {
  grid-column: 2;
  grid-row: 1;
}

.section-kicker span {
  color: var(--accent);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(3rem, 8vw, 9rem);
}

.about-heading .eyebrow,
.section-heading .eyebrow,
.contact-copy .eyebrow {
  margin-bottom: 1.3rem;
}

.about-heading h2,
.section-heading h2,
.contact-copy h2 {
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1.03;
}

.about-body {
  align-self: end;
}

.about-body > p {
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.85;
}

.about-body > p + p {
  margin-top: 1.25rem;
}

.about-signature {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.signature-line {
  width: 45px;
  height: 1px;
  background: var(--accent);
}

.expertise {
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.4fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 8rem);
}

.section-heading > p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

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

.expertise-card {
  position: relative;
  min-height: 410px;
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transform:
    perspective(1000px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
  transition:
    transform 180ms ease-out,
    border-color 350ms ease,
    background-color 500ms ease;
  transform-style: preserve-3d;
}

.expertise-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -45% 20%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(216, 255, 95, 0.09), transparent 65%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 450ms ease;
}

.expertise-card:hover {
  border-color: var(--line-strong);
}

.expertise-card:hover::before {
  opacity: 1;
}

.card-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
}

.expertise-icon {
  width: 62px;
  height: 62px;
  margin-bottom: auto;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--accent);
  transform: translateZ(25px);
}

.expertise-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.expertise-card h3 {
  margin-top: 2.5rem;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.expertise-card > p {
  max-width: 33ch;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.tag-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.expertise-card .tag-row {
  margin-top: 1.4rem;
}

.tag-row span {
  padding: 0.38rem 0.62rem;
  background: color-mix(in srgb, var(--surface-soft) 75%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
}

.tech-marquee {
  max-width: 100vw;
  padding-block: 1.25rem;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  contain: paint;
}

.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  padding-inline: 1.5rem;
  color: var(--muted-strong);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marquee-track i {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.projects {
  width: min(100%, 1540px);
}

.projects-heading {
  margin-bottom: 2.8rem;
}

.project-toolbar {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.project-filters {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.filter-button {
  padding: 0.75rem 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition:
    background-color 250ms ease,
    border-color 250ms ease,
    color 250ms ease;
}

.filter-button sup {
  color: var(--muted);
  font-size: 0.48rem;
}

.filter-button:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.filter-button.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.filter-button.is-active sup {
  color: currentColor;
  opacity: 0.6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

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

.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    opacity 350ms var(--ease-out),
    transform 450ms var(--ease-out),
    border-color 350ms ease,
    box-shadow 450ms ease,
    background-color 500ms ease;
}

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

.project-card.is-hidden {
  display: none;
}

.project-card.is-filtering {
  opacity: 0;
  transform: scale(0.97);
}

.project-featured,
.project-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.project-wide {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
}

.project-visual {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  isolation: isolate;
}

.project-featured .project-visual,
.project-wide .project-visual {
  min-height: 510px;
}

.project-status {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 5;
  padding: 0.45rem 0.6rem;
  background: rgba(9, 11, 16, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.58rem;
  backdrop-filter: blur(10px);
}

.project-content {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.58rem;
}

.project-content h3 {
  margin-top: 1.2rem;
  font-size: clamp(1.65rem, 3vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.project-content > p {
  max-width: 55ch;
  margin-top: 1.1rem;
  color: var(--muted-strong);
  font-size: 0.9rem;
  line-height: 1.8;
}

.project-highlights {
  margin-top: 1.3rem;
  display: grid;
  gap: 0.55rem;
}

.project-highlights li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.project-highlights li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.project-footer {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.project-link {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--text);
  border-radius: 50%;
  color: var(--bg);
  transition:
    background-color 300ms ease,
    color 300ms ease;
  will-change: transform;
}

.project-link:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.project-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.shadow-visual {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 68% 45%, rgba(216, 255, 95, 0.22), transparent 26%),
    linear-gradient(135deg, #171b22, #050607 72%);
}

.visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.shadow-phone {
  position: relative;
  width: min(39%, 230px);
  min-width: 175px;
  aspect-ratio: 0.53;
  padding: 2.4rem 1.25rem 1.2rem;
  background: #10141d;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  box-shadow:
    0 40px 70px rgba(0, 0, 0, 0.5),
    inset 0 0 0 5px #080a0e;
  transform: rotate(7deg) translateZ(0);
  transition: transform 800ms var(--ease-out);
}

.project-card:hover .shadow-phone {
  transform: rotate(2deg) translateY(-6px);
}

.phone-speaker {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 52px;
  height: 14px;
  background: #050607;
  border-radius: 999px;
  transform: translateX(-50%);
}

.phone-copy {
  display: flex;
  flex-direction: column;
}

.phone-copy span {
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 0.53rem;
  letter-spacing: 0.16em;
}

.phone-copy strong {
  margin-top: 0.85rem;
  color: white;
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.waveform {
  height: 54px;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.waveform i {
  width: 3px;
  height: 30%;
  background: var(--accent);
  border-radius: 999px;
  animation: waveform 1.1s ease-in-out infinite alternate;
}

.waveform i:nth-child(2),
.waveform i:nth-child(7) {
  height: 65%;
  animation-delay: 100ms;
}

.waveform i:nth-child(3),
.waveform i:nth-child(6) {
  height: 95%;
  animation-delay: 200ms;
}

.waveform i:nth-child(4),
.waveform i:nth-child(5) {
  height: 55%;
  animation-delay: 300ms;
}

.score-ring {
  width: 58px;
  height: 58px;
  margin: 1.3rem auto 0;
  display: grid;
  place-items: center;
  border: 4px solid rgba(216, 255, 95, 0.18);
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  border-radius: 50%;
  color: white;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
}

.floating-chip {
  position: absolute;
  z-index: 2;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  backdrop-filter: blur(10px);
}

.chip-one {
  top: 28%;
  left: 16%;
  animation: chipFloat 4.5s ease-in-out infinite;
}

.chip-two {
  right: 13%;
  bottom: 24%;
  animation: chipFloat 5s 600ms ease-in-out infinite reverse;
}

.meest-visual {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 126, 184, 0.38), transparent 28%),
    radial-gradient(circle at 18% 15%, rgba(95, 196, 255, 0.32), transparent 30%),
    linear-gradient(145deg, #32165c, #111631 75%);
}

.meest-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0,
    transparent 38px,
    rgba(255, 255, 255, 0.045) 39px,
    transparent 40px
  );
}

.memory-orbit {
  position: relative;
  width: min(66%, 330px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  animation: orbit 18s linear infinite;
}

.memory-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ff9b69, #fd4f91 45%, #765dff);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(4, 4, 20, 0.34);
  color: white;
  font-size: 2.8rem;
  font-weight: 800;
  transform: translate(-50%, -50%) rotate(-12deg);
}

.memory-card {
  position: absolute;
  width: 125px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: white;
  backdrop-filter: blur(14px);
  animation: orbitReverse 18s linear infinite;
}

.memory-card span {
  color: rgba(255, 255, 255, 0.58);
  font-family: "DM Mono", monospace;
  font-size: 0.48rem;
}

.memory-card strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.25;
}

.memory-card-one {
  top: -5%;
  right: -5%;
}

.memory-card-two {
  bottom: -3%;
  left: -9%;
}

.cinema-visual {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 219, 113, 0.2), transparent 24%),
    linear-gradient(145deg, #201311, #08090c 75%);
}

.cinema-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 45%, rgba(255, 213, 96, 0.06));
}

.cinema-dashboard {
  position: relative;
  z-index: 1;
  width: 82%;
  min-height: 220px;
  display: grid;
  grid-template-columns: 28% 1fr;
  background: rgba(17, 18, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: perspective(800px) rotateX(5deg) rotateY(-7deg);
  transition: transform 800ms var(--ease-out);
}

.project-card:hover .cinema-dashboard {
  transform: perspective(800px) rotateX(1deg) rotateY(-2deg) translateY(-5px);
}

.cinema-nav {
  padding: 1.2rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #0b0c0f;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.cinema-nav strong {
  margin-bottom: 1rem;
  color: white;
  font-size: 0.65rem;
}

.cinema-nav strong span {
  color: #ffc958;
}

.cinema-nav i {
  width: 75%;
  height: 5px;
  background: rgba(255, 255, 255, 0.11);
  border-radius: 999px;
}

.cinema-nav i:nth-of-type(2) {
  width: 55%;
  background: rgba(255, 201, 88, 0.48);
}

.cinema-screen {
  padding: 1.4rem;
}

.cinema-metric {
  padding: 0.9rem;
  display: inline-flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.cinema-metric span {
  color: rgba(255, 255, 255, 0.48);
  font-family: "DM Mono", monospace;
  font-size: 0.43rem;
}

.cinema-metric strong {
  color: white;
  font-family: "DM Mono", monospace;
  font-size: 0.9rem;
}

.seat-map {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.seat-map span {
  height: 15px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px 4px 7px 7px;
}

.seat-map span:nth-child(2),
.seat-map span:nth-child(7),
.seat-map span:nth-child(8),
.seat-map span:nth-child(14) {
  background: #ffc958;
  box-shadow: 0 0 12px rgba(255, 201, 88, 0.28);
}

.qos-visual {
  background: #0d1524;
}

.qos-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.8) contrast(1.03);
  transform: scale(1.01);
  transition: transform 1.2s var(--ease-out);
}

.project-card:hover .qos-visual img {
  transform: scale(1.045);
}

.qos-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(7, 12, 23, 0.1), rgba(7, 12, 23, 0.62)),
    linear-gradient(to top, rgba(7, 12, 23, 0.45), transparent 55%);
}

.qos-metric {
  position: absolute;
  z-index: 3;
  min-width: 110px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  background: rgba(8, 15, 29, 0.73);
  border: 1px solid rgba(151, 190, 255, 0.2);
  border-radius: 13px;
  color: white;
  backdrop-filter: blur(12px);
}

.qos-metric span {
  color: rgba(255, 255, 255, 0.52);
  font-family: "DM Mono", monospace;
  font-size: 0.48rem;
}

.qos-metric strong {
  margin-top: 0.2rem;
  color: #89b5ff;
  font-family: "DM Mono", monospace;
  font-size: 1.2rem;
}

.metric-a {
  top: 20%;
  right: 5%;
}

.metric-b {
  right: 13%;
  bottom: 10%;
}

.contact {
  border-top: 1px solid var(--line);
}

.contact-panel {
  position: relative;
  padding: clamp(1.5rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.65fr);
  gap: clamp(3rem, 8vw, 9rem);
  background:
    radial-gradient(circle at 5% 5%, rgba(216, 255, 95, 0.08), transparent 32%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.contact-panel::after {
  content: "LET'S BUILD";
  position: absolute;
  right: -0.04em;
  bottom: -0.28em;
  z-index: 0;
  color: transparent;
  font-size: clamp(5rem, 13vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 1;
  -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
}

.contact-copy,
.contact-form {
  position: relative;
  z-index: 1;
}

.contact-copy h2 {
  font-size: clamp(2.4rem, 4.5vw, 5rem);
}

.contact-copy > p:not(.eyebrow) {
  max-width: 55ch;
  margin-top: 1.6rem;
  color: var(--muted-strong);
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-links {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: wrap;
}

.contact-links a {
  color: var(--muted-strong);
  font-size: 0.75rem;
  font-weight: 700;
  transition: color 250ms ease;
}

.contact-links a:hover {
  color: var(--accent);
}

.contact-links span {
  margin-left: 0.2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.field label {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  outline: 0;
  color: var(--text);
  font-size: 0.9rem;
  resize: vertical;
  transition: border-color 250ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: var(--danger);
}

.form-footer {
  min-height: 55px;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-status {
  max-width: 230px;
  color: var(--muted);
  font-size: 0.7rem;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.contact-form .button {
  flex-shrink: 0;
}

.contact-form .button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.site-footer {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
}

.site-footer > div:first-child > p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
}

.footer-meta a {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 850ms var(--ease-out),
    transform 850ms var(--ease-out);
}

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

.expertise-card:nth-child(2),
.projects-grid .project-card:nth-child(2) {
  transition-delay: 90ms;
}

.expertise-card:nth-child(3),
.projects-grid .project-card:nth-child(3) {
  transition-delay: 180ms;
}

.expertise-card:nth-child(4) {
  transition-delay: 270ms;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: none;
  pointer-events: none;
}

.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--text);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--text) 60%, transparent);
  transition:
    width 250ms var(--ease-out),
    height 250ms var(--ease-out),
    background-color 250ms ease,
    border-color 250ms ease;
}

.cursor.is-hovering .cursor-ring {
  width: 54px;
  height: 54px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: var(--accent);
}

@media (pointer: fine) {
  body {
    cursor: none;
  }

  a,
  button,
  input,
  textarea {
    cursor: none;
  }

  .cursor {
    display: block;
  }
}

@keyframes orbFloat {
  from {
    transform: translate3d(-2%, -3%, 0) scale(0.94);
  }
  to {
    transform: translate3d(7%, 6%, 0) scale(1.06);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(216, 255, 95, 0.08);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(216, 255, 95, 0);
  }
}

@keyframes scan {
  from {
    transform: translateY(-150%);
  }
  to {
    transform: translateY(600%);
  }
}

@keyframes lineTravel {
  0% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes waveform {
  to {
    transform: scaleY(0.35);
    opacity: 0.55;
  }
}

@keyframes chipFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitReverse {
  to {
    transform: rotate(-360deg);
  }
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 1rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    gap: 3rem;
  }

  .project-featured,
  .project-wide {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.75fr);
  }

  .contact-panel {
    grid-template-columns: 1fr 0.75fr;
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  body,
  a,
  button,
  input,
  textarea {
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  .site-header {
    padding-inline: 1rem;
  }

  .nav-shell {
    width: 100%;
  }

  .menu-toggle {
    position: relative;
    z-index: 3;
    display: grid;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 2;
    min-height: 100dvh;
    padding:
      clamp(7.5rem, 18vh, 9rem)
      var(--page-padding)
      max(2rem, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    overflow-y: auto;
    background-color: var(--bg);
    background-image: radial-gradient(
      circle at 88% 10%,
      color-mix(in srgb, var(--accent) 11%, transparent),
      transparent 30%
    );
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition:
      opacity 350ms var(--ease-out),
      visibility 350ms,
      transform 350ms var(--ease-out);
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  body.menu-open .site-header .nav-shell {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.menu-open .brand {
    position: relative;
    z-index: 3;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    counter-reset: mobile-navigation;
  }

  .nav-links a {
    width: 100%;
    padding: 0.7rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    font-size: clamp(1.9rem, 8vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 1.15;
    opacity: 0;
    transform: translateY(16px);
    transition:
      color 250ms ease,
      opacity 450ms var(--ease-out),
      transform 450ms var(--ease-out);
  }

  .nav-links a::after {
    position: static;
    width: auto;
    height: auto;
    margin-left: 1rem;
    background: none;
    color: var(--muted);
    content: "0" counter(mobile-navigation);
    counter-increment: mobile-navigation;
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    transform: none;
  }

  .nav-menu.is-open .nav-links a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu.is-open .nav-links a:nth-child(2) {
    transition-delay: 45ms;
  }

  .nav-menu.is-open .nav-links a:nth-child(3) {
    transition-delay: 90ms;
  }

  .nav-menu.is-open .nav-links a:nth-child(4) {
    transition-delay: 135ms;
  }

  .nav-actions {
    width: 100%;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 10rem;
    padding-bottom: 7rem;
  }

  .hero-title {
    font-size: clamp(3.2rem, 11vw, 6.7rem);
  }

  .hero-profile {
    width: min(72%, 390px);
    justify-self: end;
  }

  .scroll-cue {
    display: none;
  }

  .about-layout,
  .section-heading,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .about-body {
    max-width: 700px;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .expertise-card {
    min-height: 330px;
  }

  .project-featured,
  .project-wide {
    grid-template-columns: 1fr;
  }

  .project-featured .project-visual,
  .project-wide .project-visual {
    min-height: 430px;
  }

  .project-wide .project-content {
    order: 2;
  }

  .contact-panel {
    gap: 4rem;
  }
}

@media (max-width: 680px) {
  :root {
    --radius-md: 18px;
    --radius-lg: 24px;
  }

  html {
    scroll-padding-top: 5.5rem;
  }

  .site-header {
    padding-top: 0.65rem;
  }

  .nav-shell {
    min-height: 58px;
    padding: 0.45rem 0.45rem 0.45rem 0.75rem;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-color: var(--line);
    backdrop-filter: blur(18px);
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    padding-top: 8.5rem;
    padding-bottom: 5rem;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2.45rem, 10.8vw, 3.3rem);
    letter-spacing: -0.08em;
  }

  .title-line > span {
    overflow-wrap: anywhere;
  }

  .hero-description {
    margin-top: 1.5rem;
    font-size: 0.95rem;
  }

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

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

  .hero-profile {
    width: min(100%, 360px);
    justify-self: center;
  }

  .hero-facts {
    gap: 0.5rem;
  }

  .section-kicker {
    margin-bottom: 2.6rem;
    grid-template-columns: 30px 1fr;
  }

  .section-kicker::after {
    margin-left: 7rem;
  }

  .about-heading h2,
  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(2.2rem, 11vw, 3.8rem);
  }

  .expertise-card {
    min-height: 350px;
  }

  .project-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-filters {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .project-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    flex: 0 0 auto;
  }

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

  .project-featured,
  .project-wide {
    grid-column: auto;
  }

  .project-visual,
  .project-featured .project-visual,
  .project-wide .project-visual {
    min-height: 330px;
  }

  .shadow-phone {
    min-width: 150px;
  }

  .floating-chip {
    display: none;
  }

  .memory-orbit {
    width: 65%;
  }

  .memory-card {
    width: 105px;
  }

  .cinema-dashboard {
    width: 90%;
    min-height: 190px;
  }

  .qos-visual img {
    object-position: 34% center;
  }

  .qos-metric {
    min-width: 86px;
    padding: 0.65rem 0.75rem;
  }

  .metric-a {
    top: 18%;
    right: 4%;
  }

  .metric-b {
    right: 7%;
    bottom: 8%;
  }

  .project-footer {
    align-items: center;
  }

  .contact-panel {
    padding: 1.35rem;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form .button {
    width: 100%;
  }

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

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .title-line > span,
  .hero-reveal,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
