/* ============================================================
   LAB THEME — DESIGN.md katmanı
   "Gece yarısı biyolüminesan laboratuvar" dilinin
   Dr. Hakan Kına mavi / açık gri / beyaz paletine uyarlanmış hali.

   Eşleme (DESIGN.md → Site):
   Bioluminescent Lime  #cef79e → Ice Signal      #9EE6F7
   Abyssal Ink          #222f30 → Abyss Navy      #061539
   Bone White           #f7f7f5 → Cool Bone       #F4F7FB
   Paper                #ffffff → Paper           #FFFFFF
   Graphite             #4d5757 → Slate Graphite  #4B5A75
   Lichen               #c9cbbe → Mist Hairline   #D6DFEA
   Tissue               #e7e8e1 → Cool Tissue     #EAF0F7
   Void                 #000000 → Deep Void       #020A1C
   Roboto Mono                  → JetBrains Mono

   Bu dosya en son yüklenir; mevcut bileşenleri bozmadan
   tipografi, yüzey, hairline ve mikro-etkileşimleri inceltir.
   ============================================================ */

/* ── 1. TOKENS ─────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --lab-abyss: #061539;
  --lab-abyss-2: #0A1D4A;
  --lab-void: #020A1C;
  --lab-bone: #F4F7FB;
  --lab-paper: #FFFFFF;
  --lab-tissue: #EAF0F7;

  /* Ink & text */
  --lab-ink: #0A2463;            /* brand primary — filled actions */
  --lab-text: #0B1A36;
  --lab-graphite: #4B5A75;
  --lab-graphite-soft: #8A99B3;

  /* Hairlines */
  --lab-hair: #D6DFEA;
  --lab-hair-soft: #E3E9F1;
  --lab-hair-strong: #A9B8CD;
  --lab-hair-dark: rgba(255, 255, 255, 0.12);

  /* Signal (rationed accent) */
  --lab-signal: #9EE6F7;
  --lab-signal-strong: #00B4D8;
  --lab-signal-ink: #0096C7;

  /* Type */
  --font-mono: 'JetBrains Mono', 'Noto Sans Arabic', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Motion */
  --lab-ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --lab-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Remap existing site tokens toward the lab palette */
  --color-bg: #F4F7FB;
  --color-bg-alt: #EAF0F7;
  --color-border: #D6DFEA;
  --color-border-light: #E3E9F1;
}

body {
  background-color: var(--lab-bone);
  color: var(--lab-text);
}

::selection {
  background: var(--lab-signal);
  color: var(--lab-abyss);
}

::-webkit-scrollbar-track { background: var(--lab-bone); }
::-webkit-scrollbar-thumb { background: #B7C4D6; }
::-webkit-scrollbar-thumb:hover { background: var(--lab-ink); }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--lab-signal-strong);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ── 2. PRIMITIVES ─────────────────────────────────────────── */
.lab-mono {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Section counter pill (01 / 06) */
.lab-counter {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  white-space: nowrap;
}

/* Publication-style tag: 6px signal dot + mono uppercase */
.lab-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--lab-graphite);
}

.lab-tag--dark { color: rgba(226, 232, 240, 0.72); }

.lab-tag__dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lab-signal);
  flex-shrink: 0;
}

.lab-tag__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: labPing 2.4s var(--lab-ease) infinite;
}

/* 40×40 arrow CTA — the only filled signal surface */
.lab-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--lab-signal);
  color: var(--lab-abyss);
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.45s var(--lab-ease-out), background-color 0.3s ease;
}

.lab-arrow svg {
  width: 18px;
  height: 18px;
}

/* Buttons */
.lab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  padding: 0 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 8px;
  white-space: nowrap;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.45s var(--lab-ease-out);
}

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

.lab-btn--paper:hover {
  background: #E9F8FD;
  border-color: #E9F8FD;
  color: var(--lab-abyss);
  transform: translateY(-2px);
}

.lab-btn__wa {
  width: 18px;
  height: 18px;
  color: #1A8D4E;
  flex-shrink: 0;
}

.lab-btn--ghost {
  padding: 0 6px 0 22px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.lab-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.lab-btn--ghost:hover .lab-arrow svg {
  animation: labArrowDown 0.7s var(--lab-ease-out);
}

/* ── 3. HERO (DESIGN.md "Hero Section Background" + "Hero Display Headline") ── */
.hero.lab-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: calc(100vh - var(--navbar-height));
  min-height: calc(100svh - var(--navbar-height));
  margin-top: var(--navbar-height);
  margin-bottom: -40px;
  padding: 0;
  color: #fff;
  background:
    radial-gradient(90% 70% at 88% -10%, rgba(21, 101, 192, 0.32) 0%, transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(0, 180, 216, 0.08) 0%, transparent 70%),
    var(--lab-abyss);
  border-radius: 0 0 40px 40px;
  box-shadow: none;
  overflow: hidden;
  z-index: 10;
}

.lab-hero + .section {
  padding-top: calc(var(--space-section) + 40px);
}

/* Neuron field canvas */
.lab-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.lab-hero__canvas.is-ready { opacity: 1; }

/* Hairline column grid (lab bench rulings) */
.lab-hero__grid {
  position: absolute;
  inset: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 0;
  pointer-events: none;
}

.lab-hero__grid span {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.045);
  transform-origin: top;
  transform: scaleY(0);
  animation: labDrawY 1.8s var(--lab-ease-out) forwards;
}

.lab-hero__grid span:last-child { border-inline-end: 1px solid rgba(255, 255, 255, 0.045); }
.lab-hero__grid span:nth-child(2) { animation-delay: 0.08s; }
.lab-hero__grid span:nth-child(3) { animation-delay: 0.16s; }
.lab-hero__grid span:nth-child(4) { animation-delay: 0.24s; }

.lab-hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr auto;
  column-gap: 24px;
  padding-top: 28px;
  padding-bottom: 56px;
}

/* Meta bar */
.lab-hero__meta {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--lab-hair-dark);
  animation: labFadeUp 0.9s var(--lab-ease-out) both;
}

.lab-hero__meta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

/* Live clinic status */
.lab-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: rgba(226, 232, 240, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  white-space: nowrap;
}

.lab-status__dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lab-graphite-soft);
}

.lab-status.is-open .lab-status__dot { background: var(--lab-signal); }

.lab-status.is-open .lab-status__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: labPing 2s var(--lab-ease) infinite;
}

/* Display headline */
.lab-hero__title {
  grid-column: 1 / span 8;
  grid-row: 2;
  align-self: start;
  margin: clamp(40px, 8vh, 96px) 0 0;
  font-family: inherit;
  font-size: clamp(3.25rem, 8.4vw, 7.75rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: #fff;
}

.lab-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.04em;
}

.lab-line__inner {
  display: inline-block;
  transform: translateY(110%);
  animation: labRise 1.15s var(--lab-ease-out) 0.15s forwards;
}

.lab-line + .lab-line .lab-line__inner { animation-delay: 0.28s; }

.lab-hero__title-muted { color: rgba(255, 255, 255, 0.4); }

.lab-hero__period {
  color: var(--lab-signal);
  display: inline-block;
  animation: labPeriod 3.2s ease-in-out 1.6s infinite;
}

/* Portrait figure */
.lab-hero__figure {
  grid-column: 8 / -1;
  grid-row: 2 / 5;
  align-self: end;
  justify-self: end;
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0;
  transform: translate3d(var(--hx, 0px), var(--hy, 0px), 0);
  transition: transform 0.8s var(--lab-ease-out);
}

.lab-hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: var(--lab-abyss-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  clip-path: inset(100% 0 0 0 round 20px);
  animation: labUnveil 1.3s var(--lab-ease-out) 0.35s forwards;
}

