/* ==========================================================================
   Shopfront Studios — Components
   Navigation, controls, cards, editorial panels, forms and overlays.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  background: rgba(18, 10, 36, 0.74);
  border-bottom: 1px solid var(--color-line);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 92, 255, 0.45),
    rgba(79, 216, 255, 0.28),
    transparent
  );
  opacity: 0.55;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 2.15rem;
  height: 2.5rem;
  flex: none;
  place-items: center;
}

.brand-symbol {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(124, 92, 255, 0.4));
  transition: filter var(--duration-base) var(--ease-out);
}

.brand:hover .brand-symbol {
  filter: drop-shadow(0 0 14px rgba(79, 216, 255, 0.45));
}

.brand em {
  color: var(--color-accent);
  font-style: normal;
}

.nav-links {
  display: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding-block: 0.55rem;
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav > .btn-primary {
  display: none;
  margin-left: 0.25rem;
}

.menu-toggle {
  display: inline-flex;
  margin-left: auto;
  gap: 0.55rem;
  padding-inline: 0.9rem;
  font-size: var(--text-2xs);
}

.menu-toggle-lines {
  display: grid;
  width: 1rem;
  gap: 4px;
}

.menu-toggle-lines i {
  display: block;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-fast) linear;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines i:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines i:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

@media (max-width: 56.24rem) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100dvh - var(--header-height));
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    padding: var(--space-2) var(--gutter) var(--space-5);
    border-bottom: 1px solid var(--color-line);
    background: rgba(18, 10, 36, 0.98);
    box-shadow: var(--shadow-float);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-link {
    display: block;
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--color-line);
    font-size: var(--text-xs);
  }

  .nav-links .nav-link:last-child {
    border-bottom: 0;
  }

  .nav-links .nav-link::after {
    display: none;
  }
}

@media (min-width: 56.25rem) {
  .nav {
    gap: var(--space-6);
  }

  .nav-links {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: var(--space-6);
  }

  .nav > .btn-primary {
    display: inline-flex;
  }

  .nav > .menu-toggle {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  min-height: var(--control-height);
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.btn > span {
  display: inline-block;
  transition: transform var(--duration-base) var(--ease-out);
}

.btn:hover {
  border-color: var(--color-line-accent);
  background: rgba(79, 216, 255, 0.06);
  transform: translateY(-1px);
}

.btn:hover > span {
  transform: translate(2px, -2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  box-shadow: var(--shadow-lime);
}

.btn-primary:hover {
  border-color: var(--color-accent-strong);
  background: var(--color-accent-strong);
  color: var(--color-accent-ink);
}

.btn-small {
  min-height: 2.25rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.5625rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10% -15% 0;
  background:
    radial-gradient(38rem 30rem at 74% 38%, rgba(124, 92, 255, 0.20), transparent 62%),
    radial-gradient(30rem 24rem at 12% 82%, rgba(76, 201, 255, 0.08), transparent 65%),
    radial-gradient(20rem 16rem at 88% 92%, rgba(143, 168, 255, 0.05), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  max-width: 12ch;
  margin-block: var(--space-5) var(--space-5);
  font-size: var(--display);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: var(--tracking-display);
}

.hero h1 .outline {
  -webkit-text-stroke-color: rgba(207, 196, 230, 0.62);
}

.hero h1 .accent {
  color: var(--color-accent);
}

.hero-copy {
  max-width: 34rem;
  color: var(--color-text-soft);
  font-size: var(--text-md);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-block: var(--space-6) var(--space-5);
}

.hero-note {
  max-width: 28rem;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-line);
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.13em;
  line-height: 1.8;
  text-transform: uppercase;
}

.hero-art {
  perspective: 900px;
}

.orbit {
  position: absolute;
  width: min(100%, 26rem);
  aspect-ratio: 1;
  border: 1px solid rgba(124, 92, 255, 0.32);
  border-radius: 50%;
  animation: orbit-spin 44s linear infinite;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(76, 201, 255, 0.18);
  border-radius: 50%;
  inset: 12%;
  transform: rotateX(64deg) rotateY(20deg);
}

.orbit::after {
  inset: 26%;
  border-color: rgba(79, 216, 255, 0.18);
  transform: rotateX(18deg) rotateY(62deg);
}

.core {
  position: relative;
  display: grid;
  width: clamp(9.5rem, 22vw, 13.5rem);
  aspect-ratio: 1;
  place-items: center;
  animation: core-float 7s var(--ease-in-out) infinite;
}

.core::before {
  content: "";
  position: absolute;
  inset: -1.5rem;
  border-radius: 50%;
  background: conic-gradient(
    from 210deg,
    rgba(124, 92, 255, 0.55),
    rgba(76, 201, 255, 0.32),
    rgba(79, 216, 255, 0.18),
    transparent 72%
  );
  filter: blur(26px);
  opacity: 0.9;
}

.core-shape {
  position: absolute;
  inset: 8%;
  border-radius: 48% 52% 44% 56% / 54% 46% 54% 46%;
  background:
    linear-gradient(145deg, rgba(124, 92, 255, 0.8), rgba(22, 11, 46, 0.96) 56%, rgba(76, 201, 255, 0.42));
  box-shadow:
    inset 0 0 50px rgba(79, 216, 255, 0.08),
    0 0 60px rgba(124, 92, 255, 0.25);
  animation: core-morph 16s var(--ease-in-out) infinite;
}

.hero-original-logo {
  position: relative;
  z-index: 2;
  width: 58%;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(124, 92, 255, 0.5));
}

.float-label {
  position: absolute;
  z-index: 2;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  background: rgba(22, 11, 46, 0.72);
  box-shadow: var(--shadow-sm);
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.float-label b {
  color: var(--color-accent);
  font-weight: 500;
}

.fl1 {
  top: 9%;
  right: 0;
}

.fl2 {
  bottom: 19%;
  left: 0;
}

.fl3 {
  right: 4%;
  bottom: 3%;
}

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */

