:root {
  --black: #070708;
  --yellow: #f4e04d;
  --purple: #c4a1ff;
  --purple-deep: #7a5cff;
  --text: #f6f3ea;
  --muted: #b7b3c7;
  --paper: #070708;
  --card: #141418;
  --line: rgba(244, 224, 77, .22);
  --ink: var(--text);
  --ha-ease: cubic-bezier(.16, 1, .3, 1);
  --ha-dur: 800ms;
  --ha-step: 80ms;
  --font-primary: "DM Sans", sans-serif;
  --font-secondary: "Space Grotesk", sans-serif;
}
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-primary);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
}
body, a, button, input, textarea, select { font-family: var(--font-primary); }
img { display: block; width: 100%; height: auto; object-fit: cover; }
h1, h2, h3, h4, .price, .logo span, .total, .app-sheet nav a, .app-tabs a, .app-tabs button {
  font-family: var(--font-secondary);
  letter-spacing: -.03em;
}
h1 { font-size: clamp(2.7rem, 6vw, 5.6rem); line-height: .92; max-width: 12ch; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.02; }
a { color: inherit; }
.skip { position: absolute; left: 12px; top: -40px; background: var(--yellow); color: var(--black); padding: 8px 12px; z-index: 80; }
.skip:focus { top: 12px; }

.site-header {
  position: fixed;
  z-index: 40;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 14px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(7, 7, 8, .88);
  border: 1px solid rgba(244, 224, 77, .35);
  box-shadow: 0 0 0 1px rgba(196, 161, 255, .12), 0 16px 40px rgba(0, 0, 0, .35);
  backdrop-filter: blur(18px);
  transition: background .35s var(--ha-ease), box-shadow .35s var(--ha-ease), padding .35s var(--ha-ease);
}
.site-header.is-float {
  background: #070708;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 32px rgba(196, 161, 255, .16);
}
.logo { display: flex; align-items: center; gap: 10px; color: inherit; font-weight: 650; text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--yellow); }
.logo em { color: var(--yellow); font-style: normal; }
.site-nav, .header-tools { display: flex; align-items: center; gap: 16px; }
.site-nav { margin-left: auto; }
.site-nav a { text-decoration: none; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--yellow); }
.header-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
}
.btn-ghost, .card-actions button, .filter a, .nav-toggle, .danger, .sheet-close {
  background: transparent;
  color: var(--yellow);
  border: 1px solid var(--yellow);
}
.header-cta:hover, .btn:hover { background: var(--purple); color: var(--black); }
.tool { position: relative; font-size: 14px; font-weight: 700; text-decoration: none; }
.tool i {
  position: absolute;
  top: -8px;
  right: -12px;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--purple);
  color: var(--black);
  font-style: normal;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.tool i[hidden] { display: none; }
.nav-toggle { display: none; }
.nav-bars, .nav-word { display: none; }

