/* ===== Boesherz Goebel — Speaker One-Pager v2 ===== */
@import url('https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --orange: #E8553A;
  --orange-deep: #C8421F;
  --orange-soft: #F5C5B8;
  --orange-tint: #FCEDE7;
  --teal: #214B49;
  --teal-deep: #1A3D3B;
  --teal-accent: #3BA89A;
  --teal-accent-soft: #5FBFB3;
  --paper: #EAE8E5;
  --paper-warm: #E2DFD9;
  --ink: #1A2A2A;
  --ink-soft: #4A5A5A;
}

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

html, body {
  background: #2a2a2a;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.viewport {
  min-height: 100vh;
  padding: 32px 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* A4: 210mm × 297mm */
.page {
  width: 210mm;
  min-height: 297mm;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  padding-left: 6mm;
}

/* Body section gets a clean white surface; hero stays warm off-white */
.body {
  background: #FFFFFF;
}

/* Brand bar — left orange + tiny right teal accent */
.page .brand-bar-left {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 6mm;
  background: #E8553A;
  background: var(--orange);
  z-index: 5;
}
.page .brand-bar-right {
  position: absolute;
  bottom: 0; right: 0;
  width: 1.5mm;
  height: 60mm;
  background: #3BA89A;
  background: var(--teal-accent);
  z-index: 5;
  opacity: 0.85;
}

/* Paper grain texture overlay */
.page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
  opacity: 0.55;
}

.page > * { position: relative; z-index: 2; }

/* ===== HEADER ===== */
/* Header gets clean white surface; rest of page keeps warm paper */
.header {
  background: #FFFFFF;
  padding: 8mm 14mm 8mm 10mm;
  min-height: 26mm;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9pt;
  letter-spacing: 0.32em;
  color: var(--teal);
  text-transform: uppercase;
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  margin: 0 8px 0 4px;
  vertical-align: 2px;
}

.wordmark {
  font-family: 'Hind', sans-serif;
  font-weight: 600;
  font-size: 17pt;
  color: var(--orange);
  letter-spacing: -0.01em;
  line-height: 1;
}
.wordmark .pipe { color: var(--orange); margin: 0 0.1em; font-weight: 300; }
.wordmark-sub {
  font-family: 'Hind', sans-serif;
  font-weight: 500;
  font-size: 7.5pt;
  letter-spacing: 0.32em;
  color: var(--teal);
  margin-top: 4px;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  padding: 6mm 14mm 6mm 10mm;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42mm;
  gap: 10mm;
  align-items: end;
}

.hero-name {
  font-family: 'Hind', sans-serif;
  font-weight: 600;
  font-size: 42pt;
  line-height: 0.95;
  color: var(--teal);
  letter-spacing: 0.04em;
}
.hero-name .period { color: var(--orange); }

.hero-role {
  font-family: 'Hind', sans-serif;
  font-weight: 500;
  font-size: 13pt;
  color: var(--orange);
  margin-top: 10px;
  letter-spacing: -0.005em;
}

.hero-tag {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 11.5pt;
  color: var(--teal);
  margin-top: 8px;
  font-style: italic;
}

.hero-firm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8pt;
  color: var(--teal);
  margin-top: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-firm strong { color: var(--orange); font-weight: 500; }

/* Photo */
.photo-frame {
  width: 42mm;
  height: 52mm;
  background: var(--teal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(33, 75, 73, 0.28);
}
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 55% 18%;
  filter: contrast(1.03) saturate(1.05);
}
/* Decorative corner mark */
.photo-frame::after {
  content: '';
  position: absolute;
  top: -4mm; right: -4mm;
  width: 12mm; height: 12mm;
  background: var(--orange);
  transform: rotate(45deg);
  z-index: 2;
}
.photo-frame::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 30%;
  background: linear-gradient(to top, rgba(33,75,73,0.45), transparent);
  z-index: 1;
}

