﻿:root {
  --bg: #f7f5ff;
  --surface: #ffffff;
  --surface-soft: #f2ecff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --text: #18132b;
  --muted: #5f567b;
  --primary: #6f3dff;
  --primary-strong: #5426db;
  --accent: #9e77ff;
  --line: #e7dcff;
  --success: #1f9d75;
  --shadow-soft: 0 12px 30px rgba(84, 38, 219, 0.08);
  --shadow-md: 0 18px 42px rgba(83, 33, 214, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: min(1140px, 92vw);
  --header-h: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 14% -6%, #eee6ff 0%, #f8f6ff 44%, #f8f9ff 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

main {
  padding-top: calc(var(--header-h) + 8px);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.hero-title {
  margin-top: 1rem;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.08;
}

.title-sora {
  font-family: "Sora", "Segoe UI", sans-serif;
}

.text-muted {
  color: var(--muted);
}

.mt-03 {
  margin-top: 0.3rem;
}

.mt-05 {
  margin-top: 0.5rem;
}

.mt-08 {
  margin-top: 0.8rem;
}

.mt-09 {
  margin-top: 0.9rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mb-08 {
  margin-bottom: 0.8rem;
}

.list-offset {
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.section {
  position: relative;
  padding: 5.4rem 0;
  overflow: hidden;
  isolation: isolate;
}

.section.compact {
  padding: 4.2rem 0;
}

.section > .container {
  position: relative;
  z-index: 2;
}

.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin-top: 0.95rem;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.18;
}

.section-head p {
  margin-top: 0.9rem;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.44rem 0.86rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(111, 61, 255, 0.12);
  color: var(--primary-strong);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

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

.btn {
  appearance: none;
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 12px;
  padding: 0.84rem 1.28rem;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(132deg, #6f3dff, #8f62ff);
  box-shadow: 0 12px 24px rgba(101, 46, 226, 0.34);
}

.btn-primary:hover {
  box-shadow: 0 16px 28px rgba(101, 46, 226, 0.4);
}

.btn-secondary {
  color: var(--primary-strong);
  background: #ece3ff;
  border: 1px solid #dccdff;
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
  transform-style: preserve-3d;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
  border-color: #d3c1ff;
  box-shadow: var(--shadow-md);
}

.card h3 {
  font-size: 1.1rem;
  line-height: 1.3;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 0.95rem;
}

.card ul {
  padding-left: 1rem;
  margin-top: 0.6rem;
}

.card li {
  margin: 0.26rem 0;
}

.card-media {
  position: relative;
  margin: -0.15rem -0.15rem 0.78rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e3d6ff;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #f1e9ff, #ffffff);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.34s ease, filter 0.34s ease;
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.card-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(19, 10, 45, 0), rgba(19, 10, 45, 0.32));
  pointer-events: none;
}

.card-media-label {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.story-media {
  position: relative;
  isolation: isolate;
  margin: -0.1rem -0.1rem 0.74rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e0d1ff;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #f4edff, #fff);
  box-shadow: inset 0 -42px 56px rgba(17, 8, 45, 0.18), 0 9px 24px rgba(111, 61, 255, 0.12);
}

.story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 38%);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.35s ease;
  filter: saturate(1.02) contrast(1.02);
}

body[data-page="case-studies"] .story-step:hover .story-media img {
  transform: scale(1.05);
  filter: saturate(1.11) contrast(1.06);
}

body[data-page="services"] .solutions-zigzag {
  display: grid;
  gap: 1rem;
}

body[data-page="services"] .solution-card {
  padding: 1rem;
}

body[data-page="services"] .solution-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
  align-items: start;
}

body[data-page="services"] .solution-image {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e0d1ff;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #f4edff, #fff);
}

body[data-page="services"] .solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

body[data-page="services"] .solution-card:hover .solution-image img {
  transform: scale(1.05);
}

body[data-page="services"] .solution-card:nth-child(even) .solution-content {
  order: 2;
}

body[data-page="services"] .solution-card:nth-child(even) .solution-image {
  order: 1;
}

body[data-page="services"] .solution-content h3 {
  margin-bottom: 0.2rem;
}

.project-note {
  margin-top: 0.8rem;
  padding: 0.65rem 0.72rem;
  border-radius: 11px;
  border: 1px solid #e2d4ff;
  background: #faf6ff;
  color: #5f537f;
  font-size: 0.88rem;
}

.project-note strong {
  color: #412c80;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(166, 133, 255, 0.36), transparent 32%),
    radial-gradient(circle at 84% 80%, rgba(110, 61, 255, 0.22), transparent 34%),
    linear-gradient(155deg, #f3edff 0%, #f9f9ff 58%, #f4f7ff 100%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.site-loader::before,
.site-loader::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.site-loader::before {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(126, 83, 245, 0.22), rgba(126, 83, 245, 0));
  animation: loaderGlow 7s ease-in-out infinite;
}

.site-loader::after {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: -90px;
  background: radial-gradient(circle, rgba(126, 83, 245, 0.16), rgba(126, 83, 245, 0));
  animation: loaderGlow 8.4s ease-in-out infinite reverse;
}

.loader-shell {
  position: relative;
  width: min(420px, 90vw);
  padding: 1.35rem 1.1rem 1.1rem;
  border-radius: 24px;
  border: 1px solid rgba(216, 199, 255, 0.95);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(250, 247, 255, 0.9));
  box-shadow: 0 24px 42px rgba(74, 32, 182, 0.14);
  backdrop-filter: blur(10px);
  display: grid;
  justify-items: center;
  gap: 0.72rem;
}

.loader-shell::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(122, 79, 241, 0), rgba(122, 79, 241, 0.55), rgba(122, 79, 241, 0));
}

.loader-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1.5px solid rgba(118, 70, 242, 0.24);
  border-top-color: rgba(118, 70, 242, 0.82);
  transform: translate(-50%, -58%);
  animation: loaderSpin 2.2s linear infinite;
}

