/* ==========================================================================
   SecScope Corp — theme.css
   Graphite + crimson design system
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg-deep: #070b13;
  --bg: #0a0f1a;
  --surface: #0f1726;
  --surface-2: #111c2e;
  --surface-3: #16233a;

  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;

  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);

  --brand: #e11d2e;
  --brand-hover: #c41425;
  --brand-bright: #ff6b76;
  --brand-soft: rgba(225, 29, 46, 0.14);

  --accent: #38bdf8;
  --success: #34d399;
  --warning: #fbbf24;

  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-lg: 0 32px 80px -32px rgba(0, 0, 0, 0.85);
  --shadow-md: 0 20px 48px -24px rgba(0, 0, 0, 0.8);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  --nav-height: 76px;
  --container: 1200px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1100px 600px at 88% -12%, rgba(225, 29, 46, 0.1), transparent 60%),
    radial-gradient(900px 520px at -12% 18%, rgba(56, 189, 248, 0.05), transparent 60%),
    var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: rgba(225, 29, 46, 0.45);
  color: #fff;
}

a {
  color: var(--brand-bright);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

p {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  padding-inline: 1.5rem;
}

@media (min-width: 1400px) {
  .container {
    max-width: var(--container);
  }
}

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

/* Skip link */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

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

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: var(--brand-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brand);
  box-shadow: 0 0 10px rgba(225, 29, 46, 0.8);
}

.display-title {
  font-size: clamp(2.35rem, 5.4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.page-title {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.section-title {
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
  letter-spacing: -0.028em;
}

.section-lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.75;
}

.text-brand {
  color: var(--brand-bright);
}

.text-mono {
  font-family: var(--font-mono);
}

.text-muted-soft {
  color: var(--muted) !important;
}

/* ---------- Buttons ---------- */
.btn {
  --bs-btn-focus-box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.78rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn i {
  font-size: 1.05em;
  transition: transform 0.2s var(--ease);
}

.btn:hover i.bi-arrow-right {
  transform: translateX(3px);
}

.btn-brand {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(225, 29, 46, 0.75);
}

.btn-brand:hover,
.btn-brand:focus-visible {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -14px rgba(225, 29, 46, 0.8);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(225, 29, 46, 0.55);
  background: var(--brand-soft);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 40px;
  padding: 0.55rem 1.05rem;
  font-size: 0.85rem;
}

.btn-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-bright);
  font-size: 0.88rem;
  font-weight: 600;
}

.btn-link-arrow:hover {
  color: #fff;
}

.btn-link-arrow i {
  transition: transform 0.2s var(--ease);
}

.btn-link-arrow:hover i {
  transform: translate(2px, -2px);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1100;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
  box-shadow: 0 0 12px rgba(225, 29, 46, 0.8);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 11, 19, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.navbar {
  min-height: var(--nav-height);
  padding-block: 0.6rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.navbar-brand img {
  width: auto;
  height: 36px;
}

.navbar-nav {
  flex-direction: row;
  gap: 0.15rem;
  align-items: center;
}

.navbar > .container {
  flex-wrap: nowrap;
}

.nav-link {
  position: relative;
  padding: 0.6rem 0.85rem !important;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
}

.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  bottom: 0.3rem;
  left: 0.85rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  box-shadow: 0 0 12px rgba(225, 29, 46, 0.9);
}

.navbar-toggler {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.navbar-toggler:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Offcanvas mobile menu */
.offcanvas {
  --bs-offcanvas-width: min(420px, 100vw);
  border-left: 1px solid var(--border);
  background: var(--bg);
}

.offcanvas-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.offcanvas-header img {
  height: 32px;
  width: auto;
}

.offcanvas-body {
  padding: 1.5rem;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 1rem;
  font-weight: 500;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  background: rgba(225, 29, 46, 0.1);
  color: #fff;
}

.mobile-nav a[aria-current="page"] i {
  color: var(--brand-bright);
}

.mobile-nav .btn {
  justify-content: center;
  margin-top: 0.9rem;
  width: 100%;
}

.mobile-nav .btn-brand {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.mobile-nav .btn-brand:hover {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
  color: #fff;
}

.offcanvas-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 7.5vw, 108px) 0 clamp(64px, 8vw, 104px);
  overflow: clip;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 72% at 50% 30%, #000 20%, transparent 76%);
  mask-image: radial-gradient(ellipse 85% 72% at 50% 30%, #000 20%, transparent 76%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  top: -22%;
  right: -12%;
  z-index: 0;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 46, 0.22), transparent 65%);
  filter: blur(24px);
  animation: drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

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

.hero-title {
  margin-block: 0.85rem 1.35rem;
  font-size: clamp(2.55rem, 5.6vw, 4.7rem);
  line-height: 1.01;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 55ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2.4rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-tag i {
  color: var(--brand-bright);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  margin-left: auto;
  max-width: 560px;
}

.hero-frame {
  position: relative;
  aspect-ratio: 4 / 3.35;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 300px at 72% 22%, rgba(225, 29, 46, 0.12), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  padding: clamp(1rem, 3vw, 2rem);
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.35));
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(7, 11, 19, 0.55) 100%),
    radial-gradient(500px 260px at 100% 0%, rgba(225, 29, 46, 0.22), transparent 70%);
  pointer-events: none;
}

