:root {
  --bg: #151b1a;
  --ink: #fff7ec;
  --muted: rgba(255, 247, 236, 0.74);
  --line: rgba(255, 247, 236, 0.22);
  --panel: rgba(23, 31, 30, 0.72);
  --orange: #d38d58;
  --cyan: #7fe0d8;
  --green: #b8df9f;
  --radius: 8px;
  --container: 1180px;
  --scroll-progress: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  border-radius: var(--radius);
  padding: 0.72rem 0.9rem;
  background: var(--ink);
  color: #111;
  font-weight: 900;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

#three-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #151b1a;
  opacity: 0;
  transition: opacity 0.7s ease;
}

body.scene-hydrated #three-scene {
  opacity: 1;
}

/* ── Project background image overlay ── */
/* Subtle ambient glow behind 3D scene, does NOT cover the animation */
#project-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  filter: blur(60px) saturate(1.6) brightness(0.35);
  transform: scale(1.15);
  transition: opacity 0.65s ease, filter 0.65s ease, transform 0.65s ease;
  will-change: opacity, filter, transform;
}

body[data-step="2"] #project-bg {
  opacity: 0.3;
  filter: blur(54px) saturate(1.72) brightness(0.38);
  transform: scale(1.12);
}

body:not([data-step="2"]) #project-bg {
  opacity: 0;
}



.scene-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(127,224,216,0.14), transparent 32%),
    linear-gradient(300deg, rgba(211,141,88,0.18), transparent 36%),
    #151b1a;
  transition: opacity 0.7s ease;
}

.scene-fallback::before,
.scene-fallback::after {
  content: "";
  position: absolute;
  inset: -24%;
  opacity: 0.58;
  will-change: transform, opacity;
}

.scene-fallback::before {
  background:
    repeating-conic-gradient(from 0deg, rgba(127,224,216,0.18) 0 10deg, transparent 10deg 27deg),
    radial-gradient(circle at 50% 50%, rgba(255,247,236,0.08), transparent 46%);
  animation: fallback-spin 16s linear infinite;
}

.scene-fallback::after {
  background:
    linear-gradient(95deg, transparent 18%, rgba(255,247,236,0.12) 45%, transparent 72%),
    linear-gradient(24deg, transparent 24%, rgba(184,223,159,0.12) 48%, transparent 76%);
  animation: fallback-drift 9s ease-in-out infinite alternate;
}

body.scene-hydrated .scene-fallback {
  opacity: 0;
}

@keyframes fallback-spin {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1.04);
  }
}

@keyframes fallback-drift {
  from {
    transform: translate3d(-4%, -2%, 0) rotate(-4deg);
    opacity: 0.42;
  }
  to {
    transform: translate3d(4%, 3%, 0) rotate(5deg);
    opacity: 0.68;
  }
}

.scene-shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18,24,23,0.62), rgba(18,24,23,0.08) 34%, rgba(18,24,23,0.14) 64%, rgba(18,24,23,0.66)),
    linear-gradient(180deg, rgba(13,18,17,0.48), rgba(25,34,32,0.08) 28%, rgba(13,18,17,0.42)),
    radial-gradient(circle at 50% 42%, rgba(127,224,216,0.08), transparent 42%);
}

body[data-step="1"] .scene-shade,
body[data-step="3"] .scene-shade,
body[data-step="5"] .scene-shade {
  background:
    linear-gradient(90deg, rgba(18,24,23,0.58), rgba(18,24,23,0.16) 36%, rgba(18,24,23,0.08) 58%, rgba(18,24,23,0.68)),
    linear-gradient(180deg, rgba(13,18,17,0.48), rgba(28,38,36,0.1) 32%, rgba(13,18,17,0.46)),
    radial-gradient(circle at 52% 40%, rgba(211,141,88,0.08), transparent 42%);
}

.scroll-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 80;
  height: 3px;
  background: rgba(255,247,236,0.12);
}

.scroll-progress span {
  display: block;
  width: calc(var(--scroll-progress) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--cyan), var(--green));
  box-shadow: 0 0 24px rgba(211, 141, 88, 0.6);
}

.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--container));
  min-height: 64px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem;
  background: rgba(22, 29, 28, 0.74);
  backdrop-filter: blur(18px);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 18px 70px rgba(4, 10, 10, 0.22);
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.site-header::before {
  inset: -1px;
  z-index: 0;
  opacity: 0.62;
  background:
    radial-gradient(circle at 12% 50%, rgba(209,173,129,0.22), transparent 18%),
    radial-gradient(circle at 88% 50%, rgba(127,224,216,0.14), transparent 18%),
    linear-gradient(90deg, transparent, rgba(255,247,236,0.08), transparent);
  animation: header-breathe 8s ease-in-out infinite;
}