.ticker {
  overflow: hidden;
  padding-block: 0.9rem;
  border-block: 1px solid var(--color-line);
  background: rgba(22, 11, 46, 0.55);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 2.5rem;
  animation: marquee 36s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.ticker b {
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Service cards
   -------------------------------------------------------------------------- */

.service-card {
  position: relative;
  display: flex;
  min-height: 16rem;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(1.4rem, 2.5vw, 1.9rem) clamp(1.4rem, 2.5vw, 1.9rem) 3.25rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--gradient-panel);
  transition:
    transform var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(18rem 14rem at 100% 0, rgba(124, 92, 255, 0.18), transparent 62%);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
  pointer-events: none;
}

.service-card:hover {
  border-color: var(--color-line-strong);
  box-shadow: var(--shadow-panel);
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .num {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.service-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin-block: var(--space-6) var(--space-4);
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: rgba(79, 216, 255, 0.05);
  color: var(--color-accent);
  font-size: 1.1rem;
  line-height: 1;
}

.service-card h3 {
  margin-bottom: 0.55rem;
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.service-card .arrow {
  position: absolute;
  right: 1.5rem;
  bottom: 1.35rem;
  color: var(--color-text-faint);
  font-size: 1rem;
  transition: color var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.service-card:hover .arrow {
  color: var(--color-accent);
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Selected work
   -------------------------------------------------------------------------- */

.portfolio-section {
  background:
    linear-gradient(180deg, transparent, rgba(22, 11, 46, 0.72) 14%, rgba(22, 11, 46, 0.72) 86%, transparent);
}

.portfolio-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: var(--space-7);
}

.tag {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface-1);
  transition:
    transform var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.project-card:hover {
  border-color: var(--project, var(--color-line-strong));
  box-shadow: var(--shadow-panel);
  transform: translateY(-4px);
}

.project-screen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 15rem;
  padding: 1.35rem;
  background: var(--project-bg);
  color: var(--project-ink);
}

.screen-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
  opacity: 0.78;
}

.screen-title {
  position: relative;
  z-index: 2;
  max-width: 12ch;
  margin-block: 2rem 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.92;
  overflow-wrap: break-word;
}

.screen-title em {
  color: var(--project);
  font-style: normal;
}

.screen-sub {
  position: relative;
  z-index: 2;
  max-width: 15rem;
  font-size: 0.6875rem;
  line-height: 1.55;
  opacity: 0.82;
}

.screen-orb {
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--project), transparent 68%);
  filter: blur(2px);
  opacity: 0.7;
}

.screen-shape {
  position: absolute;
  top: 24%;
  right: 16%;
  width: 6.5rem;
  height: 8.5rem;
  border: 1px solid var(--project);
  opacity: 0.32;
  transform: rotate(18deg);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
}

