/* =====================================================================
   NEEL OVERSEAS: home3.css  (third homepage, home-3.html)
   Structure after the trading-house reference; the finish is Neel's own:
   a full-width bright photo slider with a spec ticker under it, a
   lab "shade card" of drawdowns, liquid application drops, a specimen
   certificate of analysis, the CuPc molecule as line art, and a colour
   border that tracks how far down the page you are.
   Tokens, type, buttons, forms and product cards come from main.css.
   Motion rule: hover effects use the individual scale / translate /
   rotate properties, never `transform`, so they can't fight GSAP.
   ===================================================================== */
.v3 .btn { border-radius: 999px; }
.v3-h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); text-align: center; }
.v3-h2--left { text-align: left; }
.v3-sub { text-align: center; color: var(--text-2); max-width: 60ch; margin: .7rem auto 0; }
/* section label: plain words in the body font, no caps, no tracking, no ornament */
.v3-eyebrow { margin-bottom: .55rem; font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--brand); }
.v3-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 1rem 3rem; align-items: end; margin-bottom: 2rem; }
.v3-head > p { color: var(--text-2); font-size: .95rem; max-width: 52ch; }
@media (max-width: 860px) { .v3-head { grid-template-columns: 1fr; } }

/* ---------- the product range as a swatch rule between sections ---------- */
.v3-swatchline { height: 6px; background-image: var(--stripe-x); background-size: var(--stripe-w, 756px) 6px; background-repeat: repeat-x; transform-origin: left; }