.hero-frame-corner {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-color: var(--brand);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}

.hero-frame-corner--tl {
  top: 16px;
  left: 16px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.hero-frame-corner--br {
  right: 16px;
  bottom: 16px;
  border-right-width: 2px;
  border-bottom-width: 2px;
}

.hero-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(10, 15, 26, 0.88);
  box-shadow: 0 22px 44px -20px #000;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: float 6.5s ease-in-out infinite;
}

.hero-chip i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-bright);
  font-size: 1.05rem;
}

.hero-chip strong {
  display: block;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.hero-chip--one {
  top: 9%;
  left: -6%;
}

.hero-chip--two {
  right: -6%;
  bottom: 9%;
  animation-delay: -3.2s;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.2s ease-out infinite;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0;
}

.section--tight {
  padding: clamp(40px, 5vw, 64px) 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-header--center .eyebrow {
  justify-content: center;
}

.section-header--center .section-lead {
  margin-inline: auto;
}

/* ---------- Cards ---------- */
.card-surface {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008));
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.card-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(420px 260px at 85% 0%, rgba(225, 29, 46, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

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

.card-surface:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 29, 46, 0.34);
  box-shadow: var(--shadow-md);
}

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

.card-index {
  display: block;
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.icon-box {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 1.35rem;
  place-items: center;
  border: 1px solid rgba(225, 29, 46, 0.28);
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-bright);
  font-size: 1.45rem;
  transition:
    transform 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.card-surface:hover .icon-box {
  transform: translateY(-2px);
  background: rgba(225, 29, 46, 0.2);
}

.card-title {
  margin-bottom: 0.75rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.card-copy {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.card-surface .btn,
.card-surface .btn-link-arrow {
  margin-top: 1.4rem;
}

/* ---------- Band (background image) ---------- */
.band {
  position: relative;
  padding: clamp(56px, 7vw, 92px) 0;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background:
    radial-gradient(560px 360px at 86% 35%, rgba(225, 29, 46, 0.14), transparent 70%),
    linear-gradient(95deg, rgba(7, 11, 19, 0.99) 0%, rgba(7, 11, 19, 0.96) 55%, rgba(7, 11, 19, 0.88) 100%);
}

.band .container {
  position: relative;
  z-index: 1;
}

.band-content {
  max-width: 650px;
}

.band-illustration {
  position: absolute;
  right: -2%;
  bottom: -14%;
  z-index: 0;
  width: min(46%, 560px);
  opacity: 0.92;
  pointer-events: none;
}

.band-illustration img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
}

.band-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 1.4rem;
  place-items: center;
  border: 1px solid rgba(225, 29, 46, 0.4);
  border-radius: 50%;
  background: rgba(225, 29, 46, 0.12);
  color: var(--brand-bright);
  font-size: 1.5rem;
  box-shadow: 0 0 0 8px rgba(225, 29, 46, 0.05);
}

.band-quote {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-style: italic;
  line-height: 1.8;
}

/* ---------- Resource link lists ---------- */
.resource-card {
  height: 100%;
  padding: clamp(1.35rem, 2.5vw, 1.8rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 38, 0.55);
}

.resource-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.resource-card h3 i {
  color: var(--brand-bright);
  font-size: 1rem;
}

.link-list {
  list-style: none;
}

.link-list li:first-child a {
  border-top: 0;
}

.link-list a {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  transition:
    color 0.2s var(--ease),
    padding-left 0.2s var(--ease);
}

.link-list a:hover {
  padding-left: 0.3rem;
  color: #fff;
}

.link-list a i {
  flex: 0 0 auto;
  color: var(--brand-bright);
  font-size: 0.85rem;
  transition: transform 0.2s var(--ease);
}

.link-list a:hover i {
  transform: translate(2px, -2px);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding: clamp(64px, 8vw, 104px) 0 clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--border);
  overflow: clip;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -55%;
  right: -5%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 46, 0.16), transparent 65%);
  filter: blur(18px);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-hero .breadcrumb a {
  color: var(--muted);
}

