  /* ============ Tokens ============ */
  :root {
    --bg: #ffffff;
    --bg-alt: #f4f5fb;
    --surface: #ffffff;
    --ink: #11203a;
    --ink-soft: #2a3a55;
    --muted: #5a6680;
    --faint: #8a93a8;
    --line: rgba(17, 32, 58, 0.10);
    --line-2: rgba(17, 32, 58, 0.16);

    --brand: #2f4cf0;
    --brand-2: #5b6bff;
    --brand-ink: #ffffff;

    --c-pharma: #2f6df0;
    --c-device: #7b5cff;
    --c-genomics: #12a08f;
    --c-nutra: #e07d2a;
    --c-products: #1f9d57;
    --c-funding: #d6336c;

    --footer-bg: #0c0f17;
    --footer-ink: #c7cedd;

    --shadow-sm: 0 2px 8px -3px rgba(17, 32, 58, 0.18);
    --shadow-card: 0 18px 40px -22px rgba(17, 32, 58, 0.40);
    --shadow-float: 0 30px 70px -34px rgba(17, 32, 58, 0.45), 0 6px 18px -8px rgba(17, 32, 58, 0.20);

    --r-sm: 12px; --r-md: 16px; --r-lg: 22px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);

    --z-dropdown: 50; --z-totop: 90; --z-skip: 100;
  }
  html[data-theme="dark"] {
    --bg: #0c0f17;
    --bg-alt: #11151f;
    --surface: #151a26;
    --ink: #eef2f9;
    --ink-soft: #c9d2e2;
    --muted: #9aa6bd;
    --faint: #6f7b93;
    --line: rgba(255, 255, 255, 0.10);
    --line-2: rgba(255, 255, 255, 0.18);
    --brand: #5b6bff;
    --footer-bg: #06080d;
    --footer-ink: #aab3c6;
    --shadow-card: 0 18px 40px -22px rgba(0,0,0,0.6);
    --shadow-float: 0 30px 70px -30px rgba(0,0,0,0.75);
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: "Noto Sans Thai", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    line-height: 1.5;
    transition: background-color .4s var(--ease), color .4s var(--ease);
  }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; }
  img { max-width: 100%; display: block; }
  h1,h2,h3,p { margin: 0; }
  :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
  .shell { width: min(1240px, 100% - 48px); margin-inline: auto; }
  .eyebrow-link { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-weight: 600; font-size: 14px; }
  .eyebrow-link:hover { gap: 11px; }
  .sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
  .sec-title { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
  .sec-sub { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 64ch; line-height: 1.65; }

  /* ============ Announcement ============ */
  .announce { background: var(--bg); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); transition: background-color .4s var(--ease), border-color .4s var(--ease); }
  .announce__row { display: flex; align-items: center; justify-content: space-between; height: 40px; gap: 16px; }
  .announce__right { display: flex; align-items: center; gap: 22px; }
  .announce__right a:hover { color: var(--ink); }
  .toggle { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); border: 0; background: none; padding: 0; font-size: 12.5px; }
  .switch { width: 38px; height: 21px; border-radius: 999px; background: var(--line-2); position: relative; transition: background-color .25s var(--ease); }
  .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .28s var(--ease); }
  html[data-theme="dark"] .switch { background: var(--brand); }
  html[data-theme="dark"] .switch::after { transform: translateX(17px); }

  /* ============ Header / nav ============ */
  .nav__row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
  .brand-group { display: flex; align-items: center; gap: 14px; }
  .brand { display: flex; flex-direction: column; gap: 2px; }
  .brand__name { font-weight: 800; font-size: 22px; letter-spacing: .14em; color: var(--ink); }
  .brand__sub { font-size: 9px; color: var(--muted); letter-spacing: .01em; max-width: 170px; line-height: 1.3; }

  .site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .3s var(--ease); }
  .site-header.is-stuck { box-shadow: var(--shadow-card); }

  /* language menu */
  .lang-wrap { position: relative; }
  .lang { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); color: var(--ink-soft); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; transition: border-color .2s; }
  .lang:hover, .lang[aria-expanded="true"] { border-color: var(--brand); }
  .lang__chev { transition: transform .2s var(--ease); }
  .lang[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
  .lang-menu { position: absolute; left: 0; top: calc(100% + 8px); min-width: 190px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); box-shadow: var(--shadow-float); padding: 6px; z-index: var(--z-dropdown); display: flex; flex-direction: column; gap: 2px; }
  .lang-menu[hidden] { display: none; }
  .lang-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: start; border: 0; background: transparent; color: var(--ink); border-radius: 8px; padding: 9px 11px; font-size: 14px; font-weight: 500; }
  .lang-opt:hover:not([aria-disabled="true"]) { background: color-mix(in srgb, var(--ink) 6%, transparent); }
  .lang-opt.is-current { font-weight: 700; }
  .lang-opt .check { color: var(--brand); flex: none; }
  .lang-opt[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; }
  .lang-opt .soon { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }

  /* skip link */
  .skip-link { position: absolute; left: 16px; top: -100px; z-index: var(--z-skip); background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-card); transition: top .2s var(--ease); }
  .skip-link:focus { top: 12px; }
  #main:focus { outline: none; }
  .nav__links { display: flex; align-items: center; gap: 32px; font-size: 14.5px; }
  .nav__links a { position: relative; color: var(--muted); font-weight: 500; padding: 6px 0; transition: color .2s; }
  .nav__links a:hover { color: var(--ink); }
  .nav__links a.is-active { color: var(--ink); font-weight: 600; }
  .nav__links a.is-active::after { content:""; position:absolute; left:0; right:0; bottom:-3px; height:2px; border-radius:2px; background: var(--brand); }
  .signin { border: 1px solid var(--line-2); color: var(--ink); background: var(--surface); border-radius: 999px; padding: 10px 22px; font-size: 14px; font-weight: 600; transition: border-color .2s, transform .15s var(--ease); }
  .signin:hover { border-color: var(--brand); }
  .signin:active { transform: translateY(1px); }
  .nav__actions { display: flex; align-items: center; gap: 12px; }

  /* mobile nav (hamburger drawer) */
  .nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 12px; color: var(--ink); transition: border-color .2s; }
  .nav-toggle:hover { border-color: var(--brand); }
  .mobile-nav { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: var(--surface); color: var(--ink); box-shadow: none;
    transform: translateX(100%); opacity: 0;
    transition: transform .35s var(--ease), opacity .35s var(--ease), overlay .35s var(--ease) allow-discrete, display .35s var(--ease) allow-discrete; }
  .mobile-nav[open] { display: flex; flex-direction: column; transform: translateX(0); opacity: 1; }
  @starting-style { .mobile-nav[open] { transform: translateX(100%); opacity: 0; } }
  .mobile-nav::backdrop { background: rgba(8,12,22,.5); opacity: 0; transition: opacity .35s var(--ease), overlay .35s var(--ease) allow-discrete, display .35s var(--ease) allow-discrete; }
  .mobile-nav[open]::backdrop { opacity: 1; }
  @starting-style { .mobile-nav[open]::backdrop { opacity: 0; } }
  .mobile-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .mobile-nav__head .brand__name { font-size: 20px; }
  .mobile-nav__close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); background: transparent; border-radius: 10px; color: var(--ink); transition: border-color .2s; }
  .mobile-nav__close:hover { border-color: var(--brand); }
  .mobile-nav__links { display: flex; flex-direction: column; padding: 14px; gap: 2px; }
  .mobile-nav__links a { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; border-radius: 10px; font-size: 16px; font-weight: 600; color: var(--ink-soft); transition: background-color .2s, color .2s; }
  .mobile-nav__links a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
  .mobile-nav__links a.is-active { color: var(--brand); }
  .mobile-nav__foot { margin-top: auto; padding: 18px 20px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .mobile-nav__util { display: flex; gap: 20px; font-size: 14px; font-weight: 500; color: var(--muted); }
  .mobile-nav__util a { transition: color .2s; }
  .mobile-nav__util a:hover { color: var(--ink); }
  @media (prefers-reduced-motion: reduce) { .mobile-nav, .mobile-nav::backdrop { transition: none; } }

  /* ============ Auth modal ============ */
  .modal { width: min(460px, 92vw); max-height: 92vh; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); padding: 0; box-shadow: var(--shadow-float);
    opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .28s var(--ease), transform .28s var(--ease), overlay .28s var(--ease) allow-discrete, display .28s var(--ease) allow-discrete; }
  .modal[open] { opacity: 1; transform: none; }
  @starting-style { .modal[open] { opacity: 0; transform: translateY(12px) scale(.98); } }
  .modal::backdrop { background: rgba(8,12,22,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .28s var(--ease), overlay .28s var(--ease) allow-discrete, display .28s var(--ease) allow-discrete; }
  .modal[open]::backdrop { opacity: 1; }
  @starting-style { .modal[open]::backdrop { opacity: 0; } }
  .modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 24px 24px 0; }
  .modal__title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
  .modal__subtitle { margin-top: 4px; font-size: 13px; color: var(--muted); }
  .modal__close { flex: none; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); background: transparent; border-radius: 10px; color: var(--ink); transition: border-color .2s; }
  .modal__close:hover { border-color: var(--brand); }
  .modal__body { padding: 20px 24px 26px; overflow-y: auto; }
  .thaiid-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, #2f4cf0, #5b6bff); color: #fff; border: 0; border-radius: 12px; padding: 13px 18px; font-size: 15px; font-weight: 700; transition: filter .2s, transform .15s var(--ease); }
  .thaiid-btn:hover { filter: brightness(1.07); } .thaiid-btn:active { transform: translateY(1px); }
  .thaiid-btn__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px; background: rgba(255,255,255,.22); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
  .modal__divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; margin: 20px 0; }
  .modal__divider::before, .modal__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
  .field { margin-bottom: 14px; }
  .field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
  .field .req { color: var(--c-funding); }
  .field input { width: 100%; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; color: var(--ink); font-size: 14px; font-family: inherit; transition: border-color .2s, box-shadow .2s; }
  .field input::placeholder { color: var(--faint); }
  .field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
  .field input:user-invalid { border-color: var(--c-funding); }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .modal__submit { width: 100%; margin-top: 6px; background: var(--brand); color: #fff; border: 0; border-radius: 12px; padding: 13px 18px; font-size: 15px; font-weight: 700; transition: filter .2s, transform .15s var(--ease); }
  .modal__submit:hover { filter: brightness(1.08); } .modal__submit:active { transform: translateY(1px); }
  .modal__foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
  .modal__foot a { color: var(--brand); font-weight: 600; }
  @media (prefers-reduced-motion: reduce) { .modal, .modal::backdrop { transition: none; } }
  @media (max-width: 440px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

  /* confirm dialog */
  .modal.confirm { width: min(380px, 92vw); }
  .confirm__body { padding: 28px 24px 24px; text-align: center; }
  .confirm__ic { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px; display: inline-flex; align-items: center; justify-content: center; color: var(--c-funding); background: color-mix(in srgb, var(--c-funding) 14%, transparent); }
  .confirm__body h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
  .confirm__body p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 22px; }
  .confirm__btns { display: flex; gap: 10px; }
  .confirm__btns button { flex: 1; border-radius: 12px; padding: 13px; font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; transition: filter .2s, border-color .2s; }
  .c-cancel { background: transparent; border: 1px solid var(--line-2); color: var(--ink); }
  .c-cancel:hover { border-color: var(--ink); }
  .c-ok { background: var(--c-funding); border: 0; color: #fff; }
  .c-ok:hover { filter: brightness(1.08); }

  /* ============ Search card ============ */
  .search-wrap { position: relative; z-index: 5; }
  .search-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 20px; transition: background-color .4s var(--ease); }
  .filters { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
  .chip { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 500; transition: all .2s; }
  .chip:hover { color: var(--ink); border-color: var(--line-2); }
  .chip.is-active { background: var(--ink); color: var(--bg); border-color: transparent; }
  .search-row { display: flex; gap: 12px; }
  .search-input { flex: 1; display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 0 16px; }
  .search-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
  .search-input input { border: 0; outline: none; background: transparent; color: var(--ink); font-size: 15px; padding: 15px 0; width: 100%; font-family: inherit; }
  .search-input input::placeholder { color: var(--faint); }
  .btn-search { display: inline-flex; align-items: center; gap: 9px; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: var(--r-sm); padding: 0 26px; font-size: 15px; font-weight: 600; transition: filter .2s, transform .15s var(--ease); }
  .btn-search:hover { filter: brightness(1.08); } .btn-search:active { transform: translateY(1px); }

  /* ============ Cards ============ */
  section.block { padding: 88px 0; }
  .block--alt { background: var(--bg-alt); transition: background-color .4s var(--ease); }
  .cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--line-2); }
  .card__media { position: relative; aspect-ratio: 16/10; background: linear-gradient(140deg, #3a57f2, #2336c4); }
  .card__tag { position: absolute; z-index: 2; top: 10px; right: 10px; background: rgba(12,15,23,.62); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 7px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); letter-spacing: .02em; }
  .card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
  .pill { align-self: flex-start; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
  .pill--pharma { color: var(--c-pharma); background: color-mix(in srgb, var(--c-pharma) 12%, transparent); }
  .pill--device { color: var(--c-device); background: color-mix(in srgb, var(--c-device) 12%, transparent); }
  .pill--genomics { color: var(--c-genomics); background: color-mix(in srgb, var(--c-genomics) 14%, transparent); }
  .pill--nutra { color: var(--c-nutra); background: color-mix(in srgb, var(--c-nutra) 14%, transparent); }
  .card__title { font-size: 15.5px; font-weight: 600; line-height: 1.45; color: var(--ink); }
  .card__desc { font-size: 13px; line-height: 1.6; color: var(--muted); }
  .card__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); }
  .card__meta { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
  .card__meta small { display: block; color: var(--faint); font-weight: 400; margin-top: 2px; }
  .card__go { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: all .2s; flex: none; }
  .card__go:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
  .card__media::before { content:""; position:absolute; inset:0;
    background-image:
      url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.16'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
      radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.6px);
    background-size: 34px auto, 22px 22px;
    opacity: .55; mix-blend-mode: soft-light; }
  .card__media::after { content:"TILSNA"; position:absolute; inset:0; z-index:1;
    display:flex; align-items:center; justify-content:center;
    font-weight:800; font-size:1.5rem; letter-spacing:.24em; text-indent:.24em;
    color:rgba(255,255,255,.92); }

  /* ============ Footer ============ */
  .footer { position: relative; background: var(--footer-bg); color: var(--footer-ink); overflow: hidden; }
  .footer::before { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.4px); background-size: 26px 26px; }
  .footer__top { position: relative; display: flex; justify-content: space-between; gap: 40px; padding: 56px 0 30px; flex-wrap: wrap; align-items: flex-start; }
  .footer__brand { max-width: 300px; }
  .footer__brand .brand__name { color: #fff; }
  .footer__brand p { margin-top: 12px; font-size: 13px; color: #8a93a8; line-height: 1.6; }
  .socials { display: flex; gap: 12px; margin-top: 18px; }
  .socials a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; color: #c7cedd; transition: all .2s; }
  .socials a:hover { background: #fff; color: #0c0f17; }
  .footer__contact { text-align: right; }
  .footer__contact-label { display: block; font-size: 14px; font-weight: 600; color: #aab3c6; margin-bottom: 8px; }
  .footer__phone { display: inline-block; font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: .01em; line-height: 1.05; color: #fff; transition: color .2s var(--ease); }
  .footer__phone:hover { color: #aeb9ff; }
  .footer__hours { display: block; font-size: 13px; color: #8a93a8; margin-top: 10px; }
  .footer__cols { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 24px 0 40px; border-top: 1px solid rgba(255,255,255,.08); }
  .fcol h4 { font-size: 12px; letter-spacing: .04em; color: #6f7b93; margin-bottom: 14px; font-weight: 700; }
  .fcol a, .fcol p { display: block; font-size: 13.5px; color: #aab3c6; margin-bottom: 10px; }
  .fcol a:hover { color: #fff; }
  .fcol .with-ic { display: flex; align-items: center; gap: 8px; }
  .watermark { position: relative; font-size: clamp(2rem, 7vw, 5.4rem); font-weight: 800; letter-spacing: -0.02em; color: rgba(255,255,255,.08); line-height: 1.15; padding: 10px 0 30px; }
  .watermark .wm-hl { color: rgba(255,255,255,.92); }
  .wm-caret { display: inline-block; width: .045em; min-width: 3px; height: .9em; margin-left: .06em; background: rgba(255,255,255,.55); border-radius: 2px; transform: translateY(.1em); animation: caret-blink 1s steps(1) infinite; }
  @keyframes caret-blink { 50% { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .wm-caret { animation: none; } }
  .footer__bar { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: #6f7b93; flex-wrap: wrap; }
  .footer__bar nav { display: flex; gap: 22px; }
  .footer__bar a:hover { color: #fff; }
  .totop { position: fixed; right: 26px; bottom: 26px; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; border: 0; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-card); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); z-index: 90; }
  .totop.show { opacity: 1; pointer-events: auto; }
  .totop:hover { transform: translateY(-3px); }

  /* ============ Scroll reveal ============ */
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

  /* ============ Text size control ============ */
  :root { --fz: 1; }
  html[data-fs="large"]  { --fz: 1.14; }
  html[data-fs="xlarge"] { --fz: 1.30; }
  .fontsize { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; }
  .fontsize button { border: 0; background: none; color: var(--muted); min-width: 26px; height: 22px; border-radius: 999px; line-height: 1; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s, color .2s; }
  .fontsize button:nth-child(1) { font-size: 11px; }
  .fontsize button:nth-child(2) { font-size: 13px; }
  .fontsize button:nth-child(3) { font-size: 15px; }
  .fontsize button.is-active { background: var(--ink); color: var(--bg); }
  .sec-title { font-size: calc(clamp(1.5rem, 3vw, 2.05rem) * var(--fz)); }
  .sec-sub { font-size: calc(15px * var(--fz)); }
  .eyebrow-link { font-size: calc(14px * var(--fz)); }
  .nav__links { font-size: calc(14.5px * var(--fz)); }
  .signin { font-size: calc(14px * var(--fz)); }
  .chip { font-size: calc(13.5px * var(--fz)); }
  .search-input input { font-size: calc(15px * var(--fz)); }
  .btn-search { font-size: calc(15px * var(--fz)); }
  .card__title { font-size: calc(15.5px * var(--fz)); }
  .card__desc { font-size: calc(13px * var(--fz)); }
  .card__meta { font-size: calc(12px * var(--fz)); }
  .pill { font-size: calc(11.5px * var(--fz)); }

  /* ============ Research page (explore) ============ */
  .page-head { padding: 36px 0 26px; }
  .page-head .sec-title { margin-bottom: 8px; }
  .research-search { padding-bottom: 28px; }
  .research-body { padding-bottom: 80px; }
  .research-layout { display: grid; grid-template-columns: 256px 1fr; gap: 28px; align-items: start; }

  .sidebar { position: sticky; top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
  .sidebar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .sidebar__head h2 { font-size: 16px; font-weight: 700; }
  .sidebar__clear { background: none; border: 0; color: var(--brand); font-size: 12.5px; font-weight: 600; }
  .fgroup { border-top: 1px solid var(--line); padding: 16px 0 4px; }
  .fgroup:first-of-type { border-top: 0; }
  .fgroup__title { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; padding: 0 0 12px; color: var(--ink); font-size: 13px; font-weight: 700; }
  .fgroup__title svg { color: var(--muted); transition: transform .2s var(--ease); }
  .fcheck { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
  .fcheck input { width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
  .fchips { display: flex; flex-wrap: wrap; gap: 8px; }
  .fchip { border: 1px solid var(--line-2); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 500; transition: all .15s; }
  .fchip:hover { color: var(--ink); border-color: var(--brand); }
  .fchip.is-active { background: var(--ink); color: var(--bg); border-color: transparent; }

  .results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
  .results-head .count { font-size: 14px; font-weight: 600; color: var(--ink); }
  .results-head .clear-all { background: none; border: 0; color: var(--muted); font-size: 13px; font-weight: 500; }
  .results-head .clear-all:hover { color: var(--ink); }

  .card__metrics { display: flex; flex-wrap: wrap; gap: 6px; }
  .metric { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
  .metric--a { color: var(--c-pharma); background: color-mix(in srgb, var(--c-pharma) 13%, transparent); }
  .metric--b { color: var(--c-nutra); background: color-mix(in srgb, var(--c-nutra) 15%, transparent); }
  .metric--c { color: var(--c-genomics); background: color-mix(in srgb, var(--c-genomics) 15%, transparent); }
  .metric--d { color: var(--c-funding); background: color-mix(in srgb, var(--c-funding) 14%, transparent); }
  .verify { font-size: 11px; color: var(--faint); display: inline-flex; align-items: center; gap: 5px; }

  .loadmore-wrap { display: flex; justify-content: center; margin-top: 40px; }
  .loadmore { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); border-radius: 999px; padding: 12px 30px; font-size: 14px; font-weight: 600; transition: border-color .2s, transform .15s var(--ease); }
  .loadmore:hover { border-color: var(--brand); }
  .loadmore:active { transform: translateY(1px); }

  /* ============ Logged-in user menu ============ */
  .user-menu { position: relative; }
  .user-menu[hidden] { display: none; }
  .auth-error { color: var(--c-funding); font-size: 13px; font-weight: 600; margin: 0 0 10px; }
  .auth-error[hidden] { display: none; }
  .user-chip { display: inline-flex; align-items: center; gap: 11px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 16px 7px 7px; font-family: inherit; transition: border-color .2s; }
  .user-chip:hover, .user-chip[aria-expanded="true"] { border-color: var(--brand); }
  .user-chip__av { width: 36px; height: 36px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 13px; background: linear-gradient(135deg, var(--brand), #8b5cf6); }
  .user-chip__txt { display: flex; flex-direction: column; gap: 3px; line-height: 1.15; text-align: left; margin-right: auto; }
  .user-chip__name { font-size: 13.5px; font-weight: 700; }
  .user-chip__role { display: none; }
  .user-chip__chev { color: var(--muted); transition: transform .2s var(--ease); }
  .user-chip[aria-expanded="true"] .user-chip__chev { transform: rotate(180deg); }
  .user-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow-float); padding: 8px; z-index: 60; }
  .user-pop[hidden] { display: none; }
  .user-pop__head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
  .user-pop__name { font-size: 14px; font-weight: 700; }
  .user-pop__role { font-size: 12px; color: var(--brand); font-weight: 600; }
  .user-pop__item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink); border-radius: 9px; padding: 10px 11px; font-size: 13.5px; font-family: inherit; cursor: pointer; transition: background-color .15s; }
  .user-pop__item:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
  .user-pop__item svg { color: var(--muted); flex: none; }
  .user-pop__logout { color: var(--c-funding); }
  .user-pop__logout svg { color: var(--c-funding); }

  /* ============ Profile / welcome dashboard ============ */
  .welcome__card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 34px; position: relative; overflow: hidden; box-shadow: var(--shadow-card); }
  .welcome__card[hidden] { display: none; }
  .welcome__card::after { content:""; position:absolute; right:-80px; top:-80px; width:260px; height:260px; border-radius:50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 45%, transparent), transparent 70%); filter: blur(30px); opacity:.5; pointer-events:none; }
  .welcome__top { position: relative; display: flex; align-items: center; gap: 16px; }
  .welcome__av { width: 56px; height: 56px; border-radius: 16px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 20px; background: linear-gradient(135deg, var(--brand), #8b5cf6); }
  .welcome__hi { font-size: 13px; color: var(--muted); }
  .welcome__name { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
  .welcome__role { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--brand); background: color-mix(in srgb, var(--brand) 13%, transparent); padding: 3px 11px; border-radius: 999px; }
  .welcome__lead { position: relative; margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 70ch; }
  .welcome__grid { position: relative; margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .welcome__grid a { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; transition: border-color .2s, transform .2s var(--ease); }
  .welcome__grid a:hover { border-color: var(--brand); transform: translateY(-3px); }
  .welcome__grid .wt { font-size: 14.5px; font-weight: 700; color: var(--ink); }
  .welcome__grid .wd { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
  .login-required { text-align: center; max-width: 460px; margin: 40px auto; padding: 44px 30px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
  .login-required[hidden] { display: none; }
  .login-required h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
  .login-required p { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
  .login-required .signin { padding: 13px 28px; }

  /* ============ Bookmarks ============ */
  .bookmark { position: absolute; z-index: 2; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(12,15,23,.5); color: #fff; display: none; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background-color .2s, transform .15s var(--ease); }
  .is-auth .bookmark { display: inline-flex; }
  .bookmark:hover { background: rgba(12,15,23,.72); transform: scale(1.06); }
  .bookmark svg { width: 17px; height: 17px; }
  .bookmark.is-saved { background: var(--brand); }
  .bookmark.is-saved svg { fill: currentColor; }
  .bm-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .bm-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
  .bm-item__cat { font-size: 11.5px; font-weight: 700; color: var(--brand); }
  .bm-item__title { font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--ink); }
  .bm-remove { align-self: flex-start; margin-top: 4px; background: none; border: 0; color: var(--c-funding); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 0; }
  .bm-empty { color: var(--muted); font-size: 14px; }

  /* ============ Researcher / company result cards ============ */
  .rcard__top, .ocard__top { display: flex; align-items: center; gap: 12px; }
  .rcard__av, .ocard__av { width: 46px; height: 46px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 16px; background: linear-gradient(135deg, var(--brand), #8b5cf6); border-radius: 50%; }
  .ocard__av { border-radius: 12px; }
  .rcard__name, .ocard__name { font-size: 15px; font-weight: 700; color: var(--ink); }
  .rcard__role, .ocard__sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
  .rcard__stats { display: flex; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
  .rcard__stats span { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
  .rcard__stats b { color: var(--brand); }
  #resResearch[hidden], #resDynamic[hidden], #resEmpty[hidden] { display: none !important; }
  @media (max-width: 760px) { .bm-list { grid-template-columns: 1fr; } }

  /* ============ Responsive ============ */
  @media (max-width: 760px) { .welcome__grid { grid-template-columns: 1fr; } .user-chip__txt { display: none; } }
  @media (max-width: 1040px) { .cards, .cards--3 { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 920px) {
    .nav__links, .brand__sub { display: none; }
    .nav-toggle { display: inline-flex; }
    .research-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
  }
  @media (max-width: 760px) {
    .announce__row { height: auto; min-height: 46px; padding: 7px 0; gap: 12px; justify-content: flex-end; }
    .announce__row > span { display: none; }
    .announce__right { gap: 14px; }
    .announce__right > a { display: none; }
    .toggle #themeLabel { display: none; }
    .toggle { gap: 7px; }
    .fontsize button { min-width: 24px; height: 20px; }
  }
  @media (max-width: 640px) {
    section.block { padding: 60px 0; }
    .cards, .cards--3 { grid-template-columns: 1fr; }
    .search-card { padding: 16px; }
    .search-row { flex-wrap: wrap; gap: 10px; }
    .search-input { flex: 1 1 100%; }
    .btn-search { flex: 1 1 100%; justify-content: center; padding: 17px; font-size: 16.5px; font-weight: 700; }
    .footer__top, .footer__contact { text-align: left; }
    .footer__cols { grid-template-columns: repeat(2,1fr); }
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .01ms !important; } }
