@font-face {
  font-family: "Nasalization";
  src: url("media/Nasalization-Rg.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato Local";
  src: url("media/lato-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4ebdd;
  --paper-soft: rgba(244, 235, 221, 0.72);
  --paper-muted: rgba(244, 235, 221, 0.52);
  --line: rgba(244, 235, 221, 0.16);
  --blue: rgba(170, 200, 255, 0.8);
  --shadow-blue: rgba(120, 170, 255, 0.44);
  --black: #04060a;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--black);
  color: var(--paper);
}

body {
  overflow: hidden;
  font-family: "Lato Local", Arial, sans-serif;
  font-weight: 300;
}

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

.app {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--black);
}

.camera-rail {
  position: absolute;
  inset: 0;
  display: flex;
  width: 700%;
  transform: translate3d(0, 0, 0);
  transition: transform 1100ms cubic-bezier(0.7, 0, 0.2, 1);
  will-change: transform;
}

.scene {
  position: relative;
  width: calc(100% / 7);
  height: 100%;
  flex: 0 0 calc(100% / 7);
  overflow: hidden;
  color: var(--paper);
  pointer-events: none;
}

.scene.is-active {
  pointer-events: auto;
}

.hero-scene {
  background: #000;
  opacity: 1;
  transition: opacity 900ms ease;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
}

.hero-shade {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.reveal-item {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(10px);
  will-change: opacity, transform, filter;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 14px;
  font-family: "Nasalization", sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--blue);
}

.hero-kicker {
  margin-bottom: clamp(22px, 3.4vh, 40px);
  font-size: clamp(10px, 0.95vw, 13px);
  color: var(--paper);
}

.hero-kicker.is-pulsing {
  animation: heroPulse 2.6s ease-in-out infinite;
}

.hero-service {
  position: relative;
  max-width: 86vw;
  margin: 2px 0;
  padding: 6px 18px;
  border: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  pointer-events: auto;
  font-family: "Nasalization", sans-serif;
  font-size: clamp(22px, 2.8vw, 44px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(244, 235, 221, 0.1), 0 2px 24px rgba(0, 0, 0, 0.5);
  transition: text-shadow 400ms ease, transform 400ms ease, color 400ms ease;
}

.hero-service::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(170, 200, 255, 0.85), transparent);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 500ms ease, opacity 500ms ease;
}

.hero-service:hover,
.hero-service:focus-visible {
  transform: scale(1.03);
  outline: 0;
  text-shadow: 0 0 30px rgba(170, 200, 255, 0.6), 0 2px 24px rgba(0, 0, 0, 0.5);
}

.hero-service:hover::after,
.hero-service:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero-tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(24px, 4vh, 48px);
}

.hero-tagline span {
  width: clamp(40px, 5vw, 72px);
  height: 1px;
  margin-bottom: clamp(16px, 2.5vh, 28px);
  background: rgba(244, 235, 221, 0.45);
}

