/* ── JamesBiss.com — Victorian Editorial Dark ─────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=IM+Fell+English:ital@0;1&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --ink:        #1a1410;
  --paper:      #f5f0e8;
  --aged:       #e8dfc8;
  --scarlet:    #8b1a1a;
  --gold:       #c9963c;
  --gold-light: #e8c068;
  --smoke:      #3d3530;
  --ash:        #6b5f54;
  --cream:      #faf6ee;
  --fog:        rgba(26,20,16,0.85);
  --border:     #7a6b5a;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Crimson Text', Georgia, serif;
  background-color: var(--ink);
  color: var(--paper);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.display-serif { font-family: 'IM Fell English', Georgia, serif; }

/* ── NAVIGATION ─────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26,20,16,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: 'Crimson Text', serif;
  font-size: 0.95rem;
  color: var(--aged);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

/* Language toggle */
.lang-toggle {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--ash);
  padding: 0.2rem 0.55rem;
  font-family: 'Crimson Text', serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active, .lang-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,150,60,0.08);
}

/* Mobile menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--aged);
  transition: all 0.3s;
}

/* ── HERO ────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 60%, rgba(139,26,26,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,150,60,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-portrait {
  position: relative;
  overflow: hidden;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: sepia(30%) contrast(1.05) brightness(0.88);
  display: block;
}

.hero-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--ink) 100%),
              linear-gradient(to bottom, var(--ink) 0%, transparent 8%, transparent 85%, var(--ink) 100%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 5rem 6rem 3rem;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: 'Crimson Text', serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--paper);
  margin-bottom: 0.5rem;
}

.hero-name em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ash);
  margin-bottom: 2.5rem;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.hero-intro {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--aged);
  max-width: 440px;
  margin-bottom: 3rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--scarlet);
  color: var(--paper);
  border: 1px solid var(--scarlet);
}

.btn-primary:hover {
  background: #a01f1f;
  border-color: #a01f1f;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: rgba(201,150,60,0.1);
  transform: translateY(-1px);
}

/* Distinct "Order A Copy!" call-to-action — emerald, set apart from the scarlet/gold palette */
.btn-order {
  background: #1f7a55;
  color: var(--paper);
  border: 1px solid #2e9b6e;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(31,122,85,0.35);
}

.btn-order:hover {
  background: #259066;
  border-color: #36b582;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(31,122,85,0.5);
}

/* ── DECORATIVE RULE ─────────────────────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.ornament-line { flex: 1; height: 1px; background: var(--border); }
.ornament-diamond {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ── SECTION CONTAINER ───────────────────────────────────────────────── */
section { padding: 6rem 2rem; }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Crimson Text', serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
  max-width: 80px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  color: var(--paper);
  line-height: 1.2;
}

/* ── BIO SECTION ─────────────────────────────────────────────────────── */
#bio {
  background: var(--smoke);
  position: relative;
  overflow: hidden;
}

#bio::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,26,26,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.bio-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 5rem;
  align-items: start;
}

.bio-sidebar {
  position: sticky;
  top: 80px;
}

.bio-sidebar .portrait-frame {
  position: relative;
  border: 1px solid var(--border);
}

.bio-sidebar .portrait-frame img {
  width: 100%;
  display: block;
  filter: sepia(20%) contrast(1.05);
}

.bio-sidebar .portrait-frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(201,150,60,0.3);
  pointer-events: none;
  z-index: 1;
}

.portrait-caption {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ash);
  text-align: center;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: rgba(26,20,16,0.4);
}

.bio-text p {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--aged);
  margin-bottom: 1.5rem;
}

.bio-text p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  float: left;
  line-height: 0.8;
  margin: 0.05em 0.12em 0 0;
  color: var(--gold);
}

.bio-text .pull-quote {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--gold-light);
  border-left: 3px solid var(--scarlet);
  padding: 0.5rem 1.5rem;
  margin: 2rem 0;
}

/* ── WORKS SECTION ───────────────────────────────────────────────────── */
#works {
  background: var(--ink);
  position: relative;
}

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

.work-card {
  background: var(--smoke);
  padding: 2.5rem;
  border: 1px solid transparent;
  position: relative;
  transition: all 0.3s;
  overflow: hidden;
}

.work-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--scarlet);
  transition: width 0.4s;
}

