:root {
  color-scheme: light;
  --ink: #101817;
  --deep: #07110f;
  --deep-2: #12201d;
  --panel: #ffffff;
  --soft: #f4f7f6;
  --muted: #62716e;
  --line: #dce6e3;
  --teal: #0f8f7d;
  --teal-2: #20c7b0;
  --cyan: #2ab7ff;
  --amber: #f0b84a;
  --rose: #d95d73;
  --shadow: 0 24px 70px rgb(16 24 23 / 14%);
  --font-body: "Segoe UI Variable Text", "Segoe UI", Arial, Helvetica, sans-serif;
  --font-display: "Rajdhani", "Orbitron", "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", Arial, Helvetica, sans-serif;
  --font-code: "Cascadia Code", "Consolas", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--font-body);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

code {
  border-radius: 6px;
  background: #e8f7f3;
  padding: 2px 6px;
  color: #07574c;
  font-family: var(--font-code);
}

.site,
.page {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  background: rgb(7 17 15 / 82%);
  color: #f8fffd;
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgb(32 199 176 / 94%), rgb(240 184 74 / 94%));
  color: #04100d;
  font-family: var(--font-display);
  font-weight: 900;
  box-shadow: 0 12px 34px rgb(32 199 176 / 28%);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}

.brand-tagline {
  color: rgb(241 252 249 / 68%);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  border-radius: 8px;
  padding: 10px 12px;
  color: rgb(248 255 253 / 80%);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
  outline: none;
  background: rgb(255 255 255 / 10%);
  color: #ffffff;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: var(--deep);
  padding: 0 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.header-logout {
  margin: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  background: rgb(255 255 255 / 7%);
  color: #ffffff;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

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

.menu-lines::after {
  transform: translateY(4px);
}

.menu-toggle.is-open .menu-lines {
  transform: rotate(45deg);
}

.menu-toggle.is-open .menu-lines::before {
  opacity: 0;
}

.menu-toggle.is-open .menu-lines::after {
  transform: translateY(-2px) rotate(-90deg);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  padding: 128px 0 72px;
  display: grid;
  align-items: center;
  background: linear-gradient(125deg, rgb(7 17 15 / 98%) 0%, rgb(11 31 27 / 96%) 42%, rgb(18 20 25 / 98%) 100%);
  color: #ffffff;
}

.hero::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgb(42 183 255 / 8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(32 199 176 / 8%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000 0%, rgb(0 0 0 / 74%) 62%, transparent 100%);
  animation: gridMove 22s linear infinite;
}

.hero::after {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  height: 128px;
  content: "";
  background: linear-gradient(180deg, transparent, var(--soft));
}

.hero-video,
.hero-video-shade,
.hero-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-video {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(1.06) contrast(1.04) brightness(0.96);
}

.hero-video-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(7 17 15 / 78%) 0%, rgb(7 17 15 / 50%) 42%, rgb(7 17 15 / 8%) 72%, rgb(7 17 15 / 30%) 100%),
    linear-gradient(180deg, rgb(7 17 15 / 12%) 0%, rgb(7 17 15 / 0%) 48%, rgb(7 17 15 / 64%) 100%);
}

.hero-scan {
  z-index: 3;
  background: linear-gradient(to bottom, transparent 0%, transparent 43%, rgb(42 183 255 / 12%) 48%, rgb(42 183 255 / 38%) 50%, rgb(42 183 255 / 14%) 53%, transparent 58%, transparent 100%);
  mix-blend-mode: screen;
  opacity: 0.92;
  animation: scan 6.2s ease-in-out -2.4s infinite;
}

.hero-inner {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 78px);
}

.hero-copy {
  max-width: 820px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal-2);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 650px;
  margin: 0;
  color: rgb(244 255 252 / 80%);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.62;
}

.hero-audience {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgb(244 255 252 / 74%);
  font-size: 16px;
  line-height: 1.62;
}

.hero-audience strong {
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 900;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--teal-2), var(--amber));
  color: #06110f;
  box-shadow: 0 18px 40px rgb(32 199 176 / 24%);
}

.button.secondary {
  border-color: rgb(255 255 255 / 22%);
  background: rgb(255 255 255 / 8%);
  color: #ffffff;
}

