* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg), var(--bg-alt));
  color-scheme: dark;
  isolation: isolate;
  touch-action: pan-y;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--c-molten);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--c-surface-2);
  color: var(--c-text);
  z-index: var(--z-toast);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.text-accent-onlight {
  color: var(--c-molten-onlight);
}

.dtf-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

.dtf-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: image-set(
    url("../assets/noise-tiling-1.avif") type("image/avif"),
    url("../assets/noise-tiling-1.webp") type("image/webp"),
    url("../assets/noise-tiling-1.png") type("image/png")
  );
  background-size: 320px 320px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  animation: noise-drift 90s linear infinite;
}

.film-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-film);
}

.film-layer::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    image-set(
      url("../assets/noise-tiling-1.avif") type("image/avif"),
      url("../assets/noise-tiling-1.webp") type("image/webp"),
      url("../assets/noise-tiling-1.png") type("image/png")
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 4px
    );
  background-size: 360px 360px, 100% 100%;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-blend-mode: overlay;
  animation: film-drift 120s linear infinite;
  will-change: transform;
}

.film-layer::after {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.55) 100%);
  opacity: 0.72;
  mix-blend-mode: multiply;
}

@supports not (mix-blend-mode: overlay) {
  .film-layer::before {
    opacity: 0.04;
    mix-blend-mode: normal;
    background-blend-mode: normal;
  }
}

body[data-page="order"] .film-layer {
  opacity: 0.3;
}

.dtf-shell::after {
  content: "";
  position: fixed;
  inset: -10% -10% auto -10%;
  height: 70vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 106, 0, 0.16), transparent 55%),
    radial-gradient(circle at 82% 32%, rgba(0, 194, 255, 0.08), transparent 60%),
    radial-gradient(circle at 40% 70%, rgba(139, 143, 90, 0.1), transparent 65%);
  opacity: 0.24;
  filter: blur(34px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: ambient-drift 22s ease-in-out infinite;
}

.ink-droplets {
  position: fixed;
  inset: -10% -10%;
  background-image: url("../assets/ink-droplets-field.png");
  background-size: 1400px 1400px;
  background-repeat: repeat;
  opacity: var(--drop-opacity, 0);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  transform: translate3d(var(--drop-dx, 0px), var(--drop-dy, 0px), 0);
  animation: droplet-float 28s ease-in-out infinite;
  transition: opacity 600ms ease;
  filter: blur(10px);
}

.ink-droplets.has-canvas {
  background-image: none;
  filter: none;
  animation: none;
}

.ink-droplets canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  filter: blur(16px) contrast(1.15) saturate(1.05);
  mix-blend-mode: screen;
  transform: translate3d(var(--drop-dx, 0px), var(--drop-dy, 0px), 0);
  will-change: transform, opacity;
  pointer-events: none;
}

body[data-page="home"] .ink-droplets {
  display: none;
}

body[data-page="home"][data-legacy-ink="on"] .ink-droplets {
  display: block;
}

.home-dot-distortion {
  display: none;
  --dot-pointer-x: 50%;
  --dot-pointer-y: 42%;
  --dot-shift-x: 0px;
  --dot-shift-y: 0px;
  --dot-arc-x: 0px;
  --dot-arc-y: 0px;
  --dot-glow: 0.4;
}

body[data-page="home"] .home-dot-distortion {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}


.dtf-shell > *:not(.ink-droplets):not(.home-dot-distortion):not(.nav-drawer):not(.mobile-dock) {
  position: relative;
  z-index: 1;
}

.dtf-container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.dtf-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dtf-header-topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 4, 4, 0.5);
}

.header-topbar-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: env(safe-area-inset-top);
}

.header-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(239, 243, 255, 0.84);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.header-status-chip-text {
  display: inline-block;
  transition: opacity 220ms ease, transform 220ms ease;
}

.header-status-chip.is-swapping .header-status-chip-text {
  opacity: 0;
  transform: translateY(6px);
}

.dtf-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 92, 0, 0.35), rgba(255, 255, 255, 0.1) 45%, rgba(255, 92, 0, 0.35));
  opacity: 0.6;
  pointer-events: none;
}

@supports (backdrop-filter: blur(12px)) {
  .dtf-header {
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(12px);
  }
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .mobile-dock {
    backdrop-filter: blur(10px);
  }
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
}

.logo-mark {
  background: var(--accent);
  color: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 14px;
}

.logo-text {
  font-size: 16px;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  gap: 14px;
  font-size: 0.72rem;
  color: var(--muted);
  flex-wrap: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  justify-self: center;
  align-items: center;
  min-width: 0;
}

.main-nav a {
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 92, 0, 0.7), rgba(255, 255, 255, 0.2) 70%, transparent);
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: left;
  transition: opacity var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}

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

.main-nav a.is-active {
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.header-contact-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(243, 245, 254, 0.95);
  padding: 6px 10px;
  max-width: 42px;
  overflow: hidden;
  transition:
    max-width var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    background var(--motion-fast) var(--motion-ease);
}

.contact-chip:hover,
.contact-chip:focus-visible {
  max-width: 180px;
  border-color: rgba(255, 140, 0, 0.48);
  background: rgba(255, 140, 0, 0.11);
}

.contact-chip-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.contact-chip-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.contact-chip-label {
  opacity: 0;
  transform: translateX(8px);
  white-space: nowrap;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  transition: opacity var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}

.contact-chip:hover .contact-chip-label,
.contact-chip:focus-visible .contact-chip-label {
  opacity: 1;
  transform: translateX(0);
}

.profile-menu {
  position: relative;
  isolation: isolate;
}

.profile-scrim {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 5, 0.56);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--motion-fast) var(--motion-ease),
    visibility 0s linear var(--motion-fast);
  z-index: var(--z-modal);
}

@supports ((-webkit-backdrop-filter: blur(6px)) or (backdrop-filter: blur(6px))) {
  .profile-scrim {
    backdrop-filter: blur(6px) saturate(118%);
  }
}

.profile-scrim.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: var(--text);
  padding: 4px;
  font: inherit;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition:
    border-color var(--motion-fast) var(--motion-ease),
    background var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease);
}

.profile-trigger:hover,
.profile-trigger:focus-visible {
  border-color: rgba(255, 140, 0, 0.62);
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.24), rgba(255, 92, 0, 0.16));
  transform: translateY(-1px);
  box-shadow:
    0 10px 22px rgba(255, 92, 0, 0.25),
    inset 0 0 0 1px rgba(255, 166, 0, 0.28);
}

.profile-avatar,
.profile-panel-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 92, 0, 0.86), rgba(255, 166, 0, 0.72));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(255, 92, 0, 0.24);
  flex-shrink: 0;
}

.profile-avatar img,
.profile-panel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-panel {
  position: fixed;
  left: 12px;
  right: auto;
  top: calc(60px + env(safe-area-inset-top));
  width: min(348px, calc(100vw - 24px));
  max-height: min(70vh, 640px);
  overflow-y: auto;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(168deg, rgba(18, 18, 19, 0.98), rgba(10, 10, 10, 0.99));
  box-shadow:
    0 30px 64px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease),
    visibility 0s linear var(--motion-fast);
  z-index: var(--z-popover);
}

.profile-panel::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 92, 0, 0.62), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .profile-panel {
    backdrop-filter: blur(10px) saturate(128%);
  }
}

.profile-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.profile-panel-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.profile-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-panel-head.guest {
  margin-bottom: 10px;
}

.profile-panel-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.profile-panel-meta strong {
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.profile-panel-meta small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.25;
}

.profile-panel-links {
  display: grid;
  gap: 7px;
}

.profile-link,
.profile-logout-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  min-height: 42px;
  padding: 11px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  transition:
    border-color var(--motion-fast) var(--motion-ease),
    background var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
}

.profile-link:hover,
.profile-link:focus-visible,
.profile-logout-btn:hover,
.profile-logout-btn:focus-visible {
  border-color: rgba(255, 140, 0, 0.45);
  background: rgba(255, 140, 0, 0.16);
  transform: translateY(-1px);
}

.profile-link-ghost {
  margin-top: 8px;
  border-style: dashed;
  color: var(--muted);
  justify-content: center;
  text-align: center;
}

.profile-logout-form {
  margin-top: 8px;
}

.profile-logout-btn {
  cursor: pointer;
  font: inherit;
  justify-content: center;
  text-align: center;
}

.profile-auth-tabs {
  margin-top: 2px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.profile-auth-divider {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-auth-divider::before,
.profile-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
}

.profile-google-btn {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    border-color var(--motion-fast) var(--motion-ease),
    background var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease);
}

.profile-google-btn img {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.profile-google-btn:hover,
.profile-google-btn:focus-visible {
  border-color: rgba(255, 140, 0, 0.5);
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.18), rgba(255, 92, 0, 0.13));
  transform: translateY(-1px);
  box-shadow:
    0 10px 22px rgba(255, 92, 0, 0.22),
    inset 0 0 0 1px rgba(255, 166, 0, 0.22);
}

.profile-auth-tab {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  min-height: 36px;
  font: inherit;
  font-size: 0.79rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color var(--motion-fast) var(--motion-ease),
    background var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease);
}

.profile-auth-tab.is-active {
  color: #fff;
  border-color: rgba(255, 92, 0, 0.62);
  background: linear-gradient(180deg, rgba(255, 92, 0, 0.26), rgba(255, 92, 0, 0.17));
}

.profile-auth-form {
  display: grid;
  gap: 9px;
  margin-top: 9px;
}

.profile-auth-form[hidden] {
  display: none !important;
}

.profile-auth-form > label {
  font-size: 0.79rem;
  gap: 5px;
}

.profile-auth-form input:not([type="range"]) {
  min-height: 40px;
}

.profile-auth-form .btn {
  width: 100%;
  margin-top: 3px;
}