.loader-orbit-2 {
  width: 170px;
  height: 170px;
  border-color: rgba(118, 70, 242, 0.16);
  border-bottom-color: rgba(118, 70, 242, 0.55);
  animation-duration: 3.4s;
  animation-direction: reverse;
}

.loader-brand {
  width: 98px;
  height: 98px;
  border-radius: 22px;
  border: 1px solid #deceff;
  background: linear-gradient(140deg, #ffffff, #f1e8ff);
  box-shadow: 0 14px 26px rgba(86, 41, 206, 0.18);
  display: grid;
  place-items: center;
  animation: loaderFloat 2.8s ease-in-out infinite;
  z-index: 2;
}

.loader-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 14px;
  filter: drop-shadow(0 2px 6px rgba(86, 41, 206, 0.18));
}

.loader-text {
  margin-top: 0.2rem;
  text-align: center;
  color: #4c3b7d;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.loader-progress {
  width: min(78%, 260px);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #ddcdff;
  background: #f5efff;
}

.loader-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6f3dff, #9b7cff, #6f3dff);
  background-size: 200% 100%;
  animation: loaderBar 1.2s ease-in-out infinite, loaderBarGlow 2s linear infinite;
}

@keyframes loaderSpin {
  to { transform: translate(-50%, -58%) rotate(360deg); }
}

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

@keyframes loaderBar {
  0% { transform: translateX(-45%); }
  50% { transform: translateX(116%); }
  100% { transform: translateX(-45%); }
}

@keyframes loaderBarGlow {
  to { background-position: 200% 0; }
}

@keyframes loaderGlow {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

.cursor-ring {
  position: fixed;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(118, 63, 255, 0.35);
  background: rgba(118, 63, 255, 0.08);
  pointer-events: none;
  z-index: 2100;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
  transition: transform 0.08s linear, opacity 0.2s ease;
}

.cursor-ring.hidden {
  opacity: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1800;
  border-bottom: 1px solid transparent;
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-color: #e9ddff;
  box-shadow: 0 10px 28px rgba(78, 35, 201, 0.1);
  backdrop-filter: blur(10px);
}

.header-row {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 0.34rem 0.62rem 0.34rem 0.4rem;
  border-radius: 14px;
  border: 1px solid #dbcaff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(245, 238, 255, 0.92));
  box-shadow: 0 10px 24px rgba(86, 41, 206, 0.12);
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.brand:hover {
  transform: translateY(-1px);
  border-color: #c8adff;
  box-shadow: 0 14px 28px rgba(86, 41, 206, 0.18);
}

.brand::after {
  content: "";
  position: absolute;
  top: -120%;
  bottom: -120%;
  width: 58px;
  left: -70px;
  transform: rotate(18deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0));
  pointer-events: none;
  transition: left 0.52s ease;
}

.brand:hover::after {
  left: calc(100% + 22px);
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 7px rgba(95, 53, 201, 0.2));
}

.brand-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.05;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
  line-height: 1.15;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-desktop a {
  text-decoration: none;
  color: #372f53;
  font-weight: 700;
  font-size: 0.93rem;
  position: relative;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.34rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6f3dff, #9d7bff);
  transition: width 0.2s ease;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--primary-strong);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

.header-cta {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  border: 1px solid #dccdff;
  background: #efe7ff;
  color: #4a318c;
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #ece2ff;
  border-bottom: 1px solid #ece2ff;
  box-shadow: 0 14px 24px rgba(95, 54, 206, 0.12);
  padding: 1rem 4vw 1.2rem;
  transform: translateY(-120%);
  transition: transform 0.3s ease;
  z-index: 1700;
}

.nav-mobile.open {
  transform: translateY(0);
}

.nav-mobile a {
  display: block;
  text-decoration: none;
  color: #3f3860;
  font-weight: 700;
  padding: 0.7rem 0.1rem;
  border-bottom: 1px solid #efe7ff;
}

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

.nav-mobile .btn {
  margin-top: 0.8rem;
  width: 100%;
}

.hero {
  padding-top: 2.3rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.2rem;
  align-items: center;
}

.hero h1 {
  margin-top: 1rem;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
}