.lab-hero__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 21, 57, 0.7) 100%);
  pointer-events: none;
}

.lab-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.82) contrast(1.03);
  transform: scale(1.12);
  animation: labZoomOut 2s var(--lab-ease-out) 0.35s forwards;
  transition: filter 0.6s ease;
}

.lab-hero__figure:hover .lab-hero__photo { filter: saturate(1) contrast(1.03); }

/* Scanning line — microscope sweep */
.lab-hero__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, var(--lab-signal), transparent);
  box-shadow: 0 0 14px 1px rgba(158, 230, 247, 0.55);
  opacity: 0;
  animation: labScan 6s ease-in-out 1.6s infinite;
}

/* Corner reticle */
.lab-hero__reticle {
  --c: rgba(255, 255, 255, 0.6);
  position: absolute;
  inset: 14px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(var(--c) 0 0) top left / 16px 1px no-repeat,
    linear-gradient(var(--c) 0 0) top left / 1px 16px no-repeat,
    linear-gradient(var(--c) 0 0) top right / 16px 1px no-repeat,
    linear-gradient(var(--c) 0 0) top right / 1px 16px no-repeat,
    linear-gradient(var(--c) 0 0) bottom left / 16px 1px no-repeat,
    linear-gradient(var(--c) 0 0) bottom left / 1px 16px no-repeat,
    linear-gradient(var(--c) 0 0) bottom right / 16px 1px no-repeat,
    linear-gradient(var(--c) 0 0) bottom right / 1px 16px no-repeat;
  opacity: 0;
  animation: labFadeIn 0.8s ease 1.3s forwards;
}

.lab-hero__caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -0.01em;
  color: rgba(226, 232, 240, 0.55);
  animation: labFadeUp 0.9s var(--lab-ease-out) 1s both;
}

.lab-hero__caption .lab-mono { color: var(--lab-signal); }

/* Floating paper chips */
.lab-hero__chips {
  position: absolute;
  inset-inline-start: -64px;
  bottom: 84px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.lab-chip {
  display: grid;
  gap: 6px;
  min-width: 156px;
  padding: 14px 16px;
  background: var(--lab-paper);
  color: var(--lab-text);
  border-radius: 14px;
  animation: labChipIn 1s var(--lab-ease-out) 1.05s both;
}

.lab-chip + .lab-chip {
  margin-inline-start: 32px;
  animation-delay: 1.2s;
}

.lab-chip__value {
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.lab-chip__plus { color: var(--lab-signal-ink); }

.lab-chip__label {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--lab-graphite);
}

/* Desktop: single frosted strip docked inside the portrait's bottom edge
   (mobile/tablet keep the white chips — see ≤1024px block) */
@media (min-width: 1025px) {
  .lab-hero__caption {
    height: 17px;
    line-height: 17px;
    white-space: nowrap;
  }

  .lab-hero__chips {
    /* caption (17px) + its margin (14px) + inner gutter (12px) */
    bottom: 43px;
    inset-inline: 12px;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 21, 57, 0.5);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    overflow: hidden;
    animation: labFadeUp 0.9s var(--lab-ease-out) 1.25s both;
  }

  .lab-chip,
  .lab-chip + .lab-chip {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 14px 16px 13px;
    background: transparent;
    color: #fff;
    border-radius: 0;
    animation: none;
  }

  .lab-chip + .lab-chip {
    border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
  }

  .lab-chip__value { font-size: 28px; }

  .lab-chip__plus { color: var(--lab-signal); }

  .lab-chip__label {
    color: rgba(226, 232, 240, 0.62);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hide the bottom reticle corners behind the strip */
  .lab-hero__reticle { inset: 14px 14px auto; height: 40%; background-size: 16px 1px, 1px 16px, 16px 1px, 1px 16px, 0 0, 0 0, 0 0, 0 0; }
}

/* Supporting copy */
.lab-hero__foot {
  grid-column: 1 / span 7;
  grid-row: 4;
  align-self: end;
  padding-top: clamp(40px, 9vh, 120px);
  animation: labFadeUp 1s var(--lab-ease-out) 0.55s both;
}

.lab-hero__specialty {
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 2.6vw, 2.25rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.94);
}

.lab-hero__desc {
  max-width: 52ch;
  margin-bottom: 32px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.66);
}

.lab-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Specialty ticker */
.lab-ticker {
  position: relative;
  z-index: 2;
  padding: 18px 0;
  border-top: 1px solid var(--lab-hair-dark);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  animation: labFadeIn 1.2s ease 0.9s both;
}

.lab-ticker__track {
  display: flex;
  width: max-content;
  direction: ltr;
  animation: labMarquee 46s linear infinite;
}

.lab-ticker:hover .lab-ticker__track { animation-play-state: paused; }

.lab-ticker__list {
  display: flex;
  flex-shrink: 0;
}

.lab-ticker__list li {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding-inline-end: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.55);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.lab-ticker__list li:hover { color: #fff; }

.lab-ticker__list li::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lab-signal);
  opacity: 0.85;
}

/* ── 4. NAVBAR ─────────────────────────────────────────────── */
.navbar {
  background: rgba(244, 247, 251, 0.8);
  border-bottom: 1px solid var(--lab-hair);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.navbar__nav { gap: 2px; }

.navbar__link {
  padding: 7px 12px;
  font-weight: 500;
  color: var(--lab-graphite);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.navbar__link::after { display: none; }

.navbar__link:hover {
  color: var(--lab-text);
  border-color: var(--lab-hair);
}

.navbar__link.active {
  color: var(--lab-abyss);
  background: var(--lab-signal);
  border-color: transparent;
}

/* Dropdown */
.navbar__dropdown-menu {
  padding: 8px;
  border: 1px solid var(--lab-hair);
  border-radius: 14px;
  box-shadow: 0 24px 48px -28px rgba(10, 36, 99, 0.35);
}

.navbar__dropdown-menu::before { display: none; }
.navbar__dropdown-menu::after { border-color: var(--lab-hair); }

.navbar__dropdown-item {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--lab-graphite);
}

.navbar__dropdown-item::before {
  width: 6px;
  height: 6px;
  background: var(--lab-hair-strong);
  opacity: 1;
}

.navbar__dropdown-item:hover {
  padding-left: 14px;
  background: var(--lab-bone);
  color: var(--lab-text);
}

.navbar__dropdown-item:hover::before {
  background: var(--lab-signal-strong);
  box-shadow: none;
  transform: none;
}

.navbar__dropdown-item:last-child {
  border-top-color: var(--lab-hair-soft);
  border-radius: 0 0 8px 8px;
}

.navbar__dropdown-item--soon::after {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--lab-graphite);
  background: var(--lab-bone);
  border-color: var(--lab-hair);
}

/* Actions */
.navbar__actions {
  flex-shrink: 0;
  gap: 10px;
}

.navbar__opinion,
.navbar__appointment {
  flex-shrink: 0;
  justify-content: center;
  gap: 8px;
  height: 40px;
  min-width: max-content;
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 10px;
}

.navbar__opinion svg,
.navbar__appointment svg {
  width: 15px;
  height: 15px;
  margin-inline-start: -2px;
}

.navbar__opinion {
  color: var(--lab-text);
  background: transparent;
  border: 1px solid var(--lab-hair);
}

.navbar__opinion:hover {
  color: var(--lab-text);
  background: var(--lab-paper);
  border-color: var(--lab-text);
  box-shadow: none;
  transform: none;
}

.navbar__appointment {
  color: #fff;
  background: var(--lab-ink);
  border: 1px solid var(--lab-ink);
  box-shadow: none;
}