/* ===== TEAL BAND — At a Glance ===== */
.band {
  background: var(--teal);
  color: #fff;
  padding: 9mm 14mm 9mm 10mm;
  position: relative;
  overflow: hidden;
}
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/pattern.png');
  background-size: 200mm auto;
  background-repeat: repeat;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: screen;
}
.band > * { position: relative; z-index: 2; }

.band-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8mm;
  align-items: start;
}

.band-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9pt;
  letter-spacing: 0.32em;
  color: var(--teal-accent-soft);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: stretch;
  border-right: 1px solid rgba(95, 191, 179, 0.3);
  padding-right: 6mm;
}

.band-bio {
  font-family: 'Inter', sans-serif;
  font-size: 10.5pt;
  line-height: 1.55;
  color: #F4F1EC;
  font-weight: 300;
  max-width: 165mm;
}
.band-bio strong { color: #fff; font-weight: 500; }
.band-bio .accent { color: var(--orange); font-weight: 500; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 7px;
  margin-top: 12px;
}
.chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5pt;
  letter-spacing: 0.04em;
  color: var(--teal);
  background: var(--teal-accent-soft);
  padding: 4px 11px;
  border-radius: 100px;
  font-weight: 500;
  text-transform: uppercase;
}
.chip.outline {
  background: transparent;
  border: 1px solid rgba(95,191,179,0.5);
  color: var(--teal-accent-soft);
}
.chip.solid-orange {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* ===== BODY ===== */
.body {
  flex: 1;
  padding: 8mm 14mm 6mm 10mm;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8mm 9mm;
}

.section { display: flex; flex-direction: column; gap: 5px; }
.section.full { grid-column: 1 / -1; }

.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5pt;
  letter-spacing: 0.32em;
  color: var(--orange);
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.section-eyebrow .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  font-size: 7pt;
  font-weight: 600;
  letter-spacing: 0;
}
.section-eyebrow .selection-hint {
  font-family: 'Inter', sans-serif;
  font-size: 7pt;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  text-transform: none;
}
.section-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(232,85,58,0.45), transparent);
}

/* Practice Areas — icon cards */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.practice-card {
  background: #fff;
  border: 1px solid rgba(33, 75, 73, 0.10);
  padding: 10px 12px;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 11px;
  row-gap: 2px;
  align-items: center;
  position: relative;
  min-height: 22mm;
  overflow: hidden;
}
.practice-card .pc-icon {
  width: 38px; height: 38px;
  grid-row: 1 / span 2;
  align-self: center;
  position: relative;
  z-index: 2;
}
.practice-card .pc-icon img,
.practice-card .pc-icon svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.practice-card .pc-title {
  font-family: 'Hind', sans-serif;
  font-weight: 600;
  font-size: 11pt;
  color: var(--teal);
  letter-spacing: -0.005em;
  line-height: 1.1;
  align-self: end;
  position: relative;
  z-index: 2;
}
.practice-card .pc-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 8pt;
  color: var(--ink-soft);
  line-height: 1.3;
  align-self: start;
  position: relative;
  z-index: 2;
}
/* Featured = orange tint */
.practice-card.featured {
  background: var(--orange-tint);
  border-color: var(--orange-soft);
}
.practice-card.featured .pc-title { color: var(--orange-deep); }
.practice-card.featured .pc-desc { color: var(--ink); }
/* Teal accent — reserved for special highlight; not used in default arrangement */
.practice-card.teal {
  background: rgba(95, 191, 179, 0.12);
  border-color: rgba(59, 168, 154, 0.35);
}
.practice-card.teal .pc-title { color: var(--teal); }
.practice-card.teal .pc-desc { color: var(--ink); }