.profile-feedback {
  min-height: 22px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.profile-feedback.is-error {
  color: #ff6b6b;
}

.profile-feedback.is-success {
  color: #a7f3d0;
}

body.is-drawer-open .profile-panel.is-open,
body.is-modal-open .profile-panel.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-drawer-open .profile-scrim.is-open,
body.is-modal-open .profile-scrim.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-profile-open .dtf-header {
  background: rgba(10, 10, 10, 0.96);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.nav-drawer {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--motion-base) var(--motion-ease),
    visibility 0s linear var(--motion-base);
  z-index: var(--z-modal);
}

.nav-drawer,
.nav-panel,
.nav-backdrop {
  pointer-events: none;
}

.nav-drawer,
.nav-panel,
.nav-panel-head,
.nav-panel-links,
.nav-panel-links a,
.nav-close,
.nav-title {
  isolation: isolate;
}

.nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.nav-drawer.is-open,
.nav-drawer.is-open .nav-panel,
.nav-drawer.is-open .nav-backdrop {
  pointer-events: auto;
}

.nav-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 92, 0, 0.16), transparent 36%),
    rgba(5, 5, 6, 0.9);
  transition: opacity var(--motion-base) var(--motion-ease);
}

.nav-drawer.is-open .nav-backdrop {
  opacity: 1;
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .nav-backdrop {
    backdrop-filter: blur(10px) saturate(120%);
  }
}

.nav-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(90vw, 360px);
  height: 100%;
  padding: calc(22px + env(safe-area-inset-top)) 20px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(165deg, rgba(20, 20, 20, 0.995) 0%, rgba(10, 10, 10, 0.985) 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(108%);
  opacity: 1;
  transition:
    transform var(--motion-base) var(--motion-ease),
    opacity var(--motion-base) var(--motion-ease),
    box-shadow var(--motion-base) var(--motion-ease);
  box-shadow:
    -26px 0 64px rgba(0, 0, 0, 0.62),
    inset 1px 0 0 rgba(255, 255, 255, 0.08);
  will-change: transform, opacity;
}

.nav-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-left: 1px solid rgba(255, 92, 0, 0.28);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 16%,
    transparent 84%,
    rgba(255, 92, 0, 0.08) 100%
  );
}

.nav-drawer.is-open .nav-panel {
  transform: translateX(0);
  opacity: 1;
}

.nav-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.nav-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--letter-tight-soft);
}

.nav-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition:
    background var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
}

.nav-close:hover,
.nav-close:focus-visible {
  background: rgba(255, 92, 0, 0.2);
  border-color: rgba(255, 92, 0, 0.55);
  transform: scale(1.03);
}

.nav-close:active {
  transform: scale(0.98);
}

.nav-panel-links {
  display: grid;
  gap: 10px;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.nav-panel-links a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    border-color var(--motion-fast) var(--motion-ease),
    background var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
}

.nav-panel-links a:hover,
.nav-panel-links a:focus-visible {
  border-color: rgba(255, 140, 0, 0.5);
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.2), rgba(255, 92, 0, 0.13));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transform: translateX(-2px);
}

.nav-panel-links a.is-active {
  border-color: rgba(255, 92, 0, 0.68);
  background: linear-gradient(180deg, rgba(255, 92, 0, 0.24), rgba(255, 92, 0, 0.16));
  color: var(--text);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

body.is-drawer-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.is-drawer-open .mobile-dock,
body.is-drawer-open .dtf-floating-dock,
body.is-drawer-open .dtf-manager-fab-wrap {
  opacity: 0;
  pointer-events: none;
}

body.is-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.is-modal-open .mobile-dock,
body.is-modal-open .dtf-floating-dock,
body.is-modal-open .dtf-manager-fab-wrap {
  opacity: 0;
  pointer-events: none;
}

.lang-switch {
  display: flex;
  gap: 4px;
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.02);
  flex: 0 0 auto;
}

.lang-switch a {
  min-width: 32px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  transition: background var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease);
}

.lang-switch a.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  min-height: 40px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    background var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-molten-1) 0%, var(--c-molten-2) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 92, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  font-variation-settings: "wght" 600;
  transition: transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    background var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    font-variation-settings 220ms ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(255, 92, 0, 0.38), inset 0 0 0 1px rgba(255, 140, 0, 0.45);
  font-variation-settings: "wght" 640;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
  transform: translateX(-120%) skewX(-12deg);
  opacity: 0;
  pointer-events: none;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 0, 0.4);
  opacity: 0;
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-primary:focus-visible::after {
  animation: btn-sheen 240ms ease;
}

.btn-primary.cta-pulse::before {
  animation: cta-pulse 900ms ease 1;
}

.btn:focus-visible {
  outline: 2px solid var(--c-molten);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

.btn.is-success {
  border-color: rgba(72, 255, 180, 0.55);
  background: linear-gradient(135deg, rgba(44, 201, 118, 0.9), rgba(28, 165, 84, 0.9));
  color: #fff;
  box-shadow: 0 10px 22px rgba(28, 165, 84, 0.35);
}

.btn-secondary,
.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover,
.btn-outline:hover {
  border-color: rgba(255, 140, 0, 0.35);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 140, 0, 0.35);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  border-color: rgba(255, 140, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 0, 0.35);
}

/* CTA hierarchy: primary (intent), secondary (alternative), tertiary (context link). */
.btn-tertiary,
.hero-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(241, 245, 255, 0.82);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 168, 112, 0.52);
  text-underline-offset: 3px;
}

.btn-tertiary:hover,
.btn-tertiary:focus-visible,
.hero-cta-link:hover,
.hero-cta-link:focus-visible {
  color: #fff;
  text-decoration-color: rgba(255, 168, 112, 0.92);
}

section.section {
  padding: 80px 0;
}

@supports (content-visibility: auto) {
  main > section.section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 760px;
  }
}

body[data-page="home"] section.section {
  position: relative;
}

body[data-page="home"] section.section::before {
  content: "";
  position: absolute;
  inset: -12% -6%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 92, 0, 0.18), transparent 60%),
    radial-gradient(circle at 75% 40%, rgba(255, 140, 0, 0.12), transparent 55%);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
  pointer-events: none;
  z-index: 0;
}

body[data-page="home"] section.section.is-hot::before {
  opacity: 0.45;
  transform: translateY(0);
}

body[data-page="home"] section.section > .dtf-container {
  position: relative;
  z-index: 1;
}

.section h1,
.section h2 {
  font-family: var(--font-display);
  margin: 0 0 16px;
  letter-spacing: var(--letter-tight);
  line-height: 0.98;
  font-feature-settings: "ss01" 1, "ss02" 1, "ss03" 1, "liga" 1;
}

.section h2 {
  letter-spacing: var(--letter-tight-soft);
  line-height: 1.04;
}

.overline {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 92, 0, 0.6), rgba(255, 255, 255, 0.08) 70%, transparent);
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: left;
  transition: opacity 240ms ease, transform 240ms ease;
}

.section-head[data-reveal].is-visible h2::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  position: relative;
  padding: 90px 0 60px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 106, 0, 0.16), transparent 56%),
    radial-gradient(circle at 78% 24%, rgba(255, 182, 74, 0.12), transparent 62%),
    radial-gradient(circle at 55% 84%, rgba(139, 143, 90, 0.1), transparent 64%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0px,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 7px
    );
  background-blend-mode: screen;
  opacity: 0.22;
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
  animation: hero-aurora 18s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -30% -20%;
  background: radial-gradient(circle at var(--ink-x, 55%) var(--ink-y, 30%), rgba(255, 132, 32, 0.2), transparent 62%);
  opacity: var(--ink-opacity, 0);
  filter: blur(34px);
  pointer-events: none;
  z-index: 0;
  transition: opacity 700ms ease;
}

.home-dot-distortion .dot-distortion-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  opacity: 0;
  mix-blend-mode: screen;
  filter: saturate(1.10) contrast(1.12);
  pointer-events: none;
  transition: opacity 180ms ease;
}

.home-dot-distortion.has-canvas .dot-distortion-canvas {
  opacity: 0;
  transition: opacity 240ms ease;
}

.home-dot-distortion.has-canvas.is-canvas-ready .dot-distortion-canvas {
  opacity: 0.98;
}

.home-dot-distortion.has-canvas.is-canvas-ready .dot-field,
.home-dot-distortion.has-canvas.is-canvas-ready .dot-orb {
  display: none;
}

.home-dot-distortion.is-static .dot-distortion-canvas {
  opacity: 0 !important;
}

.home-dot-distortion.is-static .dot-field,
.home-dot-distortion.is-static .dot-field::before,
.home-dot-distortion.is-static .dot-orb {
  animation: none !important;
  transform: none !important;
}

.home-dot-distortion.is-static .dot-field {
  opacity: 0.22;
}

.home-dot-distortion.is-static .dot-orb {
  opacity: 0.2;
}

.home-dot-distortion.is-static::before {
  background:
    radial-gradient(120% 90% at 52% 74%, rgba(6, 7, 9, 0.28), rgba(5, 5, 7, 0.82) 74%, rgba(5, 5, 7, 0.92) 100%);
  opacity: 0.62;
}

.home-dot-distortion::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 52% 76%, rgba(6, 7, 9, 0.12), rgba(5, 5, 7, 0.62) 72%, rgba(5, 5, 7, 0.76) 100%);
  opacity: var(--dot-glow);
  transition: opacity 200ms ease;
}

.home-dot-distortion::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(36% 28% at 12% 18%, rgba(94, 138, 255, 0.1), transparent 74%),
    radial-gradient(30% 27% at 84% 26%, rgba(154, 189, 255, 0.08), transparent 76%);
  opacity: 0.72;
}

.home-dot-distortion .dot-field {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(94, 155, 255, 0.62) 1px, transparent 1.7px);
  background-size: 18px 18px;
  opacity: 0.16;
  mask-image: radial-gradient(ellipse at 50% 44%, #000 50%, rgba(0, 0, 0, 0.45) 76%, transparent 100%);
  animation: dot-drift 24s linear infinite;
  transform: translate3d(var(--dot-shift-x), var(--dot-shift-y), 0);
  will-change: transform, opacity;
}

.home-dot-distortion .dot-field::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(42% 32% at 30% 30%, rgba(4, 4, 6, 0.95), transparent 72%),
    radial-gradient(36% 30% at 68% 64%, rgba(4, 4, 6, 0.92), transparent 74%),
    radial-gradient(26% 24% at 84% 24%, rgba(4, 4, 6, 0.76), transparent 72%);
  mix-blend-mode: multiply;
  animation: dot-warp 20s ease-in-out infinite;
  transform: translate3d(var(--dot-arc-x), var(--dot-arc-y), 0);
  will-change: transform;
}