.navbar__appointment::before { display: none; }

.navbar__appointment:hover {
  color: #fff;
  background: var(--lab-abyss);
  border-color: var(--lab-abyss);
  box-shadow: none;
  transform: none;
}

.navbar__actions-divider {
  height: 24px;
  margin: 0 2px;
  background: var(--lab-hair);
}

.lang-switcher { flex-shrink: 0; }

.lang-switcher__trigger {
  height: 40px;
  padding: 0 12px;
  font-family: var(--font-mono);
  background: transparent;
  border: 1px solid var(--lab-hair);
  border-radius: 10px;
}

.lang-switcher__trigger:hover,
.lang-switcher.open .lang-switcher__trigger {
  color: var(--lab-text);
  background: var(--lab-paper);
  border-color: var(--lab-text);
}

.lang-switcher__code { font-weight: 500; }

.lang-switcher__menu {
  border: 1px solid var(--lab-hair);
  border-radius: 12px;
  box-shadow: 0 24px 48px -28px rgba(10, 36, 99, 0.35);
}

.lang-switcher__menu::before { display: none; }

/* ── 5. SECTION HEADERS (counter + editorial split) ────────── */
main { counter-reset: lab-sec; }
main > .section { counter-increment: lab-sec; }

.section__header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  column-gap: clamp(24px, 5vw, 80px);
  row-gap: 22px;
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: 28px;
  text-align: start;
}

.section__header::before {
  content: counter(lab-sec, decimal-leading-zero) " / 06";
  grid-column: 1 / -1;
  justify-self: start;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--lab-graphite);
  background: var(--lab-paper);
  border: 1px solid var(--lab-hair);
  border-radius: 9999px;
}

.section__header::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--lab-hair);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s var(--lab-ease-out) 0.2s;
}

.section__header.revealed::after { transform: scaleX(1); }

.section__title {
  display: block;
  margin: 0;
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.034em;
  color: var(--lab-text);
}

/* Period-terminated headlines */
.section__title::after,
[dir="rtl"] .section__title::after {
  content: '.';
  position: static;
  display: inline;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  transform: none;
  color: var(--lab-signal-strong);
}

.section__subtitle {
  justify-self: end;
  max-width: 440px;
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--lab-graphite);
  text-wrap: pretty;
}

/* Scroll reveal — softer, longer ease */
.reveal {
  transform: translateY(28px);
  transition: opacity 0.9s var(--lab-ease-out), transform 1.05s var(--lab-ease-out);
}

/* ── 6. ABOUT ──────────────────────────────────────────────── */
.about__text { color: var(--lab-graphite); }

.about__text p:first-child {
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--lab-text);
}

.badge {
  gap: 8px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--lab-text);
  background: var(--lab-paper);
  border: 1px solid var(--lab-hair);
}

.badge--accent {
  color: #fff;
  background: var(--lab-ink);
  border-color: var(--lab-ink);
}

.badge--accent::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lab-signal);
}

.about__stats { gap: 12px; }

.about__stat-card {
  min-height: 172px;
  padding: 26px 26px 24px;
  text-align: start;
  background: var(--lab-paper);
  border: 1px solid var(--lab-hair-soft);
  border-radius: 20px;
  transition: border-color 0.4s ease, transform 0.6s var(--lab-ease-out);
}

/* Spotlight that follows the pointer (vars set in lab-theme.js) */
.about__stat-card::before,
.specialty-card::before,
.membership::before {
  content: '';
  position: absolute;
  inset: 0;
  top: 0;
  height: auto;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 180, 216, 0.09), transparent 70%);
  opacity: 0;
  transform: none;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.about__stat-card:hover::before,
.specialty-card:hover::before,
.membership:hover::before {
  opacity: 1;
  transform: none;
}

.about__stat-card::after {
  content: '';
  position: absolute;
  top: 26px;
  inset-inline-end: 26px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lab-signal-ink);
}

.about__stat-card:hover {
  border-color: var(--lab-hair-strong);
  box-shadow: none;
  transform: translateY(-3px);
}

.about__stat-card .stat {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  height: 100%;
  text-align: start;
}

.stat__number {
  order: 2;
  margin: 0;
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  color: var(--lab-text);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.stat__number .stat__plus {
  color: var(--lab-signal-ink);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.stat__label {
  order: 1;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--lab-graphite);
}

/* ── 7. SPECIALTIES ────────────────────────────────────────── */
.specialties__grid {
  counter-reset: lab-spec;
  gap: 16px;
}

.specialty-card {
  counter-increment: lab-spec;
  padding: 8px;
  background: var(--lab-paper);
  border: 1px solid var(--lab-hair-soft);
  border-radius: 20px;
  transition: border-color 0.4s ease, transform 0.6s var(--lab-ease-out);
}

.specialty-card:hover {
  border-color: var(--lab-hair-strong);
  box-shadow: none;
  transform: translateY(-4px);
}

/* Arrow CTA appears on hover */
.specialty-card::after {
  content: '';
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--lab-signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061539' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.35s ease, transform 0.5s var(--lab-ease-out);
}

[dir="rtl"] .specialty-card::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061539' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 17L7 7M16 7H7v9'/%3E%3C/svg%3E");
}

.specialty-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.specialty-card__visual {
  position: relative;
  z-index: 1;
  border-radius: 14px;
}

.specialty-card__visual img {
  height: 190px;
  filter: saturate(0.88);
  transition: transform 1s var(--lab-ease-out), filter 0.5s ease;
}

.specialty-card:hover .specialty-card__visual img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

.specialty-card__body {
  position: relative;
  z-index: 1;
  padding: 18px 14px 16px;
}

.specialty-card__body::before {
  content: counter(lab-spec, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--lab-graphite-soft);
}

.specialty-card__title {
  font-size: 18.5px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.014em;
  color: var(--lab-text);
}

.specialty-card__desc {
  font-size: 14px;
  color: var(--lab-graphite);
}

/* ── 8. DISEASES ───────────────────────────────────────────── */
.disease-grid { gap: 14px; }

.disease-card {
  padding: 6px;
  background: var(--lab-paper);
  border: 1px solid var(--lab-hair-soft);
  border-radius: 18px;
  transition: border-color 0.4s ease, transform 0.6s var(--lab-ease-out);
}

.disease-card:hover {
  border-color: var(--lab-hair-strong);
  box-shadow: none;
  transform: translateY(-3px);
}

/* Expand (+) / collapse (×) affordance */
.disease-card::after {
  content: '';
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--lab-signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061539' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.45s var(--lab-ease-out);
  pointer-events: none;
}

.disease-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.disease-card.active::after {
  opacity: 1;
  transform: scale(1);
  background-color: var(--lab-paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061539' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 1px var(--lab-hair);
}

.disease-card__visual { border-radius: 13px; }

.disease-card__visual img {
  height: 160px;
  filter: saturate(0.88);
  transition: transform 1s var(--lab-ease-out), filter 0.5s ease;
}

.disease-card:hover .disease-card__visual img {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.disease-card__info {
  padding: 14px 10px 12px;
  text-align: start;
}

.disease-card__title {
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--lab-text);
}

.disease-card__excerpt {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--lab-graphite);
}

.disease-card.active {
  grid-template-columns: 260px 1fr;
  padding: 8px;
  border-color: var(--lab-ink);
  box-shadow: none;
  transform: none;
}

.disease-card.active .disease-card__visual { border-radius: 13px; }

.disease-card.active .disease-card__visual img {
  height: 100%;
  min-height: 280px;
}

.disease-card.active .disease-card__info {
  padding: 22px 64px 0 28px;
  text-align: start;
}