/* Inline SVG icons — keep stroke style consistent */
.pc-svg { width: 100%; height: 100%; }
.pc-svg .stroke { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.pc-svg .accent { fill: var(--teal-accent); stroke: none; }
.pc-svg .stroke-thin { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* Topics */
.topics-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.topic {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 3px 0;
  border-bottom: 1px dotted rgba(33, 75, 73, 0.18);
}
.topic:last-child { border-bottom: none; }
.topic-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8pt;
  color: var(--orange);
  font-weight: 500;
}
.topic-text {
  font-family: 'Hind', sans-serif;
  font-size: 10pt;
  font-weight: 500;
  color: var(--teal);
  line-height: 1.3;
}

/* Talks */
.entry-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.entry {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dotted rgba(33, 75, 73, 0.18);
  align-items: baseline;
}
.entry:last-child { border-bottom: none; }
.entry-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5pt;
  color: var(--teal-accent);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.entry-text {
  font-family: 'Inter', sans-serif;
  font-size: 9.5pt;
  color: var(--ink);
  line-height: 1.35;
}
.entry-text strong { color: var(--teal); font-weight: 600; }
.entry .upcoming {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 6.5pt;
  background: var(--orange);
  color: #fff;
  padding: 1px 6px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  margin-left: 4px;
  vertical-align: 1px;
  font-weight: 500;
}

/* Publications cards */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pub {
  background: #EAE8E5;
  background: var(--paper);
  border-left: 3px solid #E8553A;
  border-left-color: var(--orange);
  padding: 7px 10px;
  border-radius: 0 3px 3px 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.pub > div { min-width: 0; }
.pub-title, .pub-cite { overflow-wrap: break-word; word-wrap: break-word; }
.pub .pub-icon {
  width: 18px; height: 18px;
  margin-top: 1px;
}
.pub .pub-icon img { width: 100%; height: 100%; object-fit: contain; }
.pub-title {
  font-family: 'Hind', sans-serif;
  font-weight: 600;
  font-size: 9.5pt;
  color: var(--teal);
  line-height: 1.25;
}
.pub-cite {
  font-family: 'Inter', sans-serif;
  font-size: 8pt;
  color: var(--ink-soft);
  margin-top: 2px;
  font-style: italic;
}

/* Recognition */
.recog-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.recog {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 9pt;
  color: var(--ink);
  line-height: 1.3;
  align-items: baseline;
}
.recog::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--teal-accent);
  border-radius: 50%;
  display: block;
  margin-top: 5px;
  justify-self: center;
}
.recog strong { color: var(--teal); font-weight: 600; }

/* Header icons next to section title */
.section-icon {
  width: 14px; height: 14px;
  display: inline-block;
}
.section-icon img { width: 100%; height: 100%; object-fit: contain; }

/* ===== CONTACT FOOTER ===== */
.footer {
  background: var(--teal);
  color: #fff;
  padding: 5mm 14mm 6mm 10mm;
  position: relative;
  margin-top: auto;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/pattern.png');
  background-size: 200mm auto;
  background-repeat: repeat;
  opacity: 0.32;
  pointer-events: none;
  mix-blend-mode: screen;
}
.footer > * { position: relative; z-index: 2; }

