/* Avkan Dental: corporate medical-supply site.
   Titanium white and bronze by day, the logo's black and gold by night.
   One sans family; bronze/gold is the only accent. Product imagery is drawn
   by assets/js/render.js on a shared "studio" backdrop. */

/* Hanken Grotesk, served from this site (SIL OFL, assets/fonts/LICENSE.txt): one variable file per subset */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/hanken-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/hanken-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF }

:root {
  color-scheme: light;
  --bg: #FBFBFA;
  --alt: #F2F1EE;
  --surface: #FFFFFF;
  --fg: #17181A;
  --muted: #5D6166;
  --line: #E2E0DB;
  --accent: #8A5C35;
  --accent-hover: #6F4726;
  --accent-fg: #FFFFFF;
  --accent-soft: rgba(138, 92, 53, .10);
  --hdr: rgba(255, 255, 255, .9);
  --hdr-solid: #FFFFFF;
  --foot-bg: #141416;
  --foot-fg: #BEBBB5;
  --foot-head: #FFFFFF;
  --foot-line: #2C2D30;
  --studio-a: #FFFFFF;
  --studio-b: #E7E6E2;
  --studio-floor: rgba(23, 24, 26, .06);
  --grid: rgba(23, 24, 26, .045);
  --lead: #8E8A83;
  --thread-edge: rgba(0, 0, 0, .45);
  --ok: #2F7A55;
  --warn: #9A5A14;
  --shadow: 0 22px 44px -28px rgba(20, 20, 20, .32);
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --r: 8px;
  --wrap: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E0E10; --alt: #141416; --surface: #19191C; --fg: #EDEAE5; --muted: #A3A3A8; --line: #2A2A2E;
    --accent: #D2A57B; --accent-hover: #E4BB94; --accent-fg: #17120D; --accent-soft: rgba(210, 165, 123, .12);
    --hdr: rgba(14, 14, 16, .88); --hdr-solid: #0E0E10; --foot-bg: #09090A; --foot-fg: #A9A6A0; --foot-head: #F1EEE9; --foot-line: #232326;
    --studio-a: #26262A; --studio-b: #111113; --studio-floor: rgba(255, 255, 255, .04); --grid: rgba(255, 255, 255, .035); --lead: #8C857B; --thread-edge: rgba(255, 255, 255, .32);
    --shadow: 0 22px 44px -28px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E0E10; --alt: #141416; --surface: #19191C; --fg: #EDEAE5; --muted: #A3A3A8; --line: #2A2A2E;
  --accent: #D2A57B; --accent-hover: #E4BB94; --accent-fg: #17120D; --accent-soft: rgba(210, 165, 123, .12);
  --hdr: rgba(14, 14, 16, .88); --hdr-solid: #0E0E10; --foot-bg: #09090A; --foot-fg: #A9A6A0; --foot-head: #F1EEE9; --foot-line: #232326;
  --studio-a: #26262A; --studio-b: #111113; --studio-floor: rgba(255, 255, 255, .04); --grid: rgba(255, 255, 255, .035); --lead: #8C857B; --thread-edge: rgba(255, 255, 255, .32);
  --shadow: 0 22px 44px -28px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 84px }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .35s, color .35s }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.02em }
p { margin: 0 }
a { color: inherit }
img { max-width: 100%; display: block }
button { font: inherit; color: inherit; cursor: pointer }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px }
[hidden] { display: none !important }
/* sections below the first screen are laid out and painted only as they come near, which keeps the long home page light on phones */
/* home page only, the long one (subpages are short), and without its library section: audit tools read the colours
   of skipped sections against whatever is painted there and report false contrast failures */
body:not(.subpage) main > .section:not(#kutuphane) { content-visibility: auto; contain-intrinsic-size: auto 900px }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.num { font-variant-numeric: tabular-nums }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 16px }
@media (min-width: 760px) { .wrap { padding-inline: 32px } }
.section { padding-block: clamp(64px, 8vw, 108px) }
.alt { background: var(--alt) }
.kicker { font-size: 14px; font-weight: 600; color: var(--accent) }
.head { display: grid; gap: 12px; max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px) }
.head h2 { font-size: clamp(30px, 3.6vw, 42px) }
.head p { color: var(--muted); font-size: 17px }
.head-row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: end; margin-bottom: clamp(24px, 3vw, 36px) }
.head-row .head { margin-bottom: 0 }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 4px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s }
.btn-primary { background: var(--accent); color: var(--accent-fg) }
.btn-primary:hover { background: var(--accent-hover) }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--fg) }
.btn-ghost:hover { border-color: var(--fg) }
.btn-sm { padding: 9px 14px; font-size: 14px }
.link { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; background: none; border: 0; padding: 0 }
.link:hover { text-decoration: underline; text-underline-offset: 3px }

/* studio backdrop shared by every render */
.studio { background: radial-gradient(120% 90% at 50% 32%, var(--studio-a) 0%, var(--studio-b) 78%); position: relative; transition: background-color .35s }
.studio::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(transparent, var(--studio-floor)); pointer-events: none }
.studio svg { position: relative; z-index: 1 }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--hdr); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: background-color .35s }
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 74px }
.brand { display: flex; align-items: center; flex-shrink: 0 }
.brand img { height: 44px; width: auto }
.logo-dark { display: none !important }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-dark { display: block !important } :root:not([data-theme="light"]) .logo-light { display: none !important } }
:root[data-theme="dark"] .logo-dark { display: block !important }
:root[data-theme="dark"] .logo-light { display: none !important }
.nav { display: flex; gap: 2px; margin-left: auto }
.nav a { padding: 8px 11px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; border-radius: 4px; transition: color .2s }
.nav a:hover, .nav a.on { color: var(--fg) }
.nav a.on { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0 }
.tools { display: flex; gap: 8px; align-items: center }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); transition: border-color .2s }
.icon-btn:hover { border-color: var(--fg) }
.badge { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--accent-fg); font-size: 11px; font-weight: 700; display: grid; place-items: center; transition: transform .25s }
.badge.bump { transform: scale(1.3) }
.theme-ico-moon { display: none }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-ico-moon { display: block } :root:not([data-theme="light"]) .theme-ico-sun { display: none } }
:root[data-theme="dark"] .theme-ico-moon { display: block }
:root[data-theme="dark"] .theme-ico-sun { display: none }
.menu-btn { display: none }
/* 1000-1240 px: the full menu still fits beside the logo once the links sit closer together */
@media (min-width: 1000px) and (max-width: 1240px) { .nav a { padding: 8px 7px; font-size: 14.5px } .nav .dd-menu a { padding: 9px 12px; font-size: 15px } }
@media (max-width: 999px) {
  .nav { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; background: var(--hdr-solid); padding: 8px 16px 16px; border-bottom: 1px solid var(--line); display: none }
  .nav.open { display: flex }
  .nav a { padding: 12px 8px; font-size: 17px }
  .nav a.on { box-shadow: none; color: var(--accent) }
  .menu-btn { display: inline-grid }
  .tools { margin-left: auto }
  .login-btn { display: none }
}

/* hero */
.hero { padding-block: clamp(28px, 4vw, 52px) clamp(48px, 6vw, 80px) }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center }
.hero-copy { display: grid; gap: 18px }
.hero-copy h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -.03em }
.hero-copy > p { color: var(--muted); font-size: 18px; max-width: 46ch }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px }
.pick { display: grid; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line) }
.pick .lbl { font-size: 13.5px; font-weight: 600; color: var(--muted) }
.hero-ctrl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px }
.hc { display: grid; gap: 8px; text-align: left; background: none; border: 0; padding: 0; color: var(--muted); font-size: 15px; font-weight: 600 }
.hc:hover { color: var(--fg) }
.hc .bar { height: 2px; background: var(--line); overflow: hidden }
.hc .bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50% }
.hc[aria-current="true"] { color: var(--fg) }
.hc[aria-current="true"] .bar i { transform: none }
.hero.auto .hc[aria-current="true"] .bar i { transform: scaleX(0); animation: prog var(--dur, 8s) linear forwards }
/* progress bars grow with transform, not width, so they never re-run layout */
@keyframes prog { to { transform: none } }
.sys-info { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; font-size: 15px; color: var(--muted); min-height: 48px }
.sys-info b { color: var(--fg); font-weight: 600 }

