:root {
  --ink: #15101f;
  --muted: #665b72;
  --violet: #5a2c91;
  --blue: #2f8eeb;
  --rose: #cc4f8d;
  --wood: #c9894b;
  --cream: #fff8ec;
  --line: rgba(90, 44, 145, 0.16);
  --shadow: 0 26px 74px rgba(28, 15, 48, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 15% 8%, rgba(47, 142, 235, 0.16), transparent 24rem),
    radial-gradient(circle at 84% 4%, rgba(90, 44, 145, 0.18), transparent 25rem),
    linear-gradient(180deg, #fffaf0 0%, #f9f2ff 50%, #fffaf0 100%);
}
body.intro-active { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p, figure { margin-top: 0; }
a:focus-visible, button:focus-visible, input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(47, 142, 235, 0.36);
  outline-offset: 3px;
}

.kit-intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background: radial-gradient(circle at 50% 42%, #39225a, #08050e 64%);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.kit-intro.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.kit-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.assembly-stage {
  position: absolute;
  inset: 0;
  perspective: 900px;
  background:
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.10), transparent 18rem),
    linear-gradient(145deg, rgba(90, 44, 145, 0.70), rgba(47, 142, 235, 0.32));
}
.piece {
  position: absolute;
  width: min(35vw, 360px);
  aspect-ratio: 1.2;
  object-fit: cover;
  border: 10px solid rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  animation: assemble 5.2s ease-in-out infinite;
}
.piece-a { left: 10%; top: 18%; transform: rotateY(18deg) rotateZ(-12deg); }
.piece-b { right: 10%; top: 22%; animation-delay: 0.4s; transform: rotateY(-20deg) rotateZ(10deg); }
.piece-c { left: 34%; bottom: 10%; animation-delay: 0.8s; transform: rotateX(10deg) rotateZ(2deg); }
.laser-line {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 48%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #8be0ff, white, #8be0ff, transparent);
  box-shadow: 0 0 24px rgba(139, 224, 255, 0.95);
  animation: laserSweep 2.2s ease-in-out infinite;
}
.glue-dot, .paint-wash {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.8;
}
.glue-dot { left: 49%; top: 44%; width: 70px; height: 70px; background: rgba(255, 255, 255, 0.80); animation: pulse 2.6s ease-in-out infinite; }
.paint-wash { right: 25%; bottom: 26%; width: 180px; height: 120px; background: rgba(204, 79, 141, 0.72); animation: pulse 3.2s ease-in-out infinite reverse; }
.kit-intro-copy {
  position: relative;
  z-index: 2;
  width: min(92vw, 680px);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: rgba(9, 5, 16, 0.48);
  backdrop-filter: blur(18px);
}
.kit-intro-copy h1 { color: white; }
.kit-intro-copy p:not(.eyebrow) { color: rgba(255, 255, 255, 0.84); }

.service-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  width: min(calc(100% - 28px), 1180px);
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(25, 14, 44, 0.10);
  backdrop-filter: blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 950; }
.brand img { width: 64px; height: 64px; object-fit: contain; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 850; }
nav a { padding: 10px 12px; border-radius: 999px; }
nav a:hover { background: rgba(90, 44, 145, 0.10); }

main { width: min(calc(100% - 28px), 1180px); margin: 0 auto; }
.hero {
  min-height: 680px;
  display: grid;
  align-items: end;
  gap: clamp(28px, 5vw, 60px);
  padding: clamp(74px, 10vw, 130px) 0 58px;
}
.eyebrow {
  margin-bottom: 14px;
  color: var(--violet);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.055em; }