.footer-compact {
  display: flex;
  flex-direction: column;
  gap: 4mm;
}
.footer-availability {
  font-family: 'Hind', sans-serif;
  font-size: 10pt;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.005em;
}
.footer-availability span { color: var(--teal-accent-soft); }
.footer-availability .em {
  color: var(--orange);
  font-weight: 600;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6mm;
  border-top: 1px solid rgba(95, 191, 179, 0.3);
  padding-top: 5mm;
}
.footer-cell-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7pt;
  letter-spacing: 0.32em;
  color: var(--teal-accent-soft);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 500;
}
.footer-cell-value {
  font-family: 'Hind', sans-serif;
  font-size: 8.5pt;
  color: #fff;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
.footer-cell-value.orange { color: var(--orange); }

a.footer-cell-value {
  text-decoration: none;
  display: block;
  transition: color 0.15s ease;
}
a.footer-cell-value:hover { color: var(--orange) !important; }
a.footer-cell-value.orange:hover { color: var(--teal-accent-soft) !important; }

.footer-legal {
  margin-top: 4mm;
  padding-top: 3mm;
  border-top: 1px solid rgba(95, 191, 179, 0.18);
  font-family: 'JetBrains Mono', monospace;
  font-size: 7pt;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: right;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-legal a:hover { color: var(--orange); }

/* ===== MODE TOGGLE (Attorney / Speaker) — top-left ===== */
.header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.mode-toggle-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.mode-toggle {
  display: inline-flex;
  border: 1.5px solid var(--teal);
  border-radius: 4px;
  overflow: hidden;
  background: transparent;
}

/* Tooltip hint */
.mode-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7pt;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--teal-accent);
  padding: 3px 10px;
  border-radius: 3px;
  opacity: 0;
  margin-top: 6px;
  animation: hint-fade 5s ease 2.6s forwards;
  pointer-events: none;
}
@keyframes hint-fade {
  0%   { opacity: 0; transform: translateY(-4px); }
  10%  { opacity: 1; transform: translateY(0); }
  75%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}

/* Slide demo pulse on toggle */
.mode-toggle.demo-pulse {
  box-shadow: 0 0 0 4px rgba(33, 75, 73, 0.18);
  transition: box-shadow 0.3s ease;
}
.mode-toggle:not(.demo-pulse) {
  box-shadow: 0 0 0 0 rgba(33, 75, 73, 0);
  transition: box-shadow 0.4s ease;
}
.mode-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8pt;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: transparent;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1.2;
}
.mode-btn + .mode-btn {
  border-left: 1.5px solid var(--teal);
}
.mode-btn:hover { background: rgba(33, 75, 73, 0.08); }
.mode-btn.active {
  background: var(--teal);
  color: #fff;
}
.mode-btn.active:hover { background: var(--teal-deep); }

/* ===== MODE VISIBILITY ===== */
html.mode-attorney .mode-only-speaker,
html.mode-speaker .mode-only-attorney { display: none; }

/* Print-only / screen-only helpers */
.only-print { display: none; }
@media print {
  .only-print { display: block; }
  .only-screen { display: none !important; }
}

/* ===== SERVICES BLOCK (in teal band) ===== */
.services-block {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(95, 191, 179, 0.3);
}
.services-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5pt;
  letter-spacing: 0.32em;
  color: var(--teal-accent-soft);
  text-transform: uppercase;
  margin-bottom: 7px;
  font-weight: 500;
}
.services-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 7px;
}
.service-chip {
  font-family: 'Hind', sans-serif;
  font-size: 8.5pt;
  font-weight: 500;
  color: #fff;
  background: rgba(232, 85, 58, 0.22);
  border: 1px solid var(--orange);
  padding: 3px 11px;
  border-radius: 100px;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

/* ===== EMPHASIS PER MODE ===== */
html.mode-attorney .speaker-emphasis,
html.mode-speaker .attorney-emphasis {
  opacity: 0.45;
  transition: opacity 0.3s ease;
}
html.mode-attorney .speaker-emphasis .section-eyebrow,
html.mode-speaker .attorney-emphasis .section-eyebrow {
  color: var(--ink-soft);
}
html.mode-attorney .speaker-emphasis .section-eyebrow::after,
html.mode-speaker .attorney-emphasis .section-eyebrow::after {
  background: linear-gradient(to right, rgba(74, 90, 90, 0.3), transparent);
}
/* In dark teal band, dim differently for legibility */
html.mode-speaker .services-block.attorney-emphasis .services-label {
  color: rgba(244, 241, 236, 0.45);
}

/* Language toggle */
.lang-toggle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8pt;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: transparent;
  border: 1.5px solid var(--teal);
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-transform: uppercase;
}
.lang-toggle:hover {
  background: var(--teal);
  color: #fff;
}

