.lab-ruler { position: fixed; z-index: 80; top: var(--header-height); bottom: 0; left: 10px; width: 24px; border-left: 1px solid var(--line-strong); pointer-events: none; }
.lab-ruler::before { content: ''; position: absolute; inset: 0 0 0 -1px; background: repeating-linear-gradient(to bottom, transparent 0 15px, var(--line-strong) 15px 16px, transparent 16px 31px); opacity: .5; }
.lab-ruler__progress { position: absolute; left: -2px; top: 0; width: 4px; height: 0; background: var(--cobalt); }
.lab-ruler b { position: absolute; left: 9px; top: 12px; writing-mode: vertical-rl; font-size: .65rem; letter-spacing: .18em; }
.pointer-readout { position: fixed; z-index: 79; right: 18px; bottom: 15px; display: flex; gap: 10px; pointer-events: none; font-size: .62rem; font-weight: 800; letter-spacing: .12em; background: rgba(242,239,230,.82); border: 1px solid var(--line); padding: 6px 8px; backdrop-filter: blur(8px); }
.site-header { position: sticky; z-index: 100; top: 0; height: var(--header-height); background: rgba(242,239,230,.92); border-bottom: 1px solid var(--line-strong); backdrop-filter: blur(14px); transition: transform .35s var(--ease-out), background .25s; }
.site-header.is-hidden { transform: translateY(-102%); }
.header-shell { height: 100%; width: min(calc(100% - 32px), 1600px); margin-inline: auto; display: grid; grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr); align-items: center; gap: 28px; }
.brand { display: inline-flex; width: max-content; }
.brand img { width: clamp(190px, 17vw, 242px); }
.main-nav { display: flex; height: 100%; align-items: stretch; }
.main-nav a { position: relative; display: flex; align-items: center; gap: 7px; padding: 0 18px; font-size: .82rem; font-weight: 800; }
.main-nav a:last-child { border-right: 0; }
.main-nav a span { font-size: .6rem; color: var(--cobalt); }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
.main-nav a:hover::after, .main-nav a[aria-current='page']::after { transform: scaleX(1); }
.header-contact { justify-self: end; display: inline-flex; align-items: center; gap: 12px; font-size: .82rem; font-weight: 900; border-bottom: 2px solid var(--ink); padding: 7px 0; }
.header-contact:hover { color: var(--cobalt); }
.menu-toggle { display: none; justify-self: end; width: 46px; height: 46px; border: 1px solid var(--ink); background: transparent; padding: 0; cursor: pointer; }
.menu-toggle i { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded='true'] i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { position: fixed; z-index: 99; inset: var(--header-height) 0 0; background: var(--acid); padding: 30px var(--gutter) max(28px, env(safe-area-inset-bottom)); overflow-y: auto; }
.mobile-menu__label { font-size: .7rem; font-weight: 900; letter-spacing: .16em; margin-bottom: 32px; }
.mobile-menu nav { border-top: 2px solid var(--ink); }
.mobile-menu nav a { display: grid; grid-template-columns: 54px 1fr; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--ink); font-size: clamp(1.8rem, 7vw, 3rem); line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.mobile-menu nav a span { font-size: .72rem; letter-spacing: .12em; }
.mobile-menu__meta { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 30px; font-size: .78rem; font-weight: 700; }
.mobile-menu__meta a { width: 100%; margin-top: 8px; text-decoration: underline; }
.toast-wrap { position: fixed; z-index: 200; top: calc(var(--header-height) + 18px); right: 20px; width: min(420px, calc(100% - 40px)); }
.toast { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 18px; border: 2px solid var(--ink); background: var(--white); box-shadow: 7px 7px 0 var(--ink); font-weight: 700; }
.toast--error { border-color: var(--danger); }
.toast--success { border-color: var(--success); }
.toast button { border: 0; background: none; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.site-footer { position: relative; padding: 0 0 22px; background: var(--ink); color: var(--white); overflow: hidden; }
.footer-topline { display: flex; justify-content: space-between; gap: 30px; padding: 12px 3vw; border-bottom: 1px solid rgba(255,255,255,.18); color: var(--acid); font-size: .65rem; font-weight: 900; letter-spacing: .16em; }
.footer-main { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8vw; padding-block: clamp(70px, 10vw, 150px); }
.footer-statement h2 { max-width: 720px; margin: 24px 0 36px; font-size: clamp(3rem, 6vw, 7rem); line-height: .92; letter-spacing: -.06em; }
.footer-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-self: end; }
.footer-columns h3 { margin-bottom: 20px; color: var(--acid); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-columns a, .footer-columns span { display: block; margin: 9px 0; font-size: .88rem; color: rgba(255,255,255,.78); }
.footer-columns a:hover { color: var(--acid); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); font-size: .72rem; color: rgba(255,255,255,.56); }
.footer-bottom div { display: flex; gap: 22px; }
@media (max-width: 1120px) {
    .header-shell { grid-template-columns: 1fr auto; }
    .main-nav, .header-contact { display: none; }
    .menu-toggle { display: block; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-columns { max-width: 850px; }
}
@media (max-width: 760px) {
    :root { --header-height: 68px; }
    .lab-ruler, .pointer-readout { display: none; }
    .header-shell { width: calc(100% - 24px); }
    .brand img { width: 176px; }
    .footer-topline span:nth-child(n+3) { display: none; }
    .footer-main { padding-block: 60px; }
    .footer-columns { grid-template-columns: 1fr 1fr; }
    .footer-columns > div:last-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; }
}
