:root {
  color-scheme: dark;
  --ink: #07101d;
  --ink-2: #0d1b2e;
  --ink-3: #13263d;
  --paper: #fbf7ec;
  --soft: #f3efe4;
  --mist: rgba(255, 255, 255, .09);
  --mist-2: rgba(255, 255, 255, .16);
  --line: rgba(255, 255, 255, .18);
  --gold: #d7b764;
  --gold-2: #f7e39b;
  --teal: #63f1d2;
  --blue: #8bb8ff;
  --coral: #ff8d77;
  --wine: #7e325c;
  --green: #78d79f;
  --danger: #ff6b6b;
  --text: #f9f4e6;
  --muted: rgba(249, 244, 230, .72);
  --dim: rgba(249, 244, 230, .48);
  --shadow: 0 26px 80px rgba(0, 0, 0, .36);
  --glow: 0 0 32px rgba(99, 241, 210, .28);
  --max: 1180px;
  --radius: 8px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --time-a: #d7b764;
  --time-b: #63f1d2;
  --time-c: #8bb8ff;
}

body.time-morning {
  --time-a: #ffd36f;
  --time-b: #74e8cf;
  --time-c: #8cc8ff;
}

body.time-afternoon {
  --time-a: #f2c45f;
  --time-b: #5bd6ff;
  --time-c: #ff9b76;
}

body.time-evening {
  --time-a: #f4b86a;
  --time-b: #ad8cff;
  --time-c: #ff7c8a;
}

body.time-night {
  --time-a: #8bb8ff;
  --time-b: #63f1d2;
  --time-c: #d7b764;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at var(--spot-x, 48%) var(--spot-y, 18%), rgba(99, 241, 210, .14), transparent 26rem),
    radial-gradient(circle at 12% 14%, rgba(215, 183, 100, .18), transparent 22rem),
    radial-gradient(circle at 88% 18%, rgba(139, 184, 255, .15), transparent 24rem),
    linear-gradient(135deg, #07101d 0%, #102037 44%, #120f20 100%);
  font-family: Inter, ui-sans-serif, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(255, 255, 255, .06) 32%, transparent 38%),
    linear-gradient(65deg, rgba(99, 241, 210, .08), transparent 38%, rgba(215, 183, 100, .08));
  filter: saturate(1.35);
  animation: aurora 18s var(--ease) infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .6) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: radial-gradient(circle at 50% 28%, #000, transparent 70%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

img {
  max-width: 100%;
}

::selection {
  color: #06101b;
  background: var(--gold-2);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .62;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  border-radius: 999px;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--time-b);
  box-shadow: 0 0 18px var(--time-b);
}

.cursor-ring {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .44);
  transition: width .18s ease, height .18s ease, border-color .18s ease;
}

.site {
  min-height: 100vh;
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.top-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  height: 3px;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--coral));
  box-shadow: var(--glow);
}

.header {
  position: sticky;
  top: 0;
  z-index: 70;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(7, 16, 29, .72);
  backdrop-filter: blur(18px) saturate(1.2);
  transition: background .25s ease, box-shadow .25s ease;
}

.header.scrolled {
  background: rgba(7, 16, 29, .9);
  box-shadow: 0 16px 46px rgba(0, 0, 0, .26);
}

.nav-wrap {
  width: calc(100vw - 32px);
  max-width: var(--max);
  min-height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
}

.brand img {
  width: 128px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(215, 183, 100, .25));
}

.brand .brand-mark {
  width: 38px;
  height: 38px;
  display: none;
  border-radius: 8px;
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a,
.nav button {
  position: relative;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 13px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 8px;
  overflow: hidden;
}

.nav a::after,
.nav button::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transition: transform .25s var(--ease);
}

.nav a:hover,
.nav a:focus-visible,
.nav a.active,
.nav button:hover,
.nav button:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.active::after,
.nav button:hover::after,
.nav button:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.clock-pill {
  min-height: 44px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04)),
    radial-gradient(circle at 22% 15%, rgba(255, 255, 255, .16), transparent 44%);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, .16),
    inset -10px -10px 30px rgba(0, 0, 0, .16),
    0 12px 34px rgba(0, 0, 0, .24);
}

.clock-time {
  font-variant-numeric: tabular-nums;
  color: var(--time-a);
  font-size: 13px;
  font-weight: 800;
}