.project-meta h3 {
  margin-bottom: 0.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.project-meta p {
  color: var(--color-text-muted);
  font-size: 0.6875rem;
  line-height: 1.5;
}

.project-open {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  place-items: center;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  color: var(--color-accent);
  font-size: 0.9rem;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.project-open:hover {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  transform: rotate(8deg);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1.25rem 1.25rem;
}

.project-actions .btn {
  min-height: 2.15rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.5rem;
}

.gallery-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line);
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Approach panel (light surface)
   -------------------------------------------------------------------------- */

.manifesto {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-2xl);
  background-image:
    radial-gradient(26rem 22rem at 100% 0, rgba(124, 92, 255, 0.14), transparent 62%),
    radial-gradient(22rem 18rem at 0 100%, rgba(76, 201, 255, 0.12), transparent 66%);
  box-shadow: var(--shadow-panel);
}

.manifesto::before {
  content: "";
  position: absolute;
  top: -10rem;
  right: -8rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: conic-gradient(
    from 120deg,
    rgba(124, 92, 255, 0.28),
    rgba(76, 201, 255, 0.22),
    rgba(79, 216, 255, 0.18),
    transparent 72%
  );
  filter: blur(48px);
  opacity: 0.7;
  pointer-events: none;
}

.manifesto-stamp {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 14rem;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
  overflow: hidden;
  padding: var(--space-5);
  border: 1px solid rgba(79, 216, 255, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(14rem 12rem at 20% 20%, rgba(124, 92, 255, 0.24), transparent 62%),
    linear-gradient(160deg, #101a38, var(--brand-night));
  box-shadow: 0 20px 50px -30px rgba(22, 11, 46, 0.9);
}

.manifesto-stamp .eyebrow {
  color: var(--brand-lime);
}

.manifesto-stamp .eyebrow::before {
  background: var(--brand-lime);
}

.approach-original-logo {
  width: 4.5rem;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(124, 92, 255, 0.45));
}

.manifesto-stamp p {
  margin: 0;
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  line-height: 1.8;
  text-transform: uppercase;
}

.manifesto-copy h2 {
  margin-block: var(--space-4) var(--space-4);
  font-size: var(--heading-md);
  line-height: 1.02;
}

.manifesto-copy h2 span {
  color: var(--color-accent);
}

.manifesto-copy > p {
  max-width: 60ch;
  color: var(--color-text-soft);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.principle {
  padding-block: var(--space-4);
  border-top: 1px solid var(--color-line);
}

.principle b {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.principle p {
  margin-top: 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Packages
   -------------------------------------------------------------------------- */

.packages {
  align-items: stretch;
}

.package {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--gradient-panel);
}

.package.featured {
  border-color: rgba(79, 216, 255, 0.5);
  background:
    linear-gradient(160deg, rgba(79, 216, 255, 0.055), transparent 55%),
    var(--gradient-panel);
  box-shadow: var(--shadow-lime);
}

.package-name {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.package h3 {
  margin-top: var(--space-4);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.price {
  margin-block: 0.5rem 0.65rem;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.price small {
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0;
}

.package > p {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.package ul {
  margin-block: var(--space-4) var(--space-6);
  flex: 1;
  list-style: none;
}

.package li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-text-soft);
  font-size: 0.75rem;
  line-height: 1.55;
}

.package li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--color-accent);
}

.package .btn {
  width: 100%;
  margin-top: auto;
}

.pricing-note {
  max-width: 72ch;
  margin-top: var(--space-6);
  color: var(--color-text-faint);
  font-size: 0.6875rem;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Configurator
   -------------------------------------------------------------------------- */

.config-panel,
.estimate-panel {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  background: var(--color-surface-1);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.config-panel {
  display: flex;
  flex-direction: column;
}

.form-label {
  display: block;
  margin-block: var(--space-5) 0.6rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.form-label:first-child {
  margin-top: 0;
}

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

.choice {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-soft);
  font-size: 0.6875rem;
  line-height: 1.3;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.choice:hover {
  border-color: var(--color-line-accent);
  color: var(--color-text);
}

.choice.active {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-weight: 600;
}

.range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: 0.25rem;
  color: var(--color-text-muted);
  font-size: 0.6875rem;
}

.range-row strong {
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
}

input[type="range"] {
  width: 100%;
  height: 1.5rem;
  margin-block: 0.6rem 0.5rem;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-accent), rgba(79, 216, 255, 0.16));
}

input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -6.5px;
  border: 2px solid var(--color-bg);
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent), 0 0 16px rgba(79, 216, 255, 0.45);
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-moz-range-track {
  height: 3px;
  border-radius: 3px;
  background: rgba(79, 216, 255, 0.2);
}

input[type="range"]::-moz-range-progress {
  height: 3px;
  border-radius: 3px;
  background: var(--color-accent);
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-bg);
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.estimate-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-5);
  background:
    radial-gradient(28rem 20rem at 100% 0, rgba(124, 92, 255, 0.22), transparent 62%),
    var(--color-surface-1);
}

