/* Alpha Asbestos Abatement, Inc. — site stylesheet.
   Logo navy and the plate blue of the original logo, with the yellow of the DANGER ASBESTOS tape in the
   firm's own photos. Anton (display) + Geist (text), both SIL OFL, self-hosted. One light theme with
   navy bands. */

@font-face {
    font-family: "Anton";
    src: url("/fonts/anton.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Geist";
    src: url("/fonts/geist.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --night: #06122f;
    --navy: #0b1f4d;
    --navy-2: #16306b;
    --plate: #3a6eaf;      /* the blue plate of the logo */
    --plate-soft: #dfe8f4;
    --sky: #9fc0ec;
    --tape: #f6d10f;       /* the yellow of the DANGER ASBESTOS tape */
    --tape-deep: #e2b900;
    --tape-ink: #111111;
    --page: #f3f5f9;
    --sheet: #ffffff;
    --ink: #121a2e;
    --muted: #46516a;
    --line: #d3dae6;
    --link: #1b4a95;
    --on-dark: #ffffff;
    --on-dark-muted: #c6d3ea;
    --radius: 18px;
    --display: "Anton", Impact, "Arial Narrow", sans-serif;
    --text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    --lb-bg: rgba(6, 18, 47, .94);
    --lb-text: #ffffff;
    --lb-accent: #f6d10f;
    --lb-accent-soft: rgba(246, 209, 15, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--text);
    overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--tape-deep); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--tape); color: var(--tape-ink); padding: .6rem 1rem; font-weight: 700; border-radius: 8px; }
.skip:focus { top: 1rem; }

/* ---------- header ---------- */
.top {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .93);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; padding-block: .55rem; }
.brand { display: block; flex: 0 0 auto; border-radius: 6px; }
.brand img { width: 150px; height: auto; }
.nav { order: 3; flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: .1rem 0; margin-inline: -.4rem; }
.nav a {
    color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem;
    padding: .35rem .4rem; border-radius: 999px;
}
@media (min-width: 980px) { .nav { gap: .1rem .3rem; } .nav a { font-size: .95rem; padding: .35rem .6rem; } }
.nav a:hover { background: var(--plate-soft); color: var(--navy); }
.nav a[aria-current] { background: var(--navy); color: #fff; }
.top-call {
    margin-left: auto; display: inline-flex; align-items: center; gap: .4rem;
    background: var(--tape); color: var(--tape-ink); text-decoration: none;
    font-weight: 750; font-size: .95rem; padding: .5rem .8rem; border-radius: 999px;
    box-shadow: inset 0 0 0 2px var(--tape-ink); white-space: nowrap;
}
.top-call:hover { background: var(--tape-deep); color: var(--tape-ink); }
@media (min-width: 980px) {
    .brand img { width: 230px; }
    .nav { order: 0; flex: 1 1 auto; justify-content: center; margin: 0; }
    .top-call { margin-left: 0; font-size: 1rem; }
}
@media (max-width: 979px) { .top { position: relative; } }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font: 700 1rem/1.2 var(--text); text-decoration: none; cursor: pointer;
    padding: .9rem 1.4rem; border-radius: 999px; border: 0;
    transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-tape { background: var(--tape); color: var(--tape-ink); box-shadow: inset 0 0 0 2px var(--tape-ink); }
.btn-tape:hover { background: var(--tape-deep); color: var(--tape-ink); }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--night); color: #fff; }