.work-card:hover { border-color: var(--border); }
.work-card:hover::before { width: 100%; }

.work-card .work-year {
  font-family: 'Crimson Text', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.work-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--paper);
  line-height: 1.3;
}

.work-card p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ash);
}

.work-card .work-tag {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: 'Crimson Text', serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--border);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
}

/* ── STUDY IN SCARLET / FEATURED SECTION ───────────────────────────── */
#scarlet {
  background: linear-gradient(135deg, #1a0a0a 0%, var(--smoke) 50%, #1a0a0a 100%);
  position: relative;
  overflow: hidden;
}

#scarlet::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(139,26,26,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.scarlet-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: center;
}

.scarlet-book {
  position: relative;
}

.scarlet-book img {
  width: 100%;
  max-width: 380px;
  display: block;
  box-shadow: -20px 20px 60px rgba(0,0,0,0.6), 8px -8px 30px rgba(139,26,26,0.2);
  transform: perspective(800px) rotateY(4deg);
  transition: transform 0.4s;
}

.scarlet-book:hover img {
  transform: perspective(800px) rotateY(0deg);
}

.scarlet-content .section-title { color: var(--scarlet); }
.scarlet-content .section-title span { color: var(--paper); }

.scarlet-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--aged);
  margin-bottom: 1.25rem;
}

.scarlet-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.detail-item {
  background: rgba(26,20,16,0.5);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

.detail-item .detail-label {
  font-family: 'Crimson Text', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.detail-item .detail-value {
  font-size: 1rem;
  color: var(--paper);
  line-height: 1.4;
}

/* ── HOLMES CHAT ─────────────────────────────────────────────────────── */
#holmes {
  background: var(--smoke);
  position: relative;
  overflow: hidden;
}

#holmes::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.holmes-container {
  max-width: 800px;
  margin: 0 auto;
}

.holmes-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.holmes-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(26,20,16,0.6);
  border: 1px solid var(--border);
  padding: 0.6rem 1.5rem;
  margin-bottom: 1.5rem;
  font-family: 'Crimson Text', serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--ash);
}

.holmes-badge .emoji { font-size: 1.2rem; }

.chat-window {
  background: rgba(26,20,16,0.7);
  border: 1px solid var(--border);
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  scroll-behavior: smooth;
}

.chat-window::-webkit-scrollbar { width: 4px; }
.chat-window::-webkit-scrollbar-track { background: transparent; }
.chat-window::-webkit-scrollbar-thumb { background: var(--border); }

