/* IX-Sec — enterprise typography: DM Serif Display + Inter */

:root {
  --bg-deep: #060810;
  --bg: #080b14;
  --surface: #0d1220;
  --elevated: #111928;
  --band: #090c18;
  --border: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(59, 130, 246, 0.25);
  --text: #e2e8f0;
  --text-muted: #7d8fa8;
  --accent: #3b82f6;
  --accent-dim: rgba(59, 130, 246, 0.12);
  --accent-glow: rgba(59, 130, 246, 0.22);
  --accent-2: #94a3b8;
  --shadow-deep: 0 24px 48px rgba(0, 0, 0, 0.4);
  --radius: 6px;
  --radius-lg: 10px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  font-feature-settings: "kern" 1, "liga" 1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1520px, 100% - 3rem);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ambient */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.ambient__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 60% 45% at 15% 8%, rgba(20, 50, 120, 0.07), transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 18%, rgba(15, 35, 90, 0.05), transparent 60%);
  animation: mesh-shift 30s ease-in-out infinite alternate;
}

@keyframes mesh-shift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-2%, 2%) scale(1.04);
  }
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 45% at 50% 20%, black 10%, transparent 70%);
  opacity: 0.3;
}

.ambient__noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Floating overlay — hidden for enterprise aesthetic */
.floaters {
  display: none;
}

.floaters::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(90deg, rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(94, 234, 212, 0.08) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px;
  mask-image: radial-gradient(circle at 50% 35%, black 20%, transparent 82%);
  animation: circuit-drift 26s linear infinite;
}

.floaters::after {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  top: -30%;
  height: 28%;
  opacity: 0.26;
  background: linear-gradient(
    180deg,
    rgba(94, 234, 212, 0) 0%,
    rgba(94, 234, 212, 0.04) 20%,
    rgba(56, 189, 248, 0.3) 50%,
    rgba(94, 234, 212, 0.04) 80%,
    rgba(94, 234, 212, 0) 100%
  );
  filter: blur(2px);
  mix-blend-mode: screen;
  animation: security-scan 14s ease-in-out infinite;
}

.floaters__obj,
.floaters__ring {
  position: absolute;
  will-change: transform, opacity;
}

.floaters__obj {
  --link-len: 110px;
  --link-angle: 0deg;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(94, 234, 212, 0.8);
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.5), rgba(56, 189, 248, 0.25));
  box-shadow:
    0 0 14px rgba(94, 234, 212, 0.38),
    0 0 34px rgba(56, 189, 248, 0.18);
  opacity: 0.85;
}

.floaters__obj::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--link-len);
  height: 1px;
  transform: rotate(var(--link-angle));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(94, 234, 212, 0.45), rgba(56, 189, 248, 0));
}

.floaters__obj::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  background: rgba(10, 14, 22, 0.8);
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.45);
  animation: node-blink 2.8s ease-in-out infinite;
}

.floaters__obj--1 {
  top: 16%;
  left: 10%;
  --link-len: 170px;
  --link-angle: 14deg;
  animation: node-drift-a 24s ease-in-out infinite;
}

.floaters__obj--2 {
  top: 30%;
  right: 16%;
  --link-len: 130px;
  --link-angle: 158deg;
  animation: node-drift-b 20s ease-in-out infinite;
  animation-delay: -5s;
}

.floaters__obj--3 {
  bottom: 20%;
  left: 20%;
  --link-len: 200px;
  --link-angle: -12deg;
  animation: node-drift-c 30s ease-in-out infinite;
  animation-delay: -11s;
}

.floaters__obj--4 {
  top: 46%;
  left: 48%;
  --link-len: 150px;
  --link-angle: 224deg;
  animation: node-drift-d 18s ease-in-out infinite;
  animation-delay: -8s;
}

.floaters__obj--5 {
  top: 9%;
  right: 30%;
  --link-len: 100px;
  --link-angle: 88deg;
  animation: node-drift-e 22s ease-in-out infinite;
}

.floaters__obj--6 {
  bottom: 32%;
  right: 8%;
  --link-len: 165px;
  --link-angle: 188deg;
  animation: node-drift-f 28s ease-in-out infinite;
  animation-delay: -3s;
}

.floaters__ring {
  border: 1px dashed rgba(94, 234, 212, 0.36);
  border-radius: 50%;
  opacity: 0.35;
  box-shadow:
    inset 0 0 22px rgba(56, 189, 248, 0.14),
    0 0 30px rgba(56, 189, 248, 0.1);
}

.floaters__ring--1 {
  width: 280px;
  height: 280px;
  top: 18%;
  right: 9%;
  animation: firewall-scope 32s linear infinite;
}

.floaters__ring--2 {
  width: 220px;
  height: 220px;
  bottom: 9%;
  left: 26%;
  border-color: rgba(56, 189, 248, 0.34);
  animation: threat-hunt-loop 26s linear infinite reverse;
  animation-delay: -9s;
}