.clock-mode {
  color: var(--dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
  place-items: center;
  font-weight: 900;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: transform .25s var(--ease), opacity .2s ease;
}

.menu-button::before {
  transform: translateY(-6px);
}

.menu-button::after {
  transform: translateY(6px);
}

.header.open .menu-button span {
  opacity: 0;
}

.header.open .menu-button::before {
  transform: translateY(2px) rotate(45deg);
}

.header.open .menu-button::after {
  transform: translateY(-2px) rotate(-45deg);
}

body.compact .nav-wrap {
  grid-template-columns: auto auto;
}

body.compact .brand > img:not(.brand-mark) {
  display: none;
}

body.compact .brand .brand-mark {
  display: block;
  width: 42px;
  height: 42px;
}

body.compact .menu-button {
  display: grid !important;
  position: fixed;
  top: 18px;
  right: 12px;
  z-index: 100;
  width: 72px;
  height: 46px;
  color: #08111f;
  background: linear-gradient(135deg, var(--gold-2), var(--time-b));
  border-color: transparent;
}

body.compact .menu-button::before,
body.compact .menu-button::after {
  display: none;
}

body.compact .nav,
body.compact .nav-actions {
  grid-column: 1 / -1;
  display: none;
  justify-content: flex-start;
}

body.compact .header.open .nav,
body.compact .header.open .nav-actions {
  display: flex;
}

.btn {
  position: relative;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid rgba(247, 227, 155, .5);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(247, 227, 155, .96), rgba(215, 183, 100, .88)),
    radial-gradient(circle at 16% 12%, #fff, transparent 30%);
  color: #101622;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  transform: translateZ(0);
  box-shadow: 0 18px 48px rgba(215, 183, 100, .2);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -55% -35%;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .72), transparent 65%);
  transform: translateX(-80%) rotate(12deg);
  transition: transform .55s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(215, 183, 100, .3);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(80%) rotate(12deg);
}

.btn.secondary {
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  border-color: rgba(255, 255, 255, .22);
  box-shadow:
    inset 8px 8px 24px rgba(0, 0, 0, .2),
    inset -8px -8px 24px rgba(255, 255, 255, .06),
    0 14px 40px rgba(0, 0, 0, .18);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: none;
}

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

.main {
  position: relative;
  min-height: 70vh;
}

.section {
  position: relative;
  padding: clamp(74px, 10vw, 128px) 0;
}

.container {
  width: calc(100vw - 32px);
  max-width: var(--max);
  margin: 0 auto;
}

.narrow {
  width: calc(100vw - 32px);
  max-width: 840px;
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  align-items: center;
  padding: clamp(58px, 8vw, 90px) 0 clamp(56px, 8vw, 86px);
  overflow: clip;
}

.hero-grid {
  width: calc(100vw - 32px);
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(330px, .97fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--time-b);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.page-title,
.hero-title {
  margin: 0;
  max-width: 920px;
  font-size: clamp(44px, 8vw, 112px);
  line-height: .9;
  letter-spacing: 0;
  font-weight: 900;
  overflow-wrap: break-word;
}

.hero-title .shine,
.page-title .shine {
  color: transparent;
  background: linear-gradient(95deg, var(--paper), var(--gold-2) 34%, var(--teal) 72%, var(--paper));
  background-size: 210% auto;
  background-clip: text;
  animation: textShine 8s linear infinite;
  white-space: normal;
}

.hero-title .hero-line {
  display: block;
}

.lead {
  max-width: 700px;
  color: var(--muted);
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.52;
  display: block;
}

.hero-actions,
.btn-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
}

.proof-item,
.glass,
.stat-card,
.service-card,
.post-card,
.career-card,
.product-card,
.admin-panel,
.admin-metric,
.link-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .115), rgba(255, 255, 255, .035)),
    radial-gradient(circle at 12% 9%, rgba(255, 255, 255, .12), transparent 34%);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, .14),
    inset -18px -18px 42px rgba(0, 0, 0, .18),
    var(--shadow);
  backdrop-filter: blur(16px) saturate(1.1);
}

.proof-item {
  padding: 15px;
  min-height: 96px;
}

.proof-item strong,
.stat-card strong,
.admin-metric strong {
  display: block;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
  color: var(--gold-2);
}

.proof-item span,
.stat-card span,
.admin-metric span {
  display: block;
  margin-top: 9px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.35;
}

