:root {
  --ink: #1b1426;
  --muted: #5d556b;
  --paper: #f3efe6;
  --paper-2: #e7e0d4;
  --line: rgba(27, 20, 38, 0.14);
  --violet: #6843e4;
  --night: #14101c;
  --cream: #f6f2ea;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --shadow: 0 24px 60px rgba(36, 18, 68, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}
::selection { background: #ddd2ff; color: var(--ink); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; line-height: 0.96; margin: 0; }
p { margin: 0; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 0.8rem;
  z-index: 100;
}
.skip:focus { top: 0.6rem; }

.wrap { width: min(1160px, calc(100% - 2.4rem)); margin: 0 auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 239, 230, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.top.is-stuck { border-bottom-color: var(--line); }
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 84px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.top-tools { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; justify-content: flex-end; }
.menu, .langs { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }
.menu a, .langs a {
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.menu a { color: var(--muted); }
.menu a:hover { color: var(--ink); }
.langs a {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}
.langs a[aria-current="true"] {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--violet);
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1rem;
}
.kicker.light { color: #c8b6ff; }

#services, #method, #contact { scroll-margin-top: 96px; }
.hero { position: relative; padding: 1.5rem 0 4.5rem; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(27, 20, 38, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 20, 38, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse at 75% 40%, #000 10%, transparent 68%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 120px);
}
.hero h1 { font-size: clamp(3.3rem, 7vw, 6.35rem); }
.hero h1 em { font-style: italic; color: var(--violet); }
.lede, .intro { color: var(--muted); max-width: 38rem; }
.lede { margin-top: 1.4rem; font-size: 1.12rem; }
.hero-actions { display: flex; gap: 1.3rem; align-items: center; margin-top: 2rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--ink);
  color: var(--cream);
  border: 0;
  padding: 0.95rem 1.25rem;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); background: #2a2138; }
.btn.ink { background: var(--cream); color: var(--night); margin-top: 0.4rem; }
.btn.ink:hover { background: white; }
.btn:disabled { opacity: 0.7; transform: none; cursor: progress; }
.quiet { color: var(--ink); text-underline-offset: 0.28em; }

.stage {
  height: 540px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 78% 12%, rgba(168, 132, 255, 0.55), transparent 52%),
    radial-gradient(80% 70% at 12% 88%, rgba(92, 46, 186, 0.75), transparent 55%),
    linear-gradient(165deg, #241734 0%, #120d1b 70%);
  box-shadow: var(--shadow);
  perspective: 1100px;
}
.rig {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-16deg);
  transition: transform 0.45s ease;
}
.wash, .ring, .glass { position: absolute; }
.wash {
  width: 260px;
  height: 260px;
  left: 18%;
  top: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #f2e9ff, #8a63f3 42%, #2a1658 72%);
  filter: blur(1px);
  transform: translateZ(-40px);
  animation: drift 9s ease-in-out infinite;
}
.ring {
  width: 340px;
  height: 340px;
  left: 12%;
  top: 12%;
  border-radius: 50%;
  border: 1px solid rgba(232, 220, 255, 0.35);
  transform: translateZ(10px) rotateX(68deg);
  animation: spin 22s linear infinite;
}
.glass {
  width: min(250px, 70%);
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 18px 40px rgba(8, 4, 20, 0.28);
  backdrop-filter: blur(8px);
  color: #f7f3ff;
}
.glass span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d9ccff;
  margin-bottom: 0.35rem;
}
.glass strong { display: block; font-weight: 500; font-size: 1.05rem; letter-spacing: -0.02em; }
.g1 { left: 10%; top: 16%; animation: float1 7.5s ease-in-out infinite; }
.g2 { right: 8%; top: 38%; width: min(230px, 64%); animation: float2 8.5s ease-in-out infinite; }
.g3 { left: 18%; bottom: 12%; animation: float3 9s ease-in-out infinite; }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, -40px); }
  50% { transform: translate3d(10px, -16px, -20px); }
}
@keyframes spin { to { transform: translateZ(10px) rotateX(68deg) rotateZ(360deg); } }
@keyframes float1 {
  0%, 100% { transform: translate3d(0, 0, 46px); }
  50% { transform: translate3d(0, -12px, 78px); }
}
@keyframes float2 {
  0%, 100% { transform: translate3d(0, 0, 90px); }
  50% { transform: translate3d(0, 10px, 120px); }
}
@keyframes float3 {
  0%, 100% { transform: translate3d(0, 0, 24px); }
  50% { transform: translate3d(8px, -8px, 50px); }
}

