:root {
  --red: #c8102e;
  --blue: #0f2b64;
  --white: #ffffff;
  --bg: #0a1224;
  --text: #e8ecf5;
  --muted: #b7c4e0;
  --accent: #48b0f7;
  --gradient: linear-gradient(135deg, rgba(200, 16, 46, 0.95), rgba(15, 43, 100, 0.9));
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --shadow-strong: 0 20px 80px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: #070c19;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 10% 20%, rgba(200, 16, 46, 0.08), transparent 25%),
    radial-gradient(circle at 80% 10%, rgba(72, 176, 247, 0.12), transparent 25%),
    #070c19;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle at 15% 18%, rgba(200, 16, 46, 0.12), transparent 30%),
    radial-gradient(circle at 78% 12%, rgba(72, 176, 247, 0.18), transparent 32%),
    radial-gradient(circle at 35% 75%, rgba(200, 16, 46, 0.08), transparent 30%),
    linear-gradient(120deg, rgba(200, 16, 46, 0.06), rgba(72, 176, 247, 0.06));
  filter: blur(0px);
  animation: drift 28s ease-in-out infinite alternate;
}

body::after {
  background-image:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.08), transparent 35%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 22%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size:
    220% 220%,
    140% 140%,
    120px 120px,
    120px 120px;
  mix-blend-mode: soft-light;
  opacity: 0.4;
  animation: pan 38s linear infinite;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

header,
footer,
.page-shell {
  position: relative;
  z-index: 1;
}

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

.ambient-canvas .logo-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.50;
  mix-blend-mode: screen;
}

.ambient-canvas .logo-mark::after {
  content: "";
  width: clamp(220px, 32vw, 420px);
  height: clamp(220px, 32vw, 420px);
  background: url('wootton-logo.jpg') center/contain no-repeat;
  filter: drop-shadow(0 18px 48px rgba(0, 0, 0, 0.35));
}

.ambient-canvas .flare {
  position: absolute;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.65;
  mix-blend-mode: screen;
  background: var(--gradient);
  animation: float 26s ease-in-out infinite alternate;
}

.ambient-canvas .flare.one {
  width: 320px;
  height: 320px;
  top: -60px;
  left: -80px;
}

.ambient-canvas .flare.two {
  width: 420px;
  height: 420px;
  bottom: -120px;
  right: -60px;
  animation-duration: 32s;
}

.ambient-canvas .flare.three {
  width: 220px;
  height: 220px;
  top: 30%;
  right: 20%;
  background: radial-gradient(circle, rgba(72, 176, 247, 0.6), rgba(200, 16, 46, 0.4));
  animation-duration: 24s;
}

.ambient-canvas .ring {
  position: absolute;
  inset: 15% 10%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  filter: blur(2px);
  animation: pulse 18s ease-in-out infinite;
}

.ambient-canvas .beam {
  position: absolute;
  width: 140%;
  height: 180px;
  top: 18%;
  left: -10%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: rotate(-6deg);
  animation: beam 16s ease-in-out infinite;
  opacity: 0.5;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 12, 25, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body.scrolled header {
  background: rgba(7, 12, 25, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}

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

.brand:hover {
  color: var(--white);
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: block;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

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

.brand:hover .brand-name,
.brand:visited .brand-name {
  color: var(--text);
}

.navbar .brand-mark {
  width: 60px;
  height: 60px;
  padding: 8px;
  border-radius: 14px;
}

.footer .brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  white-space: nowrap;
  border-radius: 999px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

nav a:hover,
nav a.active {
  background: rgba(200, 16, 46, 0.16);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.25);
}

nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 2px;
  background: linear-gradient(90deg, rgba(200, 16, 46, 0.8), rgba(72, 176, 247, 0.85));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  opacity: 0.9;
}

nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--white);
  background: var(--gradient);
  background-size: 180% 180%;
  box-shadow: 0 15px 30px rgba(200, 16, 46, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.35s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 48px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(72, 176, 247, 0.3);
  background-position: 80% 20%;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: none;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 40%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.btn:hover::after {
  opacity: 1;
}

.hero {
  padding: 6rem 0 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 4rem;
  align-items: center;
  position: relative;
  isolation: isolate;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: rgba(72, 176, 247, 0.12);
  border: 1px solid rgba(72, 176, 247, 0.3);
  color: var(--white);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

h1,
h2,
h3,
h4 {
  color: var(--white);
  line-height: 1.2;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  margin: 1rem 0 1.5rem;
  text-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.2rem 0 0.2rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-weight: 700;
  animation: float 14s ease-in-out infinite;
}

.hero-pill:nth-child(2) {
  animation-duration: 16s;
  animation-delay: 0.4s;
}

.hero-pill:nth-child(3) {
  animation-duration: 18s;
  animation-delay: 0.8s;
}

.hero-pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.9), rgba(72, 176, 247, 0.9));
  box-shadow: 0 0 0 6px rgba(200, 16, 46, 0.18);
}