/* PDF download button — fixed in viewport, hidden on print */
.pdf-button {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px 11px 16px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: 'Hind', sans-serif;
  font-weight: 600;
  font-size: 11pt;
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(232, 85, 58, 0.35), 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.pdf-button:hover {
  transform: translateY(-1px);
  background: var(--orange-deep);
  box-shadow: 0 10px 28px rgba(232, 85, 58, 0.45), 0 2px 6px rgba(0,0,0,0.18);
}
.pdf-button svg { flex-shrink: 0; }

/* Zoom controls — anchored to the left edge of .page (so they never overlap the PDF button on the right) */
.zoom-controls {
  position: fixed;
  bottom: 24px;
  right: calc(50% + 105mm + 12px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(33, 75, 73, 0.92);
  border-radius: 20px;
  padding: 5px;
  gap: 2px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.tool-btn {
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  color: #fff;
  font-family: 'Hind', sans-serif;
  font-size: 16pt;
  font-weight: 600;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  line-height: 1;
}
.tool-btn:hover { background: rgba(255,255,255,0.15); }
.tool-btn.zoom-reset {
  width: 36px; height: auto;
  padding: 4px 0;
  font-size: 7.5pt;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* ===== ANIMATIONS ===== */

/* B) Practice card hover */
.practice-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.practice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 75, 73, 0.15);
}
.practice-card .pc-svg .stroke,
.practice-card .pc-svg .stroke-thin {
  transition: stroke 0.3s ease;
}
.practice-card .pc-svg .accent {
  transition: fill 0.3s ease;
}
.practice-card:hover .pc-svg .stroke,
.practice-card:hover .pc-svg .stroke-thin {
  stroke: var(--teal-accent);
}
.practice-card:hover .pc-svg .accent {
  fill: var(--orange);
}

/* C) Animated brand bars on load */
@keyframes barSlideDown {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes barSlideUp {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.page .brand-bar-left {
  transform-origin: top;
  animation: barSlideDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.page .brand-bar-right {
  transform-origin: bottom;
  animation: barSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

/* D) Teal band pattern drift */
@keyframes patternDrift {
  from { background-position: 0 0; }
  to { background-position: 200mm 100mm; }
}
.band::before {
  animation: patternDrift 60s linear infinite;
}
.footer::before {
  animation: patternDrift 80s linear infinite reverse;
}

/* E) Photo shine sweep on load */
.photo-frame {
  overflow: hidden;
}
.photo-frame img {
  transition: object-position 0.4s ease-out;
}
@keyframes shineSweep {
  0% { left: -50%; }
  100% { left: 150%; }
}
@keyframes shineRepeat {
  0%, 4% { left: -50%; }
  8%     { left: 150%; }
  8.01%, 100% { left: -50%; opacity: 0; }
}
.photo-frame .shine {
  position: absolute;
  top: 0;
  left: -50%;
  width: 30%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.25) 45%,
    rgba(255,255,255,0.4) 50%,
    rgba(255,255,255,0.25) 55%,
    transparent 70%
  );
  z-index: 3;
  pointer-events: none;
  animation: shineSweep 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both,
             shineRepeat 30s cubic-bezier(0.25, 0.46, 0.45, 0.94) 30s infinite;
}

/* ===== RESPONSIVE ===== */

/* Tablet — page fills viewport */
@media (max-width: 900px) {
  .viewport { padding: 0; }
  .page {
    width: 100%;
    min-height: auto;
    box-shadow: none;
  }
  .zoom-controls { display: none; }
}

/* Mobile */
@media (max-width: 600px) {
  .page { padding-left: 0; }

  /* Brand bar: thin left strip */
  .page .brand-bar-left { width: 4px; }
  .page .brand-bar-right { display: none; }

  /* Header */
  .header {
    padding: 16px 16px 12px;
    min-height: auto;
  }
  .header img { height: 24px !important; }
  .eyebrow { font-size: 7pt; letter-spacing: 0.2em; }
  .mode-btn { font-size: 6.5pt; padding: 3px 7px; letter-spacing: 0.06em; }
  .mode-hint { font-size: 5.5pt; margin-top: 3px; }

  /* Hero: stack photo above text */
  .hero {
    padding: 16px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .photo-frame {
    width: 100%;
    height: 56vw;
    max-height: 260px;
    order: -1;
  }
  .hero-name { font-size: 28pt; }
  .hero-role { font-size: 11pt; }
  .hero-tag { font-size: 10pt; }
  .hero-firm { font-size: 7pt; }

  /* Band */
  .band { padding: 20px 16px; }
  .band-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .band-eyebrow {
    writing-mode: horizontal-tb;
    transform: none;
    border-right: none;
    border-bottom: 1px solid rgba(95, 191, 179, 0.3);
    padding-right: 0;
    padding-bottom: 8px;
    margin-bottom: 12px;
    align-self: auto;
  }
  .band-bio { font-size: 9.5pt; max-width: none; }
  .chips { gap: 5px; }
  .chip { font-size: 6.5pt; padding: 3px 8px; }

  /* Body: single column */
  .body {
    padding: 16px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .section.full { grid-column: 1; }

  /* Practice cards: stack on very small */
  .practice-grid { grid-template-columns: 1fr; gap: 8px; }
  .practice-card { min-height: auto; }

  /* Section headings */
  .section-eyebrow { font-size: 7.5pt; letter-spacing: 0.2em; flex-wrap: wrap; }

  /* Topics & Talks */
  .topic { grid-template-columns: 24px 1fr; gap: 6px; }
  .topic-text { font-size: 9pt; }
  .entry { grid-template-columns: 48px 1fr; gap: 8px; }
  .entry-meta { font-size: 7pt; }
  .entry-text { font-size: 8.5pt; }

  /* Recognition */
  .recog { font-size: 8.5pt; grid-template-columns: 14px 1fr; }

  /* Publications */
  .pub { grid-template-columns: 14px 1fr; gap: 6px; }
  .pub-title { font-size: 8.5pt; }
  .pub-cite { font-size: 7pt; }

  /* Footer */
  .footer { padding: 16px; }
  .footer-compact { gap: 12px; }
  .footer-availability { font-size: 9pt; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 12px;
  }
  .footer-cell-label { font-size: 6pt; }
  .footer-cell-value { font-size: 8pt; white-space: normal; }

  /* PDF button */
  .pdf-button {
    bottom: 16px; right: 16px;
    padding: 9px 14px 9px 12px;
    font-size: 9.5pt;
  }
}

/* Small mobile */
@media (max-width: 380px) {
  .hero-name { font-size: 24pt; }
  .footer-grid { grid-template-columns: 1fr; gap: 10px; }
  .practice-card .pc-title { font-size: 10pt; }
}

/* ===== PRINT ===== */
@page {
  size: A4 portrait;
  margin: 0;
}
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  html, body { background: #fff; }
  .viewport { padding: 0; display: block; }
  .no-print { display: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .shine { display: none !important; }
  .page {
    box-shadow: none;
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    overflow: hidden;
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  .header { padding: 6mm 12mm 6mm 8mm; min-height: 20mm; }
  .hero { padding: 4mm 12mm 4mm 8mm; }
  .band { padding: 6mm 12mm 6mm 8mm; }
  .band-bio { max-width: none; }
  .body { padding: 5mm 12mm 4mm 8mm; gap: 5mm 7mm; }
  .footer { padding: 4mm 12mm 5mm 8mm; }
  .footer-compact { gap: 2mm; }
  .footer-grid { padding-top: 3mm; gap: 4mm; }
  .footer-legal { margin-top: 2mm; padding-top: 2mm; font-size: 6pt; }
  .section { gap: 3px; }
  .section-eyebrow { margin-bottom: 2px; }
  .practice-card { min-height: 18mm; padding: 7px 10px; }
}