.site-header::after {
  left: -22%;
  bottom: 0;
  z-index: 0;
  width: 44%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(209,173,129,0.9), rgba(127,224,216,0.75), transparent);
  animation: header-scan 6.5s ease-in-out infinite;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  transition: transform 0.24s ease, color 0.24s ease;
}

.brand-logo {
  flex: 0 0 auto;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 8px;
  filter: drop-shadow(0 10px 18px rgba(4,10,10,0.24));
  animation: brand-pulse 3.8s ease-in-out infinite;
  transition: transform 0.24s ease, filter 0.24s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand:hover .brand-logo {
  transform: scale(1.06) rotate(-2deg);
  filter: drop-shadow(0 10px 24px rgba(127,224,216,0.24)) drop-shadow(0 0 18px rgba(211,141,88,0.22));
}

.brand strong,
.brand small {
  display: block;
}

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

.site-header nav {
  display: flex;
  gap: 0.25rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.62rem 0.72rem;
  background: rgba(255,247,236,0.07);
  color: var(--ink);
  font-weight: 900;
  overflow: hidden;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255,247,236,0.12);
}

.menu-toggle i,
.menu-toggle i::before,
.menu-toggle i::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-toggle i {
  position: relative;
}

.menu-toggle i::before,
.menu-toggle i::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle i::before {
  transform: translateY(-5px);
}

.menu-toggle i::after {
  transform: translateY(5px);
}

.site-header.is-menu-open .menu-toggle i {
  transform: rotate(45deg);
}

.site-header.is-menu-open .menu-toggle i::before {
  opacity: 0;
}

.site-header.is-menu-open .menu-toggle i::after {
  transform: rotate(90deg);
}

.site-header nav a,
.lang-link,
.header-cta {
  position: relative;
  border-radius: var(--radius);
  padding: 0.68rem 0.82rem;
  color: var(--muted);
  font-weight: 850;
  overflow: hidden;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.site-header nav a:hover,
.site-header nav a.is-active,
.site-header nav a[aria-current="page"],
.lang-link:hover,
.header-cta {
  background: rgba(255,255,255,0.08);
  color: var(--ink);
}

.site-header nav a:hover {
  transform: translateY(-1px);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.lang-link {
  border: 1px solid var(--line);
  padding-inline: 0.7rem;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0.42rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(209,173,129,0), rgba(209,173,129,0.95), rgba(127,224,216,0.72));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.site-header nav a:hover::after,
.site-header nav a.is-active::after,
.site-header nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-cta {
  border: 1px solid rgba(211,141,88,0.54);
  animation: cta-breathe 4.8s ease-in-out infinite;
}

.header-cta::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 48%;
  background: linear-gradient(90deg, transparent, rgba(255,247,236,0.28), transparent);
  transform: skewX(-18deg);
  animation: cta-sweep 5.6s ease-in-out infinite;
}

main {
  position: relative;
  z-index: 10;
}

.section {
  position: relative;
  display: grid;
  align-items: center;
  width: min(calc(100% - 2rem), var(--container));
  min-height: 64svh;
  margin: 0 auto;
  padding: 5.4rem 0 2rem;
  overflow: visible;
  scroll-margin-top: 84px;
}

.hero {
  min-height: 76svh;
}

.contact {
  min-height: 54svh;
}

.story-left {
  grid-template-columns: minmax(300px, 0.84fr) minmax(400px, 1.16fr);
  gap: clamp(1rem, 3vw, 2.8rem);
}

.story-right {
  grid-template-columns: minmax(400px, 1.16fr) minmax(300px, 0.84fr);
  gap: clamp(1rem, 3vw, 2.8rem);
}

.story-left .story-card,
.story-left .section-copy {
  grid-column: 1;
  grid-row: 1;
}

.story-right .story-card,
.story-right .section-copy {
  grid-column: 2;
  grid-row: 1;
}

.services .card-grid,
.process .timeline {
  grid-column: 1;
  grid-row: 1;
}

.portfolio .project-switcher,
.packages .package-grid,
.hero .scene-tool {
  grid-column: 2;
  grid-row: 1;
}

.portfolio .project-switcher {
  grid-column: 1;
  grid-row: 2;
}

.section-copy {
  max-width: 430px;
}

.story-card {
  --drift-x: 5px;
  --drift-y: -6px;
  position: relative;
  max-width: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 2vw, 1.35rem);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 60px rgba(4,10,10,0.24);
  cursor: pointer;
  overflow: hidden;
  animation: card-float 8.4s ease-in-out infinite;
  transition: opacity 0.28s ease, transform 0.28s ease, border-color 0.28s ease, scale 0.28s ease, box-shadow 0.28s ease;
  will-change: translate, transform, scale;
}

.story-card > *,
.control-panel > *,
.project-switcher > *,
.tilt-card > *,
.timeline article > *,
.price-card > * {
  position: relative;
  z-index: 1;
}