.home-dot-distortion .dot-field-alt {
  background-image: radial-gradient(circle at 1px 1px, rgba(158, 194, 255, 0.34) 1px, transparent 1.7px);
  background-size: 24px 24px;
  opacity: 0.07;
  filter: none;
  mix-blend-mode: screen;
  animation-duration: 30s;
  animation-direction: reverse;
  transform: translate3d(calc(var(--dot-shift-x) * -0.65), calc(var(--dot-shift-y) * -0.65), 0);
}

.home-dot-distortion .dot-orb {
  position: absolute;
  width: clamp(120px, 12vw, 220px);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 28%, rgba(227, 239, 255, 0.3), rgba(105, 157, 255, 0.16) 38%, rgba(68, 116, 238, 0.05) 62%, rgba(68, 116, 238, 0) 100%);
  mix-blend-mode: screen;
  filter: none;
  opacity: 0.12;
  transform: translate3d(var(--orb-x, 0px), var(--orb-y, 0px), 0);
  will-change: transform, opacity;
  animation: dot-orb-float 18s ease-in-out infinite;
}

.home-dot-distortion .dot-orb-1 {
  top: 24%;
  left: 18%;
}

.home-dot-distortion .dot-orb-2 {
  top: 56%;
  left: 54%;
  width: clamp(150px, 14vw, 250px);
  opacity: 0.16;
  animation-delay: -5s;
}

.home-dot-distortion .dot-orb-3 {
  top: 20%;
  left: 76%;
  width: clamp(98px, 9vw, 170px);
  opacity: 0.14;
  animation-delay: -9s;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-grid::before {
  content: "";
  position: absolute;
  inset: -40px;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 120px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 48px
    );
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

@supports (mask-image: radial-gradient(#000, transparent)) {
  .hero-grid::before {
    opacity: 0.1;
    mask-image: radial-gradient(circle at 40% 20%, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0));
  }
}

.hero-grid > * {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 3vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-feature-settings: "ss01" 1, "ss02" 1, "ss03" 1, "liga" 1;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.ink-spread {
  font-variation-settings: "wght" var(--ink-wght, 600);
  transition: font-variation-settings 220ms ease, text-shadow 220ms ease;
}

.scan-hero.scan-animate .ink-spread,
.scan-hero:hover .ink-spread {
  --ink-wght: 640;
  text-shadow: 0 10px 24px rgba(255, 106, 0, 0.22);
}

.scan-title {
  position: relative;
  display: inline-block;
}

.scan-hero {
  --scan-duration: 900ms;
}

.hero-beams {
  position: absolute;
  inset: -16% -10% 10% -10%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-beams .beam {
  position: absolute;
  top: -35%;
  bottom: -35%;
  width: clamp(120px, 10vw, 220px);
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(18deg);
  will-change: transform, opacity;
}

.hero-beams.is-active .beam {
  opacity: 0.16;
  animation: hero-beam 8.2s ease-in-out infinite;
}

.hero-beams .beam-1 {
  left: 2%;
  background: linear-gradient(180deg, rgba(255, 130, 20, 0), rgba(255, 130, 20, 0.86), rgba(255, 130, 20, 0));
}

.hero-beams .beam-2 {
  left: 36%;
  animation-delay: 1.2s;
  background: linear-gradient(180deg, rgba(255, 245, 180, 0), rgba(255, 214, 100, 0.75), rgba(255, 214, 100, 0));
}

.hero-beams .beam-3 {
  left: 68%;
  animation-delay: 2.4s;
  background: linear-gradient(180deg, rgba(139, 143, 90, 0), rgba(139, 143, 90, 0.72), rgba(139, 143, 90, 0));
}

.scan-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 18px
    );
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.scan-hero.scan-animate::before {
  animation: scan-pass var(--scan-duration) linear forwards;
}

.scan-hero::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -20%;
  width: 140px;
  background: linear-gradient(90deg, rgba(255, 92, 0, 0) 0%, rgba(255, 92, 0, 0.35) 50%, rgba(255, 92, 0, 0) 100%);
  opacity: 0;
  filter: blur(12px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

.scan-hero.scan-tier-2::before {
  opacity: 0.02;
}

.scan-hero.scan-tier-3::before {
  opacity: 0.03;
}

.scan-hero.scan-tier-4::before {
  opacity: 0.04;
}

.scan-outline {
  display: inline-block;
  color: var(--text);
  -webkit-text-stroke: 0;
  text-stroke: 0;
}

.scan-fill {
  position: absolute;
  inset: 0;
  display: none;
  color: var(--c-molten);
  clip-path: inset(0 100% 0 0);
}

.scan-accent {
  color: var(--c-molten);
}

.flip-words {
  display: inline-grid;
  min-width: 9ch;
  justify-items: start;
  margin-left: 0.2ch;
  perspective: 560px;
  vertical-align: baseline;
}

.flip-word {
  display: inline-block;
  transform-origin: 50% 60%;
  transition: transform 180ms ease, opacity 180ms ease, filter 180ms ease;
  will-change: transform, opacity;
}

.flip-word.is-swap {
  opacity: 0.24;
  transform: rotateX(78deg);
  filter: blur(1.5px);
}

.scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  display: none;
  width: 4px;
  left: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 18px rgba(255, 92, 0, 0.45);
  mix-blend-mode: screen;
}

.scan-hero.scan-enhanced .scan-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
  text-stroke: 1px rgba(255, 255, 255, 0.6);
}

.scan-hero.scan-enhanced .scan-fill {
  display: inline-block;
}

.scan-hero.scan-enhanced .scan-line {
  display: block;
}

.scan-hero.scan-animate .scan-fill {
  animation: scan-fill var(--scan-duration) linear forwards;
}

.scan-hero.scan-animate .scan-line {
  animation: scan-line var(--scan-duration) linear forwards;
}

.scan-hero.scan-animate::after {
  animation: scan-glow var(--scan-duration) linear forwards;
}

@supports ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  .scan-hero.scan-animate .hero-card::after {
    opacity: 0.55;
    animation: hero-glow var(--scan-duration) ease;
  }
}

.scan-hero.scan-animate .hero-media::before {
  animation: scan-media 1.2s ease;
}

.scan-hero.scan-static .scan-fill {
  clip-path: inset(0 35% 0 0);
}

.scan-hero.scan-animate .hero-card {
  animation: hero-reveal var(--scan-duration) var(--motion-ease) both;
}

.scan-hero.scan-static .hero-card {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateY(0);
}

.scan-hero.scan-tier-0 .scan-line {
  display: none;
}

@keyframes scan-fill {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes scan-line {
  0% { opacity: 1; left: 0; }
  100% { opacity: 0; left: 100%; }
}

@keyframes scan-glow {
  0% { opacity: 0; transform: translateX(0); }
  15% { opacity: 0.65; }
  100% { opacity: 0; transform: translateX(120%); }
}

@keyframes scan-pass {
  0% { opacity: 0; }
  15% { opacity: 0.22; }
  70% { opacity: 0.12; }
  100% { opacity: 0; }
}

@keyframes hero-reveal {
  from { opacity: 0.25; clip-path: inset(0 100% 0 0); transform: translateY(10px); }
  to { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0); }
}

@keyframes noise-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-12px, 10px, 0); }
}

@keyframes film-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10px, -12px, 0) scale(1.02); }
}

@keyframes ambient-drift {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(18px) translateX(-12px); }
}

@keyframes hero-aurora {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
  50% { transform: translateY(12px) scale(1.03); opacity: 0.45; }
}

@keyframes dot-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.38;
  }
  50% {
    transform: translate3d(14px, -8px, 0) scale(1.02);
    opacity: 0.5;
  }
  100% {
    transform: translate3d(-8px, 6px, 0) scale(1);
    opacity: 0.4;
  }
}

@keyframes dot-warp {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3%, -2%, 0) scale(1.06); }
}

@keyframes dot-orb-float {
  0%, 100% { transform: translate3d(var(--orb-x, 0px), var(--orb-y, 0px), 0) scale(1); }
  50% { transform: translate3d(calc(var(--orb-x, 0px) + 8px), calc(var(--orb-y, 0px) - 10px), 0) scale(1.05); }
}

@keyframes hero-glow {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-12px); opacity: 0.7; }
}

@keyframes hero-beam {
  0% {
    transform: translate3d(-6%, 0, 0) rotate(18deg);
    opacity: 0.12;
  }
  50% {
    transform: translate3d(8%, -2.5%, 0) rotate(20deg);
    opacity: 0.36;
  }
  100% {
    transform: translate3d(-4%, 0, 0) rotate(18deg);
    opacity: 0.14;
  }
}

@keyframes hero-sheen {
  0%, 40% { opacity: 0; transform: translateX(-70%) skewX(-12deg); }
  55% { opacity: 0.55; }
  100% { opacity: 0; transform: translateX(70%) skewX(-12deg); }
}

@keyframes scan-media {
  0% { opacity: 0; transform: translateX(-60%); }
  25% { opacity: 0.55; }
  100% { opacity: 0; transform: translateX(60%); }
}

@keyframes stat-scan {
  0% { opacity: 0; transform: translateX(-40%); }
  20% { opacity: 0.65; }
  100% { opacity: 0; transform: translateX(40%); }
}

@keyframes btn-sheen {
  0% { opacity: 0; transform: translateX(-120%) skewX(-12deg); }
  30% { opacity: 0.6; }
  100% { opacity: 0; transform: translateX(120%) skewX(-12deg); }
}

@keyframes cta-pulse {
  0% { opacity: 0; transform: scale(0.98); }
  40% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}

@keyframes droplet-float {
  0%, 100% { background-position: 40% 40%; }
  50% { background-position: 60% 55%; }
}

@keyframes caret-blink {
  0%, 49% { opacity: 0.75; }
  50%, 100% { opacity: 0; }
}

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

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(255, 106, 0, 0.14); }
  50% { box-shadow: 0 0 0 10px rgba(255, 106, 0, 0.24); }
}