/* ---------- caution tape (the credentials) ---------- */
.tape {
    overflow: hidden; white-space: nowrap;
    background:
        repeating-linear-gradient(-45deg, var(--tape-ink) 0 14px, transparent 14px 28px) top / 100% 7px no-repeat,
        repeating-linear-gradient(-45deg, var(--tape-ink) 0 14px, transparent 14px 28px) bottom / 100% 7px no-repeat,
        var(--tape);
    color: var(--tape-ink);
    font: 400 1.05rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
    padding: 1rem 0;
}
.tape span { display: inline-block; padding-left: 1rem; }
.tape-hero { transform: rotate(-1.6deg); margin: 0 -2rem -1.2rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); position: relative; z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
    .tape-hero span { animation: tape 60s linear infinite; }
    @keyframes tape { to { transform: translateX(-50%); } }
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    color: var(--on-dark);
    background:
        radial-gradient(60rem 30rem at 85% 10%, rgba(58, 110, 175, .55), transparent 60%),
        radial-gradient(40rem 30rem at 0% 100%, rgba(22, 48, 107, .9), transparent 70%),
        linear-gradient(160deg, var(--navy) 0%, var(--night) 100%);
    padding-top: clamp(2rem, 6vw, 4.5rem);
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 6px);
}
.hero-grid { position: relative; display: grid; gap: 2rem; align-items: center; padding-bottom: 3rem; }
.eyebrow { font-weight: 650; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; color: var(--on-dark-muted); margin-bottom: 1rem; }
.hero h1 {
    font: 400 clamp(2.9rem, 9vw, 6.2rem)/.95 var(--display);
    letter-spacing: .005em; text-transform: uppercase; margin-bottom: 1.2rem;
}
.hero h1 span { color: var(--tape); display: block; }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--on-dark-muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.2rem; }
.hero-note { font-size: .95rem; color: var(--on-dark-muted); }
.hero-note strong { color: var(--tape); }
.hero-fig { margin: 0; }
.cont { width: 100%; height: auto; display: block; }
.cont-tag { font: 600 11px var(--text); letter-spacing: .12em; fill: #dfe8f4; }
.cont-num circle { fill: var(--tape); stroke: var(--tape-ink); stroke-width: 2; }
.cont-num text { fill: var(--tape-ink); }
.cont-legend { margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: c; display: grid; gap: .5rem; font-size: .95rem; color: var(--on-dark-muted); }
.cont-legend li { counter-increment: c; display: grid; grid-template-columns: 1.8rem 1fr; gap: .6rem; align-items: start; }
.cont-legend li::before {
    content: counter(c); display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
    background: var(--tape); color: var(--tape-ink); font: 400 .95rem/1 var(--display);
}
@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; padding-bottom: 4.5rem; }
    .cont-legend { grid-template-columns: 1fr 1fr; gap: .6rem 1.4rem; }
}
@media (prefers-reduced-motion: no-preference) {
    .cont-seal { stroke-dashoffset: 1440; animation: seal 1.8s ease-out .2s forwards; }
    @keyframes seal { from { stroke-dashoffset: 1440; } to { stroke-dashoffset: 0; } }
    .cont-air path { stroke-dasharray: 8 10; animation: air 1.6s linear infinite; }
    @keyframes air { to { stroke-dashoffset: -36; } }
    .cont-out path { stroke-dasharray: 6 6; animation: air 1.2s linear infinite; }
    .cont-fibers .f { animation: fiber 4.5s ease-in infinite; }
    .cont-fibers .f2 { animation-delay: .7s; } .cont-fibers .f3 { animation-delay: 1.4s; }
    .cont-fibers .f4 { animation-delay: 2.1s; } .cont-fibers .f5 { animation-delay: 2.8s; } .cont-fibers .f6 { animation-delay: 3.5s; }
    @keyframes fiber {
        0% { transform: translate(0, 0); opacity: 0; }
        12% { opacity: 1; }
        80% { opacity: .9; }
        100% { transform: translate(var(--fx, 220px), var(--fy, 90px)); opacity: 0; }
    }
    .cont-fibers .f1 { --fx: 260px; --fy: 120px; } .cont-fibers .f2 { --fx: 190px; --fy: 140px; }
    .cont-fibers .f3 { --fx: 290px; --fy: 60px; } .cont-fibers .f4 { --fx: 120px; --fy: 100px; }
    .cont-fibers .f5 { --fx: 220px; --fy: 100px; } .cont-fibers .f6 { --fx: 140px; --fy: 60px; }
    .cont .fan { transform-origin: 461px 331px; animation: fan 1s linear infinite; }
    @keyframes fan { to { transform: rotate(360deg); } }
    .cont-num .n { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .4s ease-out forwards; }
    .cont-num .n1 { animation-delay: 1.4s; } .cont-num .n2 { animation-delay: 1.65s; }
    .cont-num .n3 { animation-delay: 1.9s; } .cont-num .n4 { animation-delay: 2.15s; }
    @keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
    .hero-copy > * { animation: rise .7s ease-out both; }
    .hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; }
    .hero-copy > :nth-child(4) { animation-delay: .24s; } .hero-copy > :nth-child(5) { animation-delay: .32s; }
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- sections ---------- */
.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.sec-title { font: 400 clamp(2rem, 5vw, 3.3rem)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--navy); }
.sec-title::after { content: ""; display: block; width: 3.2rem; height: .4rem; margin-top: .7rem; background: var(--tape); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.sec-lead { font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 46rem; color: var(--muted); }

/* trail of years */
.trail-band { padding-top: clamp(4rem, 8vw, 6rem); }
.trail { list-style: none; margin: 2.2rem 0 1.4rem; padding: 0; display: grid; gap: 1rem; counter-reset: t; }
.trail li {
    position: relative; background: var(--sheet); border-radius: var(--radius); padding: 1.2rem 1.3rem 1.3rem;
    box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(11, 31, 77, .35);
    display: grid; gap: .3rem; border-top: 6px solid var(--navy);
}
.trail li:last-child { border-top-color: var(--tape); }
.trail-year { font: 400 clamp(2.6rem, 6vw, 3.6rem)/1 var(--display); color: var(--navy); }
.trail-more { font-weight: 650; }
@media (min-width: 720px) { .trail { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .trail li { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    }
}

/* the three companies: a bento */
.services-band { background: var(--sheet); }
.svc-grid { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.svc a {
    position: relative; display: grid; gap: .45rem; height: 100%; text-decoration: none;
    padding: 1.6rem 1.5rem 3.6rem; border-radius: var(--radius); color: var(--ink);
    background: var(--page); border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease;
}
.svc a:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(11, 31, 77, .5); }
.svc-1 a { background: linear-gradient(150deg, var(--navy-2), var(--navy)); color: #fff; border: 0; }
.svc-code { font: 400 1.05rem/1 var(--display); letter-spacing: .1em; color: var(--navy); background: var(--tape); padding: .3rem .5rem; border-radius: 6px; justify-self: start; }
.svc-company { font-size: .85rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.svc-1 .svc-company { color: var(--on-dark-muted); }
.svc-name { font: 400 clamp(1.6rem, 3.4vw, 2.3rem)/1.05 var(--display); text-transform: uppercase; }
.svc-1 .svc-name { color: #fff; }
.svc-2 .svc-name, .svc-3 .svc-name { color: var(--navy); }
.svc-sum { color: inherit; }
.svc-2 .svc-sum, .svc-3 .svc-sum { color: var(--muted); }
.svc-1 .svc-sum { color: var(--on-dark-muted); }
.svc-go { position: absolute; right: 1.3rem; bottom: 1rem; font-size: 1.8rem; line-height: 1; }
@media (min-width: 860px) {
    .svc-grid { grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; }
    .svc-1 { grid-row: span 2; }
    .svc-1 a { align-content: end; min-height: 26rem; }
}

/* mission */
.mission { background: var(--plate-soft); }
.mission-grid { display: grid; gap: 2rem; align-items: center; }
.mission blockquote {
    margin: 1.6rem 0; padding: 0 0 0 1.3rem; border-left: 6px solid var(--tape);
    font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 500; color: var(--navy);
}
.mission-photo { justify-self: center; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 40px -24px rgba(11, 31, 77, .6); border: 8px solid #fff; }
.mission-photo img { width: 266px; }
@media (min-width: 860px) { .mission-grid { grid-template-columns: 1.6fr 1fr; } }

/* projects */
.proj-row { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.proj-card {
    position: relative; display: grid; align-content: end; min-height: 22rem; overflow: hidden;
    border-radius: var(--radius); text-decoration: none; color: #fff; background: var(--navy);
    padding: 1.3rem; isolation: isolate;
}
.proj-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s ease; }
.proj-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 18, 47, 0) 25%, rgba(6, 18, 47, .9) 72%); }
.proj-card:hover { color: #fff; }
.proj-card:hover img { transform: scale(1.05); }
.proj-name { font: 400 1.9rem/1.05 var(--display); text-transform: uppercase; }
.proj-sum { color: #e3eaf6; font-size: .97rem; margin-top: .3rem; }
.proj-count { justify-self: start; margin-top: .7rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--tape); color: var(--tape-ink); padding: .25rem .55rem; border-radius: 6px; }
@media (min-width: 760px) { .proj-row { grid-template-columns: repeat(3, 1fr); } .proj-card { min-height: 28rem; } }

/* clients */
.clients { background: var(--sheet); }
.client-row { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; }
.client-row img { max-height: 84px; width: auto; }

/* call band */
.call-band {
    background:
        repeating-linear-gradient(-45deg, var(--tape-ink) 0 14px, transparent 14px 28px) top / 100% 8px no-repeat,
        linear-gradient(120deg, var(--navy), var(--night));
    color: #fff; padding-block: 3rem;
}
.call-grid { display: grid; gap: 1.4rem; align-items: center; }
.call-kicker { font: 400 1.2rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--tape); margin-bottom: .4rem; }
.call-phone { font: 400 clamp(2.6rem, 8vw, 4.6rem)/1 var(--display); margin-bottom: .6rem; }
.call-phone a, .call-band a { color: #fff; }
.call-band p { color: var(--on-dark-muted); }
.call-band .btn-navy { background: var(--tape); color: var(--tape-ink); justify-self: start; }
.call-band .btn-navy:hover { background: var(--tape-deep); color: var(--tape-ink); }
@media (min-width: 760px) { .call-grid { grid-template-columns: 1fr auto; } }

/* ---------- inner pages ---------- */
.page-head {
    color: #fff; padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2.5rem, 6vw, 4rem);
    background:
        repeating-linear-gradient(-45deg, var(--tape-ink) 0 14px, var(--tape) 14px 28px) bottom / 100% 8px no-repeat,
        radial-gradient(40rem 20rem at 90% 0%, rgba(58, 110, 175, .6), transparent 70%),
        linear-gradient(160deg, var(--navy), var(--night));
}
.page-head h1 { font: 400 clamp(2.4rem, 7vw, 4.6rem)/1 var(--display); text-transform: uppercase; max-width: 20ch; }
.page-head .lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--on-dark-muted); max-width: 46rem; margin: 0; }
.page-head .lead a { color: var(--tape); }
.page-head .code { background: var(--tape); color: var(--tape-ink); padding: .15rem .4rem; border-radius: 4px; margin-right: .3rem; }
.crumbs ol { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .9rem; color: var(--on-dark-muted); }
.crumbs li + li::before { content: "/"; margin-right: .3rem; opacity: .7; }
.crumbs a { color: #fff; }

.prose { max-width: 44rem; }
.prose h2 { font: 400 clamp(1.6rem, 3.6vw, 2.2rem)/1.05 var(--display); text-transform: uppercase; color: var(--navy); margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose-wide { max-width: 50rem; margin-bottom: 2.4rem; }
.pull { font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 600; color: var(--navy); border-left: 6px solid var(--tape); padding-left: 1rem; }
.prose-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .prose-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.side-figs { display: grid; gap: 1.2rem; }
.side-figs figure, .about-photo { margin: 0; background: var(--sheet); padding: .7rem; border-radius: var(--radius); box-shadow: 0 1px 0 var(--line), 0 16px 30px -22px rgba(11, 31, 77, .5); }
.side-figs a, .about-photo a { display: block; border-radius: 10px; overflow: hidden; }
.side-figs img { margin-inline: auto; }
.side-figs figcaption { font-size: .9rem; color: var(--muted); padding: .6rem .2rem 0; }
.tick-list, .num-list { padding: 0; list-style: none; display: grid; gap: .7rem; margin: 0 0 1.4rem; }
.tick-list li { position: relative; padding-left: 2rem; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 4px; background: repeating-linear-gradient(-45deg, var(--tape-ink) 0 3px, var(--tape) 3px 6px); }
.num-list { counter-reset: n; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .5rem; }
.num-list li { counter-increment: n; background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; display: flex; gap: .7rem; align-items: baseline; }
.num-list li::before { content: counter(n); font: 400 1.2rem/1 var(--display); color: var(--navy); }
.psi { display: flex; flex-wrap: wrap; gap: 1rem; }
.psi span { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1rem 1.3rem; display: grid; font-weight: 600; }
.psi b { font: 400 3rem/1 var(--display); color: var(--tape); }

.others { background: var(--sheet); }
.other-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem; }
.other-list a { display: inline-flex; gap: .5rem; align-items: center; padding: .8rem 1.2rem; border-radius: 999px; background: var(--page); border: 1px solid var(--line); text-decoration: none; font-weight: 650; color: var(--navy); }
.other-list a:hover { background: var(--plate-soft); }
.other-list .svc-code { font-size: .85rem; }

.svc-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.svc-card { display: grid; gap: 1rem; background: var(--sheet); border-radius: var(--radius); padding: 1rem; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(11, 31, 77, .55); color: var(--ink); }
.svc-card img { border-radius: 12px; width: 100%; max-width: 254px; }
.svc-body { display: grid; gap: .4rem; align-content: start; }
.svc-card .svc-name { color: var(--navy); }
.svc-card .svc-sum { color: var(--muted); }
@media (min-width: 720px) { .svc-card { grid-template-columns: 254px 1fr; gap: 1.6rem; padding: 1.2rem; } }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.05); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; } }