/* ---------- header: a contact bar, then logo + nav + one call to action ---------- */
.v3-hd { position: sticky; top: 0; z-index: 70; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .3s ease; }
.v3-hd.is-scrolled { box-shadow: 0 12px 30px -20px rgba(10,41,62,.5); }
.v3-topbar { background: linear-gradient(90deg, var(--brand) 0%, var(--logo) 100%); color: #fff; font-size: .82rem; }
.v3-topbar-in { display: flex; align-items: center; gap: 1.5rem; min-height: 40px; }
.v3-topbar a { display: inline-flex; align-items: center; gap: .45rem; color: inherit; text-decoration: none; font-weight: 500; white-space: nowrap; }
.v3-topbar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.v3-topbar .ic { width: 15px; height: 15px; flex: none; color: #fff; opacity: .9; }
.v3-tb-note { margin-left: auto; color: rgba(255,255,255,.9); }
.v3-soc { display: inline-flex; gap: .8rem; }
.v3-soc a { color: rgba(255,255,255,.8); } .v3-soc a:hover { color: #fff; }
.v3-hd-in { display: flex; align-items: center; gap: 1.2rem; min-height: 78px; }
.v3-logo { margin-right: auto; min-width: 0; }
@media (max-width: 1240px) { .v3-logo .logo-txt small { display: none; } }
.v3-hd-right { display: flex; align-items: center; gap: .8rem; }
.v3-hd-cta { min-height: 42px; padding: .6rem 1.2rem; font-size: .9rem; white-space: nowrap; }
.v3-nav { display: flex; align-items: center; gap: .1rem; }
.v3-nav > a, .v3-dd-btn { position: relative; display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; padding: .55rem .6rem; color: var(--text); text-decoration: none; font: inherit; font-size: .9rem; font-weight: 500; background: none; border: 0; cursor: pointer; }
.v3-nav > a::after, .v3-dd-btn::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .15rem; height: 2px; border-radius: 2px; background: var(--logo); transform-origin: left; scale: 0 1; transition: scale .35s cubic-bezier(.2,.8,.2,1); }
.v3-nav > a:hover::after, .v3-nav > a[aria-current="true"]::after, .v3-dd-btn[aria-expanded="true"]::after { scale: 1 1; }
.v3-nav > a[aria-current="true"] { color: var(--brand); }
.v3-dd { position: relative; }
.v3-dd-btn .ic { width: 14px; height: 14px; transition: rotate .3s ease; }
.v3-dd-btn[aria-expanded="true"] .ic { rotate: 180deg; }
.v3-mega { position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 10px; width: 560px; padding: .9rem; background: #fff; border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -24px rgba(10,41,62,.45); opacity: 0; visibility: hidden; transition: opacity .25s ease, translate .35s cubic-bezier(.2,.8,.2,1), visibility 0s linear .35s; }
.v3-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.v3-mega.open { opacity: 1; visibility: visible; translate: -50% 0; transition: opacity .25s ease, translate .35s cubic-bezier(.2,.8,.2,1); }
.v3-mega-in { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem; }
.v3-mitem { display: flex; align-items: center; gap: .8rem; padding: .6rem .7rem; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background .2s ease; }
.v3-mitem:hover, .v3-mitem:focus-visible { background: var(--bg-2); }
.v3-mitem .sw { width: 42px; height: 42px; border-radius: 8px; flex: none; background-size: cover; background-position: center; }
.v3-mitem .ico { width: 42px; height: 42px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; }
.v3-mitem .ico .ic { width: 20px; height: 20px; }
.v3-mitem b { display: block; font-size: .86rem; font-weight: 600; line-height: 1.3; }
.v3-mitem small { display: block; font-size: .78rem; font-variant-numeric: tabular-nums; color: var(--text-3); }
.v3-mega-all { display: inline-flex; align-items: center; gap: .35rem; margin: .5rem .7rem .15rem; font-size: .78rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.v3-mega-all:hover { text-decoration: underline; }
.v3-mega-all .ic { width: 14px; height: 14px; }
.v3-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--brand); place-items: center; cursor: pointer; }
@media (max-width: 900px) { .v3-tb-note { display: none; } }
@media (max-width: 520px) { .v3-topbar-in { gap: .9rem; font-size: .76rem; } .v3-topbar .ic { width: 14px; height: 14px; } }
@media (max-width: 1150px) {
  .v3-hd-in { min-height: 72px; }
  .v3-burger { display: grid; }
  .v3-hd-right { display: none; }
  .v3-hd-right.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; align-items: stretch; background: #fff; padding: .6rem var(--gutter) 1.2rem; box-shadow: var(--shadow); max-height: calc(100vh - 72px); overflow: auto; }
  .v3-hd-right.open { flex-direction: column; gap: .4rem; }
  .v3-hd-right.open .v3-nav { flex-direction: column; align-items: stretch; }
  .v3-hd-cta { width: 100%; margin-top: .8rem; }
  .v3-nav > a, .v3-dd-btn { width: 100%; justify-content: space-between; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .v3-nav > a::after, .v3-dd-btn::after { display: none; }
  .v3-mega { position: static; width: auto; translate: none; opacity: 1; visibility: visible; display: none; border: 0; box-shadow: none; padding: .3rem 0 .6rem; transition: none; }
  .v3-mega.open { display: block; translate: none; }
  .v3-mega-in { grid-template-columns: 1fr; }
}

/* ---------- hero: full-width photo slider, bright photos, soft light gradient ---------- */
.v3-hero { position: relative; overflow: hidden; isolation: isolate; height: clamp(560px, 48vw, 760px); background: #EAF4FB; color: var(--ink); }
.v3-slides { position: absolute; inset: 0; }
.v3-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s linear 1.2s; }
.v3-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s ease; }
.v3-slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 70% 50%); }
.v3-slide::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(247,251,254,.97) 0%, rgba(247,251,254,.9) 28%, rgba(247,251,254,.58) 46%, rgba(247,251,254,0) 66%),
              linear-gradient(0deg, rgba(247,251,254,.8) 0%, rgba(247,251,254,0) 24%); }