h1 { max-width: 840px; margin-bottom: 22px; font-size: clamp(3rem, 7vw, 6.6rem); line-height: 0.9; }
.sis-accent { display: inline-block; margin-inline: 0.02em; color: var(--violet); font-size: 1.2em; font-weight: 950; letter-spacing: -0.08em; text-shadow: 0 7px 20px rgba(90, 44, 145, 0.22); }
.eyebrow .sis-accent { color: inherit; font-size: 1.15em; }
h2 { margin-bottom: 14px; font-size: clamp(2.4rem, 5.4vw, 5.2rem); line-height: 0.92; }
h3 { margin-bottom: 8px; font-size: 1.7rem; line-height: 0.98; }
.hero-copy p:not(.eyebrow), .kit-story p, .subscribe p, .request p { color: var(--muted); font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 0;
  font-weight: 950;
  cursor: pointer;
}
.button.primary { color: white; background: linear-gradient(135deg, var(--violet), var(--blue)); }
.button.secondary, .button.light { color: var(--violet); background: white; border: 1px solid var(--line); }
.button.disabled { pointer-events: none; opacity: 0.62; }
.subscription-button {
  min-height: 44px;
  padding: 11px 16px;
  justify-self: start;
  align-self: center;
  color: white;
  background: var(--violet);
  font-size: 0.9rem;
  font-weight: 850;
}
.hero-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: clamp(320px, 52vw, 600px); object-fit: cover; }

.kit-story, .gallery, .subscribe, .request {
  padding: clamp(46px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.kit-story, .subscribe, .request { display: grid; gap: 24px; }
.steps, .gallery-grid { display: grid; gap: 14px; }
.steps article, .subscribe, .order-form {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}
.steps span { display: inline-flex; margin-bottom: 20px; color: white; background: linear-gradient(135deg, var(--wood), var(--rose)); border-radius: 999px; padding: 7px 10px; font-weight: 950; }
.subscribe .eyebrow { letter-spacing: 0.05em; text-transform: none; }
.subscribe {
  align-items: center;
  padding: clamp(28px, 5vw, 42px);
  border: 2px solid rgba(90, 44, 145, 0.48);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(243, 237, 255, 0.88));
  box-shadow: 0 22px 58px rgba(90, 44, 145, 0.18);
}
.subscribe h2 { max-width: 17ch; font-size: clamp(2rem, 3.5vw, 3.4rem); }
.section-head { margin-bottom: 22px; }
.gallery-grid img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.order-form { display: grid; gap: 14px; }
label { display: grid; gap: 8px; color: #2b2140; font-weight: 850; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.92);
}
textarea { resize: vertical; }
.wide { grid-column: 1 / -1; }
.website-field { position: absolute; left: -9999px; }
.form-message { margin: 0; color: var(--muted); font-weight: 800; }
.form-message.success { color: #176b4f; }
.form-message.error { color: #a71945; }
.consent { display: flex; align-items: flex-start; gap: 10px; }
.consent input { width: auto; margin-top: 5px; }

.footer {
  width: min(calc(100% - 28px), 1180px);
  margin: 0 auto 18px;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer img { width: 74px; height: 74px; object-fit: contain; }
.footer p { margin: 0; color: var(--violet); font-weight: 900; }

@keyframes assemble {
  0%, 100% { translate: 0 0; scale: 1; }
  42% { translate: 0 -18px; scale: 1.04; }
  70% { translate: 0 10px; scale: 0.98; }
}
@keyframes laserSweep {
  0%, 100% { transform: translateY(-90px) rotate(-8deg); opacity: 0; }
  36%, 70% { opacity: 1; }
  55% { transform: translateY(95px) rotate(8deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(0.82); opacity: 0.42; }
  50% { transform: scale(1.15); opacity: 0.86; }
}

@media (min-width: 820px) {
  .hero, .kit-story, .request { grid-template-columns: 0.9fr 1.1fr; }
  .subscribe { grid-template-columns: minmax(0, 1fr) auto; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .order-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .piece, .laser-line, .glue-dot, .paint-wash { animation: none; }
}

@media (max-width: 760px) {
  .service-header, .footer { align-items: flex-start; border-radius: 24px; flex-direction: column; }
  .brand img { width: 54px; height: 54px; }
  .piece { width: 58vw; }
  .piece-a { left: 6%; top: 12%; }
  .piece-b { right: 4%; top: 34%; }
  .piece-c { left: 20%; bottom: 9%; }
  .gallery-grid img { height: 280px; }
}