[dir="rtl"] .disease-card.active .disease-card__info { padding: 22px 28px 0 64px; }

.disease-card.active .disease-card__title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--lab-text);
}

.disease-card.active .disease-card__excerpt {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-top: 8px;
}

.disease-card__content {
  padding: 18px 28px 26px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--lab-graphite);
}

.disease-card__content strong {
  font-weight: 600;
  color: var(--lab-text);
}

.disease-card__content ul li::marker { color: var(--lab-signal-ink); }

/* ── 9. ACADEMIC ───────────────────────────────────────────── */
.academic__section-title {
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--lab-text);
  border-bottom: 1px solid var(--lab-hair);
}

.academic__section-title svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  color: var(--lab-ink);
  background: var(--lab-paper);
  border: 1px solid var(--lab-hair);
  border-radius: 8px;
}

/* Timeline with scroll-driven progress (--tl set in lab-theme.js) */
.timeline::before {
  width: 1px;
  background: var(--lab-hair);
}

.timeline::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--lab-signal-strong);
  transform-origin: top;
  transform: scaleY(var(--tl, 0));
  transition: transform 0.2s linear;
}

.timeline__item::before {
  inset-inline-start: calc(-2rem - 5px);
  top: 7px;
  width: 11px;
  height: 11px;
  background: var(--lab-paper);
  border: 1px solid var(--lab-hair-strong);
  box-shadow: none;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.timeline__item.is-passed::before {
  background: var(--lab-ink);
  border-color: var(--lab-ink);
}

.timeline__item--highlight::before,
.timeline__item--highlight.is-passed::before {
  background: var(--lab-signal);
  border-color: var(--lab-signal-strong);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.14);
}

.timeline__year {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--lab-graphite);
  background: var(--lab-paper);
  border: 1px solid var(--lab-hair);
}

.timeline__title {
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--lab-text);
}

.timeline__subtitle { color: var(--lab-graphite); }

/* RTL timeline correction */
[dir="rtl"] .timeline::before,
[dir="rtl"] .timeline::after {
  left: auto;
  right: 0;
  inset-inline-end: auto;
}

[dir="rtl"] .timeline__item {
  padding-inline-start: var(--space-xl);
  padding-inline-end: 0;
}

[dir="rtl"] .timeline__item::before {
  left: auto;
  right: calc(-2rem - 5px);
  inset-inline-start: auto;
  inset-inline-end: auto;
}

/* Certificates — hairline list */
.cert-list {
  gap: 0;
  border-top: 1px solid var(--lab-hair);
}

.cert-item {
  gap: 14px;
  padding: 14px 4px;
  border-radius: 0;
  border-bottom: 1px solid var(--lab-hair);
  transition: padding 0.4s var(--lab-ease-out), background-color 0.3s ease;
}

.cert-item:hover {
  padding-inline-start: 14px;
  background: transparent;
}

.cert-item__dot {
  width: 6px;
  height: 6px;
  margin-top: 9px;
  background: var(--lab-hair-strong);
  box-shadow: none;
  transition: background-color 0.3s ease;
}

.cert-item:hover .cert-item__dot { background: var(--lab-signal-strong); }

.cert-item__text {
  font-size: 14.5px;
  color: var(--lab-text);
}

/* ── 10. PUBLICATIONS ──────────────────────────────────────── */
.tabs__nav {
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 5px;
  background: var(--lab-paper);
  border: 1px solid var(--lab-hair-soft);
  border-radius: 14px;
}

.tabs__btn {
  margin-bottom: 0;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--lab-graphite);
  border: 1px solid transparent;
  border-radius: 10px;
}

.tabs__btn:hover {
  color: var(--lab-text);
  border-color: var(--lab-hair);
}

.tabs__btn.active {
  font-weight: 500;
  color: var(--lab-abyss);
  background: var(--lab-signal);
  border-color: transparent;
}

.tabs__panel { counter-reset: lab-pub; }

.tabs__panel.active { animation: labFadeUp 0.5s var(--lab-ease-out); }

.pub-item {
  counter-increment: lab-pub;
  position: relative;
  margin-bottom: 10px;
  padding: 22px 24px;
  padding-inline-start: 72px;
  background: var(--lab-paper);
  border: 1px solid var(--lab-hair-soft);
  border-radius: 16px;
  transition: border-color 0.35s ease;
}

.pub-item::before {
  content: counter(lab-pub, decimal-leading-zero);
  position: absolute;
  top: 25px;
  inset-inline-start: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--lab-graphite-soft);
  transition: color 0.3s ease;
}

.pub-item:hover {
  border-color: var(--lab-hair-strong);
  box-shadow: none;
}

.pub-item:hover::before { color: var(--lab-signal-ink); }

.pub-item__title {
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--lab-text);
}

.pub-item__meta {
  font-size: 13.5px;
  color: var(--lab-graphite);
}

.pub-item__meta strong {
  font-weight: 600;
  color: var(--lab-ink);
}

.pub-item__meta em {
  display: inline-block;
  padding: 1px 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-style: normal;
  color: var(--lab-text);
  background: var(--lab-bone);
  border: 1px solid var(--lab-hair-soft);
  border-radius: 5px;
}

/* Memberships */
.memberships__grid { gap: 12px; }

.membership {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border: 1px solid var(--lab-hair-soft);
  border-radius: 16px;
  transition: border-color 0.35s ease;
}

.membership:hover {
  border-color: var(--lab-hair-strong);
  box-shadow: none;
}

.membership__icon,
.membership__name {
  position: relative;
  z-index: 1;
}

.membership__icon {
  color: var(--lab-ink);
  background: var(--lab-bone);
  border: 1px solid var(--lab-hair-soft);
  border-radius: 10px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.membership:hover .membership__icon {
  color: var(--lab-abyss);
  background: var(--lab-signal);
  border-color: transparent;
}

.membership__name {
  font-weight: 500;
  color: var(--lab-text);
}

/* ── 11. CONTACT ───────────────────────────────────────────── */
.contact__info {
  gap: 0;
  border-top: 1px solid var(--lab-hair);
}

.contact__item {
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--lab-hair);
}

.contact__icon {
  width: 44px;
  height: 44px;
  color: var(--lab-ink);
  background: var(--lab-paper);
  border: 1px solid var(--lab-hair);
  border-radius: 10px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.contact__item:hover .contact__icon {
  color: var(--lab-abyss);
  background: var(--lab-signal);
  border-color: transparent;
}

.contact__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--lab-graphite);
}

.contact__value {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.012em;
}

.contact__address-link {
  border-bottom: 1px solid var(--lab-hair-strong);
}

.contact__address-link:hover {
  color: var(--lab-ink);
  border-bottom-color: var(--lab-ink);
}

.contact__map {
  padding: 8px;
  background: var(--lab-paper);
  border: 1px solid var(--lab-hair);
  border-radius: 24px;
  box-shadow: none;
}

.contact__map iframe { border-radius: 18px; }

.map__profile-card {
  top: 20px;
  left: 20px;
  border: 1px solid var(--lab-hair);
  border-radius: 14px;
  box-shadow: 0 16px 40px -24px rgba(10, 36, 99, 0.45);
}

.map__profile-card:hover {
  box-shadow: 0 20px 44px -24px rgba(10, 36, 99, 0.55);
}

.map__profile-avatar { border: 1px solid var(--lab-hair); box-shadow: none; }

.map__profile-info strong { font-weight: 600; color: var(--lab-text); }

.map__profile-info > span { color: var(--lab-graphite); font-weight: 500; }

.map__profile-cta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--lab-abyss);
  background: var(--lab-signal);
  border: none;
  border-radius: 6px;
}

