:root {
  --portal-bg: #050807;
  --portal-bg-soft: #07100d;
  --portal-surface: #0a1410;
  --portal-surface-2: #0e1c16;
  --portal-surface-3: #13251d;
  --portal-text: #edf8f2;
  --portal-muted: #91a69c;
  --portal-dim: #667970;
  --portal-emerald: #56f2a4;
  --portal-emerald-strong: #27c979;
  --portal-gold: #d7b96b;
  --portal-gold-soft: #f1d994;
  --portal-red: #d55d57;
  --portal-line: rgba(127, 241, 179, 0.13);
  --portal-line-strong: rgba(127, 241, 179, 0.28);
  --portal-glass: rgba(8, 18, 14, 0.72);
  --portal-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  --portal-nav-height: 78px;
  --portal-radius: 20px;
  --portal-ease: cubic-bezier(0.2, 0.75, 0.15, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--portal-bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--portal-nav-height) + 18px);
}

body.public-v3 {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(39, 201, 121, 0.08), transparent 28%),
    radial-gradient(circle at 92% 42%, rgba(215, 185, 107, 0.06), transparent 24%),
    linear-gradient(180deg, #050807 0%, #07100d 48%, #050807 100%);
  color: var(--portal-text);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.public-v3.nav-open {
  overflow: hidden;
}

body.public-v3 main,
body.public-v3 .v3-footer {
  position: relative;
  z-index: 1;
}

body.public-v3 a {
  color: inherit;
  text-decoration: none;
}

body.public-v3 button,
body.public-v3 a {
  -webkit-tap-highlight-color: transparent;
}

body.public-v3 img {
  display: block;
  max-width: 100%;
}

body.public-v3 ::selection {
  background: var(--portal-emerald);
  color: #02100a;
}

body.public-v3::-webkit-scrollbar {
  width: 10px;
}

body.public-v3::-webkit-scrollbar-track {
  background: #030605;
}

body.public-v3::-webkit-scrollbar-thumb {
  border: 3px solid #030605;
  border-radius: 999px;
  background: #244b38;
}

body.public-v3::-webkit-scrollbar-thumb:hover {
  background: var(--portal-emerald-strong);
}

.portal-skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 11px 16px;
  border: 1px solid var(--portal-emerald);
  border-radius: 8px;
  background: #06100c;
  color: var(--portal-text) !important;
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.portal-skip-link:focus {
  transform: none;
}

.portal-ambient {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.portal-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.portal-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.42;
}

.portal-orb-one {
  top: 12vh;
  left: -12vw;
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle, rgba(42, 211, 128, 0.13), transparent 68%);
  animation: portal-orb-drift 18s ease-in-out infinite alternate;
}

.portal-orb-two {
  right: -15vw;
  bottom: 8vh;
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle, rgba(215, 185, 107, 0.09), transparent 68%);
  animation: portal-orb-drift 23s ease-in-out -7s infinite alternate-reverse;
}

.portal-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(86, 242, 164, 0.1), rgba(86, 242, 164, 0) 68%);
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.25s ease;
  will-change: transform;
}

.has-fine-pointer.cursor-active .portal-cursor-glow {
  opacity: 1;
}

.portal-scroll-progress {
  position: fixed;
  z-index: 1200;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  pointer-events: none;
}

.portal-scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--portal-emerald), var(--portal-gold));
  box-shadow: 0 0 14px rgba(86, 242, 164, 0.72);
  transform: scaleX(0);
  transform-origin: left center;
}

@keyframes portal-orb-drift {
  from { transform: translate3d(0, -3%, 0) scale(0.95); }
  to { transform: translate3d(9%, 7%, 0) scale(1.08); }
}

/* Navigation */
.public-nav {
  position: fixed;
  z-index: 1100;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--portal-nav-height);
  padding: 0 clamp(20px, 4vw, 68px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(4, 8, 6, 0.76), rgba(4, 8, 6, 0.36));
  transition: min-height 0.35s var(--portal-ease), background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.public-nav::after {
  position: absolute;
  right: clamp(20px, 4vw, 68px);
  bottom: -1px;
  left: clamp(20px, 4vw, 68px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(86, 242, 164, 0.52), rgba(215, 185, 107, 0.34), transparent);
  content: "";
  opacity: 0.55;
}

.public-nav.scrolled,
.public-nav.menu-open {
  min-height: 68px;
  border-bottom-color: var(--portal-line);
  background: rgba(5, 11, 8, 0.9);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px) saturate(125%);
}

.public-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.unit-emblem {
  width: 52px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.36));
}

.unit-emblem.sm {
  width: 38px;
  height: 44px;
}

.unit-emblem.lg {
  width: 128px;
  height: 148px;
}

.public-brand-copy {
  display: block;
}

.public-brand strong {
  display: block;
  color: var(--portal-text);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.public-brand small {
  display: block;
  margin-top: 3px;
  color: var(--portal-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.public-menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 42px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.7vw, 28px);
}

.nav-links a {
  position: relative;
  padding: 29px 0 27px;
  color: rgba(221, 237, 228, 0.66) !important;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.22s ease;
}

.nav-links a::before {
  position: absolute;
  bottom: 19px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--portal-emerald), var(--portal-gold));
  box-shadow: 0 0 10px rgba(86, 242, 164, 0.65);
  content: "";
  opacity: 0;
  transform: scaleX(0.15);
  transition: opacity 0.22s ease, transform 0.28s var(--portal-ease);
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="location"] {
  color: var(--portal-text) !important;
}

