/* Distinctive warm editorial dark theme — avoids generic blue/purple AI styling. */
body:not(.light) {
  --d-bg: #121310;
  --d-deep: #0d0e0c;
  --d-panel: #1b1d18;
  --d-panel-2: #22251f;
  --d-ink: #f2eadf;
  --d-text: #d0c5b7;
  --d-muted: #948d82;
  --d-line: rgba(232, 216, 191, 0.13);
  --d-copper: #d97847;
  --d-copper-2: #ee9a63;
  --d-sage: #91ab8b;
  --d-sand: #e5cfad;
  background: var(--d-bg) !important;
  color: var(--d-ink) !important;
}
body:not(.light)::before {
  opacity: 1 !important;
  background:
    radial-gradient(
      circle at 86% 12%,
      rgba(145, 171, 139, 0.11),
      transparent 31rem
    ),
    radial-gradient(
      circle at 8% 48%,
      rgba(217, 120, 71, 0.09),
      transparent 27rem
    ),
    radial-gradient(
      circle at 76% 88%,
      rgba(204, 174, 126, 0.06),
      transparent 26rem
    ),
    var(--d-bg) !important;
}
body:not(.light) .showcase-ambient {
  background: linear-gradient(
    155deg,
    #11120f 0%,
    #171813 48%,
    #10110e 100%
  ) !important;
}
body:not(.light) .showcase-ambient::before {
  background: linear-gradient(135deg, #5f705d, #a55e3e) !important;
  opacity: 0.13 !important;
}
body:not(.light) .showcase-ambient::after {
  background: linear-gradient(135deg, #91734f, #4c6250) !important;
  opacity: 0.11 !important;
}
body:not(.light) .showcase-grid {
  opacity: 0.2 !important;
  background-image:
    linear-gradient(rgba(229, 207, 173, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 207, 173, 0.035) 1px, transparent 1px) !important;
}
body:not(.light) .showcase-codeword,
body:not(.light) .showcase-codeword:nth-child(n) {
  color: rgba(167, 177, 148, 0.07) !important;
}
body:not(.light) nav,
body:not(.light) nav.scrolled {
  background: rgba(20, 21, 18, 0.9) !important;
  border-color: rgba(229, 207, 173, 0.13) !important;
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.34),
    inset 0 1px rgba(255, 255, 255, 0.035) !important;
}
body:not(.light) nav::before {
  background: linear-gradient(
    90deg,
    #9aae8e,
    #d97847,
    #e5cfad,
    #83977b,
    #d97847
  ) !important;
  background-size: 260% 100% !important;
  box-shadow: 0 0 14px rgba(217, 120, 71, 0.28) !important;
}
body:not(.light) nav::after {
  background:
    radial-gradient(
      circle at 12% 0,
      rgba(145, 171, 139, 0.08),
      transparent 32%
    ),
    radial-gradient(
      circle at 88% 100%,
      rgba(217, 120, 71, 0.07),
      transparent 30%
    ) !important;
}
body:not(.light) .logo {
  color: var(--d-ink) !important;
  background: linear-gradient(
    135deg,
    rgba(145, 171, 139, 0.1),
    rgba(217, 120, 71, 0.05)
  ) !important;
  border-color: rgba(229, 207, 173, 0.12) !important;
}
body:not(.light) .logo::after {
  background: var(--d-sage) !important;
  box-shadow: 0 0 14px rgba(145, 171, 139, 0.45) !important;
}
body:not(.light) .nav-links a {
  color: #a9a196 !important;
}
body:not(.light) .nav-links a:hover,
body:not(.light) .nav-links a.active {
  color: var(--d-ink) !important;
  background: linear-gradient(
    135deg,
    rgba(217, 120, 71, 0.13),
    rgba(145, 171, 139, 0.08)
  ) !important;
  border-color: rgba(229, 207, 173, 0.13) !important;
  box-shadow: none !important;
}
body:not(.light) .nav-links a.active::before {
  background: linear-gradient(90deg, var(--d-copper), var(--d-sage)) !important;
  box-shadow: 0 0 8px rgba(217, 120, 71, 0.35) !important;
}
body:not(.light) .theme-toggle,
body:not(.light) .menu-toggle {
  background: #23251f !important;
  border-color: var(--d-line) !important;
  color: var(--d-ink) !important;
}
body:not(.light) .hero-content h1,
body:not(.light) .section-header h2,
body:not(.light) h1,
body:not(.light) h2,
body:not(.light) h3,
body:not(.light) h4,
body:not(.light) strong {
  color: var(--d-ink) !important;
}
body:not(.light) .hero-content h1 span {
  background: linear-gradient(
    90deg,
    #d66f43 0%,
    #eea15f 30%,
    #d9bd83 52%,
    #9bb18f 76%,
    #cf7b53 100%
  ) !important;
  background-size: 180% 100% !important;
}
body:not(.light) .hero-content p,
body:not(.light) .section-header p,
body:not(.light) .small-note,
body:not(.light) p,
body:not(.light) li {
  color: var(--d-text) !important;
}
body:not(.light) .hero-label,
body:not(.light) .section-label {
  color: #e8b184 !important;
  background: rgba(217, 120, 71, 0.09) !important;
  border-color: rgba(217, 120, 71, 0.25) !important;
}
body:not(.light) .hero-label i,
body:not(.light) .section-label i {
  color: var(--d-copper-2) !important;
}
body:not(.light) .hero-stats,
body:not(.light) .stat {
  border-color: var(--d-line) !important;
}
body:not(.light) .stat-number {
  color: var(--d-sand) !important;
}
body:not(.light) .stat:nth-child(2) .stat-number {
  color: #9fb69a !important;
}
body:not(.light) .stat:nth-child(3) .stat-number {
  color: #d99670 !important;
}
body:not(.light) .stat:nth-child(4) .stat-number {
  color: #c9b38e !important;
}
body:not(.light) .stat-label {
  color: var(--d-muted) !important;
}
body:not(.light) #about,
body:not(.light) #skills,
body:not(.light) #experience,
body:not(.light) #certifications {
  background: linear-gradient(
    180deg,
    rgba(28, 30, 25, 0.66),
    rgba(16, 17, 14, 0.84)
  ) !important;
  border-block: 1px solid rgba(229, 207, 173, 0.08) !important;
}
body:not(.light)
  :is(
    .highlight-card,
    .skill-card,
    .project-card,
    .experience-card,
    .education-item,
    .cert-item,
    .form-card,
    .opportunity-card,
    .quick-contact-shell,
    .game-shell,
    .memory-shell
  ) {
  background: linear-gradient(
    145deg,
    rgba(30, 32, 27, 0.97),
    rgba(20, 21, 18, 0.98)
  ) !important;
  border-color: var(--d-line) !important;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.18),
    inset 0 1px rgba(255, 255, 255, 0.025) !important;
}
body:not(.light)
  :is(
    .highlight-card,
    .skill-card,
    .project-card,
    .experience-card,
    .education-item,
    .cert-item
  ):hover {
  border-color: rgba(217, 120, 71, 0.36) !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.25) !important;
}
body:not(.light)
  :is(
    .highlight-card h3,
    .skill-card h3,
    .project-card h3,
    .experience-card h3,
    .education-item h3,
    .cert-content strong
  ) {
  color: var(--d-ink) !important;
}
body:not(.light)
  :is(
    .highlight-card p,
    .project-card ul,
    .project-card li,
    .experience-card p,
    .experience-card li,
    .cert-content,
    .education-meta time
  ) {
  color: #b9afa2 !important;
}
body:not(.light) .highlight-card h3 i,
body:not(.light) .skill-card h3 i,
body:not(.light) .cert-item > i {
  color: var(--d-copper-2) !important;
}
body:not(.light) .skill-card li,
body:not(.light) .skill-name,
body:not(.light) .experience-tags span,
body:not(.light) .education-result b {
  color: #d8cec0 !important;
  background: rgba(229, 207, 173, 0.055) !important;
  border-color: rgba(229, 207, 173, 0.12) !important;
}
body:not(.light) .skill-name:hover {
  color: #151611 !important;
  background: var(--d-sage) !important;
  border-color: var(--d-sage) !important;
}
body:not(.light) .project-number {
  color: #817a70 !important;
}
body:not(.light) .project-tech,
body:not(.light) .project-link {
  color: #dfa071 !important;
}
body:not(.light) .project-card li::before {
  color: var(--d-sage) !important;
}
body:not(.light) .opportunity-card::before {
  background: radial-gradient(
    circle,
    rgba(145, 171, 139, 0.16),
    transparent 68%
  ) !important;
}
body:not(.light) .opportunity-status {
  color: #a8c5a3 !important;
}
body:not(.light) .opportunity-status span {
  background: #8eb487 !important;
  box-shadow:
    0 0 0 5px rgba(142, 180, 135, 0.11),
    0 0 14px rgba(142, 180, 135, 0.45) !important;
}
body:not(.light) .opportunity-kicker {
  color: #d89a70 !important;
}
body:not(.light) .opportunity-copy h3 {
  color: var(--d-ink) !important;
}
body:not(.light) .opportunity-copy > p:not(.opportunity-kicker) {
  color: #bdb3a6 !important;
}
body:not(.light) .opportunity-roles span {
  color: #d7cdbf !important;
  background: rgba(229, 207, 173, 0.05) !important;
  border-color: rgba(229, 207, 173, 0.12) !important;
}
body:not(.light) .opportunity-action,
body:not(.light) .btn-primary {
  color: #171610 !important;
  background: linear-gradient(135deg, #e5cfad, #d99a68) !important;
  border-color: #d9b486 !important;
}
body:not(.light) .btn-secondary {
  color: var(--d-ink) !important;
  background: rgba(229, 207, 173, 0.035) !important;
  border-color: var(--d-line) !important;
}
body:not(.light) .btn-warning {
  color: #171610 !important;
  background: var(--d-sage) !important;
  border-color: var(--d-sage) !important;
}
body:not(.light) .education-timeline-v2::before {
  background: linear-gradient(
    180deg,
    #9daf91,
    #d97847 48%,
    #d4b57e,
    #80977e
  ) !important;
  box-shadow: 0 0 18px rgba(217, 120, 71, 0.16) !important;
}
body:not(.light) .education-timeline-v2 .education-item {
  background: linear-gradient(
    135deg,
    rgba(31, 33, 28, 0.98),
    rgba(18, 20, 17, 0.98)
  ) !important;
  border-color: rgba(229, 207, 173, 0.13) !important;
}
body:not(.light) .education-timeline-v2 .education-item::before {
  background: #171814 !important;
  box-shadow: 0 0 0 7px #121310 !important;
}
body:not(.light) .education-icon {
  background: rgba(229, 207, 173, 0.055) !important;
  border-color: rgba(229, 207, 173, 0.12) !important;
}
body:not(.light) .education-timeline-v2 .education-school {
  color: #d6ccbe !important;
}
body:not(.light) .education-school span,
body:not(.light) .education-meta time {
  color: #968f84 !important;
}
body:not(.light) .form-group label {
  color: #c8bdae !important;
}
body:not(.light) .form-group input,
body:not(.light) .form-group textarea {
  color: var(--d-ink) !important;
  background: #191b17 !important;
  border-color: var(--d-line) !important;
}
body:not(.light) .form-group input:focus,
body:not(.light) .form-group textarea:focus {
  border-color: rgba(217, 120, 71, 0.6) !important;
  box-shadow: 0 0 0 4px rgba(217, 120, 71, 0.08) !important;
}
body:not(.light) .status {
  color: #a59d91 !important;
  background: rgba(229, 207, 173, 0.04) !important;
  border-color: var(--d-line) !important;
}
body:not(.light) footer,
body:not(.light) footer#contact {
  background: #0b0c0a !important;
  border-top-color: var(--d-line) !important;
}
body:not(.light) .footer-content {
  background: linear-gradient(145deg, #1b1d18, #131410) !important;
  border-color: var(--d-line) !important;
}
body:not(.light) .footer-content p {
  color: #a99f92 !important;
}
body:not(.light) .social-link {
  color: var(--d-ink) !important;
  background: #22241f !important;
  border-color: var(--d-line) !important;
}
body:not(.light) .backtop {
  color: #171610 !important;
  background: var(--d-sage) !important;
  border-color: transparent !important;
}
body:not(.light) .ai-panel {
  color: var(--d-ink) !important;
  background: #181a16 !important;
  border-color: var(--d-line) !important;
}
body:not(.light) .ai-head,
body:not(.light) .ai-form {
  border-color: var(--d-line) !important;
}
body:not(.light) .ai-head span {
  color: #9d9589 !important;
}
body:not(.light) .ai-close {
  color: var(--d-ink) !important;
  background: #252721 !important;
}
body:not(.light) .ai-messages {
  background: #121310 !important;
}
body:not(.light) .ai-msg.bot {
  color: #ded4c6 !important;
  background: #22241f !important;
  border-color: var(--d-line) !important;
}
body:not(.light) .ai-msg.user {
  color: #171610 !important;
  background: #d89a70 !important;
}
body:not(.light) .ai-input {
  color: var(--d-ink) !important;
  background: #22241f !important;
  border-color: var(--d-line) !important;
}
body:not(.light) .ai-send {
  color: #171610 !important;
  background: var(--d-sage) !important;
}
body:not(.light) .hire-me-fixed {
  color: #171610 !important;
  background: linear-gradient(135deg, #e3c99f, #d78151) !important;
  border-color: rgba(229, 207, 173, 0.3) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28) !important;
}
@media (max-width: 900px) {
  body:not(.light) .nav-links {
    background: rgba(20, 21, 18, 0.98) !important;
    border-color: var(--d-line) !important;
  }
  body:not(.light) .nav-links a {
    color: #b4aa9d !important;
  }
}
/* Preserve the full hero name as gradient text. */
body:not(.light) .hero-content h1 span {
  display: block !important;
  background: linear-gradient(
    90deg,
    #d66f43 0%,
    #eea15f 30%,
    #d9bd83 52%,
    #9bb18f 76%,
    #cf7b53 100%
  ) !important;
  background-size: 180% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
/* Remove legacy AI-blue accents: editorial sections + a separate arcade game palette. */
body:not(.light) {
  --section-wine: #a94f64;
  --section-ochre: #d6a547;
  --section-jade: #4f9b78;
  --game-jade: #20b486;
  --game-citron: #d4df62;
  --game-coral: #e4775d;
}
body:not(.light) .highlight-card::after,
body:not(.light) .skill-card::after,
body:not(.light) .project-card::after,
body:not(.light) .cert-item::after {
  background: radial-gradient(
    280px circle at var(--sc-x, 50%) var(--sc-y, 0%),
    rgba(169, 79, 100, 0.15),
    transparent 56%
  ) !important;
}
body:not(.light) .highlight-icon,
body:not(.light) .skill-icon {
  color: var(--section-jade) !important;
  background: linear-gradient(
    145deg,
    rgba(79, 155, 120, 0.17),
    rgba(214, 165, 71, 0.07)
  ) !important;
  border-color: rgba(79, 155, 120, 0.27) !important;
}
body:not(.light) .highlight-card:nth-child(2n) .highlight-icon,
body:not(.light) .skill-card:nth-child(2n) .skill-icon {
  color: #d59aab !important;
  background: linear-gradient(
    145deg,
    rgba(169, 79, 100, 0.18),
    rgba(214, 165, 71, 0.07)
  ) !important;
  border-color: rgba(169, 79, 100, 0.28) !important;
}
body:not(.light) .project-card::before {
  background: linear-gradient(
    90deg,
    var(--section-wine),
    var(--section-ochre),
    var(--section-jade)
  ) !important;
}
body:not(.light) .timeline::before {
  background: linear-gradient(
    var(--section-jade),
    var(--section-ochre),
    var(--section-wine)
  ) !important;
}
body:not(.light) .timeline-dot {
  background: #f3eadc !important;
  border-color: var(--section-jade) !important;
  box-shadow: 0 0 22px rgba(79, 155, 120, 0.42) !important;
}
body:not(.light) .education-timeline-v2 .education-item {
  --edu-accent: var(--section-jade) !important;
}
body:not(.light) .education-timeline-v2 .education-item:nth-child(2) {
  --edu-accent: var(--section-ochre) !important;
}
body:not(.light) .education-timeline-v2 .education-item:nth-child(3) {
  --edu-accent: #b2788d !important;
}
body:not(.light) .education-timeline-v2 .education-item:nth-child(4) {
  --edu-accent: #c97354 !important;
}
body:not(.light) :is(.game-shell, .memory-shell) {
  background:
    radial-gradient(circle at 8% 0, rgba(32, 180, 134, 0.13), transparent 34%),
    radial-gradient(
      circle at 96% 100%,
      rgba(212, 223, 98, 0.08),
      transparent 30%
    ),
    linear-gradient(145deg, #18231d, #101713) !important;
  border-color: rgba(71, 159, 124, 0.28) !important;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.035) !important;
}
body:not(.light) .game-arena {
  border-color: rgba(32, 180, 134, 0.3) !important;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(32, 180, 134, 0.13),
      transparent 48%
    ),
    linear-gradient(rgba(212, 223, 98, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 223, 98, 0.025) 1px, transparent 1px),
    #0c1511 !important;
}
body:not(.light) .game-arena::before {
  background: linear-gradient(
    transparent 48%,
    rgba(212, 223, 98, 0.05) 50%,
    transparent 52%
  ) !important;
  background-size: 100% 9px !important;
}
body:not(.light) .game-arena::after {
  color: rgba(32, 180, 134, 0.42) !important;
}
body:not(.light) .game-ready i {
  color: var(--game-jade) !important;
  filter: drop-shadow(0 0 12px rgba(32, 180, 134, 0.45)) !important;
}
body:not(.light) .game-start {
  background: linear-gradient(
    135deg,
    var(--game-citron),
    var(--game-jade)
  ) !important;
  color: #101713 !important;
  box-shadow: 0 13px 32px rgba(32, 180, 134, 0.19) !important;
}
body:not(.light) .memory-icon {
  background: linear-gradient(145deg, #277b61, #789849) !important;
  border-color: rgba(212, 223, 98, 0.25) !important;
  box-shadow: 0 14px 34px rgba(32, 180, 134, 0.2) !important;
}
body:not(.light) .memory-head h3 {
  background: linear-gradient(90deg, #f2eadf, #d4df62) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
body:not(.light) .memory-back {
  color: var(--game-jade) !important;
  background:
    radial-gradient(
      circle at 25% 15%,
      rgba(32, 180, 134, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at 80% 90%,
      rgba(228, 119, 93, 0.11),
      transparent 38%
    ),
    linear-gradient(145deg, #1b2b23, #101a15) !important;
  border-color: rgba(32, 180, 134, 0.26) !important;
}
body:not(.light) .memory-card:hover .memory-back {
  border-color: rgba(212, 223, 98, 0.48) !important;
}
body:not(.light) .memory-back::before {
  color: var(--game-citron) !important;
  text-shadow: 0 0 18px rgba(212, 223, 98, 0.4) !important;
}
body:not(.light) .memory-front {
  background:
    radial-gradient(
      circle at 50% 10%,
      color-mix(in srgb, var(--memory-color), transparent 78%),
      transparent 48%
    ),
    linear-gradient(145deg, #1c2c24, #101914) !important;
}
body:not(.light) .memory-progress span {
  background: linear-gradient(
    90deg,
    var(--game-jade),
    var(--game-citron),
    var(--game-coral)
  ) !important;
  box-shadow: 0 0 16px rgba(32, 180, 134, 0.38) !important;
}
body:not(.light) .memory-reset {
  color: #e4edb1 !important;
  background: linear-gradient(
    135deg,
    rgba(32, 180, 134, 0.18),
    rgba(212, 223, 98, 0.08)
  ) !important;
  border-color: rgba(32, 180, 134, 0.34) !important;
}
body:not(.light) .memory-reset:hover {
  color: #101713 !important;
  background: linear-gradient(
    135deg,
    var(--game-jade),
    var(--game-citron)
  ) !important;
  box-shadow: 0 12px 28px rgba(32, 180, 134, 0.2) !important;
}
/* Open editorial footer — intentionally not boxed. */
footer#contact {
  position: relative !important;
  margin: 0 !important;
  padding: clamp(5rem, 8vw, 8rem) clamp(1.25rem, 7vw, 8rem)
    calc(2.2rem + var(--safe-bottom)) !important;
  overflow: hidden !important;
}
footer#contact::before {
  left: clamp(1.25rem, 7vw, 8rem) !important;
  right: clamp(1.25rem, 7vw, 8rem) !important;
  background: linear-gradient(
    90deg,
    var(--d-copper),
    var(--d-sand),
    var(--d-sage),
    transparent
  ) !important;
  box-shadow: none !important;
}
footer#contact::after {
  width: 28rem !important;
  height: 28rem !important;
  left: auto !important;
  right: -12rem !important;
  bottom: -18rem !important;
  transform: none !important;
  background: radial-gradient(
    circle,
    rgba(145, 171, 139, 0.1),
    transparent 70%
  ) !important;
}
.footer-content {
  width: min(100%, 1480px) !important;
  max-width: 1480px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr) !important;
  gap: clamp(3rem, 8vw, 9rem) !important;
  text-align: left !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.footer-brand,
.footer-connect {
  position: relative;
  z-index: 1;
}
.footer-eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: var(--d-copper-2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-title {
  margin: 0 0 1.25rem !important;
  font-size: clamp(2.5rem, 5vw, 5.5rem) !important;
  line-height: 0.97 !important;
  letter-spacing: -0.065em !important;
}
.footer-title span {
  color: var(--d-sage) !important;
}
.footer-brand > p {
  max-width: 650px !important;
  color: var(--d-text) !important;
  font-size: clamp(0.95rem, 1.3vw, 1.12rem) !important;
}
.footer-connect {
  align-self: end;
}
.footer-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 0 1rem;
  color: var(--d-ink);
  border-bottom: 1px solid var(--d-line);
  font-size: clamp(0.9rem, 1.25vw, 1.08rem);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition:
    color 0.25s,
    border-color 0.25s;
}
.footer-email:hover {
  color: var(--d-copper-2);
  border-color: var(--d-copper);
}
.footer-email i {
  font-size: 0.78rem;
}
.footer-connect > p {
  margin: 1rem 0 1.4rem !important;
  color: var(--d-muted) !important;
}
.footer-connect > p i {
  margin-right: 0.45rem;
  color: var(--d-sage);
}
.footer-content .social-links {
  justify-content: flex-start !important;
  margin: 0 !important;
  gap: 0.65rem !important;
}
.footer-content .social-link {
  width: 46px !important;
  height: 46px !important;
  border-radius: 13px !important;
}
.footer-content .social-link:hover {
  color: #171610 !important;
  background: var(--d-sand) !important;
  border-color: var(--d-sand) !important;
}
.footer-meta {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2rem, 5vw, 5rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--d-line);
}
.footer-meta p {
  margin: 0 !important;
  color: var(--d-muted) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.025em;
}
body.light footer#contact {
  background: linear-gradient(180deg, #f6f1e9, #ece5da) !important;
  border-color: rgba(72, 61, 48, 0.13) !important;
}
body.light footer#contact::before {
  background: linear-gradient(
    90deg,
    #b85f3c,
    #d2a85e,
    #6f9473,
    transparent
  ) !important;
}
body.light footer#contact::after {
  background: radial-gradient(
    circle,
    rgba(111, 148, 115, 0.12),
    transparent 70%
  ) !important;
}
body.light .footer-content {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.light .footer-eyebrow {
  color: #a94f2c;
}
.light .footer-title {
  color: #24231f !important;
}
.light .footer-title span {
  color: #527859 !important;
}
.light .footer-brand > p,
.light .footer-connect > p,
.light .footer-meta p {
  color: #6c655c !important;
}
.light .footer-email {
  color: #292722;
  border-color: rgba(72, 61, 48, 0.18);
}
.light .footer-email:hover {
  color: #a94f2c;
  border-color: #a94f2c;
}
.light .footer-connect > p i {
  color: #527859;
}
.light .footer-content .social-link {
  color: #292722 !important;
  background: rgba(255, 255, 255, 0.48) !important;
  border-color: rgba(72, 61, 48, 0.15) !important;
}
.light .footer-content .social-link:hover {
  color: #fff !important;
  background: #527859 !important;
  border-color: #527859 !important;
}
.light .footer-meta {
  border-color: rgba(72, 61, 48, 0.15);
}
@media (max-width: 760px) {
  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .footer-connect {
    align-self: auto;
  }
  .footer-meta {
    flex-direction: column;
    gap: 0.45rem !important;
    margin-top: 1rem;
  }
  .footer-title {
    font-size: clamp(2.45rem, 12vw, 4.1rem) !important;
  }
  .footer-email {
    font-size: 0.83rem;
  }
  .footer-content .social-link {
    width: 44px !important;
    height: 44px !important;
  }
}
/* Footer compactness correction: outranks legacy boxed-footer specificity. */
body:not(.light) footer#contact {
  padding: clamp(3.25rem, 5vw, 5rem) clamp(1.25rem, 7vw, 8rem)
    calc(1.8rem + var(--safe-bottom)) !important;
  background: linear-gradient(180deg, #0d0e0c, #0a0b09) !important;
}
body:not(.light) .footer-content {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body:not(.light) .footer-title {
  font-size: clamp(2.35rem, 4vw, 4.35rem) !important;
  line-height: 0.96 !important;
}
body:not(.light) .footer-brand > p {
  max-width: 590px !important;
}
body:not(.light) .footer-meta {
  margin-top: clamp(1.5rem, 3vw, 3rem) !important;
}
@media (max-width: 760px) {
  body:not(.light) footer#contact {
    padding-top: 3rem !important;
  }
  .footer-content {
    gap: 2rem !important;
  }
  .footer-title {
    font-size: clamp(2.35rem, 11vw, 3.6rem) !important;
  }
  .footer-meta {
    margin-top: 0.5rem !important;
  }
}

/* Compact NIBM mark inside the existing Academic Journey icon slot. */
.education-icon.education-icon-nibm,
.education-icon.education-icon-ssc {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(229, 207, 173, 0.22) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16) !important;
}
.nibm-education-logo,
.ssc-education-logo {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 7px;
}
@media (max-width: 700px) {
  .nibm-education-logo,
  .ssc-education-logo {
    width: 30px;
    height: 30px;
    border-radius: 6px;
  }
}

/* Preserve the original subtle hero background circle. */
.hero::before {
  display: block !important;
}