.map__profile-card:hover .map__profile-cta { background: #86DDF2; }

/* ── 12. FOOTER (Void ground) ──────────────────────────────── */
.footer {
  padding: 96px 0 0;
  background: var(--lab-void);
}

.footer::before {
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.footer__brand p {
  max-width: 460px;
  margin-top: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: rgba(255, 255, 255, 0.8);
}

.footer__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.3s ease, gap 0.35s var(--lab-ease-out);
}

a.footer__link::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--lab-signal);
  transition: width 0.35s var(--lab-ease-out);
}

a.footer__link:hover {
  gap: 10px;
  color: #fff;
}

a.footer__link:hover::before { width: 14px; }

.footer__bottom { border-top-color: rgba(255, 255, 255, 0.08); }

.footer__copyright {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Credit Badge — ozlu.io ── */
.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  isolation: isolate;
}

.footer__credit::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.15) 0%, 
    rgba(139, 92, 246, 0.15) 50%, 
    rgba(236, 72, 153, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

/* Shimmer sweep on hover */
.footer__credit::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.08),
    transparent
  );
  transition: none;
  z-index: 0;
}

.footer__credit:hover::after {
  animation: credit-shimmer 0.6s ease forwards;
}

@keyframes credit-shimmer {
  0%   { left: -100%; }
  100% { left: 100%; }
}

.footer__credit:hover {
  color: rgba(255,255,255,0.9);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-1px);
  box-shadow: 
    0 4px 20px rgba(139, 92, 246, 0.15),
    0 0 40px rgba(59, 130, 246, 0.06);
}

.footer__credit:hover::before {
  opacity: 1;
}

/* Pulse dot */
.footer__credit-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
  animation: credit-pulse 2.5s ease-in-out infinite;
}

@keyframes credit-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(74, 222, 128, 0.6); }
  50%      { opacity: 0.5; box-shadow: 0 0 12px rgba(74, 222, 128, 0.3); }
}

/* Credit text */
.footer__credit-text {
  position: relative;
  z-index: 1;
}

/* Brand name — gradient highlight */
.footer__credit-brand {
  font-weight: 600;
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter 0.3s ease;
}

.footer__credit:hover .footer__credit-brand {
  filter: brightness(1.3) drop-shadow(0 0 6px rgba(167, 139, 250, 0.5));
}

.footer__social-link {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.footer__social-link:hover {
  color: var(--lab-abyss);
  background: var(--lab-signal);
  border-color: transparent;
  box-shadow: none;
}

.footer__wordmark {
  margin-top: 24px;
  margin-bottom: -0.14em;
  font-size: clamp(3.5rem, 16vw, 12.5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(158, 230, 247, 0.2) 0%, rgba(158, 230, 247, 0) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  pointer-events: none;
  direction: ltr;
}

/* ── 13. FLOATING UTILITIES ────────────────────────────────── */
.back-to-top {
  color: var(--lab-ink);
  background: var(--lab-paper);
  border: 1px solid var(--lab-hair);
  border-radius: 10px;
  box-shadow: none;
}

.back-to-top:hover {
  color: #fff;
  background: var(--lab-ink);
  border-color: var(--lab-ink);
  box-shadow: none;
}

.whatsapp-fab__tooltip {
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid var(--lab-hair);
  border-radius: 8px;
  box-shadow: none;
}

/* Scroll progress (accent allowed on progress indicators) */
.lab-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: calc(var(--z-navbar) + 1);
  pointer-events: none;
}

.lab-progress__bar {
  height: 100%;
  background: var(--lab-signal-strong);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

[dir="rtl"] .lab-progress__bar { transform-origin: right; }

/* Section index rail */
.lab-rail {
  position: fixed;
  top: 50%;
  inset-inline-end: 18px;
  z-index: 450;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--lab-hair-soft);
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(12px, -50%);
  transition: opacity 0.4s ease, transform 0.5s var(--lab-ease-out);
}

[dir="rtl"] .lab-rail { transform: translate(-12px, -50%); }

.lab-rail.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.lab-rail__item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  height: 30px;
  padding: 0 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: -0.01em;
  color: var(--lab-graphite);
  border-radius: 9px;
  transition: background-color 0.3s ease, color 0.3s ease, gap 0.4s var(--lab-ease-out);
}

.lab-rail__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.45s var(--lab-ease-out), opacity 0.3s ease;
}

.lab-rail:hover .lab-rail__item { gap: 10px; }

.lab-rail:hover .lab-rail__label {
  max-width: 180px;
  opacity: 1;
}

.lab-rail__item:hover { color: var(--lab-text); background: var(--lab-bone); }

.lab-rail__item.is-active {
  color: var(--lab-abyss);
  background: var(--lab-signal);
}

/* ── 14. OPINION MODAL ─────────────────────────────────────── */
/* Overlay */
.opinion-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 10, 28, 0.62);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.opinion-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Shell */
.opinion-modal {
  position: relative;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  width: 100%;
  max-width: 1000px;
  height: min(780px, calc(100vh - 48px));
  height: min(780px, calc(100dvh - 48px));
  background: var(--lab-paper);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(2, 10, 28, 0.75);
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.6s var(--lab-ease-out), opacity 0.4s ease;
}

.opinion-overlay.open .opinion-modal {
  opacity: 1;
  transform: none;
}

/* Close */
.opinion-modal__close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--lab-text);
  background: var(--lab-paper);
  border: 1px solid var(--lab-hair);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.opinion-modal__close svg {
  width: 18px;
  height: 18px;
  transition: transform 0.45s var(--lab-ease-out);
}

.opinion-modal__close:hover { border-color: var(--lab-text); }
.opinion-modal__close:hover svg { transform: rotate(90deg); }

/* ── Left panel (dark context) ── */
.opinion-modal__left {
  position: relative;
  display: flex;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(21, 101, 192, 0.35) 0%, transparent 60%),
    var(--lab-abyss);
}

.opinion-modal__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-inline: 32px;
  pointer-events: none;
}

.opinion-modal__grid span { border-inline-start: 1px solid rgba(255, 255, 255, 0.045); }
.opinion-modal__grid span:last-child { border-inline-end: 1px solid rgba(255, 255, 255, 0.045); }

.opinion-modal__left-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 30px 32px 32px;
  overflow-y: auto;
  scrollbar-width: none;
}

.opinion-modal__left-inner::-webkit-scrollbar { display: none; }

.opinion-modal__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--lab-hair-dark);
}

.opinion-modal__heading {
  margin: 40px 0 16px;
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}

.opinion-modal__heading span { color: var(--lab-signal); }

.opinion-modal__sub {
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.66);
}

.opinion-steps {
  display: flex;
  flex-direction: column;
  margin-bottom: auto;
  border-top: 1px solid var(--lab-hair-dark);
}

.opinion-steps__item {
  display: flex;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--lab-hair-dark);
}

.opinion-steps__num {
  flex-shrink: 0;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--lab-signal);
}

.opinion-steps__item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
}

.opinion-steps__item div > span {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.55);
}

.opinion-modal__doctor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--lab-hair-dark);
  border-radius: 14px;
}

.opinion-modal__doctor img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
}

.opinion-modal__doctor > div {
  flex: 1;
  min-width: 0;
}

.opinion-modal__doctor strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.opinion-modal__doctor > div span {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(226, 232, 240, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opinion-modal__call {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--lab-abyss);
  background: var(--lab-signal);
  border-radius: 8px;
  transition: transform 0.4s var(--lab-ease-out);
}

.opinion-modal__call svg { width: 17px; height: 17px; }
.opinion-modal__call:hover { color: var(--lab-abyss); transform: scale(1.06); }

/* ── Right panel (form) ── */
.opinion-modal__right {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  background: var(--lab-paper);
  scrollbar-width: thin;
  scrollbar-color: var(--lab-hair) transparent;
}

.opinion-modal__handle { display: none; }

.opinion-modal__form-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 28px 36px 20px;
  padding-inline-end: 84px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lab-hair-soft);
}