.page-hero .breadcrumb a:hover {
  color: var(--brand-bright);
}

.page-hero .breadcrumb .active {
  color: var(--text-soft);
}

.breadcrumb-item + .breadcrumb-item {
  padding-left: 0.55rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  padding-right: 0.55rem;
  color: rgba(148, 163, 184, 0.55);
  content: "/";
}

.page-hero .section-lead {
  margin-top: 1.25rem;
}

.error-code {
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.06em;
  text-shadow: 0 0 60px rgba(225, 29, 46, 0.25);
}

/* ---------- News ---------- */
.news-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 29, 46, 0.34);
  box-shadow: var(--shadow-md);
}

.news-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(280px 180px at 50% 35%, rgba(225, 29, 46, 0.1), transparent 70%),
    var(--surface-2);
}

.news-card-media img {
  width: 100%;
  height: 100%;
  padding: 0.9rem;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}

.news-card:hover .news-card-media img {
  transform: scale(1.025);
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.25rem, 2.5vw, 1.6rem);
}

.news-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  color: var(--brand-bright);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-meta time {
  color: var(--muted);
}

.news-title {
  margin-bottom: 0.65rem;
  font-size: 1.22rem;
  letter-spacing: -0.015em;
}

.news-title a {
  color: var(--text);
}

.news-title a:hover {
  color: var(--brand-bright);
}

.news-card .btn-link-arrow {
  margin-top: auto;
  padding-top: 1.1rem;
}

/* ---------- Article ---------- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-meta span {
  position: relative;
  padding-left: 1.15rem;
}

.article-meta span::before {
  position: absolute;
  left: 0;
  color: rgba(148, 163, 184, 0.5);
  content: "/";
}

.article-cover {
  margin-bottom: 2rem;
}

.article-body {
  max-width: 72ch;
}

.article-body h2 {
  margin: 2.25rem 0 0.8rem;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
}

.article-body h3 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.15rem;
}

.article-body p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.article-body ul {
  margin: 0.75rem 0 1.25rem 1.1rem;
  color: var(--muted);
}

.article-body li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.article-body strong {
  color: var(--text);
}

/* ---------- Split media ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  padding: clamp(1rem, 3vw, 2rem);
  object-fit: contain;
}

.media-frame--ratio {
  aspect-ratio: 4 / 3;
}

.media-frame--tall {
  aspect-ratio: 4 / 5;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 19, 0.35));
  pointer-events: none;
}

.media-caption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 1;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(7, 11, 19, 0.78);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.media-caption i {
  color: var(--brand-bright);
  font-size: 0.95rem;
}

.quote-block {
  margin: 1.75rem 0;
  padding: 1.25rem 0 1.25rem 1.4rem;
  border-left: 2px solid var(--brand);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  font-style: italic;
  line-height: 1.6;
}

.body-copy {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.body-copy + .body-copy {
  margin-top: 1.1rem;
}

/* ---------- Team ---------- */
.team-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 29, 46, 0.34);
  box-shadow: var(--shadow-md);
}

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