.hero-stage {
  position: relative;
  min-height: clamp(480px, 62vw, 680px);
  perspective: 1200px;
}

.photo-stack {
  position: absolute;
  inset: 6% 2% 8% 8%;
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-12deg);
}

.photo-card {
  position: absolute;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .42);
  background: var(--ink-2);
  transform-style: preserve-3d;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  filter: contrast(1.06) saturate(1.06);
}

.photo-card.main-photo {
  inset: 0 11% 10% 0;
  transform: translateZ(76px);
}

.photo-card.side-photo {
  width: 42%;
  height: 36%;
  right: 0;
  bottom: 0;
  transform: translateZ(130px) rotateZ(3deg);
}

.photo-card.cutout-photo {
  width: 34%;
  height: 34%;
  left: 4%;
  bottom: 3%;
  background: radial-gradient(circle, rgba(99, 241, 210, .14), transparent 65%);
  transform: translateZ(165px) rotateZ(-5deg);
}

.stage-orbit {
  position: absolute;
  width: 138px;
  min-height: 138px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  border: 1px solid rgba(99, 241, 210, .28);
  border-radius: 50%;
  background: rgba(7, 16, 29, .58);
  color: var(--text);
  box-shadow: var(--glow);
  animation: orbitFloat 6s var(--ease) infinite alternate;
}

.stage-orbit.one {
  top: 7%;
  right: 3%;
}

.stage-orbit.two {
  left: 0;
  top: 46%;
  animation-delay: -2s;
}

.stage-orbit.three {
  right: 12%;
  bottom: 8%;
  animation-delay: -4s;
}

.prism {
  position: absolute;
  right: 3%;
  top: 8%;
  width: 96px;
  height: 96px;
  transform-style: preserve-3d;
  animation: spinPrism 11s linear infinite;
}

.prism span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(247, 227, 155, .36);
  background: linear-gradient(135deg, rgba(215, 183, 100, .18), rgba(99, 241, 210, .08));
  box-shadow: inset 0 0 30px rgba(255, 255, 255, .07);
}

.prism span:nth-child(1) { transform: translateZ(48px); }
.prism span:nth-child(2) { transform: rotateY(90deg) translateZ(48px); }
.prism span:nth-child(3) { transform: rotateX(90deg) translateZ(48px); }
.prism span:nth-child(4) { transform: rotateY(180deg) translateZ(48px); }
.prism span:nth-child(5) { transform: rotateY(-90deg) translateZ(48px); }
.prism span:nth-child(6) { transform: rotateX(-90deg) translateZ(48px); }

.section-title {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
  font-weight: 900;
}

.section-kicker {
  color: var(--time-b);
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
}

.copy,
.rich p,
.service-card p,
.post-card p,
.product-card p,
.career-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.lead {
  overflow-wrap: anywhere;
}

.split {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.glass {
  padding: clamp(22px, 3vw, 34px);
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  min-height: 158px;
  padding: 22px;
  transform-style: preserve-3d;
  transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease;
}

.stat-card:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-4deg);
  border-color: rgba(99, 241, 210, .46);
  box-shadow: 0 28px 88px rgba(99, 241, 210, .14);
}

.service-grid,
.post-grid,
.career-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.post-card,
.career-card,
.product-card,
.link-card {
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .25s var(--ease), border-color .25s ease, background .25s ease;
}

.service-card:hover,
.post-card:hover,
.career-card:hover,
.product-card:hover,
.link-card:hover {
  transform: translateY(-8px);
  border-color: rgba(247, 227, 155, .42);
}

.card-media {
  position: relative;
  height: 188px;
  overflow: hidden;
  background: var(--ink-2);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s var(--ease), filter .55s ease;
}

.service-card:hover .card-media img,
.post-card:hover .card-media img,
.product-card:hover .card-media img {
  transform: scale(1.1);
  filter: saturate(1.16) contrast(1.08);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 38%, rgba(7, 16, 29, .74)),
    radial-gradient(circle at var(--card-x, 50%) var(--card-y, 50%), rgba(99, 241, 210, .26), transparent 42%);
  opacity: .88;
}

.card-body {
  padding: 22px;
}

.card-body h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
}

.meta,
.tag,
.admin-note {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.45;
}

.price {
  margin: 14px 0 0;
  color: var(--gold-2);
  font-weight: 900;
  font-size: 20px;
}