.nav-links a:hover::before,
.nav-links a.active::before,
.nav-links a[aria-current="location"]::before {
  opacity: 1;
  transform: scaleX(1);
}

.v3-nav-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid rgba(86, 242, 164, 0.42);
  background: linear-gradient(135deg, rgba(34, 126, 81, 0.52), rgba(9, 36, 25, 0.82));
  box-shadow: inset 0 0 24px rgba(86, 242, 164, 0.05), 0 12px 32px rgba(0, 0, 0, 0.25);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  color: var(--portal-text) !important;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--portal-ease);
}

.v3-nav-action::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.16) 48%, transparent 72%);
  content: "";
  transform: translateX(-130%);
  transition: transform 0.65s ease;
}

.v3-nav-action:hover {
  border-color: var(--portal-emerald);
  box-shadow: inset 0 0 28px rgba(86, 242, 164, 0.09), 0 0 26px rgba(39, 201, 121, 0.13);
  transform: translateY(-2px);
}

.v3-nav-action:hover::after {
  transform: translateX(130%);
}

.public-menu-toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--portal-line-strong);
  border-radius: 10px;
  background: rgba(8, 20, 14, 0.76);
}

.public-menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: var(--portal-text);
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.public-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.public-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.public-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.public-nav-backdrop {
  position: fixed;
  z-index: 1080;
  inset: 0;
  border: 0;
  background: rgba(1, 5, 3, 0.72);
  backdrop-filter: blur(5px);
}

/* Hero */
.v3-hero {
  position: relative;
  display: grid;
  min-height: clamp(720px, 100svh, 980px);
  overflow: hidden;
  background: #050a07;
  isolation: isolate;
}

.v3-hero::before,
.v3-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  content: "";
}

.v3-hero::before {
  background:
    linear-gradient(90deg, rgba(3, 9, 6, 0.92) 0%, rgba(3, 10, 6, 0.68) 42%, rgba(4, 12, 7, 0.22) 74%, rgba(3, 8, 5, 0.42) 100%),
    linear-gradient(0deg, rgba(2, 7, 4, 0.94) 0%, rgba(2, 7, 4, 0.08) 52%, rgba(2, 7, 4, 0.5) 100%);
}

.v3-hero::after {
  border: 1px solid rgba(255, 255, 255, 0.035);
  background: radial-gradient(circle at 75% 43%, rgba(86, 242, 164, 0.08), transparent 27%);
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.44);
}

.v3-hero-media,
.v3-hero-slide {
  position: absolute;
  inset: 0;
}

.v3-hero-media {
  z-index: 0;
}

.v3-hero-slide {
  z-index: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 1.15s ease, transform 1.15s ease;
}

.v3-hero-slide.active {
  z-index: 1;
  opacity: 1;
  transform: none;
}

.v3-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.76) contrast(1.08) brightness(0.8);
  transform: scale(1.06);
}

.v3-hero-slide.active img {
  animation: portal-ken-burns 9s ease-in-out both;
}

@keyframes portal-ken-burns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.2%, 0.8%, 0); }
}

.v3-hero-grid {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(94, 232, 157, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 232, 157, 0.13) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(90deg, black, rgba(0, 0, 0, 0.28) 62%, transparent 92%);
}

.v3-hero-scan {
  position: absolute;
  z-index: 2;
  top: -15%;
  right: 0;
  left: 0;
  height: 14%;
  opacity: 0.38;
  background: linear-gradient(180deg, transparent, rgba(86, 242, 164, 0.08), rgba(86, 242, 164, 0.48), transparent);
  filter: blur(0.3px);
  animation: portal-scan 8s linear infinite;
  mix-blend-mode: screen;
}

@keyframes portal-scan {
  to { transform: translateY(850%); }
}

.v3-hero-coordinate {
  position: absolute;
  z-index: 3;
  top: 50%;
  color: rgba(202, 229, 214, 0.42);
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.coordinate-left {
  left: 18px;
  transform: translateY(-50%) rotate(180deg);
}

.coordinate-right {
  right: 18px;
  transform: translateY(-50%);
}

.v3-hero-inner {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.48fr);
  align-items: end;
  gap: clamp(42px, 6vw, 92px);
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: clamp(150px, 18vh, 210px) clamp(44px, 7vw, 108px) 150px;
}

.v3-hero-content {
  max-width: 920px;
}

.v3-hero-content > * {
  animation: portal-hero-enter 0.9s var(--portal-ease) both;
}

.v3-hero-content > :nth-child(2) { animation-delay: 0.08s; }
.v3-hero-content > :nth-child(3) { animation-delay: 0.15s; }
.v3-hero-content > :nth-child(4) { animation-delay: 0.24s; }
.v3-hero-content > :nth-child(5) { animation-delay: 0.32s; }

@keyframes portal-hero-enter {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to { opacity: 1; transform: none; }
}

.v3-live-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  margin-bottom: 25px;
  padding: 0 11px;
  border: 1px solid rgba(86, 242, 164, 0.24);
  background: rgba(4, 17, 11, 0.42);
  color: rgba(224, 241, 232, 0.74);
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.v3-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--portal-emerald);
  box-shadow: 0 0 0 4px rgba(86, 242, 164, 0.1), 0 0 12px rgba(86, 242, 164, 0.85);
  animation: portal-status-pulse 1.8s ease-in-out infinite;
}

.v3-status-code {
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--portal-line-strong);
  color: var(--portal-gold);
}