.story-card::before,
.control-panel::before,
.project-switcher::before,
.tilt-card::before,
.timeline article::before,
.price-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background:
    radial-gradient(circle at var(--pulse-x, 50%) var(--pulse-y, 50%), rgba(255,247,236,0.2), transparent 32%),
    linear-gradient(135deg, rgba(127,224,216,0.16), rgba(211,141,88,0.18));
}

.story-card::after {
  content: "";
  position: absolute;
  top: 1.45rem;
  width: clamp(28px, 4vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, rgba(211,141,88,0.9), rgba(127,224,216,0));
  pointer-events: none;
}

.story-left .story-card::after {
  left: calc(100% + 0.8rem);
}

.story-right .story-card::after {
  right: calc(100% + 0.8rem);
  transform: rotate(180deg);
}

.section:not(.is-active) .story-card {
  opacity: 0.48;
  transform: translateY(24px) scale(0.97);
}

.section.is-active .story-card {
  border-color: rgba(127,224,216,0.34);
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: none;
}

.section > .story-card,
.section > .section-copy,
.section > .card-grid,
.section > .timeline,
.section > .project-switcher,
.section > .package-grid,
.section > .scene-tool {
  transition:
    opacity 0.46s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.46s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.46s ease,
    border-color 0.28s ease,
    scale 0.28s ease,
    box-shadow 0.28s ease;
}

.section:not(.is-active) > .story-card,
.section:not(.is-active) > .section-copy,
.section:not(.is-active) > .card-grid,
.section:not(.is-active) > .timeline,
.section:not(.is-active) > .project-switcher,
.section:not(.is-active) > .package-grid,
.section:not(.is-active) > .scene-tool {
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  filter: blur(2px);
  pointer-events: none;
}

.section.is-active > .story-card,
.section.is-active > .section-copy,
.section.is-active > .card-grid,
.section.is-active > .timeline,
.section.is-active > .project-switcher,
.section.is-active > .package-grid,
.section.is-active > .scene-tool {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: none;
  transition:
    opacity 0.48s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.48s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.42s ease,
    border-color 0.28s ease,
    scale 0.28s ease,
    box-shadow 0.28s ease;
}

.story-right .story-card {
  --drift-x: -5px;
  --drift-y: 6px;
  animation-delay: -3.5s;
}

.story-card:hover,
.control-panel:hover,
.project-switcher:hover {
  animation-play-state: paused;
}

