:root {
  --navy: #0a1128;
  --navy-light: #0f1c3f;
  --card-bg: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.1);
  --blue: #7dd3fc;
  --red: #fc3d21;
  --white: #ffffff;
  --gray-100: #f4f6fb;
  --gray-300: #c7cede;
  --gray-500: #98a2c3;
  --gray-600: #8890b0;
  --max-width: 1120px;
  --radius: 8px;
  --font-display: 'Orbitron', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Rajdhani', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--gray-300);
  line-height: 1.6;
}

body {
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse 900px 600px at 15% -10%, rgba(11, 61, 145, 0.4), transparent 60%),
    radial-gradient(ellipse 900px 700px at 100% 15%, rgba(252, 61, 33, 0.14), transparent 55%),
    radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent 60%),
    radial-gradient(1px 1px at 80% 8%, #fff, transparent 60%),
    radial-gradient(1.5px 1.5px at 50% 62%, #fff, transparent 60%),
    radial-gradient(1px 1px at 28% 82%, #fff, transparent 60%),
    radial-gradient(1px 1px at 72% 92%, #fff, transparent 60%),
    radial-gradient(1.5px 1.5px at 92% 48%, #fff, transparent 60%),
    radial-gradient(1px 1px at 15% 55%, #fff, transparent 60%),
    radial-gradient(1px 1px at 62% 22%, #fff, transparent 60%),
    radial-gradient(1px 1px at 40% 40%, #fff, transparent 60%),
    radial-gradient(1px 1px at 5% 90%, #fff, transparent 60%);
  background-repeat: no-repeat, no-repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat;
  background-size: 100% 100%, 100% 100%, 340px 340px, 340px 340px, 340px 340px, 340px 340px, 340px 340px, 340px 340px, 340px 340px, 340px 340px, 340px 340px, 340px 340px;
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

h1, h2, h3 {
  line-height: 1.2;
  margin-top: 0;
  font-family: var(--font-display);
  color: var(--white);
  letter-spacing: 0.01em;
}

/* Header */
.site-header {
  background: rgba(10, 17, 40, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand:hover { text-decoration: none; }
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.brand-mark { color: var(--red); }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--gray-300);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--red);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  display: block;
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  position: relative;
}

.hero-logo {
  display: block;
  max-width: 340px;
  width: 60%;
  margin: 0 auto 40px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text { flex: 1.3; }
.hero-media { flex: 1; text-align: center; }

.headshot-frame {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1.05;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--red);
  padding: 5px;
  filter: drop-shadow(0 0 30px rgba(252, 61, 33, 0.45));
}

.headshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.lede {
  font-size: 1.3rem;
  color: var(--gray-300);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-body {
  color: var(--gray-300);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 24px rgba(252, 61, 33, 0.45);
}
.btn-primary:hover { background: #e0350f; }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--gray-300);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* Motto */
.motto {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.motto-latin {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.motto-en {
  color: var(--gray-500);
  font-style: italic;
  font-size: 0.95rem;
  margin: 0;
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 64px 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  border-color: rgba(252, 61, 33, 0.5);
  box-shadow: 0 0 24px rgba(252, 61, 33, 0.15);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--red);
}

.card h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* Recent posts */
.recent-posts {
  padding: 0 24px 64px;
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.post-date {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* About hero */
.about-hero {
  padding: 56px 0;
}

.about-hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.about-hero-inner { align-items: stretch; }
.about-hero-text { flex: 1.1; display: flex; flex-direction: column; justify-content: center; }
.about-hero-media { flex: 1.2; display: flex; }

.about-hero-text .page-content {
  color: var(--gray-300);
  max-width: 60ch;
}

.credentials-line {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-300);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0;
}

.about-photo {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: 0 0 40px rgba(11, 61, 145, 0.35);
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 24px;
}

.stat {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  border-bottom: 3px solid var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.stat-icon {
  width: 26px;
  height: 26px;
  color: var(--red);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 0 20px rgba(252, 61, 33, 0.5);
}

.stat-label {
  display: block;
  color: var(--gray-300);
  font-size: 0.85rem;
  margin-top: 4px;
}

.stat-badge {
  justify-content: center;
}

/* Highlights */
.highlights-title {
  font-size: 1.4rem;
  margin-top: 40px;
  border-top: 1px solid var(--card-border);
  padding-top: 32px;
}

.highlights-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  max-width: 72ch;
}

.highlights-list li {
  position: relative;
  padding-left: 20px;
  color: var(--gray-300);
}

.highlights-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(252, 61, 33, 0.8);
}

/* Media & Press */
.media-item {
  max-width: 72ch;
  padding: 16px 0;
  border-bottom: 1px solid var(--card-border);
}

.media-title {
  font-weight: 700;
  color: var(--white);
  margin: 0 0 4px;
}

.media-subtitle {
  font-weight: 400;
  font-style: italic;
  color: var(--gray-500);
}

.media-desc {
  margin: 0 0 6px;
  color: var(--gray-300);
}

.media-link {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}

.pending {
  font-weight: 400;
  font-style: italic;
  color: var(--gray-500);
}

/* Generic page */
.page {
  padding: 56px 24px;
}

.page-header h1 {
  font-size: 2rem;
  border-bottom: 3px solid var(--red);
  padding-bottom: 12px;
  display: inline-block;
}

.page-content {
  margin-top: 24px;
  max-width: 72ch;
}

.page-content a { color: var(--blue); }

/* Contact form */
.contact-form {
  max-width: 560px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-300);
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 10px 12px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--red);
}

.form-row select option {
  background: var(--navy-light);
  color: var(--white);
}

.contact-form .btn {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.contact-fallback {
  margin-top: 24px;
  color: var(--gray-500);
}

/* Footer */
.site-footer {
  background: rgba(10, 17, 40, 0.85);
  color: var(--gray-300);
  padding: 32px 0;
  margin-top: 32px;
  border-top: 1px solid var(--card-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.footer-links a { color: var(--gray-300); }
.footer-links a:hover { color: var(--red); }

.footer-disclaimer {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
  color: var(--gray-500);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 800px) {
  .hero-inner { flex-direction: column; }
  .services { grid-template-columns: 1fr; }
  .about-hero-inner { flex-direction: column; }
  .about-photo { min-height: 260px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .highlights-list { grid-template-columns: 1fr; }
  .hero-logo { width: 80%; max-width: 280px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    width: 100%;
  }
  .site-nav.open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
  }
  .site-nav ul li { padding: 8px 0; }
}