.hv { width: 100%; max-width: 580px; justify-self: end; border-radius: var(--r); overflow: hidden; display: grid; border: 1px solid var(--line) }
.hv-stage { position: relative; aspect-ratio: 52/56; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none }
.hv-stage.drag { cursor: grabbing }
.hv-stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 26px 26px; z-index: 1; pointer-events: none }
.hv-stage > svg { position: absolute; inset: 0; width: 100%; height: 100% }
.hv-tag { position: absolute; top: 16px; left: 20px; right: 20px; display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); z-index: 3; pointer-events: none }
.hv-tag b { color: var(--fg); font-weight: 600 }
.hv-hint { position: absolute; right: 18px; bottom: 14px; font-size: 12.5px; color: var(--muted); z-index: 3; display: flex; gap: 6px; align-items: center; pointer-events: none; transition: opacity .4s }
.hv-note { padding: 14px 20px 16px; min-height: 86px; font-size: 14.5px; line-height: 1.45; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line) }
.hv-note b { color: var(--fg); font-weight: 600; display: block; margin-bottom: 2px }
.co { cursor: pointer; outline: none }
.co .ld { stroke: var(--lead); stroke-width: 1; fill: none; transition: stroke .2s }
.co .hit { fill: transparent }
.co circle.pt { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; transition: r .2s }
.co circle.core { fill: var(--accent) }
.co text { fill: var(--muted); font-family: var(--font); font-size: 13px; font-weight: 600; transition: fill .2s }
.co:hover text, .co.on text { fill: var(--fg) }
.co.on .ld { stroke: var(--accent) }
.co.on circle.pt { r: 6.5 }
.co:focus-visible text { text-decoration: underline }
.dim line, .dim path { stroke: var(--accent); stroke-width: 1; fill: none }
.dim .ar { fill: var(--accent); stroke: none }
.dim text { fill: var(--fg); font-family: var(--font); font-size: 14px; font-weight: 600 }
.fade-in { animation: fadein .6s ease both }
@keyframes fadein { from { opacity: 0; transform: translateY(4px) } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr } .hv { order: -1; max-width: 520px; margin-inline: auto; justify-self: center } }
@media (max-width: 520px) { .co text { font-size: 21px } .dim text { font-size: 20px } .hv-tag span { display: none } }

/* brands */
.brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
.bcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; grid-template-rows: auto 1fr }
.btile { height: 120px; background: #FFFFFF; display: grid; place-items: center; border-bottom: 1px solid var(--line) }
.btile img { max-height: 60px; max-width: 60%; width: auto }
.bbody { padding: 22px 24px 26px; display: grid; gap: 8px; align-content: start }
.bbody .o { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: center }
.flag { display: inline-block; width: 18px; height: 12px; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08) }
.de { background: linear-gradient(#111 33%, #DD0000 33% 66%, #FFCE00 66%) }
.ch { background: #D52B1E; position: relative }
.ch::before, .ch::after { content: ""; position: absolute; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%) }
.ch::before { width: 8px; height: 2.4px }
.ch::after { width: 2.4px; height: 8px }
.tr { background: #E30A17; position: relative; overflow: hidden }
.tr::before { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; left: 3px; top: 3px; box-shadow: 0 0 0 1.5px #fff }
.bbody h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em }
.bbody p { color: var(--muted); font-size: 15px }
.bbody .lines { font-size: 14px; color: var(--fg); margin-top: 4px }
@media (max-width: 900px) { .brands { grid-template-columns: 1fr } }

/* products */
.filters { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--line) }
.ftab { background: none; border: 0; padding: 10px 0 12px; font-size: 15px; font-weight: 500; color: var(--muted); position: relative }
.ftab:hover, .ftab[aria-pressed="true"] { color: var(--fg) }
.ftab[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent) }
.ftab .n { color: var(--muted); font-weight: 400; margin-left: 4px; font-size: 13px }
.select { appearance: none; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; padding: 10px 36px 10px 12px; border-radius: 4px; font: inherit; font-size: 14.5px; color: var(--fg) }
.pbar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 28px }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-align: left; padding: 0; transition: box-shadow .3s, border-color .3s, transform .3s; animation: in .45s both }
@keyframes in { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
.card:hover { box-shadow: var(--shadow); border-color: var(--accent); transform: translateY(-2px) }
.card .well { aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line) }
.card .well svg { width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2, .8, .2, 1) }
.card:hover .well svg { transform: scale(1.045) }
.card .body { padding: 18px 20px 20px; display: grid; gap: 6px; flex: 1; align-content: start }
.card .meta { font-size: 13px; color: var(--muted) }
.card .meta b { color: var(--accent); font-weight: 600 }
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em }
.card p { color: var(--muted); font-size: 14.5px }
.card .spec { font-size: 13.5px; color: var(--fg); font-variant-numeric: tabular-nums; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line) }
/* wide screens: five cards make one row of five and nine a 3 × 3 block, instead of a row with a single card */
@media (min-width: 1100px) { .grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)) } .grid:has(> :nth-child(9):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
/* phones: an odd last card spans the row, picture beside the text */
@media (max-width: 560px) { .grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row } .grid > .card:last-child:nth-child(odd) > .well { width: 46%; flex: none; aspect-ratio: auto; min-height: 150px; border-bottom: 0; border-right: 1px solid var(--line) } }
/* phones: two product cards per row, so a list reads like a catalogue page instead of one tall card per screen */
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px } .grid .card .body { padding: 11px 12px 13px; gap: 4px } .grid .card h3 { font-size: 15.5px } .grid .card p { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden } .grid .card .meta { font-size: 11.5px } .grid .card .spec { font-size: 12px; padding-top: 8px } }

/* anatomy */
.anat { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center }
.anat-fig { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/5 }
.anat-fig svg { width: 100%; height: 100% }
.hs { cursor: pointer; outline: none }
.hs .ring { fill: none; stroke: var(--accent); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite }
.hs .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2.5 }
.hs.on .dot { fill: var(--fg) }
.hs .ld { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; transition: opacity .3s }
.hs.on .ld { opacity: 1 }
.hs:focus-visible .dot { stroke: var(--fg) }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1 } 100% { transform: scale(1.7); opacity: 0 } }
.feats { border-top: 1px solid var(--line) }
.feat { display: grid; grid-template-columns: 110px 1fr; gap: 2px 18px; width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left }
.feat .k { font-size: 13.5px; color: var(--muted); padding-top: 2px }
.feat h3 { font-size: 17px; font-weight: 600; letter-spacing: 0 }
.feat p { grid-column: 2; color: var(--muted); font-size: 15px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s ease, opacity .3s }
.feat[aria-expanded="true"] p { max-height: 140px; opacity: 1; margin-top: 4px }
.feat[aria-expanded="true"] h3, .feat:hover h3 { color: var(--accent) }
@media (max-width: 860px) { .anat { grid-template-columns: 1fr } .anat-fig { max-width: 460px; width: 100%; margin-inline: auto } .feat { grid-template-columns: 90px 1fr } }

/* silk */
.silk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center }
.silk h2 { font-size: clamp(30px, 3.6vw, 42px); margin-top: 12px }
.silk .intro { color: var(--muted); font-size: 17px; margin-top: 12px; max-width: 54ch }
.cfg { display: grid; gap: 18px; margin-top: 26px }
.cfg-row { display: grid; gap: 8px }
.cfg-row .lbl { font-size: 13.5px; font-weight: 600; color: var(--muted) }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); width: fit-content; max-width: 100% }
.seg button { border: 0; border-right: 1px solid var(--line); background: transparent; padding: 9px 14px; font-size: 14px; color: var(--fg); transition: background-color .2s, color .2s }
.seg button:last-child { border-right: 0 }
.seg button:hover { background: var(--accent-soft) }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg) }
.seg button:disabled { color: var(--muted); opacity: .4; cursor: not-allowed; background: transparent; text-decoration: line-through }
.cfg-note { font-size: 14.5px; color: var(--muted); max-width: 52ch; margin: 0 }
.tags { display: flex; flex-wrap: wrap; gap: 6px }
.tag { font-size: 13.5px; padding: 4px 10px; border-radius: 3px; background: var(--alt); color: var(--fg); border: 1px solid var(--line) }
.silk-stage { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1/1; max-width: 540px; width: 100%; margin-inline: auto }
#silkSvg { position: absolute; inset: 0; z-index: 1 }
.silk-stage svg { width: 100%; height: 100% }
.silk-read { position: absolute; left: 20px; top: 18px; right: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14px; color: var(--muted); z-index: 2 }
.silk-read b { color: var(--fg); font-weight: 600 }
.su-edge { stroke: var(--thread-edge) }
.silk-stage.draw .su-thread { stroke-dasharray: 1 1; animation: draw 1.3s cubic-bezier(.6, .05, .2, 1) .15s both }
.silk-stage.draw .su-braid { animation: fade .5s ease 1.2s both }
.silk-stage.draw .su-n { animation: fadein .6s ease both }
@keyframes draw { from { stroke-dashoffset: 1 } to { stroke-dashoffset: 0 } }
@keyframes fade { from { opacity: 0 } }
.sut-wrap { margin-top: clamp(48px, 6vw, 72px) }
.sut-wrap h2 { font-size: clamp(24px, 2.6vw, 30px) }
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface) }
table { border-collapse: collapse; width: 100% }
.tbl { min-width: 760px; font-size: 14.5px }
.tbl th { font-size: 13px; font-weight: 600; color: var(--muted); text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--alt) }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top }
.tbl tr:last-child td { border-bottom: 0 }
.tbl td:first-child { font-weight: 600 }
.tbl tr.hl td { background: var(--accent-soft) }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2) }
.st { font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 3px; white-space: nowrap }
.st.a { background: rgba(47, 122, 85, .12); color: var(--ok) }
.st.n { background: var(--accent-soft); color: var(--accent) }
@media (max-width: 860px) { .silk { grid-template-columns: 1fr } .silk-stage { max-width: 440px } }