@keyframes status-flash {
  0% { opacity: 0; transform: translateX(-40%); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateX(40%); }
}

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

.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
}

/* Numeric features for prices, meters, tables */
.price-table,
.calc-value,
.estimate-value,
.estimate-sub,
.price-badge,
.hero-stat strong,
.num,
.tabular-nums {
  font-variant-numeric: tabular-nums slashed-zero;
  font-feature-settings: var(--num-feature-settings);
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-cta-link {
  display: inline-flex;
  align-items: center;
  color: rgba(235, 239, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 140, 0, 0.45);
  transition: color var(--motion-fast) var(--motion-ease), text-decoration-color var(--motion-fast) var(--motion-ease);
}

.hero-cta-link:hover,
.hero-cta-link:focus-visible {
  color: #fff;
  text-decoration-color: rgba(255, 140, 0, 0.8);
}

.hero-trust {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transform-style: preserve-3d;
  transform: translateY(0) perspective(1000px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  will-change: transform;
  transition: transform var(--motion-base) var(--motion-ease),
    box-shadow var(--motion-base) var(--motion-ease),
    border-color var(--motion-base) var(--motion-ease);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 92, 0, 0.55), rgba(255, 140, 0, 0.25), rgba(255, 92, 0, 0));
  opacity: 0;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity var(--motion-base) var(--motion-ease);
}

.hero-card:hover {
  transform: translateY(-4px) perspective(1000px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(255, 140, 0, 0.35);
  border-color: rgba(255, 140, 0, 0.35);
}

@supports ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  .hero-card:hover::after {
    opacity: 1;
  }
}

.work-card::after,
.proof-card::after {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 30%), rgba(255, 106, 0, 0.22), transparent 60%);
  opacity: var(--spot-opacity, 0);
  transition: opacity var(--motion-base) var(--motion-ease);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.hero-card > *,
.work-card > *,
.proof-card > * {
  position: relative;
  z-index: 1;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.price-badge {
  background: rgba(255, 106, 0, 0.14);
  color: #ffb27a;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.hot-peel {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hot-peel-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), transparent 36%),
    linear-gradient(145deg, rgba(255, 177, 122, 0.35), rgba(255, 92, 0, 0.15));
  border: 1px solid rgba(255, 140, 0, 0.5);
  box-shadow:
    0 10px 20px rgba(255, 92, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hot-peel-core {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb27a, var(--c-molten));
  box-shadow:
    0 0 0 4px rgba(255, 92, 0, 0.18),
    0 0 18px rgba(255, 92, 0, 0.4);
}

.hot-peel-copy {
  display: grid;
  line-height: 1.05;
  gap: 3px;
}

.hot-peel-copy strong {
  font-family: var(--font-display);
  letter-spacing: var(--letter-tight-soft);
  font-size: 0.88rem;
}

.hot-peel-copy small {
  color: rgba(245, 245, 242, 0.7);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-card-body {
  display: grid;
  gap: 12px;
}

.hero-media {
  margin: 12px 0 16px;
  display: grid;
  place-items: center;
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 92, 0, 0.22) 50%, transparent 100%);
  opacity: 0;
  transform: translateX(-60%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: -15%;
  background: linear-gradient(120deg, transparent 15%, rgba(255, 106, 0, 0.22) 45%, transparent 70%);
  transform: translateX(-70%) skewX(-12deg);
  opacity: 0.4;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: hero-sheen 6.5s ease-in-out infinite;
}

.hero-card:hover .hero-media::before {
  animation: scan-media 1.2s ease;
}

.hero-card:hover .hero-stat::after {
  opacity: 0.75;
  animation: stat-scan 1.4s ease;
}

.asset-placeholder {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  padding: 12px;
}

.hero-stat {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
  padding-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.hero-stat::after {
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 92, 0, 0), rgba(255, 92, 0, 0.55), rgba(255, 92, 0, 0));
  opacity: 0;
}

.hero-stat strong {
  font-family: var(--font-display);
}

.hero-card-foot {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-bg {
  position: absolute;
  inset: auto -20% 0 -20%;
  height: 260px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 106, 0, 0.18), transparent 55%),
    radial-gradient(circle at 80% 50%, rgba(139, 143, 90, 0.14), transparent 60%);
  z-index: var(--z-negative);
  filter: blur(12px);
  animation: hero-glow 14s ease-in-out infinite;
}

.hero-micro-offer {
  padding-top: 0;
  padding-bottom: 26px;
}

.hero-micro-offer p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(22, 22, 22, 0.95), rgba(14, 14, 14, 0.9));
  color: rgba(240, 243, 255, 0.85);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-micro-offer a {
  color: #ffd6b1;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.estimate-section {
  padding-top: 0;
}

.estimate-bar {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 20px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.95), rgba(28, 28, 28, 0.9));
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.estimate-bar::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) left top/10px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) left top/1px 10px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) right top/10px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) right top/1px 10px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) left bottom/10px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) left bottom/1px 10px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) right bottom/10px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) right bottom/1px 10px no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

.estimate-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.estimate-field input {
  width: 100%;
  font-weight: 600;
}

.estimate-output {
  align-self: stretch;
}

.estimate-value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: var(--letter-tight);
}

.estimate-sub {
  color: var(--muted);
  font-size: 0.85rem;
}

.estimate-bar .btn {
  align-self: end;
  white-space: nowrap;
}

.estimate-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.estimate-actions .btn {
  width: 100%;
  align-self: stretch;
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 92, 0, 0.18) 50%, transparent 70%);
  opacity: 0;
  transform: translateX(-80%);
  pointer-events: none;
}

.step:hover::after {
  opacity: 0.6;
  transform: translateX(80%);
  transition: transform 800ms ease, opacity 300ms ease;
}

.step-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 92, 0, 0.14);
  border: 1px solid rgba(255, 140, 0, 0.35);
  display: inline-grid;
  place-items: center;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.step-icon img {
  width: 20px;
  height: 20px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255, 140, 0, 0.35));
}

.step-icon::after {
  content: attr(data-step);
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0e0e0e;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-section {
  background: var(--surface-alt);
}

.price-table {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.price-table::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background:
    linear-gradient(rgba(255, 255, 255, 0.14) 0 0) left top/10px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.14) 0 0) left top/1px 10px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.14) 0 0) right top/10px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.14) 0 0) right top/1px 10px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.14) 0 0) left bottom/10px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.14) 0 0) left bottom/1px 10px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.14) 0 0) right bottom/10px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.14) 0 0) right bottom/1px 10px no-repeat;
  opacity: 0.2;
  pointer-events: none;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.price-row.head {
  background: linear-gradient(135deg, #141414 0%, #1f1f1f 100%);
  color: #fff;
  font-weight: 600;
}

.calc-example {
  margin-top: 20px;
}

.meter-explainer {
  margin: 20px 0;
}

.meter-steps {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.meter-step {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: rgba(240, 244, 255, 0.88);
}

.meter-step strong {
  color: var(--accent);
  min-width: 18px;
}

.price-b2b-note {
  margin-top: 10px;
  color: rgba(224, 232, 255, 0.82);
}

.price-b2b-note a {
  color: #ffd19c;
  text-decoration: underline;
}

.price-cta-group {
  margin-top: 20px;
}

.cutoff-block {
  margin-top: 20px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th,
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.table th {
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.table-striped tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.work-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transition: transform var(--motion-base) var(--motion-ease),
    box-shadow var(--motion-base) var(--motion-ease),
    border-color var(--motion-base) var(--motion-ease);
}

.work-card,
.proof-card,
.gallery-card,
.knowledge-card,
.blog-sidebar .card {
  contain: layout paint style;
}

.work-card::after {
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 30%), rgba(255, 92, 0, 0.26), transparent 60%);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(255, 140, 0, 0.35);
  border-color: rgba(255, 140, 0, 0.35);
}

.work-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--c-surface-2);
  overflow: hidden;
}

.work-media img,
.work-media .skeleton {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-chips {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.work-card figcaption {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.work-card figcaption strong {
  color: var(--text);
  font-weight: 600;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.quality-compare-grid {
  margin-top: 20px;
}

.proof-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform var(--motion-base) var(--motion-ease),
    box-shadow var(--motion-base) var(--motion-ease),
    border-color var(--motion-base) var(--motion-ease);
}

.proof-card::after {
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 30%), rgba(255, 92, 0, 0.22), transparent 60%);
}

.proof-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(255, 140, 0, 0.35);
  border-color: rgba(255, 140, 0, 0.35);
}

.hero-card::before,
.work-card::before,
.proof-card::before,
.compare-media::before,
.lens-media::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background:
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) left top/8px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) left top/1px 8px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) right top/8px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) right top/1px 8px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) left bottom/8px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) left bottom/1px 8px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) right bottom/8px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) right bottom/1px 8px no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 2;
}

.proof-meta {
  display: grid;
  gap: 4px;
}

.proof-title {
  font-weight: 600;
}

.proof-sub {
  color: var(--muted);
  font-size: 0.85rem;
}

.compare-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--c-surface-2);
  --compare: 50%;
  cursor: ew-resize;
  touch-action: pan-y;
}

.compare-media.is-dragging {
  cursor: grabbing;
}

.compare-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.compare-layer img,
.lens-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-after {
  width: var(--compare);
  right: auto;
  overflow: hidden;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare);
  width: 3px;
  background: var(--c-molten);
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.4);
  transform: translateX(-2px);
  pointer-events: none;
}

.compare-handle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92), rgba(255, 140, 0, 0.3));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

.compare-range {
  width: 100%;
  margin-top: 12px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  height: 28px;
}

.compare-range:focus-visible {
  outline: none;
}

.compare-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 92, 0, 0.64));
}

.compare-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(180deg, #ffcb9f, var(--c-molten));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.compare-range::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 92, 0, 0.64));
}

.compare-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(180deg, #ffcb9f, var(--c-molten));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.compare-card.is-disabled .compare-range {
  display: none;
}

.lens-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--c-surface-2);
}

.lens-glass {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background-repeat: no-repeat;
}

.lens-media.is-active .lens-glass {
  opacity: 1;
}

.lens-card.is-disabled .lens-glass {
  display: none;
}

.lens-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: var(--z-modal);
}