.is-card-active {
  border-color: rgba(127,224,216,0.74) !important;
  scale: 1;
  animation-name: card-active-float !important;
  animation-duration: 4.8s !important;
  box-shadow:
    0 22px 70px rgba(4,10,10,0.28),
    0 0 32px rgba(127,224,216,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

.is-card-active::before {
  opacity: 0.72;
  animation: card-active-glow 2.8s ease-in-out infinite;
}

.is-card-active.is-card-pulsing::before {
  animation: card-pulse 720ms ease-out, card-active-glow 2.8s ease-in-out 720ms infinite;
}

.is-card-pulsing::before {
  animation: card-pulse 720ms ease-out;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 4.4vw, 4.1rem);
  font-weight: 1000;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.9rem, 3.5vw, 3.25rem);
  font-weight: 1000;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

.section-copy > p:not(.eyebrow),
.contact-panel > p {
  max-width: 390px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.center-actions {
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.82rem 1rem;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

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

.button.ghost {
  border-color: var(--line);
  background: rgba(255,255,255,0.06);
}

.control-panel,
.project-switcher {
  --drift-x: 5px;
  --drift-y: -5px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 33, 32, 0.62);
  backdrop-filter: blur(16px);
  cursor: pointer;
  overflow: hidden;
  animation: card-float 9s ease-in-out infinite;
}

.control-panel {
  align-self: end;
  justify-self: end;
  display: grid;
  gap: 0.6rem;
  width: min(100%, 340px);
  padding: 0.9rem;
  animation-delay: -5s;
}

.control-panel span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.control-panel button,
.project-switcher button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.68rem 0.78rem;
  background: rgba(255,247,236,0.06);
  font-weight: 900;
}

.control-panel button.is-active,
.project-switcher button.is-active {
  background: var(--ink);
  color: #111;
  border-color: rgba(127,224,216,0.52);
  box-shadow:
    0 10px 28px rgba(4,10,10,0.18),
    0 0 18px rgba(127,224,216,0.16);
}

.card-grid,
.timeline,
.package-grid {
  align-self: center;
  gap: 0.36rem;
}

.services .card-grid,
.process .timeline {
  justify-self: end;
}

.portfolio .project-switcher,
.packages .package-grid,
.hero .scene-tool {
  justify-self: start;
}

.card-grid {
  display: flex;
  max-width: 500px;
  gap: 0.5rem;
  padding-left: 0.25rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  max-width: 410px;
}

.package-grid {
  display: flex;
  max-width: 500px;
  gap: 0.5rem;
  padding-left: 0.25rem;
}

.tilt-card,
.timeline article,
.price-card {
  --drift-x: 4px;
  --drift-y: -5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(22,30,29,0.58);
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  cursor: pointer;
  overflow: hidden;
  animation: card-float 7.8s ease-in-out infinite;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, scale 0.22s ease, box-shadow 0.22s ease;
  will-change: transform, translate, scale;
}

.tilt-card {
  width: 160px;
  min-height: 158px;
}

.price-card {
  width: 160px;
  min-height: 126px;
}

.card-grid .tilt-card + .tilt-card,
.package-grid .price-card + .price-card {
  margin-left: 0;
}

.card-grid .tilt-card:nth-child(2),
.package-grid .price-card:nth-child(2) {
  transform: translateY(-10px);
  z-index: 2;
}

.card-grid .tilt-card:nth-child(3),
.package-grid .price-card:nth-child(3) {
  transform: translateY(6px);
}

.tilt-card:hover,
.timeline article:hover,
.price-card:hover {
  animation-play-state: paused;
  border-color: rgba(127,224,216,0.54);
  background: rgba(30, 43, 42, 0.72);
}

.tilt-card:nth-child(2),
.timeline article:nth-child(2),
.price-card:nth-child(2) {
  --drift-x: -4px;
  --drift-y: 4px;
  animation-delay: -2.4s;
}

.tilt-card:nth-child(3),
.timeline article:nth-child(3),
.price-card:nth-child(3) {
  --drift-x: 5px;
  --drift-y: 4px;
  animation-delay: -4.8s;
}

.timeline article:nth-child(4) {
  --drift-x: -4px;
  --drift-y: -5px;
  animation-delay: -6s;
}

.tilt-card span,
.timeline span,
.price-card span {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tilt-card p,
.timeline p,
.price-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.portfolio .project-switcher {
  align-self: start;
  justify-self: start;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  max-width: 430px;
  margin-top: 0.85rem;
  padding: 0.72rem;
}

.control-panel button,
.project-switcher button {
  animation: chip-drift 8s ease-in-out infinite;
  will-change: translate;
}

.control-panel button:nth-child(3),
.project-switcher button:nth-child(2) {
  animation-delay: -2.1s;
}

.control-panel button:nth-child(4),
.project-switcher button:nth-child(3) {
  animation-delay: -4.2s;
}

@keyframes header-breathe {
  0%, 100% {
    opacity: 0.48;
    transform: translateX(-1%);
  }
  50% {
    opacity: 0.84;
    transform: translateX(1%);
  }
}

@keyframes header-scan {
  0%, 18% {
    transform: translateX(0);
    opacity: 0;
  }
  42%, 62% {
    opacity: 1;
  }
  100% {
    transform: translateX(320%);
    opacity: 0;
  }
}

@keyframes brand-pulse {
  0%, 100% {
    filter: drop-shadow(0 10px 18px rgba(4,10,10,0.24));
  }
  50% {
    filter: drop-shadow(0 10px 20px rgba(4,10,10,0.2)) drop-shadow(0 0 18px rgba(211,141,88,0.28));
  }
}

@keyframes cta-breathe {
  0%, 100% {
    border-color: rgba(211,141,88,0.44);
    box-shadow: 0 0 0 rgba(211,141,88,0);
  }
  50% {
    border-color: rgba(211,141,88,0.74);
    box-shadow: 0 0 24px rgba(211,141,88,0.18);
  }
}

@keyframes cta-sweep {
  0%, 38% {
    transform: translateX(0) skewX(-18deg);
    opacity: 0;
  }
  52% {
    opacity: 1;
  }
  72%, 100% {
    transform: translateX(420%) skewX(-18deg);
    opacity: 0;
  }
}

@keyframes card-float {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }
  34% {
    translate: var(--drift-x) var(--drift-y);
    rotate: 0.28deg;
  }
  68% {
    translate: calc(var(--drift-x) * -0.45) calc(var(--drift-y) * 0.55);
    rotate: -0.22deg;
  }
}

@keyframes card-active-float {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }
  45% {
    translate: calc(var(--drift-x) * 0.46) calc(var(--drift-y) * 0.34);
    rotate: 0.22deg;
  }
  75% {
    translate: calc(var(--drift-x) * -0.34) calc(var(--drift-y) * 0.22);
    rotate: -0.16deg;
  }
}

@keyframes card-active-glow {
  0%, 100% {
    opacity: 0.44;
  }
  50% {
    opacity: 0.82;
  }
}

@keyframes chip-drift {
  0%, 28%, 100% {
    translate: 0 0;
  }
  48%, 68% {
    translate: 0 -5px;
  }
}

@keyframes card-pulse {
  0% {
    opacity: 0;
    scale: 0.92;
  }
  26% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    scale: 1.12;
  }
}