/* finder */
.finder { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden }
.fctrl { padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; align-content: start }
.ctrl { display: grid; gap: 8px }
.ctrl .lbl { font-size: 13.5px; font-weight: 600; color: var(--muted) }
.opts { display: flex; flex-wrap: wrap; gap: 6px }
.opt { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 8px 12px; border-radius: 4px; font-size: 14px; font-variant-numeric: tabular-nums; transition: border-color .2s, background-color .2s, color .2s }
.opt:hover { border-color: var(--fg) }
.opt[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg) }
.opt:disabled { opacity: .35; cursor: not-allowed }
.opt .cc { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15) }
.result { display: grid; gap: 4px; padding: 18px 20px; border-radius: 4px; background: var(--alt); border: 1px solid var(--line) }
.result .sub { color: var(--muted); font-size: 14px }
.result .code { font-size: clamp(26px, 3vw, 32px); font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums }
.result .extra { color: var(--muted); font-size: 13.5px }
.result .warn { color: var(--warn); font-size: 14px; display: flex; gap: 8px; align-items: flex-start; margin-top: 4px }
.result .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px }
.fviz { min-height: 460px; border-left: 1px solid var(--line) }
.fviz > svg { position: absolute; inset: 0; width: 100%; height: 100% }
.fviz .cap { position: absolute; top: 16px; left: 20px; font-size: 13.5px; color: var(--muted); z-index: 2 }
.fviz .chip { position: absolute; top: 14px; right: 18px; z-index: 2; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line) }
.fviz .chip i { width: 10px; height: 10px; border-radius: 50% }
@media (max-width: 860px) { .finder { grid-template-columns: 1fr } .fviz { min-height: 380px; border-left: 0; border-top: 1px solid var(--line) } }

/* digital workflow */
.dig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center }
.dig-img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3 }
.dig-img img { width: 100%; height: 100%; object-fit: cover }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; counter-reset: s }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; padding: 16px 0; border-top: 1px solid var(--line) }
.steps li::before { counter-increment: s; content: counter(s); grid-row: span 3; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-size: 13px; font-weight: 600; display: grid; place-items: center }
.steps h3 { font-size: 17px; font-weight: 600; letter-spacing: 0 }
.steps p { color: var(--muted); font-size: 15px }
.steps .codes { font-size: 13.5px; color: var(--accent); font-variant-numeric: tabular-nums }
@media (max-width: 860px) { .dig { grid-template-columns: 1fr } }

/* library */
.lib-count { color: var(--muted); font-size: 14.5px; font-variant-numeric: tabular-nums }
.lib-tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; min-height: 47px }
/* the tabs and the count are written by app.js: their space is held so the search bar does not jump */
.lib-count:empty::before { content: "\00a0" }
.dbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; margin-bottom: 22px }
.search { position: relative }
.search input { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 11px 14px 11px 40px; border-radius: 4px; font: inherit; font-size: 15px }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted) }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px }
.lib-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .3s, border-color .3s; animation: in .45s both }
.lib-card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)) }
.lib-thumb { aspect-ratio: 16/10; display: grid; place-items: center; border-bottom: 1px solid var(--line); overflow: hidden }
.lib-thumb > svg { width: 100%; height: 100% }
.lib-page { position: relative; z-index: 1; width: 72%; display: block; transform: rotate(-1.2deg); transition: transform .5s cubic-bezier(.2, .8, .2, 1) }
.lib-page::before, .lib-page::after { content: ""; position: absolute; inset: 0; background: #fff; border-radius: 2px; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .35) }
.lib-page::before { transform: translate(9px, 7px) rotate(3deg); background: #f1f0ec }
.lib-page::after { transform: translate(4px, 3px) rotate(1.6deg); background: #f8f7f4 }
.lib-page img { position: relative; z-index: 1; width: 100%; height: auto; border-radius: 2px; box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .06) }
.lib-card:hover .lib-page { transform: rotate(0) translateY(-3px) }
.lib-thumb .fmt { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 3px; background: var(--fg); color: var(--bg) }
.lib-thumb .lock { position: absolute; top: 10px; right: 12px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--fg); border: 1px solid var(--line) }
.lib-body { padding: 16px 18px 18px; display: grid; gap: 6px; flex: 1; grid-template-rows: auto auto auto 1fr auto; align-content: start }
.lib-body .meta { font-size: 13px; color: var(--muted) }
.lib-body .meta b { color: var(--accent); font-weight: 600 }
.lib-body h3 { font-size: 17.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25 }
.lib-body p { color: var(--muted); font-size: 14.5px; line-height: 1.5 }
.facts { display: flex; flex-wrap: wrap; gap: 4px 6px; align-content: start; margin-top: 2px }
.facts span { font-size: 12.5px; color: var(--muted); padding: 1px 7px; border-radius: 3px; background: var(--alt); border: 1px solid var(--line); font-variant-numeric: tabular-nums }
.lib-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); align-items: center }
.lib-acts .btn { gap: 7px }
.lib-acts small { font-weight: 500 }
.lib-acts .soon { font-size: 14px; color: var(--muted) }
.lib-card.ex .lib-thumb > svg, .lib-card.ex .lib-page { opacity: .78 }
.lib-note { margin-top: 26px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline }
.ex-note { display: inline-block; font-size: 11.5px; font-weight: 500; color: var(--muted); border: 1px dashed var(--line); border-radius: 3px; padding: 0 6px; margin-left: 8px; white-space: nowrap; vertical-align: 2px; letter-spacing: 0 }
.empty { padding: 36px; text-align: center; color: var(--muted); grid-column: 1/-1; border: 1px dashed var(--line); border-radius: var(--r); background: var(--surface) }
@media (max-width: 640px) {
  .dbar { grid-template-columns: 1fr 1fr } .dbar .search { grid-column: 1/-1 }
  .lib-tabs, .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; mask-image: linear-gradient(90deg, #000 85%, transparent) }
  .lib-tabs::-webkit-scrollbar, .filters::-webkit-scrollbar { display: none }
  .ftab { white-space: nowrap; flex-shrink: 0 }
}

/* clinical cases */
.hcp { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); max-width: 860px }
.hcp-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent) }
.hcp h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em }
.hcp p { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 64ch }
.hcp-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px }
@media (max-width: 520px) { .hcp { grid-template-columns: 1fr } }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px }
.case-card { display: flex; flex-direction: column; padding: 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .3s, border-color .3s, transform .3s; animation: in .45s both }
.case-card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-2px) }
.ba-mini { position: relative; display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 4/3; border-bottom: 1px solid var(--line); overflow: hidden }
.ba-mini .h { position: relative; overflow: hidden; display: block }
.ba-mini .h > img { position: absolute; inset: 0; width: 200%; height: 100%; object-fit: cover }
.ba-mini .h.a > img { left: -100% }
.ba-mini .h > .ba-ph { position: absolute; inset: 0; width: 200% }
.ba-mini .h.a > .ba-ph { left: -100% }
.ba-mini i { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); z-index: 3 }
.ba-mini em, .ba-tag { position: absolute; top: 12px; z-index: 4; font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 3px 9px; border-radius: 20px; background: rgba(17, 17, 19, .72); color: #fff; backdrop-filter: blur(6px) }
.ba-mini em.l, .ba-tag.l { left: 12px }
.ba-mini em.r, .ba-tag.r { right: 12px }
.ba-ph { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 13px; font-weight: 600 }
.ba-ph > svg { position: absolute; inset: 0; width: 100%; height: 100% }
.ba-ph > span { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 2; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; padding: 4px 10px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line) }
.ba-ph.before { background: repeating-linear-gradient(135deg, var(--alt) 0 14px, color-mix(in srgb, var(--alt) 70%, var(--line)) 14px 15px) }
.ba-ph.before::after { display: none }
.ba-mini .ba-ph > span { display: none }
.ba-pill { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--line); backdrop-filter: blur(6px) }
.case-body { display: grid; gap: 6px; padding: 16px 18px 18px }
.case-body .meta { font-size: 13px; color: var(--muted) }
.case-body .meta b { color: var(--accent); font-weight: 600 }
.case-t { font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25 }
.case-s { color: var(--muted); font-size: 14.5px; line-height: 1.5 }
.case-card .facts { margin-top: 4px }
/* gallery cases: one cover image on the card; thumbnails in the dialog, graphic surgical photos blurred until tapped */
.case-cover { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; border-bottom: 1px solid var(--line); background: #0f1012 }
.case-cover img { width: 100%; height: 100%; object-fit: cover; display: block }
.cd-hard-note { margin: 0; font-size: 13.5px; color: var(--muted) }
.cd-hard-note .link { font: inherit; font-weight: 600; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer }
/* rows keep the thumbnails' 4:3 height inside the scrolling box (auto rows would shrink to fit its max height) */
.cd-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); grid-auto-rows: max-content; align-content: start; gap: 8px; max-height: min(64vh, 620px); overflow-y: auto; padding-right: 2px }
.cd-shot { position: relative; aspect-ratio: 4/3; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #0f1012; cursor: zoom-in }
.cd-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .3s, transform .3s }
.cd-shot > span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 5px; font-size: 11px; line-height: 1.25; text-align: left; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .72)) }
.cd-shot.hard { cursor: pointer }
.cd-shot.hard img { filter: blur(14px) saturate(.5) brightness(.8); transform: scale(1.18) }
.cd-shot.hard em { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; font-style: normal; font-size: 12px; font-weight: 600; color: #fff; text-align: center; background: rgba(15, 16, 18, .35) }
.cd-shot.hard em small { font-size: 11px; font-weight: 500; opacity: .85 }
.cd-shot.hard > span { display: none }
.cd-shot.hard.shown { cursor: zoom-in }
.cd-shot.hard.shown img { filter: none; transform: none }
.cd-shot.hard.shown em { display: none }
.cd-shot.hard.shown > span { display: block }
.case-card.ex .ba-mini { opacity: .9 }
.case-note { margin-top: 24px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline }

/* before / after slider */
.ba { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--alt); user-select: none; -webkit-user-select: none; touch-action: pan-y }
.ba-layer { position: absolute; inset: 0 }
.ba-layer > img { width: 100%; height: 100%; object-fit: cover; display: block }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 2 }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; z-index: 3; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); pointer-events: none }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; color: #17181A; display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .45) }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 5; -webkit-appearance: none; appearance: none; touch-action: pan-y }
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100vh }
.ba-range::-moz-range-thumb { width: 44px; height: 100vh; border: 0 }
.ba:has(.ba-range:focus-visible) .ba-handle span { outline: 2px solid var(--accent); outline-offset: 3px }
.ba .ba-ph > span { bottom: 18px }
.ba .ba-ph.before > span { left: 25% }
.ba .ba-ph.after > span { left: 75% }

