:root {
  --bg: #000000;
  --bg-soft: #070707;
  --panel: #0b0b0d;
  --panel-2: #111114;
  --text: #f6f6f6;
  --muted: #9b9b9f;
  --muted-2: #68686d;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --red: #ff3f4f;
  --red-dark: #c92734;
  --blue: #16a8ff;
  --green: #9dffbb;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1130px;
  --mouse-x: 50%;
  --mouse-y: 44%;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: clip;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 63, 79, 0.08), transparent 20rem),
    radial-gradient(circle at 50% 0%, rgba(22, 168, 255, 0.06), transparent 30rem),
    linear-gradient(180deg, #000 0%, #030303 52%, #000 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: -5;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 25%, rgba(255, 63, 79, 0.13), transparent 14rem),
    radial-gradient(circle at 80% 30%, rgba(22, 168, 255, 0.08), transparent 16rem),
    #000;
}

body::after {
  content: "";
  position: fixed;
  z-index: -4;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 8px),
    radial-gradient(circle at center, transparent 0 36%, rgba(0, 0, 0, 0.92) 82%);
  opacity: 0.65;
}

::selection {
  background: rgba(255, 63, 79, 0.32);
}

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

button,
input,
textarea {
  font: inherit;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.container {
  width: min(var(--container), calc(100% - 6rem));
  margin-inline: auto;
}

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

.star-field {
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  opacity: 0.48;
  background:
    radial-gradient(circle at 20% 18%, var(--red) 0 2px, transparent 3px),
    radial-gradient(circle at 71% 22%, rgba(255, 63, 79, 0.8) 0 1px, transparent 3px),
    radial-gradient(circle at 64% 43%, rgba(22, 168, 255, 0.7) 0 1px, transparent 3px),
    radial-gradient(circle at 34% 62%, rgba(255, 255, 255, 0.55) 0 1px, transparent 3px);
  animation: floatParticles 9s ease-in-out infinite alternate;
}

.cursor-glow {
  position: fixed;
  z-index: -1;
  width: 20rem;
  height: 20rem;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 63, 79, 0.16), transparent 68%);
  transform: translate(-50%, -50%);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.scroll-progress {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: fixed;
  z-index: 110;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background 0.28s, border-color 0.28s, backdrop-filter 0.28s;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
}

.brand-word {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.4rem, 3.2vw, 2.8rem);
}

.nav-menu a,
.nav-cta {
  position: relative;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: color 0.24s, transform 0.24s, border-color 0.24s, background 0.24s;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.5rem;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s;
}

.nav-menu a:hover,
.nav-menu a.active,
.nav-cta:hover {
  color: #fff;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  justify-self: end;
  min-height: 2.65rem;
  padding: 0 1.15rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.nav-cta:hover {
  border-color: rgba(255, 63, 79, 0.55);
  background: rgba(255, 63, 79, 0.1);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 63, 79, 0.1), transparent 18rem),
    radial-gradient(circle at 50% 100%, rgba(22, 168, 255, 0.16), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  text-align: center;
  padding-top: 5rem;
}

.hero-kicker,
.section-label,
.project-index,
.project-tags,
.signal-item span,
.service-index,
.process-track article span,
.footer {
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  margin: 0 0 1.35rem;
  color: var(--red);
  font-size: clamp(0.78rem, 1.2vw, 0.95rem);
  font-weight: 800;
  animation: kickerPulse 3.8s ease-in-out infinite;
}

.hero h1 {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: #fff;
  font-size: clamp(4rem, 9.4vw, 9rem);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  text-shadow: 0 0 42px rgba(255, 255, 255, 0.16);
}

.hero h1 em {
  color: var(--red);
  font-style: normal;
  text-shadow: 0 0 42px rgba(255, 63, 79, 0.32);
}