@keyframes portal-status-pulse {
  50% { opacity: 0.46; transform: scale(0.78); }
}

.v3-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--portal-gold-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.v3-eyebrow::before {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--portal-emerald), var(--portal-gold));
  box-shadow: 0 0 10px rgba(86, 242, 164, 0.45);
  content: "";
}

.v3-hero h1 {
  max-width: 1000px;
  margin: 20px 0 28px;
  color: var(--portal-text);
  font-family: "Arial Narrow", Inter, "Segoe UI", sans-serif;
  font-size: clamp(62px, 8.3vw, 126px);
  font-stretch: condensed;
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.84;
  text-shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
  text-transform: uppercase;
  text-wrap: balance;
}

.v3-hero h1 .accent {
  color: transparent;
  background: linear-gradient(105deg, var(--portal-gold-soft) 4%, var(--portal-gold) 38%, #8bdbae 92%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 24px rgba(215, 185, 107, 0.12));
}

.v3-hero-copy {
  max-width: 760px;
  margin: 0;
  color: rgba(220, 236, 227, 0.72);
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.8;
}

.v3-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.v3-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  overflow: hidden;
  border: 1px solid transparent;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, transform 0.25s var(--portal-ease);
}

.v3-btn::after {
  position: absolute;
  inset: -2px auto -2px -45%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  content: "";
  transform: skewX(-18deg);
  transition: left 0.62s ease;
}

.v3-btn:hover::after {
  left: 120%;
}

.v3-btn.primary {
  border-color: var(--portal-emerald);
  background: linear-gradient(135deg, #4eeca0, #1fb86d);
  box-shadow: 0 15px 42px rgba(30, 183, 107, 0.2), inset 0 1px rgba(255, 255, 255, 0.28);
  color: #03130b;
}

.v3-btn.ghost {
  border-color: rgba(225, 239, 231, 0.28);
  background: rgba(7, 18, 12, 0.46);
  color: var(--portal-text);
  backdrop-filter: blur(12px);
}

.v3-btn:hover {
  transform: translateY(-3px);
}

.v3-btn.primary:hover {
  box-shadow: 0 18px 48px rgba(30, 183, 107, 0.3), 0 0 24px rgba(86, 242, 164, 0.13);
}

.v3-btn.ghost:hover {
  border-color: rgba(86, 242, 164, 0.56);
  color: var(--portal-emerald);
}

.v3-hero-side {
  display: grid;
  gap: 12px;
  width: min(100%, 390px);
  justify-self: end;
  animation: portal-side-enter 1s 0.35s var(--portal-ease) both;
}

@keyframes portal-side-enter {
  from { opacity: 0; transform: translate3d(24px, 18px, 0); }
  to { opacity: 1; transform: none; }
}

.v3-emblem-card {
  position: relative;
  display: grid;
  grid-template-columns: 145px 1fr;
  align-items: center;
  min-height: 190px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(133, 232, 177, 0.22);
  background: linear-gradient(145deg, rgba(9, 24, 16, 0.7), rgba(6, 13, 9, 0.48));
  box-shadow: inset 0 0 40px rgba(86, 242, 164, 0.025), 0 24px 70px rgba(0, 0, 0, 0.26);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  backdrop-filter: blur(15px);
}

.v3-emblem-card::after {
  position: absolute;
  top: 0;
  right: 18px;
  width: 48px;
  height: 2px;
  background: var(--portal-gold);
  box-shadow: 0 0 13px rgba(215, 185, 107, 0.55);
  content: "";
}

.v3-emblem-visual {
  position: relative;
  display: grid;
  width: 140px;
  height: 160px;
  place-items: center;
}

.v3-emblem-visual img {
  position: relative;
  z-index: 2;
}

.v3-emblem-orbit {
  position: absolute;
  border: 1px solid rgba(86, 242, 164, 0.26);
  border-radius: 50%;
}

.v3-emblem-orbit::before,
.v3-emblem-orbit::after {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--portal-emerald);
  box-shadow: 0 0 11px rgba(86, 242, 164, 0.85);
  content: "";
}

.orbit-one {
  inset: 5px -4px;
  animation: portal-spin 16s linear infinite;
}

.orbit-one::before { top: 18px; right: 12px; }
.orbit-one::after { bottom: 20px; left: 9px; }

.orbit-two {
  inset: 22px 12px;
  border-color: rgba(215, 185, 107, 0.22);
  animation: portal-spin 11s linear infinite reverse;
}

.orbit-two::before,
.orbit-two::after {
  background: var(--portal-gold);
  box-shadow: 0 0 11px rgba(215, 185, 107, 0.75);
}

.orbit-two::before { top: 5px; left: 25px; }
.orbit-two::after { right: 15px; bottom: 10px; }

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

.v3-data-label {
  display: block;
  margin-bottom: 10px;
  color: var(--portal-emerald);
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.v3-emblem-copy b {
  display: block;
  margin-bottom: 8px;
  color: var(--portal-text);
  font-size: 16px;
  letter-spacing: -0.015em;
}

.v3-emblem-copy > span:last-child {
  display: block;
  color: rgba(211, 229, 219, 0.58);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-transform: uppercase;
}

.v3-fact-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid var(--portal-line);
  background: rgba(4, 13, 8, 0.58);
  backdrop-filter: blur(12px);
}

.v3-fact {
  min-height: 75px;
  padding: 16px;
  border-right: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
}