.case-dlg { margin: auto; width: min(1120px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 0; animation: fadein .3s ease }
.case-dlg:not([open]) { display: none }
.case-dlg .x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); font-size: 20px; z-index: 6 }
.cd-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; padding: 28px }
.cd-media { display: grid; gap: 14px; align-content: start }
.cd-views { justify-self: start }
.cd-steps { display: grid; gap: 8px }
.cd-steps .lbl, .cd-prods .lbl { font-size: 13.5px; font-weight: 600; color: var(--muted) }
.cd-step-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px }
.cd-step { position: relative; aspect-ratio: 4/3; border-radius: 6px; border: 1px solid var(--line); background: var(--alt) center/cover; padding: 0; overflow: hidden; display: grid; align-items: end }
.cd-step > span { display: inline-flex; gap: 5px; align-items: center; margin: 6px; font-size: 12px; font-weight: 600; padding: 3px 7px; border-radius: 4px; background: color-mix(in srgb, var(--surface) 90%, transparent); text-align: left; line-height: 1.2 }
.cd-step.ph { color: var(--muted); background: repeating-linear-gradient(135deg, var(--alt) 0 10px, color-mix(in srgb, var(--alt) 70%, var(--line)) 10px 11px) }
.cd-info { display: grid; gap: 12px; align-content: start; padding-right: 36px }
.cd-info h2 { font-size: clamp(24px, 2.6vw, 30px) }
.cd-info .lead { color: var(--muted) }
.cd-prods { display: grid; gap: 8px }
.cd-prods .tag { cursor: pointer; font: inherit; font-size: 13.5px }
.cd-prods .tag:hover { border-color: var(--accent); color: var(--accent) }
.cd-consent { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px }
@media (max-width: 860px) { .case-dlg { width: 100%; max-height: 100%; height: 100%; border-radius: 0 } .cd-grid { grid-template-columns: 1fr; padding: 60px 16px 24px } .cd-info { padding-right: 0 } }

/* trainings */
.sub-h { font-size: clamp(22px, 2.4vw, 28px) }
.ev-list { display: grid; gap: 14px }
.ev { display: grid; grid-template-columns: 92px minmax(0, 1fr) 210px; gap: 24px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .3s, box-shadow .3s }
.ev:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow) }
.ev-date { display: grid; justify-items: center; align-content: start; gap: 0; padding: 12px 0 10px; border-radius: 6px; background: var(--alt); border: 1px solid var(--line); height: fit-content; text-align: center }
.ev-date b { font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums }
.ev-date span { font-size: 15px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px }
.ev-date small { font-size: 12.5px; color: var(--muted) }
.ev-main { display: grid; gap: 8px; align-content: start; min-width: 0 }
.ev-main .meta, .ev-card .meta { font-size: 13px; color: var(--muted) }
.ev-main .meta b, .ev-card .meta b { color: var(--accent); font-weight: 600 }
.ev-main h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em }
.ev-main p { color: var(--muted); font-size: 15px; max-width: 70ch }
.ev-facts { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--fg) }
.ev-facts li { display: inline-flex; gap: 6px; align-items: center }
.ev-facts svg { color: var(--accent); flex-shrink: 0 }
.ev .tags { margin-top: 4px }
.ev-side { display: grid; gap: 10px; align-content: start }
.ev-side .btn { width: 100%; gap: 7px }
.seat { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums }
.seat i { display: block; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--p), var(--line) var(--p)) }
.seat.low { color: var(--warn) }
.seat.full { color: var(--warn); font-weight: 600 }
.seat.open { color: var(--ok) }
.ev.ex .ev-date b { color: var(--muted) }
.ev-past { margin-top: clamp(48px, 6vw, 72px) }
/* photos from past events: a 4-column grid on the page, a swipeable strip on phones */
.ev-cal { margin-top: clamp(44px, 5.5vw, 68px) }
.ev-album[hidden] + .ev-cal { margin-top: 0 }
.ea-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px }
.ea { position: relative; margin: 0; aspect-ratio: 3/4; border-radius: var(--r); overflow: hidden; background: var(--line) }
.ea img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1) }
.ea:hover img { transform: scale(1.035) }
.ea figcaption { position: absolute; inset: auto 0 0 0; padding: 44px 14px 13px; display: grid; gap: 3px; color: #fff; font-size: 13.5px; line-height: 1.35;
  background: linear-gradient(to top, rgba(8,10,14,.82), rgba(8,10,14,.45) 55%, transparent) }
.ea figcaption b { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .85 }
@media (max-width: 759px) {
  .ea-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(16px * -1); padding: 0 16px 6px; scroll-padding-inline: 16px; scrollbar-width: none }
  .ea-grid::-webkit-scrollbar { display: none }
  .ea { flex: 0 0 74%; scroll-snap-align: start }
}
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px }
.ev-card { display: flex; flex-direction: column; padding: 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .3s, border-color .3s }
.ev-card:not(:disabled):hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)) }
.ev-card:disabled { cursor: default; color: inherit }
.ev-cover { aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line) }
.ev-cover > svg { width: 100%; height: 100% }
.ev-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1 }
.ev-card.ex .ev-cover > svg { opacity: .78 }
.ev-n { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); backdrop-filter: blur(6px) }
.ev-body { display: grid; gap: 6px; padding: 16px 18px 18px }
.ev-t { font-size: 17.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25 }
.ev-d { color: var(--muted); font-size: 14.5px }
.ev-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding: 24px 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface) }
.ev-cta h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em }
.ev-cta p { color: var(--muted); font-size: 15px; margin-top: 4px }
@media (max-width: 900px) { .ev { grid-template-columns: 76px minmax(0, 1fr) } .ev-side { grid-column: 1/-1; grid-template-columns: 1fr 1fr; align-items: center } .ev-side .seat { grid-column: 1/-1 } }
@media (max-width: 520px) { .ev { padding: 18px; gap: 16px } .ev-date b { font-size: 28px } .ev-main h3 { font-size: 18.5px } }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start }
.faq-grid > .head { margin-bottom: 0 }
@media (min-width: 861px) { .faq-grid > .head { position: sticky; top: 100px } }
.faq { border-top: 1px solid var(--line) }
.faq details { border-bottom: 1px solid var(--line) }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 600; font-size: 17px }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--accent); transition: transform .25s }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg) }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 64ch }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr } }

/* services */
.svc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center }
.svc-img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line) }
.svc-img svg { width: 100%; height: 100% }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px }
.svc div { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--accent) }
.svc h3 { font-size: 17px; font-weight: 600; letter-spacing: 0 }
.svc p { color: var(--muted); font-size: 15px }
@media (max-width: 900px) { .svc-wrap { grid-template-columns: 1fr } }
@media (max-width: 520px) { .svc { grid-template-columns: 1fr } }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px) }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px) }
.field { display: grid; gap: 6px }
.field.full { grid-column: 1/-1 }
.field label { font-size: 13.5px; font-weight: 600; color: var(--muted) }
.field input, .field select, .field textarea { background: var(--bg); border: 1px solid var(--line); color: var(--fg); border-radius: 4px; padding: 11px 12px; font: inherit; font-size: 15px; width: 100% }
.field textarea { min-height: 110px; resize: vertical }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
.field.row { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: center }
.field.row span { font-size: 13.5px; color: var(--muted) }
.qbox { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 18px 20px; display: grid; gap: 12px }
.qbox h3 { font-size: 16px; font-weight: 600; letter-spacing: 0 }
.qi { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 14.5px; padding-top: 12px; border-top: 1px solid var(--line) }
.qi .c { font-size: 13px; color: var(--muted) }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 4px }
.qty button { background: none; border: 0; width: 28px; height: 28px }
.qty span { font-size: 13.5px; min-width: 22px; text-align: center; font-variant-numeric: tabular-nums }
.rm { background: none; border: 0; color: var(--muted); font-size: 20px; width: 28px; height: 28px }
.rm:hover { color: var(--fg) }
.msg-ok { grid-column: 1/-1; padding: 12px 14px; border-radius: 4px; font-size: 14.5px; background: rgba(47, 122, 85, .1); color: var(--ok) }
.msg-ok.err { background: rgba(154, 90, 20, .1); color: var(--warn) }
.contact-lines { display: grid; gap: 4px; margin-top: 22px; font-size: 15px; color: var(--muted) }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr } }

footer { background: var(--foot-bg); color: var(--foot-fg) }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px 36px }
.foot h3 { font-size: 14px; font-weight: 600; color: var(--foot-head); margin: 0 0 12px; letter-spacing: 0 }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px }
.foot a, .foot button { text-decoration: none; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer }
.foot a:hover, .foot button:hover { color: var(--foot-head) }
.foot img { height: 40px; width: auto }
.foot .about { display: grid; gap: 14px; align-content: start }
.foot .about p { font-size: 14.5px; max-width: 34ch }
.legal { border-top: 1px solid var(--foot-line); padding-block: 18px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr } }

/* dialogs */
dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; color: inherit }
dialog::backdrop { background: rgba(10, 10, 12, .55) }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100%; width: min(580px, 100%); background: var(--surface); color: var(--fg); overflow-y: auto; animation: slide .35s cubic-bezier(.2, .8, .2, 1); box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .4) }
@keyframes slide { from { transform: translateX(30px); opacity: 0 } to { transform: none; opacity: 1 } }
.drawer .well { aspect-ratio: 16/11; display: grid; place-items: center; border-bottom: 1px solid var(--line) }
.drawer .well svg { width: 100%; height: 100% }
.drawer .x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); font-size: 20px; z-index: 2 }
.drawer .content { padding: 24px 24px 32px; display: grid; gap: 14px }
.drawer h2 { font-size: 30px }
.drawer .lead { color: var(--muted) }
.spec { width: 100%; font-size: 14.5px }
.spec th { text-align: left; font-weight: 500; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); width: 40%; vertical-align: top }
.spec td { padding: 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums }
.d-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px }
.viewer { position: fixed; inset: 0; margin: 0; width: 100%; height: 100%; background: #111113; color: #eee; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto }
.v-cap { margin: 0; padding: 0 16px 10px; text-align: center; font-size: 14.5px; color: #c9c6c0 }
.viewer:not([open]) { display: none }
.v-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #26262A }
.v-top h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.v-top .pg { font-size: 13.5px; color: #aaa; margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums }
.v-top button { background: #222226; border: 0; border-radius: 4px; width: 38px; height: 38px; color: #fff; font-size: 18px; flex-shrink: 0 }
.v-stage { position: relative; display: grid; place-items: center; padding: 16px; min-height: 0 }
.v-stage img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 80px -20px #000; transition: opacity .2s }
.v-stage img.out { opacity: 0 }
.v-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 4px; border: 1px solid #333; background: rgba(24, 24, 26, .85); color: #fff; font-size: 20px }
.v-nav.p { left: 12px }
.v-nav.n { right: 12px }
.v-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; border-top: 1px solid #26262A }
.v-thumbs button { flex-shrink: 0; width: 84px; height: 60px; border: 1px solid #333; border-radius: 2px; padding: 0; background: #111 center/cover; opacity: .55 }
.v-thumbs button[aria-current="true"] { opacity: 1; border-color: #D2A57B }
.modal { margin: auto; width: min(420px, calc(100% - 32px)); background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 28px }
.modal:not([open]) { display: none }
.modal form { display: grid; gap: 14px }
.modal h2 { font-size: 26px }
.modal p { color: var(--muted); font-size: 14.5px }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--fg); color: var(--bg); padding: 11px 16px; border-radius: 4px; font-size: 14.5px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 100; max-width: calc(100% - 32px) }
.toast.show { opacity: 1; transform: translate(-50%, 0) }

.rv { transition: opacity .7s ease, transform .7s ease }
.js .rv.pre { opacity: .001; transform: translateY(14px) }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important }
  .js .rv.pre { opacity: 1; transform: none }
}

/* catalogue product images: absolutely placed so percentage sizes resolve against the frame */
.well, .lib-thumb, .ev-cover, .ba-ph { position: relative }
.well img, .lib-thumb > img, .ev-cover > img, .ba-ph > img { position: absolute; z-index: 1; display: block; margin: auto }
img.cut { inset: 9% 11%; width: 78%; height: 82%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .18)) }
img.round { top: 8%; bottom: 8%; left: 0; right: 0; width: auto; height: 84%; aspect-ratio: 1; object-fit: contain; border-radius: 50% !important; box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .45) }
img.cover { inset: 0; width: 100%; height: 100%; object-fit: cover }
.well.photo::after { display: none }
.card .well img { transition: transform .6s cubic-bezier(.2, .8, .2, 1) }
.card:hover .well img { transform: scale(1.045) }
.lib-thumb > img.cut, .ev-cover > img.cut, .ba-ph > img.cut { inset: 11% 11%; height: 78% }
.drawer .well { margin: 0 }
.drawer .well img.cut { inset: 7% 15%; width: 70%; height: 86% }
.drawer .well img.round { top: 6%; bottom: 6%; height: 88% }
.drawer .well figcaption { position: absolute; left: 16px; bottom: 12px; z-index: 2; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line) }
.drawer .well figcaption:empty { display: none }
.d-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 24px 0; scrollbar-width: thin }
.d-thumbs button { position: relative; flex-shrink: 0; width: 76px; height: 76px; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: grid; place-items: center }
.d-thumbs button::after { display: none }
.d-thumbs button img { max-width: 82%; max-height: 82%; object-fit: contain; position: relative; z-index: 1 }
.d-thumbs button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft) }
.d-src { font-size: 12.5px; color: var(--muted) }
.svc-img { margin: 0; background: #6d6d70 }
.svc-img img { width: 100%; height: 100%; object-fit: cover }
.dig-img { border: 1px solid var(--line) }

/* hero image */
.floor-shadow { fill: #000; opacity: .14; filter: blur(5px) }
.hv-img.rise { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both }
@keyframes rise { from { opacity: 0; transform: translateY(18px) } }

/* WhatsApp: a darker green than the brand #25D366 so white text reaches 4.5:1 contrast */
.btn-wa { background: #15803D; color: #fff; gap: 8px }
.btn-wa:hover { background: #116A32 }
.icon-btn.wa-btn { color: #15803D }
.icon-btn.wa-btn:hover { border-color: #15803D }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px }
.cta-row .btn-ghost { gap: 8px }
.contact-lines a { color: var(--fg); font-weight: 600 }
.addr { display: grid; gap: 2px; margin-top: 22px; font-style: normal; font-size: 15px; line-height: 1.5; color: var(--muted) }
.addr b { color: var(--fg); font-weight: 600 }
.addr a { justify-self: start; margin-top: 6px; color: var(--accent); font-weight: 600; text-decoration: none }
.addr a:hover { text-decoration: underline }
.foot .about .foot-addr { font-size: 13.5px; line-height: 1.55; margin-top: 10px }
.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px 12px 14px; border-radius: 30px; background: #15803D; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); transition: transform .2s, background-color .2s }
.wa-fab:hover { background: #116A32; transform: translateY(-2px) }
/* on the home page the floating button steps aside while the showcase's slide controls are on screen (the header keeps its WhatsApp button) */
.wa-fab.tuck { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s }
.wa-fab svg { width: 22px; height: 22px }
@media (max-width: 640px) { .wa-fab span { display: none } .wa-fab { padding: 14px } }

/* technical drawings are shown whole; magnified thread insets */
img.fit { inset: 5%; width: 90%; height: 90%; object-fit: contain; background: #fff }
.well.photo:has(img.fit) { background: #fff }
.dt-ld { stroke: var(--lead); stroke-width: 1; stroke-dasharray: 3 4; fill: none }
.dt-cap { fill: var(--muted); font-family: var(--font); font-size: 12.5px; font-weight: 600 }
@media (max-width: 520px) { .dt-cap { font-size: 19px } }
.bbody .lines .lk { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s }
.bbody .lines .lk:hover, .bbody .lines .lk:focus-visible { color: var(--accent); text-decoration-color: currentColor }
/* the Zygomatic details follow the BIOSmart ones on the same band, split by a hairline */
.section.alt.anat-next { padding-top: 0 }
.section.alt.anat-next > .wrap { border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 96px) }

/* ---------- menu: Medya drop-down ---------- */
.nav-dd { position: relative; display: flex }
.nav-dd .dd-top { display: inline-flex; align-items: center; gap: 4px }
.nav-dd .dd-top svg { transition: transform .2s }
.nav-dd.on > .dd-top { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0 }
.dd-menu { position: absolute; top: 100%; left: -6px; z-index: 60; min-width: 190px; padding: 6px; margin-top: 2px; display: none; flex-direction: column; background: var(--hdr-solid); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow) }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px }
.dd-menu a { padding: 9px 12px; border-radius: 4px }
.dd-menu a:hover, .dd-menu a.on { background: var(--alt); color: var(--fg); box-shadow: none }
.nav-dd:hover .dd-menu, .nav-dd:focus-within .dd-menu { display: flex }
.nav-dd:hover .dd-top svg, .nav-dd:focus-within .dd-top svg { transform: rotate(180deg) }
@media (max-width: 999px) {
  .nav { max-height: calc(100dvh - 74px); overflow-y: auto }
  .nav-dd { flex-direction: column }
  .nav-dd .dd-top svg { display: none }
  .nav-dd.on > .dd-top { box-shadow: none; color: var(--accent) }
  .dd-menu { position: static; display: flex; min-width: 0; margin: 0; padding: 0 0 4px 16px; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; background: none }
  .dd-menu::before { display: none }
  .dd-menu a { padding: 10px 8px; font-size: 16px }
  .dd-menu a:hover, .dd-menu a.on { background: none; color: var(--accent) }
}

/* ---------- subpages ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.muted { color: var(--muted) }
.wrap.narrow > * { max-width: 880px }
.page-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); background: var(--alt) }
.page-hero.slim { padding: 18px 0; background: none }
.ph-text { display: grid; gap: 12px; max-width: 820px; margin-top: 18px }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 52px) }
.page-hero .lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 18.5px); max-width: 72ch }
.page-hero .lead a { color: var(--fg); font-weight: 600 }
/* under a page hero the next section needs less air: the hero already closes with its own padding and rule */
.pdp-def { color: var(--fg); font-size: 16.5px; line-height: 1.6 }
.page-hero + .section { padding-top: clamp(32px, 4.5vw, 56px) }
/* on /kutuphane/ the section's title lives in the hero: the record count sits on the right, just above the tabs */
.page-hero + .section .head-row:has(> .sr-only) { justify-content: flex-end; margin-bottom: 6px }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13.5px; color: var(--muted) }
.crumbs li { display: inline-flex; align-items: center; min-width: 0 }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line) }
.crumbs a { text-decoration: none }
.crumbs a:hover { color: var(--fg) }
.crumbs li[aria-current] { color: var(--fg); overflow-wrap: anywhere }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px }
.pchip { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); text-decoration: none; font-size: 14.5px; font-weight: 500 }
.pchip span { color: var(--muted); font-size: 13px }
.pchip:hover { border-color: var(--accent) }
a.card { color: inherit; text-decoration: none }
.pcat { scroll-margin-top: 84px }

/* product page */
.pdp { padding-top: clamp(16px, 3vw, 32px) }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start }
.pdp-media { position: sticky; top: 94px; display: grid; gap: 12px; min-width: 0 }
.pdp-main { margin: 0; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; place-items: center }
.pdp-main > svg { width: 100%; height: 100% }
.pdp-thumbs { display: grid; grid-template-columns: repeat(var(--cd, 4), minmax(0, 1fr)); gap: 10px }
@media (max-width: 700px) { .pdp-thumbs { grid-template-columns: repeat(var(--cm, 3), minmax(0, 1fr)) } }
.pdp-thumbs figure { margin: 0; display: grid; gap: 6px; min-width: 0 }
.pdp-thumbs .well { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 6px; overflow: hidden }
.pdp-thumbs figcaption { font-size: 12.5px; color: var(--muted); line-height: 1.35 }
.pdp-info { display: grid; gap: 14px; min-width: 0 }
.pdp-info h1 { font-size: clamp(30px, 3.8vw, 44px) }
.pdp-info .lead { font-size: 18px }
.pdp-info > p:not(.lead):not(.pdp-note):not(.pdp-def) { color: var(--muted) }
.pdp-info .d-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px }
.pdp-note { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px }
.pdp-info .spec td { overflow-wrap: anywhere }
@media (max-width: 860px) { .pdp-grid { grid-template-columns: 1fr } .pdp-media { position: static } }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); -webkit-overflow-scrolling: touch }
.tbl-wrap table { font-size: 14.5px; font-variant-numeric: tabular-nums }
.tbl-wrap table.wide { min-width: 600px }
.tbl-wrap th, .tbl-wrap td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top }
.tbl-wrap thead th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--alt) }
.tbl-wrap tr:last-child td { border-bottom: 0 }
.tbl-wrap code, .prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em }
.cdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 4px 0 8px; vertical-align: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15) }
.code-blocks { display: grid; gap: 40px }
.code-block { display: grid; gap: 12px; scroll-margin-top: 90px }
.code-block h3 { font-size: 22px; font-weight: 600 }
.code-block a { color: var(--accent); font-weight: 600; text-decoration: none }
.doc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line) }
.doc-list li { padding: 14px 0; border-bottom: 1px solid var(--line) }
.doc-list a { color: var(--accent); font-weight: 600 }