.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  filter: blur(6px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
  transition-delay: calc(var(--reveal-index, 0) * 50ms);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.glow-card {
  position: relative;
  padding: 2.5rem;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-soft);
}

.glow-card:hover {
  transform: translateY(-4px);
  border-color: rgba(72, 176, 247, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(200, 16, 46, 0.18), transparent 35%);
  opacity: 0.8;
  pointer-events: none;
}

.glow-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(72, 176, 247, 0.12), rgba(200, 16, 46, 0.1));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}

.glow-card:hover::after {
  opacity: 0.3;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.section {
  margin: 6rem 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(circle at 30% 20%, rgba(72, 176, 247, 0.08), transparent 40%);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

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

.section header {
  position: sticky;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading p {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  color: var(--text);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
}

.stat-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.stat-card p {
  color: var(--muted);
}

.list {
  display: grid;
  gap: 1rem;
}

.timeline {
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  padding-left: 1rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(200, 16, 46, 0.35), rgba(72, 176, 247, 0.35));
  opacity: 0.9;
}

.timeline .item {
  position: relative;
  padding: 1rem 1rem 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline .item::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 1.15rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 6px rgba(200, 16, 46, 0.18);
}

.cta {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

footer {
  position: relative;
  margin-top: 6rem;
  padding: 5rem 0 3rem;
  background: radial-gradient(circle at 18% 20%, rgba(200, 16, 46, 0.1), transparent 40%),
    radial-gradient(circle at 82% 10%, rgba(72, 176, 247, 0.12), transparent 35%),
    linear-gradient(135deg, rgba(10, 18, 36, 0.85), rgba(7, 12, 25, 0.95));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

footer::before,
footer::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.6;
}

footer::before {
  width: 260px;
  height: 260px;
  background: rgba(200, 16, 46, 0.18);
  top: -60px;
  left: -30px;
}

footer::after {
  width: 320px;
  height: 320px;
  background: rgba(72, 176, 247, 0.18);
  bottom: -120px;
  right: -40px;
}

footer .wrap {
  position: relative;
  z-index: 1;
}

.footer-cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.footer-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.footer-cta h3 {
  margin: 0 0 0.4rem;
}

.footer-cta p {
  color: var(--muted);
}

.footer-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(auto-fit, minmax(180px, 1fr));
  gap: 3rem;
  margin-top: 1.75rem;
}

.footer-brand .brand {
  align-items: flex-start;
}

.footer-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.75rem;
  margin-bottom: 0.55rem;
}

.footer-note {
  color: var(--muted);
  font-weight: 700;
}

.footer-copy {
  color: var(--text);
  max-width: 460px;
  margin-top: 0.75rem;
}

.footer-nav {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.footer-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.footer-tags span {
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 700;
}

.highlight {
  color: var(--accent);
}

.section-hero {
  padding: 3rem 0 2rem;
}

.section-hero p {
  color: var(--muted);
  max-width: 840px;
}

.list-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.15);
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.contact-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(72, 176, 247, 0.35);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.form-shell {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: start;
  margin-top: 1rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.contact-side {
  display: grid;
  gap: 1rem;
}

.map-card {
  display: grid;
  gap: 0.75rem;
}

.map-frame {
  position: relative;
  width: 100%;
  min-height: 260px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: 700;
  color: var(--text);
}

.field small {
  color: var(--muted);
}

.input {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: rgba(72, 176, 247, 0.5);
  box-shadow: 0 0 0 4px rgba(72, 176, 247, 0.15);
}

.input.textarea {
  min-height: 140px;
  resize: vertical;
}

.input.has-error {
  border-color: rgba(200, 16, 46, 0.6);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

select.input {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.75rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, var(--text) 50%, transparent 50%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08));
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%, 100% 0;
  background-size: 8px 8px, 8px 8px, 44px 100%;
  background-repeat: no-repeat;
}

select.input option {
  background: #0d1528;
  color: var(--text);
}

.field-error {
  color: var(--accent);
  font-weight: 700;
  min-height: 18px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.form-status {
  font-weight: 700;
  color: var(--muted);
}

.form-success {
  color: #6de0a3;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.25rem;
}

.event-card {
  display: grid;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.event-card:hover {
  transform: translateY(-3px);
  border-color: rgba(72, 176, 247, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(72, 176, 247, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.event-card:hover::after {
  opacity: 0.5;
}

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

.event-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.14);
  font-weight: 700;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.person-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.person-card:hover {
  transform: translateY(-4px);
  border-color: rgba(72, 176, 247, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.person-role {
  color: var(--muted);
  font-weight: 700;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(72, 176, 247, 0.12);
  border: 1px solid rgba(72, 176, 247, 0.3);
  color: var(--text);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.alert::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.alert:hover::after {
  opacity: 0.35;
}

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

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.02);
  }

  100% {
    opacity: 0.7;
    transform: scale(0.98);
  }
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(12px, -10px, 0);
  }
}

@keyframes pan {
  0% {
    background-position: 0% 50%, 0% 0%, 0 0, 0 0;
  }

  100% {
    background-position: 100% 50%, 100% 100%, 120px 120px, 120px 120px;
  }
}

@keyframes beam {
  0% {
    transform: translateX(-10%) rotate(-6deg);
    opacity: 0.5;
  }

  50% {
    transform: translateX(6%) rotate(-6deg);
    opacity: 0.9;
  }

  100% {
    transform: translateX(-12%) rotate(-6deg);
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {

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

@media (max-width: 840px) {
  nav ul {
    display: none;
  }

  nav ul.open {
    position: absolute;
    top: 68px;
    right: 1.5rem;
    flex-direction: column;
    background: rgba(7, 12, 25, 0.95);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .section {
    margin: 4rem 0;
  }

  .hero {
    padding: 4rem 0 2rem;
    gap: 2rem;
  }

  footer {
    margin-top: 4rem;
    padding: 3rem 0 2rem;
  }
}

@media (max-width: 640px) {
  .navbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
  }

  .nav-actions .btn,
  .cta .btn,
  .footer-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .form-shell,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cta,
  .footer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-actions {
    justify-content: flex-start;
  }
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.page-shell {
  padding-top: 1rem;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  border-radius: 20px;
  padding: 1.5rem;
  background: radial-gradient(circle at 30% 20%, rgba(200, 16, 46, 0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(72, 176, 247, 0.2), transparent 35%),
    linear-gradient(135deg, rgba(15, 43, 100, 0.65), rgba(7, 12, 25, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  transform: perspective(1200px) rotateX(var(--tiltY, 0deg)) rotateY(var(--tiltX, 0deg));
  transition: transform 0.6s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  backdrop-filter: blur(4px);
}

.hero-visual .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.7;
  animation: float 18s ease-in-out infinite;
}

.hero-visual .orb.one {
  width: 180px;
  height: 180px;
  background: rgba(200, 16, 46, 0.6);
  top: -40px;
  left: -30px;
}

.hero-visual .orb.two {
  width: 220px;
  height: 220px;
  background: rgba(72, 176, 247, 0.5);
  bottom: -60px;
  right: -30px;
  animation-duration: 22s;
}

.hero-visual .layer {
  position: absolute;
  inset: 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  animation: pulse 16s ease-in-out infinite;
}

.hero-visual .detail {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  backdrop-filter: blur(6px);
  font-weight: 700;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), transparent 45%);
  opacity: 0.4;
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.hero-visual:hover {
  border-color: rgba(72, 176, 247, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

.hero-visual>* {
  position: relative;
  z-index: 1;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table-container {
  width: 100%;
  overflow-x: auto;
}

.table-container .table {
  min-width: 520px;
}

.table th,
.table td {
  text-align: left;
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

small {
  color: var(--muted);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.media-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.media-card figure {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.media-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.5s ease;
}

.media-card figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(7, 12, 25, 0.7);
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.media-card p {
  padding: 1rem 1.1rem 1.2rem;
  color: var(--muted);
}

.media-card:hover {
  transform: translateY(-6px);
  border-color: rgba(72, 176, 247, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

@media (max-width: 720px) {
  .footer-cta {
    text-align: left;
  }

  .footer-actions {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