.team-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: grayscale(1) contrast(1.04);
  transition:
    transform 0.6s var(--ease),
    filter 0.6s var(--ease);
}

.team-card:hover .team-media img {
  transform: scale(1.035);
  filter: grayscale(0.7) contrast(1.06);
}

.team-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 10, 17, 0.6));
  pointer-events: none;
}

.team-body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.team-name {
  font-size: 1.25rem;
}

.team-role {
  margin-top: 0.35rem;
  color: var(--brand-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-email {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  word-break: break-word;
}

.team-email:hover {
  color: var(--brand-bright);
}

.team-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.team-links a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.95rem;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.team-links a:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: #fff;
}

/* ---------- History / mission ---------- */
.pillar-card {
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.pillar-number {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: var(--brand-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

/* ---------- Contact ---------- */
.form-card {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.form-label {
  margin-bottom: 0.45rem;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.form-label .required {
  color: var(--brand-bright);
}

.form-control {
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 19, 0.55);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-control::placeholder {
  color: #7c8ba1;
}

.form-control:focus {
  border-color: rgba(225, 29, 46, 0.65);
  background: rgba(7, 11, 19, 0.8);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.14);
}

.form-control.is-invalid {
  border-color: #ff6b76;
  background-image: none;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(255, 107, 118, 0.16);
}

.invalid-feedback {
  color: #ff8a95;
  font-size: 0.8rem;
}

.form-note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.form-alert {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(225, 29, 46, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(225, 29, 46, 0.1);
  color: #ffc2c7;
  font-size: 0.88rem;
}

.form-alert.is-success {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.1);
  color: #a7f3d0;
}

.contact-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.contact-panel-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.contact-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-panel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 11, 19, 0.6));
  pointer-events: none;
}

.contact-panel-body {
  padding: clamp(1.35rem, 2.5vw, 1.8rem);
}

.contact-panel-title {
  margin-top: 0.6rem;
  font-size: 1.45rem;
}

.contact-line {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}

.contact-line:first-child {
  border-top: 0;
  padding-top: 0;
}

.contact-line i {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(225, 29, 46, 0.28);
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-bright);
  font-size: 0.95rem;
}

.contact-line strong {
  display: block;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-line span,
.contact-line a {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.contact-line a:hover {
  color: var(--brand-bright);
}

.info-card {
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 38, 0.55);
}

.info-card h2,
.info-card h3 {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.info-card h2.mt-4 {
  margin-top: 1.5rem;
}

.info-card h2 i,
.info-card h3 i {
  color: var(--brand-bright);
  font-size: 1rem;
}

.info-card p,
.info-card li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.info-card a {
  color: var(--text-soft);
}

.info-card a:hover {
  color: var(--brand-bright);
}

.info-card ul {
  list-style: none;
}

.info-card li + li {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.info-card .person-name {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.info-card .person-title {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- Jobs ---------- */
.job-card {
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition:
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.job-card:hover {
  border-color: rgba(225, 29, 46, 0.32);
  box-shadow: var(--shadow-md);
}

.job-card-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.job-card-header .icon-box {
  margin-bottom: 0;
}

.job-card-header h3 {
  font-size: 1.2rem;
}

.job-card-header span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.role-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.role-item h4 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.role-item p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.role-item .btn-link-arrow {
  margin-top: 0.8rem;
}

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 320px at 90% 0%, rgba(225, 29, 46, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 100% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 100% at 100% 0%, #000, transparent 70%);
  pointer-events: none;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem;
  border-top: 1px solid var(--border);
  background: #060a11;
}

.footer-brand {
  display: inline-block;
}

.footer-brand img {
  width: auto;
  height: 34px;
  margin-bottom: 1.1rem;
}

.footer-copy {
  max-width: 32ch;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-title {
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--brand-bright);
}

.footer-contact {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-contact a {
  color: var(--text-soft);
}

.footer-contact a:hover {
  color: var(--brand-bright);
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.footer-social a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 1rem;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.footer-social a:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.footer-legal span {
  color: rgba(148, 163, 184, 0.45);
}

.footer-credit {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-credit a {
  color: var(--text-soft);
}

.footer-credit a:hover {
  color: var(--brand-bright);
}

.footer-bottom a {
  color: var(--text-soft);
}

.footer-bottom a:hover {
  color: var(--brand-bright);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 1040;
  display: grid;
  width: 46px;
  height: 46px;
  visibility: hidden;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(15, 23, 38, 0.92);
  color: var(--text);
  font-size: 1.05rem;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease),
    visibility 0.25s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.back-to-top.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--brand);
  color: var(--brand-bright);
}

/* ---------- Reveal / motion ---------- */
html.js body.is-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  will-change: opacity, transform;
}

html.js body.is-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-copy > * {
  animation: heroIn 0.85s var(--ease) both;
}

.hero-copy > *:nth-child(1) {
  animation-delay: 0.05s;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 0.12s;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 0.19s;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 0.26s;
}

.hero-copy > *:nth-child(5) {
  animation-delay: 0.33s;
}

.hero-visual {
  animation: heroIn 1s 0.2s var(--ease) both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-40px, 30px, 0) scale(1.08);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .hero-visual {
    max-width: 520px;
  }

  .hero-chip--one {
    left: 2%;
  }

  .hero-chip--two {
    right: 2%;
  }
}

@media (max-width: 991.98px) {
  .hero {
    padding-top: 3.5rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-visual {
    max-width: 100%;
    margin-top: 3rem;
  }

  .hero-chip--one {
    top: 6%;
    left: 3%;
  }

  .hero-chip--two {
    right: 3%;
    bottom: 6%;
  }

  .page-hero {
    padding-top: 3.5rem;
  }

  .band {
    background:
      radial-gradient(440px 300px at 80% 20%, rgba(225, 29, 46, 0.12), transparent 70%),
      linear-gradient(180deg, rgba(7, 11, 19, 0.99) 0%, rgba(7, 11, 19, 0.97) 70%, rgba(7, 11, 19, 0.92) 100%);
  }

  .band-illustration {
    position: static;
    width: 100%;
    max-width: 430px;
    margin: 1.75rem auto 0;
  }
}

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

  .navbar-brand img {
    height: 32px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.1rem);
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-chip {
    padding: 0.65rem 0.8rem;
  }

  .hero-chip i {
    width: 32px;
    height: 32px;
  }

  .hero-chip span {
    display: none;
  }

  .team-media {
    aspect-ratio: 4 / 4.2;
  }

  .form-card {
    padding: 1.35rem;
  }

  .back-to-top {
    width: 42px;
    height: 42px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 399.98px) {
  .hero-chip--one {
    left: 0;
  }

  .hero-chip--two {
    right: 0;
  }

  .hero-tag {
    font-size: 0.62rem;
  }
}

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

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

  html.js body.is-ready .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-copy > *,
  .hero-visual,
  .hero-chip,
  .hero-orb,
  .status-dot {
    animation: none !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .back-to-top,
  .scroll-progress,
  .hero-orb,
  .hero-grid,
  .offcanvas {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card-surface,
  .team-card,
  .job-card,
  .form-card {
    border-color: #ccc;
    box-shadow: none;
  }
}