.v3-fact:nth-child(2n) { border-right: 0; }
.v3-fact:nth-last-child(-n + 2) { border-bottom: 0; }

.v3-fact span {
  display: block;
  margin-bottom: 7px;
  color: var(--portal-dim);
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.v3-fact strong {
  display: block;
  color: var(--portal-gold-soft);
  font-size: 15px;
  letter-spacing: 0.015em;
}

.v3-hero-controls {
  position: absolute;
  z-index: 5;
  right: clamp(44px, 7vw, 108px);
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 6px 7px 6px 14px;
  border: 1px solid rgba(129, 227, 172, 0.19);
  background: rgba(4, 12, 8, 0.65);
  backdrop-filter: blur(12px);
}

.v3-slide-count {
  display: flex;
  gap: 5px;
  min-width: 48px;
  color: var(--portal-dim);
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
}

.v3-slide-count span:first-child {
  color: var(--portal-emerald);
  font-size: 13px;
  font-weight: 800;
}

.v3-slide-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.v3-slide-dots button {
  width: 18px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(218, 236, 226, 0.25);
  transition: width 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.v3-slide-dots button.active {
  width: 34px;
  background: var(--portal-emerald);
  box-shadow: 0 0 10px rgba(86, 242, 164, 0.6);
}

.v3-slide-actions {
  display: flex;
  gap: 3px;
}

.v3-slide-actions button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(226, 241, 233, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(230, 243, 235, 0.75);
  place-items: center;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.v3-slide-actions button:hover {
  border-color: rgba(86, 242, 164, 0.48);
  background: rgba(86, 242, 164, 0.08);
  color: var(--portal-emerald);
}

.v3-scroll-cue {
  position: absolute;
  z-index: 5;
  bottom: 38px;
  left: clamp(44px, 7vw, 108px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(214, 231, 221, 0.46) !important;
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.v3-scroll-cue i {
  color: var(--portal-emerald);
  animation: portal-scroll-cue 1.7s ease-in-out infinite;
}

@keyframes portal-scroll-cue {
  50% { transform: translateY(5px); }
}

/* Operational rail */
.v3-marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid rgba(86, 242, 164, 0.24);
  border-bottom: 1px solid rgba(86, 242, 164, 0.18);
  background: linear-gradient(90deg, #07120d, #0b1d15 50%, #07120d);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28), inset 0 0 30px rgba(86, 242, 164, 0.025);
  color: #bcd3c5;
}

.v3-marquee::before,
.v3-marquee::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 8vw;
  content: "";
  pointer-events: none;
}

.v3-marquee::before { left: 0; background: linear-gradient(90deg, #07120d, transparent); }
.v3-marquee::after { right: 0; background: linear-gradient(-90deg, #07120d, transparent); }

.v3-marquee-track {
  display: flex;
  width: max-content;
  padding: 14px 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  animation: portal-marquee 30s linear infinite;
}

.v3-marquee-track span {
  padding-right: 55px;
}

.v3-marquee-track span::after {
  margin-left: 55px;
  color: var(--portal-emerald);
  content: "[ SIGNAL ACTIVE ]";
  text-shadow: 0 0 10px rgba(86, 242, 164, 0.5);
}

.v3-marquee:hover .v3-marquee-track {
  animation-play-state: paused;
}

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

/* Shared sections */
.v3-section {
  position: relative;
  padding: clamp(88px, 10vw, 150px) clamp(22px, 5vw, 76px);
  border-bottom: 1px solid rgba(127, 241, 179, 0.07);
  background: rgba(5, 10, 8, 0.4);
  isolation: isolate;
}

.v3-section::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: clamp(10px, 2vw, 30px);
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(86, 242, 164, 0.18) 12%, rgba(86, 242, 164, 0.04) 88%, transparent);
  content: "";
}

.v3-section:nth-of-type(even) {
  background: rgba(8, 17, 13, 0.52);
}

.v3-grid-bg {
  background-color: rgba(8, 17, 13, 0.58);
  background-image:
    linear-gradient(rgba(109, 218, 158, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 218, 158, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 88% 25%, rgba(43, 195, 116, 0.055), transparent 24%);
  background-size: 48px 48px, 48px 48px, auto;
}

.v3-container {
  width: min(1400px, 100%);
  margin: 0 auto;
}

.v3-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.72fr);
  align-items: end;
  justify-content: space-between;
  gap: clamp(36px, 8vw, 130px);
  margin-bottom: clamp(44px, 5vw, 72px);
}

.v3-section-head h2 {
  margin: 0;
  color: var(--portal-text);
  font-family: "Arial Narrow", Inter, "Segoe UI", sans-serif;
  font-size: clamp(42px, 5.2vw, 76px);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-transform: uppercase;
  text-wrap: balance;
}

.v3-section-head p {
  max-width: 660px;
  margin: 0;
  padding-left: 22px;
  border-left: 1px solid var(--portal-line-strong);
  color: var(--portal-muted);
  font-size: 14px;
  line-height: 1.86;
}

.v3-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--portal-emerald);
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.v3-kicker::before {
  width: 18px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 9px rgba(86, 242, 164, 0.48);
  content: "";
}

.v3-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--portal-line);
  background: linear-gradient(145deg, rgba(13, 28, 21, 0.84), rgba(6, 13, 10, 0.92));
  box-shadow: var(--portal-shadow), inset 0 1px rgba(255, 255, 255, 0.025);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.v3-panel::before,
.v3-panel::after {
  position: absolute;
  z-index: 3;
  width: 62px;
  height: 2px;
  content: "";
}

.v3-panel::before {
  top: 0;
  left: 34px;
  background: var(--portal-emerald);
  box-shadow: 0 0 14px rgba(86, 242, 164, 0.5);
}

.v3-panel::after {
  right: 34px;
  bottom: 0;
  background: var(--portal-gold);
  box-shadow: 0 0 14px rgba(215, 185, 107, 0.38);
}

/* Profile */
.v3-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  min-height: 610px;
}

.v3-profile-photo {
  position: relative;
  min-height: 540px;
  overflow: hidden;
}

.v3-profile-photo::before,
.v3-profile-photo::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
}

.v3-profile-photo::before {
  background: linear-gradient(90deg, transparent 55%, rgba(5, 12, 8, 0.72) 100%), linear-gradient(0deg, rgba(4, 11, 7, 0.72), transparent 48%);
}

.v3-profile-photo::after {
  top: -80%;
  height: 20%;
  background: linear-gradient(180deg, transparent, rgba(86, 242, 164, 0.18), transparent);
  animation: portal-photo-scan 7s ease-in-out infinite;
}

@keyframes portal-photo-scan {
  55%, 100% { transform: translateY(900%); }
}

.v3-profile-photo img {
  width: 100%;
  height: calc(100% + 50px);
  margin-top: -25px;
  object-fit: cover;
  filter: saturate(0.73) contrast(1.08);
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.04);
  transition: filter 0.65s ease, transform 0.8s var(--portal-ease);
  will-change: transform;
}