.opinion-modal__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--lab-graphite);
}

.opinion-modal__form-header h3 {
  margin-bottom: 6px;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--lab-text);
}

.opinion-modal__form-header p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--lab-graphite);
}

/* Completion meter */
.opinion-meter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.opinion-meter__track {
  flex: 1;
  height: 2px;
  overflow: hidden;
  background: var(--lab-hair-soft);
  border-radius: 2px;
}

.opinion-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lab-signal-strong);
  transform-origin: left;
  transform: scaleX(var(--m, 0));
  transition: transform 0.5s var(--lab-ease-out);
}

[dir="rtl"] .opinion-meter__bar { transform-origin: right; }

.opinion-meter__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--lab-graphite);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.opinion-meter.is-complete .opinion-meter__label { color: var(--lab-signal-ink); }

.opinion-modal__right:has(.opinion-modal__success[style*="flex"]) .opinion-meter { display: none; }

/* Form */
.opinion-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 36px;
}

.opinion-form__group {
  min-width: 0;
  margin: 26px 0 0;
  padding: 0 0 26px;
  border: none;
  border-bottom: 1px solid var(--lab-hair-soft);
}

.opinion-form__group > * + * { margin-top: 16px; }

.opinion-form__legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--lab-text);
}

.opinion-form__legend span {
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--lab-signal-ink);
  border: 1px solid var(--lab-hair);
  border-radius: 9999px;
}

.opinion-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.opinion-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.opinion-form__field > label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--lab-graphite);
}

.opinion-form label span[aria-hidden] { color: var(--lab-signal-ink); }

.opinion-form__optional {
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  color: var(--lab-graphite-soft);
}

/* Inputs */
.opinion-form__field input,
.opinion-form__field textarea,
.opinion-form__captcha input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--lab-text);
  background: var(--lab-bone);
  border: 1px solid var(--lab-hair-soft);
  border-radius: 10px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.opinion-form__field textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  line-height: 1.55;
  resize: vertical;
}

.opinion-form input::placeholder,
.opinion-form textarea::placeholder { color: var(--lab-graphite-soft); }

.opinion-form__field input:hover,
.opinion-form__field textarea:hover,
.opinion-form__captcha input:hover { border-color: var(--lab-hair); }

.opinion-form__field input:focus,
.opinion-form__field textarea:focus,
.opinion-form__captcha input:focus {
  background: var(--lab-paper);
  border-color: var(--lab-ink);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.14);
}

/* Live validity (class set in lab-theme.js) */
.opinion-form__field input.is-valid {
  padding-inline-end: 40px;
  background: var(--lab-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230096C7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
  border-color: rgba(0, 150, 199, 0.45);
}

[dir="rtl"] .opinion-form__field input.is-valid { background-position: left 14px center; }

.opinion-form__field textarea.is-valid { border-color: rgba(0, 150, 199, 0.45); }

.opinion-form__field input.invalid,
.opinion-form__field textarea.invalid,
.opinion-form__captcha input.invalid {
  background-color: #FFF8F8;
  border-color: #D64545;
  box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.1);
}

.opinion-form__error {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  font-size: 12px;
  color: #C53B3B;
}

.opinion-form__error:empty { display: none; }

.opinion-form__error::before {
  content: '';
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
}

.opinion-form__hint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 16px;
}

.opinion-form__counter {
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lab-graphite-soft);
  transition: color 0.3s ease;
}

.opinion-form__counter.is-ok { color: var(--lab-signal-ink); }

/* Dropzone */
.opinion-form__dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-align: start;
  background: var(--lab-bone);
  border: 1px dashed var(--lab-hair-strong);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.opinion-form__dropzone:hover,
.opinion-form__dropzone.drag-over {
  background: #EEF6FC;
  border-color: var(--lab-ink);
}

.opinion-form__dropzone.drag-over {
  border-style: solid;
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.12);
}

.opinion-form__dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.opinion-form__drop-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--lab-ink);
  background: var(--lab-paper);
  border: 1px solid var(--lab-hair);
  border-radius: 10px;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--lab-ease-out);
}

.opinion-form__drop-icon svg { width: 20px; height: 20px; }

.opinion-form__dropzone:hover .opinion-form__drop-icon,
.opinion-form__dropzone.drag-over .opinion-form__drop-icon {
  color: var(--lab-abyss);
  background: var(--lab-signal);
  border-color: transparent;
}

.opinion-form__dropzone.drag-over .opinion-form__drop-icon { transform: translateY(-3px); }

.opinion-form__drop-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

#of-file-label {
  font-size: 14px;
  color: var(--lab-text);
}

#of-file-label u {
  color: var(--lab-ink);
  text-decoration-color: var(--lab-signal-strong);
  text-underline-offset: 3px;
}

.opinion-form__drop-types {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lab-graphite-soft);
}

#of-file-count {
  margin-inline-start: auto;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--lab-abyss);
  background: var(--lab-signal);
  border-radius: 6px;
  white-space: nowrap;
}

#of-file-count:empty { display: none; }

.opinion-form__files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opinion-form__files:empty { display: none; }

.opinion-form__files li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--lab-text);
  background: var(--lab-paper);
  border: 1px solid var(--lab-hair);
  border-radius: 8px;
  animation: labFadeUp 0.4s var(--lab-ease-out) both;
}

.opinion-form__files li::before {
  content: '';
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--lab-signal-ink);
}

.opinion-form__file-name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opinion-form__file-size { color: var(--lab-graphite-soft); }

.opinion-form__files li.is-too-big {
  color: #C53B3B;
  border-color: #E7A1A1;
}

.opinion-form__files li.is-too-big::before { background: #D64545; }

/* Captcha */
.opinion-form__captcha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  padding-inline-start: 18px;
  background: var(--lab-bone);
  border: 1px solid var(--lab-hair-soft);
  border-radius: 14px;
}

.opinion-form__captcha label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.opinion-form__captcha-q {
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--lab-text);
}

.opinion-form__captcha-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--lab-graphite);
}

.opinion-form__captcha input {
  width: 112px;
  height: 46px;
  flex-shrink: 0;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 16px;
  text-align: center;
  background: var(--lab-paper);
  -moz-appearance: textfield;
}

.opinion-form__captcha input::-webkit-outer-spin-button,
.opinion-form__captcha input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Sticky footer with submit */
.opinion-form__footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: auto -36px 0;
  padding: 18px 36px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--lab-hair-soft);
}

.opinion-form__group:last-of-type { border-bottom: none; }

.opinion-form__privacy {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 290px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--lab-graphite);
}

.opinion-form__privacy svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--lab-ink);
}

.opinion-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 52px;
  min-width: 0;
  padding: 0 6px;
  padding-inline-start: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  background: var(--lab-ink);
  border: 1px solid var(--lab-ink);
  border-radius: 8px;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.opinion-form__submit:hover:not(:disabled) {
  background: var(--lab-abyss);
  border-color: var(--lab-abyss);
  box-shadow: none;
  transform: none;
}

.opinion-form__submit:hover:not(:disabled) .opinion-form__arrow {
  animation: labArrowRight 0.7s var(--lab-ease-out);
}

[dir="rtl"] .opinion-form__arrow { transform: scaleX(-1); }

.opinion-form__submit:disabled {
  opacity: 0.75;
  cursor: progress;
}