.button.secondary.light {
  border-color: var(--line);
  background: #ffffff;
  color: var(--deep);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 46px;
}

.stat-card {
  min-height: 104px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  padding: 18px;
  background: rgb(255 255 255 / 7%);
  backdrop-filter: blur(16px);
}

.stat-value {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: rgb(244 255 252 / 72%);
  font-size: 13px;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.code-stream {
  position: absolute;
  right: 6%;
  width: min(520px, 94%);
  color: rgb(42 183 255 / 58%);
  font-family: var(--font-code);
  font-size: 14px;
  line-height: 1.9;
  white-space: nowrap;
  text-shadow: 0 0 18px rgb(42 183 255 / 35%);
  pointer-events: none;
}

.code-stream.one {
  top: -12%;
  animation: codeFall 13s linear infinite;
}

.code-stream.two {
  top: -54%;
  opacity: 0.56;
  animation: codeFall 13s linear infinite 6.5s;
}

.vault {
  position: absolute;
  right: 0;
  top: 50%;
  width: min(520px, 100%);
  aspect-ratio: 1;
  transform: translateY(-50%);
}

.vault-shadow {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(32 199 176 / 24%) 0%, rgb(42 183 255 / 10%) 45%, transparent 72%);
  filter: blur(26px);
  animation: pulseGlow 4.8s ease-in-out infinite;
}

.vault-frame {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #748078 0%, #2a332f 22%, #111614 44%, #87938a 55%, #27302c 72%, #b0baad 100%);
  box-shadow: 0 26px 60px rgb(0 0 0 / 38%), 0 0 58px rgb(32 199 176 / 18%), inset 0 0 0 2px rgb(255 255 255 / 16%);
  animation: vaultBreath 4.8s ease-in-out infinite;
}

.vault-frame::before {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  content: "";
  background: linear-gradient(145deg, #a5afa4 0%, #46514b 24%, #151b18 50%, #606c64 76%, #d4dbd0 100%);
}

.vault-inner {
  position: absolute;
  inset: 15%;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgb(32 199 176 / 11%), rgb(7 17 15 / 50%) 36%, rgb(4 8 8 / 96%) 72%),
    linear-gradient(180deg, #1a2623, #060a09);
  box-shadow: inset 0 0 0 2px rgb(42 183 255 / 16%), inset 0 0 52px rgb(0 0 0 / 58%);
}

.vault-inner::before {
  position: absolute;
  inset: 24px;
  border: 1px solid rgb(32 199 176 / 18%);
  border-radius: 50%;
  content: "";
}

.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 138px;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, #c2cbc2, #35413b 35%, #8f9a92 62%, #202925);
  animation: wheelRotate 24s linear infinite;
}

.hub::before {
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  content: "";
  background: linear-gradient(145deg, #edf2e9, #4c5851 38%, #cbd3c8 70%, #536058);
}

.hub::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffffff;
  content: "";
  transform: translate(-50%, -50%);
}

.spoke {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 124px;
  margin-left: -6px;
  margin-top: -124px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f1f5eb 0%, #748078 26%, #222b27 100%);
  transform-origin: 50% 100%;
}

.spoke:nth-child(1) { transform: rotate(0deg); }
.spoke:nth-child(2) { transform: rotate(60deg); }
.spoke:nth-child(3) { transform: rotate(120deg); }
.spoke:nth-child(4) { transform: rotate(180deg); }
.spoke:nth-child(5) { transform: rotate(240deg); }
.spoke:nth-child(6) { transform: rotate(300deg); }

.bolt {
  position: absolute;
  z-index: 2;
  width: 26px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #f1f5eb, #59645d 46%, #cad2c8 72%, #6a756d);
}

.bolt:nth-child(1) { top: 18px; left: 50%; transform: translateX(-50%); }
.bolt:nth-child(2) { top: 70px; right: 98px; }
.bolt:nth-child(3) { top: 50%; right: 18px; transform: translateY(-50%); }
.bolt:nth-child(4) { right: 98px; bottom: 70px; }
.bolt:nth-child(5) { bottom: 18px; left: 50%; transform: translateX(-50%); }
.bolt:nth-child(6) { bottom: 70px; left: 98px; }
.bolt:nth-child(7) { top: 50%; left: 18px; transform: translateY(-50%); }
.bolt:nth-child(8) { top: 70px; left: 98px; }