.hero-tagline p {
  max-width: 80vw;
  margin: 0;
  color: var(--paper);
  font-size: clamp(14px, 1.4vw, 22px);
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.service-scene,
.about-scene,
.contact-scene {
  background: #04060c;
}

.scene-ai { background: radial-gradient(1200px 700px at 30% 30%, rgba(30, 58, 138, 0.35), rgba(0, 0, 0, 0) 60%), #04060c; }
.scene-design { background: radial-gradient(1200px 700px at 70% 30%, rgba(168, 85, 247, 0.22), rgba(0, 0, 0, 0) 60%), #06060d; }
.scene-video { background: radial-gradient(1200px 700px at 50% 70%, rgba(244, 114, 182, 0.18), rgba(0, 0, 0, 0) 60%), #07060c; }
.scene-web { background: radial-gradient(1200px 700px at 70% 70%, rgba(45, 212, 191, 0.18), rgba(0, 0, 0, 0) 60%), #04080c; }
.about-scene { background: radial-gradient(1200px 700px at 30% 50%, rgba(40, 40, 55, 0.6), rgba(0, 0, 0, 0) 60%), #05060a; }
.contact-scene { background: radial-gradient(1200px 700px at 50% 50%, rgba(30, 58, 138, 0.4), rgba(0, 0, 0, 0) 65%), #03050a; }

.ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ambient::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 25% 30%, rgba(120, 170, 255, 0.12), transparent 45%), radial-gradient(circle at 78% 72%, rgba(56, 189, 248, 0.08), transparent 50%);
  animation: heroBreathe 9s ease-in-out infinite;
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 95%, rgba(170, 200, 255, 0.05) 95%), linear-gradient(90deg, transparent 95%, rgba(170, 200, 255, 0.05) 95%);
  background-size: 70px 70px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.scene-nav {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.scene-nav button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--paper);
  cursor: pointer;
  pointer-events: auto;
  padding: 10px 18px;
  backdrop-filter: blur(8px);
  font-family: "Nasalization", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  transition: background 250ms ease, border-color 250ms ease, transform 250ms ease;
}

.scene-nav button:hover,
.scene-nav button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(170, 200, 255, 0.45);
  background: rgba(170, 200, 255, 0.1);
  outline: 0;
}

.scene-inner {
  position: relative;
  z-index: 3;
  width: min(1240px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: clamp(60px, 9vh, 110px) clamp(28px, 5vw, 72px) clamp(60px, 8vh, 100px);
  opacity: 0;
  overflow-y: auto;
  transform: translateY(14px);
  transition: opacity 800ms ease 150ms, transform 800ms ease 150ms;
}

.scene.is-active .scene-inner {
  opacity: 1;
  transform: translateY(0);
}

.scene-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.scene-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(170, 200, 255, 0.3) transparent;
}

.scene-scroll::-webkit-scrollbar { width: 6px; }
.scene-scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(170, 200, 255, 0.3); }

h1,
h2 {
  margin: 0;
  font-family: "Nasalization", sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(120, 170, 255, 0.2);
}

h1 {
  font-size: clamp(30px, 4.4vw, 64px);
}

h2 {
  font-size: clamp(22px, 2.8vw, 38px);
}

.lead {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(244, 235, 221, 0.92);
  font-size: clamp(15px, 1.25vw, 20px);
  letter-spacing: 0.02em;
}

.copy,
.portfolio-block p,
.contact-inner p {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--paper-soft);
  font-size: clamp(13px, 0.98vw, 16px);
  line-height: 1.75;
}

.copy strong {
  color: var(--paper);
  font-weight: 400;
}

.highlights-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 12px;
  max-width: 560px;
  margin-top: clamp(26px, 4vh, 40px);
}

.highlights-grid article,
.stats-grid article {
  min-width: 0;
  padding: 16px 14px;
  border: 1px solid rgba(170, 200, 255, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: 0 10px 40px -22px rgba(56, 120, 255, 0.4);
  word-break: break-word;
}

.highlights-grid strong,
.stats-grid strong {
  display: block;
  color: var(--paper);
  font-family: "Nasalization", sans-serif;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-shadow: 0 0 14px rgba(120, 170, 255, 0.3);
}

.stats-grid strong {
  font-size: 24px;
}

.highlights-grid span,
.stats-grid span {
  display: block;
  margin-top: 6px;
  color: rgba(244, 235, 221, 0.7);
  font-size: clamp(11.5px, 1vw, 12.5px);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.wa-cta,
.main-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(22px, 3.5vh, 32px);
  overflow: hidden;
  border: 1px solid rgba(170, 200, 255, 0.4);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.18), rgba(120, 170, 255, 0.16));
  box-shadow: 0 14px 40px -18px rgba(120, 170, 255, 0.45);
  color: var(--paper);
  padding: 14px 26px;
  font-family: "Nasalization", sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-decoration: none;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.wa-cta::before,
.main-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  animation: ctaShine 3.4s ease-in-out infinite;
  pointer-events: none;
}

.wa-cta:hover,
.main-cta:hover,
.wa-cta:focus-visible,
.main-cta:focus-visible {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(200, 220, 255, 0.7);
  box-shadow: 0 22px 60px -18px rgba(170, 200, 255, 0.65);
  outline: 0;
}

.scene-illustration {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  justify-self: center;
}

.scene-illustration::before,
.scene-illustration::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(120, 170, 255, 0.45);
}

.scene-illustration::before {
  inset: 12%;
  opacity: 0.35;
  animation: orbitSpin 28s linear infinite;
}

.scene-illustration::after {
  inset: 24%;
  opacity: 0.25;
  border-style: dashed;
  animation: orbitSpinRev 36s linear infinite;
}

.scene-illustration svg {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 120px;
  height: 120px;
  color: var(--paper);
  filter: drop-shadow(0 0 18px rgba(120, 170, 255, 0.65));
  transform: translate(-50%, -50%);
}

.portfolio-block {
  margin-top: clamp(48px, 8vh, 88px);
}

.portfolio-block p {
  max-width: 720px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
  margin-top: 28px;
}

