/* Detailed – scroll service concept. Charcoal studio, ivory type, brand red accents. */
:root {
    --bg: #050506;
    --ivory: #ece8df;
    --ivory-2: #b9b5ad;
    --muted: #8a8780;
    --line: rgba(236, 232, 223, .14);
    --red: #d70006;
    --red-2: #ff3a40;
    --head: 'Archivo', 'Arial Black', system-ui, sans-serif;
    --body: 'Inter', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --pad: clamp(18px, 3.2vw, 48px);
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ivory); font: 400 15px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img { max-width: 100%; }
.mono { font: 500 11px/1.7 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-2); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ivory); color: #000; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- stage ---------- */
.stage { position: fixed; inset: 0; z-index: 0; background: radial-gradient(120% 70% at 50% 46%, #1a1a1c 0%, #08080a 55%, #020203 100%); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
body.ready #gl { opacity: 1; }
.stage__fallback { position: absolute; left: 50%; top: 50%; width: min(1100px, 92vw); transform: translate(-50%, -42%); opacity: 0; transition: opacity .8s; filter: grayscale(.2) contrast(1.05); }
body.no-gl .stage__fallback { opacity: .55; }

.loader { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; gap: 18px; justify-items: center; background: var(--bg); transition: opacity .9s var(--ease), visibility .9s; }
.loader i { display: block; width: 160px; height: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; border-radius: 2px; }
.loader b { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--red), var(--ivory)); transform-origin: left; transform: scaleX(var(--p, .05)); transition: transform .3s; }
body.ready .loader, body.no-gl .loader { opacity: 0; visibility: hidden; }

/* ---------- nav ---------- */
.nav {
    position: fixed; z-index: 40; top: 16px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 18px; border-radius: 999px;
    background: rgba(14, 14, 16, .62); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
    box-shadow: 0 0 0 1px var(--line), 0 18px 40px -20px rgba(0, 0, 0, .9);
}
.nav__brand { display: flex; align-items: center; margin-right: 10px; }
.nav__brand img { height: 18px; width: auto; }
.nav__links { display: flex; gap: 2px; }
.nav__links a { padding: 8px 12px; border-radius: 999px; font-size: 13px; color: var(--ivory-2); text-decoration: none; transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.is-on { color: var(--ivory); background: rgba(255, 255, 255, .06); }
.sbtn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 999px; border: 0; font: 600 13px var(--body); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .2s, box-shadow .25s; }
.sbtn--light { background: var(--ivory); color: #0a0a0a; }
.sbtn--light:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(236, 232, 223, .6); }
.sbtn--ghost { background: rgba(255, 255, 255, .05); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--line); }
.sbtn--ghost:hover { background: rgba(255, 255, 255, .1); }
.sbtn--red { background: var(--red); color: #fff; }
.sbtn--red:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(215, 0, 6, .9); }