.lens-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.lens-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.75);
}

.lens-modal-dialog {
  position: relative;
  width: min(90vw, 720px);
  background: var(--surface);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lens-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
}

.lens-modal-media {
  display: grid;
  place-items: center;
}

.lens-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-bar .chip.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 0;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background:
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) left top/8px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) left top/1px 8px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) right top/8px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) right top/1px 8px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) left bottom/8px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) left bottom/1px 8px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) right bottom/8px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) right bottom/1px 8px no-repeat;
  opacity: 0.16;
  pointer-events: none;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 106, 0, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.gallery-card > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) {
  .gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

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

.gallery-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-surface-2);
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-chips {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gallery-body {
  padding: 14px 16px 18px;
  display: grid;
  gap: 10px;
}

.case-passport summary {
  cursor: pointer;
  font-weight: 600;
}

.passport-body {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  display: grid;
  gap: 4px;
}

.work-card.placeholder {
  padding: 20px;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.faq {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-q {
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  font-weight: 600;
  padding: 8px 0;
  cursor: pointer;
}

.list li .dtf-icon {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: text-bottom;
  color: var(--dtf-accent, #f97316);
}

h2 .dtf-icon,
h3 .dtf-icon,
.tab-btn .dtf-icon,
.faq-q .dtf-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: text-bottom;
  color: currentColor;
}

.faq-a {
  display: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-item.open .faq-a {
  display: block;
}

.knowledge-preview-section .section-head p {
  max-width: 760px;
}

.knowledge-bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.knowledge-tile {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 10px;
}

.knowledge-tile.work .asset-slot {
  margin-bottom: 4px;
}

.knowledge-tile time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.knowledge-tile h3 {
  margin: 0;
  font-size: 1.05rem;
}

.knowledge-tile h3 a:hover {
  color: var(--c-molten);
}

.knowledge-timeline-shell {
  position: relative;
  padding-left: 34px;
}

.tracing-beam {
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  overflow: hidden;
}

.tracing-beam-progress {
  position: absolute;
  left: 1px;
  right: 1px;
  top: 0;
  height: 0%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 122, 22, 0.95), rgba(255, 225, 166, 0.86));
  box-shadow: 0 0 22px rgba(255, 122, 22, 0.5);
}

.knowledge-month + .knowledge-month {
  margin-top: 30px;
}

.knowledge-month h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-molten);
}

.knowledge-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.knowledge-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.knowledge-card time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.knowledge-card h3 {
  margin: 0;
  font-size: 1.04rem;
}

.knowledge-card h3 a:hover {
  color: var(--c-molten);
}

.knowledge-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.knowledge-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.knowledge-overlay {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
  z-index: var(--z-modal-backdrop);
}

.knowledge-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.knowledge-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 7, 0.8);
}

.knowledge-overlay-dialog {
  position: relative;
  width: min(920px, 94vw);
  max-height: min(86vh, 820px);
  margin: min(7vh, 56px) auto;
  border-radius: 18px;
  background: #0d0d0e;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: var(--z-modal);
}

.knowledge-overlay-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.knowledge-overlay-scroll {
  max-height: min(86vh, 820px);
  overflow: auto;
  padding: 24px 22px 22px;
}

.knowledge-overlay-title {
  margin: 0 0 14px;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.knowledge-overlay-content h3 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
}

.knowledge-overlay-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  gap: 8px;
  align-items: center;
}

.knowledge-overlay-excerpt {
  color: #fff;
  font-size: 1.02rem;
  margin: 0 0 12px;
}

.knowledge-overlay-body {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.knowledge-overlay-body h2,
.knowledge-overlay-body h3 {
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}

.knowledge-overlay-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.reading-progress {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: var(--z-sticky);
}

.reading-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255, 122, 22, 0.95), rgba(255, 225, 166, 0.92));
  box-shadow: 0 0 14px rgba(255, 122, 22, 0.4);
}

.blog-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1fr);
  gap: 18px;
  align-items: start;
}

.blog-article {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px;
  box-shadow: var(--shadow);
}

.blog-post-meta {
  margin: 0 0 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.blog-article h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.blog-post-excerpt {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.blog-post-content {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.blog-post-content h2,
.blog-post-content h3 {
  margin-top: 1.2em;
  margin-bottom: 0.4em;
}

.blog-post-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-sidebar .card {
  position: sticky;
  top: calc(84px + env(safe-area-inset-top));
}

.blog-related-list {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 8px;
}

.blog-related-list li a:hover {
  color: var(--c-molten);
}


.order-tabs {
  display: flex;
  gap: 12px;
  margin: 30px 0 20px;
  position: relative;
  flex-wrap: wrap;
  background: var(--surface);
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tab-btn {
  flex: 1;
  padding: 12px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  z-index: var(--z-base);
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 132, 22, 0.2), rgba(255, 132, 22, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 140, 0, 0.28);
}

.tab-indicator {
  display: none;
}

.order-panels .panel {
  display: none;
}

.order-panels .panel.active {
  display: block;
  animation: panel-fade-slide 220ms ease;
}

@keyframes panel-fade-slide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.order-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.card,
.panel,
.info-card,
.delivery {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.7rem;
  color: var(--muted);
  cursor: help;
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: 140%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(18, 18, 18, 0.98);
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1.3;
  width: max-content;
  max-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  z-index: var(--z-popover);
}

.tooltip:hover::after,
.tooltip:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-grid > label {
  min-width: 0;
}

/* Order layout */
.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: start;
}

.order-layout > * {
  min-width: 0;
}

.order-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}

.block-head h2,
.block-head h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  letter-spacing: var(--letter-tight-soft);
  line-height: 1.05;
}

.block-head p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.upload-zone {
  position: relative;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  background: repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 8px,
      transparent 8px,
      transparent 16px
    );
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.upload-zone.is-drag-over,
.upload-zone.is-dragover {
  border-color: var(--c-molten);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.2);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.upload-filename {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.upload-steps {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.upload-step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(120, 132, 182, 0.45);
  background: rgba(8, 10, 16, 0.72);
  color: rgba(222, 228, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.preview-card {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

.preview-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.preview-card.is-underbase {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 20, 0.9));
  color: #fff;
}

.filecheck-list {
  display: grid;
  gap: 8px;
  position: relative;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.92), rgba(18, 18, 18, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.filecheck-list::after {
  content: "▮";
  position: absolute;
  left: 16px;
  bottom: 6px;
  color: var(--c-molten);
  opacity: 0.75;
  animation: caret-blink 1.1s steps(2, start) infinite;
}

.filecheck-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.filecheck-label {
  font-size: 0.9rem;
  font-family: var(--font-ui);
  letter-spacing: 0;
}

.filecheck-status {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.75rem;
}

.filecheck-status.ok { color: #7fd1b9; }
.filecheck-status.warn { color: #ffd166; }
.filecheck-status.risk { color: #ff7a7a; }

.risk-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.risk-check input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.risk-check span {
  line-height: 1.35;
}

.order-summary {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 10px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.98), rgba(30, 30, 30, 0.92));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.summary-head {
  display: grid;
  gap: 4px;
}

.summary-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  gap: 12px;
}

.summary-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.summary-foot {
  font-size: 0.8rem;
  color: var(--muted);
}

body.keyboard-open .order-summary {
  display: none;
}

body[data-page="order"] .ink-droplets {
  display: none;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 6px;
}

label small,
.help-text,
.form-note {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

input:not([type="range"]), select, textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-2);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  caret-color: var(--c-molten);
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

input:not([type="range"])::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:not([type="range"]):focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--c-molten);
  outline-offset: 2px;
  border-color: var(--c-molten);
  box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.15), inset 0 0 0 1px rgba(255, 92, 0, 0.45);
}

input:not([type="range"])[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--c-heat);
  box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.15);
}

input:not([type="range"]):disabled,
select:disabled,
textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-errors {
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.22);
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.form-error {
  color: var(--c-heat);
  font-size: 0.9rem;
}

.alert {
  margin: 12px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 200, 0, 0.12);
  color: #ffd166;
  border: 1px solid rgba(255, 200, 0, 0.35);
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 24px;
  background: rgba(20, 20, 20, 0.9);
  color: var(--c-text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: var(--z-toast);
}

.toast.success { border-color: rgba(255, 106, 0, 0.6); }
.toast.warn { border-color: rgba(255, 200, 0, 0.6); }
.toast.error { border-color: rgba(255, 59, 48, 0.6); }

.calc-box {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
  border-radius: 16px;
  margin: 20px 0;
}

.calc-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.calc-value {
  font-weight: 700;
  font-size: 1.2rem;
}

.calc-note {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.85rem;
}

.calc-warning {
  flex-basis: 100%;
  color: #b45309;
  font-size: 0.85rem;
  font-weight: 600;
}

.trust-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.thanks {
  text-align: center;
}

.thanks-card {
  margin: 20px auto;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: min(420px, 100%);
}

.thanks-card .value {
  font-size: 1.5rem;
  font-weight: 700;
}

.status-page .status-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.status-page .status-form .btn {
  grid-column: 1 / -1;
  justify-self: flex-start;
}

.status-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.status-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background:
    linear-gradient(rgba(255, 255, 255, 0.14) 0 0) left top/8px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.14) 0 0) left top/1px 8px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.14) 0 0) right top/8px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.14) 0 0) right top/1px 8px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.14) 0 0) left bottom/8px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.14) 0 0) left bottom/1px 8px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.14) 0 0) right bottom/8px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.14) 0 0) right bottom/1px 8px no-repeat;
  opacity: 0.2;
  pointer-events: none;
}

.status-pipeline {
  position: relative;
  overflow: hidden;
}

.status-pipeline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.35), transparent);
  opacity: 0;
  pointer-events: none;
}

.status-board.is-flash .status-pipeline::after {
  animation: status-flash 120ms ease-out;
}

.status-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  letter-spacing: var(--letter-tight);
}

.status-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.status-board {
  display: grid;
  gap: 20px;
}