.home-hero, .page-hero { padding: 148px 6vw 56px; display: grid; gap: 28px; position: relative; }
.home-hero {
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  min-height: 92vh;
  background:
    radial-gradient(40% 50% at 88% 8%, rgba(196, 161, 255, .38), transparent 70%),
    radial-gradient(32% 40% at 8% 90%, rgba(244, 224, 77, .22), transparent 70%),
    var(--black);
  overflow: hidden;
}
.home-hero::before, .home-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}
.home-hero::before {
  width: 280px;
  height: 280px;
  right: 8%;
  top: 18%;
  background: rgba(196, 161, 255, .28);
  animation: ha-drift 12s var(--ha-ease) infinite alternate;
}
.home-hero::after {
  width: 180px;
  height: 180px;
  left: 6%;
  bottom: 12%;
  background: rgba(244, 224, 77, .18);
  animation: ha-drift 16s var(--ha-ease) infinite alternate-reverse;
}
.hero-copy, .hero-figure { position: relative; z-index: 1; }
.hero-figure img, .product img, .wide img, .work-card img, .card-media img { border-radius: 28px; aspect-ratio: 4/3; }
.lead { font-size: 1.15rem; max-width: 46rem; color: var(--muted); }
.hero-actions, .buy-row, .card-actions, .card-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-facts { display: flex; gap: 28px; margin-top: 28px; }
.hero-facts dt, .eyebrow, .footer-label { color: var(--purple); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-primary); }
.band { padding: 80px 6vw; }
.band-ink {
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(196, 161, 255, .2), transparent 60%),
    #100e16;
}
.band-quiet { background: #0c0c10; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.section-more { margin-top: 28px; }
.service-row, .card-grid, .work-grid { display: grid; gap: 18px; }
.service-row { grid-template-columns: repeat(3, 1fr); }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.work-grid { grid-template-columns: 1.2fr .8fr; }
.service-tile, .card, .work-card, .sheet, .form, .line {
  background: var(--card);
  color: var(--text);
  border-radius: 24px;
  border: 1px solid var(--line);
}
.service-tile, .card { padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.service-tile { min-height: 220px; }
.service-tile span { margin-top: auto; font-weight: 700; color: var(--yellow); }
.card-body h3, .work-card h3 { font-size: 1.35rem; }
.card-body p, .work-card p, .prose, .sheet p { color: var(--muted); }
.card-body h3 a, .work-card h3, .price, .total, strong { color: var(--text); }
.card-row { justify-content: space-between; margin-top: auto; }
.card-actions button, .danger { border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.card-actions .solid, .solid { background: var(--purple); color: var(--black); border-color: var(--purple); }
.work-card a { display: block; color: inherit; text-decoration: none; }
.work-card div { padding: 18px 20px 22px; }
.page-hero { background: transparent; min-height: 0; display: block; }
.page-hero h1 { max-width: 18ch; }
.crumbs ol { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; }
.crumbs a { color: var(--purple); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--yellow); }
.prose, .sheet, .form { max-width: 820px; margin: 0 6vw 64px; }
.prose p, .sheet p { margin: 0 0 14px; }
.product { margin: 0 6vw 32px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.price { font-size: 2rem; margin: 8px 0; color: var(--yellow); }
.wide { margin: 0 6vw 28px; }
.split { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 0 6vw 64px; }
.filter { display: flex; flex-direction: column; gap: 8px; }
.filter a { text-decoration: none; padding: 10px 12px; border-radius: 999px; }
.search, .form, .sheet.form { display: grid; gap: 12px; }
.search { grid-template-columns: 1fr auto; align-items: end; max-width: 640px; margin-top: 18px; }
label { display: grid; gap: 6px; font-weight: 700; }
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(7, 7, 8, .15);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: #111;
  font-size: 16px;
}
.check { grid-template-columns: auto 1fr; align-items: center; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); }
.site-footer { background: #050506; color: var(--text); padding: 48px 6vw 28px; border-top: 1px solid rgba(196, 161, 255, .25); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 24px; }
.footer-grid a, .footer-name { display: block; margin-bottom: 8px; text-decoration: none; }
.footer-grid a:hover { color: var(--yellow); }
.legal { opacity: .7; font-size: 14px; margin-top: 28px; }
.flash-wrap { position: fixed; top: 92px; left: 50%; transform: translateX(-50%); z-index: 55; width: min(640px, calc(100% - 24px)); }
.flash { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--yellow); color: var(--black); }
.flash-bad { background: #3b1212; color: #fff; }
.note { font-size: 14px; color: var(--muted); }
.line { padding: 14px; margin-bottom: 10px; display: flex; gap: 12px; align-items: center; }
.line img { width: 96px; height: 72px; border-radius: 12px; }
.line h2 { font-size: 1.2rem; }
.total { font-size: 1.6rem; }
.pad { padding: 0 6vw 64px; }

.app-sheet, .app-tabs { display: none; }

.admin { background: #0e0e12; color: var(--text); }
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-shell aside { background: var(--black); color: var(--text); padding: 24px 16px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); }
.admin-shell aside a, .admin-shell button { color: var(--text); text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font-weight: 700; }
.admin-shell aside a:hover, .admin-shell button:hover { color: var(--yellow); }
.admin-main { padding: 32px; }
.admin-main .form { margin: 0; max-width: 760px; }
.admin-login { display: grid; place-items: center; min-height: 100vh; background: var(--black); }
.admin h1, .admin-login h1 { color: var(--yellow); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats p, .table p { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.danger { color: #ffb4a8; margin-top: 12px; }

.js .js-rise .word { display: inline-block; overflow: hidden; vertical-align: bottom; margin-right: .22em; }
.js .js-rise .word span {
  display: inline-block;
  animation: ha-bt-rise .9s var(--ha-ease) both;
  animation-delay: calc(var(--i) * 70ms);
}
.js .ha-line { animation: ha-fade .9s var(--ha-ease) both; }
.js .hero-actions.ha-line { animation-delay: .35s; }
.js .hero-facts.ha-line { animation-delay: .5s; }
.js .lead.ha-line { animation-delay: .2s; }
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 42px, 0) rotate(.4deg);
  filter: blur(8px);
  transition: opacity var(--ha-dur) var(--ha-ease), transform var(--ha-dur) var(--ha-ease), filter var(--ha-dur) var(--ha-ease);
}
.service-row .reveal:nth-child(2), .card-grid .reveal:nth-child(2), .work-grid .reveal:nth-child(2) { transition-delay: var(--ha-step); }
.service-row .reveal:nth-child(3), .card-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.card-grid .reveal:nth-child(4) { transition-delay: 240ms; }
.card-grid .reveal:nth-child(5) { transition-delay: 320ms; }
.card-grid .reveal:nth-child(6) { transition-delay: 400ms; }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }
.js .reveal-img {
  clip-path: inset(14% 8% 14% 8% round 28px);
  transition: clip-path 1.05s var(--ha-ease);
}
.js .reveal-img.is-in { clip-path: inset(0 round 28px); }
.js .reveal-img img { transform: scale(1.08); transition: transform 1.2s var(--ha-ease); }
.js .reveal-img.is-in img { transform: none; }

@keyframes ha-bt-rise {
  from { opacity: 0; transform: translateY(105%) skewY(6deg); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes ha-fade {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes ha-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-36px, 24px, 0) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-img, .js .reveal-img img, .js .js-rise .word span, .js .ha-line, .home-hero::before, .home-hero::after, .site-header, .app-sheet {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }
  .site-header { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .home-hero, .product, .split, .service-row, .card-grid, .footer-grid, .admin-shell, .stats, .work-grid { grid-template-columns: 1fr; }
  .site-header {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    border-radius: 0 0 22px 22px;
    padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
    gap: 10px;
  }
  .site-nav, .header-cta, .header-tools .account { display: none; }
  .header-tools { margin-left: auto; gap: 8px; }
  .tool {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(244, 224, 77, .4);
    font-size: 11px;
  }
  .tool i { top: 2px; right: 2px; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--black);
    border: 0;
  }
  .nav-bars {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--black);
    box-shadow: 0 -6px 0 var(--black), 0 6px 0 var(--black);
  }
  .home-hero, .page-hero { padding: 108px 20px 28px; min-height: 0; }
  .home-hero { min-height: auto; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.3rem); }
  .band, .site-footer { padding-left: 20px; padding-right: 20px; }
  .band { padding-top: 48px; padding-bottom: 48px; }
  .prose, .sheet, .form, .product, .wide, .split, .pad { margin-left: 0; margin-right: 0; padding-left: 20px; padding-right: 20px; }
  .product, .split { padding-bottom: 40px; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-actions .btn, .sheet-cta { width: 100%; }
  .card, .service-tile, .work-card { border-radius: 20px; }
  .site-footer { padding-bottom: 28px; }
  .app-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    z-index: 45;
    left: 0;
    right: 0;
    bottom: 0;
    background: #070708;
    border-top: 1px solid rgba(244, 224, 77, .35);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  }
  .app-tabs a, .app-tabs button {
    display: grid;
    place-items: center;
    min-height: 48px;
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    cursor: pointer;
  }
  .app-tabs a[aria-current="page"], .app-tabs button[aria-expanded="true"] { color: var(--yellow); }
  .app-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 60;
    inset: 0;
    background: #070708;
    color: var(--text);
    padding: calc(16px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));
    transform: translate3d(0, 100%, 0);
    transition: transform .45s var(--ha-ease);
  }
  .app-sheet[hidden] { display: none; }
  body.nav-open .app-sheet { transform: none; }
  .sheet-bar { display: flex; justify-content: space-between; align-items: center; }
  .sheet-bar p { color: var(--purple); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
  .sheet-close { min-height: 44px; padding: 8px 14px; }
  .app-sheet nav { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; }
  .app-sheet nav a {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    line-height: 1.1;
    text-decoration: none;
    padding: 6px 0;
  }
  .app-sheet nav a[aria-current="page"] { color: var(--yellow); }
  .sheet-cta { margin-top: auto; }
}
@media (max-width: 980px) and (prefers-reduced-motion: reduce) {
  .site-header { transform: none; }
}
