:root {
  --color-bg: #0b0f14;
  --color-bg-alt: #121821;
  --color-surface: #151d28;
  --color-surface-soft: #1b2431;
  --color-text: #f4f6f8;
  --color-muted: #c5cbd3;
  --color-border: #374050;
  --color-signature: #d7b135;
  --color-signature-strong: #8f7319;
  --focus-ring: #7ab6ff;
  --container: 74rem;
  --radius: 0.9rem;
  --shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.65;
  color: var(--color-text);
  background:
    radial-gradient(circle at 14% 12%, rgba(215, 177, 53, 0.1), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(215, 177, 53, 0.08), transparent 35%),
    linear-gradient(180deg, var(--color-bg) 0%, #090d12 100%);
  opacity: 1;
  transition: opacity 0.28s ease;
}

body.page-leave {
  opacity: 0;
}

a {
  color: #f8d76b;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #ffe38d;
}

a:focus-visible,
button:focus-visible {
  outline: 0.18rem solid var(--focus-ring);
  outline-offset: 0.2rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: #000;
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: 0.3rem;
  z-index: 2000;
}

.skip-link:focus {
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: blur(10px);
  background: rgba(8, 12, 18, 0.86);
  border-bottom: 1px solid rgba(215, 177, 53, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.9rem 0;
}

.brand {
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.4rem;
}

.nav-list a {
  display: inline-block;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-list a:hover {
  background: rgba(215, 177, 53, 0.14);
  border-color: rgba(215, 177, 53, 0.5);
  transform: translateY(-1px);
}

.nav-list a[aria-current="page"] {
  background: var(--color-signature);
  color: #111;
}

.main-content {
  padding-block: 1.5rem 3rem;
}

.hero {
  background: linear-gradient(160deg, rgba(27, 36, 49, 0.96), rgba(18, 24, 33, 0.96));
  border: 1px solid rgba(215, 177, 53, 0.35);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.hero-home {
  margin-bottom: 1.6rem;
}

.hero-layout {
  display: grid;
  gap: 1.1rem;
}

.hero-image-wrap {
  margin: 0;
  border-radius: 0.95rem;
  overflow: hidden;
  border: 1px solid rgba(215, 177, 53, 0.35);
  background: #0e131b;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  color: var(--color-text);
}

.keyword {
  color: #ffd93d;
  font-weight: 700;
}

.eyebrow {
  color: var(--color-signature);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0;
  text-transform: uppercase;
}

.hero-tagline {
  color: #fff;
  font-size: 1.06rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: 1.85rem;
  margin: 0.45rem 0 0.8rem;
}

.main-content > section > h1 {
  text-align: center;
}

h2 {
  color: #f8d76b;
  margin: 1.8rem 0 0.9rem;
  text-align: center;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-links {
  margin-top: 1.2rem;
}

.button {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #f0cf5d, #d7b135);
  color: #111;
  box-shadow: 0 0.5rem 1.2rem rgba(215, 177, 53, 0.28);
}

.button-primary:hover {
  background: linear-gradient(135deg, #f6db81, #dcb94a);
  color: #111;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(215, 177, 53, 0.65);
  color: #fff;
}

.button-secondary:hover {
  background: rgba(215, 177, 53, 0.18);
  color: #fff;
}

.stats-grid {
  display: grid;
  gap: 1rem;
}

.stat-card {
  border: 1px solid rgba(215, 177, 53, 0.5);
  border-radius: 1.8rem;
  padding: 1.5rem 1rem;
  background:
    linear-gradient(120deg, rgba(215, 177, 53, 0.12), rgba(13, 18, 24, 0.55)),
    rgba(10, 14, 20, 0.9);
  text-align: center;
  box-shadow: 0 0.65rem 2rem rgba(0, 0, 0, 0.35);
}

.stat-number {
  margin: 0 0 0.5rem;
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
  color: #ffd93d;
  text-shadow: 0 0 1.4rem rgba(215, 177, 53, 0.3);
}

.stat-card h3 {
  margin: 0.45rem 0 0.3rem;
  color: #fff;
}

.stat-card p {
  margin: 0;
  color: #e4e7ec;
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: linear-gradient(165deg, var(--color-surface), var(--color-surface-soft));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
}

.about-grid {
  display: grid;
  gap: 1rem;
}

.about-grid .card {
  border-color: rgba(215, 177, 53, 0.45);
  box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.25);
}

.about-grid h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  height: 2rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(122, 182, 255, 0.75);
  background:
    linear-gradient(160deg, rgba(22, 35, 51, 0.95), rgba(15, 24, 35, 0.95)),
    rgba(122, 182, 255, 0.12);
  color: transparent;
  font-size: 0;
  font-weight: 400;
  flex-shrink: 0;
  box-shadow: inset 0 0 0.7rem rgba(122, 182, 255, 0.18), 0 0 0.6rem rgba(122, 182, 255, 0.15);
}

.topic-icon::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #a8d0ff;
  box-shadow: 0 0 0.45rem rgba(122, 182, 255, 0.8);
}

.resume-timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: 0.8rem;
}

.resume-timeline::before {
  content: "";
  position: absolute;
  left: 0.57rem;
  top: 0.1rem;
  bottom: 0.1rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(215, 177, 53, 0.75), rgba(215, 177, 53, 0.2));
}

.timeline-item {
  position: relative;
  padding-left: 1.7rem;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.js-enabled .resume-timeline .timeline-item {
  filter: saturate(0.88);
}

.js-enabled .resume-timeline .timeline-item.timeline-focus {
  transform: translateX(4px);
  filter: saturate(1.08);
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 1rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid rgba(215, 177, 53, 0.9);
  background: #0f141c;
  box-shadow: 0 0 0 0.28rem rgba(215, 177, 53, 0.18);
}

.js-enabled .resume-timeline .timeline-item.timeline-focus .timeline-dot {
  box-shadow: 0 0 0 0.35rem rgba(215, 177, 53, 0.24), 0 0 1rem rgba(215, 177, 53, 0.45);
}

.timeline-card {
  background: linear-gradient(165deg, #151d28, #1a2330);
  border: 1px solid rgba(215, 177, 53, 0.42);
  border-radius: 0.85rem;
  padding: 1rem;
}

.timeline-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.role-title {
  color: #f3f7fc;
}

.company-name {
  color: #ffd93d;
  font-weight: 700;
}

.timeline-meta {
  margin: 0.2rem 0 0.7rem;
  color: #d3dae2;
  font-size: 0.95rem;
}

.timeline-card ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.job-highlights {
  margin: 0.15rem 0 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.achievement-group {
  margin: 0.2rem 0 0.55rem;
  color: #9ec9ff;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.highlight-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(215, 177, 53, 0.45);
  background: rgba(215, 177, 53, 0.12);
  color: #f8e39a;
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.contact-option {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-option:hover,
.contact-option:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(215, 177, 53, 0.75);
  box-shadow: 0 0.7rem 1.4rem rgba(0, 0, 0, 0.3);
}

.contact-option p {
  color: #dce4ee;
}

.contact-page .quick-links {
  left: 1rem;
  right: auto;
}

body.modal-open {
  overflow: hidden;
}

.calendly-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: rgba(5, 9, 14, 0.7);
  padding: 1rem;
}

.calendly-modal[hidden] {
  display: none !important;
}

.calendly-modal-panel {
  width: min(100%, 62rem);
  height: min(88vh, 50rem);
  border-radius: 0.9rem;
  border: 1px solid rgba(215, 177, 53, 0.4);
  background: #0f141c;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.5);
}

.calendly-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(215, 177, 53, 0.25);
}

.calendly-modal-header h2 {
  margin: 0;
  font-size: 1rem;
  color: #f8d76b;
  text-align: left;
}

.calendly-modal-close {
  appearance: none;
  border: 1px solid rgba(215, 177, 53, 0.55);
  background: rgba(215, 177, 53, 0.16);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.calendly-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

.year-indicator {
  position: fixed;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1450;
  min-width: 9rem;
  padding: 0.7rem 0.82rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(122, 182, 255, 0.75);
  background: rgba(8, 14, 22, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 0.9rem 1.8rem rgba(0, 0, 0, 0.45);
}

.year-indicator-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b9d8ff;
}

.year-indicator-value {
  margin: 0.15rem 0 0;
  color: #ffd93d;
  font-size: 1.12rem;
  font-weight: 700;
  text-shadow: 0 0 0.45rem rgba(255, 217, 61, 0.55);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.year-indicator-value.is-updating {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 0 0.5rem rgba(215, 177, 53, 0.65));
}

.back-to-top {
  position: fixed;
  right: 5rem;
  bottom: 1.2rem;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  border: 1px solid rgba(220, 182, 47, 0.85);
  background: linear-gradient(165deg, #1e1a0d, #12100a);
  color: #dcb62f;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1500;
}

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

.back-to-top:hover,
.back-to-top:focus-visible {
  box-shadow: 0 0 0.9rem rgba(220, 182, 47, 0.45);
}

.resume-stats {
  margin-top: 1.35rem;
}

.section-lead {
  margin: 0.15rem 0 1rem;
  color: #d6dde5;
  max-width: 64ch;
  text-align: center;
  margin-inline: auto;
}

.logo-ticker {
  overflow: hidden;
  border: 1px solid rgba(215, 177, 53, 0.38);
  border-radius: 0.9rem;
  background: linear-gradient(165deg, #121923, #1a2431);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.logo-ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

.logo-ticker:hover .logo-ticker-track,
.logo-ticker:focus-within .logo-ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  width: 13rem;
  min-height: 6.9rem;
  padding: 0.65rem;
  border-right: 1px solid rgba(215, 177, 53, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ticker-item img {
  max-width: 100%;
  max-height: 4rem;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(0.95) contrast(1.08);
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.media-carousel {
  border: 1px solid rgba(215, 177, 53, 0.38);
  border-radius: 0.9rem;
  background: linear-gradient(165deg, #121923, #1a2431);
  overflow: hidden;
}

.carousel-track {
  position: relative;
  min-height: 14rem;
  background: rgba(7, 10, 14, 0.55);
}

.carousel-slide {
  margin: 0;
  display: none;
}

.carousel-slide.is-active {
  display: block;
  animation: slide-fade 0.42s ease;
}

@keyframes slide-fade {
  from {
    opacity: 0.2;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: clamp(9rem, 26vw, 16rem);
  object-fit: contain;
  background: #0b1118;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem 0.8rem;
  border-top: 1px solid rgba(215, 177, 53, 0.2);
}

.carousel-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  border: 0;
  background: rgba(215, 177, 53, 0.35);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: #ffd93d;
  box-shadow: 0 0 0.55rem rgba(255, 217, 61, 0.7);
}

.logo-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.logo-card {
  background: linear-gradient(165deg, #121923, #1a2431);
  border: 1px solid rgba(215, 177, 53, 0.35);
  border-radius: 0.8rem;
  min-height: 5.5rem;
  padding: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-card img {
  max-width: 100%;
  max-height: 2.8rem;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(0.95) contrast(1.08);
}

.media-grid {
  display: grid;
  gap: 1rem;
}

.media-card {
  margin: 0;
  background: linear-gradient(165deg, #121923, #1a2431);
  border: 1px solid rgba(215, 177, 53, 0.38);
  border-radius: 0.9rem;
  overflow: hidden;
}

.media-card img {
  display: block;
  width: 100%;
  height: 14rem;
  object-fit: cover;
}

.media-card figcaption {
  padding: 0.6rem 0.75rem 0.75rem;
  color: #e4e8ed;
  font-size: 0.94rem;
}

.list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding-left: 1.15rem;
}

.contact-list {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.1rem;
}

.site-footer {
  border-top: 1px solid rgba(215, 177, 53, 0.25);
  background: rgba(7, 10, 14, 0.9);
}

.site-footer p {
  margin: 0;
  color: var(--color-muted);
}

.footer-inner-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  padding: 1rem 0;
  text-align: center;
}

.footer-inner-legal p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}

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

.footer-legal-nav::before {
  content: "·";
  color: var(--color-muted);
  pointer-events: none;
}

.footer-legal-nav a {
  color: var(--color-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.18s ease;
}

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

.legal-section {
  margin-top: 1.5rem;
}

.legal-section .card ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.3rem;
}

.legal-section .card h3 {
  color: #f8d76b;
  margin: 0.8rem 0 0.3rem;
}

.legal-section .card h3:first-child {
  margin-top: 0;
}

.quick-links {
  display: none !important;
}

.quick-links-toggle {
  width: 2.7rem;
  height: 2.7rem;
  border: 2px solid rgba(215, 177, 53, 0.8);
  border-radius: 50%;
  background: linear-gradient(135deg, #f0cf5d, #d7b135);
  color: #111;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0.55rem 1.2rem rgba(0, 0, 0, 0.35);
}

.quick-links-panel {
  margin-top: 0.5rem;
  background: #121821;
  border: 1px solid rgba(215, 177, 53, 0.4);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.25rem;
  min-width: 9.5rem;
}

.quick-links-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-links-panel a {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  padding: 0.55rem 0.7rem;
  border-radius: 0.35rem;
}

.quick-links-panel a:hover,
.quick-links-panel a:focus-visible {
  background: rgba(215, 177, 53, 0.2);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.resume-page .reveal,
.js-enabled .resume-page .reveal,
.js-enabled .resume-page .reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

.no-reveal .reveal,
.js-enabled .no-reveal .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (min-width: 48rem) {
  h1 {
    font-size: 2.25rem;
  }

  .hero {
    padding: 1.5rem;
  }

  .hero-layout {
    grid-template-columns: minmax(16rem, 24rem) 1fr;
    align-items: center;
  }

  .hero-image-wrap {
    height: 100%;
    min-height: 28rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resume-timeline::before {
    left: 0.62rem;
  }

  .logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticker-item {
    width: 14.5rem;
  }

  .list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 63.99rem) {
  .year-indicator {
    display: none;
  }
}

/* ── Contact page 2-card layout ── */
.contact-cards-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contact-cards-2 .contact-option {
  flex: 1 1 14rem;
  max-width: 22rem;
}

.contact-icon {
  font-style: normal;
  margin-right: 0.35rem;
}

/* ══════════════════════════════════════════
   Ari's AI Assistant — Chatbot Widget
   ══════════════════════════════════════════ */

.chatbot-widget {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 1600;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

/* Bubble toggle */
.chatbot-bubble {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  border: 2px solid rgba(215, 177, 53, 0.85);
  background: linear-gradient(135deg, #f0cf5d, #c9a428);
  color: #111;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.5rem 1.4rem rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(215, 177, 53, 0.5);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  flex-shrink: 0;
}

.chatbot-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.5), 0 0 0 0.35rem rgba(215, 177, 53, 0.18);
}

.chatbot-bubble:focus-visible {
  outline: 0.18rem solid var(--focus-ring);
  outline-offset: 0.2rem;
}

.chatbot-bubble-close {
  display: none;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.chatbot-bubble.is-open .chatbot-bubble-icon {
  display: none;
}

.chatbot-bubble.is-open .chatbot-bubble-close {
  display: block;
}

/* Panel */
.chatbot-panel {
  width: min(22rem, calc(100vw - 2.4rem));
  max-height: min(32rem, calc(100vh - 6rem));
  display: none;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid rgba(215, 177, 53, 0.4);
  background: linear-gradient(165deg, #121923, #1a2431);
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.55);
  overflow: hidden;
  order: -1;
}

.chatbot-panel.is-open {
  display: flex;
}

/* Header */
.chatbot-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  background: rgba(215, 177, 53, 0.1);
  border-bottom: 1px solid rgba(215, 177, 53, 0.25);
  flex-shrink: 0;
}

.chatbot-avatar {
  font-size: 1.5rem;
  line-height: 1;
}

.chatbot-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.chatbot-header-text strong {
  color: #f8d76b;
  font-size: 0.9rem;
}

.chatbot-header-close {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(215, 177, 53, 0.35);
  border-radius: 50%;
  color: rgba(215, 177, 53, 0.8);
  width: 1.8rem;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease;
}

.chatbot-header-close:hover,
.chatbot-header-close:focus-visible {
  background: rgba(215, 177, 53, 0.15);
  color: #f8d76b;
}

.chatbot-status {
  font-size: 0.72rem;
  color: #7ddd9a;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.chatbot-status::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #7ddd9a;
  box-shadow: 0 0 0.4rem rgba(125, 221, 154, 0.8);
}

/* Messages */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(215, 177, 53, 0.3) transparent;
}

.chatbot-messages::-webkit-scrollbar {
  width: 0.3rem;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(215, 177, 53, 0.35);
  border-radius: 999px;
}

.chatbot-message {
  max-width: 88%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.chatbot-message-bot {
  background: rgba(215, 177, 53, 0.1);
  border: 1px solid rgba(215, 177, 53, 0.25);
  color: var(--color-text);
  border-bottom-left-radius: 0.25rem;
  align-self: flex-start;
}

.chatbot-message-user {
  background: linear-gradient(135deg, rgba(215, 177, 53, 0.25), rgba(215, 177, 53, 0.15));
  border: 1px solid rgba(215, 177, 53, 0.5);
  color: #fff;
  border-bottom-right-radius: 0.25rem;
  align-self: flex-end;
  text-align: right;
}

/* Typing indicator */
.chatbot-typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.85rem;
  min-height: 2.2rem;
}

.chatbot-typing-indicator span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(215, 177, 53, 0.7);
  animation: chatbot-bounce 1.1s ease-in-out infinite;
}

.chatbot-typing-indicator span:nth-child(2) {
  animation-delay: 0.18s;
}

.chatbot-typing-indicator span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes chatbot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%           { transform: translateY(-0.3rem); opacity: 1; }
}

/* Link row (contact buttons) */
.chatbot-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-self: flex-start;
  max-width: 88%;
}

.chatbot-link-btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(215, 177, 53, 0.6);
  background: rgba(215, 177, 53, 0.12);
  color: #f8d76b;
  transition: background 0.18s ease, transform 0.18s ease;
}

.chatbot-link-btn:hover {
  background: rgba(215, 177, 53, 0.25);
  transform: translateY(-1px);
  color: #fff;
}

/* Topic buttons */
.chatbot-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem 0.75rem;
  border-top: 1px solid rgba(215, 177, 53, 0.2);
  background: rgba(8, 12, 18, 0.4);
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.chatbot-topic-btn {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(215, 177, 53, 0.5);
  background: rgba(215, 177, 53, 0.1);
  color: #f8e39a;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.chatbot-topic-btn:hover {
  background: rgba(215, 177, 53, 0.22);
  border-color: rgba(215, 177, 53, 0.8);
  color: #fff;
  transform: translateY(-1px);
}

.chatbot-topic-btn:focus-visible {
  outline: 0.18rem solid var(--focus-ring);
  outline-offset: 0.15rem;
}

/* Mobile: push panel above bubble, full-width friendlier */
@media (max-width: 30rem) {
  .chatbot-widget {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .chatbot-panel {
    max-height: min(28rem, calc(100vh - 5.5rem));
  }

  .back-to-top {
    right: 4.5rem;
    bottom: 0.75rem;
  }
}

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

  body,
  .button,
  .nav-list a,
  .reveal {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .logo-ticker-track {
    animation: none;
  }

  .chatbot-typing-indicator span {
    animation: none;
    opacity: 0.7;
  }

  .chatbot-bubble,
  .chatbot-topic-btn,
  .chatbot-link-btn {
    transition: none;
  }
}

/* ── Mobile hamburger navigation ─────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(215, 177, 53, 0.5);
  border-radius: 0.4rem;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  color: var(--color-signature);
  font-size: 1.3rem;
  line-height: 1;
  transition: background 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(215, 177, 53, 0.12);
}

@media (max-width: 47.9rem) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    /* Full-width drawer below header */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 12, 18, 0.97);
    border-bottom: 1px solid rgba(215, 177, 53, 0.25);
    backdrop-filter: blur(10px);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
  }

  .site-nav.is-open {
    max-height: 20rem;
    padding: 0.5rem 0 0.75rem;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0 1rem;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    text-align: left;
  }

  .header-inner {
    position: relative;
  }
}