/* media hub */
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px }
.hub-card { display: grid; gap: 10px; align-content: start; padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s }
.hub-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow) }
.hub-card h2 { font-size: 26px }
.hub-card p { color: var(--muted) }
.hub-card .go { color: var(--accent); font-weight: 600; margin-top: 6px }

/* blog post */
.post-card .well { aspect-ratio: 16/10 }
.post { padding-top: clamp(12px, 2vw, 24px) }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start }
.post-main { display: grid; gap: 24px; min-width: 0 }
.post-head { display: grid; gap: 12px }
.post-head h1 { font-size: clamp(32px, 4.2vw, 50px) }
.post-meta { color: var(--muted); font-size: 14.5px }
.post-fig { margin: 0; aspect-ratio: 16/8; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: relative }
.answer { padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--r) var(--r) 0; display: grid; gap: 6px }
.answer strong { font-size: 13.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent) }
.answer p { font-size: 17.5px }
.toc { padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface) }
.toc strong { font-size: 14px }
.toc ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px }
.toc a { color: var(--muted); text-decoration: none }
.toc a:hover { color: var(--accent) }
.prose { font-size: 17px; line-height: 1.72; max-width: 72ch; min-width: 0 }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 36px 0 12px; scroll-margin-top: 90px }
.prose h2:first-child { margin-top: 0 }
.prose p, .prose ul, .prose ol { margin: 0 0 14px }
.prose ul, .prose ol { padding-left: 22px }
.prose li { margin-bottom: 6px }
.prose a { color: var(--accent); font-weight: 500 }
.prose .tbl-wrap { margin: 6px 0 18px }
.prose .tbl-wrap table { font-size: 15px }
.post-faq h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 8px; scroll-margin-top: 90px }
.post-note { font-size: 14px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line) }
.post-cta { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface) }
.post-cta p { font-weight: 600 }
.post-side { position: sticky; top: 94px; display: grid; gap: 16px; min-width: 0 }
.post-side h2 { font-size: 15px; font-weight: 600; color: var(--muted) }
.mini-list { display: grid; gap: 10px }
.mini { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; text-decoration: none; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface) }
.mini:hover { border-color: var(--accent) }
.mini .well { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; display: block }
.mini .well > svg { width: 100%; height: 100% }
.mini b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3 }
.mini small { color: var(--muted); font-size: 12.5px }
.side-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px }
.side-posts a { text-decoration: none; font-size: 14.5px; line-height: 1.4 }
.side-posts a:hover { color: var(--accent) }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr } .post-side { position: static } }

/* narrow phones: logo and four header buttons fit in 360 px */
@media (max-width: 420px) {
  .hdr .wrap { gap: 10px }
  .brand img { height: 36px }
  .tools { gap: 6px }
  .icon-btn { width: 38px; height: 38px }
}
/* phones: caption and colour chip sit above the drawing instead of over its diameter label */
@media (max-width: 600px) {
  .fviz { display: flex; flex-direction: column; min-height: 0 }
  .fviz .cap, .fviz .chip { position: static; margin: 14px 16px 0 }
  .fviz .chip { align-self: flex-start; margin-top: 8px }
  .fviz .chip[hidden] { display: none }
  .fviz > svg { position: static; width: 100%; height: auto; aspect-ratio: 400 / 480 }
}
.post-fig > svg { width: 100%; height: 100% }