.hero h1::after {
  content: attr(data-text);
  position: absolute;
  z-index: -1;
  inset: 0;
  color: rgba(255, 63, 79, 0.3);
  filter: blur(18px);
  opacity: 0.2;
  animation: titleAura 4.8s ease-in-out infinite;
}

.hero-lead {
  max-width: 42rem;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 650;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.95rem;
}

.text-button,
.ghost-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.1rem;
  padding: 0 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
}

.text-button {
  border-color: rgba(255, 63, 79, 0.72);
  background: linear-gradient(135deg, #ff4d5b, #ef2f40);
  color: #fff;
  box-shadow: 0 1.1rem 3.6rem rgba(255, 63, 79, 0.24);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(14px);
}

.text-button::before,
.ghost-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 28%, rgba(255, 255, 255, 0.25) 45%, transparent 62% 100%);
  transform: translateX(-120%);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.text-button:hover::before,
.ghost-button:hover::before {
  transform: translateX(120%);
}

.text-button:hover,
.ghost-button:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 1.25rem 4rem rgba(255, 63, 79, 0.22);
}

.text-button svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2.2;
  transition: transform 0.25s;
}

.text-button:hover svg {
  transform: translateX(0.25rem);
}

.hero-role-grid {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.hero-role-grid span,
.project-tags span,
.project-tags a {
  min-height: 2.25rem;
  padding: 0 0.92rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-tags a {
  border-color: rgba(255, 63, 79, 0.42);
  color: #fff;
  background: rgba(255, 63, 79, 0.12);
  transition: transform 0.24s, border-color 0.24s, background 0.24s;
}

.project-tags a:hover {
  border-color: rgba(255, 63, 79, 0.75);
  background: rgba(255, 63, 79, 0.22);
  transform: translateY(-2px);
}

.particle-floor {
  position: absolute;
  z-index: 1;
  top: 56%;
  right: -18vw;
  left: -18vw;
  height: 62vh;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(22, 168, 255, 0.82) 0 1.45px, transparent 2px);
  background-size: 26px 26px;
  background-position: 0 0;
  transform: perspective(680px) rotateX(63deg) translateY(-5vh) scaleX(1.04);
  transform-origin: top center;
  opacity: 0.86;
  filter: drop-shadow(0 0 10px rgba(22, 168, 255, 0.52));
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 16%, black 54%, transparent 100%);
  animation: floorDrift 8s linear infinite;
}

.particle-floor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 63, 79, 0.24), transparent 44%);
  mix-blend-mode: screen;
  animation: floorPulse 3.5s ease-in-out infinite;
}

.hero-orbit {
  position: absolute;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid rgba(255, 63, 79, 0.36);
  border-radius: 999px;
  pointer-events: none;
  filter: drop-shadow(0 0 16px rgba(255, 63, 79, 0.32));
}

.orbit-one {
  top: 27%;
  left: 60%;
  animation: orbitFloat 5.8s ease-in-out infinite;
}

.orbit-two {
  top: 36%;
  right: 21%;
  width: 1.1rem;
  height: 1.1rem;
  border-color: var(--red);
  background: var(--red);
  animation: redDotFloat 4.8s ease-in-out infinite;
}

.scroll-cue {
  position: absolute;
  z-index: 5;
  right: 3.6rem;
  bottom: 3.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.32);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.scroll-cue i {
  width: 1px;
  height: 3.4rem;
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.scroll-cue i::before {
  content: "";
  width: 100%;
  height: 40%;
  display: block;
  background: var(--red);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

.signal-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.016);
}

.signal-grid {
  min-height: 7.1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.signal-item {
  min-width: 0;
  padding: 1.45rem 1.8rem;
  display: grid;
  align-content: center;
  gap: 0.42rem;
  border-right: 1px solid var(--line);
}

.signal-item:first-child {
  padding-left: 0;
}

.signal-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.signal-item strong {
  color: var(--text);
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.signal-item span {
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.62rem;
  line-height: 1.55;
}

.section {
  position: relative;
  padding-block: clamp(5.8rem, 11vw, 9.5rem);
  border-bottom: 1px solid var(--line);
}

.section-label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.3rem;
  margin-bottom: clamp(2.8rem, 6vw, 4.8rem);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
}

.section-label::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 63, 79, 0.75), var(--line));
}