.estimate-panel .price {
  margin-block: 0.6rem 0.9rem;
  color: var(--color-accent);
  font-size: clamp(2.6rem, 5vw, 3.5rem);
}

.estimate-panel h3 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.estimate-panel p {
  margin-top: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.estimate-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-text-muted);
  font-size: 0.6875rem;
}

.estimate-line b {
  color: var(--color-text);
  font-weight: 500;
  text-align: right;
}

#sendBrief {
  width: 100%;
  margin-top: var(--space-4);
}

.estimate-panel .fine-print {
  margin-top: 0.65rem;
  font-size: 0.5625rem;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  background:
    radial-gradient(40rem 30rem at 0 100%, rgba(76, 201, 255, 0.07), transparent 60%),
    radial-gradient(36rem 28rem at 100% 0, rgba(124, 92, 255, 0.14), transparent 60%);
}

.contact-copy h2 {
  margin-block: var(--space-4);
  font-size: var(--heading-lg);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.contact-copy > p {
  max-width: 32rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.75;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-6);
}

.contact-note {
  margin-top: var(--space-5);
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-transform: uppercase;
}

.contact-form {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, rgba(33, 20, 63, 0.88), rgba(22, 11, 46, 0.94));
  box-shadow: var(--shadow-panel);
}

.field-grid {
  display: grid;
  gap: 0 0.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.field label {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  background: var(--color-bg-deep);
  color: var(--color-text);
  font-size: 0.8125rem;
  line-height: 1.5;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--color-line-accent);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-text-faint);
}

.field textarea {
  min-height: 6.5rem;
}

.field select {
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a79bc4' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.7rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: 0.5rem;
}

.form-foot small {
  max-width: 19rem;
  color: var(--color-text-faint);
  font-size: 0.625rem;
  line-height: 1.6;
}

#formStatus {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.6;
}

@media (min-width: 40rem) {
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-line);
  background: rgba(12, 6, 24, 0.5);
}

.footer-brand {
  margin-right: auto;
  font-size: 0.95rem;
}

.footer-brand .brand-mark {
  width: 1.8rem;
  height: 2.1rem;
}

.footer p {
  color: var(--color-text-faint);
  font-size: 0.6875rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.11em;
  line-height: 1.6;
  transition: color var(--duration-fast) var(--ease-out);
}

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

/* --------------------------------------------------------------------------
   Dot assistant
   -------------------------------------------------------------------------- */

.chat-launch {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: var(--z-chat);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: calc(100vw - 2rem);
  padding: 0.55rem 0.9rem 0.55rem 0.6rem;
  border: 1px solid rgba(22, 11, 46, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-paper-bright), #ece3ff);
  color: var(--brand-ink);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.45),
    0 0 0 3px rgba(124, 92, 255, 0.12);
  text-align: left;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.chat-launch:hover {
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.5),
    0 0 0 4px rgba(79, 216, 255, 0.2);
  transform: translateY(-2px);
}

.dot-desktop-icon {
  width: 2.5rem;
  height: 2.2rem;
  flex: none;
}

.dot-launch-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.1;
}

.dot-launch-copy strong {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dot-launch-copy small {
  color: #6a5b89;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.03em;
}

.dot-launch-arrow {
  margin-left: 0.1rem;
  color: #5a34db;
  font-size: 0.9rem;
}

.chat-panel {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: var(--z-chat);
  display: none;
  width: min(22.5rem, calc(100vw - 2rem));
  max-height: min(70dvh, 34rem);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface-1);
  box-shadow: var(--shadow-float);
}

.chat-panel.open {
  display: flex;
  animation: rise var(--duration-base) var(--ease-out);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--color-line);
  background: linear-gradient(110deg, #101a38, var(--brand-ink));
}

.dot-head-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
}

.dot-head-avatar {
  display: grid;
  width: 2.5rem;
  height: 2.25rem;
  flex: none;
  place-items: center;
  border: 1px solid rgba(79, 216, 255, 0.28);
  border-radius: 0.6rem;
  background: var(--brand-paper);
}

.dot-head-avatar svg {
  width: 2.15rem;
  height: 1.9rem;
}

.chat-head b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.chat-head small {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.dot-status {
  display: inline-block;
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-lime);
  box-shadow: 0 0 0 3px rgba(79, 216, 255, 0.16);
}