.hinge {
  position: absolute;
  right: -22px;
  z-index: 3;
  width: 46px;
  height: 98px;
  border-radius: 8px;
  background: linear-gradient(145deg, #d2d9cf, #4d5852 45%, #8b968e 85%, #edf2e9);
}

.hinge.one { top: 132px; }
.hinge.two { top: 210px; }
.hinge.three { top: 288px; }

.gate {
  position: absolute;
  inset: 15%;
  z-index: 4;
  overflow: hidden;
  border-radius: 50%;
  opacity: 0;
  animation: gateFlash 6.4s ease-in-out infinite;
}

.gate-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgb(232 238 232 / 62%), rgb(88 99 92 / 78%), rgb(217 226 219 / 62%));
}

.gate-bar:nth-child(1) { left: 16%; }
.gate-bar:nth-child(2) { left: 28%; }
.gate-bar:nth-child(3) { left: 40%; }
.gate-bar:nth-child(4) { left: 52%; }
.gate-bar:nth-child(5) { left: 64%; }
.gate-bar:nth-child(6) { left: 76%; }

.scan-line {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(to bottom, transparent 0%, transparent 46%, rgb(42 183 255 / 15%) 50%, transparent 54%, transparent 100%);
  pointer-events: none;
  animation: scan 5.8s ease-in-out infinite;
}

.section,
.content-section {
  position: relative;
  padding: 92px 0;
}

.section-inner,
.content-section,
.page-hero,
.article-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section.narrow,
.article-page {
  width: min(860px, calc(100% - 32px));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.page-hero h1,
.article-page h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.page-hero p,
.contact-panel p,
.article-card p,
.auth-panel p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

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

.service-card,
.article-card,
.admin-panel,
.auth-panel,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgb(16 24 23 / 7%);
}

.service-card {
  min-height: 420px;
  padding: 22px;
}

.service-accent {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #e8f7f3;
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 900;
}

.service-card h3,
.article-card h2,
.article-card h3,
.admin-panel h2,
.auth-panel h1 {
  margin: 20px 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.service-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.contact-section {
  background: #ffffff;
}

.service-highlight {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.service-highlight h4 {
  margin: 0 0 8px;
  color: #07574c;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.service-highlight p {
  margin: 0;
}

.blog-band {
  background: linear-gradient(135deg, var(--deep), #16241f 55%, #241d18);
  color: #ffffff;
}

.blog-band .section-heading h2,
.blog-band .section-heading p {
  color: #ffffff;
}

.blog-band .section-heading p {
  color: rgb(255 255 255 / 72%);
}

.article-card {
  min-height: 230px;
  padding: 22px;
}

.article-card.dark {
  border-color: rgb(255 255 255 / 14%);
  background: rgb(255 255 255 / 8%);
  box-shadow: none;
}

.article-card.dark h3,
.article-card.dark p,
.article-card.dark .article-meta {
  color: #ffffff;
}

.article-meta {
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 900;
  text-decoration: none;
}

.dark .text-link,
.blog-band .text-link {
  color: var(--amber);
}

.contact-section {
  padding: 86px 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: 0;
}

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

.contact-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--deep);
  color: #ffffff;
  padding: 0 16px;
  font-family: var(--font-display);
  font-weight: 900;
  text-decoration: none;
}

.contact-link.alt {
  background: #e8f7f3;
  color: #07574c;
}

.page-main {
  min-height: calc(100vh - 78px);
  padding-top: 76px;
}

.page-hero {
  padding: 76px 0 42px;
}

.page-hero.compact {
  padding-top: 72px;
}

.dashboard-hero {
  padding-bottom: 24px;
}

.auth-page .page-main {
  background: linear-gradient(135deg, var(--deep), #10231f 55%, #261f18);
}

.auth-shell {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 42px 16px;
}

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

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

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px 13px;
}

.form-grid textarea {
  resize: vertical;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  outline: 3px solid rgb(32 199 176 / 22%);
  border-color: var(--teal);
}

.form-error,
.flash,
.empty-state {
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.form-error {
  border: 1px solid rgb(217 93 115 / 28%);
  background: #fff0f2;
  color: #8c2638;
}

.flash.success {
  border: 1px solid rgb(15 143 125 / 28%);
  background: #e8f7f3;
  color: #07574c;
}

.empty-state {
  border: 1px dashed var(--line);
  background: #ffffff;
  color: var(--muted);
}

.empty-state.dark {
  border-color: rgb(255 255 255 / 16%);
  background: rgb(255 255 255 / 8%);
  color: rgb(255 255 255 / 78%);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
}

.admin-panel {
  padding: 24px;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
}

.status-pill.published {
  background: #e8f7f3;
  color: #07574c;
}

.status-pill.draft {
  background: #fff8e8;
  color: #7a5511;
}

.article-page {
  padding: 78px 0 96px;
}

.article-page h1 {
  margin-bottom: 14px;
}

.article-body {
  margin-top: 34px;
  color: #273431;
  font-size: 18px;
  line-height: 1.78;
}

.site-footer {
  padding: 28px 0;
  background: var(--deep);
  color: rgb(255 255 255 / 66%);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
}

.no-js-home {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--deep);
  color: #ffffff;
}

.no-js-hero {
  max-width: 760px;
}

.no-js-hero p {
  color: rgb(255 255 255 / 78%);
  font-size: 18px;
  line-height: 1.6;
}

.no-js-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.06;
  text-transform: uppercase;
}