.status-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.check-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.check-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.check-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.check-status.ok { color: #7fd1b9; }
.check-status.warn { color: #ffd166; }
.check-status.risk { color: #ff7a7a; }

.status-header .label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--muted);
}

.status-header .value,
.status-header .ttn {
  font-variant-numeric: tabular-nums slashed-zero;
  font-feature-settings: var(--num-feature-settings);
}

.status-header .value {
  font-size: 1.2rem;
  font-weight: 700;
}

.status-header .ttn {
  font-size: 0.85rem;
  color: var(--muted);
}

.status-steps {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  position: relative;
  padding-left: 12px;
}

.status-steps::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.status-step {
  display: flex;
  gap: 12px;
  align-items: center;
}

.status-step strong {
  font-weight: 600;
}

.status-step small {
  font-size: 0.8rem;
  color: var(--muted);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.status-step.done .status-dot {
  background: var(--c-olive);
  box-shadow: 0 0 0 6px rgba(139, 143, 90, 0.16);
}

.status-step.active .status-dot {
  background: var(--c-molten);
  box-shadow: 0 0 0 6px rgba(255, 106, 0, 0.18);
  animation: status-pulse 1.6s ease-in-out infinite;
}

.status-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.status-icon img {
  width: 18px;
  height: 18px;
  display: block;
}

.status-step.done .status-icon {
  border-color: rgba(139, 143, 90, 0.5);
  box-shadow: inset 0 0 0 1px rgba(139, 143, 90, 0.2);
}

.status-step.active .status-icon {
  border-color: rgba(255, 92, 0, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 92, 0, 0.25), 0 0 12px rgba(255, 92, 0, 0.2);
}

.status-next {
  margin-top: 16px;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.info-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.req-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.req-card ul,
.list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.requirements-checklist {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.requirements-checklist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.safe-area-card h3 {
  margin-bottom: 10px;
}

.safe-area-schema {
  position: relative;
  width: min(100%, 260px);
  aspect-ratio: 16 / 10;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 92, 0, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.safe-area-outer,
.safe-area-inner {
  position: absolute;
  border-radius: 8px;
}

.safe-area-outer {
  inset: 10%;
  border: 1px dashed rgba(255, 255, 255, 0.42);
}

.safe-area-inner {
  inset: 22%;
  border: 2px solid rgba(255, 140, 0, 0.7);
}

.req-visual {
  margin: 20px 0 28px;
}

.template-links {
  margin-bottom: 24px;
}

.template-steps {
  margin: 12px 0 8px;
  padding-left: 18px;
}

.template-linkline a {
  color: #ffd19c;
  text-decoration: underline;
}

.cta-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.muted {
  color: var(--muted);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.dtf-footer {
  margin-top: auto;
  padding: 44px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(7, 9, 14, 0.92), rgba(8, 8, 10, 0.98)),
    radial-gradient(circle at 18% -30%, rgba(255, 106, 0, 0.08), transparent 48%);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(280px, 1fr) auto;
  gap: 28px;
  color: var(--muted);
  align-items: start;
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 8px;
}

.footer-meta {
  justify-self: end;
  text-align: right;
  color: rgba(233, 236, 248, 0.75);
}

.dtf-manager-fab-wrap {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-popover);
  transition: opacity var(--motion-fast) var(--motion-ease);
}

.manager-fab-btn {
  min-width: 52px;
  min-height: 172px;
  padding: 6px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 120, 22, 0.92), rgba(226, 96, 11, 0.95));
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 14px 28px rgba(255, 92, 0, 0.3);
  cursor: pointer;
  transition:
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    filter var(--motion-fast) var(--motion-ease);
}

.manager-fab-btn:hover,
.manager-fab-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(255, 92, 0, 0.38);
  filter: brightness(1.04);
}

.manager-fab-plus {
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.manager-fab-label {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.dtf-manager-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px calc(20px + env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--motion-base) var(--motion-ease),
    visibility 0s linear var(--motion-base);
  z-index: var(--z-modal-backdrop);
}

.dtf-manager-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.manager-modal-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 92, 0, 0.16), transparent 34%),
    rgba(4, 4, 4, 0.9);
  transition: opacity var(--motion-base) var(--motion-ease);
  z-index: var(--z-modal-backdrop);
}

.dtf-manager-modal.active .manager-modal-backdrop {
  opacity: 1;
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .manager-modal-backdrop {
    backdrop-filter: blur(9px) saturate(118%);
  }
}

.manager-modal-content {
  position: relative;
  width: min(460px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  padding: 24px 22px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(168deg, rgba(22, 22, 22, 0.995) 0%, rgba(12, 12, 12, 0.985) 100%);
  z-index: var(--z-modal);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  transition:
    transform var(--motion-base) var(--motion-ease),
    opacity var(--motion-base) var(--motion-ease);
}

.manager-modal-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(130% 80% at 100% 0, rgba(255, 92, 0, 0.14), transparent 56%);
}

.dtf-manager-modal.active .manager-modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.manager-modal-content h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: var(--letter-tight-soft);
}

#dtf-manager-form {
  display: grid;
  gap: 12px;
}

#dtf-manager-form input,
#dtf-manager-form select,
#dtf-manager-form textarea {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

#dtf-manager-form input:focus-visible,
#dtf-manager-form select:focus-visible,
#dtf-manager-form textarea:focus-visible {
  border-color: rgba(255, 92, 0, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.18), inset 0 0 0 1px rgba(255, 92, 0, 0.45);
}

#dtf-manager-form .btn {
  width: 100%;
  margin-top: 4px;
}

.manager-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.36);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
}

.manager-modal-close:hover,
.manager-modal-close:focus-visible {
  background: rgba(255, 92, 0, 0.2);
  border-color: rgba(255, 92, 0, 0.55);
  transform: scale(1.03);
}

.manager-modal-close:active {
  transform: scale(0.97);
}

.manager-modal-sub {
  margin: 0 0 16px;
  color: rgba(245, 245, 242, 0.74);
}

.manager-modal-content .form-note {
  color: rgba(245, 245, 242, 0.68);
}

.mobile-dock {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(10, 10, 10, 0.92));
  padding: 10px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: none;
  gap: 6px;
  z-index: var(--z-sticky);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition: opacity var(--motion-fast) var(--motion-ease);
}

.mobile-dock::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 120px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 60px
    );
  opacity: 0.2;
  pointer-events: none;
}

.mobile-dock > * {
  position: relative;
  z-index: 1;
}

.mobile-dock .dock-item {
  min-height: 44px;
}

.dock-item-button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

body[data-page="order"] .mobile-dock {
  display: none;
}

.dock-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  background: transparent;
}

.dock-item:hover,
.dock-item:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.dock-item.is-active {
  color: var(--text);
  background: rgba(255, 92, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 92, 0, 0.35);
}

.mobile-contact-sheet {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--motion-base) var(--motion-ease), visibility 0s linear var(--motion-base);
}

.mobile-contact-sheet.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.mobile-contact-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.72);
}

.mobile-contact-sheet-dialog {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(19, 19, 19, 0.98), rgba(10, 10, 10, 0.98));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
  padding: 16px 14px;
}

.mobile-contact-sheet-dialog h3 {
  margin: 0 0 10px;
}

.mobile-contact-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.mobile-contact-actions {
  display: grid;
  gap: 8px;
}

.mobile-contact-action {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
}

.mobile-contact-action strong {
  color: #fff;
  font-size: 0.92rem;
}

.mobile-contact-action span {
  color: rgba(223, 233, 255, 0.74);
  font-size: 0.8rem;
}

.mobile-contact-status {
  margin: 10px 0 0;
  color: rgba(223, 233, 255, 0.78);
  font-size: 0.8rem;
}

@supports not ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .dtf-header {
    background: rgba(10, 10, 10, 0.98);
  }
}