/* hero on phones and tablets: the three system tabs sit under the drawing, which can be swiped */
.hv-tabs { display: none }
@media (max-width: 900px) {
  .hero-copy .pick .hero-ctrl { display: none }
  .hv-tabs { display: grid; gap: 10px; padding: 12px 16px 2px; background: var(--surface); border-top: 1px solid var(--line) }
  .hv-tabs .hc { font-size: 14.5px; line-height: 1.25; white-space: nowrap }
  .hv-note { border-top: 0 }
  .hv-tabs .hv-hint { position: static; grid-column: 1 / -1; justify-content: center; margin-top: 2px }
  .hv-stage[data-dir="next"] .hv-img.rise { animation-name: swipe-next }
  .hv-stage[data-dir="prev"] .hv-img.rise { animation-name: swipe-prev }
}
@keyframes swipe-next { from { opacity: 0; transform: translateX(34px) } }
@keyframes swipe-prev { from { opacity: 0; transform: translateX(-34px) } }

/* vitrin: full-width product slider above the hero, on the site's studio backdrop (light by day, dark by
   night). Slides share one grid cell. All motion is camera motion on the manufacturer's renders:
   pan, zoom and roll (translate, uniform scale, in-plane rotation); nothing is stretched or redrawn.
   The renders sit on the backdrop fully transparent, with no added shadow. */
.vitrin { --vt-d: 12s; position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line);
  background: radial-gradient(85% 110% at 68% 45%, var(--studio-a) 0%, var(--studio-a) 30%, var(--studio-b) 100%) }
.vitrin::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(70% 80% at 68% 50%, #000, transparent); mask-image: radial-gradient(70% 80% at 68% 50%, #000, transparent); pointer-events: none; z-index: -1 }
.vt-track { display: grid; touch-action: pan-y }
.vt-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s .7s }
.vt-slide.on { opacity: 1; visibility: visible; transition: opacity .7s ease }
.vt-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.3fr); gap: clamp(20px, 3vw, 48px); align-items: center; padding-block: 20px 8px }
.vt-copy { display: grid; gap: 18px; align-content: center; max-width: 540px; position: relative; z-index: 2 }
.vt-copy > * { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease }
.vt-slide.on .vt-copy > * { opacity: 1; transform: none }
.vt-slide.on .vt-copy > :nth-child(1) { transition-delay: .5s } .vt-slide.on .vt-copy > :nth-child(2) { transition-delay: .58s }
.vt-slide.on .vt-copy > :nth-child(3) { transition-delay: .66s } .vt-slide.on .vt-copy > :nth-child(n+4) { transition-delay: .74s }
.vt-kicker { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent) }
.vt-copy h2 { margin: 0; font-size: clamp(32px, 4vw, 58px); line-height: 1.04; letter-spacing: -.025em }
.vt-copy p { margin: 0; color: var(--muted); font-size: 18.5px; line-height: 1.55; max-width: 40ch }
.vt-copy .btn { padding: 15px 26px; font-size: 16px }
.vt-spec { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 2px 0 0; padding-top: 14px; border-top: 1px solid var(--line) }
.vt-spec dt { font-size: 13.5px; color: var(--muted) }
.vt-spec dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums }
.vt-vis { position: relative; height: clamp(400px, 64vh, 620px); display: flex; justify-content: center; align-items: flex-end }
.vt-vis img { display: block }

/* 1: four shots cut together like a product film */
.vt-film { align-items: center; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent) }
.vt-film .sh { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; will-change: transform, opacity }
.vt-film .sh img { width: auto }
.vt-film .sh-a img { height: 116% }
.vt-film .sh-b img { height: 104%; -webkit-mask-image: linear-gradient(transparent 2%, #000 24%); mask-image: linear-gradient(transparent 2%, #000 24%) }
.vt-film .sh-c img { height: 100%; -webkit-mask-image: linear-gradient(#000 64%, transparent 96%); mask-image: linear-gradient(#000 64%, transparent 96%) }
.vt-film .sh-d img { height: 92%; -webkit-mask-image: linear-gradient(#000 66%, transparent 98%); mask-image: linear-gradient(#000 66%, transparent 98%) }
.vt-slide.on .sh-a { animation: sh-a 8s linear forwards }
.vt-slide.on .sh-b { animation: sh-b 8s linear forwards }
.vt-slide.on .sh-c { animation: sh-c 8s linear forwards }
.vt-slide.on .sh-d { animation: sh-d 8s linear forwards }
/* four 2 s shots, cross-faded; each one keeps moving until the next is in */
.vt-film .sh-a { opacity: 1 }
@keyframes sh-a { 0% { opacity: 1; transform: translate(10%, 8%) rotate(-32deg) } 23% { opacity: 1 } 28% { opacity: 0; transform: translate(-9%, -7%) rotate(-32deg) scale(1.06) } 100% { opacity: 0; transform: translate(-9%, -7%) rotate(-32deg) scale(1.06) } }
@keyframes sh-b { 0%, 23% { opacity: 0; transform: translateY(10%) scale(1.04) } 28% { opacity: 1 } 48% { opacity: 1 } 53% { opacity: 0; transform: translateY(-9%) scale(1.13) } 100% { opacity: 0; transform: translateY(-9%) scale(1.13) } }
@keyframes sh-c { 0%, 48% { opacity: 0; transform: translateY(-7%) scale(1.02) } 53% { opacity: 1 } 73% { opacity: 1 } 78% { opacity: 0; transform: translateY(7%) scale(1.11) } 100% { opacity: 0; transform: translateY(7%) scale(1.11) } }
@keyframes sh-d { 0%, 73% { opacity: 0; transform: scale(.9) } 78% { opacity: 1 } 100% { opacity: 1; transform: scale(1.07) } }

/* 2: nine lengths at true relative scale; the camera sweeps the apical threads, then pulls back */
.vt-lineup { overflow: hidden; align-items: stretch; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent) }
.vt-cam { height: 100%; width: 100%; display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 1.6vw, 22px); padding: 6% 0 34px; transform-origin: 50% 88% }
.vt-lineup figure { margin: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative }
/* a narrow column caps the width (img max-width): the picture then keeps its own proportions inside the box, standing on its base */
.vt-lineup img { height: 100%; width: auto; object-fit: contain; object-position: 50% 100%; opacity: 0; transform: translateY(60px) }
.vt-lineup figcaption { position: absolute; top: 100%; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; opacity: 0 }
.vt-slide.on .vt-cam { animation: vt-cam 9s linear forwards }
.vt-slide.on .vt-lineup img { animation: vt-rise 1s cubic-bezier(.2, .7, .2, 1) forwards }
.vt-slide.on .vt-lineup figcaption { animation: vt-cap 9s linear forwards }
.vt-lineup figure:nth-child(2) img { animation-delay: .09s !important } .vt-lineup figure:nth-child(3) img { animation-delay: .18s !important }
.vt-lineup figure:nth-child(4) img { animation-delay: .27s !important } .vt-lineup figure:nth-child(5) img { animation-delay: .36s !important }
.vt-lineup figure:nth-child(6) img { animation-delay: .45s !important } .vt-lineup figure:nth-child(7) img { animation-delay: .54s !important }
.vt-lineup figure:nth-child(8) img { animation-delay: .63s !important } .vt-lineup figure:nth-child(9) img { animation-delay: .72s !important }
@keyframes vt-rise { to { opacity: 1; transform: none } }
@keyframes vt-cam { 0% { transform: translateX(52%) scale(2.3) } 45% { transform: translateX(-46%) scale(2.3) } 52% { transform: translateX(-38%) scale(2) } 68% { transform: scale(.93) } 100% { transform: scale(.96) } }
@keyframes vt-cap { 0%, 66% { opacity: 0 } 74%, 100% { opacity: 1 } }

/* 3: WebGL parts from the exocad library */
.vt-3d { align-items: stretch; cursor: grab }
.vt-vis.vt-3d { height: clamp(440px, 70vh, 700px) }
.vt-3d.drag { cursor: grabbing }
.vt-3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block }
/* a set whose model is still downloading: the previous one stays, dimmed */
.vt-3d canvas { transition: opacity .25s }
.vt-3d.busy canvas { opacity: .45 }
.vt-3d-msg { margin: auto; color: var(--muted); font-size: 14px }
.vt-3d.ready .vt-3d-msg { display: none }
.vt-3d-hint { position: absolute; right: 0; bottom: 6px; font-size: 12.5px; color: var(--muted); pointer-events: none }
@media (hover: none) { .vt-3d-hint { display: none } }
.vt-sets { position: absolute; left: 0; bottom: 4px; z-index: 2; display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface) }
.vt-set { padding: 6px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap }
.vt-set:hover { color: var(--fg) }
.vt-set[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent) }
.vt-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible }
.vt-lines path { fill: none; stroke: var(--lead); stroke-width: 1 }
.vt-lab { position: absolute; left: 0; top: 0; font-size: 14px; font-weight: 600; color: var(--fg); white-space: nowrap; pointer-events: none; will-change: transform }