.opinion-form__submit:disabled .opinion-form__arrow { display: none; }

.opinion-form__spinner {
  display: none;
  width: 18px;
  height: 18px;
  animation: labSpin 0.8s linear infinite;
}

.opinion-form__spinner.visible { display: block; }

/* Success state */
.opinion-modal__success {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 36px;
  text-align: center;
}

.opinion-success__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  color: var(--lab-abyss);
  background: var(--lab-signal);
  border-radius: 50%;
}

.opinion-success__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--lab-signal-strong);
  border-radius: inherit;
  animation: labRing 2.4s var(--lab-ease) 0.6s infinite;
}

.opinion-success__icon svg { width: 30px; height: 30px; }

.opinion-success__check {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: labDraw 0.7s var(--lab-ease-out) 0.25s forwards;
}

.opinion-modal__success h4 {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--lab-text);
}

.opinion-modal__success h4 span { color: var(--lab-signal-strong); }

.opinion-modal__success p {
  max-width: 340px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--lab-graphite);
}

.opinion-success__close {
  height: 48px;
  margin-top: 18px;
  padding: 0 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--lab-text);
  background: transparent;
  border: 1px solid var(--lab-hair);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.opinion-success__close:hover { border-color: var(--lab-text); }

/* Staggered entrance when the modal opens */
.opinion-overlay.open .opinion-modal__meta { animation: labFadeUp 0.7s var(--lab-ease-out) 0.12s both; }
.opinion-overlay.open .opinion-modal__heading { animation: labFadeUp 0.7s var(--lab-ease-out) 0.2s both; }
.opinion-overlay.open .opinion-modal__sub { animation: labFadeUp 0.7s var(--lab-ease-out) 0.28s both; }
.opinion-overlay.open .opinion-steps__item { animation: labFadeUp 0.7s var(--lab-ease-out) 0.36s both; }
.opinion-overlay.open .opinion-steps__item:nth-child(2) { animation-delay: 0.44s; }
.opinion-overlay.open .opinion-steps__item:nth-child(3) { animation-delay: 0.52s; }
.opinion-overlay.open .opinion-modal__doctor { animation: labFadeUp 0.7s var(--lab-ease-out) 0.6s both; }
.opinion-overlay.open .opinion-form__group { animation: labFadeUp 0.7s var(--lab-ease-out) 0.24s both; }
.opinion-overlay.open .opinion-form__group:nth-of-type(2) { animation-delay: 0.32s; }
.opinion-overlay.open .opinion-form__group:nth-of-type(3) { animation-delay: 0.4s; }

/* Tablet */
@media (min-width: 701px) and (max-width: 900px) {
  .opinion-modal { grid-template-columns: 280px minmax(0, 1fr); }
  .opinion-modal__left-inner { padding: 26px 24px; }
  .opinion-modal__heading { font-size: 34px; margin-top: 32px; }
  .opinion-form__row { grid-template-columns: 1fr; }
  .opinion-form__privacy { display: none; }
  .opinion-form__footer { justify-content: flex-end; }
}

/* Mobile — bottom sheet */
@media (max-width: 700px) {
  .opinion-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .opinion-modal {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    height: 94vh;
    height: 94dvh;
    border-radius: 24px 24px 0 0;
    border: none;
    transform: translateY(100%);
    opacity: 1;
  }

  .opinion-modal__left { display: none; }

  .opinion-modal__handle {
    display: block;
    flex-shrink: 0;
    width: 40px;
    height: 4px;
    margin: 10px auto 0;
    background: var(--lab-hair);
    border-radius: 4px;
  }

  .opinion-modal__close {
    top: 22px;
    inset-inline-end: 16px;
    background: var(--lab-paper);
    color: var(--lab-text);
    border-color: var(--lab-hair);
  }

  .opinion-modal__form-header {
    padding: 14px 20px 16px;
    padding-inline-end: 68px;
  }

  .opinion-modal__form-header h3 { font-size: 24px; }

  .opinion-form { padding: 0 20px; }

  .opinion-form__row { grid-template-columns: 1fr; }

  .opinion-form__group { margin-top: 22px; padding-bottom: 22px; }

  .opinion-form__file-name { max-width: 160px; }

  .opinion-form__captcha input { width: 96px; }

  .opinion-form__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: auto -20px 0;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .opinion-form__privacy { max-width: none; font-size: 12px; }

  .opinion-form__submit {
    width: 100%;
    justify-content: space-between;
  }
}

[dir="rtl"] .opinion-modal__heading,
[dir="rtl"] .opinion-modal__form-header h3,
[dir="rtl"] .opinion-modal__success h4 { letter-spacing: 0; }

@keyframes labSpin { to { transform: rotate(360deg); } }

@keyframes labDraw { to { stroke-dashoffset: 0; } }

@keyframes labRing {
  0% { transform: scale(1); opacity: 0.8; }
  80%, 100% { transform: scale(1.7); opacity: 0; }
}

@keyframes labArrowRight {
  0%   { transform: translateX(0); }
  45%  { transform: translateX(130%); }
  46%  { transform: translateX(-130%); }
  100% { transform: translateX(0); }
}

/* ── 15. RTL / ARABIC SAFETY ───────────────────────────────── */
[dir="rtl"] .section__header::after { transform-origin: right; }

[dir="rtl"] .section__title,
[dir="rtl"] .lab-hero__specialty,
[dir="rtl"] .about__text p:first-child,
[dir="rtl"] .footer__brand p,
[dir="rtl"] .lab-tag,
[dir="rtl"] .lab-chip__label,
[dir="rtl"] .stat__label,
[dir="rtl"] .contact__label,
[dir="rtl"] .footer__title,
[dir="rtl"] .tabs__btn,
[dir="rtl"] .lab-ticker__list li,
[dir="rtl"] .lab-btn {
  letter-spacing: 0;
}