/* about */
.about-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.5fr 1fr; } }
.cred-grid { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: .9rem; }
.cred-grid li { display: grid; gap: .2rem; background: var(--sheet); border-radius: var(--radius); padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-left: 8px solid var(--tape); }
.cred-num { font: 400 2.4rem/1 var(--display); color: var(--navy); letter-spacing: .03em; }
.cred-what { font-weight: 700; }
.cred-who, .cred-note { color: var(--muted); font-size: .95rem; }
@media (min-width: 640px) { .cred-grid { grid-template-columns: 1fr 1fr; } }
.world { background: linear-gradient(160deg, var(--navy), var(--night)); color: #fff; }
.world .sec-title { color: #fff; }
.world .sec-lead, .world p { color: var(--on-dark-muted); }
.world a { color: var(--tape); }
.places { list-style: none; margin: 2rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .8rem; }
.places li { font: 400 clamp(1.5rem, 3vw, 2rem)/1.05 var(--display); text-transform: uppercase; padding: 1rem 1.1rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); background: rgba(255, 255, 255, .05); }
@media (min-width: 900px) { .places { grid-template-columns: repeat(3, 1fr); } }
.places small { display: block; font: 600 .78rem/1.3 var(--text); letter-spacing: .08em; color: var(--on-dark-muted); margin-top: .35rem; }
.minerals { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.6rem; }
.minerals h2 { font: 400 1.7rem/1.05 var(--display); text-transform: uppercase; }
.minerals ol { margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: m; display: grid; gap: .5rem; }
.minerals li { counter-increment: m; display: flex; gap: .8rem; align-items: center; font-size: 1.15rem; font-weight: 600; padding: .55rem .2rem; border-bottom: 1px dashed rgba(255, 255, 255, .25); }
.minerals li::before { content: counter(m); display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--tape); color: var(--tape-ink); font: 400 1rem/1 var(--display); }