/* 4: push-in on the cross-section */
.vt-cut { overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 6%, #000 90%, transparent); mask-image: linear-gradient(transparent, #000 6%, #000 90%, transparent) }
.vt-zoom { position: relative; height: 100%; display: flex; justify-content: center; align-items: flex-end; transform-origin: 50% 18% }
.vt-zoom img { height: 100%; width: auto }
.vt-slide.on .vt-cut .vt-zoom { animation: vt-push-cut 7s linear forwards }
@keyframes vt-push-cut { 0% { transform: scale(1.05) translateY(2%) } 100% { transform: scale(2.1) translateY(-1%) } }

/* tabs with progress, arrows, pause */
.vt-bar { display: flex; align-items: flex-end; gap: 24px; padding-block: 4px 24px; position: relative; z-index: 2 }
.vt-tabs { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px }
.vt-tab { display: grid; gap: 10px; padding: 0 0 2px; border: 0; background: none; text-align: left; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted) }
.vt-tab:hover, .vt-tab[aria-selected="true"] { color: var(--fg) }
.vt-tab .bar { height: 2px; background: var(--line); overflow: hidden }
.vt-tab .bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50% }
.vt-tab[aria-selected="true"] .bar i { transform: none }
.vitrin.auto .vt-tab[aria-selected="true"] .bar i { transform: scaleX(0); animation: prog var(--vt-d) linear forwards }
.vt-ctl { display: flex; gap: 6px }
.vt-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg) }
.vt-btn:hover { border-color: var(--fg) }
.vt-btn .i-play, .vitrin.stopped .vt-btn .i-pause { display: none }
.vitrin.stopped .vt-btn .i-play { display: block }
.vitrin :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px }
.vitrin.hold *, .vitrin.hold *::after { animation-play-state: paused !important }

@media (max-width: 860px) {
  .vt-grid { grid-template-columns: 1fr; gap: 12px; padding-block: 8px 12px; align-content: start }
  .vt-copy { gap: 10px; max-width: none }
  .vt-copy h2 { font-size: clamp(28px, 7.6vw, 36px) }
  .vt-copy p { font-size: 16px; line-height: 1.5 }
  .vt-copy .btn { padding: 13px 20px; font-size: 15px }
  .vt-kicker { font-size: 12.5px }
  .vt-spec { display: none }
  .vt-lab { font-size: 11.5px }
  .vt-sets { top: 6px; bottom: auto }
  .vt-set { padding: 5px 9px; font-size: 12px }
  .vt-vis { height: clamp(260px, 42vh, 380px); order: -1 }
  .vt-vis.vt-3d { height: clamp(280px, 46vh, 400px) }
  .vt-cam { padding-bottom: 26px }
  .vt-lineup figcaption { font-size: 10.5px }
  .vt-bar { gap: 12px; padding-bottom: 18px }
  .vt-tabs { gap: 8px; padding-right: 62px }
  .vt-tab { font-size: 12px; gap: 8px }
  .vt-bar { position: static }
  .vt-ctl { position: absolute; top: 12px; right: 16px; z-index: 3 }
  .vt-ctl .vt-btn[data-vt="prev"], .vt-ctl .vt-btn[data-vt="next"] { display: none }
  .vt-btn { width: 34px; height: 34px }
}
@media (max-width: 420px) {
  .vt-cam { gap: 6px }
  .vt-lineup figcaption { font-size: 9.5px }
  .vt-copy .cta .btn { padding-inline: 14px }
}
@media (prefers-reduced-motion: reduce) {
  .vt-slide, .vt-copy > * { transition: none }
  .vitrin .vt-slide.on * { animation: none !important }
  .vt-lineup img, .vt-lineup figcaption { opacity: 1; transform: none }
  .vt-film .sh-a { opacity: 1; transform: rotate(-32deg) }
}

/* contact: two lines, each with its WhatsApp and phone number */
.lines2 { display: grid; gap: 10px; margin-top: 8px }
.line { display: grid; grid-template-columns: 52px minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface) }
.line .lt { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent) }
.ln { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 9px 11px; border-radius: 6px; border: 1px solid var(--line); text-decoration: none; color: var(--fg); font-size: 13.5px; white-space: nowrap }
.ln b { font-weight: 700; font-variant-numeric: tabular-nums }
.ln svg { flex: none }
.ln:hover { border-color: var(--fg) }
.ln-wa { background: #15803D; border-color: #15803D; color: #fff }
.ln-wa:hover { background: #116A32; border-color: #116A32 }
.form .row { flex-wrap: wrap }
@media (max-width: 560px) { .line { grid-template-columns: 1fr 1fr } .line .lt { grid-column: 1 / -1 } .ln { font-size: 13px; padding: 9px 10px; gap: 6px } }
/* a phone is too narrow for both buttons with their full numbers side by side */
@media (max-width: 440px) { .line { grid-template-columns: 1fr } .ln { font-size: 14px; padding: 11px 12px } }

/* quote window */
.quote-dlg { width: min(620px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto }
.qd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px }
.qd-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 20px; line-height: 1 }
.qd-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.qd-fields .full { grid-column: 1 / -1 }
.qd-send { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.qd-send .btn { padding-inline: 12px; font-size: 14.5px }
.modal .qd-note { font-size: 13px }
@media (max-width: 560px) { .qd-fields, .qd-send { grid-template-columns: 1fr } .quote-dlg { padding: 20px } }

/* browsers without <dialog> (Safari < 15.4): app.js adds .dlg-fb and a backdrop */
dialog:not([open]) { display: none }
.dlg-bd { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 90; background: rgba(10, 10, 12, .55) }
dialog.dlg-fb[open] { position: fixed; z-index: 100 }
.modal.dlg-fb[open], .case-dlg.dlg-fb[open] { top: 50%; left: 50%; margin: 0; transform: translate(-50%, -50%) }
.drawer.dlg-fb[open] { top: 0; right: 0; bottom: 0; left: auto }
.viewer.dlg-fb[open] { top: 0; right: 0; bottom: 0; left: 0 }

/* browsers without the inset shorthand (Safari < 14.1) */
@supports not (inset: 0) {
  img.cut { top: 9%; right: 11%; bottom: 9%; left: 11% }
  img.cover { top: 0; right: 0; bottom: 0; left: 0 }
  img.fit { top: 5%; right: 5%; bottom: 5%; left: 5% }
  .lib-thumb > img.cut, .ev-cover > img.cut, .ba-ph > img.cut { top: 11%; right: 11%; bottom: 11%; left: 11% }
  .drawer .well img.cut { top: 7%; right: 15%; bottom: 7%; left: 15% }
  .hv-stage > svg, .vt-film .sh, .vt-3d canvas, .vt-lines { top: 0; right: 0; bottom: 0; left: 0 }
}

/* vitrin: the logo and slogan stay put while the slides change */
.vt-brand { display: flex; align-items: center; gap: 18px; padding-top: 22px; position: relative; z-index: 3 }
.vt-brand img { height: 52px; width: auto; display: block }
.vt-slogan { margin: 0; padding-left: 18px; border-left: 1px solid var(--line); font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--fg) }
@media (max-width: 860px) { .vt-brand { gap: 12px; padding-top: 14px } .vt-brand img { height: 36px } .vt-slogan { font-size: 15px; padding-left: 12px } }

/* BIOSmart slide: four lengths of the 4.0 mm implant from the catalogue, heights in true proportion */
.vt-bio .vt-cam { gap: clamp(14px, 3vw, 46px); padding: 4% 4% 34px; transform-origin: 50% 90% }
.vt-bio figure { justify-content: flex-end }
.vt-slide.on .vt-bio .vt-cam { animation: vt-cam-bio 9s cubic-bezier(.3, 0, .3, 1) forwards }
@keyframes vt-cam-bio { 0% { transform: translateX(8%) scale(1.18) } 100% { transform: translateX(-2%) scale(1) } }
.vt-slide.on .vt-bio figcaption { animation: vt-cap-bio 9s linear forwards }
@keyframes vt-cap-bio { 0%, 12% { opacity: 0 } 22%, 100% { opacity: 1 } }
.vt-dia dd { display: flex; align-items: center; gap: 6px }
.vt-dia dd i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; margin-left: 4px }
.vt-dia dd i:first-child { margin-left: 0 }
@media (max-width: 860px) { .vt-tab { font-size: 11px } .vt-tabs { gap: 6px } }

/* about */
.about-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px clamp(28px, 5vw, 72px); align-items: start }
.about-wrap .head { margin: 0 }
.about-text { display: grid; gap: 14px; color: var(--muted); font-size: 17px; line-height: 1.65 }
.about-text p { margin: 0 }
.about-lead { color: var(--fg); font-size: 20px; line-height: 1.55 }
.about-points { grid-column: 1 / -1; list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
.about-points li { display: grid; gap: 4px; padding-top: 16px; border-top: 2px solid var(--accent) }
.about-points b { font-size: 26px; letter-spacing: -.02em }
.about-points span { color: var(--muted); font-size: 15px }
@media (max-width: 860px) { .about-wrap { grid-template-columns: 1fr } .about-points { gap: 12px } .about-points b { font-size: 22px } .about-points span { font-size: 13.5px } .about-lead { font-size: 18px } }