.v3-profile-photo:hover img {
  filter: saturate(0.95) contrast(1.05);
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.075);
}

.v3-image-label {
  position: absolute;
  z-index: 3;
  bottom: 22px;
  left: 22px;
  padding: 8px 10px;
  border-left: 2px solid var(--portal-emerald);
  background: rgba(4, 13, 8, 0.72);
  color: rgba(225, 240, 231, 0.67);
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.v3-profile-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 76px);
}

.v3-profile-body h3 {
  margin: 0 0 22px;
  color: var(--portal-text);
  font-size: clamp(34px, 3.8vw, 58px);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1;
}

.v3-profile-body > p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 14px;
  line-height: 1.85;
}

.v3-mini-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 28px;
}

.v3-mini-fact {
  position: relative;
  min-height: 78px;
  padding: 16px 16px 14px;
  overflow: hidden;
  border: 1px solid rgba(127, 241, 179, 0.1);
  background: rgba(255, 255, 255, 0.022);
}

.v3-mini-fact::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 24px;
  background: var(--portal-gold);
  content: "";
}

.v3-mini-fact b {
  display: block;
  color: #dcebe3;
  font-size: 11px;
}

.v3-mini-fact span {
  display: block;
  margin-top: 6px;
  color: var(--portal-dim);
  font-size: 10px;
  line-height: 1.45;
}

/* Timeline and service cards */
.v3-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.v3-timeline::before {
  position: absolute;
  top: 35px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(86, 242, 164, 0.42), rgba(215, 185, 107, 0.32), transparent);
  content: "";
  box-shadow: 0 0 12px rgba(86, 242, 164, 0.16);
}

.v3-timeline-card,
.v3-service {
  --pointer-x: 50%;
  --pointer-y: 50%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--portal-line);
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(86, 242, 164, 0.08), transparent 32%),
    linear-gradient(145deg, rgba(14, 29, 22, 0.86), rgba(6, 13, 9, 0.94));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.025);
  transform-style: preserve-3d;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--portal-ease);
  will-change: transform;
}

.v3-timeline-card::after,
.v3-service::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 76px;
  height: 2px;
  background: linear-gradient(90deg, var(--portal-emerald), transparent);
  content: "";
  box-shadow: 0 0 13px rgba(86, 242, 164, 0.42);
  transition: width 0.35s ease;
}

.v3-timeline-card:hover,
.v3-service:hover {
  border-color: rgba(86, 242, 164, 0.3);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32), inset 0 0 35px rgba(86, 242, 164, 0.025);
  transform: translateY(-7px);
}

.v3-timeline-card:hover::after,
.v3-service:hover::after {
  width: 52%;
}

.v3-timeline-card {
  min-height: 270px;
  padding: 32px 28px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.v3-timeline-card .num {
  position: absolute;
  top: 10px;
  right: 15px;
  color: rgba(118, 225, 166, 0.055);
  font-size: 82px;
  font-weight: 950;
  line-height: 1;
}

.v3-timeline-card time {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(215, 185, 107, 0.24);
  color: var(--portal-gold);
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.v3-timeline-card h3 {
  position: relative;
  z-index: 2;
  margin: 56px 0 13px;
  color: var(--portal-text);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.v3-timeline-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--portal-muted);
  font-size: 12px;
  line-height: 1.78;
}

.v3-services {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.v3-service {
  min-height: 330px;
  padding: 28px 22px 66px;
  clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px);
}

.v3-service-number {
  position: absolute;
  top: 20px;
  right: 20px;
  color: rgba(194, 222, 207, 0.28);
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.v3-service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(86, 242, 164, 0.25);
  background: linear-gradient(145deg, rgba(41, 169, 99, 0.22), rgba(7, 27, 17, 0.7));
  box-shadow: inset 0 0 22px rgba(86, 242, 164, 0.05), 0 12px 28px rgba(0, 0, 0, 0.24);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  color: var(--portal-emerald);
  font-size: 20px;
  place-items: center;
}

.v3-service h3 {
  margin: 24px 0 12px;
  color: var(--portal-text);
  font-size: 17px;
  font-weight: 800;
}

.v3-service p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 11px;
  line-height: 1.75;
}