.chat-close {
  width: 2rem;
  height: 2rem;
  flex: none;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: var(--color-text-soft);
  font-size: 1.1rem;
  line-height: 1;
  transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.chat-close:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.chat-messages {
  display: flex;
  min-height: 8rem;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
  padding: 1rem;
}

.bubble {
  align-self: flex-start;
  max-width: 88%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.85rem 0.85rem 0.85rem 0.25rem;
  background: var(--color-surface-3);
  color: var(--color-text-soft);
  font-size: 0.75rem;
  line-height: 1.55;
}

.bubble.user {
  align-self: flex-end;
  border-radius: 0.85rem 0.85rem 0.25rem 0.85rem;
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.dot-faq-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.75rem 1rem 0;
  border-top: 1px solid var(--color-line);
}

.dot-faq-quick button {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
  transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.dot-faq-quick button:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.chat-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem 1rem 1rem;
}

.chat-form input {
  min-width: 0;
  flex: 1;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-pill);
  background: var(--color-bg-deep);
  color: var(--color-text);
  font-size: 0.75rem;
}

.chat-form input::placeholder {
  color: var(--color-text-faint);
}

.chat-form button {
  width: 2.4rem;
  flex: none;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Concept preview modal
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 4, 16, 0.84);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.modal.open {
  display: flex;
}

.modal-window {
  display: flex;
  width: min(74rem, 100%);
  height: min(90dvh, 53rem);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-xl);
  background: var(--color-surface-1);
  box-shadow: var(--shadow-float);
}

.modal-bar {
  display: flex;
  min-height: 4rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-line);
  background: rgba(22, 11, 46, 0.88);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.modal-title small {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.modal-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.modal-controls .btn {
  min-height: 2.15rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.5rem;
}

.modal-close {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--color-text);
  font-size: 1.2rem;
  line-height: 1;
  transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.modal-close:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.device-frame {
  display: flex;
  min-height: 0;
  flex: 1;
  justify-content: center;
  background: #fff;
  transition: width var(--duration-base) var(--ease-out), border-radius var(--duration-base) var(--ease-out);
}

.device-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.device-frame.mobile {
  width: 24.375rem;
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
  border-right: 0.5rem solid #241a3c;
  border-left: 0.5rem solid #241a3c;
  border-radius: 1.5rem;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: var(--z-toast);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1rem);
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   Progressive reveal
   -------------------------------------------------------------------------- */

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

.js-motion .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.js-motion .reveal.visible {
  opacity: 1;
  transform: none;
}

.js-motion .delay-1 {
  transition-delay: 0.08s;
}

.js-motion .delay-2 {
  transition-delay: 0.16s;
}

.js-motion .delay-3 {
  transition-delay: 0.24s;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes core-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes core-morph {
  0%,
  100% {
    border-radius: 48% 52% 44% 56% / 54% 46% 54% 46%;
  }

  50% {
    border-radius: 56% 44% 58% 42% / 44% 58% 42% 56%;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Compact screens
   -------------------------------------------------------------------------- */

@media (max-width: 30rem) {
  .brand {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 1.85rem;
    height: 2.15rem;
  }

  .menu-toggle {
    padding-inline: 0.75rem;
  }

  .menu-toggle-label {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13.5vw, 3.5rem);
  }

  .float-label {
    font-size: 0.4375rem;
    padding: 0.4rem 0.55rem;
  }

  .fl1 {
    top: 3%;
  }

  .fl2 {
    bottom: 14%;
  }

  .fl3 {
    bottom: 0;
  }

  .hero-scroll {
    display: none;
  }

  .project-screen {
    height: 13.5rem;
  }

  .contact-form,
  .config-panel,
  .estimate-panel {
    padding: 1.1rem;
  }

  .chat-launch {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  }

  .chat-panel {
    right: 0.75rem;
    bottom: 5rem;
    width: calc(100vw - 1.5rem);
  }

  .dot-launch-copy small {
    display: none;
  }
}

@media (max-width: 43.75rem) {
  .modal {
    padding: 0;
  }

  .modal-window {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .modal-bar {
    padding: 0.65rem 0.75rem;
  }

  .modal-title {
    font-size: 0.85rem;
  }

  .modal-controls {
    gap: 0.3rem;
  }

  .modal-controls .btn {
    padding: 0.4rem 0.55rem;
    font-size: 0.4375rem;
  }

  .device-frame.mobile {
    width: min(100%, 24.375rem);
    border-right-width: 0.3125rem;
    border-left-width: 0.3125rem;
  }
}