@keyframes circuit-drift {
  0% {
    transform: translate(0, 0);
    opacity: 0.18;
  }
  50% {
    transform: translate(-2%, 2%);
    opacity: 0.24;
  }
  100% {
    transform: translate(2%, -2%);
    opacity: 0.18;
  }
}

@keyframes security-scan {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(420%);
  }
}

@keyframes node-blink {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes node-drift-a {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(min(12vw, 140px), 7vh);
  }
}

@keyframes node-drift-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-min(11vw, 140px), 8vh);
  }
}

@keyframes node-drift-c {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(8vw, -10vh);
  }
}

@keyframes node-drift-d {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-8vw, 7vh);
  }
}

@keyframes node-drift-e {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-7vw, 12vh);
  }
}

@keyframes node-drift-f {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-10vw, -8vh);
  }
}

@keyframes firewall-scope {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: rotate(180deg) scale(1.08);
    opacity: 0.5;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 0.3;
  }
}

@keyframes threat-hunt-loop {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(0.92);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floaters::before,
  .floaters::after,
  .floaters__obj,
  .floaters__obj::after,
  .floaters__ring {
    animation: none !important;
  }

  .floaters__obj,
  .floaters__ring {
    opacity: 0.12;
  }
}

/* Keep page content above floaters */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 100;
  background: var(--accent);
  transition: width 0.1s linear;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 8, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(5, 6, 8, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.logo__accent {
  color: var(--accent);
}

.logo__symbol {
  color: var(--accent);
  flex-shrink: 0;
  margin-right: 0.45rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.nav-secondary {
  color: var(--text-muted) !important;
}

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff !important;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta:hover {
  background: #2563eb;
  color: #fff !important;
  text-decoration: none;
  box-shadow: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(10, 12, 18, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-deep);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
  }

  .site-header.nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: none;
    margin-top: 0.35rem;
    text-align: center;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-reveal-delay="40"] {
  transition-delay: 40ms;
}

.reveal[data-reveal-delay="50"] {
  transition-delay: 50ms;
}

.reveal[data-reveal-delay="60"] {
  transition-delay: 60ms;
}

.reveal[data-reveal-delay="70"] {
  transition-delay: 70ms;
}

.reveal[data-reveal-delay="120"] {
  transition-delay: 120ms;
}

.reveal[data-reveal-delay="140"] {
  transition-delay: 140ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Hero — mission headline */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.hero__mission {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--text);
  max-width: 22ch;
}

@media (min-width: 700px) {
  .hero__mission {
    max-width: none;
  }
}

.hero__intro {
  margin: 0 0 1.75rem;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero__intro a {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.25s var(--ease-out),
    color 0.25s,
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.15s;
}

.btn svg {
  transition: transform 0.25s var(--ease-out);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.card-glass {
  position: relative;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
}

.hero__panel {
  padding: 1.5rem;
}

.hero__panel-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.hero__panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
  letter-spacing: 0.01em;
}

.hero__ticks {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero__ticks li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.tick {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 4px;
  background: var(--accent-dim);
  border: 1px solid var(--border-bright);
  position: relative;
}

.tick::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 8px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.hero__mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.mini-stat__val {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}

.mini-stat__lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-stats dt {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.2rem);
  letter-spacing: 0.02em;
}

.stat-num {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content,
  .hero__panel,
  .hero-stats {
    animation: hero-in 0.85s var(--ease-out) forwards;
    opacity: 0;
  }

  .hero__panel {
    animation-delay: 0.1s;
  }

  .hero-stats {
    animation-delay: 0.18s;
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content,
  .hero__panel,
  .hero-stats {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Inner page hero */
.page-hero {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--border);
}

.page-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.65rem;
}

.page-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.page-hero__lead {
  margin: 0;
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Home: quick links to main pages */
.home-explore {
  text-align: center;
}

.home-explore__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}

.home-explore__grid a {
  text-decoration: none;
}

.home-explore__grid a:hover {
  text-decoration: none;
}

/* Section bands */
.section-band {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.section-band--tight {
  padding: clamp(2.25rem, 6vw, 4rem) 0;
}

.pillars {
  background: var(--band);
  border-block: 1px solid var(--border);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

.pillar__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

.pillar__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Section headings — editorial */
.section-head--nviso {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-head__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  color: var(--text);
}

.section-head__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Tabs */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.tabs__tab {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.tabs__tab:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.tabs__tab.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

.tabs__panel[hidden] {
  display: none !important;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    transform 0.3s var(--ease-out),
    border-color 0.3s,
    box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.card--featured {
  background: var(--elevated);
  border-color: rgba(59, 130, 246, 0.18);
  margin-bottom: 1.25rem;
}

.featured-program {
  padding: 0;
  overflow: hidden;
}

.featured-program--spaced {
  margin-top: 1.25rem;
}

.featured-program__inner {
  padding: clamp(1.75rem, 4vw, 2.25rem);
}

.featured-program__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin: 0.5rem 0 1rem;
  letter-spacing: 0.01em;
}

.featured-program__desc {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  max-width: 75ch;
}

.card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.2);
}

.text-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent-2);
  text-decoration: none;
}

.program-subgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.program-subgrid--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .program-subgrid--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .program-subgrid {
    grid-template-columns: 1fr;
  }
}

/* Program actions row (links + toggle button) */
.program-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.program-modules-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.program-modules-btn:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}