.v3-service > a {
  position: absolute;
  bottom: 25px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--portal-gold) !important;
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.v3-service > a i {
  transition: transform 0.2s ease;
}

.v3-service > a:hover i {
  transform: translate(3px, -3px);
}

/* News */
.v3-news-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 270px;
  gap: 13px;
}

.v3-news {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(127, 241, 179, 0.13);
  background: #09120e;
  clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px);
  color: var(--portal-text);
}

.v3-news:first-child {
  grid-row: span 2;
}

.v3-news::before,
.v3-news::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.v3-news::before {
  background: linear-gradient(0deg, rgba(3, 9, 6, 0.96), rgba(3, 9, 6, 0.06) 70%);
}

.v3-news::after {
  border: 1px solid transparent;
  background: linear-gradient(110deg, transparent 35%, rgba(86, 242, 164, 0.13), transparent 65%);
  opacity: 0;
  transform: translateX(-80%);
  transition: opacity 0.4s ease, transform 0.75s ease;
}

.v3-news:hover::after {
  opacity: 1;
  transform: translateX(80%);
}

.v3-news img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08) brightness(0.84);
  transition: filter 0.7s ease, transform 0.75s var(--portal-ease);
}

.v3-news:hover img {
  filter: saturate(1) contrast(1.04) brightness(0.92);
  transform: scale(1.065);
}

.v3-news-index {
  position: absolute;
  z-index: 3;
  top: 17px;
  right: 18px;
  color: rgba(232, 245, 237, 0.54);
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.v3-news-copy {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 21px;
  left: 22px;
}

.v3-news-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--portal-emerald);
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.v3-news-tag::before {
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.v3-news h3 {
  margin: 9px 0 9px;
  color: var(--portal-text);
  font-size: clamp(17px, 1.9vw, 28px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.13;
}

.v3-news small {
  color: rgba(216, 232, 222, 0.55);
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
  line-height: 1.5;
}

/* Gallery */
.v3-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 120px;
  gap: 10px;
}

.v3-gallery button {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(127, 241, 179, 0.12);
  background: #09120e;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  cursor: zoom-in;
}

.v3-gallery button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 8, 5, 0.78), transparent 58%);
  content: "";
  opacity: 0.68;
  transition: opacity 0.35s ease;
}

.v3-gallery button:nth-child(1) { grid-column: span 5; grid-row: span 3; }
.v3-gallery button:nth-child(2) { grid-column: span 4; grid-row: span 2; }
.v3-gallery button:nth-child(3) { grid-column: span 3; grid-row: span 2; }
.v3-gallery button:nth-child(4) { grid-column: 6 / span 3; grid-row: 3 / span 2; }
.v3-gallery button:nth-child(5) { grid-column: 9 / span 4; grid-row: 3 / span 2; }
.v3-gallery button:nth-child(n + 6) { grid-column: span 4; grid-row: span 2; }

.v3-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.68) contrast(1.08);
  transition: filter 0.55s ease, transform 0.65s var(--portal-ease);
}

.v3-gallery button:hover img,
.v3-gallery button:focus-visible img {
  filter: saturate(1) contrast(1.03);
  transform: scale(1.075);
}

.v3-gallery button:hover::after,
.v3-gallery button:focus-visible::after {
  opacity: 1;
}

.v3-gallery .caption {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 12px;
  left: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border-left: 2px solid var(--portal-emerald);
  background: rgba(4, 13, 8, 0.76);
  color: var(--portal-text);
  font-size: 9px;
  font-weight: 750;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.3s var(--portal-ease);
  backdrop-filter: blur(9px);
}

.v3-gallery button:hover .caption,
.v3-gallery button:focus-visible .caption {
  opacity: 1;
  transform: none;
}

/* Contact */
.v3-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.v3-contact-card {
  position: relative;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid var(--portal-line);
  background: linear-gradient(145deg, rgba(14, 29, 22, 0.82), rgba(6, 13, 9, 0.94));
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.2);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.v3-contact-card::after {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(86, 242, 164, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(86, 242, 164, 0.018), 0 0 0 70px rgba(86, 242, 164, 0.012);
  content: "";
}

.v3-contact-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 24px;
  color: var(--portal-text);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.v3-contact-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 62px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(127, 241, 179, 0.09);
  color: inherit !important;
}

a.v3-contact-row {
  transition: padding 0.22s ease, background 0.22s ease;
}

a.v3-contact-row:hover {
  padding-right: 10px;
  padding-left: 10px;
  background: rgba(86, 242, 164, 0.035);
}

.v3-contact-row > i:first-child {
  width: 20px;
  color: var(--portal-emerald);
  font-size: 15px;
  text-align: center;
}

.v3-contact-row > div {
  min-width: 0;
  flex: 1;
}

.v3-contact-row b {
  display: block;
  color: #dcebe3;
  font-size: 11px;
}

.v3-contact-row span {
  display: block;
  margin-top: 5px;
  color: var(--portal-muted);
  font-size: 10px;
  line-height: 1.45;
}

.v3-row-arrow {
  margin-left: auto;
  color: var(--portal-gold);
  font-size: 11px;
  transition: transform 0.2s ease;
}