.v3-slide-in { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding-bottom: 3.5rem; }
.v3-slide-txt { max-width: 620px; }
.v3-slide-h { font-size: clamp(2.4rem, 4.8vw, 4.2rem); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; max-width: 14ch; text-wrap: balance; }
.v3-slide-h mark { color: inherit; padding: 0 .02em; background: linear-gradient(90deg, var(--logo), #13A35B) no-repeat 0 90% / var(--mk, 100%) .13em; }
.v3-slide-p { margin-top: 1.2rem; max-width: 46ch; font-size: 1.05rem; color: var(--text-2); }
.v3-slide-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }
.v3-btn-ghost { background: #fff; color: var(--brand-3); border: 1px solid var(--line); box-shadow: var(--shadow); }
.v3-btn-ghost:hover { border-color: var(--logo); color: var(--brand); }
.v3-hero-ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: 1.5rem; }
.v3-hero-ui .wrap { display: flex; align-items: center; gap: .3rem; }
.v3-count { margin-right: .9rem; font-size: .9rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.v3-count b { color: var(--ink); font-weight: 600; }
.v3-dot { position: relative; width: 54px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.v3-dot .bar { position: absolute; left: 4px; right: 4px; top: 12px; height: 4px; border-radius: 4px; background: rgba(10,41,62,.16); overflow: hidden; }
.v3-dot .bar i { position: absolute; inset: 0; background: var(--brand); transform-origin: left; transform: scaleX(0); }
.v3-pause { width: 36px; height: 36px; margin-left: .5rem; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.v3-pause:hover { color: var(--brand); border-color: var(--logo); }
.v3-pause .ic { width: 15px; height: 15px; }
@keyframes v3morph {
  0%, 100% { border-radius: 58% 42% 45% 55% / 52% 45% 55% 48%; }
  33% { border-radius: 45% 55% 62% 38% / 42% 58% 42% 58%; }
  66% { border-radius: 52% 48% 38% 62% / 60% 40% 60% 40%; } }

/* spec ticker: a slim band under the hero */
.v3-ticker { position: relative; height: 46px; display: flex; align-items: center; overflow: hidden; background: var(--ink); color: #CFE6F7; }
.v3-ticker-track { display: flex; gap: 2.6rem; padding-left: 2.6rem; white-space: nowrap; font-family: var(--f-mono); font-size: .76rem; animation: v3tick 70s linear infinite; }
.v3-ticker:hover .v3-ticker-track { animation-play-state: paused; }
.v3-ticker-track span { display: inline-flex; align-items: center; gap: .6rem; }
.v3-ticker-track i { width: 10px; height: 10px; border-radius: 50%; background: var(--m); box-shadow: 0 0 0 2px rgba(255,255,255,.22); }
@keyframes v3tick { to { translate: -50% 0; } }
@media (max-width: 760px) {
  /* phones: the photo is a clear band on top that fades into the text */
  .v3-hero { height: 720px; }
  .v3-slide-bg { inset: 0 0 auto 0; height: 52%; object-position: var(--pos-m, var(--pos, 60% 50%)); }
  .v3-slide::before { background: linear-gradient(180deg, rgba(247,251,254,0) 0%, rgba(247,251,254,0) 30%, rgba(247,251,254,.9) 42%, #F7FBFE 50%); }
  .v3-slide-in { align-items: flex-end; padding-bottom: 5rem; }
  .v3-slide-h { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .v3-slide-cta { gap: .5rem; margin-top: 1.4rem; }
  .v3-slide-cta .btn { padding: .8rem 1.1rem; font-size: .9rem; }
}

/* ---------- products: tabs + bento ---------- */
.v3-products { position: relative; overflow: hidden; background: var(--bg-2); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.v3-hex { position: absolute; right: -70px; top: -34px; width: min(320px, 30vw); height: auto; color: var(--logo); opacity: .22; pointer-events: none; }
.v3-hex path { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.v3-hex .atom { fill: currentColor; }
.v3-tabs { position: relative; display: flex; flex-wrap: wrap; gap: .2rem; width: fit-content; max-width: 100%; margin: 0 0 1.6rem; padding: .35rem; border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
.v3-tab { position: relative; z-index: 1; border: 0; background: none; padding: .62rem 1.25rem; border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--text-2); cursor: pointer; transition: color .3s ease; }
.v3-tab:hover { color: var(--brand); }
.v3-tab[aria-selected="true"] { color: #fff; }
.v3-tab-ink { position: absolute; z-index: 0; top: .35rem; bottom: .35rem; left: 0; width: 0; border-radius: 999px; background: var(--brand); transition: left .45s cubic-bezier(.2,.8,.2,1), width .45s cubic-bezier(.2,.8,.2,1); }
.v3-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 15vw, 230px); grid-auto-flow: dense; gap: 10px; }
.v3-bento.is-filtered { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-auto-rows: clamp(250px, 22vw, 320px); }
.v3-tile { position: relative; overflow: hidden; border: 0; padding: 0; border-radius: 14px; background: var(--ink); color: #fff; text-align: left; font: inherit; cursor: pointer; }
.v3-tile.big { grid-column: span 2; grid-row: span 2; } .v3-tile.tall { grid-row: span 2; } .v3-tile.wide { grid-column: span 2; }
.v3-bento.is-filtered .v3-tile { grid-column: auto; grid-row: auto; }
.v3-tile[hidden] { display: none; }
.v3-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s cubic-bezier(.2,.8,.2,1); }
.v3-tile:hover img, .v3-tile:focus-visible img { scale: 1.08; }
.v3-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--c, #0A293E) 88%, #000) 0%, color-mix(in srgb, var(--c, #0A293E) 32%, transparent) 46%, transparent 72%); }
.v3-tile-l { position: absolute; z-index: 1; left: 1.1rem; right: 1rem; bottom: 1rem; }
.v3-tile-l b { display: block; font-size: clamp(1rem, 1.4vw, 1.25rem); font-weight: 600; }
.v3-tile-l small { display: block; margin-top: .2rem; font-size: .8rem; font-variant-numeric: tabular-nums; opacity: .9; }
.v3-tile .go { display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; font-size: .85rem; font-weight: 600; opacity: 0; translate: 0 6px; transition: opacity .35s ease, translate .35s ease; }
.v3-tile:hover .go, .v3-tile:focus-visible .go { opacity: 1; translate: 0 0; }
.v3-tile--cta { display: flex; flex-direction: column; justify-content: flex-end; padding: 1.2rem; background: linear-gradient(135deg, var(--logo), var(--brand-3)); }
.v3-tile--cta::after { display: none; }
.v3-tile--cta .ic { width: 34px; height: 34px; margin-bottom: auto; opacity: .9; stroke-width: 1.5; }
.v3-tile--cta b { font-size: 1.08rem; font-weight: 600; }
.v3-tile--cta span { display: block; margin-top: .3rem; font-size: .8rem; opacity: .9; line-height: 1.45; }
.v3-tile--cta:hover { background: linear-gradient(135deg, var(--brand), var(--ink)); }
@media (max-width: 860px) { .v3-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } .v3-tile.big { grid-column: span 2; grid-row: span 1; } .v3-tile.tall { grid-row: span 1; } .v3-tile .go { opacity: 1; translate: 0 0; } }
@media (max-width: 480px) { .v3-bento, .v3-bento.is-filtered { grid-template-columns: 1fr; } .v3-tile.big, .v3-tile.wide { grid-column: auto; } }

/* ---------- shade card: drawdowns over a black-and-white opacity card ---------- */
.v3-shade { padding-block: clamp(3.5rem, 7vw, 5.5rem); background: #fff; }
.v3-cards { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 14px; }
.v3-card { display: flex; flex-direction: column; gap: .65rem; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; transition: translate .4s cubic-bezier(.2,.8,.2,1); }
.v3-card:hover, .v3-card:focus-visible { translate: 0 -6px; }
.v3-leneta { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 5 / 7; border-radius: 6px;
  background: linear-gradient(180deg, #EEF3F7 0 11%, transparent 11%), linear-gradient(90deg, #15181C 0 50%, #FBFBF7 50% 100%);
  box-shadow: 0 16px 28px -18px rgba(10,41,62,.6), inset 0 0 0 1px rgba(10,41,62,.08); transition: box-shadow .4s ease; }
.v3-card:hover .v3-leneta { box-shadow: 0 24px 36px -18px rgba(10,41,62,.6), inset 0 0 0 1px rgba(10,41,62,.08), 0 0 0 3px var(--tint); }
.v3-film { position: absolute; left: 13%; right: 13%; top: 17%; bottom: 9%; border-radius: 2px 2px 45% 45% / 2px 2px 5% 5%;
  background: linear-gradient(180deg, var(--m) 0%, var(--m) 30%, var(--r) 100%); mix-blend-mode: multiply; }
.v3-film--sheen { mix-blend-mode: screen; opacity: .3; }
.v3-bar { position: absolute; left: 7%; right: 7%; top: 14%; height: 5%; border-radius: 3px; opacity: 0; background: linear-gradient(180deg, #F5F7FA, #A9B6C3); box-shadow: 0 3px 6px rgba(0,0,0,.35); }
.v3-card b { display: block; font-size: .8rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
.v3-card small { display: block; font-size: .74rem; font-variant-numeric: tabular-nums; color: var(--text-3); }
.v3-shade-note { margin-top: 1.4rem; font-size: .76rem; color: var(--text-3); }
@media (max-width: 1100px) { .v3-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 640px) { .v3-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }

/* ---------- applications: an index list; the photo follows the row you point at ---------- */
.v3-apps { position: relative; padding-block: clamp(3.5rem, 7vw, 5.5rem); background: var(--bg-2); }
.v3-appidx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; margin-top: 2.6rem; }
.v3-ai-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.v3-ai-list li { border-bottom: 1px solid var(--line); }
.v3-ai-row { position: relative; width: 100%; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto 1.2rem; align-items: center; gap: 1rem;
  padding: 1.15rem .4rem 1.15rem 0; border: 0; background: none; font: inherit; text-align: left; color: var(--text-2); cursor: pointer; transition: color .3s ease; }
.v3-ai-row::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--logo), #13A35B); transform-origin: left; scale: 0 1; transition: scale .5s cubic-bezier(.2,.8,.2,1); }
.v3-ai-row .n { font-size: .85rem; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; transition: color .3s ease; }
.v3-ai-row .t { font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; transition: translate .45s cubic-bezier(.2,.8,.2,1); }
.v3-ai-row .c { font-size: .9rem; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.v3-ai-row .ic { width: 18px; height: 18px; color: var(--brand); opacity: 0; translate: -8px 0; transition: opacity .3s ease, translate .45s cubic-bezier(.2,.8,.2,1); }
.v3-ai-row.is-on { color: var(--ink); }
.v3-ai-row.is-on::before { scale: 1 1; }
.v3-ai-row.is-on .n { color: var(--brand); }
.v3-ai-row.is-on .t { translate: 6px 0; }
.v3-ai-row.is-on .ic { opacity: 1; translate: 0 0; }
.v3-ai-row:focus-visible { outline: 2px solid var(--logo); outline-offset: 2px; border-radius: 6px; }
.v3-ai-media { position: relative; isolation: isolate; margin: 0; min-height: 540px; border-radius: 24px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg); }
.v3-ai-imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.06; transition: opacity .7s ease, scale 1.4s cubic-bezier(.2,.8,.2,1); }
.v3-ai-imgs img.is-on { opacity: 1; scale: 1; }
.v3-ai-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(10,41,62,0) 45%, rgba(10,41,62,.5) 100%); }
.v3-ai-card { position: absolute; z-index: 2; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; display: grid; gap: .7rem; padding: 1.1rem 1.2rem; border-radius: 16px;
  background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow); color: var(--text); }
.v3-ai-card > * { animation: v3cardin .45s ease both; }
.v3-ai-card .k { font-size: .92rem; font-weight: 600; color: var(--ink); }
.v3-ai-card .chips { display: flex; flex-wrap: wrap; gap: .4rem; animation-delay: .05s; }
.v3-ai-card .chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem .3rem .4rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); font-size: .8rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.v3-ai-card .chip i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.v3-ai-all { justify-self: start; display: inline-flex; align-items: center; gap: .35rem; padding: 0; border: 0; background: none; font: inherit; font-size: .9rem; font-weight: 600; color: var(--brand); cursor: pointer; animation-delay: .1s; }
.v3-ai-all .ic { width: 16px; height: 16px; transition: translate .3s ease; }
.v3-ai-all:hover { color: var(--brand-3); } .v3-ai-all:hover .ic { translate: 4px 0; }
@keyframes v3cardin { from { opacity: 0; translate: 0 5px; } }
@media (max-width: 860px) {
  .v3-appidx { grid-template-columns: 1fr; gap: 1.6rem; }
  .v3-ai-media { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .v3-ai-media { aspect-ratio: 4 / 5; }
  .v3-ai-card { left: .75rem; right: .75rem; bottom: .75rem; padding: .9rem 1rem; }
  .v3-ai-row { grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .75rem; padding-block: 1rem; }
  .v3-ai-row .ic { display: none; }
}
@media (prefers-reduced-motion: reduce) { .v3-ai-imgs img, .v3-ai-row, .v3-ai-row::before, .v3-ai-row .t, .v3-ai-row .ic { transition: none; } .v3-ai-card > * { animation: none; } }

/* ---------- about: blob photo, specimen COA, the molecule as line art ---------- */
.v3-about { position: relative; overflow: hidden; padding-block: clamp(4rem, 8vw, 6.5rem); background: radial-gradient(circle at 96% 18%, var(--bg-2), transparent 42%), #fff; }
.v3-mol { position: absolute; right: -5%; top: 4%; width: min(560px, 48vw); height: auto; color: var(--brand-3); opacity: .1; pointer-events: none; }
.v3-mol path { fill: none; stroke: currentColor; stroke-width: .075; stroke-linecap: round; }
.v3-mol .coord { stroke-dasharray: .18 .14; }
.v3-mol .n { fill: currentColor; }
.v3-mol .cu { fill: #B07A3C; }
.v3-about-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.v3-about-art { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1.08; }
.v3-about-shadow { position: absolute; inset: 9% -3% -5% 11%; background: linear-gradient(135deg, var(--tint), #D8F3E4); border-radius: 45% 55% 62% 38% / 42% 58% 42% 58%; animation: v3morph 16s ease-in-out infinite reverse; }
.v3-about-blob { position: absolute; inset: 0 9% 7% 0; margin: 0; overflow: hidden; box-shadow: var(--shadow-lg); border-radius: 58% 42% 45% 55% / 52% 45% 55% 48%; animation: v3morph 13s ease-in-out infinite; }
.v3-about-blob img { width: 100%; height: 118%; object-fit: cover; }
.v3-coa { position: absolute; right: -3%; bottom: -6%; width: min(280px, 60%); padding: .95rem 1rem 1.05rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 30px 60px -28px rgba(10,41,62,.55); font-size: .76rem; }
.v3-coa-hd { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding-bottom: .55rem; border-bottom: 1px dashed var(--line); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.v3-coa-hd em { font-style: normal; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .06em; color: var(--warn); border: 1px solid currentColor; border-radius: 4px; padding: .05rem .35rem; }
.v3-coa-id { display: flex; align-items: center; gap: .6rem; margin: .7rem 0 .55rem; }
.v3-coa-id i { width: 32px; height: 32px; border-radius: 7px; flex: none; background: linear-gradient(135deg, var(--m), var(--r)); }
.v3-coa-id b { display: block; font-size: .8rem; } .v3-coa-id small { display: block; font-family: var(--f-mono); font-size: .62rem; color: var(--text-3); }
.v3-coa ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .32rem; }
.v3-coa li { display: flex; align-items: center; gap: .45rem; font-size: .72rem; color: var(--text-2); }
.v3-coa li svg { width: 14px; height: 14px; flex: none; color: var(--ok); }
.v3-coa li path { stroke-dasharray: 24; }
.v3-coa-stamp { position: absolute; right: 12px; bottom: 12px; padding: .2rem .5rem; border: 2px solid currentColor; border-radius: 6px; font-family: var(--f-mono); font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ok); rotate: -11deg; opacity: .85; }
.v3-about-txt .v3-h2 { margin-bottom: 1rem; }
.v3-lead { font-size: 1.06rem; color: var(--text); }
.v3-about-txt p:not(.v3-eyebrow) { color: var(--text-2); } .v3-about-txt p.v3-lead { color: var(--text); }
.v3-about-txt p + p { margin-top: .9rem; }
.v3-facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.8rem 0 2rem; padding: 0; }
.v3-facts li { padding-left: .9rem; border-left: 3px solid var(--logo); }
.v3-facts b { display: block; font-size: 1.6rem; font-weight: 600; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.v3-facts span { font-size: .78rem; color: var(--text-2); }
@media (max-width: 860px) { .v3-about-grid { grid-template-columns: 1fr; } .v3-about-art { max-width: 460px; margin: 0 auto 3rem; } .v3-mol { width: 80vw; opacity: .07; } }
@media (max-width: 480px) { .v3-facts { grid-template-columns: 1fr; } .v3-coa { width: 72%; } }

/* ---------- certificates: a document library ---------- */
.v3-certs { background: var(--bg-2); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.v3-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
.v3-doc { display: flex; flex-direction: column; gap: .6rem; min-height: 210px; padding: 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow);
  color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: translate .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.v3-doc:hover, .v3-doc:focus-visible { translate: 0 -5px; box-shadow: var(--shadow-lg); }
.v3-doc-art { position: relative; height: 92px; border: 1px solid var(--line); border-radius: 6px; transition: rotate .5s cubic-bezier(.2,.8,.2,1), scale .5s cubic-bezier(.2,.8,.2,1);
  background: repeating-radial-gradient(circle at 50% 135%, transparent 0 7px, rgba(3,142,235,.07) 7px 8px), #fff;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.v3-doc-art::before { content: ""; position: absolute; left: 14px; right: 42%; top: 18px; height: 50px; background: repeating-linear-gradient(180deg, var(--line) 0 2px, transparent 2px 9px); }
.v3-doc-art::after { content: ""; position: absolute; right: 0; top: 0; width: 18px; height: 18px; background: linear-gradient(225deg, transparent 50%, #D6E3EE 50%); }
.v3-doc-seal { position: absolute; right: 12px; bottom: 10px; width: 32px; height: 32px; color: var(--logo); opacity: .9; }
.v3-doc:hover .v3-doc-art, .v3-doc:focus-visible .v3-doc-art { rotate: -1.5deg; scale: 1.02; }
.v3-doc b { font-size: .9rem; font-weight: 600; line-height: 1.35; color: var(--text); }
.v3-doc small { font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--text-3); }
.v3-doc .st { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--brand); }
.v3-doc .st .ic { width: 14px; height: 14px; }

/* ---------- events ---------- */
.v3-events { padding-block: clamp(3.5rem, 7vw, 5rem); background: #fff; }
.v3-ev { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.v3-ev-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.v3-ev-top { position: relative; overflow: hidden; height: 128px; display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem 1.2rem; color: #fff; background: linear-gradient(135deg, var(--ink), var(--brand-3)); }
.v3-ev-top::after { content: ""; position: absolute; right: -34px; top: -34px; width: 140px; height: 140px; opacity: .55; background: linear-gradient(135deg, var(--logo), #13A35B); border-radius: 45% 55% 62% 38% / 42% 58% 42% 58%; animation: v3morph 12s ease-in-out infinite; }
.v3-ev-top i { position: relative; z-index: 1; font-style: normal; font-size: .8rem; font-weight: 600; color: var(--sky); }
.v3-ev-top b { position: relative; z-index: 1; font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.v3-ev-body { flex: 1; display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.2rem 1.3rem; }
.v3-ev-body p { font-size: .92rem; } .v3-ev-body small { font-size: .8rem; color: var(--text-2); }
.v3-ev-body .btn-o { align-self: flex-start; margin-top: 1rem; min-height: 38px; padding: .5rem 1rem; font-size: .66rem; }
@media (max-width: 860px) { .v3-ev { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.v3-contact { padding-block: clamp(3.5rem, 7vw, 5.5rem); background: var(--bg-2); }
.v3-contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.v3-formcard { position: relative; isolation: isolate; overflow: hidden; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); }
.v3-formcard-bg { position: absolute; inset: 0; z-index: -1; }
.v3-formcard-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .07; }
.v3-formcard h2 { margin-bottom: 1.1rem; font-size: 1.7rem; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.v3-formcard .form { padding: 0; background: none; box-shadow: none; border-radius: 0; }
.v3-formcard .form-h { display: none; }
.v3-info { position: relative; overflow: hidden; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 16px; color: #fff; background: linear-gradient(160deg, var(--ink), var(--brand-dark)); }
.v3-info::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; opacity: .35; background: linear-gradient(135deg, var(--logo), #13A35B); border-radius: 58% 42% 45% 55% / 52% 45% 55% 48%; animation: v3morph 14s ease-in-out infinite; }
.v3-info > * { position: relative; z-index: 1; }
.v3-info h3 { margin-bottom: 1rem; font-size: 1.2rem; font-weight: 600; }
.v3-info a, .v3-info .row { display: flex; align-items: flex-start; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; font-size: .9rem; text-decoration: none; overflow-wrap: anywhere; }
.v3-info a:hover { color: var(--sky); }
.v3-info .ic { width: 20px; height: 20px; flex: none; margin-top: .15rem; color: var(--sky); }
.v3-info .note { margin-top: 1.1rem; font-size: .8rem; color: rgba(255,255,255,.75); }
.v3-info .v3-maplink { border: 0; font-size: .82rem; color: var(--sky); padding-left: calc(20px + .8rem); }
@media (max-width: 900px) { .v3-contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.v3-ft { position: relative; overflow: hidden; padding-top: clamp(3rem, 6vw, 4.5rem); background: #F1F7FC; color: var(--text); }
.v3-ft .map-dots { position: absolute; left: 50%; top: 30px; width: min(1100px, 112%); height: auto; translate: -50% 0; color: #D2E3F0; pointer-events: none; }
.v3-ft-grid { position: relative; display: grid; grid-template-columns: 1.3fr .8fr 1fr 1.1fr; gap: 2rem; padding-bottom: 2.6rem; }
.v3-ft h3 { margin-bottom: 1rem; font-size: .95rem; font-weight: 600; color: var(--ink); }
.v3-ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.v3-ft a, .v3-ftlink { color: var(--text-2); font: inherit; font-size: .86rem; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.v3-ft a:hover, .v3-ftlink:hover { color: var(--brand); }
.v3-ft p { font-size: .86rem; color: var(--text-2); margin-top: .9rem; max-width: 36ch; }
.v3-ft-contact li { display: flex; align-items: flex-start; gap: .7rem; font-size: .86rem; color: var(--text-2); overflow-wrap: anywhere; }
.v3-ft-contact .ic { width: 18px; height: 18px; flex: none; margin-top: .15rem; color: var(--logo); }
.v3-ft-soc { display: flex; gap: .6rem; margin-top: 1.1rem; }
.v3-ft-soc a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.v3-ft-bot { position: relative; background: var(--ink); color: rgba(255,255,255,.8); font-size: .78rem; }
.v3-ft-bot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1rem; }
.v3-ft-bot a { color: #fff; }
@media (max-width: 900px) { .v3-ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .v3-ft-grid { grid-template-columns: 1fr; } }

/* ---------- floating: enquiry tab, back to top ---------- */
.v3-enq-tab { position: fixed; right: 0; top: 50%; translate: 0 -50%; z-index: 60; writing-mode: vertical-rl; padding: 1.1rem .62rem; border: 0; border-radius: 10px 0 0 10px;
  background: var(--brand); color: #fff; font: inherit; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  box-shadow: -8px 10px 24px -12px rgba(2,73,121,.6); transition: background .2s ease, padding .25s ease; }
.v3-enq-tab:hover { background: var(--brand-3); padding-right: .9rem; }
.v3-top { position: fixed; right: 1.1rem; bottom: 1.2rem; z-index: 60; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand);
  box-shadow: var(--shadow); cursor: pointer; opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity .3s ease, translate .3s ease; }
.v3-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
@media (max-width: 760px) { .v3-enq-tab, .v3-top { display: none; } }

/* ---------- dialog ---------- */
.v3-dlg { width: min(740px, calc(100% - 2rem)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #fff; color: var(--text); box-shadow: 0 40px 80px -30px rgba(2,20,40,.65); }
.v3-dlg::backdrop { background: rgba(10,41,62,.55); backdrop-filter: blur(4px); }
.v3-dlg-in { display: flex; flex-direction: column; max-height: min(86vh, 900px); }
.v3-dlg-hd { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.v3-dlg-hd h2 { font-size: 1.1rem; font-weight: 600; }
.v3-dlg-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 1.4rem 1.6rem; }
.v3-dlg-body .form { padding: 1.2rem 0 0; box-shadow: none; border-radius: 0; }
.v3-dlg-body .form-h { display: none; }
.v3-dlg .v3-lead { margin: 1.2rem 0 .4rem; font-size: .92rem; color: var(--text-2); }

/* ---------- phones: tab bars stay on one line and scroll sideways ---------- */
@media (max-width: 640px) {
  .v3-tabs { flex-wrap: nowrap; justify-content: flex-start; width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .v3-tabs::-webkit-scrollbar { display: none; }
  .v3-tab { flex: none; white-space: nowrap; }
}