.section-label span {
  color: var(--red);
}

.section-label small {
  font-size: 0.72rem;
}

.section-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.5rem, 5.8vw, 5.1rem);
  font-weight: 920;
  line-height: 1.04;
  letter-spacing: -0.075em;
}

.about-layout,
.split-heading,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 0.85fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.about-copy,
.split-heading > p,
.contact-copy > p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 1rem;
  font-weight: 560;
  line-height: 1.85;
}

.about-copy p {
  margin: 0 0 1.25rem;
}

.skill-columns {
  margin-top: clamp(3.6rem, 8vw, 6.3rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.skill-column {
  min-height: 10rem;
  padding: 1.8rem;
  background: var(--bg-soft);
}

.skill-column h3,
.service-card h3,
.project-copy h3,
.process-track h3 {
  margin: 0 0 0.72rem;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  font-weight: 860;
  letter-spacing: -0.035em;
}

.skill-column p,
.service-card p,
.project-copy p,
.process-track p,
.info-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.86rem;
  font-weight: 520;
  line-height: 1.75;
}

.expertise,
.process {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 63, 79, 0.055), transparent 22rem),
    rgba(255, 255, 255, 0.012);
}

.service-grid {
  margin-top: clamp(3.2rem, 7vw, 5.4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.service-card {
  position: relative;
  min-height: 23rem;
  padding: 1.8rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 63, 79, 0.09), transparent 10rem),
    var(--panel);
  transition: transform 0.28s, background 0.28s, box-shadow 0.28s;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 24%, rgba(255, 255, 255, 0.07) 42%, transparent 62% 100%);
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
  transform: translateY(-0.45rem);
  box-shadow: 0 1.8rem 5rem rgba(0, 0, 0, 0.45);
}

.service-card:hover::before {
  transform: translateX(120%);
}

.service-index {
  position: relative;
  z-index: 2;
  color: var(--red);
  font-size: 0.66rem;
}

.service-card h3,
.service-card p {
  position: relative;
  z-index: 2;
}

.service-icon {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 11.2rem;
  margin: 1.5rem 0 2.2rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at center, rgba(22, 168, 255, 0.08), transparent 8rem),
    rgba(255, 255, 255, 0.022);
}

.service-icon-code i {
  position: absolute;
  width: 46%;
  height: 2px;
  background: rgba(255, 63, 79, 0.75);
  box-shadow: 0 0 20px rgba(255, 63, 79, 0.26);
}

.service-icon-code i:nth-child(1) {
  translate: -8% -1.55rem;
}

.service-icon-code i:nth-child(2) {
  width: 58%;
}

.service-icon-code i:nth-child(3) {
  width: 34%;
  translate: 12% 1.55rem;
}

.service-icon-network i {
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid rgba(255, 63, 79, 0.72);
  background: rgba(255, 63, 79, 0.13);
}