.portfolio-grid article {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(170, 200, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30, 40, 70, 0.6), rgba(15, 18, 30, 0.6));
  box-shadow: 0 14px 50px -24px rgba(56, 120, 255, 0.4);
  transition: transform 400ms ease, box-shadow 400ms ease, border-color 400ms ease;
}

.portfolio-grid article:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(170, 200, 255, 0.5);
  box-shadow: 0 24px 70px -24px rgba(120, 170, 255, 0.65);
}

.portfolio-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
}

.about-photo {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  margin: 0;
  justify-self: center;
}

.about-photo span {
  position: absolute;
  inset: -18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(170, 200, 255, 0.35), rgba(120, 80, 200, 0.2));
  filter: blur(32px);
  opacity: 0.8;
}

.about-photo img {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(244, 235, 221, 0.12);
  border-radius: 14px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  object-fit: cover;
}

.contact-inner {
  position: relative;
  z-index: 3;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(24px, 5vw, 72px);
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 800ms ease 150ms, transform 800ms ease 150ms;
}

.scene.is-active .contact-inner {
  opacity: 1;
  transform: translateY(0);
}

.contact-inner h1 {
  max-width: 1000px;
  font-size: clamp(32px, 5vw, 76px);
}

.contact-inner p {
  max-width: 720px;
  color: rgba(244, 235, 221, 0.8);
  font-size: clamp(15px, 1.25vw, 20px);
  line-height: 1.6;
}

.main-cta {
  margin-top: clamp(34px, 5vh, 56px);
  padding: 18px 36px;
  background: linear-gradient(135deg, rgba(120, 170, 255, 0.18), rgba(168, 85, 247, 0.18));
  font-size: 13px;
  letter-spacing: 0.28em;
}

.contact-inner > span {
  margin-top: 30px;
  color: rgba(244, 235, 221, 0.5);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(800px 500px at 50% 50%, rgba(20, 30, 60, 0.85), rgba(0, 0, 0, 0.95));
  pointer-events: none;
}

.zoom-overlay.is-visible {
  display: flex;
}

.zoom-overlay span {
  max-width: 90vw;
  color: var(--paper);
  font-family: "Nasalization", sans-serif;
  font-size: clamp(36px, 6vw, 96px);
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 0 0 50px rgba(120, 170, 255, 0.45);
  text-transform: uppercase;
  animation: zoomIn 1500ms cubic-bezier(0.7, 0, 0.2, 1) forwards;
}

.progress {
  position: fixed;
  right: clamp(18px, 2.5vw, 36px);
  bottom: clamp(18px, 2.5vw, 32px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(244, 235, 221, 0.55);
  font-family: "Nasalization", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  pointer-events: none;
}

.progress span:first-child {
  color: rgba(244, 235, 221, 0.9);
}

.progress i {
  width: 28px;
  height: 1px;
  background: rgba(244, 235, 221, 0.3);
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.7; text-shadow: 0 0 14px rgba(244, 235, 221, 0.1); }
  50% { opacity: 1; text-shadow: 0 0 22px rgba(244, 235, 221, 0.3); }
}

@keyframes heroBreathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes orbitSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbitSpinRev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }

@keyframes zoomIn {
  0% { opacity: 0; transform: scale(0.6); filter: blur(20px); letter-spacing: 0.05em; }
  40% { opacity: 1; filter: blur(0); }
  100% { opacity: 0; transform: scale(2.4); filter: blur(8px); letter-spacing: 0.25em; }
}

@keyframes ctaShine { from { transform: translateX(-120%); } to { transform: translateX(220%); } }

@media (max-width: 820px) {
  body { overflow: hidden; }
  .scene-grid { grid-template-columns: 1fr; gap: 24px; }
  .scene-illustration { order: -1; max-width: 260px; opacity: 0.55; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .about-photo { order: -1; max-width: 260px; aspect-ratio: 1; margin: 0 auto 16px; border-radius: 50%; }
  .about-photo span { inset: -8px; border-radius: 50%; filter: blur(20px); opacity: 0.55; }
  .about-photo img { border-radius: 50%; }
  .highlights-grid { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .scene-nav { top: 16px; left: 16px; right: 16px; }
  .scene-nav button { padding: 9px 12px; font-size: 9px; letter-spacing: 0.16em; }
  .hero-service { max-width: 92vw; font-size: clamp(19px, 8vw, 34px); }
  .scene-inner { padding-inline: 22px; }
  .highlights-grid,
  .stats-grid { grid-template-columns: 1fr; }
  .progress { font-size: 9px; letter-spacing: 0.22em; }
}

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