/* regulations */
.reg-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .reg-grid { grid-template-columns: 1.5fr 1fr; } }
.reg-list { list-style: none; margin: 1.6rem 0 2.6rem; padding: 0; display: grid; gap: .8rem; }
.reg-list li { background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.reg-list b { display: block; font: 400 1.5rem/1.1 var(--display); color: var(--navy); letter-spacing: .02em; margin-bottom: .2rem; }
.agency-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.6rem; position: sticky; top: 6rem; }
.agency-card h2 { font: 400 1.8rem/1 var(--display); text-transform: uppercase; color: var(--tape); }
.agency-card ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .1rem; }
.agency-card li { display: grid; gap: .1rem; padding: .7rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .25); }
.agency-card span { color: var(--on-dark-muted); font-size: .95rem; }
.agency-card a { color: #fff; font-weight: 700; font-size: 1.1rem; }
@media (max-width: 899px) { .agency-card { position: static; } }

/* contact */
.contact-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-card, .form-card { background: var(--sheet); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); }
.contact-card h2, .form-card h2 { font: 400 1.7rem/1 var(--display); text-transform: uppercase; color: var(--navy); margin-top: 1.4rem; }
.form-card h2 { margin-top: 0; }
.big-phone { font: 400 clamp(2.3rem, 7vw, 3.2rem)/1 var(--display); margin-bottom: 1rem; }
.big-phone a { color: var(--navy); text-decoration: none; }
.contact-list { margin: 0; display: grid; gap: .8rem; }
.contact-list dt { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-list dd { margin: 0; }
.staff { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.staff li { display: grid; gap: .1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.staff-name { font-weight: 700; }
.staff-role { color: var(--muted); font-size: .92rem; }
.offices-band { background: var(--plate-soft); }
.offices { list-style: none; margin: 1.8rem 0 1rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.offices li { background: var(--sheet); border-radius: var(--radius); padding: 1.2rem 1.3rem; border-top: 6px solid var(--navy); }
.offices li.soon { border-top-color: var(--tape); background: transparent; border: 2px dashed var(--navy); border-top-width: 6px; }
.offices h3 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--navy); }
.offices address { margin-bottom: .5rem; }
.all-mail { font-weight: 650; }
.join { background: var(--tape); color: var(--tape-ink); }
.join h2 { font: 400 clamp(2rem, 5vw, 3.2rem)/1 var(--display); text-transform: uppercase; }
.join a { color: var(--tape-ink); font-weight: 700; }
.join-grid { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 860px) { .join-grid { grid-template-columns: 1fr 1.4fr; } }

/* form */
.contact-form { display: grid; gap: 1rem; }
.contact-form label { display: block; font-weight: 650; margin-bottom: .3rem; font-size: .95rem; }
.contact-form input, .contact-form textarea {
    width: 100%; font: inherit; color: var(--ink); background: var(--page);
    border: 2px solid var(--line); border-radius: 12px; padding: .7rem .85rem;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--plate); outline: none; box-shadow: 0 0 0 3px rgba(58, 110, 175, .3); }
.contact-form button { justify-self: start; }
.form-pair { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-pair { grid-template-columns: 1fr 1fr; } }
.form-hint { font-size: .9rem; color: var(--muted); margin: 0; }
.contact-sent { background: #e6f4ea; border: 2px solid #2e7d4f; color: #173f28; border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.contact-form ul { margin: .3rem 0 0; padding-left: 1.1rem; color: #a3271a; font-size: .92rem; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--on-dark-muted); font-size: .97rem; }
.tape-foot { font-size: .9rem; padding: .8rem 0; }
.foot-grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h2 { font: 400 1.25rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--tape); margin: 0 0 .8rem; }
.foot h2 + * { margin-top: 0; }
.foot p + h2, .foot ul + h2 { margin-top: 1.4rem; }
.foot a { color: #fff; }
.foot-logo { width: 230px; border-radius: 8px; margin-bottom: 1rem; }
.foot-lic { font-size: .88rem; }
.foot-phone { font: 400 2rem/1 var(--display); text-decoration: none; }
.foot-247 { color: var(--tape); font-weight: 700; }
.foot-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding-block: 1.2rem 1.6rem; font-size: .88rem; }
.foot-bottom p { margin: 0; }

/* ---------- 404 ---------- */
.not-found { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; text-align: center; background: linear-gradient(160deg, var(--navy), var(--night)); color: #fff; }
.not-found img { margin: 0 auto 1.6rem; width: 280px; border-radius: 8px; }
.not-found h1 { font: 400 clamp(2.4rem, 8vw, 4rem)/1 var(--display); text-transform: uppercase; }
.not-found p { color: var(--on-dark-muted); max-width: 34rem; margin-inline: auto; }
.not-found a:not(.btn) { color: var(--tape); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}

/* ---- menu: /js/menu.js folds the navigation behind a button on a phone ----
   Paste this block into the site's css/site.css, after the header's own rules. Then:
   - Set the width in the @media line to the one below which the navigation no longer fits on one line
     (on the header row or a row of its own): the menu folds there, never into two rows of links.
   - Recolour it with --menu-fg (button text and bars), --menu-bg (button), --menu-panel (the open
     menu's background, default: none, it opens inside the header) and --menu-focus (focus ring),
     set on :root or on the header.
   - The open menu is a column under the header row: .menu-nav takes the row's full width. A header that
     is not a wrapping flex row needs its own placement for .menu-nav.is-open. In a header that sets
     `order` on its items, give .menu-toggle one after the phone button and .menu-nav the last.
   - Below 420 px the word hides and the button is a round icon; the word stays its accessible name.
     Raise that width if logo, phone button, language switch and button still do not fit on one row
     at 360 px; the phone number itself never hides. */

.menu-toggle {
    display: none;
}

@media (max-width: 480px) {
    .has-menu .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        min-height: 44px;
        padding: 0 14px;
        border: 2px solid currentColor;
        border-radius: 999px;
        background: var(--menu-bg, transparent);
        color: var(--menu-fg, inherit);
        font: inherit;
        font-weight: 600;
        line-height: 1;
        cursor: pointer;
    }

    .has-menu .menu-toggle:focus-visible {
        outline: 3px solid var(--menu-focus, currentColor);
        outline-offset: 3px;
    }

    .has-menu .menu-nav:not(.is-open) {
        display: none;
    }

    .has-menu .menu-nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex-basis: 100%;
        width: 100%;
        margin-inline: 0;
        gap: 2px;
        padding-block: 6px 4px;
        background: var(--menu-panel, none);
    }

    .has-menu .menu-nav.is-open a {
        padding-block: 12px;
    }
}

@media (max-width: 420px) {
    .has-menu .menu-toggle {
        justify-content: center;
        width: 44px;
        padding: 0;
    }

    .menu-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* three bars that turn into a cross while the menu is open */
.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-bars {
    position: relative;
}

.menu-bars::before,
.menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-bars::before {
    top: -6px;
}

.menu-bars::after {
    top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-bars {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-bars::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
    .menu-bars,
    .menu-bars::before,
    .menu-bars::after {
        transition: none;
    }
}

/* menu button on a phone: logo, phone button, then the button last; one row down to 360 px */
@media (max-width: 480px) {
    .top-row { gap: .4rem .5rem; }
    .top-call { order: 1; }
    .menu-toggle { order: 2; }
}
@media (max-width: 420px) {
    .top-row { gap: .4rem .4rem; }
    .brand img { width: 112px; }
    .top-call { font-size: .9rem; padding: .45rem .65rem; }
    .top-call svg { display: none; }
}