.service-icon-network::before,
.service-icon-network::after {
  content: "";
  position: absolute;
  width: 64%;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.service-icon-network::after {
  rotate: 90deg;
}

.service-icon-network i:nth-child(1) {
  translate: -4rem -2.5rem;
}

.service-icon-network i:nth-child(2) {
  translate: 3.9rem -1.9rem;
}

.service-icon-network i:nth-child(3) {
  translate: -1.7rem 2.8rem;
}

.service-icon-network i:nth-child(4) {
  translate: 4rem 3rem;
}

.service-icon-pulse i {
  position: absolute;
  border: 1px solid rgba(255, 63, 79, 0.22);
  border-radius: 999px;
  animation: ringPulse 3.5s ease-in-out infinite;
}

.service-icon-pulse i:nth-child(1) {
  width: 4.2rem;
  height: 4.2rem;
}

.service-icon-pulse i:nth-child(2) {
  width: 7rem;
  height: 7rem;
  animation-delay: -1.1s;
}

.service-icon-pulse i:nth-child(3) {
  width: 9.6rem;
  height: 9.6rem;
  animation-delay: -2.2s;
}

.project-list {
  margin-top: clamp(3.2rem, 7vw, 5.3rem);
  border-top: 1px solid var(--line);
}

.project-row {
  min-height: 11rem;
  display: grid;
  grid-template-columns: 10rem 3.5rem minmax(0, 1fr) minmax(12rem, 18rem);
  align-items: center;
  gap: 1.8rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.project-row:hover {
  background: rgba(255, 63, 79, 0.035);
  transform: translateX(0.28rem);
}

.project-row:hover .project-visual {
  border-color: rgba(255, 63, 79, 0.35);
}

.featured-projects .project-row:first-child {
  border-top: 0;
}

.project-row-live {
  background:
    radial-gradient(circle at 82% 30%, rgba(255, 63, 79, 0.08), transparent 18rem),
    transparent;
}

.project-visual {
  width: 100%;
  height: 7rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s;
}

.project-visual-live,
.project-visual-soon {
  position: relative;
  overflow: hidden;
}

.project-visual-live::before,
.project-visual-soon::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(22, 168, 255, 0.55) 0 1px, transparent 1.6px);
  background-size: 18px 18px;
  opacity: 0.34;
  animation: floorDrift 7s linear infinite;
}

.project-status-dot {
  position: relative;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: var(--red);
  box-shadow:
    0 0 0 0.65rem rgba(255, 63, 79, 0.08),
    0 0 2rem rgba(255, 63, 79, 0.42);
  animation: livePulse 2.2s ease-in-out infinite;
}

.project-soon-lines {
  position: relative;
  width: 4.8rem;
  height: 3.8rem;
  display: grid;
  align-content: center;
  gap: 0.55rem;
}

.project-soon-lines i {
  height: 2px;
  display: block;
  background: rgba(255, 63, 79, 0.66);
  box-shadow: 0 0 18px rgba(255, 63, 79, 0.25);
}

.project-soon-lines i:nth-child(2) {
  width: 72%;
}

.project-soon-lines i:nth-child(3) {
  width: 45%;
}

.project-index {
  color: var(--red);
  font-size: 0.65rem;
}

.project-copy h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
}

.project-copy p {
  max-width: 38rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  font-size: 0.62rem;
}

.pixel-window,
.pixel-grid,
.pixel-lines,
.pixel-cube {
  position: relative;
  width: 5.1rem;
  height: 4rem;
  display: block;
}

.pixel-window {
  border: 1px solid rgba(255, 63, 79, 0.35);
}

.pixel-window i {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  height: 2px;
  background: rgba(255, 63, 79, 0.72);
}

.pixel-window i:nth-child(1) {
  top: 0.95rem;
  right: 2.2rem;
}

.pixel-window i:nth-child(2) {
  top: 1.65rem;
}

.pixel-window i:nth-child(3) {
  top: 2.35rem;
  left: 1.65rem;
}

.pixel-window i:nth-child(4) {
  top: 3.05rem;
  right: 1.55rem;
}

.pixel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.28rem;
}

.pixel-grid i {
  background: rgba(255, 63, 79, 0.22);
}

.pixel-lines i {
  position: absolute;
  left: 0;
  height: 2px;
  background: rgba(255, 63, 79, 0.72);
}

.pixel-lines i:nth-child(1) {
  top: 0.85rem;
  width: 4.7rem;
}

.pixel-lines i:nth-child(2) {
  top: 1.95rem;
  width: 3.65rem;
}