.chip-row,
.filter-tabs,
.effect-wall,
.admin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip,
.filter-tabs button,
.admin-tags span {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}

.chip.active,
.filter-tabs button.active,
.filter-tabs button:hover {
  color: #08111f;
  background: linear-gradient(135deg, var(--gold-2), var(--time-b));
  border-color: transparent;
}

.effect-wall {
  margin-top: 28px;
}

.effect-wall .chip {
  cursor: default;
  animation: chipLift .7s var(--ease) both;
}

.effect-wall .chip:nth-child(3n) {
  border-color: rgba(99, 241, 210, .28);
}

.effect-wall .chip:nth-child(4n) {
  border-color: rgba(255, 141, 119, .3);
}

.story-rail {
  display: grid;
  gap: 18px;
  counter-reset: step;
}

.story-step {
  position: relative;
  padding: 20px 20px 20px 72px;
  border-left: 1px solid rgba(247, 227, 155, .28);
}

.story-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #08111f;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-2), var(--teal));
  box-shadow: var(--glow);
}

.marquee {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .035);
}

.marquee-track {
  width: max-content;
  display: flex;
  gap: 16px;
  padding: 24px 0;
  animation: marquee 28s linear infinite;
}

.client-logo {
  width: 132px;
  height: 92px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.media-image,
.hero-image {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: var(--shadow);
}

.contact-list {
  display: grid;
  gap: 16px;
}

.form,
.vault-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.field input,
.field textarea,
.field select,
.admin-search {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035));
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field textarea {
  min-height: 136px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.admin-search:focus {
  border-color: rgba(99, 241, 210, .72);
  box-shadow: 0 0 0 4px rgba(99, 241, 210, .13);
}

.notice {
  padding: 16px;
  border: 1px solid rgba(247, 227, 155, .26);
  border-radius: 8px;
  background: rgba(215, 183, 100, .1);
  color: var(--muted);
  line-height: 1.55;
}

.rich {
  max-width: 940px;
}

.rich h2,
.rich h3 {
  color: var(--gold-2);
}

.rich li {
  margin: 8px 0;
  color: var(--muted);
}

.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.admin-login {
  width: min(520px, 100%);
  padding: clamp(24px, 4vw, 38px);
}

.admin-login img {
  width: 150px;
  display: block;
  margin-bottom: 24px;
}

.admin-login h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .95;
}

.admin-error {
  min-height: 22px;
  color: var(--danger);
}

.google-slot {
  min-height: 44px;
}

.admin-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  background:
    radial-gradient(circle at 85% 14%, rgba(99, 241, 210, .12), transparent 28rem),
    linear-gradient(135deg, #07101d, #0e1b2c);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, .12);
  background: rgba(5, 10, 18, .78);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.admin-brand img {
  width: 46px;
  border-radius: 8px;
}

.admin-brand small,
.admin-user small,
.admin-metric small {
  display: block;
  color: var(--dim);
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
}

.admin-sidebar nav a,
.admin-logout {
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover,
.admin-logout:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .08);
}

.admin-logout {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, .14);
}

.admin-main {
  min-width: 0;
  padding: clamp(20px, 4vw, 34px);
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.admin-top h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 62px);
  line-height: .95;
}