a.v3-contact-row:hover .v3-row-arrow {
  transform: translate(3px, -3px);
}

.v3-contact-card .v3-actions {
  position: relative;
  z-index: 2;
  margin-top: 22px;
}

/* Footer */
.v3-footer {
  overflow: hidden;
  padding: 70px clamp(22px, 5vw, 76px) 26px;
  border-top: 1px solid rgba(86, 242, 164, 0.16);
  background:
    linear-gradient(rgba(87, 218, 147, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 218, 147, 0.025) 1px, transparent 1px),
    linear-gradient(160deg, #07110d, #030605);
  background-size: 44px 44px, 44px 44px, auto;
}

.v3-footer::before {
  position: absolute;
  right: -20px;
  bottom: -102px;
  color: rgba(86, 242, 164, 0.025);
  content: "88";
  font-size: clamp(210px, 25vw, 360px);
  font-weight: 950;
  letter-spacing: -0.1em;
  line-height: 1;
  pointer-events: none;
}

.v3-footer-grid,
.v3-footer-bottom {
  position: relative;
  z-index: 2;
  width: min(1400px, 100%);
  margin: 0 auto;
}

.v3-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 0.65fr);
  gap: clamp(34px, 6vw, 90px);
}

.v3-footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.v3-footer-brand b {
  display: block;
  color: var(--portal-text);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.v3-footer-brand small {
  display: block;
  margin-top: 4px;
  color: var(--portal-muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.v3-footer p {
  max-width: 620px;
  margin: 0;
  color: var(--portal-muted);
  font-size: 11px;
  line-height: 1.8;
}

.v3-footer h4 {
  margin: 0 0 18px;
  color: var(--portal-gold);
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.v3-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.v3-footer li + li {
  margin-top: 10px;
}

.v3-footer li,
.v3-footer a {
  color: var(--portal-muted);
  font-size: 10px;
  line-height: 1.6;
}

.v3-footer a {
  transition: color 0.2s ease;
}

.v3-footer a:hover {
  color: var(--portal-emerald);
}

.v3-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(127, 241, 179, 0.1);
  color: rgba(199, 221, 208, 0.38);
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Modal */
.portal-media-modal {
  --bs-modal-bg: #07100c;
  --bs-modal-border-color: rgba(86, 242, 164, 0.22);
}

.portal-media-modal .modal-content {
  overflow: hidden;
  border: 1px solid rgba(86, 242, 164, 0.22) !important;
  border-radius: 0;
  background: #07100c;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.65), 0 0 45px rgba(86, 242, 164, 0.05);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.portal-media-modal .modal-header {
  border-bottom: 1px solid rgba(86, 242, 164, 0.14);
  background: #091610;
  color: var(--portal-text);
}

.portal-media-modal .modal-title {
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-media-modal .modal-body {
  background: #030605;
}

.portal-media-modal .modal-body img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.modal-backdrop.show {
  opacity: 0.82;
}

/* Reveal and focus */
.js .v3-reveal {
  opacity: 0;
  clip-path: inset(0 0 14% 0);
  transform: translate3d(0, 32px, 0);
  transition: opacity 0.8s ease, clip-path 0.85s ease, transform 0.85s var(--portal-ease);
}

.js .v3-reveal.in {
  opacity: 1;
  clip-path: inset(0);
  transform: none;
}

.v3-reveal.delay-1 { transition-delay: 0.08s; }
.v3-reveal.delay-2 { transition-delay: 0.16s; }
.v3-reveal.delay-3 { transition-delay: 0.24s; }

body.public-v3 :focus-visible {
  outline: 2px solid var(--portal-emerald);
  outline-offset: 4px;
  box-shadow: 0 0 0 5px rgba(86, 242, 164, 0.11);
}

body.public-v3 button:focus:not(:focus-visible),
body.public-v3 a:focus:not(:focus-visible) {
  outline: 0;
}

/* Responsive */
@media (max-width: 1280px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 9px; }
  .v3-hero-inner { grid-template-columns: minmax(0, 1fr) 340px; }
  .v3-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .v3-hero-inner {
    grid-template-columns: 1fr;
    align-items: end;
    gap: 38px;
    padding-bottom: 150px;
  }

  .v3-hero-side {
    grid-template-columns: minmax(340px, 0.8fr) minmax(320px, 1fr);
    width: 100%;
    justify-self: stretch;
  }

  .v3-emblem-card { min-height: 174px; }
  .v3-section-head { grid-template-columns: 1fr; gap: 26px; }
  .v3-section-head p { max-width: 780px; }
  .v3-profile-grid { grid-template-columns: 1fr; }
  .v3-profile-photo { min-height: 520px; }
  .v3-timeline { grid-template-columns: 1fr; }
  .v3-timeline::before { display: none; }
  .v3-timeline-card { min-height: auto; }
  .v3-timeline-card h3 { margin-top: 38px; }
  .v3-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-news:first-child { grid-row: span 1; grid-column: span 2; }
  .v3-footer-grid { grid-template-columns: 1fr 1fr; }
  .v3-footer-grid > div:first-child { grid-column: span 2; }
}

@media (max-width: 960px) {
  :root { --portal-nav-height: 68px; }

  .public-nav {
    min-height: var(--portal-nav-height);
    padding: 0 18px;
    background: rgba(5, 11, 8, 0.88);
    backdrop-filter: blur(18px);
  }

  .public-nav::after { right: 18px; left: 18px; }
  .public-menu-toggle { display: block; }

  .public-menu {
    position: fixed;
    z-index: 1090;
    top: 79px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(86, 242, 164, 0.22);
    background: rgba(5, 14, 9, 0.96);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48), inset 0 0 35px rgba(86, 242, 164, 0.025);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.985);
    transform-origin: top center;
    visibility: hidden;
    transition: opacity 0.23s ease, transform 0.28s var(--portal-ease), visibility 0s linear 0.28s;
  }

  .public-nav.menu-open .public-menu {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }

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

  .nav-links a {
    padding: 13px 12px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.018);
  }

  .nav-links a::before {
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 2px;
    height: auto;
    transform: scaleY(0.15);
  }

  .nav-links a:hover,
  .nav-links a.active,
  .nav-links a[aria-current="location"] {
    border-color: rgba(86, 242, 164, 0.12);
    background: rgba(86, 242, 164, 0.045);
  }

  .nav-links a:hover::before,
  .nav-links a.active::before,
  .nav-links a[aria-current="location"]::before {
    transform: scaleY(1);
  }

  .v3-nav-action { width: 100%; }
}

@media (max-width: 760px) {
  .v3-hero { min-height: 920px; }

  .v3-hero-inner {
    gap: 28px;
    padding: 125px 20px 178px;
  }

  .v3-hero h1 {
    margin-top: 16px;
    font-size: clamp(54px, 17vw, 82px);
  }

  .v3-hero-copy { font-size: 14px; line-height: 1.72; }
  .v3-live-status { margin-bottom: 18px; }
  .v3-status-code { display: none; }
  .v3-eyebrow { font-size: 8px; letter-spacing: 0.16em; }
  .v3-hero-side { display: block; }
  .v3-emblem-card { display: none; }
  .v3-fact-strip { width: 100%; }
  .v3-hero-coordinate { display: none; }

  .v3-hero-controls {
    right: 20px;
    bottom: 62px;
    left: 20px;
    justify-content: space-between;
  }

  .v3-scroll-cue { display: none; }
  .v3-section { padding: 82px 19px; }
  .v3-section::before { display: none; }
  .v3-section-head { margin-bottom: 38px; }
  .v3-section-head h2 { font-size: clamp(38px, 12vw, 58px); }
  .v3-section-head p { padding-left: 16px; font-size: 13px; line-height: 1.75; }
  .v3-profile-photo { min-height: 390px; }
  .v3-profile-body { padding: 32px 22px 36px; }
  .v3-mini-facts { grid-template-columns: 1fr; }
  .v3-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-service { min-height: 310px; }
  .v3-news-grid { grid-template-columns: 1fr; grid-auto-rows: 290px; }
  .v3-news:first-child { grid-column: auto; }
  .v3-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .v3-gallery button,
  .v3-gallery button:nth-child(n) { grid-column: auto; grid-row: auto; }
  .v3-gallery .caption { opacity: 1; transform: none; }
  .v3-contact { grid-template-columns: 1fr; }
  .v3-footer { padding-top: 55px; }
  .v3-footer-grid { grid-template-columns: 1fr 1fr; }
  .v3-footer-grid > div:first-child { grid-column: span 2; }
  .v3-footer-bottom { flex-direction: column; }
}

@media (max-width: 520px) {
  .public-brand strong { font-size: 11px; }
  .public-brand small { font-size: 8px; }
  .unit-emblem.sm { width: 32px; height: 38px; }
  .public-menu { top: 75px; }
  .nav-links { grid-template-columns: 1fr; }

  .v3-hero {
    min-height: 930px;
  }

  .v3-hero-inner { padding-right: 16px; padding-left: 16px; }
  .v3-hero h1 { font-size: clamp(50px, 18vw, 72px); }
  .v3-actions { display: grid; grid-template-columns: 1fr; }
  .v3-btn { width: 100%; }
  .v3-fact { padding: 14px 12px; }
  .v3-fact strong { font-size: 13px; }
  .v3-slide-count { display: none; }
  .v3-slide-dots button { width: 13px; }
  .v3-slide-dots button.active { width: 25px; }
  .v3-services { grid-template-columns: 1fr; }
  .v3-service { min-height: 285px; }
  .v3-gallery { grid-template-columns: 1fr; grid-auto-rows: 245px; }
  .v3-contact-card { padding: 26px 20px; }
  .v3-footer-grid { grid-template-columns: 1fr; }
  .v3-footer-grid > div:first-child { grid-column: auto; }
}

@media (hover: none), (pointer: coarse) {
  .portal-cursor-glow { display: none; }
  .v3-timeline-card:hover,
  .v3-service:hover,
  .v3-btn:hover,
  .v3-nav-action:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .v3-reveal {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
  }

  .v3-hero-slide img,
  .v3-hero-slide.active img,
  .v3-profile-photo img,
  .v3-profile-photo:hover img {
    transform: none !important;
  }

  .v3-marquee-track {
    width: auto;
    transform: none !important;
  }

  .v3-marquee-track span:nth-child(2) {
    display: none;
  }

  .portal-cursor-glow,
  .v3-hero-scan {
    display: none !important;
  }
}

@supports not ((backdrop-filter: blur(1px))) {
  .public-nav.scrolled,
  .public-nav.menu-open,
  .public-menu,
  .v3-live-status,
  .v3-emblem-card,
  .v3-fact-strip,
  .v3-hero-controls,
  .v3-gallery .caption {
    background-color: rgba(4, 12, 8, 0.96);
  }
}