@keyframes case-card-scan {
  0%, 38% {
    opacity: 0;
    transform: translateX(-120%);
  }
  52% {
    opacity: 0.72;
  }
  82%, 100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

.price-card.featured {
  border-color: rgba(211,141,88,0.58);
  background: linear-gradient(135deg, rgba(211,141,88,0.24), rgba(26,35,34,0.64));
  transform: translateY(-1rem);
}

.price-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.05;
}

.contact-panel {
  text-align: left;
}

address {
  margin-top: 1rem;
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

address a {
  color: var(--ink);
  font-weight: 850;
}

.seo-section {
  --seo-shift: 32px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(520px, 1.32fr);
  align-items: start;
  gap: clamp(1rem, 3vw, 2rem);
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  min-height: 54svh;
  padding: 3.1rem 0 2.4rem;
  opacity: 0.92;
  transform: translateY(var(--seo-shift)) scale(0.985);
  transition: opacity 0.46s ease, transform 0.46s ease;
  scroll-margin-top: 96px;
  isolation: isolate;
  overflow: visible;
}

.seo-section::before,
.seo-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.seo-section::before {
  inset: 20% -8% auto 12%;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127,224,216,0.54), rgba(211,141,88,0.5), transparent);
  transform: translateX(-18%);
  opacity: 0;
}

.seo-section::after {
  right: 4%;
  top: 0.5rem;
  width: 8.5rem;
  height: 8.5rem;
  border: 1px solid rgba(127,224,216,0.12);
  box-shadow: inset 0 0 28px rgba(127,224,216,0.08);
  opacity: 0.28;
  animation: seo-orbit 12s ease-in-out infinite;
}

.seo-section.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.seo-section.is-visible::before {
  animation: seo-scan 3.4s ease-in-out both;
}

.seo-section-copy {
  position: sticky;
  top: 7.4rem;
  max-width: 360px;
  border-left: 1px solid rgba(127,224,216,0.34);
  padding-left: 1rem;
}

.seo-section-copy > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.case-grid,
.faq-grid {
  display: grid;
  gap: 0.75rem;
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

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

.case-card,
.faq-grid article {
  --drift-x: 4px;
  --drift-y: -5px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22,30,29,0.58);
  backdrop-filter: blur(12px);
  cursor: pointer;
  overflow: hidden;
  transform-style: preserve-3d;
  animation: card-float 8.2s ease-in-out infinite;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease, scale 0.24s ease, box-shadow 0.24s ease;
  will-change: transform, translate, scale;
}

.case-card:nth-child(2),
.faq-grid article:nth-child(2) {
  --drift-x: -5px;
  --drift-y: 4px;
  animation-delay: -2.4s;
}

.case-card:nth-child(3),
.faq-grid article:nth-child(3) {
  --drift-x: 5px;
  --drift-y: 5px;
  animation-delay: -4.8s;
}

.case-card:nth-child(4) {
  --drift-x: -4px;
  --drift-y: -4px;
  animation-delay: -1.2s;
}

.case-card:nth-child(5) {
  --drift-x: 6px;
  --drift-y: -6px;
  animation-delay: -3.6s;
}

.case-card::before,
.faq-grid article::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background:
    radial-gradient(circle at var(--pulse-x, 50%) var(--pulse-y, 50%), rgba(255,247,236,0.18), transparent 34%),
    linear-gradient(135deg, rgba(127,224,216,0.16), rgba(211,141,88,0.16));
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background:
    linear-gradient(92deg, transparent 8%, rgba(255,247,236,0.16) 46%, rgba(127,224,216,0.16) 54%, transparent 88%);
  transform: translateX(-120%);
}

.case-card > *,
.faq-grid article > * {
  position: relative;
  z-index: 1;
}

.case-card:hover,
.faq-grid article:hover,
.case-card.is-card-active,
.faq-grid article.is-card-active {
  border-color: rgba(127,224,216,0.56);
  background: rgba(29, 42, 41, 0.72);
  scale: 1.01;
  box-shadow:
    0 20px 70px rgba(4,10,10,0.28),
    0 0 30px rgba(127,224,216,0.12);
}

.case-card.is-card-active {
  border-color: rgba(127,224,216,0.78);
  background:
    linear-gradient(135deg, rgba(127,224,216,0.08), rgba(211,141,88,0.06)),
    rgba(29, 42, 41, 0.76);
}

.case-card.is-card-active::after {
  animation: case-card-scan 2.8s ease-in-out infinite;
}

.case-card {
  min-height: 100%;
}

.case-card img {
  display: block;
  width: 100%;
  height: clamp(118px, 12.5vw, 168px);
  object-fit: contain;
  border-bottom: 1px solid var(--line);
  padding: 0.45rem;
  background:
    linear-gradient(135deg, rgba(255,247,236,0.08), rgba(127,224,216,0.05)),
    rgba(8,13,13,0.48);
  opacity: 0.78;
  filter: saturate(0.9) contrast(0.96) brightness(0.88);
  transform: scale(1);
  transition: opacity 0.28s ease, filter 0.28s ease, transform 0.28s ease, background 0.28s ease;
}