/* ── 16. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1279px) {
  .lab-rail { display: none; }
}

@media (max-width: 1024px) {
  .lab-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    padding-bottom: 44px;
  }

  .lab-hero__meta,
  .lab-hero__title,
  .lab-hero__figure,
  .lab-hero__foot {
    grid-column: 1;
    grid-row: auto;
  }

  .lab-hero__title { margin-top: 44px; }

  .lab-hero__figure {
    justify-self: stretch;
    align-self: start;
    max-width: none;
    margin-top: 40px;
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    column-gap: 20px;
    transform: none;
  }

  .lab-hero__frame { grid-row: 1 / 3; }

  .lab-hero__chips {
    position: static;
    align-self: end;
    flex-direction: column;
  }

  .lab-chip + .lab-chip { margin-inline-start: 0; }

  .lab-hero__caption {
    grid-column: 2;
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .lab-hero__foot { padding-top: 44px; }

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

  .section__subtitle { justify-self: start; }

  .disease-card.active { grid-template-columns: 200px 1fr; }
}

@media (max-width: 768px) {
  .hero.lab-hero {
    min-height: auto;
    margin-top: 0;
    margin-bottom: -28px;
    padding: 0;
    border-radius: 0 0 28px 28px;
  }

  .lab-hero + .section { padding-top: calc(var(--space-section) + 28px); }

  .lab-hero__inner { padding-top: 20px; }

  .lab-hero__meta {
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
  }

  .lab-hero__meta-group { gap: 10px; flex-wrap: wrap; }

  .lab-hero__meta .lab-counter { display: none; }

  .lab-hero__title {
    margin-top: 36px;
    font-size: clamp(2.9rem, 14vw, 4.75rem);
  }

  .lab-hero__figure {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    column-gap: 14px;
    margin-top: 32px;
  }

  .lab-hero__chips { gap: 8px; }

  .lab-chip {
    min-width: 0;
    width: 100%;
    padding: 12px 14px;
  }

  .lab-chip__value { font-size: 26px; }

  .lab-hero__caption { font-size: 11px; gap: 8px; }

  .lab-hero__foot { padding-top: 36px; }

  .lab-hero__desc { font-size: 15.5px; margin-bottom: 26px; }

  .lab-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lab-btn { width: 100%; }

  .lab-btn--ghost { justify-content: space-between; }

  .lab-ticker { padding: 14px 0 calc(14px + 28px); }

  .section__title { font-size: clamp(2rem, 9vw, 2.75rem); }

  .section__subtitle { font-size: 15.5px; }

  .specialty-card { padding: 6px; }

  .specialty-card__visual img { height: 160px; }

  .specialty-card::after { opacity: 1; transform: scale(0.85); }

  .disease-card.active { grid-template-columns: 1fr; }

  .disease-card.active .disease-card__visual img { min-height: 200px; max-height: 240px; }

  .disease-card.active .disease-card__info,
  [dir="rtl"] .disease-card.active .disease-card__info {
    padding: 18px 18px 0;
    text-align: start;
  }

  .disease-card__content { padding: 14px 18px 20px; }

  .tabs__btn { padding: 9px 12px; font-size: 11.5px; }

  .pub-item {
    padding: 18px;
    padding-inline-start: 54px;
  }

  .pub-item::before { inset-inline-start: 18px; top: 21px; }

  .contact__map { border-radius: 20px; }

  .footer { padding-top: 64px; }

  .footer__wordmark { margin-top: 32px; }
}

@media (max-width: 480px) {
  .lab-hero__figure { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

  .lab-hero__specialty { font-size: 1.35rem; }

  .about__stat-card { min-height: 140px; padding: 20px; }

  .about__stat-card::after { top: 20px; inset-inline-end: 20px; }

  .specialty-card__visual img { height: 170px; }

  .section__title { font-size: 2rem; }
}

/* ── 17. KEYFRAMES ─────────────────────────────────────────── */
@keyframes labRise {
  to { transform: translateY(0); }
}

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

@keyframes labFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes labDrawY {
  to { transform: scaleY(1); }
}

@keyframes labUnveil {
  to { clip-path: inset(0 0 0 0 round 20px); }
}

@keyframes labZoomOut {
  to { transform: scale(1); }
}

@keyframes labChipIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes labScan {
  0%   { top: 0%; opacity: 0; }
  10%  { opacity: 0.9; }
  50%  { top: 100%; opacity: 0.9; }
  60%  { opacity: 0; }
  100% { top: 100%; opacity: 0; }
}

@keyframes labPing {
  0%   { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(3.2); opacity: 0; }
}

@keyframes labPeriod {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes labMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes labArrowDown {
  0%   { transform: translateY(0); }
  45%  { transform: translateY(130%); }
  46%  { transform: translateY(-130%); }
  100% { transform: translateY(0); }
}

/* ── 15. BRAND LOCKUP (HK mark + wordmark) ─────────────────── */
/* The mark is a single-alpha PNG used as a CSS mask, so it can be
   tinted with any lab token (ice signal on abyss, white on void…). */
.brand {
  --brand-tile: 42px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: auto;
  color: var(--lab-text);
  text-decoration: none;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.brand__mark {
  position: relative;
  flex: 0 0 var(--brand-tile);
  width: var(--brand-tile);
  height: var(--brand-tile);
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(0, 180, 216, 0.32) 0%, rgba(0, 180, 216, 0) 60%),
    linear-gradient(160deg, var(--lab-abyss-2) 0%, var(--lab-abyss) 55%, var(--lab-void) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(158, 230, 247, 0.14),
    0 1px 2px rgba(6, 21, 57, 0.18),
    0 6px 16px -6px rgba(6, 21, 57, 0.45);
  transition: transform 0.5s var(--lab-ease-out), box-shadow 0.4s ease;
}

/* tinted HK + brain glyph */
.brand__mark::before {
  content: '';
  position: absolute;
  inset: 13%;
  background: var(--lab-signal);
  -webkit-mask: url('../assets/images/logo-mark.png') center / contain no-repeat;
  mask: url('../assets/images/logo-mark.png') center / contain no-repeat;
  z-index: 1;
  transition: background-color 0.35s ease;
}

/* lab scan sweep on hover */
.brand__mark::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -40%;
  height: 40%;
  background: linear-gradient(180deg, rgba(158, 230, 247, 0) 0%, rgba(158, 230, 247, 0.35) 85%, rgba(158, 230, 247, 0.9) 100%);
  mix-blend-mode: screen;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

.brand:hover .brand__mark,
.brand:focus-visible .brand__mark {
  transform: translateY(-1px) rotate(-3deg);
  box-shadow:
    inset 0 0 0 1px rgba(158, 230, 247, 0.32),
    0 0 0 4px rgba(158, 230, 247, 0.28),
    0 10px 22px -8px rgba(6, 21, 57, 0.5);
}

.brand:hover .brand__mark::before { background: #DDF7FD; }

.brand:hover .brand__mark::after,
.brand:focus-visible .brand__mark::after {
  animation: brandScan 1.1s var(--lab-ease-out) forwards;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-primary);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--lab-text);
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
}

.brand__role {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lab-graphite);
  white-space: nowrap;
}

.brand__title { color: var(--lab-ink); font-weight: 500; }

.brand__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lab-signal-strong);
  flex-shrink: 0;
}

/* Dark ground (footer) */
.brand--dark .brand__mark {
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(0, 180, 216, 0.22) 0%, rgba(0, 180, 216, 0) 60%),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(158, 230, 247, 0.22);
}

.brand--dark .brand__name { color: #fff; }
.brand--dark .brand__role { color: rgba(255, 255, 255, 0.45); }
.brand--dark .brand__title { color: var(--lab-signal); }

.footer__brand-lockup {
  --brand-tile: 52px;
  gap: 14px;
  margin-bottom: 28px;
}

.footer__brand-lockup .brand__mark { border-radius: 14px; }
.footer__brand-lockup .brand__name { font-size: 22px; }
.footer__brand-lockup .brand__role { font-size: 10.5px; }

/* Navbar compacting (navbar is hidden ≤768px; mobile menu takes over) */
.navbar__nav { flex: 1 1 auto; justify-content: center; min-width: 0; }

/* Navbar logo: mark only, scaled to the 72px bar */
.navbar__logo.brand {
  --brand-tile: 48px;
  gap: 0;
}

.navbar__logo .brand__mark { border-radius: 13px; }
.navbar__logo .brand__mark::before { inset: 10%; }

@media (max-width: 1199px) {
  .navbar__inner { gap: 16px; }
  .navbar__logo.brand { --brand-tile: 44px; }
}

@media (max-width: 1080px) {
  .navbar__link { padding: 7px 9px; }
  .navbar__opinion,
  .navbar__appointment {
    width: 40px;
    min-width: 0;
    padding: 0;
  }
  .navbar__opinion svg,
  .navbar__appointment svg { margin: 0; }
  .navbar__btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .brand { --brand-tile: 38px; gap: 10px; }
  .brand__mark { border-radius: 11px; }
  .brand__name { font-size: 16px; }
  .brand__role { font-size: 9px; letter-spacing: 0.04em; gap: 6px; }
}

@keyframes brandScan {
  0%   { top: -40%; opacity: 0; }
  15%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lab-ticker__track { animation: none; }
  .lab-hero__scan { display: none; }
  .brand__mark,
  .brand:hover .brand__mark { transition: none; transform: none; }
  .brand:hover .brand__mark::after { animation: none; }
}