.program-modules-btn__arrow {
  transition: transform 0.3s var(--ease-out);
}

.program-modules-btn[aria-expanded="true"] .program-modules-btn__arrow {
  transform: rotate(180deg);
}

/* Accordion collapse */
.program-modules-collapse {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--ease-out), opacity 0.35s ease;
  opacity: 0;
  margin-top: 0;
}

.program-modules-collapse.is-open {
  max-height: 800px;
  opacity: 1;
  margin-top: 1.25rem;
}

/* Course logo in featured program card */
.program-course-logo {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  height: 72px;
}

.program-course-logo img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  filter: invert(1) hue-rotate(180deg);
}

.program-course-logo img.logo--circle {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  filter: none;
}

.program-tile {
  padding: 1.5rem;
}

.program-tile h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.65rem;
  letter-spacing: 0.01em;
}

.program-tile p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Our Trainings */
.trainings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .trainings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .trainings-grid {
    grid-template-columns: 1fr;
  }
}

.training-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.training-card__logo-wrap {
  height: 56px;
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
}

.training-card__logo-wrap img {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.training-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  color: var(--text);
  letter-spacing: 0.01em;
}

.training-card__desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

/* Partner logo grid */
.partner-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.partner-marquee__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: 100%;
  will-change: transform;
}

/* When JS starts animation, switch to left-start for scrolling */
.partner-marquee__track.is-animating {
  justify-content: flex-start;
  width: max-content;
}

.partner-logo-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  width: 260px;
}

.partner-logo-card img {
  max-width: 100%;
  max-height: 144px;
  width: auto;
  object-fit: contain;
}

/* Clients strip */
.clients {
  background: var(--band);
  border-block: 1px solid var(--border);
}

.clients__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.clients__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.45;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial {
  margin: 0;
  padding: 1.75rem;
  position: relative;
}

.testimonial__quote {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
  margin-bottom: 0.25rem;
}

.testimonial blockquote {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.testimonial figcaption {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

/* Why choose */
.why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-card {
  padding: 1.75rem;
  position: relative;
}

.why-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: var(--accent-dim);
  border: 1px solid var(--border-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.why-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.65rem;
  letter-spacing: 0.01em;
}

.why-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Career CTA */
.career-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.career-cta__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.career-cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.career-cta__text {
  margin: 0;
  color: var(--text-muted);
  max-width: 42ch;
}

/* Partners page */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 701px) and (max-width: 1000px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.partner-card {
  padding: 1.5rem 1.5rem 1.4rem;
}

.partner-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 0.65rem;
}

.partner-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  margin: 0 0 0.6rem;
  color: var(--text);
}

.partner-card__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  padding: 1.5rem;
}

.news-card__cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 0.65rem;
}

.news-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  margin: 0 0 1rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* Contact */
.cta {
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  overflow: hidden;
}

@media (max-width: 768px) {
  .cta-inner {
    grid-template-columns: 1fr;
  }
}

.cta-glow {
  display: none;
}

.cta-copy p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.cta-email {
  font-size: 1.05rem;
  font-weight: 600;
}

.cta-email a {
  color: var(--accent);
}

/* ── Contact page layout ─────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
  align-items: stretch;
  min-height: 420px;
}

.contact-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-info__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-detail__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-detail__value {
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--text);
}

.contact-detail__value a {
  color: var(--accent);
  text-decoration: none;
}

.contact-detail__value a:hover {
  text-decoration: underline;
}

.contact-detail__address {
  font-style: normal;
  line-height: 1.6;
  color: var(--text-muted);
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
}

.contact-map iframe,
.contact-map__iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-map {
    min-height: 300px;
  }
  .contact-map iframe {
    min-height: 300px;
  }
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.cta-form input,
.cta-form select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
}

.cta-form input::placeholder {
  color: var(--text-muted);
}

.cta-form input:focus,
.cta-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-status {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--accent);
  min-height: 1.4em;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) auto;
  gap: 2rem;
  align-items: start;
}

.footer-achievements {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-achievements img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  opacity: 0.9;
}

.footer-achievements img:first-child {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
}

.footer-achievements img:hover {
  opacity: 1;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-tagline {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 28ch;
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 0.45rem;
}

.footer-list a {
  color: var(--text);
  font-size: 0.95rem;
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-address {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