.services { padding: 2rem 0 4rem; }
.section-head { max-width: 40rem; margin-bottom: 2.2rem; }
.section-head h2, .contact h2, .prose h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.intro { margin-top: 1rem; }
.svc { list-style: none; margin: 0; padding: 0; }
.svc li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.svc li:last-child { border-bottom: 1px solid var(--line); }
.num {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--violet);
  padding-top: 0.45rem;
}
.svc h3 { font-size: clamp(1.7rem, 3vw, 2.45rem); margin-bottom: 0.7rem; }
.svc p, .steps p { color: var(--muted); max-width: 42rem; }

.method { padding: 1rem 0 5rem; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.steps li {
  background: linear-gradient(180deg, #faf7f1, #ebe4d6);
  padding: 1.4rem 1.3rem 1.5rem;
  min-height: 240px;
  border-top: 2px solid var(--ink);
}
.steps span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--violet);
}
.steps h3 { font-size: 2rem; margin: 0.8rem 0 0.7rem; }

.contact-wrap { padding: 0 0 5rem; }
.contact {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 2.5rem;
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(124, 86, 230, 0.35), transparent 55%),
    var(--night);
  color: var(--cream);
  border-radius: 28px;
  padding: clamp(1.4rem, 3vw, 3rem);
}
.contact h2 { color: white; }
.contact-copy p { color: rgba(246, 242, 234, 0.74); max-width: 26rem; margin-top: 1rem; }
.contact address {
  font-style: normal;
  margin-top: 2rem;
  line-height: 1.7;
  color: rgba(246, 242, 234, 0.88);
}
.contact address a { color: white; }
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: 0.35rem; }
.form label > span { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(246, 242, 234, 0.62); }
.form label em { font-style: normal; text-transform: none; letter-spacing: 0; color: rgba(246, 242, 234, 0.4); }
.form input, .form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(246, 242, 234, 0.28);
  border-radius: 0;
  padding: 0.7rem 0;
  outline: none;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { border-bottom-color: #cbb8ff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.captcha strong { font-weight: 500; font-size: 1.15rem; }
.check { grid-template-columns: auto 1fr; align-items: start; column-gap: 0.7rem; }
.check input { width: auto; margin-top: 0.25rem; accent-color: #cbb8ff; }
.check span { text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: rgba(246, 242, 234, 0.82); }
.check a { color: white; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.banner { padding: 0.85rem 0.95rem; border-radius: 12px; }
.banner.ok { background: rgba(198, 232, 196, 0.16); color: #e7ffe4; }
.banner.bad { background: rgba(255, 186, 168, 0.14); color: #ffd7cc; }
.field-error { color: #ffc7b8; font-size: 0.88rem; }
.bad-field input, .bad-field textarea { border-bottom-color: #ffb5a3; }

.foot { padding: 0 0 2.5rem; color: var(--muted); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.foot strong { color: var(--ink); font-weight: 600; }
.foot p { margin-top: 0.35rem; }
.foot a { color: var(--ink); }
.foot-end { text-align: right; }

.privacy { padding: 2.5rem 0 4rem; }
.prose { max-width: 44rem; }
.prose h1 { margin-bottom: 1rem; }
.prose h2 { font-size: 2rem; margin: 2rem 0 0.6rem; }
.prose p { color: var(--muted); margin: 0.4rem 0 0; }
.prose .intro { margin-bottom: 0.5rem; }
.prose .quiet { display: inline-block; margin-top: 2rem; }

.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.8s ease forwards; }
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.svc li.reveal, .steps li.reveal { animation: none; opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.svc li.reveal.in, .steps li.reveal.in { opacity: 1; transform: none; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero-grid, .contact, .steps, .foot-grid, .split { grid-template-columns: 1fr; }
  .hero-grid { min-height: 0; gap: 1.6rem; }
  .stage { height: 500px; }
  .g1, .g2, .g3 { width: min(250px, 82%); }
  .g1 { left: 6%; top: 7%; }
  .g2 { right: 5%; left: auto; top: 36%; }
  .g3 { left: 8%; bottom: 6%; top: auto; }
  .top-bar { min-height: 72px; align-items: flex-start; padding: 0.85rem 0 0.7rem; flex-wrap: wrap; }
  .top-tools { width: 100%; justify-content: space-between; row-gap: 0.35rem; }
  .menu, .langs { gap: 0.75rem 0.9rem; }
  .foot-end { text-align: left; }
  .g2 { right: 6%; top: 42%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .svc li.reveal, .steps li.reveal { opacity: 1; transform: none; animation: none; }
  .wash, .ring, .g1, .g2, .g3 { animation: none; }
  .rig { transition: none; }
}