.hero p {
  margin-top: 1.1rem;
  color: var(--muted);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.proof-strip {
  margin-top: 1.35rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.proof-item {
  padding: 0.66rem 0.78rem;
  border-radius: 12px;
  background: #f2ebff;
  border: 1px solid #e1d2ff;
  font-size: 0.86rem;
  color: #4f4570;
}

.hero-visual {
  border-radius: var(--radius-lg);
  border: 1px solid #dfd2ff;
  background: linear-gradient(145deg, #f4efff, #fff);
  padding: 0.95rem;
  box-shadow: var(--shadow-md);
}

.hero-visual model-viewer {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  background: radial-gradient(circle at 40% 20%, #fff, #efe6ff);
}

.hero-visual p {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.model-showcase-grid {
  margin-top: 0.4rem;
  display: grid;
  gap: 0.9rem;
}

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

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

.model-showcase-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfd1ff;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, #ffffff, #f8f3ff);
  box-shadow: var(--shadow-soft);
  padding: 0.72rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.model-showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(180px 95px at 84% -8%, rgba(174, 145, 255, 0.25), rgba(174, 145, 255, 0));
}

.model-showcase-card:hover {
  transform: translateY(-4px);
  border-color: #ccb6ff;
  box-shadow: var(--shadow-md);
}

.model-showcase-card model-viewer {
  width: 100%;
  height: clamp(166px, 19vw, 224px);
  display: block;
  border-radius: 12px;
  border: 1px solid #e2d4ff;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.92), rgba(240, 231, 255, 0.85) 54%, rgba(233, 221, 255, 0.8));
}

.model-showcase-card h3 {
  margin-top: 0.68rem;
  font-size: 0.97rem;
}

.model-showcase-card p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.48;
}

body[data-page="portfolio"] .model-showcase-card model-viewer {
  height: clamp(160px, 18vw, 208px);
}

body[data-page="case-studies"] .model-showcase-card model-viewer {
  height: clamp(160px, 18vw, 205px);
}

.split-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.kpi-chip {
  display: inline-flex;
  margin-top: 0.8rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: #f1e9ff;
  color: #4c3888;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.72rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.8rem;
  padding: 0.95rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.timeline-index {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ece2ff;
  color: #4f28b9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.timeline h3 {
  font-size: 1rem;
  margin-bottom: 0.18rem;
}

.timeline p {
  color: var(--muted);
  font-size: 0.92rem;
}

.pricing-card {
  position: relative;
}

.pricing-card .price {
  margin-top: 0.5rem;
  margin-bottom: 0.72rem;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.76rem;
}

.pricing-card .price small {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.pricing-card.featured {
  background: linear-gradient(145deg, #6934f5, #5a2ed5);
  border-color: transparent;
}

.pricing-card.featured h3,
.pricing-card.featured .price,
.pricing-card.featured p,
.pricing-card.featured li {
  color: #fff;
}

.pricing-card.featured .price small {
  color: rgba(255, 255, 255, 0.82);
}

.pricing-card .pill {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.19);
}

.founder-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
}

.founder-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.82rem;
}

.founder-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 3px;
  overflow: hidden;
  background: conic-gradient(from 140deg, #6f3dff, #9d79ff, #c29fff, #6f3dff);
  box-shadow: 0 12px 24px rgba(93, 47, 214, 0.3);
  margin-bottom: 0;
}

.founder-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.founder-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: 52% 24%;
  background: #fff;
}

.founder-name {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #32265e;
  line-height: 1.2;
}

.cta-block {
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  background: linear-gradient(145deg, #6f3dff, #8d5fff);
  color: #fff;
  box-shadow: 0 20px 40px rgba(93, 47, 214, 0.36);
}

.cta-block h2 {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.6rem, 2.9vw, 2.3rem);
}

.cta-block p {
  margin: 0.7rem auto 1.3rem;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.9);
}

.selector-shell {
  margin-top: 0.8rem;
  border: 1px solid #deceff;
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.selector-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.selector-tabs button {
  border: 1px solid #d8c5ff;
  background: #f4edff;
  color: #422f77;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.selector-tabs button:hover {
  transform: translateY(-1px);
}

.selector-tabs button.active {
  background: linear-gradient(135deg, #6f3dff, #8f62ff);
  color: #fff;
  border-color: transparent;
}

.selector-result {
  margin-top: 0.9rem;
  padding: 0.9rem;
  border-radius: 12px;
  background: #faf7ff;
  border: 1px solid #e8dcff;
}

.selector-result h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.selector-result p {
  font-size: 0.92rem;
  color: var(--muted);
}

.calculator {
  border: 1px solid #dfd0ff;
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.calc-row {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.78rem;
}

.calc-row label {
  font-size: 0.83rem;
  font-weight: 800;
  color: #4e426f;
}

.calc-row input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.calc-row select {
  font: inherit;
  border: 1px solid #d8c7ff;
  border-radius: 10px;
  background: #faf8ff;
  padding: 0.58rem 0.65rem;
}

.calc-value {
  font-size: 0.84rem;
  color: var(--muted);
}

.calc-output {
  margin-top: 0.4rem;
  border-radius: 12px;
  background: #efe6ff;
  border: 1px solid #dbc9ff;
  padding: 0.75rem;
}

.calc-output strong {
  display: block;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.24rem;
  color: #4127a2;
}

.before-after {
  border: 1px solid #deceff;
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.ba-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 220px;
  background: linear-gradient(145deg, #f6f0ff, #fff);
  border: 1px solid #e5d9ff;
}

.ba-pane {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.ba-pane h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.ba-pane p {
  color: var(--muted);
  font-size: 0.9rem;
}

.ba-before {
  background: linear-gradient(145deg, #ffeef4, #fff);
}

.ba-after {
  background: linear-gradient(145deg, #e9fff6, #fff);
  clip-path: inset(0 0 0 50%);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  left: 50%;
  background: rgba(96, 60, 196, 0.5);
  cursor: ew-resize;
}

.ba-handle::before {
  content: "< >";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d9c8ff;
  color: #5235ac;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-btn {
  border: 1px solid #d8c7ff;
  background: #f4ecff;
  color: #442d84;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  font-size: 0.81rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-btn.active {
  background: linear-gradient(130deg, #6f3dff, #8f62ff);
  color: #fff;
  border-color: transparent;
}

.project-card {
  position: relative;
  overflow: hidden;
}

body[data-page="portfolio"] .project-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --card-shine-x: 50%;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 0.2s ease, box-shadow 0.24s ease, border-color 0.24s ease, opacity 0.22s ease, filter 0.22s ease;
  will-change: transform;
}

body[data-page="portfolio"] .project-card:hover {
  transform: perspective(900px) translateY(-8px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

body[data-page="portfolio"] .project-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    140px 90px at var(--card-shine-x, 50%) -10%,
    rgba(184, 158, 255, 0.42),
    rgba(184, 158, 255, 0) 72%
  );
  transition: opacity 0.2s ease;
}

body[data-page="portfolio"] .project-card:hover::after {
  opacity: 1;
}

body[data-page="portfolio"] .project-card.filtering-out {
  opacity: 0;
  filter: blur(1.8px);
}

body[data-page="portfolio"] .project-card.filtering-in {
  animation: projectFadeIn 0.32s ease;
}

body[data-page="portfolio"] .project-card.is-hidden {
  display: none;
}

.project-thumb {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.86rem;
  border-radius: 14px;
  border: 1px solid #e0d1ff;
  background: linear-gradient(145deg, #f4edff, #fff);
  height: clamp(156px, 18vw, 206px);
  display: grid;
  align-items: end;
  justify-items: start;
  padding: 0.72rem;
  font-family: "Sora", "Segoe UI", sans-serif;
  color: #ffffff;
  font-weight: 700;
  box-shadow: inset 0 -42px 58px rgba(17, 8, 45, 0.24), 0 10px 24px rgba(111, 61, 255, 0.11);
  isolation: isolate;
}

.project-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: transform 0.45s ease, filter 0.35s ease;
  filter: saturate(1.02) contrast(1.02);
}

.project-thumb span {
  position: relative;
  z-index: 3;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(18, 10, 44, 0.48);
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.42);
}

body[data-page="portfolio"] .project-card:hover .project-thumb img {
  transform: scale(1.08);
  filter: saturate(1.14) contrast(1.06);
}

body[data-page="portfolio"] .project-thumb {
  transform: translateZ(0);
}

body[data-page="portfolio"] .project-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(120, 78, 235, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 78, 235, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
  mix-blend-mode: multiply;
  animation: thumbGridShift 8s linear infinite;
}

body[data-page="portfolio"] .project-thumb::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 46%;
  left: -58%;
  z-index: 2;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  animation: thumbSweep 3.8s ease-in-out infinite;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.project-tag {
  font-size: 0.72rem;
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  background: #efe6ff;
  color: #5638b0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2000;
  background: rgba(19, 10, 45, 0.55);
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(620px, 100%);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid #e2d3ff;
  box-shadow: 0 24px 46px rgba(40, 18, 102, 0.34);
  padding: 1rem;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.modal-close {
  border: 1px solid #dccdff;
  background: #f4ebff;
  color: #4f338f;
  border-radius: 10px;
  padding: 0.35rem 0.58rem;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.storyline {
  position: relative;
  margin-top: 1rem;
  --story-progress: 0;
}

.storyline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 999px;
  background: rgba(113, 69, 235, 0.16);
}

.storyline::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 999px;
  transform-origin: top center;
  transform: scaleY(var(--story-progress));
  background: linear-gradient(180deg, #8f64ff 0%, #6f3dff 55%, #d3beff 100%);
  box-shadow: 0 0 14px rgba(111, 61, 255, 0.42);
}

.story-step {
  position: relative;
  margin-left: 2.2rem;
  padding: 0.92rem;
  border-radius: var(--radius-md);
  border: 1px solid #e5daff;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease, background-color 0.32s ease;
}

body[data-page="case-studies"] .story-step {
  padding-bottom: 0.86rem;
}

body[data-page="case-studies"] .story-step .story-media {
  margin: -0.08rem -0.08rem 0.68rem;
  height: clamp(158px, 17.5vw, 214px);
  aspect-ratio: auto;
}

.story-step + .story-step {
  margin-top: 0.9rem;
}

.story-step::before {
  content: "";
  position: absolute;
  left: -1.58rem;
  top: 1.05rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #7340ff;
  box-shadow: 0 0 0 4px #efe4ff;
}

body[data-page="case-studies"] .story-step::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  top: 0.42rem;
  height: 2px;
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(111, 61, 255, 0.95), rgba(185, 161, 255, 0.45));
  transition: transform 0.35s ease;
}

body[data-page="case-studies"] .story-step.is-active {
  transform: translateX(6px);
  border-color: #ceb8ff;
  background: linear-gradient(165deg, #ffffff 0%, #fbf8ff 100%);
  box-shadow: 0 18px 34px rgba(91, 42, 218, 0.16);
}

body[data-page="case-studies"] .story-step.is-active::before {
  animation: stepPulse 1.4s ease-in-out infinite;
}

body[data-page="case-studies"] .story-step.is-active::after {
  transform: scaleX(1);
}

.story-step h3 {
  font-size: 1rem;
  margin-bottom: 0.24rem;
}

.story-step p,
.story-step li {
  color: var(--muted);
  font-size: 0.92rem;
}

body[data-page="case-studies"] .story-step p {
  margin: 0.28rem 0;
}

body[data-page="case-studies"] .story-client {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #50389a;
}

body[data-page="case-studies"] .story-insights {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0.66rem;
  margin-top: 0.6rem;
}

body[data-page="case-studies"] .story-features,
body[data-page="case-studies"] .story-result {
  border: 1px solid #dfd0ff;
  border-radius: 12px;
  background: linear-gradient(145deg, #faf6ff, #ffffff);
  padding: 0.62rem 0.7rem;
}

body[data-page="case-studies"] .story-features h4,
body[data-page="case-studies"] .story-result h4 {
  margin: 0 0 0.34rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c3cb6;
}

body[data-page="case-studies"] .story-features ul {
  margin: 0;
  padding-left: 0.95rem;
}

body[data-page="case-studies"] .story-features li {
  margin: 0.16rem 0;
  font-size: 0.84rem;
}

body[data-page="case-studies"] .story-result p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.story-step ul {
  padding-left: 1rem;
  margin-top: 0.2rem;
}

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

.value-block {
  border: 1px solid #e4d8ff;
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.value-block h4 {
  margin-bottom: 0.35rem;
  font-size: 0.96rem;
}

.value-block p {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.metric {
  border: 1px solid #e3d6ff;
  border-radius: 14px;
  background: #fff;
  padding: 0.9rem;
  text-align: center;
}

.metric strong {
  display: block;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.3rem;
  color: #4a2aa7;
}

.metric span {
  color: var(--muted);
  font-size: 0.84rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.contact-box {
  border: 1px solid #dfd2ff;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.contact-box h3 {
  margin-bottom: 0.5rem;
}

.contact-box p,
.contact-box li {
  color: var(--muted);
}

.quick-links {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.quick-links a {
  text-decoration: none;
  color: #432f7d;
  font-weight: 700;
}

.promise {
  display: inline-flex;
  margin-top: 0.8rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #4c35a3;
  background: #ece4ff;
}

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

.field {
  display: grid;
  gap: 0.3rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #4e446b;
}

.field input,
.field textarea,
.field select {
  font: inherit;
  border: 1px solid #d9c9ff;
  border-radius: 10px;
  padding: 0.65rem 0.72rem;
  background: #fbf9ff;
  color: #1d1731;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: #7a53ff;
  box-shadow: 0 0 0 3px rgba(111, 61, 255, 0.13);
}

.form-note {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.simulator {
  border: 1px solid #ddceff;
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.sim-track {
  display: grid;
  gap: 0.5rem;
}

.sim-step {
  border: 1px solid #e5d9ff;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  background: #faf7ff;
  color: #5d4f86;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sim-step.active {
  background: #ece3ff;
  border-color: #c8adff;
  color: #3c2f68;
}

.sim-step.done {
  background: #ebfbf4;
  border-color: #c1f0db;
  color: #237756;
}

.sim-foot {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer {
  margin-top: 4.8rem;
  background: #fff;
  border-top: 1px solid #e8ddff;
}

.footer-inner {
  padding: 2.4rem 0 1.1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 1rem;
}

.footer-title {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.footer-brand p {
  color: var(--muted);
  max-width: 34ch;
  font-size: 0.9rem;
}

.footer-logo {
  width: clamp(140px, 20vw, 210px);
  height: auto;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 2px 8px rgba(95, 53, 201, 0.18));
}

.footer-links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #4f4668;
  font-size: 0.9rem;
  transition: color 0.22s ease, transform 0.22s ease;
}

.footer-nav-links a {
  gap: 0.45rem;
  padding-right: 0.18rem;
}

.footer-nav-links a::before {
  content: "";
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #8457ff, #b18dff);
  box-shadow: 0 0 0 0 rgba(132, 87, 255, 0.2);
  opacity: 0;
  transform: scale(0.3);
  transition: transform 0.24s ease, opacity 0.24s ease, box-shadow 0.24s ease;
}

.footer-nav-links a::after {
  content: "";
  position: absolute;
  left: 0.94rem;
  right: 0;
  bottom: -0.18rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6f3dff, #b695ff);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.footer-nav-links a:hover {
  transform: translateX(6px);
  color: var(--primary-strong);
}

.footer-nav-links a:hover::before {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 0 4px rgba(132, 87, 255, 0.16);
}

.footer-nav-links a:hover::after {
  transform: scaleX(1);
}

.footer-links a:hover {
  color: var(--primary-strong);
}

.footer-map-wrap {
  display: grid;
  gap: 0.55rem;
}

.footer-map-frame {
  width: 100%;
  border: 1px solid #ddcdff;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #f7f2ff, #ffffff);
  box-shadow: 0 10px 20px rgba(98, 55, 218, 0.1);
  aspect-ratio: 16 / 10;
}

.footer-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #4a3192;
  border: 1px solid #d7c5ff;
  border-radius: 999px;
  background: #f5edff;
  padding: 0.34rem 0.64rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.map-link:hover {
  transform: translateY(-1px);
  background: #efe2ff;
  box-shadow: 0 8px 16px rgba(103, 60, 223, 0.16);
}

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

.socials-icons {
  margin-top: 0.1rem;
}

.socials-icons a {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid #ddceff;
  background: linear-gradient(145deg, #f6efff, #ffffff);
  color: #503792;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.socials-icons a svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.socials-icons a:nth-child(1) {
  animation: socialDrift 3.6s ease-in-out infinite;
}

.socials-icons a:nth-child(2) {
  animation: socialDrift 3.6s ease-in-out 0.3s infinite;
}

.socials-icons a:nth-child(3) {
  animation: socialDrift 3.6s ease-in-out 0.6s infinite;
}

.socials-icons a:hover {
  transform: translateY(-3px) scale(1.03);
  background: linear-gradient(135deg, #6f3dff, #9267ff);
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(88, 44, 206, 0.26);
  border-color: transparent;
}

.socials-icons a:focus-visible,
.map-link:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid #8f69ff;
  outline-offset: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
  .socials-icons a {
    animation: none !important;
  }
}

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

.socials a:hover {
  color: inherit;
}

.footer-bottom {
  margin-top: 1.3rem;
  border-top: 1px solid #eee6ff;
  padding-top: 0.9rem;
  font-size: 0.84rem;
  color: #70678c;
  text-align: center;
}

.egg-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2100;
  background: #1f1836;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

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

.motion-note {
  margin-top: 0.7rem;
  padding: 0.5rem 0.75rem;
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #ddd0ff;
  background: #f4edff;
  color: #4d3a84;
  font-size: 0.82rem;
  font-weight: 800;
}

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

.faq-item {
  border: 1px solid #e3d6ff;
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.faq-item p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Distinct visual personalities */
body[data-page="services"] {
  background: radial-gradient(circle at 12% 0%, #efe4ff 0%, #f8f7ff 44%, #f5faff 100%);
}

body[data-page="portfolio"] {
  background: radial-gradient(circle at 82% -8%, #f0e9ff 0%, #f8f8ff 52%, #f6f8ff 100%);
}

body[data-page="case-studies"] {
  background: linear-gradient(180deg, #f7f4ff 0%, #fafbff 100%);
}

body[data-page="about"] {
  background: linear-gradient(180deg, #faf7ff 0%, #fcfcff 100%);
}

body[data-page="contact"] {
  background: linear-gradient(180deg, #fbf8ff 0%, #ffffff 100%);
}

/* Different subtle 3d section styles */
.section-float3d::before,
.section-float3d::after,
.section-grid3d::before,
.section-grid3d::after,
.section-orbit3d::before,
.section-orbit3d::after,
.section-prism3d::before,
.section-prism3d::after,
.section-wave3d::before,
.section-wave3d::after,
.section-line3d::before,
.section-line3d::after,
.section-calm3d::before,
.section-calm3d::after,
.section-story3d::before,
.section-story3d::after,
.section-holo3d::before,
.section-holo3d::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.82;
}

.section-float3d::before {
  width: 260px;
  height: 260px;
  top: -70px;
  right: -70px;
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  background: radial-gradient(circle at 35% 30%, rgba(156, 125, 255, 0.56), rgba(156, 125, 255, 0.08));
  animation: floatBlob 11s ease-in-out infinite alternate;
}

.section-float3d::after {
  width: 170px;
  height: 170px;
  left: 4%;
  bottom: -70px;
  border-radius: 34px;
  border: 1px solid rgba(131, 87, 255, 0.26);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(130, 87, 255, 0.08));
  transform: perspective(700px) rotateY(20deg) rotateX(15deg);
  animation: cubeLift 10s ease-in-out infinite;
}

.section-grid3d::before {
  width: 260px;
  height: 260px;
  right: 4%;
  top: 10%;
  background-image:
    linear-gradient(rgba(136, 95, 245, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(136, 95, 245, 0.2) 1px, transparent 1px);
  background-size: 20px 20px;
  transform: perspective(700px) rotateX(58deg) rotateZ(15deg);
  animation: moveGrid 10s linear infinite;
}

.section-grid3d::after {
  width: 90px;
  height: 90px;
  left: 7%;
  bottom: 12%;
  border-radius: 50%;
  border: 10px solid rgba(135, 90, 252, 0.24);
  animation: pulseRing 7s ease-in-out infinite;
}

.section-orbit3d::before {
  width: 220px;
  height: 220px;
  right: 7%;
  top: 12%;
  border-radius: 50%;
  border: 2px solid rgba(132, 88, 245, 0.3);
  animation: spinOrbit 10s linear infinite;
}

.section-orbit3d::after {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  right: 15%;
  top: 18%;
  background: radial-gradient(circle, rgba(132, 88, 245, 0.55), rgba(132, 88, 245, 0));
  animation: orbitNode 6s ease-in-out infinite;
}

.section-prism3d::before {
  width: 160px;
  height: 150px;
  left: 6%;
  top: 16%;
  clip-path: polygon(50% 0%, 100% 100%, 0 100%);
  background: linear-gradient(145deg, rgba(124, 84, 239, 0.28), rgba(255, 255, 255, 0.3));
  transform: perspective(700px) rotateY(18deg) rotateX(24deg);
  animation: prismTilt 8s ease-in-out infinite;
}

.section-prism3d::after {
  width: 110px;
  height: 110px;
  right: 9%;
  bottom: 13%;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
  background: linear-gradient(160deg, rgba(157, 119, 255, 0.32), rgba(255, 255, 255, 0.18));
  animation: prismTilt 9s ease-in-out infinite reverse;
}

.section-wave3d::before {
  width: 260px;
  height: 170px;
  right: 10%;
  top: 12%;
  border-radius: 60% 40% 48% 52% / 54% 46% 54% 46%;
  background: radial-gradient(circle at 45% 35%, rgba(166, 136, 255, 0.44), rgba(131, 87, 255, 0.1));
  animation: waveMorph 8s ease-in-out infinite;
}

.section-wave3d::after {
  width: 190px;
  height: 110px;
  left: 8%;
  bottom: 10%;
  border-radius: 45% 55% 50% 50% / 58% 42% 58% 42%;
  background: radial-gradient(circle at 55% 50%, rgba(132, 90, 250, 0.3), rgba(255, 255, 255, 0.12));
  animation: waveMorph 9s ease-in-out infinite reverse;
}

.section-line3d::before {
  width: 2px;
  height: 70%;
  left: 6%;
  top: 15%;
  background: linear-gradient(180deg, rgba(120, 76, 238, 0), rgba(120, 76, 238, 0.62), rgba(120, 76, 238, 0));
  animation: lineGlow 6s ease-in-out infinite;
}

.section-line3d::after {
  width: 210px;
  height: 2px;
  right: 5%;
  bottom: 20%;
  background: linear-gradient(90deg, rgba(120, 76, 238, 0), rgba(120, 76, 238, 0.6), rgba(120, 76, 238, 0));
  animation: lineGlow 8s ease-in-out infinite reverse;
}

.section-story3d::before {
  width: 300px;
  height: 300px;
  right: -140px;
  top: 20%;
  border-radius: 50%;
  border: 1px solid rgba(126, 83, 245, 0.18);
  background: radial-gradient(circle at 35% 35%, rgba(126, 83, 245, 0.18), rgba(126, 83, 245, 0.02));
  animation: storyPulse 8s ease-in-out infinite;
}

.section-story3d::after {
  width: 180px;
  height: 180px;
  left: -70px;
  bottom: 8%;
  border-radius: 30px;
  border: 1px solid rgba(126, 83, 245, 0.2);
  transform: perspective(700px) rotateY(20deg) rotateX(-10deg);
  animation: cubeLift 9s ease-in-out infinite;
}

.section-holo3d::before {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-image:
    linear-gradient(rgba(130, 90, 240, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 90, 240, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  animation: moveGrid 16s linear infinite;
}

.section-holo3d::after {
  width: 360px;
  height: 160px;
  right: -120px;
  top: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(133, 89, 247, 0.22), rgba(133, 89, 247, 0));
  animation: pulseRing 8s ease-in-out infinite;
}

.section-calm3d::before {
  width: 220px;
  height: 220px;
  right: 6%;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 173, 255, 0.3), rgba(195, 173, 255, 0));
  animation: calmBreath 6s ease-in-out infinite;
}

.section-calm3d::after {
  width: 140px;
  height: 140px;
  left: 7%;
  bottom: 10%;
  border-radius: 50%;
  border: 1px solid rgba(178, 151, 255, 0.3);
  animation: calmBreath 8s ease-in-out infinite reverse;
}

@keyframes floatBlob {
  0% { transform: translateY(0); border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%; }
  100% { transform: translateY(16px); border-radius: 55% 45% 40% 60% / 58% 42% 54% 46%; }
}

@keyframes cubeLift {
  0%, 100% { transform: perspective(700px) rotateY(20deg) rotateX(15deg) translateY(0); }
  50% { transform: perspective(700px) rotateY(12deg) rotateX(8deg) translateY(-14px); }
}

@keyframes moveGrid {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 50px 50px, 50px 50px; }
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.12); opacity: 1; }
}

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

@keyframes orbitNode {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(14px, 10px) scale(1.2); }
}

@keyframes prismTilt {
  0%, 100% { filter: drop-shadow(0 8px 14px rgba(100, 64, 200, 0.14)); }
  50% { filter: drop-shadow(0 15px 22px rgba(100, 64, 200, 0.22)); }
}

@keyframes waveMorph {
  0% { border-radius: 60% 40% 48% 52% / 54% 46% 54% 46%; }
  50% { border-radius: 45% 55% 60% 40% / 44% 56% 44% 56%; }
  100% { border-radius: 66% 34% 40% 60% / 50% 50% 58% 42%; }
}

@keyframes lineGlow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}

@keyframes storyPulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes calmBreath {
  0%, 100% { transform: scale(1); opacity: 0.68; }
  50% { transform: scale(1.1); opacity: 0.95; }
}

@keyframes thumbSweep {
  0% { left: -58%; }
  100% { left: 118%; }
}

@keyframes thumbGridShift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 28px 28px, 28px 28px; }
}

@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 4px #efe4ff; }
  50% { box-shadow: 0 0 0 8px rgba(111, 61, 255, 0.2); }
}

@keyframes projectFadeIn {
  from { opacity: 0; filter: blur(1.8px); }
  to { opacity: 1; filter: blur(0); }
}

@media (max-width: 1100px) {
  body[data-page="services"] .solution-body {
    grid-template-columns: 1fr;
  }

  body[data-page="services"] .solution-card:nth-child(even) .solution-content,
  body[data-page="services"] .solution-card:nth-child(even) .solution-image {
    order: initial;
  }

  body[data-page="services"] .solution-image {
    max-height: 230px;
  }

  body[data-page="case-studies"] .story-step .story-media {
    height: clamp(162px, 32vw, 220px);
  }

  body[data-page="case-studies"] .story-insights {
    grid-template-columns: 1fr;
  }

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

  .model-showcase-card model-viewer {
    height: clamp(160px, 28vw, 210px);
  }

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

  .grid-3,
  .metrics,
  .philosophy,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2,
  .hero-layout,
  .split-shell,
  .founder-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual model-viewer {
    height: 360px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 76px;
  }

  .nav-desktop,
  .header-cta {
    display: none;
  }

  .menu-toggle,
  .nav-mobile {
    display: block;
  }

  .brand {
    padding: 0.28rem 0.46rem 0.28rem 0.34rem;
  }

  .brand img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .brand-sub {
    display: none;
  }

  .section {
    padding: 4.2rem 0;
  }

  .hero {
    padding-top: 1.4rem;
  }

  .hero-visual model-viewer {
    height: 300px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .faq-list,
  .model-grid-2,
  .model-grid-3,
  .metrics,
  .philosophy,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .timeline-index {
    width: 40px;
    height: 40px;
  }

  .cursor-ring {
    display: none;
  }

  .section::before,
  .section::after {
    opacity: 0.45;
  }

  body[data-page="portfolio"] .project-card,
  body[data-page="portfolio"] .project-card:hover {
    transform: none;
  }

  body[data-page="portfolio"] .project-thumb::after {
    animation-duration: 5.6s;
  }

  body[data-page="case-studies"] .story-step.is-active {
    transform: none;
  }

  .model-showcase-card model-viewer {
    height: clamp(164px, 44vw, 214px);
  }
}

@media (max-width: 520px) {
  .loader-shell {
    width: min(340px, 92vw);
    padding: 1.08rem 0.9rem 0.88rem;
    border-radius: 20px;
  }

  .loader-brand {
    width: 82px;
    height: 82px;
    border-radius: 18px;
  }

  .loader-logo {
    width: 62px;
    height: 62px;
    border-radius: 12px;
  }

  .loader-orbit {
    width: 114px;
    height: 114px;
  }

  .loader-orbit-2 {
    width: 148px;
    height: 148px;
  }

  .loader-text {
    font-size: 0.8rem;
  }

  .footer-logo {
    width: clamp(126px, 52vw, 180px);
    max-height: 42px;
  }

  .brand {
    padding: 0.24rem 0.38rem 0.24rem 0.3rem;
    border-radius: 12px;
  }

  .brand img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .brand-name {
    font-size: 0.88rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .proof-strip {
    flex-direction: column;
  }

  .founder-profile {
    gap: 0.52rem;
  }

  .founder-avatar {
    width: 84px;
    height: 84px;
  }

  .founder-name {
    font-size: 0.92rem;
  }

  .modal-card {
    padding: 0.8rem;
  }
}

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

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