@media (max-width: 1180px) {
  .main-nav {
    display: none;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

.skeleton {
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}

.asset-slot {
  background: var(--c-surface-2);
  border-radius: var(--r-2);
  overflow: hidden;
  position: relative;
}

.asset-slot picture {
  display: block;
  width: 100%;
  height: 100%;
}

.asset-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

body.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.34s ease, transform 0.34s ease;
}

body.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body[data-page="home"] .hero [data-reveal],
body[data-page="home"] .hero [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

body:not(.fx-ready) .dtf-shell::before,
body:not(.fx-ready) .dtf-shell::after {
  content: none;
  animation: none;
}

body:not(.fx-ready) .film-layer::before,
body:not(.fx-ready) .film-layer::after {
  content: none;
  animation: none;
}

body:not(.fx-ready) .dtf-header {
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: none !important;
}

body[data-page="home"]:not(.fx-ready) .hero::before,
body[data-page="home"]:not(.fx-ready) .hero-bg {
  animation: none !important;
}

body[data-page="home"]:not(.fx-ready) .hero::before {
  opacity: 0.12;
  filter: blur(16px);
}

body[data-page="home"]:not(.fx-ready) .hero-bg {
  opacity: 0.3;
}

body[data-page="home"]:not(.fx-ready) .scan-hero::after,
body[data-page="home"]:not(.fx-ready) .hero-media::after,
body[data-page="home"]:not(.fx-ready) .hero-card::after {
  animation: none !important;
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .header-topbar-inner {
    min-height: 34px;
  }

  .header-status-chip {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .mobile-dock {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: calc(100% - 24px);
  }

  .header-contact-actions {
    gap: 6px;
  }

  .contact-chip,
  .contact-chip:hover,
  .contact-chip:focus-visible {
    max-width: 42px;
  }

  .contact-chip-label {
    display: none;
  }

  .dtf-manager-fab-wrap {
    display: none;
  }
  .hero {
    padding-top: 60px;
  }
  .home-dot-distortion .dot-field {
    background-size: 20px 20px;
    opacity: 0.17;
  }
  .home-dot-distortion .dot-orb-2 {
    left: 52%;
  }
  .hero-grid {
    gap: 28px;
  }
  .hero-card {
    padding: 18px;
  }
  .estimate-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .estimate-bar .btn {
    width: 100%;
  }
  .order-layout {
    grid-template-columns: 1fr;
  }
  .order-right {
    padding-bottom: 0;
  }
  .order-summary {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    z-index: var(--z-sticky);
    margin-bottom: 12px;
  }
  .blog-post-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar .card {
    position: static;
  }
}

@media (max-width: 768px) {
  .dtf-header,
  .hero-card,
  .proof-card,
  .work-card,
  .knowledge-card,
  .gallery-card,
  .profile-panel,
  .manager-modal-content,
  .dtf-floating-dock,
  .mobile-dock {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (max-width: 640px) {
  section.section {
    padding: 60px 0;
  }
  .nav-backdrop {
    background: rgba(5, 5, 6, 0.98);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .nav-panel {
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 100dvh;
    min-height: 100svh;
    border-left: 0;
    border-top: 0;
    border-radius: 0;
    transform: translateY(-110%);
    padding: calc(18px + env(safe-area-inset-top)) 16px calc(22px + env(safe-area-inset-bottom));
    background: #0a0a0a;
    z-index: 2;
  }
  .nav-panel-links {
    gap: 12px;
    align-content: start;
    margin-top: 6px;
  }
  .nav-panel-links a {
    min-height: 50px;
  }
  .nav-drawer.is-open .nav-panel {
    transform: translateY(0);
  }
  .nav-drawer {
    z-index: 9999;
  }
  .nav-panel::before {
    border-left: 0;
  }
  .hot-peel {
    padding: 5px 8px;
    gap: 8px;
  }
  .hot-peel-mark {
    width: 30px;
    height: 30px;
  }
  .hot-peel-copy strong {
    font-size: 0.82rem;
  }
  .hot-peel-copy small {
    font-size: 0.64rem;
  }
  .home-dot-distortion .dot-field {
    background-size: 20px 20px;
    opacity: 0.17;
  }
  .home-dot-distortion .dot-orb {
    opacity: 0.12;
    filter: none;
  }
  .home-dot-distortion .dot-orb-3 {
    display: none;
  }
  .btn {
    min-height: 48px;
  }
  .hero-grid,
  .works-grid,
  .proof-grid,
  .gallery-grid,
  .split,
  .form-grid,
  .status-grid,
  .status-page .status-form,
  .info-grid,
  .req-grid,
  .template-grid,
  .knowledge-cards,
  .knowledge-bento,
  .blog-post-layout {
    grid-template-columns: 1fr;
  }
  .calc-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .mobile-dock {
    width: calc(100% - 20px);
  }
  .price-row {
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
  }
  .price-row span:last-child {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.85rem;
  }
  .price-row.head {
    display: none;
  }
  .profile-panel {
    left: 10px;
    right: 10px;
    top: calc(60px + env(safe-area-inset-top));
    width: auto;
    max-height: calc(100dvh - 76px - env(safe-area-inset-top));
    border-radius: 16px;
  }
  .profile-scrim {
    background: rgba(4, 4, 5, 0.68);
  }
  .knowledge-timeline-shell {
    padding-left: 22px;
  }
  .tracing-beam {
    left: 0;
    width: 8px;
  }
  .knowledge-overlay-dialog {
    width: calc(100% - 20px);
    margin: 10px auto;
    max-height: calc(100vh - 20px);
    border-radius: 14px;
  }
  .knowledge-overlay-scroll {
    max-height: calc(100vh - 20px);
    padding: 18px 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scan-line {
    display: none;
  }
  .ink-droplets {
    display: none;
  }
  .hero-beams {
    display: none;
  }
  .home-dot-distortion .dot-field,
  .home-dot-distortion .dot-field::before,
  .home-dot-distortion .dot-orb {
    animation: none;
    transform: none;
  }
  .flip-word {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .film-layer::before {
    animation: none;
  }
  .hero-card:hover .hero-media::before {
    animation: none;
  }
  .hero-card {
    transform: none;
  }
  .step:hover::after {
    opacity: 0;
    transform: none;
  }
  .hero-card:hover .hero-stat::after {
    opacity: 0;
    animation: none;
  }
  .btn-primary.cta-pulse::before {
    animation: none;
  }
  .tracing-beam-progress {
    height: 100% !important;
    opacity: 0.35;
  }
}

/* Part 4 layout additions */
.hero-encrypted-line {
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: rgba(145, 159, 224, 0.86);
  line-height: 1.4;
  min-height: 1.4em;
}

.hero-reassure {
  margin-top: 8px;
  color: rgba(211, 221, 255, 0.76);
  font-size: 13px;
}

.sample-grid,
.cabinet-grid,
.constructor-intro-grid,
.products-grid,
.team-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-flow {
  margin: 6px 0 10px;
  color: rgba(220, 229, 255, 0.82);
  font-size: 0.9rem;
}

.sample-size-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 14px;
}

.sample-compact-grid {
  margin-bottom: 14px;
}

.sample-size-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(108, 120, 170, 0.6);
  background: rgba(11, 15, 24, 0.7);
}

.sample-advanced {
  margin: 6px 0 14px;
}

.sample-advanced > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: rgba(239, 244, 255, 0.92);
  margin-bottom: 12px;
}

.sample-advanced > summary::-webkit-details-marker {
  display: none;
}

.sample-advanced[open] > summary {
  color: #fff;
}

.sample-format-note {
  display: block;
  margin: 0 0 10px;
  font-size: 0.84rem;
}

.sample-timeline {
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.templates-encrypted {
  margin-top: 6px;
  font-size: 12px;
}

.tracing-beam-doc {
  position: relative;
  padding-left: 26px;
}

.tracing-beam-line {
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: rgba(120, 132, 182, 0.3);
  border-radius: 999px;
}

.tracing-beam-line [data-tracing-beam-progress] {
  display: block;
  width: 100%;
  height: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #ff8f3f, #63a2ff);
  transition: height 220ms ease;
}

.terminal-error {
  border: 1px solid rgba(255, 120, 108, 0.5);
  background: rgba(34, 7, 8, 0.86);
  font-family: var(--font-mono);
}

.constructor-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.constructor-sidebar,
.constructor-main {
  display: grid;
  gap: 14px;
  align-content: start;
}

.constructor-step-tabs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: start;
}

.constructor-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(114, 126, 178, 0.46);
  background: rgba(8, 10, 15, 0.72);
  color: rgba(219, 225, 247, 0.85);
}

.constructor-step.is-active {
  border-color: rgba(255, 130, 20, 0.68);
  background: linear-gradient(140deg, rgba(255, 130, 20, 0.18), rgba(84, 128, 255, 0.12));
}

.constructor-step-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 204, 147, 0.95);
}

.constructor-step-label {
  font-size: 0.82rem;
  font-weight: 600;
}

.constructor-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cabinet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.about-pin {
  margin-top: 16px;
}

@media (max-width: 960px) {
  .constructor-layout {
    grid-template-columns: 1fr;
  }

  .constructor-step-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .constructor-step-tabs::-webkit-scrollbar {
    display: none;
  }

  .constructor-step {
    flex: 0 0 auto;
    min-width: 132px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    justify-self: start;
    text-align: left;
  }
}

/* DTF Admin Panel */
.dtf-admin-root {
  position: relative;
  overflow-x: clip;
}

.dtf-admin-root .dtf-container {
  width: min(1520px, 96%);
}

.dtf-admin-mobile-toggle {
  display: none;
}

.dtf-admin-layout {
  --admin-sidebar-collapsed: 88px;
  --admin-sidebar-expanded: 304px;
  display: grid;
  grid-template-columns: var(--admin-sidebar-collapsed) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  position: relative;
  transition: grid-template-columns 220ms ease;
}

.dtf-admin-layout.is-sidebar-expanded {
  grid-template-columns: var(--admin-sidebar-expanded) minmax(0, 1fr);
}

.dtf-admin-sidebar-backdrop {
  display: none;
}

.dtf-admin-sidebar {
  position: sticky;
  top: 86px;
  align-self: start;
  min-height: calc(100vh - 120px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(190deg, rgba(13, 14, 18, 0.98), rgba(8, 9, 12, 0.98));
  transition: box-shadow 220ms ease, border-color 220ms ease;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.45);
  isolation: isolate;
}

.dtf-admin-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 146, 68, 0.1), transparent 36%, rgba(54, 99, 170, 0.14));
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.dtf-admin-layout.is-sidebar-expanded .dtf-admin-sidebar,
.dtf-admin-sidebar:hover,
.dtf-admin-sidebar.is-open {
  border-color: rgba(255, 152, 78, 0.34);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(255, 117, 24, 0.16);
}

.dtf-admin-sidebar-toggle {
  display: none;
}

.dtf-admin-sidebar-inner {
  padding: 14px;
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.dtf-admin-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f8f9ff;
  font-weight: 700;
}

.dtf-admin-logo .mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 28% 22%, rgba(255, 175, 96, 0.78), rgba(255, 101, 0, 0.76));
  color: #130c07;
  font-size: 0.78rem;
}

.dtf-admin-logo .text {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 200ms ease, transform 200ms ease;
  white-space: nowrap;
}

.dtf-admin-layout.is-sidebar-expanded .dtf-admin-logo .text,
.dtf-admin-sidebar:hover .dtf-admin-logo .text,
.dtf-admin-sidebar.is-open .dtf-admin-logo .text {
  opacity: 1;
  transform: translateX(0);
}

.dtf-admin-nav {
  display: grid;
  gap: 8px;
}

.dtf-admin-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.02);
  color: #f3f4f6;
  cursor: pointer;
  padding: 0 11px;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.dtf-admin-nav-item .icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 146, 68, 0.2);
  border: 1px solid rgba(255, 146, 68, 0.4);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: rgba(255, 197, 151, 0.95);
}

.dtf-admin-nav-item .icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.dtf-admin-nav-item .label {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.dtf-admin-layout.is-sidebar-expanded .dtf-admin-nav-item .label,
.dtf-admin-sidebar:hover .dtf-admin-nav-item .label,
.dtf-admin-sidebar.is-open .dtf-admin-nav-item .label {
  opacity: 1;
  transform: translateX(0);
}

.dtf-admin-nav-item:hover,
.dtf-admin-nav-item.is-active {
  border-color: rgba(255, 136, 50, 0.64);
  background: linear-gradient(130deg, rgba(255, 136, 50, 0.16), rgba(126, 165, 255, 0.1));
  transform: translateX(2px);
}

.dtf-admin-nav-item:hover .icon,
.dtf-admin-nav-item.is-active .icon {
  background: rgba(255, 136, 50, 0.25);
  border-color: rgba(255, 167, 107, 0.65);
  color: #ffe1c8;
}

.dtf-admin-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.dtf-admin-panel.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.dtf-admin-tab-header h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.dtf-admin-tab-header p {
  margin: 0 0 14px;
  color: var(--muted);
}

.dtf-admin-kpi-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 14px;
}