.no-js-hero a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border-radius: 8px;
  background: var(--teal-2);
  color: var(--deep);
  padding: 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  text-decoration: none;
}

@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 48px 48px; }
}

@keyframes codeFall {
  from { transform: translateY(0); }
  to { transform: translateY(148vh); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.78; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes vaultBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

@keyframes wheelRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@keyframes gateFlash {
  0%, 20%, 100% { opacity: 0; }
  28% { opacity: 0.18; }
  36% { opacity: 0.32; }
  48% { opacity: 0.12; }
  54% { opacity: 0; }
}

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

@media (max-width: 1020px) {
  .hero-inner,
  .contact-panel,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .vault {
    left: 50%;
    right: auto;
    width: min(420px, 82vw);
    transform: translate(-50%, -50%);
  }

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

  .contact-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 66px;
  }

  .brand-tagline,
  .header-action,
  .header-logout {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 8px;
    background: rgb(7 17 15 / 96%);
    padding: 10px;
    box-shadow: 0 24px 70px rgb(0 0 0 / 35%);
  }

  .main-nav.is-open {
    display: grid;
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .hero {
    padding-top: 104px;
  }

  .hero-video {
    opacity: 0.82;
  }

  .hero-video-shade {
    background:
      linear-gradient(90deg, rgb(7 17 15 / 82%) 0%, rgb(7 17 15 / 64%) 58%, rgb(7 17 15 / 36%) 100%),
      linear-gradient(180deg, rgb(7 17 15 / 20%) 0%, rgb(7 17 15 / 8%) 48%, rgb(7 17 15 / 74%) 100%);
  }

  .hero-stats,
  .services-grid,
  .article-grid,
  .contact-actions {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 320px;
  }

  .code-stream {
    display: none;
  }

  .vault {
    width: min(300px, 78vw);
  }

  .hub {
    width: 96px;
  }

  .spoke {
    height: 88px;
    margin-top: -88px;
  }

  .bolt {
    width: 18px;
  }

  .bolt:nth-child(2),
  .bolt:nth-child(4) {
    right: 58px;
  }

  .bolt:nth-child(6),
  .bolt:nth-child(8) {
    left: 58px;
  }

  .hinge {
    right: -14px;
    width: 30px;
    height: 64px;
  }

  .hinge.one { top: 82px; }
  .hinge.two { top: 132px; }
  .hinge.three { top: 182px; }

  .section,
  .content-section,
  .contact-section {
    padding: 68px 0;
  }

  .page-main {
    padding-top: 66px;
  }

  .footer-inner {
    display: grid;
  }
}