/* car switcher (menu bar) */
.carsw { display: flex; gap: 2px; padding: 3px; margin: 0 4px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.carsw[hidden], body.no-gl .carsw { display: none; }
.carsw button { height: 28px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; color: var(--ivory-2); font: 600 11.5px var(--body); letter-spacing: .02em; cursor: pointer; transition: background .2s, color .2s; }
.carsw button:hover { color: var(--ivory); }
.carsw button[aria-pressed="true"] { background: var(--ivory); color: #0a0a0a; }
.carsw.is-busy { opacity: .6; pointer-events: none; }
body.swap #gl { opacity: .15; transition: opacity .25s; }

/* ---------- rail + hud ---------- */
.rail { position: fixed; z-index: 30; right: 22px; top: 50%; transform: translateY(-50%); margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rail li { width: 6px; height: 6px; border-radius: 50%; background: rgba(236, 232, 223, .22); transition: background .3s, transform .3s, box-shadow .3s; }
.rail li.a { background: var(--red-2); transform: scale(1.5); box-shadow: 0 0 12px var(--red-2); }
.hud { position: fixed; z-index: 30; left: var(--pad); bottom: 18px; display: grid; gap: 2px; font: 500 10px/1.6 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity .6s; pointer-events: none; }
.hud b { color: var(--ivory); font-weight: 500; margin-left: 8px; }
body.past .hud { opacity: 1; }

/* ---------- hero ---------- */
main { position: relative; z-index: 10; }
.hero { position: relative; height: 100vh; min-height: 560px; }
.hero__l, .hero__r { position: absolute; top: 52%; }
.hero__l { left: var(--pad); }
.hero__r { right: calc(var(--pad) + 18px); text-align: right; }
.hero__l::before, .hero__r::before { content: ""; display: block; width: 34px; height: 1px; margin-bottom: 12px; background: var(--ivory-2); }
.hero__r::before { margin-left: auto; }
.hero__title { position: absolute; left: var(--pad); bottom: 42px; margin: 0; font: 800 clamp(34px, 4.4vw, 64px)/.98 var(--head); font-stretch: 112%; letter-spacing: -.01em; }
.hero__title span { display: block; overflow: hidden; }
.hero__title span i { display: block; font-style: normal; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero__title span:nth-child(2) i { transition-delay: .1s; }
body.on .hero__title span i { transform: none; }
.hero__scroll { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); margin: 0; text-align: center; }
.hero__scroll i { display: block; width: 1px; height: 30px; margin: 8px auto 0; background: linear-gradient(var(--ivory-2), transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero__cta { position: absolute; right: calc(var(--pad) + 18px); bottom: 46px; }
.hero > * { opacity: 0; transition: opacity 1s var(--ease) .2s; }
body.on .hero > * { opacity: 1; }

/* ---------- service chapters ---------- */
.svc { position: relative; height: 210vh; }
.svc-card { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; width: min(620px, 46vw); padding: 80px 0 60px; margin-left: var(--pad); }
.svc.right .svc-card { margin-left: auto; margin-right: calc(var(--pad) + 26px); }
.card__tag { margin: 0 0 18px; }
.card__tag b { color: var(--red-2); font-weight: 500; }
.svc-card h2 { margin: 0; font: 800 clamp(32px, 3.9vw, 56px)/.95 var(--head); text-shadow: 0 2px 30px rgba(0,0,0,.45); font-stretch: 112%; text-transform: uppercase; letter-spacing: -.01em; }
.svc-card h2 span { display: block; overflow: hidden; padding-bottom: .04em; }
.svc-card h2 span i { display: block; font-style: normal; transform: translateY(105%); transition: transform 1s var(--ease); }
.svc-card h2 span:nth-child(2) i { transition-delay: .08s; }
.svc-card p { max-width: 46ch; margin: 22px 0 0; color: #d3cfc6; font-size: 15px; text-shadow: 0 1px 14px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.6); }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 34px; margin: 28px 0 0; padding: 0; list-style: none; }
.stats b { display: block; font: 800 22px/1.1 var(--head); font-stretch: 108%; color: var(--ivory); }
.stats span { display: block; margin-top: 6px; font: 500 10px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #a8a49c; text-shadow: 0 1px 10px rgba(0,0,0,.9); }
.card__more { align-self: flex-start; margin-top: 28px; }
.svc-card > *:not(h2) { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.svc-card > *:nth-child(3) { transition-delay: .12s; } .svc-card > *:nth-child(4) { transition-delay: .2s; } .svc-card > *:nth-child(n+5) { transition-delay: .28s; }
.svc.in .svc-card > * { opacity: 1; transform: none; }
.svc.in .svc-card h2 span i { transform: none; }

/* colour swatches */
.sw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.sw button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); color: var(--ivory-2); font: 500 12.5px var(--body); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.sw button i { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 -6px 10px rgba(0, 0, 0, .35); }
.sw button:hover { color: var(--ivory); background: rgba(255, 255, 255, .09); }
.sw button[aria-pressed="true"] { color: var(--ivory); background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--ivory); }
.sw small { margin-left: -2px; opacity: .6; }

/* ---------- ticker band ---------- */
.band { position: relative; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: rgba(5, 5, 6, .5); }
.band div { display: flex; width: max-content; font: 800 clamp(28px, 4vw, 54px)/1 var(--head); font-stretch: 120%; color: transparent; -webkit-text-stroke: 1px rgba(236, 232, 223, .45); white-space: nowrap; will-change: transform; }
.band div span:nth-child(odd) { color: var(--ivory); -webkit-text-stroke: 0; }

/* ---------- book ---------- */
.book { position: relative; min-height: 100vh; padding: 140px var(--pad) 80px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 6, .55) 55%, rgba(5, 5, 6, .9) 100%); }
.book__title { margin: 0; font: 900 clamp(48px, 8.6vw, 132px)/.86 var(--head); font-stretch: 118%; text-transform: uppercase; letter-spacing: -.015em; }
.book__body { max-width: 52ch; margin: 22px 0 0; color: var(--ivory-2); }
.book__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.book__acts .sbtn { height: 46px; padding: 0 22px; font-size: 14px; }
.book__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { padding: 22px 22px 20px; border-radius: 18px; background: rgba(16, 16, 18, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .35s var(--ease), box-shadow .3s; opacity: 0; transform: translateY(18px); }
.book.in .tile { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .3s; }
.book.in .tile:nth-child(2) { transition-delay: .08s; } .book.in .tile:nth-child(3) { transition-delay: .16s; }
a.tile:hover { box-shadow: inset 0 0 0 1px rgba(255, 58, 64, .6); transform: translateY(-3px); }
.tile h3 { margin: 0; font: 800 26px/1 var(--head); font-stretch: 112%; text-transform: uppercase; }
.tile p { margin: 0; color: var(--ivory-2); font-size: 14px; }
.tile .mono { margin-top: auto; }

.foot { position: relative; z-index: 10; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding: 22px var(--pad) 26px; border-top: 1px solid var(--line); background: #050506; font: 500 10.5px/1.7 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nojs { position: relative; z-index: 20; margin: 40vh auto; max-width: 40ch; text-align: center; }

/* ---------- narrow screens: car on top, copy stacked below ---------- */
@media (max-width: 860px) {
    .nav { width: calc(100% - 24px); justify-content: space-between; padding-left: 14px; top: 12px; }
    .nav__links { display: none; }
    .rail { right: 10px; }
    .hero__l, .hero__r { top: auto; bottom: 200px; }
    .hero__r { display: none; }
    .hero__title { bottom: 96px; font-size: clamp(32px, 9vw, 44px); }
    .hero__scroll { display: none; }
    .hero__cta { left: var(--pad); right: auto; bottom: 36px; }
    .svc { height: 190vh; }
    .svc-card, .svc.right .svc-card { width: auto; margin: 0 var(--pad); justify-content: flex-end; padding: 0 0 34px; }
    .svc-card h2 { font-size: clamp(30px, 8.6vw, 44px); }
    .svc-card p { font-size: 14px; margin-top: 14px; }
    .stats { gap: 10px 20px; margin-top: 18px; }
    .stats b { font-size: 17px; }
    .card__more { margin-top: 18px; }
    .hud { display: none; }
    .book { padding-top: 110px; }
    .book__grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) { .stats { grid-template-columns: repeat(2, auto); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
    .svc-card > *, .svc-card h2 span i, .hero__title span i, .tile { opacity: 1 !important; transform: none !important; }
}

/* ================= site menu inside the floating bar ================= */
.nav__menu > ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__menu a { display: block; padding: 8px 12px; border-radius: 999px; font-size: 13px; color: var(--ivory-2); text-decoration: none; transition: color .2s, background .2s; }
.nav__menu a:hover, .nav__menu a[aria-current="page"] { color: var(--ivory); background: rgba(255, 255, 255, .07); }
.nav__menu .has-sub { position: relative; }
.nav__menu .has-sub > a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; }
.nav__menu .sub { position: absolute; left: 50%; top: calc(100% + 10px); min-width: 250px; margin: 0; padding: 8px; list-style: none; border-radius: 16px;
    background: rgba(14, 14, 16, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -20px rgba(0, 0, 0, .9);
    opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.nav__menu .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__menu .has-sub:hover .sub, .nav__menu .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__menu .sub a { border-radius: 10px; padding: 10px 12px; white-space: nowrap; }
.nav__menu .sub a:hover { background: rgba(215, 0, 6, .14); }
.nav__burger { display: none; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--ivory); font: 600 13px var(--body); cursor: pointer; }
.hero__r a { color: inherit; text-decoration: none; transition: color .2s; }
.hero__r a:hover { color: var(--ivory); }

/* footer links */
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.foot__links a { color: var(--ivory-2); text-decoration: none; }
.foot__links a:hover { color: var(--ivory); }

@media (max-width: 1100px) {
    .nav { width: calc(100% - 24px); justify-content: space-between; padding-left: 14px; }
    .nav__burger { display: inline-flex; align-items: center; }
    .nav__menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 10px; border-radius: 20px; background: rgba(12, 12, 14, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -20px rgba(0, 0, 0, .9); display: none; max-height: calc(100vh - 90px); overflow-y: auto; }
    body.menu-open .nav__menu { display: block; }
    .nav__menu > ul { flex-direction: column; }
    .nav__menu a { font-size: 15px; padding: 12px 14px; border-radius: 12px; }
    .nav__menu .sub { position: static; transform: none; opacity: 1; visibility: visible; min-width: 0; padding: 0 0 6px 14px; background: none; box-shadow: none; backdrop-filter: none; }
    .nav__menu .sub a { font-size: 14px; padding: 9px 14px; color: var(--muted); }
    .nav__cta { margin-left: auto; margin-right: 6px; }
}
@media (max-width: 420px) { .nav__cta { display: none; } }

/* screen-reader-only text (keeps headings descriptive for search engines and assistive tech) */
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero__l { margin: 0; }

/* ================= site header (same as every page) on top of the 3D stage ================= */
.header { z-index: 50; }
.mr_menu, .aside_info_wrapper { z-index: 9999; }
.loader { z-index: 10000; }
.hero { min-height: 640px; }

/* ================= site footer (same as every page) ================= */
.footer { position: relative; z-index: 10; font-family: var(--font-family-base); font-size: var(--fs-16); font-weight: var(--fw-medium); line-height: var(--fs-28); color: var(--color-white); background-color: var(--color-dark); }
.footer img { max-width: none; }
.totop { z-index: 60; }