.chat-message {
  margin-bottom: 1.25rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-message.user { text-align: right; }

.chat-message .bubble {
  display: inline-block;
  max-width: 85%;
  padding: 0.75rem 1.1rem;
  font-size: 1rem;
  line-height: 1.6;
  font-family: 'Crimson Text', serif;
}

.chat-message.user .bubble {
  background: rgba(139,26,26,0.25);
  border: 1px solid rgba(139,26,26,0.4);
  color: var(--aged);
  text-align: left;
}

.chat-message.holmes .bubble {
  background: rgba(201,150,60,0.06);
  border: 1px solid rgba(201,150,60,0.2);
  color: var(--paper);
  text-align: left;
  font-style: italic;
}

.holmes-sender {
  font-family: 'Crimson Text', serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.chat-form {
  display: flex;
  gap: 0.75rem;
}

.chat-input {
  flex: 1;
  background: rgba(26,20,16,0.8);
  border: 1px solid var(--border);
  color: var(--paper);
  padding: 0.8rem 1.2rem;
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input::placeholder { color: var(--ash); font-style: italic; }
.chat-input:focus { border-color: var(--gold); }

.chat-submit {
  background: var(--scarlet);
  color: var(--paper);
  border: none;
  padding: 0.8rem 1.5rem;
  font-family: 'Crimson Text', serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.chat-submit:hover { background: #a01f1f; }
.chat-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.typing-indicator {
  display: none;
  padding: 0.5rem 0;
}

.typing-indicator.visible { display: flex; align-items: center; gap: 6px; }

.typing-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: typingDot 1.2s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.2; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* ── FOOTER ──────────────────────────────────────────────────────────── */
footer {
  background: #0e0b08;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  color: var(--ash);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 2rem;
}

.footer-links a {
  font-family: 'Crimson Text', serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copy {
  font-family: 'Crimson Text', serif;
  font-size: 0.85rem;
  color: #4a4040;
}

/* ── PAGE: WORKS ─────────────────────────────────────────────────────── */
.page-hero {
  padding: 8rem 2rem 4rem;
  background: var(--ink);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero-sub {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ash);
  margin-top: 0.75rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── PAGE: FINDING A STUDY IN SCARLET ────────────────────────────────── */
.scarlet-page-hero {
  padding: 8rem 2rem 4rem;
  background: linear-gradient(135deg, #1a0a0a, var(--smoke));
  text-align: center;
  border-bottom: 1px solid var(--border);
}

/* ── PAGE: ABOUT JAMES BISS ─────────────────────────────────────────── */
.about-james-hero {
  position: relative;
  min-height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.about-james-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: sepia(20%) contrast(1.05) brightness(0.7);
}

.about-james-hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 2rem 4rem;
  width: 100%;
  background: linear-gradient(to top, rgba(26,20,16,0.95) 0%, rgba(26,20,16,0.6) 50%, transparent 100%);
}

.about-james-text p {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--aged);
  margin-bottom: 1.5rem;
}

.about-james-text p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  float: left;
  line-height: 0.8;
  margin: 0.05em 0.12em 0 0;
  color: var(--gold);
}

.about-james-text .ornament {
  margin: 2.5rem 0;
}

.about-james-text .pull-quote {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--gold-light);
  border-left: 3px solid var(--scarlet);
  padding: 0.5rem 1.5rem;
  margin: 2.5rem 0 0;
}

/* ── HIP PROJECT SECTION ─────────────────────────────────────────────── */
.hip-section {
  background: linear-gradient(135deg, #1a0a0a 0%, var(--smoke) 50%, #1a0a0a 100%);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hip-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(201,150,60,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hip-link {
  display: block;
  text-decoration: none;
  transition: transform 0.3s;
}

.hip-link:hover {
  transform: translateY(-3px);
}

.hip-image-frame {
  max-width: 720px;
  margin: 0 auto 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 20px rgba(201,150,60,0.1);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.3s;
}

.hip-link:hover .hip-image-frame {
  box-shadow: 0 25px 70px rgba(0,0,0,0.6), 0 0 30px rgba(201,150,60,0.2);
}

.hip-image-frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(201,150,60,0.25);
  pointer-events: none;
  z-index: 1;
}

.hip-image-frame img {
  width: 100%;
  display: block;
  filter: sepia(10%) contrast(1.05) brightness(0.95);
  transition: filter 0.3s;
}

.hip-link:hover .hip-image-frame img {
  filter: sepia(5%) contrast(1.08) brightness(1.0);
}

.hip-cta-text {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  line-height: 1.5;
  transition: color 0.3s;
}

.hip-link:hover .hip-cta-text {
  color: var(--gold);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }

  .hero-portrait {
    height: 50vh;
    min-height: 300px;
  }

  .hero-portrait::after {
    background: linear-gradient(to bottom, transparent 50%, var(--ink) 100%);
  }

  .hero-content {
    padding: 3rem 1.5rem 4rem;
  }

  .bio-grid { grid-template-columns: 1fr; gap: 2rem; }
  .bio-sidebar { position: static; }

  .scarlet-grid { grid-template-columns: 1fr; }
  .scarlet-book img { max-width: 280px; margin: 0 auto; }

  .works-grid { grid-template-columns: 1fr; }
  .scarlet-detail { grid-template-columns: 1fr; }

  .about-james-hero { min-height: 45vh; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: rgba(26,20,16,0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .lang-toggle { border-left: none; padding-left: 0; }
}

/* V3.1 hide engine badge */
.holmes-badge{display:none !important;}

/* ── FLOATING ASK HOLMES BUBBLE ────────────────────────────────────── */
.holmes-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 15px rgba(201,150,60,0.3);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fabPulse 3s ease-in-out infinite;
}

.holmes-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(0,0,0,0.6), 0 0 25px rgba(201,150,60,0.45);
  animation: none;
}

.holmes-fab:active {
  transform: scale(0.95);
}

.holmes-fab-emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.holmes-fab.hidden {
  display: none;
}

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 15px rgba(201,150,60,0.3); }
  50% { box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 25px rgba(201,150,60,0.5); }
}