.case-card img.is-loaded {
  opacity: 1;
}

.case-card:hover img,
.case-card.is-card-active img {
  filter: saturate(1.06) contrast(1) brightness(0.96);
  transform: scale(1.018);
  background:
    linear-gradient(135deg, rgba(255,247,236,0.12), rgba(127,224,216,0.08)),
    rgba(8,13,13,0.58);
}

.case-card span,
.faq-grid article h3,
.case-card h3,
.case-card p,
.faq-grid article p {
  margin-left: 1rem;
  margin-right: 1rem;
}

.case-card span {
  display: block;
  margin-top: 1rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-card h3,
.faq-grid article h3 {
  font-size: 1.05rem;
  line-height: 1.16;
}

.case-card h3 {
  min-height: 2.35em;
}

.case-card p,
.faq-grid article p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-bottom: 1.25rem;
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(127, 224, 216, 0.4);
  padding-bottom: 2px;
  transition: color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  z-index: 10;
  position: relative;
}

.case-link:hover {
  color: var(--green);
  border-color: rgba(184, 223, 159, 0.6);
  transform: translateY(-1px);
}

.case-link svg {
  transition: transform 0.22s ease;
}

.case-link:hover svg {
  transform: translate(1px, -1px);
}

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

.trust-card,
.conversion-card {
  --drift-x: 4px;
  --drift-y: -5px;
  position: relative;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(22,30,29,0.58);
  backdrop-filter: blur(12px);
  cursor: pointer;
  overflow: hidden;
  animation: card-float 8.4s ease-in-out infinite;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease, scale 0.24s ease, box-shadow 0.24s ease;
  will-change: transform, translate, scale;
}

.trust-card:nth-child(2) {
  --drift-x: -5px;
  --drift-y: 4px;
  animation-delay: -2.4s;
}

.trust-card:nth-child(3) {
  --drift-x: 5px;
  --drift-y: 5px;
  animation-delay: -4.8s;
}

.trust-card::before,
.conversion-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background:
    radial-gradient(circle at var(--pulse-x, 50%) var(--pulse-y, 50%), rgba(255,247,236,0.2), transparent 34%),
    linear-gradient(135deg, rgba(127,224,216,0.16), rgba(211,141,88,0.16));
}

.trust-card::after,
.conversion-card::after {
  content: "";
  position: absolute;
  inset: auto 1rem 0.72rem;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(211,141,88,0), rgba(127,224,216,0.64), rgba(211,141,88,0));
  opacity: 0.36;
}

.trust-card > *,
.conversion-card > * {
  position: relative;
  z-index: 1;
}

.trust-card:hover,
.trust-card.is-card-active,
.conversion-card:hover,
.conversion-card.is-card-active {
  border-color: rgba(127,224,216,0.58);
  background: rgba(29, 42, 41, 0.72);
  scale: 1.01;
  box-shadow:
    0 20px 70px rgba(4,10,10,0.26),
    0 0 30px rgba(127,224,216,0.12);
}

.trust-card span,
.conversion-card span {
  display: block;
  margin-bottom: 0.78rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-card h3,
.conversion-card h3 {
  font-size: 1.05rem;
  line-height: 1.16;
}

.trust-card p,
.conversion-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.48;
}

.conversion-card {
  max-width: 520px;
  min-height: auto;
  padding: clamp(1rem, 2.2vw, 1.35rem);
}

.conversion-card p {
  margin-bottom: 1rem;
}

@keyframes seo-scan {
  0% {
    transform: translateX(-22%);
    opacity: 0;
  }
  28%, 72% {
    opacity: 1;
  }
  100% {
    transform: translateX(18%);
    opacity: 0;
  }
}

@keyframes seo-orbit {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  42% {
    transform: translate3d(-8px, 10px, 0) rotate(10deg);
  }
  72% {
    transform: translate3d(8px, -6px, 0) rotate(-8deg);
  }
}

.noscript-panel {
  position: relative;
  z-index: 20;
  width: min(calc(100% - 2rem), 760px);
  margin: 2rem auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: var(--panel);
}

.site-footer {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 0.9rem 1rem;
  align-items: center;
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto 2rem;
  border: 1px solid rgba(255,247,236,0.16);
  border-radius: var(--radius);
  padding: 0.85rem;
  background: rgba(22, 29, 28, 0.7);
  backdrop-filter: blur(18px);
  overflow: hidden;
  isolation: isolate;
  animation: footer-breathe 7.2s ease-in-out infinite;
  box-shadow: 0 18px 70px rgba(4, 10, 10, 0.2);
}

.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.site-footer::before {
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--footer-glow-x, 18%) 18%, rgba(127,224,216,0.14), transparent 28%),
    linear-gradient(90deg, transparent, rgba(211,141,88,0.16), rgba(127,224,216,0.18), transparent);
  opacity: 0.58;
  animation: footer-aurora 9s ease-in-out infinite;
}