.admin-user {
  min-width: 210px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.admin-grid {
  display: grid;
  gap: 16px;
}

.admin-grid.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-section {
  margin-bottom: 18px;
}

.admin-metric,
.admin-panel {
  padding: 20px;
}

.admin-panel h2,
.admin-metric h2 {
  margin: 0 0 14px;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  vertical-align: top;
}

.admin-table th {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.admin-action,
.mini-button {
  min-height: 38px;
  border: 1px solid rgba(247, 227, 155, .3);
  border-radius: 8px;
  color: var(--gold-2);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  padding: 8px 11px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.link-card {
  min-height: 124px;
  padding: 16px;
}

.link-card h3 {
  margin: 0 0 8px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  max-width: min(360px, calc(100% - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(99, 241, 210, .3);
  border-radius: 8px;
  background: rgba(7, 16, 29, .92);
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s var(--ease);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.footer {
  padding: 54px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .24);
}

.footer-grid {
  width: calc(100vw - 32px);
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}

.footer img {
  width: 124px;
  filter: drop-shadow(0 0 18px rgba(215, 183, 100, .22));
}

.social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s var(--ease);
}

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

.tilt,
.magnetic {
  will-change: transform;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  animation: ripple .62s ease-out forwards;
}

@supports (animation-timeline: view()) {
  .section[data-scrollfx] {
    animation: sectionTint linear both;
    animation-timeline: view();
    animation-range: entry 8% cover 42%;
  }
}

@keyframes aurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1); filter: hue-rotate(0deg); }
  to { transform: translate3d(2%, 1%, 0) scale(1.04); filter: hue-rotate(16deg); }
}

@keyframes textShine {
  to { background-position: 210% center; }
}

@keyframes orbitFloat {
  from { transform: translate3d(0, 0, 80px) rotate(-2deg); }
  to { transform: translate3d(0, -18px, 130px) rotate(4deg); }
}

@keyframes spinPrism {
  to { transform: rotateX(360deg) rotateY(360deg); }
}

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

@keyframes chipLift {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ripple {
  to { transform: translate(-50%, -50%) scale(7); opacity: 0; }
}

@keyframes sectionTint {
  from { filter: saturate(.8); }
  to { filter: saturate(1.18); }
}

@media (hover: none) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

@media (max-width: 1040px) {
  .nav-wrap {
    grid-template-columns: auto auto;
  }

  .menu-button {
    display: grid;
    justify-self: end;
  }

  .nav,
  .nav-actions {
    grid-column: 1 / -1;
    display: none;
    justify-content: flex-start;
  }

  .header.open .nav,
  .header.open .nav-actions {
    display: flex;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-stage {
    min-height: 560px;
  }

  .diagnostic-grid,
  .admin-grid.metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid,
  .post-grid,
  .career-grid,
  .product-grid,
  .link-grid,
  .admin-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-app {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }
}

@media (max-width: 700px) {
  .nav-wrap,
  .container,
  .hero-grid,
  .footer-grid,
  .narrow {
    width: calc(100vw - 24px);
  }

  .brand > img:not(.brand-mark) {
    display: none;
  }

  .brand .brand-mark {
    display: block;
    width: 42px;
    height: 42px;
  }

  .menu-button {
    display: grid !important;
    position: fixed;
    top: 18px;
    right: 12px;
    z-index: 100;
    width: 72px;
    color: #08111f;
    background: linear-gradient(135deg, var(--gold-2), var(--time-b));
    border-color: transparent;
  }

  .menu-button::before,
  .menu-button::after {
    display: none;
  }

  .clock-pill {
    width: 100%;
  }

  .hero-title,
  .page-title {
    font-size: clamp(34px, 10.2vw, 50px);
    line-height: .98;
  }

  .hero-title {
    max-width: calc(100vw - 24px);
  }

  .lead,
  .copy {
    max-width: calc(100vw - 48px);
    font-size: 15px;
  }

  .hero-grid .lead {
    max-width: 318px;
  }

  .hero-actions .btn {
    width: 100%;
    flex: 1 1 100%;
  }

  .hero-proof,
  .diagnostic-grid,
  .service-grid,
  .post-grid,
  .career-grid,
  .product-grid,
  .link-grid,
  .admin-grid.metrics,
  .admin-grid.two {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 460px;
  }

  .photo-stack {
    inset: 4% 0 10% 0;
  }

  .stage-orbit {
    width: 106px;
    min-height: 106px;
    font-size: 12px;
  }

  .prism {
    width: 66px;
    height: 66px;
  }

  .prism span:nth-child(1) { transform: translateZ(33px); }
  .prism span:nth-child(2) { transform: rotateY(90deg) translateZ(33px); }
  .prism span:nth-child(3) { transform: rotateX(90deg) translateZ(33px); }
  .prism span:nth-child(4) { transform: rotateY(180deg) translateZ(33px); }
  .prism span:nth-child(5) { transform: rotateY(-90deg) translateZ(33px); }
  .prism span:nth-child(6) { transform: rotateX(-90deg) translateZ(33px); }

  .section {
    padding: 62px 0;
  }

  .footer-grid,
  .admin-top,
  .admin-panel-head {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .fx-canvas,
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass,
  .service-card,
  .post-card,
  .career-card,
  .product-card,
  .admin-panel,
  .admin-metric,
  .header {
    backdrop-filter: none;
    background: #101c2f;
  }
}

:focus-visible {
  outline: 3px solid var(--time-b);
  outline-offset: 3px;
}