.pixel-lines i:nth-child(3) {
  top: 3.05rem;
  width: 4.3rem;
}

.pixel-cube i {
  position: absolute;
  display: block;
}

.pixel-cube i:nth-child(1) {
  top: 0;
  left: 1.2rem;
  width: 2.9rem;
  height: 1.95rem;
  background: rgba(255, 63, 79, 0.32);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.pixel-cube i:nth-child(2) {
  top: 0.98rem;
  left: 1.2rem;
  width: 1.45rem;
  height: 2.55rem;
  background: rgba(255, 63, 79, 0.14);
  clip-path: polygon(0 0, 100% 36%, 100% 100%, 0 64%);
}

.pixel-cube i:nth-child(3) {
  top: 0.98rem;
  right: 1rem;
  width: 1.45rem;
  height: 2.55rem;
  background: rgba(255, 63, 79, 0.24);
  clip-path: polygon(0 36%, 100% 0, 100% 64%, 0 100%);
}

.process-track {
  position: relative;
  margin-top: clamp(3.1rem, 7vw, 5.4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

.process-line {
  position: absolute;
  top: 1rem;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.process-line i {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s ease;
}

.process-line.animate i {
  transform: scaleX(1);
}

.process-track article {
  position: relative;
  padding-top: 3.5rem;
}

.process-track article::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid var(--red);
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 0 0 0.55rem rgba(255, 63, 79, 0.06);
}

.process-track article span {
  display: block;
  margin-bottom: 1rem;
  color: var(--red);
  font-size: 0.64rem;
}

.contact-layout {
  align-items: start;
}

.contact-copy > p {
  margin: 1.9rem 0 1.7rem;
}

.mail-link {
  display: inline-flex;
  margin: 0.5rem 0 2.2rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 820;
  letter-spacing: -0.03em;
}

.info-card {
  position: relative;
  min-height: 15rem;
  padding: 2rem;
  display: grid;
  align-content: start;
  gap: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 63, 79, 0.09), transparent 42%),
    rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.info-card span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.info-card p {
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.socials a,
.copy-button {
  min-height: 2.95rem;
  padding: 0 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}

.socials a {
  display: inline-grid;
  place-items: center;
}

.socials a:hover,
.copy-button:hover {
  border-color: rgba(255, 63, 79, 0.5);
  background: rgba(255, 63, 79, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

.footer {
  min-height: 5.8rem;
  display: grid;
  align-items: center;
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.66rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer p {
  margin: 0;
}

.footer-mark {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.footer-mark:hover {
  border-color: rgba(255, 63, 79, 0.5);
  background: rgba(255, 63, 79, 0.08);
  transform: translateY(-2px);
}

.toast {
  position: fixed;
  z-index: 140;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.88);
  color: var(--text);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.46);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.8rem);
  transition: opacity 0.25s, transform 0.25s;
  backdrop-filter: blur(16px);
  font-size: 0.82rem;
  font-weight: 760;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast svg {
  width: 1rem;
  height: 1rem;
  color: var(--green);
  stroke-width: 2.5;
}

.reveal {
  opacity: 0;
  transform: translateY(1.45rem);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatParticles {
  to {
    transform: translate3d(0, 1.2rem, 0);
    opacity: 0.66;
  }
}

@keyframes kickerPulse {
  50% {
    opacity: 0.62;
  }
}

@keyframes titleAura {
  50% {
    opacity: 0.38;
    transform: scale(1.018);
  }
}

@keyframes floorDrift {
  to {
    background-position: 0 28px;
  }
}

@keyframes floorPulse {
  50% {
    opacity: 0.45;
  }
}

@keyframes livePulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes orbitFloat {
  50% {
    transform: translate3d(1rem, -0.85rem, 0) scale(1.12);
    opacity: 0.55;
  }
}

@keyframes redDotFloat {
  50% {
    transform: translate3d(-0.6rem, 0.85rem, 0) scale(1.35);
    opacity: 0.75;
  }
}

@keyframes ringPulse {
  50% {
    opacity: 0.42;
    transform: scale(0.92);
  }
}

@keyframes scrollPulse {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(270%);
  }
}

@media (max-width: 1040px) {
  .container {
    width: min(var(--container), calc(100% - 3rem));
  }

  .project-row {
    grid-template-columns: 8rem 3rem minmax(0, 1fr);
    padding-block: 1.35rem;
  }

  .project-tags {
    grid-column: 3;
    justify-content: flex-start;
    padding-bottom: 1.2rem;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 78px;
  }

  .nav {
    min-height: 70px;
    display: flex;
    justify-content: space-between;
  }

  .menu-toggle {
    width: 2.85rem;
    height: 2.85rem;
    display: grid;
    place-content: center;
    gap: 0.42rem;
  }

  .menu-toggle span {
    width: 1.12rem;
    height: 1px;
    display: block;
    background: var(--text);
    transition: transform 0.25s;
  }

  .menu-toggle.active span:first-child {
    transform: translateY(0.22rem) rotate(45deg);
  }

  .menu-toggle.active span:last-child {
    transform: translateY(-0.22rem) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    z-index: 115;
    top: 5rem;
    right: 1.5rem;
    left: 1.5rem;
    padding: 0.75rem;
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.94);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.48);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.6rem);
    transition: opacity 0.25s, transform 0.25s;
    backdrop-filter: blur(20px);
  }

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

  .nav-menu a {
    padding: 0.95rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
  }

  .nav-menu a:last-child {
    border-bottom: 0;
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .signal-grid,
  .skill-columns,
  .service-grid,
  .process-track,
  .about-layout,
  .split-heading,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .signal-grid {
    min-height: auto;
  }

  .signal-item,
  .signal-item:first-child,
  .signal-item:last-child {
    min-height: 5.8rem;
    padding: 1.25rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-item:last-child {
    border-bottom: 0;
  }

  .service-grid,
  .skill-columns {
    gap: 1rem;
    border: 0;
    background: transparent;
  }

  .skill-column,
  .service-card {
    border: 1px solid var(--line);
  }

  .process-line {
    display: none;
  }

  .process-track {
    gap: 2.2rem;
  }

  .process-track article {
    padding: 0 0 0 2.2rem;
  }

  .process-track article::before {
    top: 0.15rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 1.5rem));
  }

  .brand-word {
    font-size: 1rem;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding-top: 4.8rem;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.85rem);
    letter-spacing: -0.07em;
  }

  .hero-lead {
    max-width: 23rem;
    margin-top: 1rem;
  }

  .hero-actions {
    width: 100%;
    margin-top: 2rem;
    flex-direction: column;
  }

  .text-button,
  .ghost-button {
    width: min(100%, 22rem);
  }

  .hero-role-grid {
    max-width: 22rem;
  }

  .hero-role-grid span {
    flex: 1 1 auto;
    justify-content: center;
  }

  .particle-floor {
    right: -22vw;
    bottom: -14vh;
    left: -22vw;
    height: 46vh;
    background-size: 24px 24px;
    opacity: 0.62;
  }

  .hero-orbit {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding-block: 5rem;
  }

  .section-label {
    margin-bottom: 2.35rem;
  }

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

  .project-row {
    grid-template-columns: 1fr;
    gap: 1.05rem;
    padding-block: 1.55rem;
  }

  .project-visual {
    height: 7.3rem;
  }

  .project-tags {
    grid-column: auto;
    padding-bottom: 0;
    justify-content: flex-start;
  }

  .footer-inner {
    min-height: 7rem;
    align-items: flex-start;
    flex-direction: column-reverse;
    justify-content: center;
  }

  .toast {
    right: 0.9rem;
    bottom: 0.9rem;
    left: 0.9rem;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