.site-footer::after {
  top: 0;
  bottom: 0;
  left: -28%;
  z-index: 0;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255,247,236,0.18), transparent);
  transform: skewX(-18deg);
  animation: footer-scan 6.8s ease-in-out infinite;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}

.footer-brand img {
  flex: 0 0 auto;
  border-radius: var(--radius);
  filter: drop-shadow(0 10px 18px rgba(4,10,10,0.22));
  animation: footer-logo-pulse 4.8s ease-in-out infinite;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.footer-brand span,
.footer-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.42rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(255,247,236,0.14);
  border-radius: var(--radius);
  padding: 0.5rem 0.62rem;
  color: rgba(255,247,236,0.78);
  font-size: 0.82rem;
  font-weight: 800;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-meta a:hover,
.footer-meta a:focus-visible {
  border-color: rgba(127,224,216,0.46);
  color: var(--ink);
  background: rgba(127,224,216,0.08);
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 0;
  border-top: 1px solid rgba(255,247,236,0.1);
  padding-top: 0.76rem;
}

.footer-meta a {
  border-bottom: 1px solid rgba(127,224,216,0.32);
  color: var(--ink);
  font-weight: 900;
}

@keyframes footer-breathe {
  0%, 100% {
    border-color: rgba(255,247,236,0.16);
    box-shadow: 0 18px 70px rgba(4, 10, 10, 0.2);
  }
  50% {
    border-color: rgba(127,224,216,0.28);
    box-shadow: 0 18px 70px rgba(4, 10, 10, 0.2), 0 0 30px rgba(127,224,216,0.08);
  }
}

@keyframes footer-aurora {
  0%, 100% {
    opacity: 0.38;
    transform: translateX(-4%);
  }
  52% {
    opacity: 0.72;
    transform: translateX(4%);
  }
}

@keyframes footer-scan {
  0%, 42% {
    opacity: 0;
    transform: translateX(0) skewX(-18deg);
  }
  56% {
    opacity: 1;
  }
  78%, 100% {
    opacity: 0;
    transform: translateX(620%) skewX(-18deg);
  }
}

@keyframes footer-logo-pulse {
  0%, 100% {
    filter: drop-shadow(0 10px 18px rgba(4,10,10,0.22));
  }
  50% {
    filter: drop-shadow(0 10px 18px rgba(4,10,10,0.2)) drop-shadow(0 0 16px rgba(211,141,88,0.3));
  }
}

.legal-page {
  background:
    radial-gradient(circle at 18% 12%, rgba(211,141,88,0.16), transparent 30%),
    radial-gradient(circle at 84% 24%, rgba(127,224,216,0.12), transparent 32%),
    var(--bg);
}

.legal-main {
  position: relative;
  z-index: 10;
  width: min(calc(100% - 2rem), 920px);
  margin: 0 auto;
  padding: 8.4rem 0 2rem;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(22, 29, 28, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 70px rgba(4, 10, 10, 0.24);
}

.legal-card h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.legal-card h2 {
  margin-top: 1.65rem;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.62;
}

.legal-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.legal-card a {
  color: var(--ink);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(127,224,216,0.42);
  text-underline-offset: 0.18em;
}

@media (max-width: 980px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 0.55rem;
    row-gap: 0;
    align-items: center;
  }

  .site-header.is-menu-open {
    row-gap: 0.55rem;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .menu-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .header-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
    width: 100%;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.24s ease, transform 0.24s ease;
  }

  .site-header.is-menu-open nav {
    max-height: 130px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-header nav a {
    display: inline-flex;
    justify-content: center;
    min-height: 40px;
    padding: 0.62rem 0.52rem;
    text-align: center;
  }

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

  .story-left,
  .story-right {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .story-left .story-card,
  .story-left .section-copy,
  .story-right .story-card,
  .story-right .section-copy,
  .services .card-grid,
  .process .timeline,
  .portfolio .project-switcher,
  .packages .package-grid,
  .hero .scene-tool {
    grid-column: 1;
    grid-row: auto;
  }

  .section {
    min-height: 68svh;
    padding: 5.1rem 0 1.8rem;
  }

  .hero {
    min-height: 78svh;
  }

  .contact {
    min-height: 54svh;
  }

  .story-card::after {
    display: none;
  }

  .section {
    align-items: stretch;
  }

  .section-copy,
  .story-card,
  .control-panel,
  .project-switcher {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }

  .card-grid {
    flex-wrap: wrap;
    justify-self: stretch;
    max-width: 100%;
    padding-left: 0;
  }

  .package-grid {
    flex-wrap: wrap;
    justify-self: stretch;
    max-width: 100%;
    padding-left: 0;
  }

  .card-grid .tilt-card,
  .package-grid .price-card {
    width: calc((100% - 0.5rem) / 2);
  }

  .timeline {
    justify-self: stretch;
    max-width: 100%;
  }

  .portfolio .project-switcher {
    justify-self: stretch;
    max-width: 100%;
  }

  .price-card.featured {
    transform: none;
  }

  .seo-section {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 3rem 0 2rem;
  }

  .seo-section-copy {
    position: relative;
    top: auto;
    max-width: 100%;
  }

  .case-grid,
  .faq-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .case-card img {
    height: clamp(128px, 34vw, 180px);
  }
}

@media (max-width: 620px) {
  .scene-shade,
  body[data-step="1"] .scene-shade,
  body[data-step="3"] .scene-shade,
  body[data-step="5"] .scene-shade {
    background:
      linear-gradient(180deg, rgba(15,21,20,0.66), rgba(24,32,31,0.12) 34%, rgba(15,21,20,0.68)),
      linear-gradient(90deg, rgba(15,21,20,0.64), rgba(24,32,31,0.12), rgba(15,21,20,0.64));
  }

  body[data-step="5"] .scene-shade {
    background:
      linear-gradient(180deg, rgba(15,21,20,0.82), rgba(15,21,20,0.34) 36%, rgba(15,21,20,0.82)),
      linear-gradient(90deg, rgba(15,21,20,0.82), rgba(15,21,20,0.36), rgba(15,21,20,0.78));
  }

  body[data-step="2"] #project-bg {
    opacity: 0.2;
    filter: blur(44px) saturate(1.45) brightness(0.32);
    transform: scale(1.08);
  }

  .site-header {
    top: 0.5rem;
    width: min(calc(100% - 1rem), var(--container));
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 0.45rem;
  }

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

  .site-header.is-menu-open nav {
    max-height: 220px;
  }

  .site-header nav a {
    min-height: 38px;
    padding: 0.58rem 0.5rem;
  }

  .brand-logo {
    width: 2.2rem;
    height: 2.2rem;
  }

  .brand small {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    white-space: nowrap;
  }

  .menu-toggle {
    min-height: 40px;
    padding: 0.58rem 0.62rem;
    font-size: 0.84rem;
  }

  .header-actions {
    justify-self: end;
    gap: 0.32rem;
  }

  .lang-link,
  .header-cta {
    padding: 0.62rem 0.72rem;
    font-size: 0.86rem;
  }

  .lang-link {
    padding-inline: 0.54rem;
  }

  .section {
    width: min(calc(100% - 2rem), var(--container));
    min-height: 62svh;
    padding: 5.2rem 0 1.25rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 72svh;
  }

  .contact {
    min-height: 48svh;
  }

  .story-card {
    --drift-x: 0px;
    --drift-y: -3px;
    max-width: 100%;
    padding: 0.95rem;
  }

  .control-panel,
  .project-switcher,
  .tilt-card,
  .timeline article,
  .price-card {
    --drift-x: 0px;
    --drift-y: -3px;
  }

  h1 {
    font-size: 2.38rem;
  }

  h2 {
    font-size: 2rem;
  }

  .actions,
  .control-panel {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .portfolio {
    min-height: 84svh;
  }

  .portfolio .project-switcher {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.38rem;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(24, 33, 32, 0.5);
  }

  .portfolio .project-switcher button {
    width: 100%;
    min-height: 42px;
    padding: 0.48rem 0.35rem;
    font-size: 0.72rem;
    line-height: 1.1;
    text-wrap: balance;
  }

  .control-panel {
    justify-self: stretch;
  }

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

  .seo-section {
    width: min(calc(100% - 2rem), var(--container));
  }

  .site-footer,
  .legal-main {
    width: min(calc(100% - 2rem), var(--container));
  }

  .footer-links a {
    justify-content: center;
    flex: 1 1 calc(50% - 0.42rem);
  }

  .seo-section::after {
    width: 5rem;
    height: 5rem;
    right: 0;
  }

  .case-card,
  .faq-grid article,
  .trust-card,
  .conversion-card {
    --drift-x: 0px;
    --drift-y: -3px;
  }

  .case-card:hover,
  .case-card.is-card-active,
  .faq-grid article:hover,
  .faq-grid article.is-card-active,
  .trust-card:hover,
  .trust-card.is-card-active,
  .conversion-card:hover,
  .conversion-card.is-card-active {
    scale: 1;
  }

  .case-card img {
    height: 140px;
  }

  .card-grid .tilt-card,
  .package-grid .price-card {
    width: 100%;
    margin-left: 0;
  }

  .card-grid .tilt-card + .tilt-card,
  .package-grid .price-card + .price-card {
    margin-left: 0;
  }

  .card-grid .tilt-card:nth-child(2),
  .card-grid .tilt-card:nth-child(3),
  .package-grid .price-card:nth-child(2),
  .package-grid .price-card:nth-child(3) {
    transform: none;
  }
}

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