.kpi-card,
.placeholder-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
}

.kpi-card small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.kpi-card strong {
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
}

.dtf-admin-placeholder-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dtf-admin-dashboard-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.dtf-mini-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  min-height: 148px;
  margin-top: 10px;
}

.dtf-mini-chart-item {
  min-width: 0;
}

.dtf-mini-chart-item .bar {
  min-height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 154, 77, 0.92), rgba(255, 124, 32, 0.78));
  box-shadow: 0 8px 16px rgba(255, 124, 32, 0.22);
  transition: transform 180ms ease;
}

.dtf-mini-chart-item:hover .bar {
  transform: translateY(-2px);
}

.dtf-mini-chart-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

.dtf-lifecycle-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.dtf-lifecycle-item .row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 4px;
}

.dtf-lifecycle-item .row span {
  color: var(--muted);
  font-size: 0.78rem;
}

.dtf-lifecycle-item .progress {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.dtf-lifecycle-item .progress span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(106, 212, 168, 0.95), rgba(66, 152, 248, 0.86));
}

.dtf-payment-grid {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.pay-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
}

.pay-card small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.btn.full {
  width: 100%;
  justify-content: center;
}

.dtf-admin-orders-list {
  display: grid;
  gap: 12px;
}

.orders-stats-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 12px;
}

.orders-stat-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(145deg, rgba(255, 137, 55, 0.12), rgba(37, 80, 148, 0.08) 70%);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.orders-stat-card small {
  display: block;
  color: var(--muted);
  margin-bottom: 5px;
  font-size: 0.76rem;
}

.orders-stat-card strong {
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.admin-order-card {
  display: grid;
  gap: 12px;
}

.admin-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.admin-order-head h3 {
  margin: 0 0 4px;
}

.admin-order-head p {
  margin: 0;
  color: var(--muted);
}

.admin-order-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge.tone-due {
  color: #ffe9c2;
  border-color: rgba(255, 193, 71, 0.6);
  background: rgba(255, 167, 40, 0.2);
}

.badge.tone-paid {
  color: #d6ffef;
  border-color: rgba(73, 215, 158, 0.7);
  background: rgba(31, 134, 88, 0.26);
}

.badge.tone-partial {
  color: #def4ff;
  border-color: rgba(100, 190, 244, 0.7);
  background: rgba(35, 102, 161, 0.24);
}

.badge.tone-error {
  color: #ffd9d9;
  border-color: rgba(247, 108, 108, 0.6);
  background: rgba(166, 42, 42, 0.24);
}

.admin-order-stage-line,
.cabinet-order-progress {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stage-node {
  position: relative;
  padding-top: 4px;
  min-width: 0;
}

.stage-node::after {
  content: "";
  position: absolute;
  left: calc(50% + 11px);
  top: 10px;
  width: calc(100% - 18px);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
}

.stage-node:last-child::after {
  display: none;
}

.stage-node .dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.04);
  transition: background-color 180ms ease, box-shadow 220ms ease, transform 180ms ease;
}

.stage-node small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.2;
  font-size: 0.75rem;
}

.stage-node.is-done .dot {
  background: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.7);
  box-shadow: 0 0 0 6px rgba(110, 231, 183, 0.14);
}

.stage-node.is-active .dot {
  background: #ff8b3d;
  border-color: rgba(255, 173, 112, 0.76);
  box-shadow: 0 0 0 7px rgba(255, 138, 61, 0.22), 0 0 18px rgba(255, 138, 61, 0.28);
  transform: scale(1.08);
  animation: dtfStagePulse 1.5s ease-in-out infinite;
}

.stage-node.is-done::after {
  background: linear-gradient(90deg, rgba(108, 213, 165, 0.86), rgba(108, 213, 165, 0.58));
}

@keyframes dtfStagePulse {
  0%,
  100% {
    box-shadow: 0 0 0 7px rgba(255, 138, 61, 0.18), 0 0 12px rgba(255, 138, 61, 0.22);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(255, 138, 61, 0.26), 0 0 22px rgba(255, 138, 61, 0.3);
  }
}

.admin-order-grid,
.cabinet-order-grid,
.editor-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.admin-order-grid small,
.cabinet-order-grid small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.admin-order-editor {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  display: grid;
  gap: 10px;
}

.admin-order-editor label,
.dtf-admin-blog-form label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
}

.admin-order-editor input,
.admin-order-editor select,
.admin-order-editor textarea,
.dtf-admin-blog-form input,
.dtf-admin-blog-form textarea,
.dtf-admin-blog-form select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: #f7f7f5;
  padding: 9px 10px;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dtf-admin-blog-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
}

.dtf-admin-blog-list {
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  padding-right: 10px;
}

.blog-admin-items {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  max-height: 72vh;
  overflow: auto;
}

.blog-admin-item {
  text-align: left;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.02);
  color: #f8fafc;
  padding: 10px;
  cursor: pointer;
}

.blog-admin-item strong {
  display: block;
}

.blog-admin-item small {
  color: var(--muted);
}

.dtf-admin-blog-form {
  display: grid;
  gap: 12px;
}

.dtf-admin-blog-form .wide {
  grid-column: 1 / -1;
}

.dtf-admin-promo-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
}

.dtf-admin-promo-list {
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  padding-right: 10px;
}

.promo-admin-items {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  max-height: 72vh;
  overflow: auto;
}

.promo-admin-item {
  text-align: left;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.02);
  color: #f8fafc;
  padding: 10px;
  cursor: pointer;
}

.promo-admin-item strong {
  display: block;
  letter-spacing: 0.03em;
}

.promo-admin-item small {
  color: var(--muted);
}

.dtf-admin-promo-form {
  display: grid;
  gap: 12px;
}

.checkbox-field {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.slug-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.blog-editor-block {
  display: grid;
  gap: 8px;
}

.blog-rich-editor {
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  overflow: hidden;
}

.blog-rich-editor .ql-editor {
  min-height: 280px;
}

.blog-markdown-fallback {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  padding: 8px 10px;
}

.users-table-wrap {
  overflow: auto;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
}

.users-table th,
.users-table td {
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 8px;
}

.users-table th {
  color: var(--muted);
  font-weight: 500;
}

.dtf-admin-toast {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 1200;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 15, 18, 0.92);
  color: #f9fafb;
  padding: 10px 12px;
  min-width: 220px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.dtf-admin-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.dtf-admin-toast.tone-success {
  border-color: rgba(56, 189, 124, 0.62);
}

.dtf-admin-toast.tone-error {
  border-color: rgba(248, 113, 113, 0.6);
}

/* Cabinet Orders 2.0 */
.cabinet-orders-list {
  display: grid;
  gap: 12px;
}

.cabinet-order-card {
  display: grid;
  gap: 12px;
}

.cabinet-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cabinet-order-head h3 {
  margin: 0 0 4px;
}

.cabinet-order-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.cabinet-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 1120px) {
  body.is-dtf-admin-menu-open {
    overflow: hidden;
  }

  .dtf-admin-root .dtf-container {
    width: min(1200px, 92%);
  }

  .dtf-admin-mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(130deg, rgba(255, 130, 42, 0.22), rgba(36, 74, 144, 0.2));
    color: #f9fafb;
    padding: 0 14px;
    margin-bottom: 12px;
    font-weight: 600;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.36);
  }

  .dtf-admin-mobile-toggle .burger {
    width: 18px;
    height: 14px;
    display: inline-grid;
    gap: 3px;
  }

  .dtf-admin-mobile-toggle .burger span {
    display: block;
    width: 100%;
    border-radius: 99px;
    background: rgba(255, 239, 225, 0.92);
  }

  .dtf-admin-layout {
    --admin-sidebar-collapsed: 1fr;
    --admin-sidebar-expanded: 1fr;
    grid-template-columns: 1fr;
    gap: 10px;
    transition: none;
  }

  .dtf-admin-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 10, 0.76);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
    z-index: 1090;
  }

  .dtf-admin-root.is-sidebar-open .dtf-admin-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .dtf-admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    top: 0;
    width: min(360px, calc(100vw - 20px));
    max-width: 100%;
    min-height: 100dvh;
    border-radius: 0 24px 24px 0;
    transform: translateX(-108%);
    transition: transform 260ms ease, box-shadow 220ms ease;
    z-index: 1100;
    box-shadow: 26px 0 54px rgba(0, 0, 0, 0.48);
  }

  .dtf-admin-sidebar.is-open {
    width: min(360px, calc(100vw - 20px));
    transform: translateX(0);
  }

  .dtf-admin-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #f9fafb;
    padding: 0 14px;
  }

  .dtf-admin-sidebar .dtf-admin-logo .text,
  .dtf-admin-sidebar .dtf-admin-nav-item .label {
    opacity: 1;
    transform: translateX(0);
  }

  .dtf-admin-sidebar-inner {
    gap: 12px;
    padding: 14px;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .dtf-admin-main {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 960px) {
  .dtf-admin-blog-layout {
    grid-template-columns: 1fr;
  }

  .dtf-admin-blog-list {
    border-right: 0;
    padding-right: 0;
  }

  .dtf-admin-promo-layout {
    grid-template-columns: 1fr;
  }

  .dtf-admin-promo-list {
    border-right: 0;
    padding-right: 0;
  }

  .admin-order-stage-line,
  .cabinet-order-progress {
    grid-template-columns: 1fr;
  }

  .stage-node {
    padding-left: 14px;
  }

  .stage-node::after {
    left: 4px;
    top: 15px;
    width: 2px;
    height: calc(100% + 7px);
  }

  .stage-node:last-child::after {
    display: block;
    height: 0;
  }
}

@media (max-width: 640px) {
  .dtf-mini-chart {
    gap: 4px;
    min-height: 124px;
  }

  .dtf-mini-chart-item small {
    font-size: 0.62rem;
  }
}
